:root {
  --ink: #183a36;
  --ink-soft: #526a65;
  --cream: #f4efe5;
  --paper: #fffdf8;
  --line: #d9d8cc;
  --sage: #78917d;
  --sage-dark: #375e55;
  --clay: #c38162;
  --gold: #d1a34c;
  --blue: #6e91a1;
  --violet: #92849d;
  --shadow: 0 18px 55px rgba(31,57,52,.09);
  --radius: 22px;
  --slot-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; color: white; background: var(--ink); }
.skip-link:focus { top: 16px; }
.section-shell, .nav-shell, footer { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.hero { position: relative; min-height: 590px; overflow: hidden; background: radial-gradient(circle at 76% 48%, rgba(209,163,76,.19), transparent 19%), radial-gradient(circle at 90% 10%, rgba(110,145,161,.14), transparent 28%), linear-gradient(145deg, #edf0e7 0%, #f7f1e8 58%, #efe5d5 100%); border-bottom: 1px solid rgba(24,58,54,.08); }
.nav-shell { position: relative; z-index: 3; height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { font-weight: 850; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(24,58,54,.15); border-radius: 99px; color: var(--ink-soft); background: rgba(255,255,255,.4); font-size: .72rem; backdrop-filter: blur(8px); }
.privacy-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.hero-content { position: relative; z-index: 2; width: min(780px, calc(100% - 40px)); margin: 90px auto 70px; text-align: center; }
.eyebrow { margin: 0 0 13px; color: var(--sage-dark); font-size: .7rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-bottom: 24px; font: 500 clamp(3.1rem, 7vw, 5.7rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
h1 em { color: var(--clay); font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 670px; margin: 0 auto 28px; color: var(--ink-soft); font-size: 1.05rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 53px; padding: 13px 22px; border-radius: 99px; color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(24,58,54,.19); text-decoration: none; font-weight: 750; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #255149; }
.hero-rings { position: absolute; left: 50%; top: 82%; width: 900px; height: 900px; transform: translate(-50%,-50%); opacity: .3; pointer-events: none; }
.hero-rings i { position: absolute; inset: 0; border: 1px solid var(--sage); border-radius: 50%; }
.hero-rings i:nth-child(2) { inset: 110px; border-color: var(--clay); }
.hero-rings i:nth-child(3) { inset: 220px; border-color: var(--gold); }

.planner { padding: 92px 0 105px; }
.planner-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.planner-heading > div:first-child { max-width: 720px; }
h2 { margin-bottom: 12px; font: 500 clamp(2.25rem, 4.2vw, 3.8rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.planner-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); text-transform: capitalize; }
.planner-tools { display: flex; align-items: end; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.date-control { display: grid; gap: 4px; }
.date-control span { padding-left: 4px; color: var(--ink-soft); font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.date-control input, .secondary-button, .icon-button { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.55); }
.date-control input { padding: 8px 11px; }
.secondary-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; cursor: pointer; font-size: .75rem; font-weight: 750; }
.secondary-button:hover, .icon-button:hover { background: white; }
.secondary-button svg, .icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 42px; display: grid; place-items: center; cursor: pointer; }
.day-progress { display: grid; grid-template-columns: auto minmax(140px, 1fr); align-items: center; gap: 18px; margin: 34px 0 24px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.42); }
.day-progress strong { margin-right: 6px; font: 600 1.45rem Georgia, serif; }
.day-progress span { color: var(--ink-soft); font-size: .75rem; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: #daddd5; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--sage),var(--clay)); transition: width .35s; }
.planner-layout { display: grid; grid-template-columns: minmax(290px,.74fr) minmax(470px,1.26fr); gap: 22px; align-items: start; }
.planning-column { display: grid; gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 20px 20px 15px; }
.panel-heading > div:first-child { display: flex; align-items: center; gap: 9px; }
.panel-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: white; background: var(--sage-dark); font-size: .58rem; font-weight: 850; letter-spacing: .05em; }
.panel-heading h3 { margin: 0; font: 500 1.45rem Georgia, serif; }
.panel-heading small { max-width: 150px; padding-top: 4px; color: #778681; font-size: .67rem; text-align: right; }
.priority-list { border-top: 1px solid #e8e7df; }
.priority-row { display: grid; grid-template-columns: 36px 1fr 34px; align-items: center; min-height: 62px; border-bottom: 1px solid #e8e7df; }
.priority-row:last-child { border-bottom: 0; }
.priority-rank { display: grid; place-items: center; height: 100%; color: var(--clay); border-right: 1px solid #e8e7df; font: 600 1rem Georgia, serif; }
.priority-row input[type="text"] { width: 100%; height: 100%; padding: 12px; border: 0; outline: none; color: var(--ink); background: transparent; }
.check-control { display: grid; place-items: center; cursor: pointer; }
.check-control input, .task-check input { position: absolute; opacity: 0; pointer-events: none; }
.check-control i, .task-check i { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid #aeb8b2; border-radius: 50%; }
.check-control input:checked + i, .task-check input:checked + i { border-color: var(--sage-dark); background: var(--sage-dark); }
.check-control input:checked + i::after, .task-check input:checked + i::after { content: "✓"; color: white; font-size: .7rem; font-weight: 900; }
.task-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin: 0 18px 14px; }
.task-form input { min-width: 0; height: 43px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #faf8f2; }
.task-form input:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(55,94,85,.1); }
.task-form button { border: 0; border-radius: 11px; color: white; background: var(--ink); cursor: pointer; font-size: 1.3rem; }
.task-list { border-top: 1px solid #e8e7df; }
.task-item { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 4px; min-height: 50px; padding: 5px 9px 5px 12px; border-bottom: 1px solid #efeee7; }
.task-item.done .task-title { color: #89938f; text-decoration: line-through; }
.task-check { position: relative; display: grid; place-items: center; cursor: pointer; }
.task-title { min-width: 0; overflow-wrap: anywhere; font-size: .82rem; }
.task-action { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; }
.task-action:hover { background: var(--cream); }
.task-action svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-copy { margin: 0; padding: 22px 18px 25px; color: #8a9692; font-size: .76rem; text-align: center; }

.timeline-panel { min-width: 0; }
.timeline-heading { align-items: center; border-bottom: 1px solid #e8e7df; }
.legend { display: flex; justify-content: flex-end; gap: 8px 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .62rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.focus { background: var(--sage); }.dot.meeting { background: var(--blue); }.dot.personal { background: var(--clay); }.dot.pause { background: var(--gold); }
.timeline-help { margin: 0; padding: 10px 18px; color: #7a8883; background: #faf8f2; border-bottom: 1px solid #e8e7df; font-size: .68rem; }
.timeline-scroll { position: relative; max-height: 930px; overflow-y: auto; scrollbar-color: var(--sage) transparent; }
.timeline-grid { --slot-h: 56px; position: relative; display: grid; grid-template-columns: 72px minmax(0,1fr); grid-template-rows: repeat(36,var(--slot-h)); min-height: calc(36 * var(--slot-h)); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot-h) - 1px), #e6e6de calc(var(--slot-h) - 1px), #e6e6de var(--slot-h)); }
.time-label { z-index: 2; align-self: start; height: var(--slot-h); padding: 7px 9px; color: var(--ink-soft); border-right: 1px solid #e0e2da; background: rgba(250,248,242,.85); font: 600 .71rem/1 Inter,sans-serif; text-align: right; }
.time-label.half { color: #9ca6a2; font-size: .59rem; }
.empty-slot { z-index: 1; border: 0; border-radius: 0; background: transparent; cursor: crosshair; }
.empty-slot:hover, .empty-slot:focus-visible { outline: none; background: rgba(120,145,125,.08); }
.time-block { z-index: 4; min-height: 0; display: grid; grid-template-columns: 1fr 34px; margin: 3px 8px 3px 7px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--block-color) 55%, white); border-radius: 11px; background: color-mix(in srgb, var(--block-color) 15%, white); box-shadow: 0 3px 10px rgba(24,58,54,.08); }
.time-block.done { opacity: .58; }
.time-block.done .block-title { text-decoration: line-through; }
.block-main { min-width: 0; padding: 8px 10px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.block-title { display: block; overflow: hidden; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.block-meta { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .61rem; }
.block-done { border: 0; border-left: 1px solid rgba(24,58,54,.1); color: var(--ink-soft); background: transparent; cursor: pointer; }
.block-done:hover { background: rgba(255,255,255,.5); }
.now-line { position: absolute; left: 62px; right: 8px; z-index: 8; height: 2px; background: var(--clay); pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }

.review { padding: 90px 0; color: #f7f2e8; background: var(--ink); }
.review .eyebrow { color: #b7c9be; }
.review-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.review-heading h2 { margin: 0; }
.energy-control { min-width: 260px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
.energy-control label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #c6d2ce; font-size: .72rem; }
.energy-control strong { color: white; }
.energy-control input { width: 100%; accent-color: var(--gold); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-grid label span { display: block; margin-bottom: 8px; color: #d8e0dd; font-size: .75rem; font-weight: 750; }
.review-grid textarea { width: 100%; min-height: 120px; resize: vertical; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; outline: none; color: white; background: rgba(255,255,255,.06); }
.review-grid textarea:focus { border-color: #c8d5cc; background: rgba(255,255,255,.09); }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .75rem; }
footer a { color: var(--ink); font-weight: 750; text-decoration: none; }

.block-dialog { width: min(520px,calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(12,32,29,.3); }
.block-dialog::backdrop { background: rgba(17,39,36,.56); backdrop-filter: blur(3px); }
.block-dialog form { display: grid; gap: 17px; padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 18px; }
.dialog-kicker { color: var(--clay); font-size: .62rem; font-weight: 850; letter-spacing: .16em; }
.dialog-heading h2 { margin: 4px 0 0; font-size: 2rem; }
.dialog-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 1.25rem; }
.block-dialog label > span { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 800; }
.block-dialog input, .block-dialog select { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #faf8f2; }
.block-dialog input:focus, .block-dialog select:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(55,94,85,.1); }
.dialog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { min-height: 19px; margin: -5px 0 0; color: #a0443a; font-size: .72rem; }
.dialog-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.save-button, .delete-button { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 11px; cursor: pointer; font-size: .75rem; font-weight: 800; }
.save-button { color: white; background: var(--ink); }.delete-button { color: #9c4037; background: #f6e9e5; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; padding: 10px 17px; border-radius: 99px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .76rem; opacity: 0; transform: translate(-50%,90px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .planner-heading { align-items: start; flex-direction: column; }
  .planner-tools { justify-content: flex-start; }
  .planner-layout { grid-template-columns: 1fr; }
  .planning-column { grid-template-columns: 1fr 1fr; }
  .timeline-scroll { max-height: 790px; }
}

@media (max-width: 640px) {
  .section-shell, .nav-shell, footer { width: min(100% - 24px,1200px); }
  .hero { min-height: 570px; }
  .nav-shell { height: 72px; }
  .brand { gap: 7px; font-size: .79rem; }.brand img { width: 34px; height: 34px; }
  .privacy-pill { max-width: 128px; padding: 7px 9px; font-size: .6rem; }
  .hero-content { width: calc(100% - 26px); margin-top: 88px; }
  h1 { font-size: clamp(2.85rem,14vw,4.1rem); }
  .hero-content > p:not(.eyebrow) { font-size: .94rem; }
  .planner, .review { padding: 70px 0; }
  .planner-tools { width: 100%; }
  .date-control { flex: 1 1 165px; }.date-control input { width: 100%; }
  .day-progress { grid-template-columns: 1fr; gap: 8px; }
  .planning-column, .review-grid { grid-template-columns: 1fr; }
  .panel-heading { padding: 17px 15px 13px; }
  .panel-heading small { max-width: 125px; }
  .timeline-heading { align-items: start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .timeline-grid { grid-template-columns: 58px minmax(0,1fr); --slot-h: 54px; }
  .time-label { padding-inline: 6px; }
  .now-line { left: 50px; }
  .review-heading { align-items: start; flex-direction: column; }
  .energy-control { width: 100%; min-width: 0; }
  footer { min-height: 130px; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .dialog-row { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr 1fr; }
  .dialog-actions > span { display: none; }
}

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hero, .review, footer, .planner-tools, .day-progress, .task-form, .timeline-help, .empty-slot, .block-dialog, .toast, .task-action { display: none !important; }
  .planner { padding: 0; width: 100%; }
  .planner-heading { display: block; margin-bottom: 8px; }
  .planner-heading h2 { font-size: 1.6rem; }
  .planner-layout { grid-template-columns: .68fr 1.32fr; gap: 8px; }
  .planning-column { gap: 8px; }
  .panel { box-shadow: none; border-radius: 8px; }
  .panel-heading { padding: 7px; }.panel-heading h3 { font-size: 1rem; }.panel-heading small { display: none; }
  .panel-number { width: 20px; height: 20px; }
  .priority-row { min-height: 30px; }.priority-row input[type="text"] { padding: 4px 7px; font-size: .7rem; }
  .task-item { min-height: 26px; padding-block: 2px; }.task-title { font-size: .65rem; }.empty-copy { padding: 8px; }
  .timeline-scroll { max-height: none; overflow: visible; }
  .timeline-grid { --slot-h: 17px; grid-template-columns: 42px minmax(0,1fr); }
  .time-label { padding: 2px 4px; font-size: .48rem; }.time-label.half { font-size: .42rem; }
  .time-block { margin: 1px 3px; border-radius: 4px; grid-template-columns: 1fr; }.block-main { padding: 2px 5px; }.block-title { font-size: .52rem; }.block-meta { display: none; }.block-done { display: none; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
