:root{font-family:"Geist Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171717;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.app{--bg:#fff;--subtle:#fafafa;--surface:#fff;--text:#171717;--secondary:#4d4d4d;--muted:#8f8f8f;--border:#00000014;--soft:#f2f2f2;--solid:#171717;--solidText:#fff;--blue:#006bff;--shadow:0 2px 2px rgba(0,0,0,.04);min-height:100vh;background:var(--bg);color:var(--text);transition:background 150ms,color 150ms}.app[data-theme=dark]{--bg:#000;--subtle:#000;--surface:#0a0a0a;--text:#ededed;--secondary:#a0a0a0;--muted:#8f8f8f;--border:#ffffff24;--soft:#1a1a1a;--solid:#ededed;--solidText:#000;--blue:#47a8ff;--shadow:0 1px 2px rgba(0,0,0,.16);color-scheme:dark}button{font:inherit;cursor:pointer}.topbar{position:sticky;top:0;z-index:20;height:64px;padding:0 max(24px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:600;text-decoration:none}.brand-mark,.avatar{width:32px;height:32px;border:0;border-radius:6px;display:grid;place-items:center;background:var(--solid);color:var(--solidText);font-size:13px;font-weight:600}.desktop-nav{height:100%;display:flex;align-items:center;gap:24px}.nav-item,.text-button{padding:0;border:0;background:none;color:var(--secondary);font-size:14px}.nav-item.active{color:var(--text);font-weight:600}.top-actions{display:flex;gap:8px}.icon-button{width:32px;height:32px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}main{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:40px 0 104px}.view{display:none}.view.active{display:block}.hero{min-height:440px;padding:64px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;border:1px solid var(--border);border-radius:16px;background:var(--subtle);overflow:hidden}.eyebrow{display:block;margin-bottom:8px;color:var(--muted);font:400 12px/16px "Geist Mono",monospace;letter-spacing:.08em}.hero h1,.page-head h1{margin:0;font-size:56px;line-height:1;letter-spacing:-3.36px}.hero p,.page-head p{max-width:560px;margin:20px 0 0;color:var(--secondary);font-size:16px;line-height:24px}.hero-actions{display:flex;gap:8px;margin-top:32px}.primary,.secondary{height:40px;padding:0 14px;border-radius:6px;font-size:14px;font-weight:500}.primary{border:1px solid var(--solid);background:var(--solid);color:var(--solidText)}.secondary{border:1px solid var(--border);background:var(--surface);color:var(--text)}.type-orbit{position:relative;width:300px;height:300px;margin:auto;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center}.type-orbit>span{width:88px;height:88px;display:grid;place-items:center;border-radius:50%;background:var(--solid);color:var(--solidText);font-size:30px;font-weight:600}.orbit{position:absolute;border:1px solid var(--border);border-radius:50%}.orbit-a{inset:38px}.orbit-b{inset:-36px}.type-chip{position:absolute;padding:7px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font:500 12px/16px "Geist Mono",monospace;box-shadow:var(--shadow)}.chip-a{top:16px;right:24px}.chip-b{bottom:34px;left:-5px}.chip-c{right:-12px;bottom:76px}.section-head,.page-head{margin:64px 0 24px;display:flex;align-items:end;justify-content:space-between}.section-head.compact{margin-top:48px}.section-head h2,.panel h2{margin:0;font-size:24px;line-height:32px;letter-spacing:-.96px}.match-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.match-card,.chain-card,.panel,.match-row{border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.match-card{padding:24px}.person-head{display:flex;align-items:center;gap:12px}.person-avatar{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--soft);font-weight:600}.person-name{margin:0;font-size:16px}.person-meta{margin-top:2px;color:var(--secondary);font:400 12px/16px "Geist Mono",monospace}.score{margin-left:auto;font:600 24px/32px "Geist Mono",monospace}.score small{font-size:11px;color:var(--muted)}.reasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}.reason,.filter,.tag,.type-button{padding:6px 9px;border:1px solid var(--border);border-radius:6px;background:var(--soft);color:var(--secondary);font-size:12px}.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.card-actions button{height:36px;border-radius:6px;font-size:13px}.like{border:1px solid var(--solid);background:var(--solid);color:var(--solidText)}.ignore{border:1px solid var(--border);background:var(--surface);color:var(--text)}.chain-strip,.chain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.chain-card{padding:24px}.chain-time{color:var(--muted);font:400 12px/16px "Geist Mono",monospace}.chain-card h3{margin:12px 0 8px;font-size:18px}.chain-card p{min-height:40px;margin:0;color:var(--secondary);font-size:14px;line-height:20px}.progress{height:4px;margin:20px 0 8px;border-radius:999px;background:var(--soft);overflow:hidden}.progress i{display:block;height:100%;background:var(--solid)}.chain-foot{display:flex;align-items:center;justify-content:space-between;color:var(--secondary);font-size:12px}.join{border:0;background:none;color:var(--text);font-weight:600}.page-head{margin-top:24px;align-items:center}.page-head h1{font-size:48px}.score-legend,.save-state{color:var(--muted);font-size:12px}.score-legend span{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--blue)}.filterbar{display:flex;gap:8px;margin:32px 0 16px}.filter{background:var(--surface)}.filter.active,.tag.active,.type-button.active{background:var(--solid);border-color:var(--solid);color:var(--solidText)}.match-list{display:grid;gap:12px}.match-row{padding:20px 24px;display:grid;grid-template-columns:1fr 1.4fr auto;gap:24px;align-items:center}.match-row .reasons{margin:0}.match-row .card-actions{display:flex;margin:0}.match-row .card-actions button{padding:0 14px}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{padding:24px}.panel.preferences{grid-column:1/-1}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel-head>div{display:flex;align-items:center;gap:10px}.step{font:400 12px/16px "Geist Mono",monospace;color:var(--muted)}.current-type{font:600 24px/32px "Geist Mono",monospace}.type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.type-button{height:40px;font-family:"Geist Mono",monospace}.tag-grid{display:flex;flex-wrap:wrap;gap:8px}.tag{padding:9px 12px;background:var(--surface)}.counter{color:var(--muted);font:400 12px/16px "Geist Mono",monospace}.switch-row{padding:16px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border)}.switch-row span{display:flex;flex-direction:column;gap:4px}.switch-row b{font-size:14px}.switch-row small{color:var(--muted)}.switch-row input{display:none}.switch-row i{position:relative;width:36px;height:20px;border-radius:999px;background:var(--soft);border:1px solid var(--border)}.switch-row i:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform 150ms}.switch-row input:checked+i{background:var(--solid)}.switch-row input:checked+i:after{background:var(--solidText);transform:translateX(16px)}.save-button{margin-top:16px}.mobile-nav{display:none}.toast{position:fixed;left:50%;bottom:32px;z-index:50;padding:10px 14px;transform:translate(-50%,20px);border-radius:6px;background:var(--solid);color:var(--solidText);font-size:13px;opacity:0;pointer-events:none;transition:150ms}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:800px){.desktop-nav{display:none}.topbar{padding:0 16px}main{width:calc(100% - 32px);padding-top:24px}.hero{min-height:auto;padding:32px 24px;grid-template-columns:1fr}.hero h1,.page-head h1{font-size:40px;line-height:44px;letter-spacing:-2.4px}.type-orbit{width:220px;height:220px;margin-top:56px}.match-grid,.chain-strip,.chain-grid,.settings-layout{grid-template-columns:1fr}.panel.preferences{grid-column:auto}.section-head,.page-head{align-items:flex-start}.page-head{flex-direction:column;gap:20px}.match-row{grid-template-columns:1fr}.match-row .card-actions{justify-content:flex-start}.mobile-nav{position:fixed;left:16px;right:16px;bottom:12px;z-index:30;height:48px;padding:4px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.12)}.mobile-nav button{border:0;border-radius:6px;background:none;color:var(--secondary);font-size:12px}.mobile-nav button.active{background:var(--soft);color:var(--text);font-weight:600}.type-grid{grid-template-columns:repeat(4,1fr)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){z-index:9999;animation:theme-reveal 560ms cubic-bezier(.22,1,.36,1) both}
::view-transition-old(root){z-index:1}
@keyframes theme-reveal{from{clip-path:circle(0 at var(--theme-x) var(--theme-y))}to{clip-path:circle(var(--theme-r) at var(--theme-x) var(--theme-y))}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

/* User activities */
.user-page-head{margin-top:24px}.result-count{color:var(--muted);font:12px/16px "Geist Mono",monospace}.activity-feature{min-height:320px;padding:48px;display:grid;grid-template-columns:1fr 240px;align-items:center;border:1px solid var(--border);border-radius:16px;background:var(--subtle)}.activity-feature h2{margin:0;font-size:40px;line-height:48px;letter-spacing:-2.4px}.activity-feature p{max-width:560px;margin:16px 0;color:var(--secondary);font-size:16px;line-height:24px}.feature-meta{display:flex;gap:16px;margin-bottom:24px;color:var(--secondary);font-size:13px}.feature-type{width:180px;height:180px;margin:auto;display:grid;place-items:center;border-radius:50%;background:var(--solid);color:var(--solidText);font-size:24px;font-weight:600}.activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.activity-card{display:grid;grid-template-columns:88px 1fr;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.activity-date{padding:24px 16px;display:flex;flex-direction:column;gap:4px;border-right:1px solid var(--border);background:var(--subtle)}.activity-date b{font-size:16px}.activity-date span{color:var(--muted);font:12px/16px "Geist Mono",monospace}.activity-content{padding:24px}.activity-content h3{margin:12px 0 8px;font-size:18px}.activity-content p{min-height:60px;margin:0;color:var(--secondary);font-size:14px;line-height:20px}.activity-tags{display:flex;gap:6px}.activity-tags span{padding:4px 7px;border-radius:6px;background:var(--soft);color:var(--secondary);font-size:11px}.activity-meta{margin-top:16px;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.activity-action{width:100%;margin-top:16px}.empty-state{display:none;padding:64px;text-align:center;border:1px dashed var(--border);border-radius:12px}.empty-state h3{margin:0}.empty-state p{color:var(--muted)}.profile-summary{margin-bottom:16px;padding:24px;display:flex;align-items:center;gap:16px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}.profile-monogram{width:64px;height:64px;display:grid;place-items:center;border-radius:12px;background:var(--solid);color:var(--solidText);font:600 18px/24px "Geist Mono",monospace}.profile-summary h2{margin:0}.profile-summary p{margin:4px 0 0;color:var(--muted);font-size:13px}.user-mobile-nav{grid-template-columns:repeat(2,1fr)}

/* Admin */
.admin-app{display:grid;grid-template-columns:240px 1fr}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:24px 16px;display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--subtle)}.admin-sidebar .brand{padding:0 8px}.admin-sidebar nav{display:grid;gap:4px;margin-top:40px}.admin-sidebar nav button{height:40px;padding:0 12px;border:0;border-radius:6px;background:none;color:var(--secondary);text-align:left}.admin-sidebar nav button.active{background:var(--soft);color:var(--text);font-weight:600}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between}.sidebar-bottom a{color:var(--secondary);font-size:13px;text-decoration:none}.admin-shell{grid-column:2}.admin-top{height:104px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.admin-top h1{margin:0;font-size:24px;line-height:32px}.admin-main{width:auto;margin:0;padding:32px 40px 80px}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.admin-stats>div{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.admin-stats span{color:var(--secondary);font-size:13px}.admin-stats b{font:600 28px/36px "Geist Mono",monospace}.admin-panel{margin-top:24px;border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden}.table-toolbar{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.table-toolbar h2{margin:0;font-size:18px}.table-toolbar p{margin:4px 0 0;color:var(--muted);font-size:12px}.table-toolbar input,.form-grid input,.form-grid textarea{height:40px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font:14px/20px inherit}.table-toolbar input{width:240px}.table-row{min-height:72px;padding:12px 24px;display:grid;grid-template-columns:1.4fr 1.2fr 100px 90px 120px;gap:16px;align-items:center;border-bottom:1px solid var(--border);font-size:13px}.table-row:last-child{border-bottom:0}.table-row>div{display:flex;flex-direction:column;gap:4px}.table-row small{color:var(--muted)}.table-head{min-height:44px;background:var(--subtle);color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase}.status{width:max-content;padding:5px 8px;border:1px solid var(--border);border-radius:999px;background:var(--soft);color:var(--secondary);font-size:11px}.status.published{background:var(--solid);color:var(--solidText)}.row-actions{flex-direction:row!important}.row-actions button{padding:4px;border:0;background:none;color:var(--secondary);font-size:12px}dialog{width:min(640px,calc(100% - 32px));padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 24px 60px rgba(0,0,0,.2)}dialog::backdrop{background:rgba(0,0,0,.45)}dialog form{padding:24px}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0}.form-grid{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{display:flex;flex-direction:column;gap:7px;color:var(--secondary);font-size:12px}.form-grid .full{grid-column:1/-1}.form-grid textarea{height:auto;padding:10px 12px;resize:vertical}.check-label{flex-direction:row!important;align-items:center}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:24px}
@media(max-width:1000px){.activity-grid{grid-template-columns:1fr 1fr}.admin-app{display:block}.admin-sidebar{position:static;width:auto;height:auto;padding:12px 16px;flex-direction:row;align-items:center;flex-wrap:wrap}.admin-sidebar nav{order:3;width:100%;margin-top:12px;display:flex;gap:4px;overflow-x:auto}.admin-sidebar nav button{white-space:nowrap}.sidebar-bottom{margin:0 0 0 auto;gap:12px}.admin-shell{grid-column:auto}.table-row{grid-template-columns:1fr 1fr 80px 80px}.table-row>*:nth-child(4){display:none}}
@media(max-width:800px){.activity-feature{padding:32px 24px;grid-template-columns:1fr}.feature-type{display:none}.activity-grid{grid-template-columns:1fr}.activity-card{grid-template-columns:72px 1fr}.admin-top{height:auto;padding:24px 16px}.admin-main{padding:24px 16px 80px}.admin-stats{grid-template-columns:1fr}.table-toolbar{align-items:flex-start;gap:16px;flex-direction:column}.table-toolbar input{width:100%}.table-row{grid-template-columns:1fr 82px 72px;padding:12px 16px}.table-row>*:nth-child(2),.table-row>*:nth-child(4){display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

/* MBTI+ operations experience */
.ops-hero{min-height:400px;padding:56px 64px;display:grid;grid-template-columns:1.3fr .7fr;gap:48px;align-items:center;border:1px solid var(--border);border-radius:16px;background:var(--subtle)}.ops-hero h1{margin:0;font-size:56px;line-height:1;letter-spacing:-3.36px}.ops-hero>div>p{max-width:650px;margin:20px 0 0;color:var(--secondary);font-size:16px;line-height:24px}.hero-report{padding:28px;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.hero-report>span,.hero-report small{color:var(--muted);font-size:12px}.hero-report b{margin:20px 0 4px;font:600 40px/48px "Geist Mono",monospace}.hero-report button{margin-top:24px}.program-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.program-card{min-height:300px;padding:24px;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.program-index{color:var(--muted);font:12px/16px "Geist Mono",monospace}.program-type{width:max-content;margin-top:28px;padding:5px 8px;border-radius:6px;background:var(--soft);color:var(--secondary);font-size:11px}.program-card h3{margin:12px 0 8px;font-size:22px;line-height:28px}.program-card>p{margin:0;color:var(--secondary);font-size:14px;line-height:20px}.program-foot{margin-top:auto;padding-top:24px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border)}.program-foot>span{color:var(--muted);font-size:12px}.inspiration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.inspiration-card{padding:20px;display:flex;gap:16px;border:1px solid var(--border);border-radius:12px}.inspiration-card>span,.review-kind{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:6px;background:var(--solid);color:var(--solidText);font-weight:600}.inspiration-card small{color:var(--muted)}.inspiration-card h3{margin:4px 0}.inspiration-card p{margin:0;color:var(--secondary);font-size:13px;line-height:18px}.persona-card{padding:32px;display:grid;grid-template-columns:160px 1fr;gap:32px;align-items:center;border:1px solid var(--border);border-radius:16px;background:var(--subtle)}.persona-type{width:160px;height:160px;display:grid;place-items:center;border-radius:50%;background:var(--solid);color:var(--solidText);font:600 36px/40px "Geist Mono",monospace}.persona-card h2{margin:0;font-size:32px}.persona-card p{color:var(--secondary)}.persona-tags{display:flex;gap:8px}.persona-tags span{padding:6px 9px;border-radius:6px;background:var(--soft);font-size:12px}.profile-tabs{margin-top:32px;display:flex;gap:4px;border-bottom:1px solid var(--border)}.profile-tabs button{padding:12px 16px;border:0;border-bottom:2px solid transparent;background:none;color:var(--secondary)}.profile-tabs button.active{border-color:var(--text);color:var(--text);font-weight:600}.profile-feed{margin-top:16px}.feed-row,.review-row{padding:20px 24px;display:flex;align-items:center;gap:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.feed-row+ .feed-row,.review-row+ .review-row{margin-top:8px}.feed-row>span{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;background:var(--soft)}.feed-row>div,.review-row>div:nth-child(2){flex:1}.feed-row h3,.review-row h3{margin:0}.feed-row p,.review-row p{margin:4px 0 0;color:var(--secondary);font-size:13px}.flow-dialog{width:min(560px,calc(100% - 32px));padding:24px}.flow-intro{color:var(--secondary);font-size:14px;line-height:20px}.quiz,.form-stack{display:grid;gap:16px;margin-top:24px}.quiz label,.form-stack label{display:grid;gap:7px;color:var(--secondary);font-size:13px}.quiz select,.form-stack select,.form-stack input,.form-stack textarea{width:100%;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font:14px/20px inherit}.quiz select,.form-stack select,.form-stack input{height:40px}.form-stack textarea{padding:10px 12px}.flow-submit{width:100%;margin-top:24px}.blindbox-visual{width:160px;height:160px;margin:32px auto;display:grid;place-items:center;border:1px dashed var(--border);border-radius:16px;background:var(--soft);font:600 48px/1 "Geist Mono",monospace}.admin-view{display:none}.admin-view.active{display:block}.admin-section-head{margin-bottom:20px}.admin-section-head h2{margin:0}.admin-section-head p{margin:4px 0;color:var(--muted)}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.library-card{padding:24px;border:1px solid var(--border);border-radius:12px}.library-card>span{display:inline-grid;width:36px;height:36px;place-items:center;border-radius:6px;background:var(--solid);color:var(--solidText)}.library-card small{margin-left:8px;color:var(--muted)}.library-card h3{margin:20px 0 8px}.library-card p{min-height:40px;color:var(--secondary)}.library-card button{padding:0;border:0;background:none;color:var(--muted);font-size:12px}.review-list{display:grid;gap:8px}.review-row>div:last-child{display:flex;gap:8px}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.metric-panel{padding:24px}.metric-panel h2{margin:0 0 24px}.metric-panel li{margin:12px 0;color:var(--secondary)}.metric-row{display:grid;grid-template-columns:32px 1fr 28px;gap:12px;align-items:center;margin:16px 0}.metric-row i{height:8px;border-radius:999px;background:var(--soft);overflow:hidden}.metric-row i b{display:block;height:100%;background:var(--solid)}.metric-row em{font-style:normal;font:12px/16px "Geist Mono",monospace}
@media(max-width:800px){.ops-hero{padding:32px 24px;grid-template-columns:1fr}.ops-hero h1{font-size:40px;line-height:44px;letter-spacing:-2.4px}.program-grid,.inspiration-grid,.library-grid,.analytics-grid{grid-template-columns:1fr}.persona-card{grid-template-columns:1fr}.persona-type{width:96px;height:96px}.review-row{align-items:flex-start;flex-wrap:wrap}.review-row>div:last-child{width:100%}}
.hero-report .result-link{margin-top:12px}.page-head-actions{display:flex;gap:8px}.official-link{height:40px;margin:20px 0 24px;padding:0 12px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:6px;background:var(--soft);color:var(--text);font-size:13px;font-weight:500;text-decoration:none}

/* Geist interaction audit */
button,a,input,select,textarea{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.primary:hover{opacity:.88}.secondary:hover,.icon-button:hover,.filter:hover{background:var(--soft)}.primary:active,.secondary:active{transform:translateY(1px)}.flow-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:24px}.flow-actions button{width:100%}.content-filters{display:flex;gap:8px}.admin-section-head{display:flex;align-items:center;justify-content:space-between}.library-meta{display:flex;align-items:center;gap:8px}.library-meta>span{display:inline-grid;width:36px;height:36px;place-items:center;border-radius:6px;background:var(--solid);color:var(--solidText)}.library-meta small,.library-card>small{margin:0;color:var(--muted)}.library-card .card-actions{display:flex;align-items:center;flex-wrap:wrap;margin-top:20px}.library-card .card-actions button{height:30px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--secondary)}.library-card .card-actions .published{background:var(--solid);color:var(--solidText)}.feed-row small{display:block;margin-top:6px;color:var(--muted)}.feed-row>.row-actions{flex:0;display:flex;gap:8px}.empty-state{display:block}.library-grid>.empty-state{grid-column:1/-1}.form-stack textarea{resize:vertical}.dialog-head h2{font-size:20px;letter-spacing:-.4px}
@media(max-width:800px){.admin-section-head{align-items:flex-start;flex-direction:column;gap:16px}.flow-actions{grid-template-columns:1fr}.feed-row{align-items:flex-start;flex-wrap:wrap}.feed-row>.row-actions{width:100%}.page-head-actions{width:100%}.page-head-actions button{flex:1}}

/* Data command center */
.dashboard-filter{margin-bottom:16px;display:flex;align-items:center;justify-content:flex-end;gap:12px}.dashboard-filter select{height:36px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.dashboard-filter span{color:var(--muted);font-size:12px}.dashboard-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.dashboard-metrics article{min-height:112px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.dashboard-metrics span{color:var(--secondary);font-size:12px}.dashboard-metrics b{font:600 28px/36px "Geist Mono",monospace}.funnel{margin-top:24px;padding:24px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.funnel>div{width:var(--funnel-width);min-width:100px;height:72px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--soft);clip-path:polygon(0 0,94% 0,100% 50%,94% 100%,0 100%,6% 50%)}.funnel>div:first-child{clip-path:polygon(0 0,94% 0,100% 50%,94% 100%,0 100%)}.funnel span{font-size:12px;color:var(--secondary)}.funnel b{font:600 18px/24px "Geist Mono",monospace}.trend-chart{height:220px;display:flex;align-items:flex-end;gap:8px}.trend-chart>div{height:100%;min-width:16px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.trend-chart i{width:100%;max-width:28px;min-height:6px;border-radius:4px 4px 0 0;background:var(--solid)}.trend-chart span{color:var(--muted);font:10px/14px "Geist Mono",monospace}.log-row{min-height:52px;padding:10px 20px;display:grid;grid-template-columns:180px 1fr 1.2fr 80px;gap:16px;align-items:center;border-bottom:1px solid var(--border);font-size:12px}.log-head{background:var(--subtle);color:var(--muted);font-weight:600}.log-row:last-child{border-bottom:0}.admin-sidebar nav{overflow:auto}.admin-sidebar nav button{flex:none}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(3,1fr)}.funnel{overflow:auto}.analytics-grid{grid-template-columns:1fr}.log-row{grid-template-columns:150px 1fr 1fr}.log-row>*:last-child{display:none}}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,1fr)}.dashboard-filter{justify-content:space-between}.funnel{padding:16px}.log-row{grid-template-columns:1fr 1fr}.log-row>*:nth-child(3){display:none}}

/* Dashboard funnel: five stages must fit inside the panel. */
.funnel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:hidden}
.funnel>div{width:auto;min-width:0}
.funnel>div:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,6% 50%)}
@media(max-width:900px){.funnel{grid-template-columns:repeat(5,minmax(132px,1fr));overflow-x:auto;scrollbar-width:none}.funnel::-webkit-scrollbar{display:none}}
@media(max-width:700px){.funnel{padding:12px}}
.snapshot-list{display:grid;gap:10px;margin-top:20px;max-height:520px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.snapshot-list::-webkit-scrollbar,.admin-sidebar nav::-webkit-scrollbar{width:0;height:0;display:none}.admin-sidebar nav{scrollbar-width:none;-ms-overflow-style:none}.snapshot-list article{position:relative;padding:16px;display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:start;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.snapshot-list article.latest{border-color:var(--text)}.snapshot-list article>b{width:38px;padding:4px 0;border-radius:5px;background:var(--soft);font:600 13px/20px "Geist Mono",monospace;text-align:center}.snapshot-title{display:flex;align-items:center;gap:8px}.snapshot-title strong{font-size:14px}.snapshot-title span,.current-version{padding:3px 6px;border-radius:999px;background:var(--soft);color:var(--secondary);font-size:10px}.snapshot-list h4{margin:12px 0 0;font-size:14px}.snapshot-list p{margin:6px 0;color:var(--secondary);font-size:13px;line-height:18px}.snapshot-list .review-note{padding:8px;border-left:2px solid var(--text);background:var(--soft);color:var(--text)}.snapshot-list small{display:block;margin-top:10px;color:var(--muted);font-size:11px;line-height:16px}.snapshot-list button{height:32px}@media(max-width:600px){.snapshot-list article{grid-template-columns:36px 1fr}.snapshot-list button,.snapshot-list .current-version{grid-column:2}}

/* Submission cards */
.profile-feed{container-type:inline-size}
.feed-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center}
.feed-row>div:not(.row-actions){min-width:0}
.feed-row>.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.feed-row>.row-actions button{height:32px;padding:0 10px;white-space:nowrap;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:12px;font-weight:500}
.feed-row>.row-actions .primary{border-color:var(--solid);background:var(--solid);color:var(--solidText)}
@container (max-width:560px){
  .feed-row{padding:16px;grid-template-columns:36px minmax(0,1fr);align-items:start}
  .feed-row>.row-actions{width:auto;grid-column:2;justify-content:flex-start;flex-wrap:wrap;margin-top:4px}
}
.code-card .code-field-label{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}.code-card .code-display{text-align:right}.code-card .code-full{grid-column:1/-1}.code-card .code-full code{display:block;overflow-wrap:anywhere}.code-card .code-claim-actions{grid-column:1/-1;margin-top:4px}
.activity-code-result .form-stack label,.activity-code-result .form-stack>small{text-align:left}

/* Mobile flow sheet */
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
.flow-dialog{max-height:min(720px,calc(100dvh - 32px));overflow:auto;overscroll-behavior:contain}
.feedback-form fieldset{min-width:0;margin:0;padding:0;border:0}
.feedback-form legend{margin-bottom:7px;color:var(--secondary);font-size:13px}
.choice-grid{display:grid;gap:6px}
.result-choices{grid-template-columns:repeat(3,1fr)}
.rating-choices{grid-template-columns:repeat(5,1fr)}
.choice-grid label{display:block}
.choice-grid input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.choice-grid span{height:40px;padding:0 8px;display:grid;place-items:center;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--secondary);font-size:12px;text-align:center;cursor:pointer}
.choice-grid input:checked+span{border-color:var(--solid);background:var(--solid);color:var(--solidText)}
.choice-grid input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.brand-mark{overflow:hidden;background:transparent}
.brand-mark img{width:100%;height:100%;display:block;object-fit:cover}
.queue-state{padding:20px 0 4px;text-align:center}.queue-orbit{position:relative;width:112px;height:112px;margin:4px auto 24px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%}.queue-orbit span{position:relative;z-index:2;width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:var(--solid);color:var(--solidText);font:600 24px/1 "Geist Mono",monospace}.queue-orbit i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--muted);animation:queue-orbit 2.4s linear infinite}.queue-orbit i:nth-child(2){animation-delay:-.8s}.queue-orbit i:nth-child(3){animation-delay:-1.6s}.queue-state.ready .queue-orbit{border-color:var(--text)}.queue-state h3{margin:0;font-size:22px}.queue-state p{margin:8px 0;color:var(--secondary);font-size:14px}.queue-state small{display:block;margin-top:10px;color:var(--muted)}.queue-meter{height:4px;margin:24px auto 0;border-radius:999px;background:var(--soft);overflow:hidden}.queue-meter i{display:block;height:100%;border-radius:inherit;background:var(--solid);transition:width 500ms cubic-bezier(.22,1,.36,1)}@keyframes queue-orbit{from{transform:rotate(0deg) translateX(55px) rotate(0deg)}to{transform:rotate(360deg) translateX(55px) rotate(-360deg)}}
.compact-choices{grid-template-columns:repeat(3,1fr)}
.admin-login{width:min(420px,calc(100% - 32px))}.admin-login form{display:grid;gap:20px}.admin-login .dialog-head span{color:var(--muted);font-size:12px}.admin-login .dialog-head h2{margin:4px 0 0}.admin-login p{margin:0;color:var(--secondary);font-size:13px;line-height:20px}.admin-login label{display:grid;gap:7px;color:var(--secondary);font-size:12px}.admin-login input{height:42px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}
.queue-settings{padding:20px 24px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) 120px 120px auto;gap:20px;align-items:center}.queue-settings h2{margin:0;font-size:18px}.queue-settings p{margin:4px 0 0;color:var(--muted);font-size:12px}.queue-settings>.switch-row{padding:0;border:0}.queue-settings>label:not(.switch-row){display:grid;gap:6px;color:var(--secondary);font-size:12px}.queue-settings input[type=number]{width:100%;height:40px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.queue-row{min-height:60px;padding:10px 20px;display:grid;grid-template-columns:1fr 120px 220px 150px;gap:16px;align-items:center;border-bottom:1px solid var(--border);font-size:12px}.queue-row:last-child{border-bottom:0}.queue-head{min-height:42px;background:var(--subtle);color:var(--muted);font-weight:600}.queue-row .row-actions{display:flex;gap:8px}.queue-row .row-actions button{padding:0;border:0;background:none;color:var(--secondary);font-size:12px}
@media(max-width:1000px){.queue-settings{grid-template-columns:1fr 1fr}.queue-settings>div{grid-column:1/-1}.queue-row{grid-template-columns:1fr 100px 1fr}.queue-row>*:nth-child(3){display:none}}

/* Profile cards */
.profile-feed .feed-row{padding:0;display:block;overflow:hidden}
.feed-main{padding:20px 24px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:16px;align-items:start}
.feed-kind{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;background:var(--soft);font-size:13px}
.feed-copy{min-width:0}.feed-copy h3{font-size:16px;line-height:22px}.feed-copy p{margin-top:3px;line-height:19px}
.feed-meta{margin-top:9px;display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:11px}
.feed-meta>span+span:before{content:"·";margin-right:6px}.feed-status{width:max-content;padding:3px 6px;border-radius:999px;background:var(--soft);color:var(--secondary)}
.feed-meta>.feed-status:before,.feed-meta>.feed-status+span:before{content:none}
.profile-feed .feed-row>.row-actions{min-height:48px;padding:8px 12px;display:flex;justify-content:flex-end;gap:6px;border-top:1px solid var(--border);background:var(--subtle)}
.profile-feed .feed-row>.row-actions button{height:32px}
.program-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.program-actions button{height:34px;padding:0 10px;font-size:12px}.activity-code-result{padding:32px 0 16px;text-align:center}.activity-code-result span,.code-card span{color:var(--muted);font-size:12px}.activity-code-result strong{margin:16px 0 12px;display:block;font:600 32px/40px "Geist Mono",monospace;letter-spacing:.08em}.activity-code-result p{margin:0;color:var(--secondary);font-size:13px}.code-card{padding:20px 24px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.code-card+ .code-card{margin-top:8px}.code-card h3{margin:4px 0 0;font-size:15px}.code-card strong{font:600 18px/24px "Geist Mono",monospace;letter-spacing:.06em}.code-card small{grid-column:1/-1;color:var(--muted);font-size:11px}
.program-actions button:disabled{cursor:not-allowed;opacity:.45}
.activity-code-result{max-width:100%;min-width:0}.activity-code-result span,.activity-code-result strong,.activity-code-result code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.activity-code-result code{display:block;margin:0 auto 12px;padding:10px 12px;border-radius:8px;background:var(--subtle);font:12px/18px "Geist Mono",monospace;white-space:normal}.activity-code-result strong{letter-spacing:clamp(.02em,.8vw,.08em)}
.activity-code-result>p{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.activity-code-result .snapshot-list{width:100%;min-width:0}.activity-code-result .snapshot-list article{grid-template-columns:36px minmax(0,1fr);text-align:left}.activity-code-result .snapshot-list article>div{min-width:0}.activity-code-result .snapshot-list article strong{margin:0;display:block;font:600 15px/21px "Geist Mono",monospace;letter-spacing:0;overflow-wrap:anywhere;word-break:break-word}.activity-code-result .snapshot-list article small{overflow-wrap:anywhere;word-break:break-word}
.lottery-console{padding:20px 24px;display:grid;grid-template-columns:minmax(240px,.8fr) 260px minmax(360px,1.5fr);gap:20px;align-items:end}.lottery-console h2{margin:0;font-size:18px}.lottery-console p{margin:4px 0 0;color:var(--muted);font-size:12px}.lottery-console label{display:grid;gap:6px;color:var(--secondary);font-size:12px}.lottery-console input,.lottery-console select{width:100%;height:40px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.lottery-stage{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.lottery-stage label{min-width:220px;flex:1}.stage-copy{display:grid;gap:5px;min-width:220px;flex:1}.stage-copy>span{color:var(--muted);font-size:11px}.stage-copy code,.code-row code,.code-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hashes{min-width:260px}.lottery-result{margin-top:16px;padding:32px;border:1px solid var(--text);border-radius:12px;background:var(--surface);text-align:center}.lottery-result>span,.lottery-result>small{color:var(--muted);font-size:12px}.lottery-result h2{margin:8px 0 20px}.winner-board{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:20px}.winner-board strong,.winner-chips b{padding:9px 12px;border-radius:6px;background:var(--solid);color:var(--solidText);font:600 14px/20px "Geist Mono",monospace}.code-row{min-height:58px;padding:10px 20px;display:grid;grid-template-columns:1fr 1.4fr 70px;gap:12px;align-items:center;border-bottom:1px solid var(--border);font-size:12px}.code-row>div{min-width:0;display:grid;gap:3px}.code-row small{display:block;color:var(--muted)}.code-head{min-height:40px;background:var(--subtle);color:var(--muted);font-weight:600}.lottery-history{padding:18px 20px;border-bottom:1px solid var(--border)}.lottery-history:last-child{border-bottom:0}.lottery-history span,.lottery-history p{color:var(--muted);font-size:11px}.lottery-history h3{margin:5px 0}.lottery-history p{margin:0}.winner-chips{margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}.winner-chips b{padding:5px 8px;font-size:11px}
.lottery-program-picker{display:grid;gap:7px}.lottery-program-picker>span{color:var(--secondary);font-size:12px}.lottery-program-picker>div{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.lottery-program-picker>div::-webkit-scrollbar{display:none}.lottery-program-button{min-width:max-content;padding:8px 11px;display:grid;gap:1px;text-align:left;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text)}.lottery-program-button span{color:var(--muted);font-size:10px}.lottery-program-button.active{border-color:var(--text);background:var(--solid);color:var(--solidText)}.lottery-program-button.active span{color:inherit;opacity:.65}
.form-stack .check-label{min-height:58px;padding:10px 12px;display:flex!important;flex-direction:row!important;align-items:center;gap:11px;border:1px solid var(--border);border-radius:8px;background:var(--subtle);color:var(--text);cursor:pointer}.form-stack .check-label input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px;margin:0;padding:0;accent-color:var(--solid);cursor:pointer}.check-label>span{min-width:0;display:grid;gap:2px}.check-label b{font-size:13px;line-height:18px;font-weight:600}.check-label small{color:var(--muted);font-size:11px;line-height:16px}
@media(max-width:1100px){.lottery-console{grid-template-columns:1fr 1fr}.lottery-console>div{grid-column:1/-1}}
@media(max-width:600px){
  html,body{max-width:100%;overflow-x:hidden;scrollbar-width:none}
  html::-webkit-scrollbar,body::-webkit-scrollbar,.flow-dialog::-webkit-scrollbar{display:none}
  .flow-dialog{
    width:100%;
    max-width:none;
    max-height:calc(100dvh - 24px);
    margin:auto 0 0;
    padding:20px 20px calc(20px + env(safe-area-inset-bottom));
    border-width:1px 0 0;
    border-radius:16px 16px 0 0;
    scrollbar-width:none;
    overflow-x:hidden;
    contain:inline-size;
  }
  .flow-dialog .dialog-head{position:sticky;top:-20px;z-index:2;margin:-4px 0 2px;padding:4px 0 12px;background:var(--surface)}
  .flow-dialog .dialog-head h2{font-size:19px}
  .flow-dialog .form-stack{gap:14px;margin-top:18px}
  .flow-dialog .form-stack label{gap:6px}
  .flow-dialog .form-stack select,.flow-dialog .form-stack input{height:42px}
  .flow-dialog .form-stack textarea{min-height:88px;max-height:120px}
  input:not([type=checkbox]):not([type=radio]),select,textarea,.rich-text-editor{font-size:16px!important}
  .flow-dialog .flow-submit{height:44px;margin-top:20px}
  .result-choices{grid-template-columns:1fr 1fr}
  .result-choices label:first-child{grid-column:1/-1}
  .persona-card{padding:24px;gap:20px}
  .persona-type{width:88px;height:88px;font-size:28px}
  .persona-card h2{font-size:28px;line-height:34px}
  .persona-card p{margin:10px 0 0;font-size:14px;line-height:20px}
  .profile-tabs{margin-top:24px}
  .profile-tabs button{flex:1;padding:12px 4px}
  .profile-feed{margin-top:16px}
  .feed-main{padding:16px;gap:12px}
  .profile-feed .feed-row>.row-actions{grid-column:auto;width:auto;margin:0;padding:8px 12px;justify-content:flex-end;flex-wrap:wrap}
  .program-foot{align-items:flex-start;gap:12px;flex-direction:column}.program-actions{width:100%}.program-actions button{flex:1}
  .code-card{padding:16px;grid-template-columns:1fr}.code-card strong{font-size:16px}.code-card small{grid-column:auto}
  .activity-code-result{width:100%;padding:24px 0 12px}.activity-code-result>strong{margin:12px 0 10px;font-size:clamp(20px,7vw,28px);line-height:1.25}.activity-code-result code{font-size:11px;line-height:17px}.activity-code-result p{line-height:19px}.activity-code-result .snapshot-list article{padding:14px 12px;gap:10px}.activity-code-result .snapshot-list article>b{width:32px}.activity-code-result .snapshot-list article strong{font-size:14px;line-height:20px}
  .lottery-console{grid-template-columns:1fr}.lottery-console>div{grid-column:auto}.lottery-result{padding:24px 16px}
}
.persona-type img{width:100%;height:100%;object-fit:contain}
.profile-identity{margin-bottom:16px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.profile-identity>div{min-width:0;display:grid;grid-template-columns:auto 1fr;gap:3px 14px;align-items:center}.profile-identity span{grid-row:1/3;color:var(--muted);font-size:12px}.profile-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.profile-identity small{color:var(--muted);font:11px/16px "Geist Mono",monospace}.nickname-cooldown{padding:10px 12px;border-radius:7px;background:var(--subtle);color:var(--secondary)!important}
.persona-type.has-avatar{border-radius:12px;background:transparent;color:var(--text)}
.persona-card{grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:40px}
.persona-profile{min-width:0;display:flex;align-items:center;gap:28px}
.persona-type{flex:none}
.persona-heading{min-width:0}
.persona-tags{flex-wrap:wrap;margin-top:14px}
.activity-summary{padding-left:40px;border-left:1px solid var(--border)}
.activity-summary h3{margin:0 0 22px;font-size:15px}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.summary-grid>div{display:grid;gap:5px}
.summary-grid strong{font:600 30px/36px "Geist Mono",monospace}
.summary-grid span{color:var(--muted);font-size:12px;white-space:nowrap}
@media(max-width:800px){.persona-card{grid-template-columns:1fr}.persona-profile{align-items:center}.activity-summary{padding:22px 0 0;border-left:0;border-top:1px solid var(--border)}.summary-grid{grid-template-columns:1fr 1fr}}
.feed-meta .countdown{color:var(--text);font-weight:600}
.letter-option{padding:14px;border:1px solid var(--border);border-radius:8px;display:flex!important;grid-template-columns:18px 1fr!important;align-items:center}
.letter-option input{width:18px!important;height:18px!important}
.letter-option span{display:grid;gap:3px}
.letter-option small{color:var(--muted)}
.blindbox-result{padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}
.blindbox-result>span{display:inline-grid;width:40px;height:40px;place-items:center;border-radius:6px;background:var(--solid);color:var(--solidText)}
.blindbox-result h2{margin:24px 0 8px}

/* Activity-code cards and optional-code guidance */
.code-card>*{min-width:0}
.code-card>code{grid-column:1/-1;width:100%;max-width:100%;padding:9px 10px;display:block;border-radius:7px;background:var(--subtle);font:11px/17px "Geist Mono",monospace;white-space:normal;overflow-wrap:anywhere;word-break:break-all}
.code-card>strong{max-width:100%;overflow-wrap:anywhere}
.manual-award-card p{margin:6px 0 0;color:var(--secondary);font-size:13px;line-height:1.6}.manual-award-card .manual-award-action{grid-column:1/-1;width:100%}
.submission-bulk-toolbar{margin:12px 0;border:1px solid var(--border);border-radius:10px}.submission-bulk-toolbar,.submission-filter-fields,.submission-bulk-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.submission-bulk-toolbar input,.submission-bulk-toolbar select{height:36px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.bulk-check{align-self:flex-start;padding-top:6px}.bulk-check input{width:18px;height:18px}
.optional-tag{margin-left:4px;padding:2px 5px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:10px}
.code-guide{padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--subtle)}
.code-guide b{font-size:13px}.code-guide p{margin:4px 0 0;color:var(--secondary);font-size:12px;line-height:18px}
.locked-code-guide{border-color:var(--text)}.form-stack input[readonly]{background:var(--soft);color:var(--secondary);cursor:not-allowed}
@media(max-width:600px){.code-card{grid-template-columns:minmax(0,1fr)}.code-card>strong{text-align:left}.code-card>code,.code-card>small{grid-column:auto}}
.mbti-match-picker{min-width:0;margin:24px 0 0;padding:0;border:0}.mbti-match-picker legend{margin-bottom:10px;color:var(--secondary);font-size:13px}.mbti-match-picker>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.mbti-match-picker label{min-width:0}.mbti-match-picker input{position:absolute;width:1px;height:1px;opacity:0}.mbti-match-picker span{height:38px;display:grid;place-items:center;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--secondary);font:12px/1 "Geist Mono",monospace}.mbti-match-picker input:checked+span{border-color:var(--solid);background:var(--solid);color:var(--solidText)}.mbti-match-picker input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.mbti-match-picker.content-kind-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}.program-content-types{margin:0;padding:14px;border:1px solid var(--border);border-radius:8px}.program-content-types legend{padding:0 6px;color:var(--secondary);font-size:12px;font-weight:600}.program-content-types .choice-grid label{display:block}.program-content-types .choice-grid input{position:absolute;width:1px;height:1px;opacity:0}.program-content-types .choice-grid span{height:42px;display:grid;place-items:center;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--secondary)}.program-content-types .choice-grid input:checked+span{border-color:var(--solid);background:var(--solid);color:var(--solidText)}
.letter-row .feed-copy>small{color:var(--muted);font-size:11px}.letter-row .letter-content{margin-top:10px;font-size:15px;line-height:1.75;white-space:pre-wrap}.letter-feedback{margin-top:14px;padding:13px 14px;border:1px solid var(--border);border-radius:9px;background:var(--subtle);display:grid;grid-template-columns:1fr auto;gap:6px 12px}.letter-feedback b{font-size:12px}.letter-feedback span{color:#b88425;letter-spacing:2px}.letter-feedback p{grid-column:1/-1;margin:0;color:var(--secondary);font-size:12px;line-height:1.6;white-space:pre-wrap}
.blindbox-result p{color:var(--secondary);line-height:1.6}
.blindbox-result small{display:block;margin-top:24px;color:var(--muted)}
.issue-tabs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.section-head.compact>div:first-child .eyebrow{margin-bottom:6px}
@media(max-width:800px){.issue-tabs{justify-content:flex-start}}
@media(max-width:600px){.profile-identity{padding:14px 16px}.profile-identity>div{grid-template-columns:1fr}.profile-identity span{grid-row:auto}.profile-identity button{flex:none}}
@media(max-width:600px){
  .profile-identity{padding:18px;align-items:stretch;flex-direction:column;gap:14px;border-radius:16px}
  .profile-identity>div{gap:5px}
  .profile-identity span{font-size:11px;letter-spacing:.04em}
  .profile-identity strong{font-size:18px;line-height:24px}
  .profile-identity button{width:100%;height:44px;border-radius:10px}
  .profile-account-settings{padding:18px;grid-template-columns:1fr;gap:12px;border-radius:16px}
  .profile-account-settings>div:first-child{gap:6px}
  .profile-account-settings>div:first-child strong{font-size:20px;line-height:26px}
  .profile-account-settings>div:first-child small{max-width:30em;color:var(--secondary);font-size:12px;line-height:18px}
  .profile-account-settings>button{width:100%;height:44px;border-radius:10px}
  .profile-account-settings .share-setting-title{padding-top:18px;margin-top:4px}
  .profile-account-settings .share-setting-title span{color:var(--text);font-size:14px;font-weight:600}
  .profile-account-settings .switch-row{min-height:68px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}
  .profile-account-settings .switch-row b{font-size:14px}
  .profile-account-settings .switch-row small{font-size:11px;line-height:16px}
  .profile-account-settings .switch-row i{flex:none;width:42px;height:24px}
  .profile-account-settings .switch-row i:after{width:14px;height:14px;top:4px;left:4px}
  .profile-account-settings .switch-row input:checked+i:after{transform:translateX(18px)}
  .flow-dialog .flow-intro{margin:10px 0 0;padding:12px 14px;border-radius:10px;background:var(--subtle);font-size:13px;line-height:19px}
  .flow-dialog .form-stack input{height:48px;padding:0 14px;border-radius:10px;font-size:16px}
  .flow-dialog .flow-submit{height:48px;border-radius:10px;font-size:15px}
}

/* Nickname history */
.nickname-row{min-height:64px;padding:12px 20px;display:grid;grid-template-columns:1.3fr 1fr 1fr 180px;gap:16px;align-items:center;border-bottom:1px solid var(--border);font-size:12px}.nickname-row:last-child{border-bottom:0}.nickname-row>div{min-width:0;display:grid;gap:3px}.nickname-row small,.nickname-row time{color:var(--muted)}.nickname-row strong{font-size:13px}.nickname-head{min-height:42px;background:var(--subtle);color:var(--muted);font-size:11px;font-weight:600}
@media(max-width:700px){.nickname-row{grid-template-columns:1.4fr 1fr}.nickname-row>*:nth-child(2),.nickname-row>*:nth-child(4){display:none}}

/* Book / film / tea share poster */
.inspiration-card{position:relative}
.poster-card-action{position:absolute;right:16px;bottom:14px;height:30px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--secondary);font-size:11px;font-weight:500}
.poster-card-action:hover{border-color:var(--text);color:var(--text)}
.poster-builder{display:grid;gap:16px;margin-top:18px}
.share-card-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--subtle)}.share-card-tabs button{height:40px;border:0;border-radius:7px;background:transparent;color:var(--secondary);font-size:13px;font-weight:600}.share-card-tabs button.active{background:var(--solid);color:var(--solidText)}.share-card-panel{display:none;gap:16px}.share-card-panel.active{display:grid}.share-card-panel>small{color:var(--muted);font-size:11px;text-align:center}.text-share-card{padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.text-share-card>span{display:block;margin-bottom:10px;color:var(--muted);font-size:11px}.text-share-card textarea{width:100%;min-height:340px;padding:18px;border:0;border-radius:9px;background:var(--subtle);color:var(--text);font:14px/1.85 inherit;resize:none;outline:none}
.flow-dialog:has(.poster-builder){width:min(480px,calc(100% - 32px));scrollbar-width:none}
.flow-dialog:has(.poster-builder)::-webkit-scrollbar{display:none}
.poster-theme{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px;border:1px solid var(--border);border-radius:9px;background:var(--subtle)}
.poster-theme button{height:36px;border:0;border-radius:6px;background:transparent;color:var(--secondary);font-size:12px;font-weight:600}
.poster-theme button.active{background:var(--solid);color:var(--solidText)}
.poster-preview-shell{width:min(100%,320px);margin:0 auto;padding:0;border:0;border-radius:10px;background:transparent;overflow:hidden}
.poster-preview-shell img{width:100%;display:block;border-radius:10px;background:#f2f0e9;box-shadow:0 18px 48px rgba(0,0,0,.12);user-select:none;-webkit-user-select:none;-webkit-touch-callout:default}
.poster-signature{padding:14px;display:grid;gap:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.poster-builder .poster-signature{display:none}.profile-account-settings{margin:0 0 16px;padding:16px 20px;display:grid;grid-template-columns:1fr auto;gap:14px 18px;align-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.profile-account-settings>div:first-child{display:grid;gap:3px}.profile-account-settings span,.profile-account-settings small{color:var(--muted);font-size:11px}.profile-account-settings strong{font-size:15px}.profile-account-settings .share-setting-title{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--border);display:flex;justify-content:space-between}.profile-account-settings .switch-row{grid-column:1/-1}
.poster-signature legend{padding:0 6px;color:var(--secondary);font-size:12px;font-weight:600}
.poster-signature .check-label{min-height:50px;padding:8px 10px;display:flex!important;align-items:center;gap:10px;border-radius:8px;background:var(--subtle);cursor:pointer}
.poster-signature .check-label input{width:18px;height:18px;accent-color:var(--solid)}
.poster-signature>input{width:100%;height:40px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font:14px/20px inherit}
.poster-builder>small{display:block;color:var(--muted);font-size:11px;text-align:center}
.poster-builder .flow-submit{margin-top:0}
.account-button{height:32px;padding:0 11px}.login-flow{margin-top:18px;display:grid;justify-items:center;gap:12px;text-align:center}.login-flow h3{margin:4px 0 0}.login-flow p{max-width:360px;margin:0;color:var(--secondary);font-size:13px;line-height:20px}.login-qr{width:208px;height:208px;padding:8px;border:1px solid var(--border);border-radius:12px;background:#fff;object-fit:contain}.login-code{padding:2px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font:700 32px/42px "Geist Mono",monospace;letter-spacing:.18em}.login-code:active{background:var(--soft)}.copy-login-code{min-width:132px}.login-open{height:42px;padding:0 18px;display:inline-flex;align-items:center;border-radius:8px;text-decoration:none}.login-flow small{color:var(--muted);line-height:18px}
@media(max-width:600px){
  .poster-builder{gap:12px;margin-top:12px}
  .flow-dialog:has(.poster-builder){width:100%;max-width:none;margin-inline:0}
  .poster-preview-shell{width:min(100%,300px);padding:0;border-radius:8px}
  .poster-preview-shell img{border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.13)}
}
.program-ops-guide{margin-top:24px;padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}
.program-ops-guide>div>span{color:var(--muted);font-size:12px}
.program-ops-guide h2{margin:6px 0 8px;font-size:18px}
.program-ops-guide p,.program-ops-guide small{margin:0;color:var(--secondary);font-size:13px;line-height:20px}
.program-ops-guide ol{margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;list-style:none;counter-reset:ops}
.program-ops-guide li{min-height:88px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);counter-increment:ops}
.program-ops-guide li:before{content:counter(ops);display:block;margin-bottom:8px;color:var(--muted);font:12px/16px "Geist Mono",monospace}
.program-ops-guide li b,.program-ops-guide li span{display:block}
.program-ops-guide li span{margin-top:4px;color:var(--secondary);font-size:12px;line-height:17px}
@media(max-width:800px){
  .program-ops-guide{padding:18px}
  .program-ops-guide ol{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){.program-ops-guide ol{grid-template-columns:1fr}}
.rich-text-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--subtle)}
.rich-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.rich-text-toolbar button{height:30px;min-width:30px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--secondary);font-size:11px}
.rich-text-toolbar button:hover{border-color:var(--text);color:var(--text)}
.rich-text-toolbar button.active{border-color:var(--text);background:var(--solid);color:var(--solidText)}
.rich-text-toolbar button.mixed{border-color:var(--text);border-style:dashed;background:var(--soft);color:var(--text)}
.rich-text-toolbar button:focus-visible{outline:2px solid var(--text);outline-offset:1px}
.rich-divider{width:1px;height:20px;margin:0 2px;background:var(--border)}
.rich-text-status{margin-left:auto;flex:0 0 auto;color:var(--muted);font-size:10px;white-space:nowrap}
.rich-text-editor{min-height:112px;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font:14px/21px inherit;white-space:pre-wrap;outline:none;overflow-y:auto}
.rich-text-editor ul,.rich-text-editor ol{margin:6px 0;padding-left:24px}.rich-text-editor a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.rich-text-editor:focus{border-color:var(--text);box-shadow:0 0 0 2px var(--soft)}
.rich-text-editor:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.rich-text-count{display:block;margin-top:5px;color:var(--muted);font-size:10px;text-align:right}
.rich-text-count.limit{color:#c33;font-weight:600}
.feed-copy>p,.inspiration-card p,.blindbox-result>p,.snapshot-list p{white-space:normal;overflow-wrap:anywhere}
.inspiration-card p del,.feed-copy p del,.library-card p del,.review-row p del,.snapshot-list p del{color:var(--muted)}

/* 管理后台以高密度列表为主，卡片只保留给总览指标和操作说明。 */
.admin-app .review-list{display:block;gap:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}
.admin-app .admin-panel>.review-list{border:0;border-radius:0}
.admin-app .review-row{min-height:64px;padding:10px 16px;display:grid;grid-template-columns:40px minmax(260px,1fr) auto;gap:14px;align-items:center;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
.admin-app .review-row+.review-row{margin-top:0}
.admin-app .review-row:last-child{border-bottom:0}
.admin-app .review-row h3{font-size:14px;line-height:20px}
.admin-app .review-row p{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-app .review-row small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:16px}
.admin-app .review-row>div:last-child{justify-content:flex-end;align-items:center;white-space:nowrap}
.admin-app .review-kind{width:32px;height:32px;font-size:12px}
.admin-app .library-grid{display:block;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}
.admin-app .library-card{min-height:68px;padding:10px 16px;display:grid;grid-template-columns:150px minmax(160px,.8fr) minmax(260px,1.5fr) 130px minmax(190px,auto);gap:16px;align-items:center;border:0;border-bottom:1px solid var(--border);border-radius:0}
.admin-app .library-card:last-child{border-bottom:0}
.admin-app .library-card h3,.admin-app .library-card p,.admin-app .library-card .card-actions{margin:0}
.admin-app .library-card p{min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.admin-app .library-card .card-actions{justify-content:flex-end;flex-wrap:nowrap}
.admin-app .library-meta>span{width:32px;height:32px;font-size:12px}
.admin-app .admin-panel{border-radius:8px}
.admin-app .table-toolbar{padding:14px 18px}
.admin-app .table-row{min-height:58px;padding:9px 18px}
@media(max-width:800px){.admin-app .review-row{grid-template-columns:32px minmax(0,1fr);align-items:start}.admin-app .review-row>div:last-child,.admin-app .review-row>.status{grid-column:2;justify-content:flex-start;white-space:normal}.admin-app .review-row p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.admin-app .library-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 10px}.admin-app .library-card>*{grid-column:2}.admin-app .library-card>.library-meta{grid-column:1/-1}.admin-app .library-card p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.admin-app .library-card .card-actions{justify-content:flex-start;flex-wrap:wrap}}
.submission-table,.award-table{overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.submission-list-row{min-height:76px;padding:12px 16px;display:grid;grid-template-columns:56px minmax(280px,1.6fr) minmax(150px,.65fr) 90px minmax(270px,auto);gap:16px;align-items:center;border-bottom:1px solid var(--border)}.submission-list-row:last-child,.award-list-row:last-child{border-bottom:0}.submission-list-head,.award-list-head{min-height:42px;background:var(--subtle);color:var(--muted);font-size:11px;font-weight:600}.submission-select{display:flex;align-items:center;gap:10px}.submission-select input{width:18px;height:18px;margin:0}.submission-select .review-kind{width:30px;height:30px}.submission-main{min-width:0}.submission-main h3{margin:0;font-size:14px}.submission-main p{margin:4px 0 0;overflow:hidden;color:var(--secondary);font-size:12px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.submission-user{display:flex;min-width:0;flex-direction:column;gap:3px}.submission-user b{font-size:12px}.submission-user small,.award-list-row small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.submission-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}.submission-actions button{min-height:32px;padding:6px 10px}.award-list-row{min-height:68px;padding:10px 16px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.75fr) minmax(240px,1.2fr) 80px minmax(190px,auto);gap:16px;align-items:center;border-bottom:1px solid var(--border);font-size:12px}.award-list-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.award-status-control{flex-direction:row!important;align-items:center;justify-content:flex-end}.award-status-control select{height:34px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.award-status-control button{height:34px}.admin-app #submissionList{margin-top:0}.admin-app #manualAwardList{border:0;border-radius:0}
@media(max-width:1100px){.submission-list-row{grid-template-columns:48px minmax(220px,1fr) 90px minmax(220px,auto)}.submission-list-row>.submission-user{display:none}.award-list-row{grid-template-columns:minmax(160px,1fr) minmax(190px,1fr) 80px minmax(180px,auto)}.award-list-row>div:nth-child(2){display:none}}
@media(max-width:700px){.submission-table,.award-table{border-right:0;border-left:0;border-radius:0}.submission-list-head,.award-list-head{display:none}.submission-list-row{padding:14px 12px;grid-template-columns:38px minmax(0,1fr);gap:8px 10px;align-items:start}.submission-list-row>.status,.submission-actions{grid-column:2}.submission-main p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.submission-actions{justify-content:flex-start;flex-wrap:wrap}.award-list-row{padding:14px 12px;grid-template-columns:minmax(0,1fr) auto;gap:8px}.award-list-row>div:nth-child(3){grid-column:1/-1}.award-status-control{grid-column:1/-1;justify-content:flex-start}}
.declaration-editor{display:grid;gap:16px;padding:16px;border:1px solid var(--border);border-radius:10px}.declaration-editor legend{padding:0 6px;font-weight:600}.declaration-editor label{display:grid;gap:7px}.declaration-editor textarea{min-height:160px}.declaration-editor>small{color:var(--muted)}.declaration-confirm{display:grid;gap:16px}.declaration-scroll{max-height:min(52vh,520px);padding:16px;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--subtle);color:var(--secondary);font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.declaration-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--border);border-radius:9px}.declaration-consent input{width:18px;height:18px;flex:none;margin-top:2px}.declaration-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:8px}.declaration-actions button{width:100%}
#admin-lottery .lottery-console{grid-template-columns:minmax(260px,.75fr) minmax(420px,1.25fr);align-items:start}
#admin-lottery .lottery-console>div:first-child{grid-column:1/-1}
#admin-lottery #lotteryProgram{display:grid;grid-template-columns:1fr;gap:7px;overflow:visible}
#admin-lottery .lottery-program-button{width:100%;min-width:0;padding:11px 12px}
#admin-lottery .lottery-program-button b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#admin-lottery .lottery-program-button small{color:var(--muted);font-size:10px}
#admin-lottery .lottery-program-button.active small{color:inherit;opacity:.65}
@media(max-width:900px){#admin-lottery .lottery-console{grid-template-columns:1fr}#admin-lottery .lottery-console>div:first-child{grid-column:auto}}
.claim-image-dialog{width:min(960px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;overflow:auto}
.claim-image-dialog .dialog-head{position:sticky;top:-20px;z-index:2;padding:0 0 16px;background:var(--surface)}
.claim-image-stage{min-height:240px;display:grid;place-items:center;border-radius:10px;background:var(--subtle);overflow:hidden}
.claim-image-stage span{color:var(--muted);font-size:13px}
.claim-image-stage img{display:block;max-width:100%;height:auto}
@media(max-width:480px){.rich-text-toolbar{align-items:flex-start;flex-direction:column}.rich-text-status{margin-left:2px}.rich-tools{width:100%}}
.toast{top:max(16px,env(safe-area-inset-top));right:16px;bottom:auto;left:50%;z-index:2147483647;width:max-content;max-width:min(420px,calc(100vw - 32px));transform:translate(-50%,-16px);text-align:center;line-height:20px;box-shadow:0 10px 32px rgba(0,0,0,.2)}
.toast.show{transform:translate(-50%,0)}
@media(max-width:600px){.toast{top:max(12px,env(safe-area-inset-top));width:calc(100vw - 24px);max-width:none;padding:12px 14px;border-radius:9px;font-size:14px}}
.prize-tier-editor{padding:16px;border:1px solid var(--border);border-radius:10px}.prize-tier-editor legend{padding:0 6px;font-weight:600}.prize-tier-head,.prize-tier-row{display:grid;grid-template-columns:1fr 1.7fr 84px 32px;gap:8px;align-items:center}.prize-tier-head{margin-bottom:6px;color:var(--muted);font-size:10px}.prize-tier-row{margin-bottom:8px}.prize-tier-row input{width:100%}.prize-tier-row button{height:32px;border:0;background:transparent;color:var(--muted);font-size:18px}.prize-tier-editor>.add-prize-tier{margin:4px 0 10px}.prize-tier-editor>small{display:block;color:var(--muted);font-size:11px}.lottery-prize-summary{width:100%;display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.lottery-prize-summary span{padding:6px 9px;border-radius:7px;background:var(--soft);color:var(--secondary);font-size:11px}.lottery-prize-summary b{margin-right:5px;color:var(--text)}
@media(max-width:600px){.prize-tier-head{display:none}.prize-tier-row{grid-template-columns:1fr 70px 32px}.prize-tier-row [data-prize-name]{grid-column:1/-1;grid-row:2}.prize-tier-row [data-prize-count]{grid-column:2;grid-row:1}.prize-tier-row button{grid-column:3;grid-row:1}}
