:root {
  --bg: #fbf8f1; --surface: #ffffff; --surface-2: #fdfaf3; --ink: #1d1708; --muted: #6f6656; --faint: #aaa08c; --line: #efe8d8;
  --brand: #a35f00; --on-brand: #2a1a00; --brand-soft: #fff5d1; --brand-line: #ffe08a; --coral: #ff8a4c; --sun: #f5a800;
  --ok: #14a37f; --ok-soft: #e6f7f1; --warn: #c26a00; --warn-soft: #fff3df; --bad: #e5484d;
  --grad: linear-gradient(135deg, #ffd84d 0%, #ffb627 52%, #ff8a4c 100%);
  --radius: 24px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(42, 26, 0, .04), 0 12px 32px -12px rgba(120, 70, 0, .16);
  --shadow-lg: 0 22px 50px -22px rgba(255, 150, 20, .6);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100b; --surface: #1c1912; --surface-2: #221e16; --ink: #f7f2e6; --muted: #b3aa96; --faint: #756c5a; --line: #2f2a1f;
    --brand: #ffc933; --brand-soft: #2e2410; --brand-line: #5a4516; --ok: #34d3a4; --ok-soft: #10302a; --warn: #f5b04c; --warn-soft: #33250f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -24px rgba(255, 170, 40, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(640px 420px at -10% -8%, rgba(255, 201, 51, .30), transparent 70%),
    radial-gradient(560px 420px at 110% 4%, rgba(255, 138, 76, .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* header */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; max-width: 600px; margin: 0 auto; padding: 14px 20px; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 750; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(255, 150, 20, .8); position: relative; }
.logo::before, .logo::after { content: ""; position: absolute; top: 9px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--on-brand); }
.logo::before { left: 5px; } .logo::after { right: 5px; opacity: .8; }
.toplink { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.toplink:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
@media (max-width: 420px) { .top { padding: 12px 14px; } .brand { font-size: 17px; } .toplink { padding: 8px 8px; font-size: 13px; } }

main { max-width: 600px; margin: 0 auto; padding: 4px 16px 72px; }
main > * { animation: rise .38s cubic-bezier(.2, .8, .2, 1) both; }
main > *:nth-child(2) { animation-delay: .05s; } main > *:nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* type */
h1 { font-size: 34px; line-height: 1.08; margin: 0 0 10px; letter-spacing: -.035em; font-weight: 780; }
h1 .grad, .grad-text { background: linear-gradient(120deg, #e79a00 0%, #f07a1a 60%, #e8582b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; font-weight: 720; }
h3 { font-size: 12px; margin: 18px 0 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 6px 0; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .center { text-align: center; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }

/* layout */
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .spread { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.sep { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 14px 0; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card.hero { padding: 28px 22px 24px; }
.card.flat { box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); }

/* inputs */
textarea, input, select { width: 100%; font: inherit; color: inherit; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { min-height: 112px; resize: vertical; padding-right: 60px; font-size: 17px; line-height: 1.45; }
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.composer { position: relative; }
.mic { position: absolute; right: 10px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.mic:hover { transform: scale(1.06); }
.mic.on { background: var(--coral); color: var(--on-brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 138, 76, .22); } }
.h2input { font-size: 24px; font-weight: 750; letter-spacing: -.025em; border: 0; border-bottom: 1.5px dashed var(--line); border-radius: 0; padding: 2px 0 10px; margin-bottom: 8px; background: transparent; }
.h2input:focus { box-shadow: none; background: transparent; border-bottom-color: var(--brand); }
label.lbl { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 14px 0 6px; }

/* buttons */
button, .btn { font: inherit; font-weight: 650; border: 0; border-radius: 999px; padding: 14px 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; }
button:active:not(:disabled) { transform: scale(.98); }
.btn:hover { text-decoration: none; }
.primary { width: 100%; font-size: 17px; padding: 16px 20px; color: var(--on-brand); background: var(--grad); background-size: 140% 140%; box-shadow: var(--shadow-lg); }
.primary:hover:not(:disabled) { background-position: 100% 50%; box-shadow: 0 26px 56px -20px rgba(255, 150, 20, .7); }
.primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.secondary { width: 100%; background: var(--brand-soft); color: var(--brand); }
.secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand-line)); }
.secondary:disabled { color: var(--faint); background: var(--surface-2); cursor: default; }
.ghost { background: none; color: var(--brand); padding: 10px 12px; }
.ghost:hover { background: var(--brand-soft); }
.danger { background: none; color: var(--bad); padding: 10px 12px; }
.danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions.two { grid-template-columns: 1fr 1fr; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; font-weight: 550; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip:hover:not(:disabled) { border-color: var(--brand-line); }
.chip:disabled { cursor: default; }
.chip.ex { background: var(--surface-2); color: var(--muted); border-color: transparent; font-weight: 500; }
.chip.ex:hover { color: var(--ink); background: var(--brand-soft); }
.chip.must { background: var(--brand-soft); border-color: var(--brand-line); color: color-mix(in srgb, var(--brand) 75%, var(--ink)); }
.chip.must::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.chip.nice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); }

/* detail lines */
.line { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.line .grow { flex: 1; min-width: 0; }
.toggle { font-size: 12.5px; font-weight: 650; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; white-space: nowrap; }
.toggle.public { border-color: var(--brand-line); color: var(--brand); }
.toggle.private { color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn, .pill.fixture { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* status header */
.eventhead .title { font-weight: 720; font-size: 17px; letter-spacing: -.01em; }
.people { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.person { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.person .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 750; color: #fff; background: var(--faint); }
.person.done .av { color: var(--on-brand); }
.person.done .av { background: var(--grad); }
.person.open { color: var(--muted); padding-left: 12px; border-style: dashed; }
.steps { display: flex; gap: 6px; margin-top: 14px; }
.steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.steps span.on { background: var(--grad); }

/* proposal ticket */
.ticket { padding: 0; overflow: hidden; }
.ticket .head { background: var(--grad); color: var(--on-brand); padding: 22px 22px 20px; position: relative; }
.ticket .head::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ticket .when { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ticket .time { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 2px 0 8px; }
.ticket .where { font-size: 21px; font-weight: 720; letter-spacing: -.015em; }
.ticket .sub { opacity: .8; font-size: 14.5px; }
.ticket .head .pill { background: rgba(255, 255, 255, .5); color: var(--on-brand); border-color: transparent; }
.ticket .body { padding: 18px 22px 22px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 7px 0; }
.facts li svg { color: var(--ok); margin-top: 3px; }
.facts a { font-size: 12.5px; font-weight: 600; }
details { margin-top: 12px; border-radius: var(--radius-sm); background: var(--surface-2); padding: 4px 14px; }
details[open] { padding-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; margin-left: auto; font-size: 20px; transition: transform .2s; }
details[open] summary::after { transform: rotate(90deg); }
.checks { list-style: none; padding: 0; margin: 4px 0 0; }
.checks li { font-size: 14px; padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li.pass::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.checks li.soft::before { content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.quote { display: block; font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 4px; }
.meta { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.meta .ghost { padding: 4px 8px; font-size: 13px; }

/* editor */
.editor { border: 1.5px solid var(--brand-line); border-radius: 18px; padding: 14px; margin-top: 12px; background: var(--surface-2); }
.editor .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor .win { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.editor .win input, .editor .win select { padding: 9px; font-size: 14px; }
.x { background: none; border: 0; color: var(--muted); font-size: 20px; padding: 4px 10px; cursor: pointer; border-radius: 999px; }
.x:hover { background: var(--line); }
.row > input { flex: 1; min-width: 0; width: auto; }
.row > button { flex: none; width: auto; }
.addrow { margin-top: 14px; }

/* share */
.btn.wa { background: #25d366; color: #06361a; border-color: transparent; }
.btn.wa:hover { background: #1fbe5b; }
.sharebox .actions { margin-top: 10px; }
.sharebox { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--brand-soft); }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { flex: 1; min-width: 0; width: auto; font-size: 13.5px; background: var(--surface); border-color: transparent; }
.linkbox button { flex: none; width: auto; padding: 12px 18px; background: var(--ink); color: var(--bg); }

.notice { display: flex; gap: 10px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px; line-height: 1.5; }
.notice svg { color: var(--brand); margin-top: 2px; }
.notice strong { color: var(--ink); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; }
.how div { background: var(--surface-2); border-radius: 16px; padding: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.how b { display: block; color: var(--ink); font-size: 13.5px; margin: 6px 0 2px; }
.how .n { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); color: var(--on-brand); font-weight: 750; font-size: 12.5px; display: grid; place-items: center; }

.spinner { width: 46px; height: 46px; margin: 12px auto 14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, #ffc933, #ff8a4c); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-ok { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 22px; background: var(--grad); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.big-ok svg { width: 30px; height: 30px; stroke-width: 2.4; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 140px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s; max-width: 90vw; z-index: 10; box-shadow: var(--shadow); }
#toast.show { transform: translate(-50%, 0); visibility: visible; }
.foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.foot button, .foot a { font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 999px; }
.foot a { color: var(--brand); }
.foot a:hover { background: var(--brand-soft); text-decoration: none; }
.token { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--brand-line); padding: 12px; border-radius: 12px; }
.hidden { display: none !important; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
@media (max-width: 380px) { h1 { font-size: 30px; } .how { grid-template-columns: 1fr; } .ticket .time { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* brand wordmark + footer note */
.brand .word b { font-weight: 800; }
.brand .word span { color: var(--brand); font-weight: 750; }
.tagline { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 26px; }
.topr { display: flex; align-items: center; gap: 6px; }
#acct { display: flex; align-items: center; min-height: 32px; }
button.toplink.signin { background: var(--surface); border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; }
