:root {
  --ink: #18332d;
  --ink-soft: #53645f;
  --paper: #f4f1e8;
  --card: #fffdf7;
  --line: #d9d5c9;
  --accent: #ff6b4a;
  --accent-soft: #ffe0d6;
  --green-soft: #dce9df;
  --shadow: 0 18px 50px rgba(24, 51, 45, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1240px; min-height: 100vh; margin: 0 auto; padding: 0 34px 60px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; gap: 4px; padding: 4px; background: #e9e5da; border-radius: 999px; }
.view-tab { border: 0; border-radius: 999px; padding: 8px 16px; color: var(--ink-soft); background: transparent; font-size: 12px; font-weight: 800; }
.view-tab.active { color: white; background: var(--ink); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: Georgia, serif; font-size: 25px; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--paper); background: var(--ink); border-radius: 9px 3px 9px 3px; font-family: Georgia, serif; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.save-state { color: var(--ink-soft); font-size: 12px; }
.button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 750; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { color: white; background: var(--ink); }
.button-accent { color: #3d1a12; background: var(--accent); }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; padding: 58px 0 42px; }
.todo-view { padding: 48px 0 20px; }
.automation-view { padding: 48px 0 20px; }
.automation-health { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.automation-health i { width: 10px; height: 10px; background: #d89b3c; border-radius: 50%; box-shadow: 0 0 0 5px #f3e4c8; }
.automation-explainer { display: grid; grid-template-columns: 170px 1fr; gap: 18px; margin: 28px 0 14px; padding: 17px; color: white; background: var(--ink); border-radius: 15px; }
.automation-explainer span { color: #bfd0cb; font-size: 12px; line-height: 1.45; }
.automation-form { display: grid; grid-template-columns: 1fr 1.3fr 110px 140px auto; gap: 8px; margin-bottom: 18px; padding: 12px; background: #e9e5da; border-radius: 16px; }
.automation-form input, .automation-form select { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); background: white; }
.automation-list { display: grid; gap: 11px; }
.automation-card { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 15px; padding: 19px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; }
.automation-toggle input { position: absolute; opacity: 0; }
.automation-toggle span { display: block; position: relative; width: 42px; height: 24px; background: #cbc8bf; border-radius: 99px; }
.automation-toggle span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform .18s ease; }
.automation-toggle input:checked + span { background: var(--accent); }
.automation-toggle input:checked + span::after { transform: translateX(18px); }
.automation-copy > span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.automation-copy h2 { margin: 4px 0; font: 700 20px Georgia, serif; }
.automation-copy p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.automation-status { min-width: 120px; text-align: right; }
.automation-status strong, .automation-status small { display: block; }
.automation-status strong { color: var(--ink-soft); font-size: 11px; }
.automation-status.queued strong { color: #b16b18; }
.automation-status small { margin-top: 3px; color: #969c99; font-size: 9px; }
.todo-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.todo-hero h1 { margin: 4px 0 6px; font: 700 clamp(48px, 7vw, 78px)/1 Georgia, serif; letter-spacing: -3px; }
.todo-hero p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.todo-count { display: flex; align-items: center; gap: 10px; }
.todo-count strong { font: 700 54px/1 Georgia, serif; }
.todo-count span { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.todo-quick-add { display: flex; gap: 9px; margin: 30px 0 18px; padding: 12px; background: var(--ink); border-radius: 17px; }
.todo-quick-add input { min-width: 0; flex: 1; border: 0; border-radius: 11px; padding: 12px 14px; color: white; background: #294a42; }
.todo-quick-add input::placeholder { color: #adc0bb; }
.todo-board { display: grid; gap: 14px; }
.todo-project { overflow: hidden; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 19px; }
.todo-project.active { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.todo-project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.todo-project-heading span { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.todo-project-heading h2 { margin: 4px 0 0; font: 700 23px Georgia, serif; }
.todo-project-heading > strong { color: var(--ink-soft); font-size: 11px; }
.todo-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: 0; }
.todo-item input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--accent); }
.todo-item span { line-height: 1.4; }
.todo-item span strong { display: block; }
.todo-item.completed span { color: #8a928f; text-decoration: line-through; }
.todo-item span small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 450; line-height: 1.45; text-decoration: none; }
.todo-empty { margin: 15px 0 0; color: var(--ink-soft); font-size: 13px; }
.hero h1 { max-width: 700px; margin: 6px 0 8px; font: 700 clamp(46px, 7vw, 84px)/.98 Georgia, serif; letter-spacing: -3px; }
.hero-copy { max-width: 600px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.eyebrow { margin: 0 0 8px; color: var(--ink-soft); font-size: 11px; font-weight: 850; letter-spacing: .17em; }
.focus-score { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.score-number { font: 700 58px/1 Georgia, serif; }
.score-label { color: var(--ink-soft); font-size: 10px; line-height: 1.3; letter-spacing: .12em; }
.advisor-panel { position: relative; overflow: hidden; margin-bottom: 22px; padding: 28px; color: white; background: linear-gradient(135deg, #112a24 0%, #244a40 72%, #315c50 100%); border-radius: 26px; box-shadow: var(--shadow); }
.advisor-panel::after { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -150px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); pointer-events: none; }
.advisor-topline, .advisor-identity, .advisor-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.advisor-identity { justify-content: flex-start; }
.advisor-identity .eyebrow { margin-bottom: 3px; color: #d3e1dc; }
.advisor-identity > div > span { color: #92aca4; font-size: 11px; }
.advisor-orb { display: grid; place-items: center; width: 43px; height: 43px; color: var(--ink); background: var(--accent); border-radius: 13px 5px 13px 5px; font-size: 11px; font-weight: 900; letter-spacing: -.03em; }
.advisor-status { display: flex; align-items: center; gap: 7px; color: #afc5be; font-size: 11px; }
.advisor-status i { width: 7px; height: 7px; background: #71d49f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(113,212,159,.12); }
.advisor-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; margin-top: 27px; }
.advisor-main { padding: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 19px; }
.advisor-kicker { margin: 0 0 8px; color: #ff9b83; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.advisor-main h2 { max-width: 690px; margin: 0 0 10px; font: 700 clamp(28px, 4vw, 43px)/1.06 Georgia, serif; }
.advisor-main > p:not(.advisor-kicker) { max-width: 720px; margin: 0; color: #c2d2cd; line-height: 1.55; }
.advisor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.advisor-actions .button-ghost { color: white; border-color: #54736a; }
.advisor-plan { padding: 22px; color: var(--ink); background: #fffaf0; border-radius: 19px; }
.advisor-plan-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.advisor-plan-heading strong { font: 700 19px Georgia, serif; }
.advisor-plan-heading span { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.advisor-step { display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.advisor-step:last-child { border-bottom: 0; }
.advisor-step-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: #9d968a; font-size: 11px; font-weight: 900; }
.advisor-step.ready .advisor-step-mark { color: white; background: var(--ink); border-color: var(--ink); }
.advisor-step strong { display: block; font-size: 12px; }
.advisor-step small { display: block; margin-top: 3px; color: var(--ink-soft); line-height: 1.35; }
.advisor-ask { margin-top: 14px; padding: 17px; background: rgba(7,25,21,.42); border-radius: 16px; }
.advisor-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.advisor-prompts button { border: 1px solid #4c6c63; border-radius: 999px; padding: 7px 10px; color: #d6e2df; background: transparent; font-size: 10px; }
.advisor-ask form { display: flex; gap: 8px; }
.advisor-ask input { min-width: 0; flex: 1; border: 1px solid #4c6c63; border-radius: 999px; padding: 11px 15px; color: white; background: #16362f; }
.advisor-ask input::placeholder { color: #8da69f; }
.advisor-response { margin-top: 12px; padding: 13px 15px; color: #d7e4e0; background: #173a32; border-left: 3px solid var(--accent); border-radius: 7px 12px 12px 7px; font-size: 13px; line-height: 1.5; }
.friday-delegation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 17px; color: var(--ink); background: #fffaf0; border-radius: 14px; }
.delegation-copy { max-width: 760px; }
.delegation-label { display: block; margin-bottom: 5px; color: #c94f35; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.delegation-copy strong { display: block; font: 700 19px Georgia, serif; }
.delegation-copy p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.delegation-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.delegation-actions .button-ghost { background: white; }
.delegation-state { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.delegation-state i { width: 8px; height: 8px; background: #d89b3c; border-radius: 50%; }
.active-section { padding: 30px; background: var(--ink); color: white; border-radius: 26px; box-shadow: var(--shadow); }
.active-section .eyebrow { color: #b9cac4; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 700 29px/1.1 Georgia, serif; }
.section-heading.compact { margin-bottom: 18px; }
.text-button { border: 0; color: #dce9df; background: none; font-size: 13px; font-weight: 700; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #ff8b71; box-shadow: 0 0 0 5px rgba(255,107,74,.13); }
.active-card { display: grid; grid-template-columns: 1.4fr .8fr; gap: 30px; }
.project-area { display: inline-flex; padding: 6px 10px; color: var(--ink); background: var(--green-soft); border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.active-title { margin: 15px 0 10px; font: 700 clamp(30px, 4vw, 46px)/1.05 Georgia, serif; }
.project-why { max-width: 680px; margin: 0; color: #c9d6d2; line-height: 1.55; }
.done-definition { padding: 18px; border: 1px solid #44635a; border-radius: 15px; }
.done-definition strong { display: block; margin-bottom: 7px; color: #9fb6af; font-size: 10px; letter-spacing: .14em; }
.done-definition p { margin: 0; line-height: 1.45; }
.progress-row { display: flex; align-items: center; gap: 15px; margin-top: 24px; }
.progress-track { flex: 1; height: 7px; background: #36534b; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.progress-label { width: 42px; font-size: 12px; font-weight: 800; }
.active-tasks { padding: 20px; color: var(--ink); background: #f9f5e9; border-radius: 18px; }
.active-tasks h3 { margin: 0 0 15px; font: 700 20px Georgia, serif; }
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-row:last-of-type { border-bottom: 0; }
.task-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.task-row.completed span { color: #87918d; text-decoration: line-through; }
.task-row span { min-width: 0; }
.task-row span strong { display: block; font-weight: 750; }
.task-row span small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 450; line-height: 1.45; text-decoration: none; }
.add-task-form { display: flex; gap: 8px; margin-top: 12px; }
.add-task-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: white; }
.mini-button { border: 0; border-radius: 10px; padding: 0 13px; color: white; background: var(--ink); font-weight: 800; }
.finish-button { width: 100%; margin-top: 14px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.panel { min-height: 390px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 24px; }
.pipeline { display: grid; gap: 10px; }
.project-row { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 14px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.area-dot { width: 7px; height: 32px; border-radius: 99px; background: var(--green-soft); }
.project-row h3 { margin: 0 0 4px; font-size: 15px; }
.project-meta { color: var(--ink-soft); font-size: 11px; }
.row-actions { display: flex; gap: 7px; }
.small-action { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 750; }
.empty-list { padding: 42px 18px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 14px; }
.capture-form { display: flex; gap: 8px; }
.capture-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: white; }
.count-badge { display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 8px; color: white; background: var(--accent); border-radius: 999px; font-weight: 850; }
.inbox-list { margin-top: 14px; }
.inbox-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.inbox-item p { margin: 0; font-size: 14px; line-height: 1.4; }
.inbox-actions { display: flex; gap: 5px; }
.plain-icon { border: 0; color: var(--ink-soft); background: none; font-size: 12px; font-weight: 750; }
.completed-strip { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding: 24px 28px; color: var(--ink); background: var(--accent-soft); border-radius: 20px; }
.completed-strip h2 { margin: 0; font: 700 25px Georgia, serif; }
.completed-strip > p { max-width: 440px; margin: 0; color: #73564e; }
.empty-active { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px; border: 1px dashed #5a746c; border-radius: 16px; }
.empty-active p { margin: 0; color: #c9d6d2; }
.focus-studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; margin-top: 22px; padding: 31px; color: white; background: #294e45; border-radius: 24px; box-shadow: var(--shadow); }
.focus-copy h2 { max-width: 430px; margin: 8px 0 10px; font: 700 34px/1.08 Georgia, serif; }
.focus-copy > p:not(.eyebrow) { max-width: 470px; margin: 0; color: #c8d9d4; line-height: 1.55; }
.timer-task-label { display: grid; gap: 7px; margin-top: 24px; color: #abc2bc; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.timer-task-label select { width: 100%; border: 1px solid #56756d; border-radius: 11px; padding: 11px 12px; color: white; background: #214039; }
.cycle-stats { display: flex; gap: 24px; margin-top: 19px; color: #bad0ca; font-size: 12px; }
.cycle-stats strong { margin-right: 4px; color: white; font-size: 19px; }
.timer-card { padding: 25px; color: var(--ink); background: #fffaf0; border-radius: 20px; }
.timer-card[data-phase="break"] { background: #dce9df; }
.timer-phase-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.timer-phase { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.timer-card[data-phase="break"] .timer-phase { color: #38705f; }
.timer-rule { color: var(--ink-soft); font-size: 11px; }
.timer-display { margin: 20px 0 12px; font: 700 clamp(58px, 8vw, 96px)/.9 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -4px; }
.timer-progress { height: 8px; overflow: hidden; background: #e4dfd4; border-radius: 99px; }
.timer-progress > div { width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s linear; }
.timer-card[data-phase="break"] .timer-progress > div { background: #4e8a78; }
.timer-controls { display: flex; gap: 9px; margin-top: 21px; }
.timer-primary { flex: 1; }
.timer-secondary { padding-inline: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.habits-panel { margin-top: 22px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.habit-heading-actions { display: flex; align-items: center; gap: 13px; }
.habit-rule { color: var(--accent); font: italic 700 15px Georgia, serif; }
.habit-tracker { overflow-x: auto; }
.habit-grid { min-width: 650px; }
.habit-grid-header, .habit-line { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(7, 48px) 62px; align-items: center; gap: 7px; }
.habit-grid-header { padding: 0 0 9px; color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: center; }
.habit-grid-header span:first-child { text-align: left; }
.habit-line { min-height: 57px; border-top: 1px solid var(--line); }
.habit-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; }
.habit-delete { border: 0; color: #a39c90; background: none; opacity: 0; }
.habit-line:hover .habit-delete { opacity: 1; }
.habit-check { display: grid; place-items: center; width: 36px; height: 36px; margin: auto; border: 1px solid var(--line); border-radius: 50%; color: transparent; background: white; font-weight: 900; }
.habit-check.done { color: white; background: var(--ink); border-color: var(--ink); }
.habit-check.today { box-shadow: 0 0 0 3px var(--accent-soft); }
.habit-streak { text-align: center; color: var(--ink-soft); font-size: 11px; }
.habit-streak strong { display: block; color: var(--ink); font: 700 18px Georgia, serif; }
.habit-footnote { margin: 15px 0 0; color: var(--ink-soft); font-size: 12px; }
.build-plan-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; margin-top: 22px; padding: 30px; color: white; background: #172f2a; border-radius: 24px; }
.build-plan-intro h2 { max-width: 420px; margin: 7px 0 10px; font: 700 35px/1.08 Georgia, serif; }
.build-plan-intro > p:not(.eyebrow) { max-width: 440px; color: #bdcec9; line-height: 1.55; }
.deadline-card { display: inline-grid; gap: 3px; margin-top: 15px; padding: 14px 17px; color: var(--ink); background: var(--accent-soft); border-radius: 13px; }
.deadline-card span { font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.deadline-card strong { font: 700 20px Georgia, serif; }
.deadline-card small { color: #7b5d55; }
.build-checklist-card { padding: 22px; color: var(--ink); background: #fffaf0; border-radius: 18px; }
.build-progress-row { display: flex; justify-content: space-between; gap: 12px; }
.build-progress-row > strong { font: 700 22px Georgia, serif; }
.build-progress-row span { color: var(--ink-soft); font-size: 12px; }
.build-progress-track { height: 7px; margin: 14px 0; overflow: hidden; background: #e5dfd4; border-radius: 99px; }
.build-progress-track div { height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.build-check-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.build-check-item input { width: 18px; height: 18px; accent-color: var(--accent); }
.build-check-item span { font-size: 13px; line-height: 1.4; }
.build-check-item.done span { color: #8c958f; text-decoration: line-through; }
.build-delete { border: 0; color: #a39c90; background: none; }
.build-auto-note { margin: 13px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.dialog { width: min(610px, calc(100vw - 28px)); border: 0; border-radius: 24px; padding: 0; color: var(--ink); background: var(--card); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(13,31,27,.66); backdrop-filter: blur(4px); }
.dialog form { display: grid; gap: 17px; padding: 28px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-header h2 { margin: 0; font: 700 30px Georgia, serif; }
.close-button { border: 0; color: var(--ink-soft); background: none; font-size: 30px; line-height: 1; }
.dialog label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
.dialog input, .dialog textarea, .dialog select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: white; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.small-dialog { width: min(500px, calc(100vw - 28px)); }
.data-dialog-content { padding: 28px; }
.data-explainer { color: var(--ink-soft); line-height: 1.55; }
.data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.file-button { display: inline-flex; align-items: center; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.data-status { margin: 0; color: var(--ink-soft); font-size: 12px; }

@media (max-width: 820px) {
  .app-shell { padding: 0 18px 40px; }
  .hero { align-items: flex-start; padding: 40px 0 28px; }
  .hero h1 { font-size: 53px; letter-spacing: -2px; }
  .focus-score { display: none; }
  .active-card, .dashboard-grid, .focus-studio, .build-plan-panel, .advisor-layout { grid-template-columns: 1fr; }
  .active-section { padding: 22px; }
  .completed-strip { align-items: flex-start; gap: 12px; flex-direction: column; }
}

@media (max-width: 520px) {
  .save-state { display: none; }
  .topbar { height: 68px; }
  .topbar-actions { gap: 8px; }
  .brand > span:last-child { display: none; }
  .view-tab { padding: 7px 11px; }
  .view-tabs { max-width: 205px; overflow-x: auto; }
  .topbar-actions #dataButton { display: none; }
  .topbar-actions .button { padding: 9px 12px; }
  .hero h1 { font-size: 45px; }
  .section-heading { align-items: flex-start; }
  .active-title { font-size: 32px; }
  .focus-studio { padding: 22px; }
  .timer-phase-row { align-items: flex-start; flex-direction: column; }
  .timer-controls { flex-wrap: wrap; }
  .timer-primary { flex-basis: 100%; }
  .advisor-panel { padding: 20px; }
  .advisor-topline { align-items: flex-start; }
  .advisor-status { display: none; }
  .advisor-main { padding: 19px; }
  .advisor-ask form { align-items: stretch; flex-direction: column; }
  .todo-view { padding-top: 32px; }
  .todo-count { display: none; }
  .todo-quick-add { align-items: stretch; flex-direction: column; }
  .automation-view { padding-top: 32px; }
  .automation-explainer { grid-template-columns: 1fr; }
  .automation-form { grid-template-columns: 1fr; }
  .automation-card { grid-template-columns: auto 1fr auto; }
  .automation-status { grid-column: 2; text-align: left; }
  .friday-delegation { align-items: stretch; flex-direction: column; }
  .delegation-actions { align-items: stretch; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 6px 1fr; }
  .row-actions { grid-column: 2; }
}
