:root {
  --bg: #f5f1e8;
  --surface: #fbf9f4;
  --card: #fefdfa;
  --ink: #2e2a25;
  --ink-soft: #524b42;
  --muted: #857c6f;
  --line: #e6dfd1;
  --line-soft: #efe9dd;
  --sage: #6f7f65;
  --sage-deep: #56644e;
  --sage-soft: #e5eadd;
  --terra: #b5694a;
  --terra-soft: #f4e3d9;
  --ochre: #b08637;
  --ochre-soft: #f4ead2;
  --slate: #5a7272;
  --slate-soft: #dfe8e6;
  --danger: #a8483a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 50, 35, .04), 0 8px 24px -12px rgba(60, 50, 35, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.005em; }
h1 { font-size: 38px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  background: var(--sage-deep); color: #fbf9f4; transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { background: #48553f; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: #d6cdbb; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; padding: 13px 18px; font-size: 15px; }
.iconbtn { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); }
.iconbtn:hover { background: var(--line-soft); color: var(--ink); }
.iconbtn.on { color: var(--terra); }
.iconbtn.on svg { fill: var(--terra); }

label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
::placeholder { color: #b3aa9b; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, #ece5d5 0%, #e3dcc9 100%); }
.auth-hero h1 { font-size: clamp(40px, 4.6vw, 64px); max-width: 11ch; margin-top: auto; position: relative; z-index: 1; }
.auth-hero h1 em { font-weight: 500; color: var(--terra); }
.auth-hero .lede { max-width: 42ch; margin-top: 18px; color: var(--ink-soft); font-size: 17px; position: relative; z-index: 1; }
.auth-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; position: relative; z-index: 1; }
.arches { position: absolute; right: -40px; top: 60px; display: flex; align-items: flex-end; gap: 18px; opacity: .9; }
.arches i { display: block; border-radius: 999px 999px 0 0; }
.arches i:nth-child(1) { width: 110px; height: 220px; background: #c9d1bd; }
.arches i:nth-child(2) { width: 150px; height: 330px; background: #d9a58c; }
.arches i:nth-child(3) { width: 110px; height: 260px; background: #dcc48d; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 32px; }
.auth-card .sub { color: var(--muted); margin: 6px 0 26px; }
.auth-card form { display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line-soft); border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .15s; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--sage); }
.mode-note { font-size: 13.5px; color: var(--ink-soft); background: var(--sage-soft); padding: 11px 14px; border-radius: 10px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; position: relative; z-index: 1; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--sage-deep); color: #f5f1e8; display: grid; place-items: center; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.side .brand { padding: 0 8px; margin-bottom: 30px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { background: var(--line-soft); }
.nav a.on { background: var(--sage-soft); color: var(--sage-deep); }
.nav a .n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 2px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--terra-soft); color: var(--terra); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.acct b { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
.acct small { color: var(--muted); font-size: 12px; }
.side-foot button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); text-align: left; }
.side-foot button:hover { background: var(--line-soft); color: var(--ink); }

.main { padding: 40px 48px 80px; max-width: 1240px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.head p.sub { color: var(--muted); margin-top: 6px; }

/* ---------- Cards & common ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head a, .link { font-size: 13px; color: var(--sage-deep); font-weight: 500; }
.card-head a:hover, .link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 26px 8px; text-align: center; font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.pill svg.ic { width: 14px; height: 14px; }
.pill.wedding, .tint.wedding { background: var(--terra-soft); color: var(--terra); }
.pill.birthday, .tint.birthday { background: var(--ochre-soft); color: #8c6a25; }
.pill.corporate, .tint.corporate { background: var(--slate-soft); color: var(--slate); }

.bar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 99px; transition: width .3s; }
.bar.over i { background: var(--terra); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.15; margin-top: 6px; }
.stat .s { font-size: 13px; color: var(--muted); }

.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* ---------- Featured next event ---------- */
.next { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #ebe6d8, #e4dfcd); border: 1px solid #ddd5c2; border-radius: var(--radius); padding: 26px 28px; }
.next h2 { font-size: 30px; margin: 10px 0 6px; }
.next .meta { color: var(--ink-soft); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.next .meta span { display: inline-flex; align-items: center; gap: 6px; }
.next .meta svg.ic { width: 15px; height: 15px; color: var(--muted); }
.countdown { text-align: center; padding: 0 8px; }
.countdown b { display: block; font-family: var(--serif); font-size: 60px; font-weight: 600; line-height: 1; color: var(--sage-deep); }
.countdown small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next .btn { margin-top: 18px; }

/* ---------- Event cards ---------- */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ecard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.ecard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8cfbd; }
.ecard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ecard-top .when { font-size: 12.5px; color: var(--muted); }
.ecard h3 { margin-bottom: 6px; }
.ecard .meta { font-size: 13.5px; color: var(--muted); }
.ecard .bar { margin: 18px 0 10px; }
.ecard-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.ecard.past { opacity: .65; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); background: var(--card); }
.chip:hover { border-color: #cfc5b1; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Tasks ---------- */
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
.trow:last-child { border-bottom: 0; }
.chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c4baa6; flex: none; display: grid; place-items: center; color: transparent; transition: all .15s; }
.chk:hover { border-color: var(--sage); background: var(--sage-soft); }
.chk svg.ic { width: 12px; height: 12px; stroke-width: 2.4; }
.trow.done .chk { background: var(--sage); border-color: var(--sage); color: #fff; }
.trow.done .ttitle { color: var(--muted); text-decoration: line-through; text-decoration-color: #c9c0ae; }
.tmain { flex: 1; min-width: 0; }
.ttitle { display: block; font-size: 14.5px; }
.tsub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tsub:hover { color: var(--sage-deep); }
.crit { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--terra); background: var(--terra-soft); padding: 2px 8px; border-radius: 99px; flex: none; }
.due { font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: none; }
.due.overdue { color: var(--danger); font-weight: 500; }
.due.soon { color: #8c6a25; }
.trow .iconbtn { opacity: 0; }
.trow:hover .iconbtn, .trow .iconbtn.on, .trow .iconbtn:focus-visible { opacity: 1; }
.group-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; display: flex; gap: 8px; align-items: center; }
.group-label:first-child { margin-top: 0; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.addrow { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.addrow input[type=text] { flex: 1 1 200px; }
.addrow select, .addrow input[type=date] { width: auto; flex: 0 1 160px; }

/* ---------- Event detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.ehead { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 26px; }
.ehead h1 { margin: 12px 0 10px; }
.ehead .meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; }
.ehead .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ehead .meta svg.ic { width: 15px; height: 15px; color: var(--muted); }
.ehead-side { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--sage); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; }
.eactions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 16px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--terra); }
.tabs button small { font-weight: 400; color: var(--muted); margin-left: 4px; }

.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.dl div span { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dl div b { font-weight: 500; overflow-wrap: anywhere; }
.dl div b.blank { color: #b9b0a0; font-weight: 400; }

.money-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.money-row b { color: var(--ink); font-weight: 600; }
.big { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; }
.tbl td { padding: 6px 8px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; }
.tbl input, .tbl select { padding: 8px 10px; border-color: transparent; background: transparent; }
.tbl input:hover, .tbl select:hover { border-color: var(--line); }
.tbl input[type=number] { text-align: right; width: 120px; }
.tbl .num { text-align: right; }
.tbl tfoot td { font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }
.tbl-wrap { overflow-x: auto; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--sage-deep); width: 16px; height: 16px; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }

.ccard { display: grid; gap: 4px; }
.ccard h3 { margin-bottom: 2px; }
.ccard .line { font-size: 13.5px; color: var(--muted); }
.ccard .evs { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.ccard .evs a { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ccard .evs a:hover { color: var(--sage-deep); }

/* ---------- Modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(46, 42, 37, .38); backdrop-filter: blur(3px); display: grid; place-items: start center; padding: 5vh 16px; overflow-y: auto; z-index: 50; animation: fade .15s; }
.modal { width: 100%; max-width: 640px; background: var(--surface); border-radius: 18px; padding: 30px 32px; box-shadow: 0 30px 80px -20px rgba(40, 30, 20, .4); animation: rise .2s; }
.modal h2 { font-size: 30px; }
.modal .sub { color: var(--muted); margin: 4px 0 22px; }
.typepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.typepick button { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 16px 12px; text-align: center; transition: all .15s; }
.typepick button:hover { border-color: #cfc5b1; }
.typepick button.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.typepick button[disabled] { opacity: .45; cursor: default; }
.typepick .tint { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; }
.typepick .tint svg.ic { width: 20px; height: 20px; }
.typepick b { display: block; font-family: var(--serif); font-size: 19px; }
.typepick small { color: var(--muted); font-size: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .wide { grid-column: 1 / -1; }
.fsec { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.fsec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.hint { font-size: 13px; color: var(--ink-soft); background: var(--sage-soft); padding: 10px 14px; border-radius: 10px; margin-top: 18px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 24px 36px; min-height: 340px; }
  .arches { transform: scale(.55); transform-origin: top right; right: -10px; top: 20px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .brand { margin: 0 8px 0 0; padding: 0; font-size: 22px; }
  .side .brand .wm { display: none; }
  .nav { display: flex; }
  .nav a { padding: 8px 10px; }
  .nav a .n { display: none; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .acct, .side-foot button span { display: none; }
  .main { padding: 24px 16px 60px; }
  h1 { font-size: 32px; }
  .next, .ehead { grid-template-columns: 1fr; }
  .countdown { text-align: left; padding: 0; }
  .tri { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 28px; }
  .fgrid, .dl { grid-template-columns: 1fr; }
  .typepick { grid-template-columns: 1fr; }
  .nav a span { display: none; }
  .crit { display: none; }
}

/* ================= Design refinement pass ================= */
body { background: radial-gradient(1100px 560px at 88% -8%, #efe6d3 0%, rgba(239, 230, 211, 0) 62%), var(--bg); background-attachment: fixed; }
.stat .v, .big, .countdown b, .ring b, .ecard-foot, .tbl, .due, .money-row { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3 { font-variant-numeric: lining-nums; }
.main.enter { animation: rise .28s ease-out; }

/* Type accents */
.t-wedding { --accent: var(--terra); --accent-soft: var(--terra-soft); }
.t-birthday { --accent: var(--ochre); --accent-soft: var(--ochre-soft); }
.t-corporate { --accent: var(--slate); --accent-soft: var(--slate-soft); }
.bar i { background: var(--accent, var(--sage)); }
.ecard { position: relative; overflow: hidden; padding-top: 22px; }
.ecard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: .75; }

/* Stat icons */
.stat { position: relative; }
.sicon { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-deep); }
.sicon svg.ic { width: 16px; height: 16px; }
.stat:nth-child(2) .sicon { background: var(--terra-soft); color: var(--terra); }
.stat:nth-child(3) .sicon { background: var(--ochre-soft); color: #8c6a25; }
.stat:nth-child(4) .sicon { background: var(--slate-soft); color: var(--slate); }

/* Featured card */
.next { position: relative; overflow: hidden; }
.next > * { position: relative; z-index: 1; }
.next::before, .next::after { content: ""; position: absolute; z-index: 0; border-radius: 999px 999px 0 0; background: rgba(255, 255, 255, .32); }
.next::after { width: 150px; height: 210px; right: 22px; bottom: -70px; }
.next::before { width: 96px; height: 150px; right: 150px; bottom: -70px; background: rgba(255, 255, 255, .2); }
.next-prog { display: flex; align-items: center; gap: 12px; margin-top: 16px; max-width: 300px; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.next-prog .bar { flex: 1; background: rgba(255, 255, 255, .55); }

/* Season timeline */
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl { position: relative; height: 70px; margin: 8px 22px 0; }
.tl-line { position: absolute; left: -22px; right: -22px; top: 22px; height: 2px; border-radius: 2px; background: var(--line); }
.tl-now { position: absolute; left: 0; top: 14px; width: 12px; height: 12px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-sizing: content-box; }
.tl-month { position: absolute; top: 48px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transform: translateX(-50%); }
.tl-month::before { content: ""; position: absolute; left: 50%; top: -29px; width: 1px; height: 8px; background: #cfc5b1; }
.tl-dot { position: absolute; top: 8px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--accent); transition: transform .15s; }
.tl-dot svg.ic { width: 13px; height: 13px; }
.tl-dot:hover, .tl-dot:focus-visible { transform: scale(1.14); z-index: 2; }

/* Event header banner */
.ehead { background: linear-gradient(120deg, var(--accent-soft) 0%, var(--card) 62%); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; box-shadow: var(--shadow); }
.ehead .pill { background: rgba(255, 255, 255, .6); }
.ehead .ring .fg { stroke: var(--accent); }
.ehead .countdown b { color: var(--ink); }

/* Budget & vendors */
.money { display: inline-flex; align-items: center; justify-content: flex-end; color: var(--muted); }
.tbl .money input[type=number] { width: 100px; padding-left: 4px; }
.tbl select.st { width: auto; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; border-color: transparent; cursor: pointer; }
.tbl select.st0 { background: var(--line-soft); color: var(--ink-soft); }
.tbl select.st1 { background: var(--ochre-soft); color: #8c6a25; }
.tbl select.st2 { background: var(--sage-soft); color: var(--sage-deep); }
.tbl select.st3 { background: var(--sage-deep); color: #fbf9f4; }

/* Sign-in preview card */
.peek { position: absolute; left: -84px; top: 34px; width: 232px; background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 50px -18px rgba(60, 45, 25, .35); transform: rotate(-3deg); }
.peek b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; margin: 10px 0 2px; }
.peek small { color: var(--muted); font-size: 12px; }
.peek .bar { margin-top: 12px; }
@media (max-width: 860px) { .peek { display: none; } .ehead { padding: 22px 20px; } }

/* ---------- Accounts: loading screen, banners, account page ---------- */
.hold { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; color: var(--ink-soft); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--sage-soft); color: var(--ink-soft); border-radius: 12px; padding: 10px 14px 10px 16px; margin-bottom: 22px; font-size: 14px; }
.banner.warn { background: var(--terra-soft); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.side-link:hover, .side-link.on { background: var(--line-soft); color: var(--ink); }
.sync { display: block; padding: 8px 12px 0; font-size: 12px; color: var(--muted); }
.sync[data-s=error] { color: var(--danger); }
.card.pad { padding: 22px 24px; }
.plan-tag { font-size: 12.5px; font-weight: 500; background: var(--sage-soft); color: var(--sage-deep); padding: 4px 10px; border-radius: 999px; }
.acct-note { color: var(--ink-soft); }
.acct-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.acct-form .field { flex: 1 1 240px; }
.acct-msg { font-size: 13.5px; color: var(--sage-deep); margin-top: 10px; min-height: 1.2em; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.upsell b { display: block; font-family: var(--serif); font-size: 20px; }
.upsell small { color: var(--muted); display: block; max-width: 46ch; }
.fine.left { text-align: left; margin-top: 14px; }
.fine a, a.link { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.modal.narrow { max-width: 480px; }
@media (max-width: 860px) { .sync, .side-link span { display: none; } }

/* ---------- Wordmark ---------- */
.brand .wm em { font-style: italic; font-weight: 500; color: var(--terra); padding: 0 .04em; }

/* ---------- Guests, files, client links, approvals ---------- */
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filebtn { position: relative; cursor: pointer; }
.filebtn:focus-within { outline: 2px solid var(--sage); outline-offset: 2px; }
.toolbar { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-head { flex-wrap: wrap; }
.btn svg.ic { width: 15px; height: 15px; }
.hint.flash { margin: 0 0 18px; }
.tlink { font-size: 12.5px; color: var(--sage-deep); font-weight: 500; margin-top: 1px; }
.tlink:hover { text-decoration: underline; }
.gtbl { min-width: 720px; }
.gtbl input[type=number] { width: 64px; text-align: left; }
.gtbl td:first-child input { font-weight: 500; }
.tbl select.st { -webkit-appearance: none; appearance: none; }
.tag { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--ochre-soft); color: #8c6a25; white-space: nowrap; }
.tag.answered { background: var(--sage-soft); color: var(--sage-deep); }
.tag.closed { background: var(--line-soft); color: var(--muted); }
.sendrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sendrow input { flex: 1 1 220px; font-size: 13px; color: var(--ink-soft); }
.frow { gap: 14px; }
.frow .iconbtn { opacity: 1; }
.ficon { width: 36px; height: 36px; border-radius: 10px; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; flex: none; }
.flink { text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.flink:hover { color: var(--sage-deep); text-decoration: underline; }
.card + .card.apv, .card.apv + .card.apv { margin-top: 18px; }
.apv-pick { display: flex; gap: 10px; align-items: flex-start; background: var(--sage-soft); color: var(--sage-deep); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.apv-pick small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.apv-note { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); margin: 0 0 14px 4px; }
.optgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); font-size: 13.5px; }
.opt.on { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); background: var(--card); }
.opt > b { font-family: var(--serif); font-size: 20px; font-weight: 600; display: block; }
.opt p { color: var(--muted); margin-top: 2px; }
.opt ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; color: var(--ink-soft); }
.opt li, .opt-total { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.opt-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; font-weight: 600; }
.resp { margin-bottom: 22px; border-color: var(--sage); }
.resp-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line-soft); font-weight: 500; }
.resp-row:hover { color: var(--sage-deep); }
.resp-row small { color: var(--muted); font-weight: 400; }

/* ---------- Letterhead builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bform { display: grid; gap: 14px; }
.secrow { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.secrow:first-of-type { border-top: 0; }
.secrow .toggle, .toggle.sub { color: var(--ink); font-size: 14px; }
.toggle.sub { margin-top: 12px; color: var(--ink-soft); font-size: 13px; }
.secrow .iconbtn[disabled] { opacity: .3; cursor: default; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.preview .fine { margin-top: 12px; }
.paper { background: #fff; color: #26221d; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 20px 50px -28px rgba(60, 45, 25, .4); padding: 56px 60px 44px; font-size: 13.5px; line-height: 1.55; min-height: 720px; display: flex; flex-direction: column; }
.paper .lh { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #d9d2c3; }
.paper .lh.center { flex-direction: column; text-align: center; gap: 8px; }
.paper .lh-mark { width: 38px; height: 38px; border-radius: 50%; background: #56644e; color: #f5f1e8; display: grid; place-items: center; flex: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.paper .lh b { display: block; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.paper .lh b em { font-weight: 500; color: #b5694a; }
.paper .lh small { font-size: 12px; color: #857c6f; letter-spacing: .03em; }
.paper .p-title { margin: 34px 0 6px; }
.paper .p-title h1 { font-size: 34px; }
.paper .p-title p { color: #857c6f; margin-top: 6px; }
.paper .p-intro { margin-top: 16px; max-width: 62ch; }
.paper p + p { margin-top: 8px; }
.paper .p-sec { margin-top: 30px; }
.paper h2 { font-size: 22px; padding-bottom: 6px; border-bottom: 1px solid #e6dfd1; margin-bottom: 10px; break-after: avoid; }
.paper h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #857c6f; margin: 14px 0 4px; break-after: avoid; }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.paper th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #857c6f; padding: 4px 8px 6px 0; }
.paper td { padding: 6px 8px 6px 0; border-top: 1px solid #efe9dd; vertical-align: top; }
.paper tr { break-inside: avoid; }
.paper .n { text-align: right; padding-right: 18px; }
.paper tfoot td { font-weight: 600; border-top: 1px solid #cfc7b6; }
.paper .p-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0; }
.paper dt { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #857c6f; }
.paper dd { margin: 0; overflow-wrap: anywhere; }
.paper .p-check { list-style: none; padding: 0; margin: 0; }
.paper .p-check li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid #efe9dd; break-inside: avoid; }
.paper .p-check i { width: 12px; height: 12px; border: 1px solid #a69d8d; border-radius: 3px; flex: none; font-style: normal; font-size: 10px; line-height: 11px; text-align: center; transform: translateY(1px); }
.paper .p-check span { flex: 1; }
.paper .p-check em { font-style: normal; color: #857c6f; font-size: 12px; }
.paper .p-check .done span { color: #857c6f; }
.paper .p-empty { color: #857c6f; }
.paper .p-sign { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; margin-top: 30px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #857c6f; break-inside: avoid; }
.paper .p-sign i { display: block; height: 38px; border-bottom: 1px solid #26221d; margin-bottom: 6px; }
.paper .lh-foot { margin-top: auto; padding-top: 34px; font-size: 11px; color: #a69d8d; text-align: center; }
#printRoot { display: none; }
@media (max-width: 1080px) { .builder { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .paper { padding: 30px 22px; } .paper .p-dl { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 15mm 16mm; }
  html, body { background: #fff !important; }
  #app { display: none !important; }
  #printRoot { display: block; }
  #printRoot .paper { border: 0; box-shadow: none; padding: 0; min-height: 0; border-radius: 0; font-size: 11.5pt; }
}

/* ---------- Logo ---------- */
.brand img { display: block; }
.brand .logo { height: 40px; width: auto; }
.brand .logo-icon { display: none; height: 34px; width: 34px; }
.hold .brand .logo { height: 48px; }
.auth-hero .brand .logo { height: 46px; }
.paper .lh { justify-content: space-between; }
.paper .lh.center { justify-content: center; }
.paper .lh-logo { height: 46px; width: auto; display: block; }
@media (max-width: 860px) { .side .brand .logo { display: none; } .side .brand .logo-icon { display: block; } }
