:root {
  --bg: #07030f;
  --panel: rgba(22, 10, 44, 0.72);
  --panel-2: rgba(40, 18, 78, 0.55);
  --line: rgba(168, 85, 247, 0.45);
  --line-soft: rgba(168, 85, 247, 0.18);
  --glow: rgba(168, 85, 247, 0.55);
  --violet: #a855f7;
  --violet-2: #c084fc;
  --violet-3: #7c3aed;
  --text: #f5f0ff;
  --muted: #b9a8d9;
  --green: #22e07a;
  --red-bg: #4a0f22; --red: #ff6b8b;
  --amber-bg: #4a300a; --amber: #ffb547;
  --blue-bg: #18205a; --blue: #9db3ff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 600px at 50% 35%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, rgba(88, 28, 135, 0.25), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(88, 28, 135, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.4 Inter, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  margin: 12px 14px 0; padding: 10px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 12, 60, 0.7), rgba(12, 5, 26, 0.7));
  box-shadow: inset 0 0 30px rgba(124, 58, 237, 0.12);
}
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.tagline { white-space: nowrap; }
.brand-logo { width: 58px; height: 58px; filter: drop-shadow(0 0 10px var(--glow)); }
.wordmark { font-family: Orbitron, Inter, sans-serif; font-weight: 500; letter-spacing: 0.55em; font-size: 26px; }
.tagline { font-size: 10.5px; letter-spacing: 0.28em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 18px 10px; border-radius: 10px; text-decoration: none;
  color: #ddd0f5; font-size: 13.5px; border-bottom: 2px solid transparent;
}
.nav a .ico { font-size: 20px; line-height: 1; color: var(--violet-2); }
.nav a:hover { background: rgba(168, 85, 247, 0.08); }
.nav a.active { background: linear-gradient(180deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.05)); border-bottom-color: var(--violet); color: #fff; }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.status .sep { width: 1px; height: 18px; background: var(--line-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; display: inline-block; }
.dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.bad { background: var(--red); box-shadow: 0 0 8px var(--red); }
#statusText.ok { color: var(--green); }

/* ---------- layout ---------- */
.grid {
  display: grid; gap: 14px; padding: 14px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "finance core schedule"
    "todo core goals"
    "emails targets assistant"
    "business weekly weekly";
}
.finance { grid-area: finance; } .core { grid-area: core; } .schedule { grid-area: schedule; }
.todo { grid-area: todo; } .weekly { grid-area: weekly; } .business { grid-area: business; }
.targets { grid-area: targets; } .assistant { grid-area: assistant; }
.goals { grid-area: goals; } .emails { grid-area: emails; }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.22), inset 0 0 26px rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(6px); min-width: 0;
}
.card::before { /* corner accents */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(var(--violet-2), var(--violet-2)) top left / 26px 2px no-repeat,
    linear-gradient(var(--violet-2), var(--violet-2)) top left / 2px 26px no-repeat,
    linear-gradient(var(--violet-2), var(--violet-2)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--violet-2), var(--violet-2)) bottom right / 2px 26px no-repeat;
  opacity: 0.8;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.h-ico { color: var(--violet-2); font-size: 20px; }
.select { background: rgba(20, 8, 40, 0.8); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px 8px; color: var(--muted); font-size: 13px; }

/* ---------- finance ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 0 14px; border-left: 1px solid var(--line-soft); }
.stat:first-child { padding-left: 0; border-left: 0; }
.big { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lbl { font-size: 13px; color: #d9cdf2; margin-top: 2px; }
.chg { font-size: 14px; font-weight: 600; margin-top: 8px; color: var(--green); min-height: 18px; }
.chg.down { color: var(--red); }
.bar-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.bar { flex: 1; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet-3), #f0e6ff); transition: width .8s ease; }
.chart { height: 170px; margin-top: 12px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { fill: #d9cdf2; font-size: 11px; }
.chart .gridline { stroke: rgba(168, 85, 247, 0.12); }

/* ---------- orb ---------- */
.core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; }
.orb {
  position: relative; width: min(400px, 82vw); aspect-ratio: 1; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; padding: 0; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.orb .ring { position: absolute; border-radius: 50%; pointer-events: none; }
.r1 { inset: 0; border: 1px dashed rgba(192, 132, 252, 0.45); animation: spin 60s linear infinite; }
.r2 {
  inset: 5%;
  background: repeating-conic-gradient(rgba(192, 132, 252, 0.8) 0 0.6deg, transparent 0.6deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%);
  animation: spin 90s linear infinite reverse;
}
.r3 {
  inset: 13%; border: 3px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 8%, var(--violet) 8% 30%, transparent 30% 40%, var(--violet-2) 40% 62%, transparent 62% 72%, var(--violet) 72% 92%, transparent 92%) border-box;
  -webkit-mask: radial-gradient(circle, transparent 68%, #000 69%);
          mask: radial-gradient(circle, transparent 68%, #000 69%);
  filter: drop-shadow(0 0 8px var(--violet));
  animation: spin 24s linear infinite;
}
.r4 {
  inset: 19%;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.75), inset 0 0 40px rgba(168, 85, 247, 0.6);
  border: 2px solid rgba(233, 213, 255, 0.85);
}
.orb-inner {
  position: absolute; inset: 21%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, rgba(88, 28, 135, 0.55), rgba(10, 4, 22, 0.95) 70%);
  transition: transform .3s ease;
}
.orb-logo { width: 34%; height: 34%; filter: drop-shadow(0 0 14px var(--glow)); }
.orb-word { font-family: Orbitron, Inter, sans-serif; letter-spacing: 0.55em; padding-left: 0.55em; font-size: clamp(16px, 2.2vw, 26px); }
.orb:hover .orb-inner { transform: scale(1.02); }
.orb:focus-visible .r4 { border-color: #fff; }
.orb.listening .r3 { animation-duration: 3s; }
.orb.listening .r2 { animation-duration: 12s; }
.orb.listening .r4 { animation: pulse 1.1s ease-in-out infinite; }
.orb.thinking .r3 { animation-duration: 1.2s; }
.orb.speaking .r4 { animation: pulse .6s ease-in-out infinite; }
.orb-hint { margin-top: 16px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.transcript { margin-top: 8px; max-width: 90%; min-height: 22px; text-align: center; color: #efe6ff; font-size: 15px; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; width: 100%; pointer-events: none; }
.mountains polyline { fill: none; stroke: rgba(168, 85, 247, 0.5); stroke-width: 1.2; filter: drop-shadow(0 0 4px var(--violet)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 40px rgba(168, 85, 247, .75), inset 0 0 40px rgba(168, 85, 247, .6); } 50% { box-shadow: 0 0 90px rgba(216, 180, 254, 1), inset 0 0 70px rgba(216, 180, 254, .9); } }
@media (prefers-reduced-motion: reduce) { .orb .ring { animation: none !important; } }

/* ---------- schedule ---------- */
.sched-list, .todo-list { list-style: none; margin: 0; padding: 0; }
.sched-list li { display: grid; grid-template-columns: 76px 16px 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(168, 85, 247, 0.08); }
.sched-list li:last-child { border-bottom: 0; }
.sched-list .t { color: #d9cdf2; font-size: 14px; font-variant-numeric: tabular-nums; }
.sched-list .day { display: block; font-size: 11px; color: var(--muted); }
.sched-list .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 6px var(--violet); justify-self: center; }
.sched-list .si { font-size: 20px; text-align: center; color: var(--violet-2); }
.sched-list .past { opacity: 0.45; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 7px; background: rgba(124, 58, 237, 0.35); border: 1px solid var(--line); white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* ---------- todo ---------- */
.todo-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.check {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 1.5px solid #cbb7ee; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.check.on { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 8px var(--violet); }
.check.on::after { content: "✓"; font-size: 12px; font-weight: 700; color: #fff; }
.todo-list .title { flex: 1; min-width: 0; font-size: 14.5px; }
.todo-list li.done .title { color: var(--violet-2); }
.prio { font-size: 12px; padding: 2px 8px; border-radius: 5px; }
.prio.High { background: var(--red-bg); color: var(--red); }
.prio.Medium { background: var(--amber-bg); color: var(--amber); }
.prio.Low { background: var(--blue-bg); color: var(--blue); }

/* ---------- weekly / business ---------- */
.week-row, .biz-row { display: grid; align-items: center; gap: 12px; padding: 4px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.week-row { grid-template-columns: 40px 1fr 120px 42px; }
.week-row .d { font-weight: 600; }
.week-row .amt, .week-row .pct { text-align: right; color: #e5dbf7; }
.week-row.today .d { color: var(--violet-2); }
.biz-row { grid-template-columns: 14px 1fr 70px 1fr 40px; }
.biz-row .sw { width: 12px; height: 12px; border-radius: 50%; }
.biz-row .amt, .biz-row .pct { text-align: right; }

/* ---------- targets ---------- */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ring-card svg { width: 110px; height: 110px; }
.ring-card .rv { font-size: 22px; font-weight: 700; fill: #fff; }
.ring-card .rl { font-size: 14px; color: #e5dbf7; margin-top: 4px; }
.ring-card .rs { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- assistant ---------- */
.assistant { display: flex; flex-direction: column; }
.assist-tools { display: flex; align-items: center; gap: 10px; }
.online { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.icon-btn { background: none; border: 1px solid var(--line-soft); border-radius: 8px; padding: 2px 7px; cursor: pointer; font-size: 13px; }
.chat { flex: 1; min-height: 130px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.msg { max-width: 88%; padding: 7px 12px; border-radius: 12px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: linear-gradient(90deg, #5b21b6, #7c3aed); border-radius: 12px 12px 4px 12px; }
.msg.ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px 12px 12px 4px; }
.msg.sys { align-self: center; color: var(--muted); font-size: 12px; background: none; padding: 2px; }
.msg.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask { display: flex; gap: 8px; margin-top: 10px; }
.ask input { flex: 1; min-width: 0; background: rgba(10, 4, 22, 0.8); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; outline: none; }
.ask input:focus { border-color: var(--violet); }
.mic, .send { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(40, 18, 78, 0.7); cursor: pointer; display: grid; place-items: center; flex: 0 0 40px; }
.mic svg { width: 20px; stroke: var(--violet-2); stroke-width: 2; stroke-linecap: round; fill: none; }
.mic.on { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.mic.on svg { stroke: #fff; }
.send { background: var(--violet-3); border-color: var(--violet); }
.send svg { width: 18px; fill: #fff; }

/* ---------- lock ---------- */
dialog { background: #12062a; color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(360px, 90vw); box-shadow: 0 0 60px rgba(124, 58, 237, 0.5); }
dialog::backdrop { background: rgba(5, 2, 12, 0.85); backdrop-filter: blur(6px); }
#lock form { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.lock-logo { width: 54px; height: 54px; margin: 0 auto; }
dialog h3 { margin: 4px 0 0; }
#lock input { background: #0a0418; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; text-align: center; }
.err { color: var(--red); font-size: 13px; min-height: 16px; margin: 0; }
.primary { background: var(--violet-3); border: 1px solid var(--violet); border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nav a { padding: 8px 10px; }
  .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "core core" "assistant assistant" "goals todo" "finance schedule" "emails targets" "business weekly";
  }
  .core { min-height: 460px; }
}
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; justify-content: center; }
  .nav a { flex: 0 0 auto; }
  .status { margin-left: auto; }
}
@media (max-width: 860px) {
  .topbar { padding: 10px 16px; margin: 10px 10px 0; }
  .nav { justify-content: flex-start; }
  .status { font-size: 12px; }
  .brand-logo { width: 40px; height: 40px; }
  .wordmark { font-size: 20px; }
  .tagline { display: none; }
  .grid {
    padding: 10px 16px; gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "core" "assistant" "goals" "todo" "schedule" "emails" "finance" "targets" "weekly" "business";
  }
  .core { min-height: 380px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .ring-card svg { width: 84px; height: 84px; }
  .ring-card .rs { font-size: 13px; }
  .week-row { grid-template-columns: 34px 1fr 100px 38px; font-size: 13px; }
  .biz-row { grid-template-columns: 12px 1fr 62px 60px 36px; font-size: 13px; }
  .sched-list li { grid-template-columns: 64px 10px 26px 1fr auto; gap: 8px; }
}

/* ---------- expandable cards ---------- */
[data-expand] { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
[data-expand]:hover { border-color: rgba(192, 132, 252, 0.8); box-shadow: 0 0 30px rgba(124, 58, 237, 0.38), inset 0 0 26px rgba(124, 58, 237, 0.12); }
.head-r { display: flex; align-items: center; gap: 10px; }
.expand { background: none; border: 1px solid var(--line-soft); border-radius: 7px; width: 26px; height: 26px; padding: 0; cursor: pointer; color: var(--violet-2); font-size: 14px; line-height: 1; opacity: .7; }
[data-expand]:hover .expand { opacity: 1; border-color: var(--line); }
.more { color: var(--muted); font-size: 12.5px; padding-top: 6px; list-style: none; }

/* ---------- goals ---------- */
.goal-list { display: flex; flex-direction: column; gap: 10px; }
.goal-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.goal-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.due { font-size: 12px; color: var(--muted); white-space: nowrap; }
.due.soon { color: var(--amber); }
.goal-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.goal-bar .gp { font-size: 12.5px; color: #e5dbf7; white-space: nowrap; font-variant-numeric: tabular-nums; }
.goal.done .goal-name { color: var(--violet-2); text-decoration: line-through; text-decoration-color: rgba(192,132,252,.5); }

/* ---------- emails ---------- */
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-list li a { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.mail-list li a:hover { background: rgba(168, 85, 247, 0.1); }
.mfrom { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtime { color: var(--muted); font-size: 12px; }
.msubj { grid-column: 1 / -1; font-size: 13px; color: #d9cdf2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msnip { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.mail-list.full li { border-bottom: 1px solid rgba(168, 85, 247, 0.1); }

/* ---------- detail panel ---------- */
dialog.detail { width: min(1000px, 94vw); max-height: 88vh; padding: 0; overflow: hidden; display: none; flex-direction: column; text-align: left; }
dialog.detail[open] { display: flex; }
.detail-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid var(--line-soft); }
.detail-head h2 { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.close { background: none; border: 1px solid var(--line-soft); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; }
.close:hover { border-color: var(--violet); }
.detail-body { padding: 8px 24px 24px; overflow-y: auto; }
.detail-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-2); margin: 22px 0 8px; }
.detail-body > p.muted { margin: 14px 0 0; }
.dstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.dstat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.dv { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl { font-size: 12.5px; color: #d9cdf2; margin-top: 2px; }
.ds { font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart.big { height: 260px; margin-top: 18px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dtable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.dtable td { padding: 8px; border-bottom: 1px solid rgba(168, 85, 247, 0.08); }
.dtable .r { text-align: right; }
.dtable .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dtable .pos { color: var(--green); } .dtable .neg { color: var(--red); }
.add-task { display: flex; gap: 8px; margin-top: 16px; }
.add-task input { flex: 1; min-width: 0; background: rgba(10, 4, 22, 0.8); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; outline: none; }
.add-task input:focus { border-color: var(--violet); }
.add-task .primary { padding: 10px 18px; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.goal-card { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.goal-card .goal-top { justify-content: space-between; }
.goal-title { font-weight: 600; font-size: 15px; }
.goal-meta { font-size: 12.5px; color: #d9cdf2; }
.goal-next { font-size: 13px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.goal-card.done { opacity: .6; }
.week-row.wide { grid-template-columns: 90px 1fr 90px 42px; }
@media (max-width: 860px) {
  dialog.detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .detail-body { padding: 4px 16px 24px; }
  .detail-head { padding: 14px 16px 12px; }
  .dtable { font-size: 13px; }
  .goal-grid { grid-template-columns: 1fr; }
}
