@import url("https://fonts.googleapis.com/css2?family=Allura&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --surface: #fffdfa;
  --green: #244137;
  --deep: #182e26;
  --ink: #222d26;
  --muted: #5e655d;
  --gold: #8a653a;
  --line: #e1d8cc;
  --danger: #8d382d;
  --sans: "DM Sans", system-ui, sans-serif;
  --script: "Allura", "Instrument Serif", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 16px 48px #24221913;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
p, h2, h3, strong, small { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #936b39; outline-offset: 4px; }
::selection { background: #dbe6d7; color: var(--deep); }

.container { width: min(100% - 6rem, 1192px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 0.8rem; left: 1rem; background: var(--surface); padding: 0.8rem 1rem; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; }
.brand { position: relative; display: block; width: 100px; aspect-ratio: 788 / 485; overflow: hidden; }
.brand-logo { display: block; position: absolute; top: -38.56%; left: -14.21%; width: 122.08%; height: auto; }
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a { padding: 0.5rem 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.main-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.35rem; }
.header-cta { justify-self: end; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 42px; padding: 0.62rem 0.94rem; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--ink); font-size: 0.85rem; font-weight: 700; line-height: 1.3;
  text-align: center; transition: background-color 160ms, border-color 160ms, color 160ms;
}
.button span[aria-hidden] { font-size: 1.12rem; line-height: 1; }
.button-primary { background: var(--green); border-color: var(--green); color: #fffdf5; }
.button-primary:hover { background: var(--deep); border-color: var(--deep); }
.button-outline { border-color: #8e9a8e; color: var(--green); }
.button-outline:hover { border-color: var(--green); background: #e9eee7; }
.button-text { color: var(--green); padding-inline: 0.35rem; }
.button-text:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.button-quiet { background: #f5f1eb; border-color: #e9e1d6; color: var(--deep); }
.button-quiet:hover { background: #ebe5da; }
.button-light { background: #fbf2e4; color: var(--deep); }
.button-light:hover { background: white; }
.button-danger { background: var(--danger); border-color: var(--danger); color: white; }
.button-danger:hover { background: #722b23; }
.button-danger-text { color: var(--danger); }
.button-danger-text:hover { background: #faebe7; }
.text-link { background: none; border: 0; padding: 0.3rem 0; color: var(--green); font-size: 0.86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; }
.arrow-ne { position: relative; display: inline-block; width: 0.68rem; height: 0.68rem; flex: 0 0 0.68rem; vertical-align: -0.02rem; }
.arrow-ne::before, .arrow-ne::after { content: ""; position: absolute; }
.arrow-ne::before { top: 0; right: 0; width: 0.39rem; height: 0.39rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-ne::after { width: 0.84rem; height: 1.5px; right: 0; top: 0.02rem; transform: rotate(-45deg); transform-origin: right center; background: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: clamp(2.5rem, 6.8vw, 6.5rem); align-items: center; min-height: 610px; padding-block: 3.3rem 4.2rem; }
.eyebrow { color: var(--gold); font-size: 0.71rem; letter-spacing: 0.17em; font-weight: 700; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 0.58rem; margin-bottom: 1.05rem; }
.hero-kicker span { width: 22px; height: 1px; background: #b39064; }
.hero h1 { font: 400 clamp(3.2rem, 6.1vw, 6.05rem)/0.94 var(--serif); color: var(--deep); letter-spacing: -0.045em; }
.script-accent { font-family: var(--script); font-size: 1.08em; font-weight: 400; font-style: normal; line-height: 0.9; letter-spacing: 0; color: var(--gold); }
.hero h1 .script-accent { white-space: nowrap; }
.signature-inner .script-accent { color: #ead2b0; }
.hero-lead { max-width: 27rem; color: #4d594f; font-size: clamp(1rem, 1.4vw, 1.13rem); line-height: 1.63; margin-top: 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; margin-top: 1.75rem; }
.hero-actions .button { min-height: 48px; font-size: 0.91rem; }
.hero-actions .button-primary { padding-inline: 1.12rem; }
.hero-note { margin-top: 0.8rem; color: var(--muted); font-size: 0.79rem; }
.hero-figure { position: relative; isolation: isolate; }
.hero-photo-frame { position: relative; isolation: isolate; }
.hero-photo-frame::before { content: ""; position: absolute; z-index: -1; inset: 10px -10px -10px 10px; border: 1px solid #cdb596; border-radius: 145px 16px 16px 16px; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: 145px 16px 16px 16px; background: #e4d7c2; }
.hero-preview { position: relative; margin: 1rem 0 0 -1.4rem; width: min(100%, 350px); padding: 0.95rem; border: 1px solid #fff8; border-radius: 13px; background: #fffdf6; box-shadow: 0 16px 42px #1b201632; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 0.55rem; }
.preview-heading > span:first-child { font: 400 1.5rem/1 var(--serif); color: var(--deep); }
.example-tag { color: #6f4b25; background: #f2e7d8; border-radius: 20px; font-size: 0.63rem; font-weight: 700; padding: 0.14rem 0.44rem; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.preview-stats div { min-width: 0; padding: 0.38rem 0.42rem; background: #f5efe4; border-radius: 5px; }
.preview-stats div:last-child { background: #e8eee4; }
.preview-stats span { display: block; color: var(--muted); font-size: 0.62rem; white-space: nowrap; }
.preview-stats strong { display: block; font-weight: 700; font-size: clamp(0.74rem, 1.15vw, 0.94rem); letter-spacing: -0.04em; color: var(--deep); white-space: nowrap; }
.preview-bottom { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.65rem; }
.preview-chart { flex: 0 0 35px; height: 35px; border-radius: 50%; background: conic-gradient(#39584a 0 67.45%, #9a7770 67.45% 81.96%, #b18762 81.96% 93.73%, #b6976e 93.73% 96.86%, #9d7791 96.86% 100%); display: grid; place-items: center; }
.preview-chart::after { content: ""; width: 19px; height: 19px; border-radius: 50%; background: #fffdf6; }
.preview-bottom b, .preview-bottom span { display: block; }
.preview-bottom b { font-size: 0.72rem; }
.preview-bottom span { font-size: 0.64rem; color: var(--muted); }

.planner-section { background: #f0e9df; border-block: 1px solid #e5dbcf; padding-block: 3.35rem 2.55rem; scroll-margin-top: 1.2rem; }
.planner-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; }
.planner-intro h2, .how-heading h2, .signature-inner h2 { color: var(--deep); font: 400 clamp(2.85rem, 5.1vw, 4.6rem)/0.98 var(--serif); letter-spacing: -0.028em; margin-top: 0.34rem; }
.planner-intro p:not(.eyebrow) { color: var(--muted); margin-top: 0.52rem; font-size: 0.94rem; }
.planner-intro h2:focus { outline: none; }
.planner-actions { flex: 0 0 auto; }
#planner-body { min-width: 0; background: var(--surface); border: 1px solid #e4d9cc; border-radius: 16px; box-shadow: 0 14px 32px #493b2910; }
.plan-empty { min-height: 270px; text-align: center; padding: 2.1rem 1rem 2.3rem; display: grid; place-items: center; align-content: center; gap: 0.55rem; }
.empty-symbol { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: #f2e9dc; color: var(--gold); font-size: 1.5rem; margin-bottom: 0.2rem; }
.plan-empty h3 { color: var(--deep); font: 400 clamp(1.8rem, 3.1vw, 2.75rem)/1.04 var(--serif); }
.plan-empty p { color: var(--muted); font-size: 0.91rem; max-width: 29rem; }
.empty-actions { display: flex; justify-content: center; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.4rem; }
.planner-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.45rem 1rem; padding: 0.7rem 0.15rem 0; }
.planner-foot p { color: var(--muted); font-size: 0.79rem; }
.planner-data-actions { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.planner-data-actions .text-link { font-size: 0.79rem; }
.storage-dot { display: inline-block; width: 6px; height: 6px; margin-right: 0.24rem; border-radius: 50%; background: #557a58; vertical-align: 0.1em; }
.notice, .demo-notice { margin-bottom: 0.82rem; padding: 0.62rem 0.85rem; border-radius: 8px; font-size: 0.88rem; }
.notice { color: #7d3329; background: #faeae6; border: 1px solid #eacdc5; }
.demo-notice { display: flex; justify-content: space-between; align-items: center; gap: 0.85rem; color: var(--deep); background: #e6eee4; border: 1px solid #cfddce; }
.demo-notice .button { flex-shrink: 0; min-height: 34px; padding: 0.4rem 0.65rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); }
.tabs button { color: var(--muted); min-height: 40px; padding: 0.44rem 0.85rem; font-size: 0.88rem; font-weight: 700; border: 0; border-radius: 7px; background: none; }
.tabs button:hover { background: #f4efe7; }
.tabs button[aria-selected="true"] { background: #e6ede4; color: var(--green); }
#tab-panel { min-width: 0; padding: 1.15rem; }
#tab-panel:focus-visible { outline-offset: -3px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.metric { min-width: 0; background: #f9f5ed; border: 1px solid #efe7db; border-radius: 9px; padding: 0.85rem; color: var(--deep); }
.metric span { display: block; font-weight: 700; font-size: 0.82rem; }
.metric strong { display: block; margin: 0.18rem 0; font: 400 clamp(1.8rem, 3.2vw, 2.9rem)/1.04 var(--serif); letter-spacing: -0.025em; }
.metric small { display: block; color: var(--muted); font-size: 0.72rem; }
.metric-highlight { background: #e9efe6; border-color: #dce6d9; }
.small-metrics { margin-bottom: 1rem; }
.small-metrics .metric strong { font-size: 2.15rem; }
.budget-track { margin-block: 0.9rem 0.95rem; padding: 0.6rem 0.76rem; background: #f9f6f0; border-radius: 9px; }
.budget-track > div { display: flex; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.32rem; font-size: 0.77rem; color: var(--muted); }
.budget-track strong { color: var(--green); text-align: right; }
.budget-track > .budget-margin { margin: 0.44rem 0 0; }
.budget-track > .budget-margin.overdue-text, .budget-margin.overdue-text strong { color: var(--danger); }
progress { width: 100%; display: block; border: 0; height: 7px; border-radius: 10px; background: #e4e8de; appearance: none; color: var(--green); overflow: hidden; }
progress::-webkit-progress-bar { background: #e4e8de; }
progress::-webkit-progress-value { background: #547660; border-radius: 10px; }
progress::-moz-progress-bar { background: #547660; border-radius: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.widget { border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem; min-width: 0; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.55rem; margin-bottom: 0.45rem; }
.widget-heading h3 { color: var(--deep); font: 400 1.75rem/1.06 var(--serif); }
.widget-heading .button { min-height: 32px; padding-block: 0.28rem; white-space: nowrap; font-size: 0.75rem; }
.chart-content { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 0.8rem; padding-block: 0.5rem; }
.donut { width: 105px; height: 105px; border-radius: 50%; background: var(--segments); display: grid; place-items: center; }
.donut span { width: 65px; height: 65px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--green); font: 400 1.65rem/1 var(--serif); }
.chart-legend, .mini-list, .item-list { list-style: none; margin: 0; padding: 0; }
.chart-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 0.42rem; align-items: start; padding: 0.18rem 0; font-size: 0.78rem; }
.chart-legend i { width: 7px; height: 7px; margin-top: 0.36rem; border-radius: 50%; background: var(--color); }
.chart-legend span { overflow-wrap: anywhere; }
.chart-legend strong { color: var(--deep); }
.mini-list li { display: flex; gap: 0.7rem; justify-content: space-between; align-items: center; padding: 0.44rem 0; border-bottom: 1px solid #eee7dd; font-size: 0.82rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list small { display: block; color: var(--muted); font-size: 0.74rem; }
.mini-list b { color: var(--green); text-align: right; overflow-wrap: anywhere; }
.widget-note { margin-top: 0.35rem; color: var(--muted); font-size: 0.8rem; }
.payment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin-block: 0.5rem; }
.payment-summary > div { padding: 0.48rem 0.6rem; background: #f9f5ed; border-radius: 6px; color: var(--green); }
.payment-summary > .overdue-text { color: var(--danger); background: #fbefe9; }
.payment-summary span, .payment-summary strong { display: block; }
.payment-summary span { font-size: 0.76rem; }
.payment-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.guest-snapshot { display: flex; gap: 0.72rem; align-items: center; font-size: 0.82rem; }
.guest-snapshot strong { color: var(--green); font: 400 2.65rem/1 var(--serif); }
.guest-snapshot small { display: block; color: var(--muted); font-size: 0.74rem; }

.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.section-heading h3 { color: var(--deep); font: 400 clamp(1.9rem, 3.4vw, 2.5rem)/1 var(--serif); }
.section-heading p { margin-top: 0.35rem; color: var(--muted); font-size: 0.88rem; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.45rem; }
.filters { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.filter { display: grid; gap: 0.2rem; max-width: 100%; }
.filter-search { width: min(100%, 290px); }
.filter label { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.filter input, .filter select, .field input, .field select, .field textarea {
  width: 100%; min-width: 0; border: 1px solid #cfc5b8; border-radius: 6px; color: var(--ink); background: #fffdfa;
  padding: 0.5rem 0.62rem; min-height: 42px; font-size: 0.88rem;
}
.filter input::placeholder, .field input::placeholder { color: #686760; }
.section-empty { border-radius: 8px; padding: 0.9rem; background: #f8f4ec; color: var(--muted); font-size: 0.85rem; }
.section-empty-title { font-weight: 700; color: var(--deep); margin-bottom: 0.16rem; }
.section-empty .button { margin-top: 0.62rem; }
.panel-note { font-size: 0.77rem; color: var(--muted); margin-top: 0.8rem; }
.item-list { border-top: 1px solid #e9e1d5; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, auto) minmax(6rem, auto) auto; align-items: center; gap: 0.78rem; padding: 0.68rem 0.12rem; border-bottom: 1px solid #e9e1d5; font-size: 0.86rem; }
.expense-row { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr) auto; }
.task-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.item-info { min-width: 0; }
.item-info strong, .item-info small, .row-amounts small, .row-amounts strong { display: block; }
.item-info small, .row-amounts small { color: var(--muted); font-size: 0.75rem; }
.row-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.row-amounts strong, .payment-amount { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.24rem 0.55rem; justify-content: flex-end; }
.row-actions .button { min-height: 36px; padding-block: 0.36rem; font-size: 0.77rem; }
.status { display: inline-block; border-radius: 20px; padding: 0.22rem 0.57rem; color: #46534a; background: #eef0e9; font-size: 0.73rem; font-weight: 700; }
.status-paid, .status-confirmed, .status-booked { background: #e6eee4; color: #355440; }
.status-pending, .status-waiting, .status-quoted, .status-requested { background: #f5ead8; color: #714d2d; }
.status-overdue, .status-declined { background: #f9e8e2; color: var(--danger); }
.overdue-text, .mini-list .overdue-text { color: var(--danger); }
.muted { color: var(--muted); }
.task-label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; overflow-wrap: anywhere; }
.task-label input { appearance: none; display: grid; place-content: center; width: 1.1rem; height: 1.1rem; margin: 0.1rem; flex: 0 0 auto; border: 1px solid #7c8e81; border-radius: 4px; }
.task-label input:checked { background: var(--green); border-color: var(--green); }
.task-label input:checked::before { content: ""; width: 0.53rem; height: 0.3rem; border-bottom: 2px solid white; border-left: 2px solid white; transform: rotate(-45deg) translateY(-1px); }
.is-done .task-label span { text-decoration: line-through; color: var(--muted); }

.guide-note { margin-top: 0; }
.phase-list { display: grid; gap: 0.45rem; }
.phase-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.phase-current { border-color: #c9d6c8; background: #f2f5ee; }
.phase-card summary, .phase-index > summary { cursor: pointer; list-style: none; }
.phase-card summary::-webkit-details-marker, .phase-index > summary::-webkit-details-marker { display: none; }
.phase-card summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 9px; }
.phase-card summary::after, .phase-index > summary::after { content: ""; width: 0.46rem; height: 0.46rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); flex: none; }
.phase-card[open] > summary::after, .phase-index[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.phase-title { min-width: 0; flex: 1; }
.phase-title > * { display: block; }
.phase-label, .phase-title small { color: var(--muted); font-size: 0.76rem; }
.phase-title strong { color: var(--deep); font: 400 1.45rem/1.12 var(--serif); margin-block: 0.12rem; }
.phase-meta { display: flex; align-items: center; gap: 0.48rem; flex-wrap: wrap; justify-content: end; }
.phase-count { font-size: 0.8rem; color: var(--green); font-variant-numeric: tabular-nums; }
.phase-card .item-list { padding-inline: 0.85rem; }
.phase-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 0.7rem; padding: 0.3rem 0; font-size: 0.88rem; }
.phase-task + .phase-task { border-top: 1px solid var(--line); }
.phase-task .task-label, .phase-task .button { min-height: 40px; }
.phase-task .button { font-size: 0.74rem; }
.phase-task.is-skipped .task-label { color: var(--muted); cursor: default; }
.phase-task.is-skipped .task-label input { opacity: 0.5; }
.phase-index { margin-top: 0.62rem; }
.phase-index > summary { display: flex; gap: 0.7rem; align-items: center; min-height: 40px; color: var(--green); font-size: 0.86rem; font-weight: 700; }
.own-tasks { margin-top: 1rem; }
.own-tasks h4 { margin: 0 0 0.45rem; color: var(--deep); font: 400 1.55rem/1.1 var(--serif); }
.partner-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.55rem 0.9rem; padding: 0.8rem; margin-bottom: 0.85rem; background: #f2f5ee; border: 1px solid #dce6d9; border-radius: 8px; }
.partner-contact strong { color: var(--green); }
.partner-contact p { color: var(--muted); font-size: 0.84rem; }

.choice-switch { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.choice-switch .button[aria-pressed="true"] { background: #e6ede4; border-color: #bbcfbe; color: var(--green); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.68rem; list-style: none; margin: 0; padding: 0; }
.choice-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 0.85rem; border: 1px solid var(--line); border-radius: 9px; background: #fcf8f1; }
.choice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--green); font-weight: 700; overflow-wrap: anywhere; }
.choice-card h4 { margin: 0.42rem 0 0.16rem; color: var(--deep); font: 400 1.65rem/1.12 var(--serif); overflow-wrap: anywhere; }
.choice-byline, .choice-notes { color: var(--muted); font-size: 0.83rem; }
.choice-notes { margin-top: 0.35rem; white-space: pre-line; }
.choice-actions { display: flex; align-items: center; gap: 0.5rem 0.85rem; flex-wrap: wrap; width: 100%; margin-top: auto; padding-top: 0.5rem; }
.choice-actions .button { padding-inline: 0; min-height: 40px; }
.choice-actions .text-link { min-height: 40px; display: inline-flex; align-items: center; gap: 0.35rem; }
.guide-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: end; max-width: 680px; }
.guide-result { margin-top: 0.8rem; padding: 0.85rem; border: 1px solid #d4e0d1; border-radius: 8px; background: #f2f5ee; color: var(--deep); }
.guide-result p { margin-top: 0.25rem; font-size: 0.91rem; white-space: pre-line; }
.guide-topics { margin-top: 1.2rem; }
.guide-topics h4 { margin: 0 0 0.5rem; font: 400 1.6rem/1.12 var(--serif); color: var(--deep); }
.guide-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0.45rem; }
.guide-topic { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.guide-topic summary { cursor: pointer; padding: 0.65rem 0.72rem; font-weight: 700; color: var(--green); font-size: 0.85rem; }
.guide-topic p { padding: 0 0.72rem 0.7rem; font-size: 0.86rem; color: var(--muted); }

.how-section { padding-block: 4.2rem 4.1rem; scroll-margin-top: 1rem; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 2.65rem; }
.how-heading h2 { font-size: clamp(2.8rem, 4.1vw, 4.35rem); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; padding: 0; margin: 0; list-style: none; }
.how-steps li { border-top: 1px solid #cdb596; padding-top: 0.8rem; }
.how-steps h3 { color: var(--deep); font: 400 1.55rem/1.08 var(--serif); }
.how-steps p { color: var(--muted); font-size: 0.85rem; margin-top: 0.45rem; }
.signature-section { background: var(--green); color: #fffaf1; }
.signature-inner { padding-block: 2.55rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.signature-inner .eyebrow { color: #ead2b0; }
.signature-inner h2 { color: #fffaf1; font-size: clamp(2.55rem, 3.8vw, 3.75rem); }
.signature-inner p:not(.eyebrow) { color: #f3eadb; margin-top: 0.45rem; font-size: 0.94rem; }
.signature-inner .button { flex-shrink: 0; min-height: 46px; }
.footer-inner { min-height: 95px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.footer-inner p { color: var(--muted); font-size: 0.82rem; }
.footer-inner .brand { width: 81px; }

.dialog { width: min(calc(100% - 1.5rem), 510px); max-height: calc(100% - 1.5rem); overflow: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: #17231d91; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 0.55rem; margin-bottom: 0.65rem; }
.dialog-head h2 { color: var(--deep); font: 400 2.45rem/1 var(--serif); }
.close-button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 7px; color: var(--deep); background: #f1ebe1; font-size: 1.5rem; line-height: 1; }
.close-button:hover { background: #e6ddd0; }
.dialog-description { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0 0.75rem; }
.form-fields { display: grid; gap: 0.65rem; }
.field { display: grid; gap: 0.23rem; min-width: 0; }
.field span { font-size: 0.8rem; font-weight: 700; color: var(--deep); }
.field textarea { resize: vertical; min-height: 65px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.form-hint { color: var(--muted); font-size: 0.79rem; }
.form-error { color: var(--danger); background: #faebe6; border-radius: 6px; padding: 0.48rem 0.62rem; margin-top: 0.65rem; font-size: 0.82rem; }
.dialog-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.dialog-actions div { display: flex; gap: 0.45rem; margin-left: auto; }
.toast { position: fixed; z-index: 3; bottom: 1.1rem; right: 1.1rem; max-width: min(360px, calc(100vw - 2.2rem)); border-radius: 8px; padding: 0.7rem 0.9rem; background: var(--deep); color: #fffdf7; box-shadow: var(--shadow); font-size: 0.88rem; }

@media (max-width: 1060px) {
  .container { width: min(100% - 4rem, 1192px); }
  .hero { gap: 3.2rem; min-height: 530px; }
  .hero h1 { font-size: clamp(3.15rem, 7.2vw, 5.35rem); }
  .chart-content { grid-template-columns: 82px minmax(0, 1fr); }
  .donut { width: 82px; height: 82px; }
  .donut span { width: 50px; height: 50px; }
}
@media (max-width: 810px) {
  .container { width: calc(100% - 2.5rem); }
  .hero { gap: 2rem; min-height: unset; padding-block: 2.7rem 3.2rem; }
  .hero h1 { font-size: clamp(2.85rem, 7vw, 4.6rem); }
  .hero-photo-frame::before, .hero-photo { border-top-left-radius: 100px; }
  .hero-preview { margin-left: -0.55rem; width: min(100%, 330px); }
  .main-nav { gap: 1.15rem; }
  .how-section { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 3.1rem; }
  .how-heading br { display: none; }
  .item-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .item-row .row-actions { grid-column: 1 / -1; }
  .expense-row { grid-template-columns: minmax(0, 1fr) minmax(245px, 1fr); }
  .task-row .row-actions { grid-column: auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .header-cta { min-height: 39px; padding-inline: 0.7rem; }
  .brand { width: 84px; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.15rem 2.75rem; }
  .hero h1 { font-size: clamp(2.9rem, 11.1vw, 4.8rem); }
  .hero-lead { margin-top: 0.9rem; }
  .hero-actions { margin-top: 1.1rem; gap: 0.36rem 0.67rem; }
  .hero-actions .button { min-height: 44px; }
  .hero-figure { width: calc(100% - 0.45rem); margin-left: 0.08rem; }
  .hero-photo-frame::before { inset: 7px -7px -7px 7px; }
  .hero-photo-frame::before, .hero-photo { border-top-left-radius: 90px; }
  .hero-preview { margin-left: 0.65rem; padding: 0.67rem; width: min(calc(100% - 1.3rem), 303px); }
  .planner-section { padding-block: 2.5rem 1.7rem; }
  .planner-intro { align-items: start; flex-wrap: wrap; margin-bottom: 0.8rem; }
  .planner-intro h2 { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .planner-intro p:not(.eyebrow) { font-size: 0.85rem; }
  .planner-foot { gap: 0.25rem 0.9rem; }
  .plan-empty { min-height: 245px; padding-block: 1.45rem; }
  .demo-notice { flex-wrap: wrap; gap: 0.45rem; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.16rem; padding: 0.55rem; }
  .tabs button { padding-inline: 0.12rem; min-height: 38px; font-size: 0.78rem; }
  #tab-panel { padding: 0.65rem; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .metric { padding: 0.55rem; }
  .metric strong { font-size: clamp(1.45rem, 6.2vw, 2.5rem); }
  .metric small { font-size: 0.68rem; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 0.58rem; }
  .widget { padding: 0.65rem; }
  .section-heading { display: block; }
  .section-actions { justify-content: start; margin-top: 0.58rem; }
  .section-actions .button, .row-actions .button { min-height: 40px; }
  .item-row { gap: 0.34rem 0.52rem; grid-template-columns: minmax(0, 1fr) auto; }
  .item-row .row-actions { grid-column: auto; }
  .expense-row .item-info, .expense-row .row-amounts, .task-row .task-label { grid-column: 1 / -1; }
  .expense-row .row-actions { grid-column: 1 / -1; justify-content: start; }
  .row-actions { gap: 0.2rem 0.32rem; }
  .task-row .row-actions { grid-column: 2; }
  .phase-card summary { padding: 0.62rem; }
  .phase-meta { flex-direction: column; align-items: end; gap: 0.18rem; }
  .phase-card .item-list { padding-inline: 0.62rem; }
  .phase-task { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phase-task .button { justify-self: start; margin-left: 1.9rem; }
  .choice-grid, .guide-topic-list { grid-template-columns: 1fr; }
  .guide-form { grid-template-columns: 1fr; }
  .guide-form .button { justify-self: start; }
  .filter input, .filter select, .field input, .field select, .field textarea { font-size: 1rem; }
  .how-steps { grid-template-columns: 1fr; gap: 0.85rem; }
  .how-steps li { padding-top: 0.55rem; }
  .how-steps p { margin-top: 0.28rem; }
  .signature-inner { flex-wrap: wrap; padding-block: 1.9rem; }
  .footer-inner p { order: 2; flex: 1 0 100%; }
}
@media (max-width: 365px) {
  .container { width: calc(100% - 1.4rem); }
  .hero h1 { font-size: 2.63rem; }
  .tabs button { font-size: 0.72rem; }
  .chart-content { grid-template-columns: 58px minmax(0, 1fr); gap: 0.48rem; }
  .donut { width: 58px; height: 58px; }
  .donut span { width: 36px; height: 36px; font-size: 1.2rem; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.priority-card {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.65rem 1.15rem;
  padding: 0.95rem 1.05rem; margin-bottom: 0.85rem; border: 1px solid #ded1bc; border-radius: 10px;
  background: linear-gradient(115deg, #f4e9d9, #faf6ed 80%);
}
.priority-card h3 { margin: 0.22rem 0; color: var(--deep); font: 400 1.8rem/1.12 var(--serif); }
.priority-card p:last-child { color: var(--muted); font-size: 0.86rem; }
.wizard-progress { display: block; width: 100%; height: 0.4rem; accent-color: var(--green); margin: 0 0 1rem; }
.wizard-choices { display: grid; gap: 0.4rem; padding: 0; margin: 0; border: 0; }
.wizard-choices label {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.58rem 0.65rem; border: 1px solid var(--line);
  border-radius: 7px; cursor: pointer; font-size: 0.9rem;
}
.wizard-choices input { accent-color: var(--green); }
.wizard-choices label:has(input:checked) { border-color: #9faf9b; background: #edf2e9; }
.week-card { margin-bottom: 0.85rem; }
.week-content { padding: 0 0.85rem 0.75rem; }
.simulator-result { margin-top: 0.8rem; padding: 0.8rem; border: 1px solid #cfdcce; border-radius: 8px; background: #f1f5ee; }
.simulator-result > strong { font: 400 2rem/1.15 var(--serif); color: var(--deep); }
.simulator-result p { margin-top: 0.26rem; font-size: 0.83rem; }
.import-preview { color: var(--muted); font-size: 0.88rem; padding-left: 1.2rem; }
.day-live { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.7rem; }
.day-card { border: 1px solid var(--line); border-radius: 10px; padding: 0.86rem; background: var(--surface); }
.day-current { border-color: #c5d5c5; background: #eef3ea; }
.day-card h4 { margin: 0; font: 400 1.65rem/1.08 var(--serif); color: var(--deep); overflow-wrap: anywhere; }
.day-timeline { list-style: none; display: grid; gap: 0.48rem; padding: 0; margin: 0; }
.day-row { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr) auto; align-items: start; gap: 0.5rem; }
.day-done { background: #f0f2ea; }
.day-done h4 { color: var(--muted); }
.moment-time { display: grid; color: var(--gold); }
.moment-time time { font: 400 1.9rem/1.08 var(--serif); }
.moment-time small { color: var(--muted); font: 600 0.7rem/1.2 var(--sans); }
.day-live .moment-time { margin: 0.4rem 0; }
.day-live .moment-time time { font-size: 2.4rem; }
.moment-details { margin-top: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.moment-details strong { color: var(--deep); }
.day-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.8rem; }
.floor-wrap { margin-block: 0.75rem; }
.floor-wrap .panel-note { margin: 0 0 0.4rem; }
.floor-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.floorplan {
  position: relative; min-width: 400px; height: 385px;
  background: repeating-linear-gradient(0deg, #e9e1d7 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #e9e1d7 0 1px, transparent 1px 24px), #faf7f1;
}
.floor-table {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-content: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid #92a48e; background: #edf1e7;
  color: var(--deep); font-size: 0.74rem; text-align: center; touch-action: none; cursor: grab; user-select: none;
  box-shadow: 0 4px 12px #282d1b16;
}
.floor-table:active { cursor: grabbing; z-index: 1; }
.floor-table strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 51px; }
.floor-table.long { width: 72px; height: 44px; border-radius: 5px; }
.floor-table.over-capacity { border-color: #c07964; background: #f9e9e0; }
.table-groups { display: grid; gap: 0.45rem; }
.table-groups .mini-list, .table-actions { padding-inline: 0.85rem; }
.table-actions { display: flex; justify-content: end; }
.legacy-tables { margin: 0.5rem 0; }
@media (max-width: 620px) {
  .day-live { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .day-row .row-actions { grid-column: 2; justify-content: start; }
  .section-actions { justify-content: start; }
}

.cloud-account {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem; font-size: 0.85rem;
}
.cloud-account small { display: block; color: var(--muted); }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.selection-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.6rem;
  margin: 0.5rem 0; color: var(--muted); font-size: 0.83rem;
}
.selection-bar > div { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.guest-row { grid-template-columns: 2rem minmax(0, 1fr) minmax(4rem, auto) minmax(6rem, auto) auto; }
.guest-checkbox { justify-content: center; min-height: 38px; }
.selected-guest { background: #f2f5ee; }
.gift-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.gift-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.comparison-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.65rem; }
.comparison-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.comparison-table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; font-size: 0.86rem; }
.comparison-table th, .comparison-table td { min-width: 9rem; padding: 0.7rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table thead th { background: #f3eee4; }
.comparison-table th:first-child { position: sticky; left: 0; z-index: 1; background: #f8f4eb; box-shadow: 1px 0 0 var(--line); }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table tbody th .button { display: block; padding-inline: 0; min-height: 32px; }
.comparison-table td small { display: block; margin-top: 0.3rem; color: var(--muted); }
.offer-included { background: #e8f1e5; color: #2c5b39; }
.offer-extra { background: #f6ebd6; color: #744e22; }
.offer-unavailable { background: #faece6; color: var(--danger); }
.comparison-field { min-width: 0; display: grid; gap: 0.4rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.comparison-field legend { color: var(--deep); font-weight: 700; font-size: 0.87rem; }
.comparison-suppliers { max-height: 240px; overflow: auto; }
.comparison-suppliers small { display: block; color: var(--muted); font-size: 0.74rem; }
@media (max-width: 700px) {
  .guest-row { grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 0.15rem 0.5rem; }
  .guest-checkbox { grid-row: span 2; align-self: stretch; }
  .guest-row .row-actions { grid-column: 3; }
  .gift-sections { grid-template-columns: 1fr; }
}
