/* =============================================================
   ШТУРМАН — прикладные стили поверх Aurora.
   ============================================================= */

/* ---------- Чек-кружок задачи ---------- */
.task-check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.6px solid var(--border-strong);
  background: transparent; flex-shrink: 0;
  display: grid; place-items: center; color: transparent;
  transition: background 140ms, border-color 140ms, transform 80ms;
}
.task-check:active { transform: scale(0.88); }
.task-check svg { width: 14px; height: 14px; }
.task-check.dot-today  { border-color: var(--st-today); }
.task-check.dot-doing  { border-color: var(--st-doing); }
.row-done .task-check { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.row-done .ap-list__title { color: var(--fg-dim); text-decoration: line-through; }
.row-done .ap-list__sub { color: var(--fg-dim); }

/* В работе — мягкая подсветка строки слева */
.ap-list__row.row-doing::after {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: var(--r-pill); background: var(--st-doing);
}

/* ---------- Сводка дня (план) ---------- */
.plan {
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s-5); margin: 0 var(--s-4) var(--s-3);
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .plan { box-shadow: none; }
.plan__cap { font-size: var(--fs-11); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
.plan__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plan__future { margin-top: 10px; font-size: var(--fs-12); font-weight: 600; color: var(--fg-dim); }
.plan__num {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums;
}
.plan__num em { color: var(--accent); font-style: normal; }
.plan__label {
  font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-dim); margin-top: 4px;
}
.plan__bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; margin-top: 14px; }
.plan__seg { height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---------- Цели: hero + кольцевые карточки ---------- */
.goal-hero {
  margin: 0 0 var(--s-3); padding: var(--s-5);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #131313 0%, #2C1A12 100%);
  color: #F5F4F0; position: relative; overflow: hidden;
}
[data-theme="dark"] .goal-hero { background: linear-gradient(135deg, #1A1410 0%, #3B1D0E 100%); }
.goal-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,106,61,0.45) 0%, transparent 65%); pointer-events: none;
}
.goal-hero__kicker { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: #FF8E5A; margin-bottom: 6px; position: relative; z-index: 1; }
.goal-hero__title { font-family: var(--font-display); font-size: var(--fs-22); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: var(--lh-tight); position: relative; z-index: 1; }
.goal-hero__sub { font-size: var(--fs-13); color: rgba(245,244,240,0.7); margin-top: 6px; position: relative; z-index: 1; }

.ring-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s-4); margin-bottom: var(--s-3);
  box-shadow: var(--shadow-card);
  animation: ap-pop .22s ease;
}
[data-theme="dark"] .ring-card { box-shadow: none; }
.ring-card__top { display: flex; gap: var(--s-4); align-items: center; }
.ring-card__body { flex: 1; min-width: 0; }
.ring-card__title { font-family: var(--font-display); font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; line-height: var(--lh-snug); }
.ring-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* усилия (связанные задачи под целью) */
.efforts { margin-top: var(--s-4); border-top: 1px solid var(--divider); padding-top: var(--s-3); display: flex; flex-direction: column; gap: 10px; }
.effort { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); }
.effort .ef-name { line-height: 1.3; word-break: break-word; }
.effort.done .ef-name { color: var(--fg-dim); text-decoration: line-through; }
.ef-check { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.ef-empty { margin-top: var(--s-4); font-size: var(--fs-13); color: var(--fg-muted); line-height: 1.5; border-top: 1px solid var(--divider); padding-top: var(--s-3); }

/* ---------- Пустые состояния ---------- */
.empty, .loading { color: var(--fg-dim); text-align: center; padding: 56px 16px; font-size: var(--fs-14); line-height: 1.6; }
.banner {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px 20px;
  text-align: center; color: var(--fg-muted); margin: 56px var(--s-4) 0; line-height: 1.6;
  box-shadow: var(--shadow-card);
}

/* ---------- Плавающая кнопка «+» ---------- */
.ap-fab {
  position: fixed; right: 18px; bottom: calc(var(--safe-bot) + 20px);
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center; z-index: 90;
  box-shadow: 0 8px 22px rgba(255,106,61,0.4);
  transition: transform 100ms;
}
.ap-fab:active { transform: scale(0.9); }
.ap-fab svg { width: 26px; height: 26px; }

/* ---------- Шторка действий + модалка ---------- */
.sheet-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; z-index: 100;
  padding: 10px; animation: ap-fade .2s ease;
}
@keyframes ap-fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-4);
  width: 100%; max-width: 540px; margin-bottom: var(--safe-bot);
  animation: ap-slide .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes ap-slide { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__grip { width: 38px; height: 5px; border-radius: var(--r-pill); background: var(--border-strong); margin: -4px auto 12px; }
.sheet__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-17); margin: 0 4px 4px; }
.sheet__sub { font-size: var(--fs-13); color: var(--fg-muted); margin: 0 4px 14px; }
.sheet__actions { display: flex; flex-direction: column; gap: 8px; }
.sheet__actions .ap-btn { justify-content: flex-start; }

.lbl { display: block; font-size: var(--fs-12); font-weight: 600; color: var(--fg-dim); margin: 16px 4px 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.hint { font-size: var(--fs-11); color: var(--fg-dim); margin: 5px 4px 0; }
.sheet textarea, .sheet input, .sheet select {
  width: 100%; background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px; font-size: 16px; font-family: inherit; resize: vertical; outline: none;
}
.sheet select { -webkit-appearance: none; appearance: none; }
.sheet textarea:focus, .sheet input:focus, .sheet select:focus { border-color: var(--accent); }
.sheet__row2 { display: flex; gap: 9px; margin-top: 18px; }
.sheet__row2 .ap-btn { flex: 1; justify-content: center; }
