body { min-height: 100%; display: flex; flex-direction: column; overflow-x: hidden; }
.glow { position: fixed; inset: -20vh -10vw auto; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(124, 92, 219, .08), transparent 70%); }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 920px; width: 100%; margin: 0 auto; padding: 18px 20px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-weight: 650; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.top nav { display: flex; gap: 4px; align-items: center; }
.count { background: var(--accent-bg); color: var(--accent-ink); border-radius: 999px; font-size: 11px; padding: 0 6px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; font-weight: 600; }
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.foot { position: relative; z-index: 1; text-align: center; color: var(--faint); font-size: 12px; padding: 24px; }

.hero { text-align: center; padding: 36px 0 30px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text2); border: 1px solid var(--line); background: var(--panel); padding: 4px 11px 4px 8px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 12px; font-weight: 650; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), #e8833a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text2); font-size: 16px; max-width: 480px; margin: 0 auto; }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.type { position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.type:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: var(--shadow-lg); }
.type .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.type .ti svg { width: 18px; height: 18px; }
.type b { font-weight: 600; font-size: 14.5px; }
.type span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.type .go { position: absolute; top: 16px; right: 16px; color: var(--faint); transition: transform .15s, color .15s; }
.type:hover .go { color: var(--text2); transform: translateX(2px); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; animation: rise .3s cubic-bezier(.2,.8,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.formhead { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.formhead .ti { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.formhead h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.formhead p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text2); cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.seg button .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.err { color: var(--red); font-size: 13px; }

.done { text-align: center; padding: 34px 24px; }
.done .badge { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.done .badge svg { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h2 { font-size: 24px; letter-spacing: -.025em; margin: 0 0 6px; }
.tnum { font-family: var(--mono); font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 7px; font-weight: 500; }
.linkbox { display: flex; gap: 6px; align-items: center; max-width: 460px; margin: 20px auto 0; border: 1px solid var(--line2); border-radius: 11px; padding: 4px 4px 4px 12px; background: var(--bg2); }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 12.5px var(--mono); color: var(--text2); }
.done .row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* Status page */
.thead { margin: 18px 0 18px; }
.thead .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.thead h1 { font-size: clamp(22px, 4.4vw, 30px); letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 0; font-weight: 650; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 4px 0 18px; padding: 18px 18px 14px; }
.step { position: relative; text-align: center; font-size: 12px; color: var(--muted); }
.step .b { width: 26px; height: 26px; margin: 0 auto 8px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--panel); display: grid; place-items: center; position: relative; z-index: 1; transition: all .3s; }
.step .b svg { width: 13px; height: 13px; stroke-width: 2.6; }
.step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line2); }
.step:first-child::before { display: none; }
.step.on { color: var(--text); font-weight: 500; }
.step.on .b { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-ink); }
.step.on::before { background: var(--accent-bg); }
.step.cur .b { box-shadow: 0 0 0 5px var(--accent-soft); }
.step.green .b { background: var(--green); border-color: var(--green); color: #fff; }
.step.green::before { background: var(--green); }
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid; flex-wrap: wrap; }
.banner.fixed { border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 9%, var(--panel)); }
.banner.wait { border-color: color-mix(in srgb, var(--orange) 35%, transparent); background: color-mix(in srgb, var(--orange) 9%, var(--panel)); }
.banner .t { flex: 1; min-width: 200px; }
.banner b { display: block; }
.banner span { color: var(--text2); font-size: 13px; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 8px 0 18px; }
.ev { display: flex; gap: 12px; }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--hover); color: var(--text2); border: 1px solid var(--line); }
.av.owner { background: linear-gradient(135deg, var(--accent-bg), #e8833a); color: var(--accent-ink); border: 0; }
.bubble { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.bubble .who { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.bubble .who b { font-weight: 600; }
.bubble .who time { color: var(--muted); font-size: 12px; }
.sys { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); padding-left: 8px; }
.sys .ring { width: 16px; height: 16px; }
.sys b { color: var(--text2); font-weight: 500; }
.composer { padding: 14px; }
.composer .textarea { min-height: 84px; border: 0; padding: 4px 2px; box-shadow: none; background: transparent; }
.composer .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.watch { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 16px; }
.watch .t { flex: 1; font-size: 13px; color: var(--text2); }
.watch .t b { color: var(--text); display: block; font-size: 14px; }
.watch .bi { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

.mine { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.mrow:hover { border-color: var(--line2); transform: translateY(-1px); }
.mrow .t { flex: 1; min-width: 0; }
.mrow .t b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .t small { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty .ei { width: 48px; height: 48px; border-radius: 14px; background: var(--hover); display: grid; place-items: center; margin: 0 auto 12px; }

@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 16px; }
  .hero { padding-top: 20px; }
  .steps { padding: 14px 6px 10px; }
  .step { font-size: 11px; }
}
