:root{color-scheme:dark;--bg:#10121c;--panel:#1a1e2d;--border:#33384c;--text:#f1f2f8;--muted:#a6acc0;--accent:#a38bff;--green:#48d2a2;--bad:#ff808a}body.light{color-scheme:light;--bg:#f5f5fa;--panel:#fff;--border:#dfe1ed;--text:#25273a;--muted:#686c7d;--accent:#6e50d8;--green:#168965;--bad:#be303f}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px system-ui,Segoe UI,Arial,sans-serif;min-width:300px}header{display:flex;justify-content:space-between;align-items:center;padding:16px 16px 8px}.brand{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:1.1px}.brand span{color:var(--muted)}h1{margin:3px 0 0;font-size:23px}h2{font-size:14px;margin:0 0 12px}button,select,input,textarea{font:inherit}button{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;cursor:pointer}button:hover{border-color:var(--accent)}button.primary{background:var(--accent);border-color:var(--accent);color:#111020;font-weight:700}button:disabled{opacity:.4;cursor:not-allowed}input,select,textarea{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px;width:100%}textarea{resize:vertical;line-height:1.55}.toolbar{display:flex;gap:6px;padding:6px 14px 12px}.toolbar select{flex:1;min-width:0}.toolbar button{padding:7px}nav{display:flex;gap:3px;padding:0 12px;border-bottom:1px solid var(--border)}nav button{flex:1;font-size:11px;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 3px;background:transparent;color:var(--muted)}nav button.selected{border-color:var(--accent);color:var(--text);font-weight:700}main{padding:14px 12px 36px}.card{background:var(--panel);border:1px solid var(--border);border-radius:13px;padding:14px;margin-bottom:12px}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{font-size:11px;color:var(--muted);font-weight:700}label input{margin-top:6px;font-size:14px}.progress-label,.split-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.progress-label{margin:18px 0 8px}.progress-label span,.hint{color:var(--muted);font-size:11px}.hint{line-height:1.5}.track{height:9px;background:var(--bg);border-radius:20px;overflow:hidden}.track div{height:100%;width:0;background:var(--accent);transition:width .2s}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:13px}.metrics>div{background:var(--bg);border-radius:8px;padding:10px 6px;text-align:center}.metrics strong{display:block;font-size:16px}.metrics small{color:var(--muted);font-size:10px}.buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.buttons button{flex:1}#notice{margin:0 14px;color:var(--green);font-size:11px;min-height:0}#notice:not(:empty){padding:6px 0}#errors{color:var(--bad);font-size:11px;white-space:pre-wrap;margin-top:8px}.person{border-top:1px solid var(--border);padding:12px 0}.person:first-child{border:0}.person-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.person-name{font-weight:700;overflow-wrap:anywhere}.person-meta{color:var(--muted);font-size:11px;margin:5px 0}.person input{margin-top:6px}.paid{color:var(--green);font-weight:700}.wraptext{line-height:1.7;overflow-wrap:anywhere}.spotrows{max-height:440px;overflow:auto;margin-top:12px}.spotrow{display:grid;grid-template-columns:50px 1fr;padding:6px 8px;border-bottom:1px solid var(--border)}.spotrow span:first-child{color:var(--muted)}.scanitem{display:flex;align-items:flex-start;gap:8px;border-top:1px solid var(--border);padding:8px 0}.scanitem input{width:auto;margin-top:3px}.scanitem div{overflow-wrap:anywhere}footer{position:sticky;bottom:0;background:var(--bg);border-top:1px solid var(--border);display:flex;justify-content:space-between;padding:9px 14px;color:var(--muted);font-size:10px}code{color:var(--accent)}

.person-paid{background:rgba(72,210,162,.09);border-left:3px solid var(--green);padding-left:10px;padding-right:8px;border-radius:7px}.person-paid .person-name{color:var(--green)}body.light .person-paid{background:rgba(22,137,101,.09)}

.brand{display:flex;align-items:center;gap:5px}.brand-icon{width:17px;height:17px;object-fit:contain}.delete-button{display:flex;align-items:center;justify-content:center;min-width:29px}.delete-button:hover{color:var(--bad);border-color:var(--bad)}

/* V1.3.0 visual polish based on the approved reference */
:root{--bg:#101420;--panel:#1c2232;--border:#354056;--text:#f5f6fc;--muted:#b3bed7;--accent:#aa8aff;--green:#48d2a2}
body{background:radial-gradient(ellipse at 30% 0%,rgba(36,45,72,.23),transparent 58%),var(--bg);font-size:13px}
header{padding:18px 17px 12px;align-items:center;gap:10px}
.header-identity{display:flex;align-items:center;gap:10px;min-width:0}.header-logo{width:48px;height:48px;object-fit:contain;flex:none}
.brand{font-size:11px;letter-spacing:1.5px;color:var(--accent)}h1{font-size:25px;line-height:1.1;margin:4px 0 0;white-space:nowrap}
.header-actions{display:flex;gap:6px;align-items:center}.header-actions button{height:34px;width:34px;padding:4px;font-size:18px;border-radius:10px;background:#1b2232;display:flex;align-items:center;justify-content:center}.header-actions .delete-button{color:#ff6478;border-color:#703a50}
.toolbar{padding:8px 17px 15px}.toolbar select{min-height:43px;padding:10px 13px;background:#121824}
nav{padding:0 14px}nav button{font-size:12px;padding:13px 4px}
main{padding:18px 14px 42px}.card{padding:17px;margin-bottom:13px;border-radius:14px;background:linear-gradient(135deg,#1d2436,#1b2130)}
h2{font-size:15px;margin-bottom:13px}.hint{font-size:12px;line-height:1.65}label{font-size:12px}label input{font-size:16px;font-weight:650;padding:11px 12px}
.progress-label{margin:23px 0 10px}.track{height:10px}.metrics{gap:9px;margin-top:17px}.metrics>div{padding:13px 4px}.metrics strong{font-size:19px}.metrics small{font-size:11px}
textarea{font-size:13px;line-height:1.65;padding:11px;min-height:180px}button.primary{min-height:40px;border-radius:9px}
footer{padding:12px 16px;align-items:center;min-height:66px;background:var(--bg)}.footer-brand{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650}.footer-brand img{width:26px;height:26px;object-fit:contain}.footer-brand small{font-size:11px;color:var(--muted);font-weight:400}.footer-status{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px}
@media(max-width:420px){header{padding:14px 11px 8px}.header-logo{width:35px;height:35px}.header-identity{gap:6px}.brand{font-size:9px}h1{font-size:19px}.header-actions{gap:3px}.header-actions button{width:27px;height:30px;font-size:15px}.toolbar{padding:7px 12px 12px}main{padding:13px 10px 35px}}
body.light{--bg:#f5f5fa;--panel:#fff;--border:#dfe1ed;--text:#25273a;--muted:#686c7d;--accent:#6e50d8}
body.light .toolbar select,body.light .header-actions button{background:#fff}

/* Activation gate */
.license-gate{position:fixed;inset:0;z-index:9999;background:#0d101b;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto;color:#f5f5ff}
.license-gate[hidden],#activationForm[hidden]{display:none!important}
.license-card{width:100%;max-width:440px;background:#1b2030;border:1px solid #363f5b;border-radius:16px;padding:24px;text-align:center;box-sizing:border-box}
.license-logo{width:65px;height:65px;object-fit:contain}.license-card h2{font-size:22px;margin:10px 0}.license-card p{color:#c0c8e5;line-height:1.5}
.license-card label{display:block;text-align:left;margin:18px 0 10px;color:#dce2ff}.license-card input{width:100%;margin-top:8px;box-sizing:border-box}
.license-card button{margin:8px 0;width:100%;min-height:42px}.license-card .license-note{font-size:12px;margin-top:18px}

.license-feedback{min-height:1.4em;color:#b9a6ff;font-size:12px;line-height:1.5;margin:9px 0 0;text-align:center}

/* V1.4.2: toolbar colors and first paid claim indicator */
.header-actions #new{color:#48d2a2;border-color:rgba(72,210,162,.42)}
.header-actions #rename{color:#f4c95d;border-color:rgba(244,201,93,.42)}
.person.person-paid:first-child{border-left:3px solid var(--green)}
#raw::placeholder{color:var(--muted);opacity:.72;white-space:pre-line}

/* Release update banner */
.update-banner{margin:0 14px 8px;padding:12px 14px;background:var(--panel);border:1px solid var(--accent);border-radius:11px}.update-banner[hidden]{display:none!important}.update-heading{font-weight:750}.update-heading strong{color:var(--accent)}#updateNotes{color:var(--muted);font-size:12px;line-height:1.5;white-space:pre-line;margin:9px 0}.update-actions{display:flex;gap:8px}.update-actions button:first-child{flex:1}#updateFeedback{color:var(--green);font-size:11px;min-height:0;margin:8px 0 0}

.license-remaining{margin:0 14px 12px;padding:9px 12px;border:1px solid #3b4562;background:#181f32;border-radius:10px;color:#c9c4fa;font-size:12px}.license-remaining[hidden]{display:none!important}

/* V1.4.7: keep remaining access in the footer between brand and version. */
footer{gap:8px}footer .footer-brand,footer .footer-status{flex:0 0 auto}footer .license-remaining{flex:1 1 auto;min-width:0;margin:0;padding:0;border:0;background:transparent;border-radius:0;color:var(--green);font-size:10px;line-height:1.35;text-align:center;overflow-wrap:anywhere}footer .license-remaining[hidden]{display:none!important}

/* License status: descriptive two-line footer label. */
footer .license-remaining{white-space:pre-line;color:var(--green);font-size:10px;line-height:1.4}

/* V1.4.9 — fully coherent light palette. Keep dark theme unchanged. */
body.light{color-scheme:light;--bg:#f5f6fc;--panel:#ffffff;--border:#d7ddeb;--text:#19233b;--muted:#52617a;--accent:#7650d9;--green:#087e5b;--bad:#b42c4a;background:radial-gradient(ellipse at 30% 0%,rgba(166,149,232,.13),transparent 62%),var(--bg);color:var(--text)}
body.light .card{background:linear-gradient(135deg,#fff,#f9faff);border-color:var(--border);box-shadow:0 2px 10px rgba(25,35,59,.035)}
body.light .header-actions button,body.light .toolbar select{background:#fff;color:var(--text);border-color:#cfd6e6}
body.light .header-actions #new{color:#087e5b;border-color:#9ed8c4;background:#f1fcf7}
body.light .header-actions #rename{color:#966600;border-color:#ebd08c;background:#fff9e8}
body.light .header-actions .delete-button{color:#bd3653;border-color:#e9b9c5;background:#fff4f6}
body.light input,body.light select,body.light textarea{background:#fff;color:var(--text);border-color:#c8d1e2}
body.light input:focus,body.light select:focus,body.light textarea:focus{outline:2px solid rgba(118,80,217,.2);border-color:var(--accent)}
body.light input::placeholder,body.light textarea::placeholder{color:#64718a;opacity:1}
body.light label,body.light h2,body.light .progress-label,body.light .progress-label strong,body.light .split-title{color:var(--text)}
body.light .progress-label span,body.light .hint,body.light .person-meta,body.light .metrics small{color:var(--muted)}
body.light .track{background:#e4e7f2}
body.light .metrics>div{background:#f0f2fa;border:1px solid #e1e5f0}
body.light .metrics strong{color:#18233c}
body.light button:not(.primary){color:var(--text)}
body.light button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
body.light nav button{color:#5c6680}body.light nav button.selected{color:#36216e;border-color:var(--accent)}
body.light .person-paid{background:#eaf8f1;border-left-color:var(--green)}
body.light .person-paid .person-name,body.light .paid{color:var(--green)}
body.light .update-banner{background:#f7f3ff;border-color:#b9a5ed}body.light #updateNotes{color:#4c5370}
body.light footer{background:#f9faff;border-top-color:var(--border)}
body.light footer .license-remaining{color:var(--green)}
body.light .spotrow{border-bottom-color:var(--border)}

/* V1.5.0: anchor footer at the viewport bottom on short tabs while keeping it visible on long tabs. */
html{min-height:100%;}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;}
body>header,body>.toolbar,body>#notice,body>#updateBanner,body>nav{flex-shrink:0;}
body>main{flex:1 0 auto;}
body>footer{flex-shrink:0;position:sticky;bottom:0;z-index:5;}


/* V1.5.1 — readability improvements in both themes. */
body{font-size:14px;line-height:1.5}
nav button{font-size:13px;line-height:1.3}
h2{font-size:16px;line-height:1.35}
label{font-size:13px;line-height:1.45}
.hint{font-size:13px;line-height:1.6}
.progress-label span,.split-title .hint{font-size:13px}
.metrics small{font-size:12px;line-height:1.45}
.person-name{font-size:14px}
.person-meta{font-size:13px;line-height:1.5}
.person input{font-size:14px}
.spotrow{font-size:14px;line-height:1.5;padding:8px 9px}
.wraptext{font-size:14px;line-height:1.7}
textarea{font-size:14px;line-height:1.6}
#notice,#errors{font-size:13px;line-height:1.5}
#updateNotes{font-size:13px;line-height:1.55}
#updateFeedback{font-size:12px}
footer .license-remaining{font-size:12px;line-height:1.35}
.footer-status{font-size:12px;line-height:1.4}
.footer-brand small{font-size:12px}
footer{font-size:12px}
@media(max-width:360px){footer{padding:10px 9px;gap:5px}.footer-brand{gap:5px;font-size:11px}.footer-brand img{width:22px;height:22px}footer .license-remaining{font-size:11px}.footer-status{font-size:11px}nav button{font-size:12px}}

/* V1.5.2 — render Unicode emoji with a Windows color-emoji font instead of
   inheriting a text-only face. Does not alter stored claim names. */
.emoji-glyph{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-variant-emoji:emoji;font-weight:400;white-space:nowrap;vertical-align:-0.06em;line-height:1.2}
.person-name .emoji-glyph,.spotrow .emoji-glyph,#tags .emoji-glyph{font-size:1.16em}
.spotrow span:last-child{min-width:0;overflow-wrap:anywhere}
/* Give the numbered list most of the usable vertical space while allowing
   the rest of the panel and its anchored footer to stay accessible. */
#spots .spotrows{height:clamp(300px,calc(100dvh - 360px),1000px);max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
@media(max-height:610px){#spots .spotrows{height:clamp(180px,calc(100dvh - 320px),450px)}}

/* V1.5.5: compact, locally generated progress image */
.snapshot-launch{margin-top:14px}.snapshot-launch button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:600;color:var(--text, #f8fafc);border:1px solid var(--border, #374151);background:transparent;padding:10px 12px;border-radius:9px;cursor:pointer}.snapshot-launch button svg{flex:none;color:currentColor}.snapshot-launch button:hover{background:rgba(167,139,250,.1);border-color:#a78bfa}
.snapshot-overlay[hidden]{display:none!important}.snapshot-overlay{position:fixed;inset:0;background:rgba(3,6,17,.76);z-index:50;display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}
.snapshot-modal{background:var(--card,#1b2233);border:1px solid var(--border,#38445c);border-radius:14px;padding:16px;width:min(100%,520px);max-height:95dvh;overflow:auto;color:var(--text,#f5f5ff);box-shadow:0 12px 35px #0008}
.snapshot-modal label{display:block;margin:10px 0}.snapshot-modal label input{width:100%;margin-top:6px}.snapshot-modal canvas{display:block;width:100%;height:auto;border-radius:10px;border:1px solid #39465b;background:#111827}.snapshot-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.snapshot-actions button{flex:1 1 125px}.snapshot-modal #snapshotFeedback{min-height:18px;margin-bottom:0}.snapshot-modal #snapshotWarning{margin:8px 0 0}
body.light .snapshot-modal{background:#fff;color:#18233c}

/* V1.5.7: unobtrusive snapshot action beside the percentage, no extra dashboard row */
.progress-tools{display:flex;align-items:center;gap:8px;flex:none}
.progress-tools #percent{white-space:nowrap}
.snapshot-icon-button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);line-height:1}
.snapshot-icon-button svg{display:block;flex:none}
.snapshot-icon-button:hover,.snapshot-icon-button:focus-visible{border-color:var(--accent);background:rgba(163,139,255,.12)}

/* Mobile PWA layout, independent from desktop extension */
html,body{width:100%;min-width:0;max-width:100%;margin:0;overflow-x:hidden}
body{min-height:100dvh;box-sizing:border-box;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
header,.toolbar,nav,main,footer{box-sizing:border-box;width:100%;max-width:100%}
header{padding-top:calc(14px + env(safe-area-inset-top))}
main{overflow:visible}
.card{max-width:100%;box-sizing:border-box}
textarea,input,select{font-size:16px!important;max-width:100%;box-sizing:border-box}
textarea{min-height:210px}
button{touch-action:manipulation}
footer{position:fixed;bottom:0;left:0;right:0;padding-bottom:calc(10px + env(safe-area-inset-bottom));z-index:20}
#spots .spotrows{height:clamp(280px,52dvh,700px)}
.snapshot-overlay{padding:12px 10px calc(12px + env(safe-area-inset-bottom))}
.snapshot-modal{max-height:90dvh}
@media(max-width:430px){header{gap:8px}.header-actions{gap:4px}.header-actions button{min-width:34px} .split{gap:8px} .snapshot-actions button{flex:1 1 100%}}

/* Honor hidden even when generic button layout styles are active. */
.snapshot-actions button[hidden]{display:none!important}

/* Auth gate deliberately sits outside the application shell. */
[hidden]{display:none!important}
.auth-gate{min-height:100dvh;display:grid;place-items:center;padding:20px;background:#0f1422;color:#eef0ff}
.auth-card{width:min(100%,430px);padding:30px;background:#1b2334;border:1px solid #39445e;border-radius:20px;box-shadow:0 20px 70px #0005}
.auth-card h1{margin:10px 0}.auth-card p{line-height:1.5;color:#b7c1d5}.auth-card input{display:block;width:100%;margin:10px 0 15px;padding:13px;background:#101626;color:white;border:1px solid #46516b;border-radius:10px}
.auth-card button{padding:12px 16px;margin:5px 6px 5px 0}.auth-card .primary{background:#a78bfa;color:#141026}
#authMessage{min-height:24px;overflow-wrap:anywhere}

.auth-mode-hint{font-size:.86rem;margin-top:6px}
.footer-signout{background:transparent;color:inherit;border:1px solid #64748b;border-radius:7px;padding:5px 9px;cursor:pointer;font-size:12px}

/* Web v0.3.3: compact one-row footer with centered live license expiration. */
body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
main{padding-bottom:18px}
footer.compact-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1.15fr) minmax(0,1fr);align-items:center;column-gap:7px;min-height:0;padding:6px 10px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--bg)}
.compact-footer .footer-brand{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;line-height:1.12}
.compact-footer .footer-brand img{width:23px;height:23px;flex:none}
.compact-footer .footer-brand span{display:flex;flex-direction:column;white-space:nowrap}
.compact-footer .footer-brand small{font-size:9px;font-weight:400}
.compact-footer .footer-license{font-size:11px;font-weight:650;text-align:center;line-height:1.2;min-width:0;color:var(--green);overflow-wrap:break-word}
.compact-footer .footer-status{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:6px;min-width:0;font-size:10px;line-height:1.2}
.compact-footer #saved{display:none}
.compact-footer .footer-signout{font-size:11px;padding:5px 7px;white-space:nowrap}
@media(min-width:640px){.compact-footer #saved{display:inline}}

/* Web v0.3.4 — cosmetic-only mobile alignment polish. */
/* Native select arrow: reserve an even, visible right-side inset. */
.toolbar select#waffle{padding-inline-start:16px;padding-inline-end:36px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b3bed7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px 16px}
body.light .toolbar select#waffle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6680' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
/* Consistent horizontal rhythm for selector, tabs, and content cards. */
.toolbar{padding-inline:14px}
nav{padding-inline:14px}
main{padding-inline:14px}
/* Keep progress percentage and camera aligned on the same baseline. */
.progress-tools{gap:9px;align-items:center}
.progress-tools #percent{display:inline-flex;align-items:center;line-height:30px}
.snapshot-icon-button{width:30px;height:30px;border-radius:9px}
.metrics small{color:var(--muted);font-weight:500}
@media(max-width:430px){.toolbar{padding-inline:12px}nav{padding-inline:12px}main{padding-inline:12px}.toolbar select#waffle{padding-inline-start:15px;padding-inline-end:38px;background-position:right 16px center}}
/* Maintain the compact footer with OS navigation-safe padding. */
footer.compact-footer{padding-bottom:calc(6px + env(safe-area-inset-bottom))}

/* v0.3.5: never flash the sign-in form while restoring a saved session. */
.auth-boot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;color:#b7c1d5;font-size:14px;min-height:200px}
.auth-boot strong{font-size:23px;color:#eef0ff}
.auth-boot-spinner{width:24px;height:24px;border:3px solid #46516b;border-top-color:#a78bfa;border-radius:50%;animation:auth-boot-spin .8s linear infinite}
@keyframes auth-boot-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-boot-spinner{animation:none;border-top-color:#a78bfa}}


/* V0.4.1: GiveawayGG-inspired DESKTOP ONLY. Mobile/tablet CSS above is unchanged. */
.desktop-intro,.desktop-card-heading{display:none}
@media(min-width:1024px){
 body{font-size:14px}
 #appShell{min-height:100dvh}
 #appShell>header,#appShell>.toolbar,#appShell>nav,#appShell>main,#appShell>#notice,#appShell>.desktop-intro{width:min(calc(100% - 64px),1020px);margin-inline:auto}
 #appShell>header{padding:21px 0 13px}
 .header-logo{width:46px;height:46px}.header-identity{gap:11px}.brand{font-size:10px;letter-spacing:1.7px}h1{font-size:24px}
 .header-actions{gap:8px}.header-actions button{width:38px;height:38px;border-radius:10px;font-size:19px}
 #appShell>.toolbar{padding:0 0 18px}.toolbar select#waffle{height:44px;max-width:none;padding-inline:15px 44px;background-position:right 18px center;font-size:14px;border-radius:10px}
 #appShell>.desktop-intro{display:block;padding:13px 0 17px}
 .desktop-eyebrow{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:1.8px}
 .desktop-intro-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:6px 0 18px}
 .desktop-intro h2{font-size:22px;margin:0 0 4px}.desktop-intro p{font-size:13px;color:var(--muted);margin:0}
 .desktop-save-note{color:var(--green);font-size:12px;white-space:nowrap}
 .desktop-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 .desktop-steps>div{display:flex;align-items:center;gap:11px;border:1px solid var(--border);border-radius:12px;padding:15px 13px;background:var(--panel)}
 .desktop-steps span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(170,138,255,.13);color:var(--accent);font-size:12px;font-weight:800;flex-shrink:0}
 .desktop-steps strong{font-size:12px;line-height:1.35}
 #appShell>nav{justify-content:flex-start;gap:3px;padding:0;border-bottom:1px solid var(--border)}
 nav button{flex:0 0 auto;min-width:136px;padding:13px 20px;font-size:13px;border-bottom-width:3px}nav button:hover{color:var(--text)}
 #appShell>main{padding:23px 0 85px}
 .card{padding:24px;border-radius:15px;margin-bottom:22px;box-shadow:0 8px 24px rgba(0,0,0,.055)}
 .card h2{font-size:16px;margin-bottom:12px}.hint{font-size:12px;line-height:1.65}label{font-size:12px}label input{font-size:14px;padding:11px;margin-top:7px}
 #claims:not([hidden]){display:flex;flex-direction:column;gap:0}
 #claims>.card{width:100%;min-width:0}
 #claims>.desktop-editor-card{order:1}#claims>.desktop-progress-card{order:2}
 .desktop-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:19px}
 .desktop-card-heading h2{margin:0 0 3px;font-size:17px}.desktop-card-heading p{margin:0;color:var(--muted);font-size:12px}
 .desktop-section-icon{display:grid;place-items:center;width:38px;height:38px;background:rgba(170,138,255,.13);border-radius:11px;color:var(--accent);font-size:21px;flex-shrink:0}
 .mobile-claims-heading{display:none}
 #claims .split{max-width:620px;gap:14px;margin-bottom:17px}
 #claims #raw{min-height:190px;height:clamp(190px,28vh,320px);font-size:14px;line-height:1.55;padding:14px}
 #claims .buttons{margin-top:13px}#claims #parse{flex:0 0 auto;min-width:200px;min-height:42px;padding-inline:22px}
 #claims .progress-label{margin:17px 0 12px;font-size:16px}#claims .track{height:11px}
 #claims .metrics{gap:12px;margin-top:20px;grid-template-columns:repeat(3,1fr)}
 #claims .metrics>div{padding:20px 12px;border-radius:11px;border:1px solid var(--border)}
 #claims .metrics strong{font-size:23px}#claims .metrics small{font-size:12px;display:block;margin-top:5px}
 #participants:not([hidden]){display:flex;flex-direction:column;gap:0}
 #participants>.card{width:100%}#participants #people{max-width:100%}
 #participants .person{padding:14px 0}
 #spots>.card,#settings>.card{max-width:100%}
 #spots .spotrows{max-height:min(58vh,560px)}
 .compact-footer{padding-inline:max(24px,calc((100vw - 1020px)/2))!important}
 .compact-footer .footer-brand,.compact-footer .footer-license{font-size:12px}
 #snapshotDialog .snapshot-modal{max-width:min(94vw,780px)}
}
@media(min-width:1024px) and (max-width:1130px){.desktop-steps>div{padding:12px 9px;gap:7px}.desktop-steps strong{font-size:11px}}

/* V0.4.2 — desktop-only density, information hierarchy and participant spacing. */
@media(min-width:1024px){
 #appShell>header,#appShell>.toolbar,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 48px),1120px)}
 #appShell>header{padding:12px 0 8px}
 .header-logo{width:40px;height:40px}h1{font-size:22px}
 .header-actions button{width:35px;height:35px}
 #appShell>.toolbar{padding:0 0 7px}
 .toolbar select#waffle{height:40px}
 nav button{padding:10px 17px;min-width:122px}
 #appShell>main{padding:13px 0 60px}
 .card{padding:18px 20px;margin-bottom:13px;border-radius:13px}
 .card h2{margin-bottom:8px}
 #claims>.desktop-progress-card{order:1}
 #claims>.desktop-editor-card{order:2}
 .desktop-card-heading{margin-bottom:11px;gap:9px}
 .desktop-card-heading h2{font-size:15px}
 .desktop-card-heading p{display:none}
 .desktop-section-icon{width:29px;height:29px;font-size:16px;border-radius:8px}
 #claims .split{max-width:100%;grid-template-columns:repeat(2,minmax(0,260px));gap:12px;margin-bottom:10px}
 #claims label input{margin-top:5px;padding:8px 10px}
 #claims .progress-label{margin:10px 0 8px;font-size:14px}
 #claims .track{height:9px}
 #claims .metrics{margin-top:12px;gap:10px}
 #claims .metrics>div{padding:11px 10px}
 #claims .metrics strong{font-size:20px}
 #claims .metrics small{margin-top:2px}
 #claims .hint{margin:6px 0 10px;line-height:1.4}
 #claims #raw{height:clamp(150px,23vh,245px);min-height:150px;padding:11px 13px}
 #claims .buttons{margin-top:10px}
 #claims #parse{min-height:37px}
 #participants .person{padding:13px 15px;margin:6px 0;border-radius:9px}
 #participants .person.person-paid{padding:13px 15px;border-left-width:3px}
 #participants .person-head{gap:16px}
 #participants .person-head button{margin-left:auto;flex-shrink:0}
 #participants .person input{margin-top:6px}
 #participants>.card{padding:19px 21px}
 #participants .hint{margin:7px 0 12px}
 #spots .spotrows{max-height:min(64vh,650px)}
 .compact-footer{padding-inline:max(24px,calc((100vw - 1120px)/2))!important}
}

/* V0.4.3 — Desktop-only document height fix, shared by every tab.
   Keep the footer visible without creating a phantom scroll area.
   Do not alter mobile layout or suppress scrolling of genuinely long pages. */
@media (min-width:1024px){
  body{padding-bottom:0;min-height:100dvh}
  #appShell:not([hidden]){
    display:flex;
    flex-direction:column;
    min-height:100dvh;
    height:auto;
    padding-bottom:48px; /* fixed footer clearance, accounted for in min-height */
    box-sizing:border-box;
  }
  #appShell>header,#appShell>.toolbar,#appShell>nav{flex-shrink:0}
  #appShell>main{
    flex:1 0 auto;
    min-height:0;
    padding-bottom:0;
  }
  #appShell>main .card:last-child{margin-bottom:0}
  #appShell>footer.compact-footer{position:fixed;bottom:0;left:0;right:0}
}

/* V0.4.4 — use available desktop viewport height without page-level phantom scrolling.
   The claims editor and numbered list retain their own scrollbars. Mobile untouched. */
@media (min-width:1024px) and (min-height:650px){
  #claims #raw{height:clamp(150px,calc(100dvh - 620px),560px);min-height:150px}
  #spots .spotrows{height:clamp(280px,calc(100dvh - 370px),850px);max-height:none}
}

/* V0.4.5: Fit desktop Claims and Spot List to the REAL available viewport.
   Flex sizing eliminates page scrolling caused by hard-coded viewport offsets.
   Long Participants pages and mobile keep their existing scrolling behavior. */
@media (min-width:1024px) {
  html:has(#appShell:not([hidden]) #claims:not([hidden])),
  html:has(#appShell:not([hidden]) #spots:not([hidden])),
  body:has(#appShell:not([hidden]) #claims:not([hidden])),
  body:has(#appShell:not([hidden]) #spots:not([hidden])) {
    height:100%;
    overflow-y:hidden;
  }
  #appShell:not([hidden]):has(#claims:not([hidden])),
  #appShell:not([hidden]):has(#spots:not([hidden])) {
    height:100dvh;
    min-height:0;
    overflow:hidden;
  }
  #appShell:has(#claims:not([hidden])) > main,
  #appShell:has(#spots:not([hidden])) > main {
    flex:1 1 0;
    min-height:0;
    overflow:hidden;
    padding-top:12px;
    padding-bottom:8px;
  }
  #claims:not([hidden]),#spots:not([hidden]){
    height:100%;
    min-height:0;
  }
  #claims:not([hidden]){
    display:flex;
    flex-direction:column;
  }
  #claims>.desktop-progress-card{
    flex:0 0 auto;
    margin-bottom:12px;
  }
  #claims>.desktop-editor-card{
    flex:1 1 0;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  #claims #raw{
    flex:1 1 0;
    height:auto;
    min-height:0;
    max-height:none;
    resize:none;
    overflow-y:auto;
  }
  #claims .desktop-editor-card>.buttons,
  #claims .desktop-editor-card>.desktop-card-heading,
  #claims .desktop-editor-card>.hint{
    flex-shrink:0;
  }
  #spots:not([hidden])>.card{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  #spots .spotrows{
    flex:1 1 0;
    height:auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
  }
  #spots .split-title,#spots .buttons,#spots .hint{
    flex-shrink:0;
  }
  #claims .desktop-card-heading{gap:0}
}

/* V0.4.6: Desktop uses the exact mobile base background without the wide-screen navy gradient. */
@media (min-width:1024px){body:not(.light){background:var(--bg)}}

/* V0.5.5: clear approval confirmation */
.auth-card .auth-success-title{color:#79e2a4;font-size:1.2rem;line-height:1.4;margin-top:20px}
.auth-card .auth-success-details{color:#e4f9ec;white-space:pre-line;line-height:1.7}
.auth-card .auth-auto-check{font-size:.88rem;color:#aebbd1;line-height:1.6;margin-top:18px}

/* V0.5.6: branded approval experience */
.auth-card{width:min(100%,460px);padding:clamp(24px,5vw,36px);font-size:15px;line-height:1.6}
.auth-brand{display:flex;align-items:center;gap:15px;margin-bottom:24px}
.auth-brand img{width:56px;height:56px;object-fit:contain;border-radius:9px;flex:none}
.auth-brand-eyebrow{display:block;color:#b49aff;font-size:11px;font-weight:800;letter-spacing:.19em;line-height:1.5}
.auth-brand h1{margin:1px 0 0;font-size:26px;line-height:1.15;letter-spacing:-.035em;color:#f5f6ff}
.auth-success-header{display:flex;align-items:flex-start;gap:10px;color:#42db96;margin:2px 0 16px}
.auth-success-header svg{flex:none;margin-top:3px}
.auth-success-header h2{margin:0;font-size:18px;font-weight:750;line-height:1.4;color:#42db96}
.auth-card #authDetails.auth-success-details{white-space:normal;color:#e5e9f4;line-height:1.7;font-size:15px}
.auth-success-details p{margin:0 0 17px;color:#e5e9f4}
.auth-success-details strong{color:#fff;font-weight:750}
.auth-heart{color:#ff637d;font-size:19px;font-weight:800;vertical-align:-1px}
.auth-card .auth-auto-check{border:1px solid #3d4a64;border-radius:10px;padding:15px 16px;background:#1c273b;margin:18px 0 16px;color:#bfcbe0;font-size:13px;line-height:1.65}
.auth-auto-title{display:flex;align-items:center;gap:9px;color:#f3f5ff;font-size:14px;margin-bottom:7px}
.auth-auto-title svg{color:#d1c1ff;flex:none}
.auth-card .auth-auto-check p{margin:0;color:#bfcbe0;line-height:1.65}
.auth-card .auth-auto-check strong{color:#f3f5ff}
.auth-card #authRecheck{background:#a78bfa;color:#161025;border:0;border-radius:9px;font-weight:750;padding:12px 20px;margin:2px 0 20px}
.auth-card #authLogout{display:block;margin-top:6px;background:transparent;border:1px solid #44516b;border-radius:9px;color:#c7d0e4}
@media(max-width:420px){.auth-card{padding:24px 21px}.auth-brand h1{font-size:23px}.auth-success-header h2{font-size:17px}}


/* ==========================================================
   Hinatoro Straight Fill v0.6.0 | Premium workspace system
   Presentation only: business logic, IDs and storage unchanged
   ========================================================== */
:root{--bg:#0c111e;--panel:#192233;--border:#35435d;--text:#f5f7ff;--muted:#aebbd3;--accent:#a78bfa;--green:#48dfa8;--bad:#ff768b;--surface:#111a2a;--surface-raised:#202b40}
body{background:radial-gradient(ellipse 70% 36% at 48% -8%,rgba(124,92,210,.11),transparent 78%),#0c111e;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.01em}
#appShell{min-height:100dvh}
#appShell>header{padding-top:23px;padding-bottom:14px}
.header-logo{width:46px;height:46px}.header-identity{gap:13px}.brand{font-size:10px;letter-spacing:2.2px;font-weight:850}.header-identity h1{font-size:25px;font-weight:800;letter-spacing:-.045em}
.header-actions{gap:8px}.header-actions button{width:41px;height:41px;border-radius:12px;background:#1b2538;border:1px solid #3a4964;transition:transform .15s,background .15s,border-color .15s}
.header-actions button svg{width:19px;height:19px}.header-actions button:hover{transform:translateY(-2px);background:#26324a}
.header-actions #new{background:rgba(72,223,168,.08)}.header-actions #rename{background:rgba(244,201,93,.07)}.header-actions #delete{background:rgba(255,118,139,.07)}
.app-heading-caption{display:none}
#appShell>.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding-bottom:15px}
.giveaway-selector-label{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#a78bfa}
.toolbar select#waffle{background-color:#172032;border:1px solid #3c4b67;min-height:52px;border-radius:12px;color:var(--text);font-size:15px;font-weight:700;box-shadow:0 4px 16px rgba(0,0,0,.12)}
#appShell>nav{gap:7px;border-bottom:1px solid #2e3b53}
#appShell>nav button{font-size:13px;font-weight:650;border-bottom-width:3px;color:#aab7d0;transition:color .15s,background .15s}
#appShell>nav button.selected{color:#e7ddff;border-color:#a78bfa}
#appShell>nav button:hover{color:#f7f5ff;background:rgba(167,139,250,.06)}
#appShell>main{padding-top:18px}
.card{background:linear-gradient(145deg,#1c2639 0%,#192234 100%);border:1px solid #35445e;border-radius:18px;box-shadow:0 12px 28px rgba(0,0,0,.12);padding:21px}
.desktop-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}
.desktop-card-heading h2{font-size:18px;font-weight:800;letter-spacing:-.03em;margin:0 0 5px}
.desktop-card-heading p{display:block;color:#aebbd3;font-size:12px;margin:0;line-height:1.5}
.overview-badge{font-size:10px;letter-spacing:1.1px;font-weight:800;color:#5be1b2;border:1px solid rgba(72,223,168,.26);background:rgba(72,223,168,.09);padding:7px 10px;border-radius:999px;white-space:nowrap}
.overview-layout{display:grid;grid-template-columns:1fr;gap:16px}
.overview-settings,.overview-summary{background:#141d2e;border:1px solid #303e57;border-radius:14px;padding:17px}
.mini-heading{color:#a9b8d2;font-size:10px;font-weight:800;letter-spacing:1.7px;margin-bottom:15px}
.overview-settings .split{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.overview-settings label{font-size:12px;font-weight:700;color:#c1cbe0}
.overview-settings input{background:#0d1524;border:1px solid #3b4b66;border-radius:10px;font-size:18px;font-weight:750;padding:13px 12px;min-width:0}
.overview-summary .progress-label{margin:0 0 13px;font-size:14px}.overview-summary #filled{font-weight:800}.overview-summary #percent{color:#c0aaff;font-size:19px;font-weight:850}
.overview-summary .track{height:12px;background:#0b1422;border-radius:99px}.overview-summary #bar{background:linear-gradient(90deg,#8d70e8,#bb9bff);border-radius:99px}
.overview-summary .metrics{gap:9px;margin-top:20px}.metric-tile{position:relative;text-align:left!important;background:#1d2940!important;border:1px solid #364762;border-radius:12px!important;padding:13px 12px!important;min-width:0}
.metric-tile .metric-icon{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;background:rgba(167,139,250,.14);color:#bca8ff;font-size:16px;margin-bottom:9px}
.metric-tile.metric-check .metric-icon{background:rgba(72,223,168,.12);color:#56e1b1}.metric-tile strong{font-size:clamp(15px,2vw,23px)!important;letter-spacing:-.04em;overflow-wrap:anywhere}.metric-tile small{font-size:11px!important;color:#b2c0d8;margin-top:3px!important;display:block}
.metric-tile.metric-check strong{color:#69e6b7}
#claims .desktop-editor-card{padding-bottom:20px}
#claims .mobile-claims-heading{display:none}
#claims .claims-help{color:#b6c3dc;font-size:12px;line-height:1.6;margin:0 0 14px}
#claims #raw{height:170px;min-height:140px;max-height:65vh;background:#0e1727;border:1px solid #3a4b67;border-radius:12px;color:#f5f7ff;padding:15px 16px;font-size:14px;line-height:1.75;resize:vertical;transition:border-color .18s,box-shadow .18s}
#claims #raw:focus,.toolbar select:focus,input:focus{outline:none;border-color:#a78bfa;box-shadow:0 0 0 3px rgba(167,139,250,.14)}
#claims #raw::placeholder{color:#8290ad;opacity:1}
#claims .claims-actions{margin-top:14px}#claims #parse{min-height:46px;display:inline-flex;justify-content:center;align-items:center;gap:14px;padding:11px 20px;font-size:13px;font-weight:800;box-shadow:0 7px 19px rgba(167,139,250,.13)}
.action-arrow{font-size:18px;line-height:1}
button.primary{background:#a78bfa;color:#171124;border-color:#a78bfa;font-weight:800;transition:filter .16s,transform .16s}button.primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
button:focus-visible{outline:3px solid rgba(167,139,250,.7);outline-offset:3px}
#notice:not(:empty){background:rgba(72,223,168,.09);border:1px solid rgba(72,223,168,.26);border-radius:10px;padding:10px 13px;margin-bottom:12px;font-size:12px}
.tab-intro{margin:3px 0 20px}.tab-eyebrow{color:#b39bff;font-size:10px;font-weight:850;letter-spacing:1.8px;margin-bottom:9px}.tab-intro h2{font-size:25px;font-weight:800;letter-spacing:-.04em;margin:0 0 5px}.tab-intro p{font-size:13px;color:#b0bed6;line-height:1.5;margin:0}
.feature-card .split-title{margin-bottom:13px}.feature-card h2{font-size:17px;font-weight:800;letter-spacing:-.025em}.feature-card .hint{font-size:12px;line-height:1.7}
#participants .person{background:#141e2f;border:1px solid #34435c;border-radius:12px;padding:15px 17px;margin:10px 0}
#participants .person:first-child{border:1px solid #34435c}
#participants .person.person-paid{background:rgba(72,223,168,.07);border:1px solid rgba(72,223,168,.24);border-left:3px solid #48dfa8}
#participants .person-name{font-size:14px}.person-meta{font-size:12px;margin:7px 0}
#participants #tags{padding:14px;background:#121b2b;border:1px solid #33425a;border-radius:11px;line-height:2}
#spots .spotrows{background:#111b2c;border:1px solid #33425b;border-radius:12px;overflow:auto}
#spots .spotrow{padding:11px 14px;grid-template-columns:60px 1fr;font-size:13px}
#spots .spotrow:nth-child(even){background:rgba(167,139,250,.035)}
#spots .buttons button,#settings .buttons button{min-height:43px;padding:10px 16px;font-weight:700}
.backup-notice{display:flex;align-items:flex-start;gap:12px;padding:16px;background:rgba(167,139,250,.08);border:1px solid rgba(167,139,250,.26);border-radius:12px;margin-bottom:20px}
.backup-notice>span{font-size:22px;color:#bda7ff}.backup-notice strong{font-size:13px}.backup-notice p{font-size:12px;line-height:1.6;color:#b7c5de;margin:5px 0 0}
.compact-footer{background:rgba(12,17,30,.97)!important;border-color:#2d3a52!important;backdrop-filter:blur(12px)}
/* preserve a clean, fully usable light theme */
body.light{--bg:#f4f6fb;--panel:#fff;--border:#dce2ee;--text:#1c2740;--muted:#66738c;--accent:#7556cf;--green:#118a62;background:#f4f6fb}
body.light .card{background:#fff;border-color:#dce2ee;box-shadow:0 12px 28px rgba(24,40,70,.05)}
body.light .overview-settings,body.light .overview-summary,body.light #participants .person,body.light #participants #tags,body.light #spots .spotrows{background:#f8faff;border-color:#dce2ee}
body.light .metric-tile{background:#fff!important;border-color:#dce2ee}body.light .overview-settings input,body.light #claims #raw{background:#fff;color:#1c2740;border-color:#cdd6e5}
body.light .desktop-card-heading p,body.light .tab-intro p,body.light .claims-help,body.light .feature-card .hint,body.light .mini-heading,body.light .overview-settings label,body.light .metric-tile small{color:#66738c}
body.light .toolbar select#waffle{background-color:#fff;color:#1c2740;border-color:#cdd6e5}
body.light .header-actions button{background:#fff;border-color:#dce2ee}body.light .overview-summary .track{background:#e9edf7}body.light .backup-notice{background:#f4efff}
body.light .compact-footer{background:rgba(250,251,255,.97)!important}
@media(min-width:1024px){
 #appShell>header,#appShell>.toolbar,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 64px),1180px)}
 #appShell>header{padding:24px 0 14px}
 .app-heading-caption{display:block;width:min(calc(100% - 64px),1180px);margin:0 auto 8px;color:#8e9fbd;font-size:10px;font-weight:750;letter-spacing:1.7px}
 #appShell>.toolbar{padding:0 0 20px}.toolbar select#waffle{min-height:54px;font-size:16px}
 #appShell>nav{gap:5px}#appShell>nav button{min-width:138px;font-size:13px;padding:13px 20px}
 #appShell>main{padding:22px 0 80px}
 #claims:not([hidden]){display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:18px;align-items:start}
 #claims>.card{margin:0;min-width:0;height:100%}
 #claims>.desktop-progress-card{order:1}#claims>.desktop-editor-card{order:2}
 .card{padding:23px;border-radius:18px}
 .desktop-card-heading{margin-bottom:20px}.desktop-card-heading h2{font-size:18px}.desktop-card-heading p{display:block;font-size:12px}
 .overview-layout{gap:14px}.overview-settings,.overview-summary{padding:17px}
 #claims .split{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:0;max-width:none}
 #claims label input{padding:12px;margin-top:8px}
 #claims .progress-label{margin:0 0 13px;font-size:14px}
 #claims .metrics{gap:8px;margin-top:18px}.metric-tile{padding:12px 10px!important}
 #claims .metrics strong{font-size:clamp(16px,1.65vw,23px)!important}
 #claims .hint{margin:0 0 14px;line-height:1.6}
 #claims #raw{height:275px;min-height:150px;font-size:14px;padding:15px}
 #claims #parse{min-width:210px;min-height:46px}
 #participants:not([hidden]){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:17px;align-items:start}
 #participants .tab-intro{grid-column:1/-1;margin-bottom:0}
 #participants>.card{width:auto;min-width:0;margin:0}
 #spots>.card,#settings>.card{max-width:none}
 .compact-footer{padding-inline:max(30px,calc((100vw - 1180px)/2))!important}
}
@media(max-width:1023px){
 #claims .desktop-card-heading{display:flex}
 #claims .desktop-card-heading p{display:block}
 #claims>.card{margin-bottom:14px}
 #claims .overview-layout{gap:13px}
 #claims #raw{height:170px}
 .tab-intro h2{font-size:22px}
}
@media(max-width:560px){
 #appShell>header{padding:15px 12px 12px}.header-logo{width:39px;height:39px}.header-identity{gap:8px}.header-identity h1{font-size:20px}.brand{font-size:9px}
 .header-actions{gap:4px}.header-actions button{width:33px;height:34px;border-radius:9px}.header-actions button svg{width:17px;height:17px}
 #appShell>.toolbar{padding:3px 12px 13px}.toolbar select#waffle{min-height:49px;font-size:14px}
 #appShell>nav{padding:0 10px;gap:0}#appShell>nav button{font-size:12px;padding:12px 3px}
 #appShell>main{padding:13px 10px 45px}
 .card{padding:16px;border-radius:15px}
 .desktop-card-heading{margin-bottom:15px}.desktop-card-heading h2{font-size:16px}.desktop-card-heading p{font-size:11px}
 .overview-badge{font-size:8px;padding:6px 7px}
 .overview-settings,.overview-summary{padding:13px}.overview-settings .split{gap:9px}.overview-settings input{font-size:16px;padding:11px 8px}
 .mini-heading{font-size:9px;margin-bottom:11px}.overview-summary .metrics{gap:6px;margin-top:15px}.metric-tile{padding:10px 8px!important}.metric-tile .metric-icon{width:22px;height:22px;font-size:13px;margin-bottom:7px}.metric-tile strong{font-size:clamp(13px,4vw,19px)!important}.metric-tile small{font-size:10px!important}
 #claims #raw{height:155px;min-height:130px;font-size:13px}
 #claims #parse{width:100%;min-height:45px}
 .feature-card .split-title{align-items:flex-start}.feature-card h2{font-size:15px}
 .tab-intro h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.header-actions button,button.primary{transition:none}}

/* V0.6.2: Desktop refinement only. All rules scoped >=1024px; mobile V0.6.0 untouched. */
@media (min-width:1024px){
  #appShell>header,#appShell>.toolbar,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 72px),1240px)}
  #appShell>header{padding-top:27px;padding-bottom:18px}
  .header-identity h1{font-size:29px;letter-spacing:-.045em}
  .header-logo{width:49px;height:49px}
  #appShell>.toolbar{padding-bottom:16px}
  .toolbar select#waffle{min-height:57px;font-size:17px}
  #appShell>nav button{font-size:14px;padding:15px 24px}
  #appShell>main{padding-top:20px}
  #claims:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);gap:20px;align-items:stretch}
  #claims>.card{height:auto;min-height:0;padding:26px 25px 24px}
  #claims .desktop-card-heading{margin-bottom:19px}
  #claims .desktop-card-heading h2{font-size:22px;line-height:1.22;letter-spacing:-.035em}
  #claims .desktop-card-heading p{font-size:13px;margin-top:6px}
  #claims .overview-layout{gap:15px}
  #claims .overview-settings,#claims .overview-summary{padding:19px 19px 20px;background:#151f30;border-color:#33435e}
  #claims .mini-heading{font-size:11px;letter-spacing:1.4px;margin-bottom:16px}
  #claims .overview-settings label{font-size:13px}
  #claims .overview-settings input{font-size:19px;padding:14px 13px}
  #claims .overview-summary .progress-label{font-size:16px;margin-bottom:14px}
  #claims .overview-summary #percent{font-size:24px}
  #claims .overview-summary .track{height:13px}
  #claims .metrics{gap:11px;margin-top:20px}
  #claims .metric-tile{padding:17px 14px 15px!important;background:#202a3d!important;border:1px solid #36465f;border-radius:13px!important;min-height:123px}
  #claims .metric-tile .metric-icon{display:inline-grid;width:27px;height:27px;font-size:17px;margin-bottom:10px}
  #claims .metric-tile strong{display:block;font-size:clamp(22px,2vw,29px)!important;line-height:1.12;letter-spacing:-.04em}
  #claims .metric-tile.metric-ticket strong{color:#b79aff}
  #claims .metric-tile.metric-wallet strong{color:#f5f7ff}
  #claims .metric-tile.metric-check strong{color:#5ee5b4}
  #claims .metric-tile small{font-size:12px!important;margin-top:8px!important;color:#c0c9d9}
  #claims .claims-help{font-size:13px;line-height:1.7;margin-bottom:16px}
  #claims #raw{height:260px;min-height:170px;font-size:15px;line-height:1.75;padding:17px 18px}
  #claims .claims-actions{margin-top:16px}
  #claims #parse{font-size:14px;min-height:49px;min-width:220px;border-radius:10px}
  #participants .tab-intro h2,#spots .tab-intro h2,#settings .tab-intro h2{font-size:29px}
  #participants .person-name{font-size:16px}
  #participants .person-meta{font-size:13px}
  #spots .spotrow{font-size:14px;padding:13px 17px}
  .compact-footer{padding-inline:max(36px,calc((100vw - 1240px)/2))!important}
  body.light #claims .overview-settings,body.light #claims .overview-summary{background:#f8faff;border-color:#dce2ee}
  body.light #claims .metric-tile{background:#fff!important;border-color:#dce2ee}
  body.light #claims .metric-tile.metric-wallet strong{color:#1c2740}
}


/* V0.6.3 — compact premium desktop header. Mobile V0.6.0/0.6.2 remains unchanged. */
@media (min-width:1024px) {
  #appShell>header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:82px;
    padding:17px 0 12px;
    gap:24px;
  }
  #appShell>header .header-identity {display:flex;align-items:center;gap:15px;min-width:0}
  #appShell>header .header-logo {width:52px;height:52px;object-fit:contain;flex:none}
  #appShell>header .brand {font-size:10px;font-weight:800;letter-spacing:2.4px;line-height:1.2;color:#b59aff}
  #appShell>header .header-identity h1 {
    font-size:26px;
    line-height:1.12;
    font-weight:750;
    letter-spacing:-.035em;
    margin:4px 0 0;
    text-shadow:none;
  }
  #appShell>header .header-actions {display:flex;align-items:center;gap:9px;margin-left:auto}
  #appShell>header .header-actions button {
    width:43px;height:43px;padding:10px;border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,.1);
    transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
  }
  #appShell>header .header-actions button:hover {transform:translateY(-2px);box-shadow:0 7px 17px rgba(0,0,0,.19)}
  #appShell>header .header-actions button:focus-visible {outline:2px solid #b59aff;outline-offset:3px}
  #appShell .app-heading-caption {display:none!important}
  #appShell>.toolbar {gap:0;padding-top:0;padding-bottom:15px}
  #appShell>.toolbar .giveaway-selector-label {display:none!important}
  #appShell>.toolbar select#waffle {min-height:53px}
}
@media (min-width:1024px) and (prefers-reduced-motion:reduce) {
  #appShell>header .header-actions button {transition:none}
  #appShell>header .header-actions button:hover {transform:none}
}
@media (min-width:1024px) {
  body.light #appShell>header .brand {color:#7354c8}
}

/* V0.6.4 — single-workspace controls; existing premium cards and responsive layouts preserved. */
#appShell>.app-heading-caption,#appShell>.toolbar{display:none!important}
#appShell>header{margin-bottom:12px}
.header-actions .clear-workspace{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;border:1px solid #684254;background:#291c2a;color:#f7a7bd;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:750;transition:background .15s,border-color .15s,transform .15s}
.header-actions .clear-workspace svg{width:17px;height:17px;flex:none}
.header-actions .clear-workspace:hover{background:#412538;border-color:#d46b89;transform:translateY(-1px)}
.header-actions .clear-workspace:focus-visible{outline:2px solid #c9a7ff;outline-offset:3px}
body.light .header-actions .clear-workspace{background:#fff0f3;color:#9b2548;border-color:#f0b6c6}
@media(max-width:600px){.header-actions .clear-workspace{padding:9px 10px;font-size:11px;gap:5px;border-radius:9px}.header-actions .clear-workspace svg{width:15px;height:15px}#appShell>header{margin-bottom:9px}}
@media(max-width:390px){.header-actions .clear-workspace{padding:9px}.header-actions .clear-workspace span{display:none}.header-actions .clear-workspace svg{width:19px;height:19px}}

/* V0.6.5 — restrained workspace polish. Header contains only theme control. */
#appShell>header{margin-bottom:6px}
.header-actions{margin-left:auto}
.claims-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.claims-actions .clear-workspace{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 17px;width:auto;height:auto;border-radius:10px;border:1px solid #634257;background:rgba(241,104,138,.07);color:#f2a1b9;font-size:13px;font-weight:700;white-space:nowrap;transition:background .15s,border-color .15s}
.claims-actions .clear-workspace svg{width:17px;height:17px;flex:none}
.claims-actions .clear-workspace:hover{background:rgba(241,104,138,.14);border-color:#bb6a86}
.claims-actions .clear-workspace:focus-visible{outline:2px solid #b59aff;outline-offset:3px}
body.light .claims-actions .clear-workspace{background:#fff1f4;color:#962d50;border-color:#ecc0cf}
@media(min-width:1024px){
 #appShell>header{min-height:72px;padding-top:15px;padding-bottom:11px}
 #appShell>nav{margin-top:2px}
 #appShell>main{padding-top:14px}
 #claims{gap:18px}
 #claims>.card{padding:24px!important;border-radius:16px}
 #claims .desktop-editor-card textarea{min-height:310px!important;height:clamp(310px,39vh,460px)!important}
 #claims .desktop-card-heading h2{font-size:21px;letter-spacing:-.025em}
 #claims .desktop-card-heading p{color:#aebbd3}
 #claims .overview-settings,#claims .overview-summary{border-radius:13px}
 #claims .metric-tile{min-height:113px!important}
 #claims .metric-tile strong{font-size:27px!important}
}
@media(max-width:767px){.claims-actions .clear-workspace{flex:0 0 auto;font-size:12px;padding:10px 12px}.claims-actions .primary{flex:1 1 150px}.claims-actions{gap:9px}}
@media(max-width:390px){.claims-actions .clear-workspace span{display:inline!important}}

/* V0.6.6 — desktop-only vertical workflow. Mobile premium layout is untouched. */
.desktop-flow-intro,.desktop-steps{display:none}
@media(min-width:1024px){
 html:has(#appShell:not([hidden]) #claims:not([hidden])),body:has(#appShell:not([hidden]) #claims:not([hidden])){height:auto!important;overflow-y:auto!important;scroll-behavior:smooth}
 #appShell:not([hidden]):has(#claims:not([hidden])){height:auto!important;min-height:100dvh!important;overflow:visible!important}
 #appShell:has(#claims:not([hidden]))>main{flex:1 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:20px 0 110px!important}
 #appShell>header,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 64px),1000px)!important}
 #claims:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:18px!important;height:auto!important;min-height:0!important}
 #claims>.desktop-progress-card,#claims>.desktop-progress-card>.overview-layout{display:contents!important}
 #claims>.desktop-progress-card>.desktop-card-heading{display:none!important}
 #claims .overview-settings{order:2!important;min-height:0!important;padding:22px 26px!important;border-radius:16px!important;background:#192335!important}
 #claims .overview-settings .mini-heading{font-size:13px!important;letter-spacing:.01em!important;color:#f2f4ff!important;margin-bottom:17px!important}
 #claims .overview-settings .split{grid-template-columns:repeat(2,minmax(0,240px))!important;gap:24px!important}
 #claims .overview-settings input{font-size:18px!important;max-width:240px!important}
 #claims>.desktop-editor-card{order:3!important;display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:24px 26px!important;border-radius:16px!important}
 #claims .desktop-editor-card .desktop-card-heading{margin-bottom:13px!important}
 #claims .desktop-editor-card #raw{display:block!important;width:100%!important;height:230px!important;min-height:180px!important;max-height:65vh!important;flex:none!important;resize:vertical!important;overflow:auto!important}
 #claims .desktop-editor-card .claims-actions{display:flex!important;gap:12px!important;margin-top:14px!important}
 #claims .desktop-editor-card .claims-actions .clear-workspace{flex:none!important}
 #claims .overview-summary{order:4!important;min-height:0!important;padding:25px 26px!important;background:#192335!important;border-radius:16px!important}
 #claims .overview-summary .mini-heading{font-size:16px!important;letter-spacing:-.02em!important;color:#f2f4ff!important;margin-bottom:18px!important}
 #claims .overview-summary .progress-label{font-size:20px!important}
 #claims .overview-summary #percent{font-size:24px!important}
 #claims .overview-summary .track{height:12px!important}
 #claims .overview-summary .metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;margin-top:25px!important}
 #claims .overview-summary .metric-tile{min-height:110px!important;padding:18px!important}
 #claims .overview-summary .metric-tile strong{font-size:28px!important}
 #claims .overview-summary .metric-tile small{font-size:13px!important}
 .desktop-flow-intro{order:0;display:block;margin:8px 0 0}
 .flow-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#ae92fa;margin-bottom:10px}
 .flow-intro-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
 .flow-intro-row h2{font-size:28px;letter-spacing:-.045em;margin:0 0 7px;color:#f5f4ff}
 .flow-intro-row p{margin:0;color:#aebbd1;font-size:14px}
 .flow-scroll-cue{font-size:12px;color:#bba4f8;white-space:nowrap}
 .flow-scroll-cue span{font-size:20px;margin-left:5px}
 .desktop-steps{order:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 4px}
 .desktop-steps>div{display:flex;align-items:center;gap:11px;border:1px solid #34435c;border-radius:12px;padding:15px 13px;background:#161f30;font-size:13px;font-weight:650;color:#e6e8f5}
 .step-num{font-size:12px;font-weight:850;color:#bca6ff;letter-spacing:.03em}
 body.light #claims .overview-settings,body.light #claims .overview-summary{background:#f8faff!important}
 body.light .flow-intro-row h2{color:#1c2740}
 body.light .desktop-steps>div{background:#fff;color:#1c2740;border-color:#dce2ee}
}
@media(min-width:1024px) and (max-width:1120px){.desktop-steps>div{padding:12px 10px;font-size:12px}}

/* V0.6.7: streamlined, scrollable desktop. Mobile premium UI unchanged. */
@media (min-width:1024px) {
 html:has(#appShell:not([hidden])),body:has(#appShell:not([hidden])){height:auto!important;min-height:100%!important;overflow-y:auto!important}
 #appShell:not([hidden]){height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-bottom:0!important;display:flex!important;flex-direction:column!important}
 #appShell>main{height:auto!important;min-height:0!important;overflow:visible!important;flex:1 0 auto!important;padding:16px 0 42px!important}
 #appShell>footer.compact-footer{position:static!important;flex:none!important;margin-top:auto!important}
 #appShell>header,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 64px),980px)!important}
 #claims:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;height:auto!important;min-height:0!important;align-items:start!important}
 #claims>.desktop-progress-card,#claims>.desktop-progress-card>.overview-layout{display:contents!important}
 #claims>.desktop-progress-card>.desktop-card-heading{display:none!important}
 #claims .overview-settings{order:1!important;background:#192335!important;border:1px solid #35435d!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;padding:25px 27px 13px!important;margin:0!important}
 #claims .overview-settings .mini-heading{font-size:15px!important;font-weight:800!important;letter-spacing:-.015em!important;margin-bottom:17px!important;color:#f5f7ff!important}
 #claims .overview-settings .split{grid-template-columns:repeat(2,minmax(0,240px))!important;gap:16px!important}
 #claims .overview-settings input{font-size:17px!important;max-width:240px!important}
 #claims>.desktop-editor-card{order:2!important;height:auto!important;min-height:0!important;overflow:visible!important;display:block!important;margin:0 0 23px!important;border-radius:0 0 16px 16px!important;border-top:0!important;padding:10px 27px 27px!important;background:#192335!important}
 #claims .desktop-editor-card .desktop-card-heading{margin-bottom:14px!important}
 #claims .desktop-editor-card .desktop-card-heading h2{font-size:18px!important}
 #claims .desktop-editor-card .desktop-card-heading p{display:none!important}
 #claims .desktop-editor-card #raw{height:220px!important;min-height:160px!important;max-height:65vh!important;resize:vertical!important;overflow:auto!important;display:block!important;width:100%!important;flex:none!important}
 #claims .desktop-editor-card .claims-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:15px!important}
 #claims .desktop-editor-card .claims-actions #parse{min-width:200px!important}
 #claims .overview-summary{order:3!important;background:#192335!important;border:1px solid #35435d!important;border-radius:16px!important;padding:25px 27px!important;margin:0!important}
 #claims .overview-summary .mini-heading{font-size:18px!important;letter-spacing:-.02em!important;color:#f5f7ff!important;margin-bottom:18px!important}
 #claims .overview-summary .progress-label{font-size:20px!important}
 #claims .overview-summary .metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin-top:23px!important}
 #claims .overview-summary .metric-tile{min-height:105px!important;padding:18px!important}
 #claims .overview-summary .metric-tile strong{font-size:28px!important}
 #claims .overview-summary .metric-tile small{font-size:13px!important}
 body.light #claims .overview-settings,body.light #claims>.desktop-editor-card,body.light #claims .overview-summary{background:#f8faff!important;border-color:#dce2ee!important}
 body.light #claims .overview-settings .mini-heading,body.light #claims .overview-summary .mini-heading{color:#1c2740!important}
}

/* V0.6.8 — ONE DESIGN. Desktop follows the proven mobile premium card layout.
   All changes scoped to desktop; no changes to mobile styles or application logic. */
@media (min-width:1024px) {
 html:has(#appShell:not([hidden])),body:has(#appShell:not([hidden])){height:auto!important;min-height:100%!important;overflow-y:auto!important}
 #appShell:not([hidden]){display:flex!important;flex-direction:column!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-bottom:0!important}
 #appShell>header,#appShell>nav,#appShell>main,#appShell>#notice{width:min(calc(100% - 36px),720px)!important;max-width:720px!important;margin-left:auto!important;margin-right:auto!important}
 #appShell>header{padding:18px 0 12px!important;min-height:0!important;margin-bottom:7px!important}
 #appShell>nav{padding:0!important;margin-top:0!important;gap:0!important;display:flex!important}
 #appShell>nav button{flex:1 1 0!important;min-width:0!important;padding:13px 5px!important;font-size:13px!important}
 #appShell>main{width:min(calc(100% - 36px),720px)!important;flex:1 0 auto!important;padding:15px 0 40px!important;height:auto!important;min-height:0!important;overflow:visible!important}
 #appShell>footer.compact-footer{position:static!important;margin-top:auto!important;flex:none!important;padding:9px max(18px,calc((100vw - 720px)/2))!important}
 #claims:not([hidden]){display:flex!important;flex-direction:column!important;gap:0!important;grid-template-columns:none!important;height:auto!important;min-height:0!important;align-items:stretch!important}
 #claims>.desktop-progress-card{display:block!important;order:1!important;width:100%!important;height:auto!important;min-height:0!important;padding:20px!important;margin:0 0 16px!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--panel)!important}
 #claims>.desktop-progress-card>.desktop-card-heading{display:flex!important;margin-bottom:17px!important}
 #claims .desktop-progress-card .desktop-card-heading h2{font-size:19px!important}
 #claims .desktop-progress-card .desktop-card-heading p{display:block!important;font-size:12px!important}
 #claims>.desktop-progress-card>.overview-layout{display:flex!important;flex-direction:column!important;gap:14px!important}
 #claims .overview-settings,#claims .overview-summary{order:initial!important;display:block!important;width:100%!important;min-height:0!important;padding:16px!important;margin:0!important;background:#141e2f!important;border:1px solid #34435c!important;border-radius:13px!important}
 #claims .overview-settings .mini-heading,#claims .overview-summary .mini-heading{font-size:10px!important;letter-spacing:1.2px!important;color:#b7c5e0!important;margin-bottom:13px!important}
 #claims .overview-settings .split{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-width:none!important}
 #claims .overview-settings input{max-width:none!important;width:100%!important;font-size:16px!important;padding:12px!important}
 #claims .overview-summary .progress-label{font-size:16px!important;margin-bottom:12px!important}
 #claims .overview-summary #percent{font-size:19px!important}
 #claims .overview-summary .track{height:10px!important}
 #claims .overview-summary .metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin-top:16px!important}
 #claims .overview-summary .metric-tile{min-height:100px!important;padding:13px!important;border-radius:12px!important}
 #claims .overview-summary .metric-tile strong{font-size:clamp(18px,2.2vw,24px)!important}
 #claims .overview-summary .metric-tile small{font-size:12px!important}
 #claims>.desktop-editor-card{display:block!important;order:2!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:20px!important;margin:0 0 16px!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--panel)!important}
 #claims .desktop-editor-card .desktop-card-heading{display:flex!important;margin-bottom:14px!important}
 #claims .desktop-editor-card .desktop-card-heading h2{font-size:19px!important}
 #claims .desktop-editor-card .desktop-card-heading p{display:block!important;font-size:12px!important}
 #claims .desktop-editor-card #raw{height:190px!important;min-height:140px!important;max-height:65vh!important;resize:vertical!important;width:100%!important;display:block!important}
 #claims .desktop-editor-card .claims-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:14px!important}
 #claims .desktop-editor-card .claims-actions #parse{min-width:0!important;flex:1 1 190px!important}
 #claims .desktop-editor-card .claims-actions .clear-workspace{flex:1 1 190px!important}
 #participants:not([hidden]){display:flex!important;flex-direction:column!important;gap:0!important}
 #participants .tab-intro{margin:3px 0 20px!important}
 #participants>.card,#spots>.card,#settings>.card{width:100%!important;max-width:100%!important;margin:0 0 16px!important}
 .desktop-flow-intro,.desktop-steps{display:none!important}
 body.light #claims .overview-settings,body.light #claims .overview-summary{background:#f8faff!important;border-color:#dce2ee!important}
 body.light #claims .overview-settings .mini-heading,body.light #claims .overview-summary .mini-heading{color:#66738c!important}
}

/* V0.6.9 — wider desktop, same premium mobile-first composition.
   Override desktop presentation only; keep mobile and functionality untouched. */
@media (min-width:1024px) {
 html:has(#appShell:not([hidden])), body:has(#appShell:not([hidden])) {height:auto!important;min-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}
 #appShell:not([hidden]) {height:auto!important;min-height:100vh!important;overflow:visible!important;display:block!important;padding-bottom:0!important}
 #appShell>header,#appShell>nav,#appShell>main,#appShell>#notice {width:min(calc(100% - 72px),1060px)!important;max-width:1060px!important;margin-left:auto!important;margin-right:auto!important}
 #appShell>header {padding:20px 0 14px!important}
 #appShell>nav button {font-size:14px!important}
 #appShell>main {width:min(calc(100% - 72px),1060px)!important;max-width:1060px!important;height:auto!important;min-height:0!important;overflow:visible!important;display:block!important;padding:20px 0 32px!important;flex:none!important}
 #claims:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;overflow:visible!important;height:auto!important}
 #claims>.desktop-progress-card {padding:26px 28px!important;margin-bottom:20px!important}
 #claims>.desktop-progress-card>.overview-layout {gap:18px!important}
 #claims .overview-settings,#claims .overview-summary {padding:22px 24px!important}
 #claims .overview-settings .mini-heading,#claims .overview-summary .mini-heading {font-size:12px!important;letter-spacing:1px!important}
 #claims .overview-settings .split {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
 #claims .overview-settings input {font-size:17px!important}
 #claims .overview-summary .progress-label {font-size:18px!important}
 #claims .overview-summary .metrics {gap:16px!important;margin-top:20px!important}
 #claims .overview-summary .metric-tile {padding:18px 20px!important;min-height:112px!important}
 #claims .overview-summary .metric-tile strong {font-size:28px!important}
 #claims>.desktop-editor-card {padding:26px 28px!important;margin-bottom:20px!important}
 #claims .desktop-editor-card #raw {height:255px!important;min-height:190px!important;max-height:70vh!important}
 #claims .desktop-editor-card .claims-actions {gap:14px!important}
 #claims .desktop-editor-card .claims-actions #parse,#claims .desktop-editor-card .claims-actions .clear-workspace {flex:0 1 245px!important}
 #appShell>footer.compact-footer {position:relative!important;inset:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;display:grid!important;width:100%!important;margin:12px 0 0!important;padding:12px max(36px,calc((100vw - 1060px)/2))!important;z-index:auto!important}
 #participants>.card,#spots>.card,#settings>.card {width:100%!important;max-width:100%!important}
}
@media (min-width:1024px) and (max-width:1150px) {
 #appShell>header,#appShell>nav,#appShell>main,#appShell>#notice {width:calc(100% - 52px)!important}
 #appShell>footer.compact-footer {padding-inline:26px!important}
}

/* V0.6.10 — structural desktop fix: no viewport-constrained cards or overlay footer. */
@media (min-width:1024px) {
  html,body {height:auto!important;min-height:100%!important;overflow-y:auto!important;}
  #appShell:not([hidden]) {display:flex!important;flex-direction:column!important;height:auto!important;min-height:100vh!important;overflow:visible!important;}
  #appShell>main {display:block!important;flex:1 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;padding-bottom:36px!important;}
  #claims:not([hidden]) {display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important;}
  #claims>.desktop-progress-card,#claims>.desktop-editor-card {flex:0 0 auto!important;align-self:stretch!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important;}
  #claims>.desktop-editor-card {display:block!important;padding:26px 28px!important;margin-bottom:20px!important;}
  #claims .desktop-editor-card .desktop-card-heading {display:flex!important;height:auto!important;}
  #claims .desktop-editor-card #raw {display:block!important;position:static!important;width:100%!important;height:255px!important;min-height:190px!important;max-height:70vh!important;flex:none!important;resize:vertical!important;}
  #claims .desktop-editor-card .claims-actions {position:static!important;display:flex!important;flex-wrap:wrap!important;gap:14px!important;margin-top:14px!important;}
  #appShell>footer.compact-footer {position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto!important;align-self:stretch!important;z-index:auto!important;margin-top:auto!important;}
}

/* V0.6.11 — compact sticky app header on all screens; darker desktop surfaces. */
#appShell:not([hidden]) > header {
  position:sticky!important;
  top:0!important;
  z-index:120!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  background:#0d1220!important;
  border-bottom:1px solid #263044!important;
  box-shadow:0 8px 20px rgba(5,9,18,.20)!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  min-height:62px!important;
}
#appShell > header .header-identity {display:flex!important;align-items:center!important;min-width:0!important;gap:11px!important;}
#appShell > header .header-logo {width:38px!important;height:38px!important;flex:none!important;}
#appShell > header .brand {font-size:9px!important;letter-spacing:2px!important;}
#appShell > header .header-identity h1 {font-size:21px!important;line-height:1.1!important;margin-top:2px!important;}
#appShell > header .header-actions {flex:none!important;margin-left:auto!important;}
#appShell > header .header-actions button {width:38px!important;height:38px!important;}
body.light #appShell:not([hidden]) > header {background:#f9faff!important;border-bottom-color:#dce1ed!important;box-shadow:0 5px 15px rgba(25,35,59,.07)!important;}
@media (min-width:701px) {
  body:not(.light) #appShell .card {background:#171f2e!important;border-color:#2a374c!important;}
  body:not(.light) #appShell .overview-settings,
  body:not(.light) #appShell .overview-summary {background:#111a29!important;border-color:#2b3950!important;}
  body:not(.light) #appShell .metric-tile {background:#1b2638!important;border-color:#2c3a50!important;}
  body:not(.light) #appShell input,
  body:not(.light) #appShell textarea {background:#0d1625!important;border-color:#304058!important;}
}
@media (max-width:700px) {
  #appShell:not([hidden]) > header {padding:9px 12px!important;min-height:56px!important;}
  #appShell > header .header-logo {width:34px!important;height:34px!important;}
  #appShell > header .header-identity h1 {font-size:19px!important;}
  #appShell > header .header-actions button {width:35px!important;height:35px!important;}
}


/* V0.6.12 — fixed single-line header, charcoal surfaces, restrained borders.
   Fixed positioning intentionally bypasses historical scroll/overflow containers. */
html,body {overflow-x:clip!important;}
#appShell:not([hidden]) {padding-top:62px!important;}
#appShell:not([hidden]) > header {
  position:fixed!important;top:0!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;z-index:500!important;
  width:min(calc(100% - 72px),1060px)!important;max-width:1060px!important;
  height:62px!important;min-height:62px!important;box-sizing:border-box!important;
  margin:0!important;padding:8px 0!important;
  border:0!important;box-shadow:none!important;
  background:#0c101b!important;
}
#appShell:not([hidden]) > header.is-scrolled {box-shadow:0 10px 22px rgba(0,0,0,.25)!important;}
body:not(.light) {--bg:#0c101b!important;--panel:#131824!important;--border:#202737!important;}
body:not(.light) #appShell .card,
body:not(.light) #appShell .desktop-progress-card,
body:not(.light) #appShell .desktop-editor-card {background:#141a27!important;border-color:#232a38!important;box-shadow:none!important;}
body:not(.light) #appShell .overview-settings,
body:not(.light) #appShell .overview-summary {background:#101623!important;border-color:#232a38!important;}
body:not(.light) #appShell .metric-tile {background:#1a2130!important;border-color:#283143!important;}
body:not(.light) #appShell input,body:not(.light) #appShell textarea {background:#0d1420!important;border-color:#293244!important;}
body:not(.light) #appShell .claims-actions .clear-workspace {background:#161521!important;border-color:#392b3b!important;color:#df8ca7!important;box-shadow:none!important;}
body:not(.light) #appShell .claims-actions .clear-workspace:hover {background:#211924!important;border-color:#654054!important;}
body:not(.light) #appShell>nav {border-bottom-color:#232a38!important;}
body.light #appShell:not([hidden]) > header {background:#f9faff!important;border:0!important;box-shadow:none!important;}
body.light #appShell:not([hidden]) > header.is-scrolled {box-shadow:0 8px 18px rgba(25,35,59,.1)!important;}
@media (min-width:1024px) and (max-width:1150px) {#appShell:not([hidden]) > header {width:calc(100% - 52px)!important;}}
@media (max-width:1023px) {
 #appShell:not([hidden]) {padding-top:58px!important;}
 #appShell:not([hidden]) > header {width:100%!important;max-width:none!important;height:58px!important;min-height:58px!important;padding:8px 14px!important;}
}
@media (max-width:700px) {
 #appShell:not([hidden]) > header {padding:8px 12px!important;}
 #appShell .claims-actions .clear-workspace {flex:0 0 auto!important;padding-inline:12px!important;min-width:0!important;}
}

/* V0.6.13: dark progress snapshot consistent across mobile and desktop */
.snapshot-modal{background:#111722;border-color:#252d3b;box-shadow:0 20px 65px rgba(0,0,0,.65)}
.snapshot-modal canvas{background:#0c1018;border:1px solid #242b37;border-radius:13px}
.snapshot-modal .snapshot-actions button:not(.primary){background:#0e131d;border-color:#252d3b;color:#f2f5fa}
.snapshot-modal .snapshot-actions button.primary{background:#a78bfa;color:#0b0c13;border-color:transparent}

/* V0.6.14 — snapshot-inspired charcoal dark palette. Visual changes only.
   No layout, sizing, positioning, responsive or application logic changes. */
body:not(.light){--bg:#0c1018!important;--panel:#111722!important;--border:#222a36!important;--surface:#101620!important;--surface-raised:#18212e!important;background:#0c1018!important}
body:not(.light) #appShell:not([hidden]) > header{background:#0c1018!important}
body:not(.light) #appShell .card,
body:not(.light) #appShell .desktop-progress-card,
body:not(.light) #appShell .desktop-editor-card{background:#111722!important;border-color:#222a36!important;box-shadow:none!important}
body:not(.light) #appShell .overview-settings,
body:not(.light) #appShell .overview-summary{background:#101620!important;border-color:#202834!important}
body:not(.light) #appShell .metric-tile{background:#19212e!important;border-color:#28303d!important}
body:not(.light) #appShell input,
body:not(.light) #appShell textarea,
body:not(.light) #appShell select{background-color:#0e141e!important;border-color:#29313e!important}
body:not(.light) #appShell #participants .person,
body:not(.light) #appShell #participants #tags,
body:not(.light) #appShell #spots .spotrows{background:#111722!important;border-color:#242c39!important}
body:not(.light) #appShell #spots .spotrow{border-color:#242c39!important}
body:not(.light) #appShell #spots .spotrow:nth-child(even){background:rgba(255,255,255,.015)!important}
body:not(.light) #appShell .claims-actions .clear-workspace{background:#17151d!important;border-color:#332b35!important}
body:not(.light) #appShell .claims-actions .clear-workspace:hover{background:#211b25!important;border-color:#594151!important}
body:not(.light) #appShell>nav{border-bottom-color:#222a36!important}
body:not(.light) .compact-footer{background:rgba(12,16,24,.97)!important;border-color:#222a36!important}

/* V0.6.15 — compact, equal-height workspace actions across screen sizes */
#appShell #claims .claims-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:10px!important}
#appShell #claims .claims-actions #parse,#appShell #claims .claims-actions .clear-workspace{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;padding:0 17px!important;border-radius:9px!important;box-sizing:border-box!important;line-height:1!important;font-size:13px!important;white-space:nowrap!important;box-shadow:none!important}
#appShell #claims .claims-actions #parse{min-width:155px!important}
#appShell #claims .claims-actions .clear-workspace{min-width:95px!important}
@media(max-width:390px){#appShell #claims .claims-actions #parse{min-width:0!important}#appShell #claims .claims-actions #parse,#appShell #claims .claims-actions .clear-workspace{padding-inline:12px!important;font-size:12px!important}}
/* Restore normal desktop Spot List flow: previous viewport-constrained card was clipping the numbered rows. */
@media(min-width:1024px){
 html:has(#appShell:not([hidden]) #spots:not([hidden])),body:has(#appShell:not([hidden]) #spots:not([hidden])){height:auto!important;overflow-y:auto!important}
 #appShell:not([hidden]):has(#spots:not([hidden])){height:auto!important;min-height:100dvh!important;overflow:visible!important}
 #appShell:has(#spots:not([hidden]))>main{flex:none!important;min-height:0!important;overflow:visible!important;padding-bottom:36px!important}
 #spots:not([hidden]){height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}
 #spots:not([hidden])>.card{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}
 #spots .spotrows{height:auto!important;min-height:220px!important;max-height:60vh!important;overflow-y:auto!important;display:block!important}
}
/* Native-feeling branded confirmation dialog, independent of browser theme. */
.sf-confirm-backdrop[hidden]{display:none!important}
.sf-confirm-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(2,5,12,.78);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)}
.sf-confirm-dialog{width:min(100%,430px);background:#151b27;color:#f5f6fb;border:1px solid #303746;border-radius:18px;padding:26px;box-shadow:0 22px 80px rgba(0,0,0,.55);outline:none}
.sf-confirm-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:rgba(245,112,145,.11);color:#f69ab2;margin-bottom:18px}
.sf-confirm-dialog h2{font-size:21px;font-weight:800;letter-spacing:-.4px;margin:0 0 12px}
.sf-confirm-dialog p{color:#bac2d0;font-size:13px;line-height:1.7;margin:0 0 25px}
.sf-confirm-dialog p strong{color:#f0f2f8}
.sf-confirm-actions{display:flex;gap:10px;justify-content:flex-end}
.sf-confirm-actions button{height:43px!important;min-height:43px!important;border-radius:9px;padding:0 16px;font-weight:750;white-space:nowrap}
.sf-confirm-cancel{background:#202838;color:#e6e9f2;border:1px solid #343e51}
.sf-confirm-danger{background:#ef7899;color:#1d0c14;border:1px solid #ef7899}
.sf-confirm-danger:hover{background:#ffa2ba;border-color:#ffa2ba}
.sf-confirm-dialog button:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}
body.sf-modal-open{overflow:hidden!important}
body.light .sf-confirm-dialog{background:#fff;color:#1d2533;border-color:#e0e3ec}
body.light .sf-confirm-dialog p{color:#525c6e}body.light .sf-confirm-dialog p strong{color:#273043}
body.light .sf-confirm-cancel{background:#f4f5f9;color:#293344;border-color:#d9deea}
@media(max-width:450px){.sf-confirm-dialog{padding:22px}.sf-confirm-actions{flex-direction:column-reverse}.sf-confirm-actions button{width:100%}}

/* V0.6.16 — unified minimal tab hierarchy; charcoal theme switcher */
#appShell #participants,#appShell #spots,#appShell #settings{padding-top:0!important}
#appShell #participants>.feature-card:first-child,#appShell #spots>.feature-card:first-child,#appShell #settings>.feature-card:first-child{margin-top:0!important}
body:not(.light) #appShell>header .header-actions #theme{background:#111722!important;border:1px solid #232b38!important;color:#dce1ed!important;box-shadow:none!important}
body:not(.light) #appShell>header .header-actions #theme:hover{background:#1a1d2a!important;border-color:#6e5c9c!important;color:#c7b5ff!important;box-shadow:none!important}
body.light #appShell>header .header-actions #theme{background:#f5f6fa!important;border:1px solid #e2e5ec!important;color:#343b4a!important;box-shadow:none!important}
body.light #appShell>header .header-actions #theme:hover{background:#eee9ff!important;border-color:#b8a3e6!important;color:#7751bb!important;box-shadow:none!important}

/* V0.6.17 — accessible light-theme contrast polish, desktop + mobile only */
body.light{--bg:#f3f5fa;--panel:#fff;--border:#d5dce9;--text:#172238;--muted:#526078;--accent:#6942c7;--green:#087a55;background:#f3f5fa;color:var(--text)}
body.light #appShell .card{background:#fff;border-color:#d7dfec;box-shadow:0 8px 24px rgba(24,36,64,.055)}
body.light #appShell .overview-settings,body.light #appShell .overview-summary,body.light #appShell #participants .person,body.light #appShell #participants #tags,body.light #appShell #spots .spotrows{background:#f6f8fc!important;border-color:#d8dfeb!important}
body.light #appShell .metric-tile{background:#fff!important;border-color:#d8dfeb!important}
body.light #appShell .metric-tile small,body.light #appShell .desktop-card-heading p,body.light #appShell .tab-intro p,body.light #appShell .claims-help,body.light #appShell .hint,body.light #appShell .person-meta,body.light #appShell .overview-settings label,body.light #appShell .mini-heading{color:#526078!important}
body.light #appShell .metric-tile strong{color:#172238}
body.light #appShell .metric-tile.metric-available strong,body.light #appShell .metric-tile.metric-free strong{color:#6942c7!important}
body.light #appShell .metric-tile.metric-paid strong{color:#087a55!important}
body.light #appShell>nav button{color:#475772!important;opacity:1!important}
body.light #appShell>nav button.selected{color:#5127ae!important;border-bottom-color:#6942c7!important;font-weight:800!important}
body.light #appShell>nav button:hover{color:#5127ae!important}
body.light #appShell .person-name,body.light #appShell h2,body.light #appShell .split-title,body.light #appShell .desktop-card-heading h2{color:#172238}
body.light #appShell .person-paid .person-name,body.light #appShell .paid{color:#087a55!important}
body.light #appShell input,body.light #appShell textarea,body.light #appShell select{background:#fff!important;color:#172238!important;border-color:#c7d0e1!important}
body.light #appShell .spotrow{border-bottom-color:#dbe2ed!important;color:#172238}
body.light #appShell #spots .spotrow:nth-child(even){background:#eef2f9!important}
body.light #appShell #spots .spotrow span:first-child{color:#526078!important}
body.light #appShell .backup-notice{background:#f0ebfc!important;border-color:#d7c8f8!important;color:#25334a!important}
body.light #appShell .backup-notice .hint,body.light #appShell .backup-notice p{color:#526078!important}
body.light #appShell button.primary{background:#6942c7!important;border-color:#6942c7!important;color:#fff!important}
body.light #appShell .compact-footer{color:#526078!important;background:#f8f9fc!important}
body.light #appShell .footer-license,body.light #appShell .license-remaining{color:#087a55!important}
body.light #appShell .overview-summary .track{background:#e2e7f0!important}
body.light #appShell .overview-summary .progress-percent{color:#6942c7!important}
@media(max-width:600px){body.light #appShell>nav button{color:#42516c!important}body.light #appShell>nav button.selected{color:#5127ae!important}}

/* V0.6.18 — restore paid-card highlighting and high-contrast light palette. */
body:not(.light) #appShell #participants .person.person-paid {background:#102820!important;border:1px solid #285844!important;border-left:4px solid #34d399!important;}
body.light #appShell #participants .person.person-paid {background:#e3f6ed!important;border:1px solid #a1d9bd!important;border-left:4px solid #087a55!important;}
body.light #appShell #participants .person.person-paid .person-name{color:#086646!important;}
body.light #appShell #participants .person.person-paid .person-meta{color:#345a4b!important;}
body.light #appShell #participants .person.person-paid input{border-color:#a1cbb6!important;}
body.light #appShell #participants .person:not(.person-paid){background:#ffffff!important;border:1px solid #cbd4e3!important;}
body.light #appShell #participants .person:not(.person-paid) .person-name{color:#16243c!important;}
body.light #appShell{color:#172238!important;}
body.light #appShell>nav{background:#f3f5fa!important;border-bottom-color:#cbd4e2!important;}
body.light #appShell>nav button{color:#344663!important;background:transparent!important;opacity:1!important;}
body.light #appShell>nav button.selected{color:#4c259f!important;border-bottom:3px solid #6942c7!important;background:rgba(105,66,199,.055)!important;}
body.light #appShell .hint,body.light #appShell .person-meta,body.light #appShell .desktop-card-heading p,body.light #appShell .claims-help{color:#465774!important;}
body.light #appShell .card{border-color:#cbd4e3!important;}
body.light #appShell #participants .person label{color:#293b56!important;}
body.light #appShell .overview-settings,body.light #appShell .overview-summary,body.light #appShell #spots .spotrows{border-color:#cbd4e3!important;}
body.light #appShell .paid{color:#087a55!important;}
body.light #appShell>header .header-actions #theme{background:#fff!important;border:1px solid #cbd4e3!important;color:#354761!important;box-shadow:none!important;}
body.light #appShell>header .header-actions #theme:hover{background:#eee9fc!important;border-color:#9c80dc!important;}
body:not(.light) #appShell>header .header-actions #theme{background:#111722!important;border:1px solid #232b38!important;box-shadow:none!important;}
#appShell>header .header-actions #theme svg{display:block;width:18px;height:18px;}

/* V0.6.20: participant status, summary, filters and legibility */
#appShell #participants .person.person-paid > .person-head > button.paid{background:#123b30!important;border:1px solid #267a5b!important;color:#5ff0b9!important;font-weight:750;}
body.light #appShell #participants .person.person-paid > .person-head > button.paid{background:#d1f3df!important;border:1px solid #79cba3!important;color:#086644!important;}
.participant-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0 12px;}
.participant-stat{min-width:0;padding:14px 16px;border:1px solid #2b3547;border-radius:12px;background:#182130;display:flex;flex-direction:column;gap:5px;}
.participant-stat>span{font-size:12px;color:#b2bed1;font-weight:650;}.participant-stat strong{font-size:clamp(17px,2vw,23px);line-height:1.25;color:#f3f6ff;font-weight:800;overflow-wrap:anywhere;}.participant-stat small{font-size:11px;color:#a9b7cc;}
.participant-stat-paid strong{color:#4ce0aa;}.participant-stat-unpaid strong{color:#f6d0a0;}
.participant-filter{display:inline-flex;align-items:center;gap:3px;background:#111825;border:1px solid #293447;border-radius:10px;padding:4px;margin:0 0 10px;}
#appShell .participant-filter button{min-height:34px;padding:7px 17px;border:0;border-radius:7px;background:transparent;color:#aebcd2;font-size:13px;font-weight:700;}
#appShell .participant-filter button.active{background:#7251cc;color:#fff;box-shadow:0 1px 4px #0002;}
#appShell .participant-filter button:focus-visible{outline:2px solid #b69aff;outline-offset:2px;}
.participant-empty{padding:20px 12px;color:#aebcd2;text-align:center;border:1px dashed #344155;border-radius:10px;}
#appShell #spots .spotrow{min-height:37px!important;padding:9px 15px!important;font-size:14px!important;line-height:1.4!important;align-items:center;}
#appShell #spots .spotrow>span:first-child{font-variant-numeric:tabular-nums;font-weight:650;color:#aebbd0;}
#appShell #spots .spotrow.spotrow-empty{background:rgba(167,139,250,.07)!important;}
#appShell #spots .spotrow.spotrow-empty>span:last-child{color:#a997ce;}
#appShell button.sf-button-success{background:#12634d!important;border-color:#1c9871!important;color:#fff!important;}
#appShell .footer-license{font-size:11px!important;font-weight:600!important;color:#6ad6ae!important;}
#appShell .footer-brand,#appShell .footer-status{font-size:11px!important;color:#aebbd0!important;}
#appShell .footer-brand small{color:#aebbd0!important;}
body.light #appShell .participant-stat{background:#f6f8fc;border-color:#d1d9e7;}
body.light #appShell .participant-stat>span,body.light #appShell .participant-stat small{color:#53627a;}
body.light #appShell .participant-stat strong{color:#17243b;}
body.light #appShell .participant-stat-paid strong{color:#087a55;}
body.light #appShell .participant-stat-unpaid strong{color:#925019;}
body.light #appShell .participant-filter{background:#e8edf6;border-color:#cbd5e5;}
body.light #appShell .participant-filter button{color:#465674;}
body.light #appShell .participant-filter button.active{background:#6e4bc3;color:#fff;}
body.light #appShell .participant-empty{color:#53627a;border-color:#cbd5e5;}
body.light #appShell #spots .spotrow.spotrow-empty{background:#eee9fa!important;}
body.light #appShell #spots .spotrow.spotrow-empty>span:last-child{color:#67518f;}
body.light #appShell .footer-brand,body.light #appShell .footer-status,body.light #appShell .footer-brand small{color:#526078!important;}
body.light #appShell .footer-license{color:#087a55!important;}
@media(max-width:520px){.participant-summary{gap:6px;}.participant-stat{padding:11px 9px;}.participant-stat strong{font-size:16px;}.participant-stat>span{font-size:11px;}.participant-stat small{font-size:10px;}#appShell .participant-filter{display:flex;width:100%;}#appShell .participant-filter button{flex:1;padding:9px 5px;}#appShell #spots .spotrow{font-size:13px!important;padding:9px 11px!important;}}

/* V0.6.21: account for the sticky header when navigating to the overview. */
#claims .desktop-progress-card { scroll-margin-top: 86px; }

/* V0.6.23: prevent CSS smooth scrolling from turning instant adjustments
   into a delayed second animation on mobile Chrome. JS owns the one scroll. */
@media (max-width:767px){
 html:has(#appShell:not([hidden]) #claims:not([hidden])),
 body:has(#appShell:not([hidden]) #claims:not([hidden])){scroll-behavior:auto!important;}
}



/* V0.6.25: notice text previously added and removed height above the overview,
   causing a second jump 4 seconds after Update. Keep notices out of flow. */
#appShell:not([hidden]) > #notice {
 position:fixed!important;top:auto!important;
 bottom:calc(78px + env(safe-area-inset-bottom))!important;
 left:50%!important;right:auto!important;transform:translateX(-50%)!important;
 width:min(calc(100% - 32px),560px)!important;max-width:560px!important;
 margin:0!important;padding:0!important;min-height:0!important;
 z-index:150!important;pointer-events:none!important;
}
#appShell:not([hidden]) > #notice:not(:empty){
 padding:10px 13px!important;background:#173b32!important;
 border:1px solid #4c9d81!important;color:#e5fff5!important;
 box-shadow:0 8px 24px rgba(0,0,0,.25)!important;
}

/* v0.6.29 account dropdown */
.header-actions .account-menu-wrap{position:relative;display:flex;align-items:center}
.header-actions #accountMenuButton svg{width:19px;height:19px}
.header-actions .account-dropdown{position:absolute;right:0;top:calc(100% + 9px);min-width:145px;padding:5px;background:#1b2232;border:1px solid #35415b;border-radius:11px;box-shadow:0 14px 35px #0007;z-index:300}
.header-actions .account-dropdown[hidden]{display:none!important}
.header-actions .account-dropdown button{display:block;width:100%;height:auto;min-width:0;padding:11px 12px;text-align:left;font-size:13px;border:0;border-radius:7px;background:transparent;color:#f0f4ff;white-space:nowrap}
.header-actions .account-dropdown button:hover,.header-actions .account-dropdown button:focus-visible{background:#303c57}
body.light .header-actions .account-dropdown{background:#fff;border-color:#cfd6e6;box-shadow:0 14px 35px #1112}
body.light .header-actions .account-dropdown button{background:transparent;color:#242d43}
body.light .header-actions .account-dropdown button:hover,body.light .header-actions .account-dropdown button:focus-visible{background:#eef0fa}

/* v0.6.30 — unboxed header icons, accessible hit areas retained */
#appShell > header .header-actions #theme,
#appShell > header .header-actions #accountMenuButton {
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:inherit!important;
}
#appShell > header .header-actions #theme:hover,
#appShell > header .header-actions #accountMenuButton:hover {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  color:#b69aff!important;
}
#appShell > header .header-actions #theme:focus-visible,
#appShell > header .header-actions #accountMenuButton:focus-visible {
  outline:2px solid #a78bfa!important;
  outline-offset:1px;
}
body.light #appShell > header .header-actions #theme,
body.light #appShell > header .header-actions #accountMenuButton {color:#354761!important}
body.light #appShell > header .header-actions #theme:hover,
body.light #appShell > header .header-actions #accountMenuButton:hover {color:#7751bb!important}

/* V0.6.31 — genuinely borderless theme/account icons and compact sign-out menu */
body #appShell > header .header-actions #theme,
body #appShell > header .header-actions #accountMenuButton,
body.light #appShell > header .header-actions #theme,
body.light #appShell > header .header-actions #accountMenuButton,
body:not(.light) #appShell > header .header-actions #theme,
body:not(.light) #appShell > header .header-actions #accountMenuButton {
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:none;
  padding:6px!important;
  appearance:none;
}
body #appShell > header .header-actions #theme:hover,
body #appShell > header .header-actions #accountMenuButton:hover,
body.light #appShell > header .header-actions #theme:hover,
body:not(.light) #appShell > header .header-actions #theme:hover {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body #appShell > header .header-actions #theme:focus-visible,
body #appShell > header .header-actions #accountMenuButton:focus-visible {
  outline:2px solid #a78bfa!important;
  outline-offset:0;
  border-radius:5px!important;
}
/* Match the surrounding dark page, not the lighter customer-card surface. */
body:not(.light) #appShell > header .header-actions .account-dropdown {
  background:#0d111a!important;
  border:1px solid #242c3b!important;
  border-radius:8px!important;
  box-shadow:0 10px 25px #0007!important;
}
#appShell > header .header-actions .account-dropdown {
  top:calc(100% + 4px);
  min-width:0!important;
  width:104px!important;
  padding:3px!important;
  box-sizing:border-box;
}
#appShell > header .header-actions .account-dropdown #accountMenuSignOut,
body.light #appShell > header .header-actions .account-dropdown #accountMenuSignOut {
  width:100%!important;
  height:32px!important;
  min-width:0!important;
  padding:7px 9px!important;
  font-size:12px!important;
  font-weight:600;
  color:#fb7185!important;
  border:0!important;
  border-radius:5px!important;
  background:transparent!important;
  text-align:left;
  box-shadow:none!important;
  transform:none!important;
}
#appShell > header .header-actions .account-dropdown #accountMenuSignOut:hover,
#appShell > header .header-actions .account-dropdown #accountMenuSignOut:focus-visible {
  background:rgba(251,113,133,.12)!important;
  color:#ff9baa!important;
}

/* v0.6.32: Screenshot-matched account menu and subscription detail */
#appShell .account-menu-wrap .account-dropdown.account-expanded{width:286px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;top:calc(100% + 7px)!important;padding:0!important;border-radius:10px!important;background:#0c111b!important;border:1px solid #273145!important;box-shadow:0 18px 40px #0008!important;color:#f3f5fc!important;overflow:hidden!important;z-index:120!important}
#appShell .account-dropdown.account-expanded .account-head{display:flex;align-items:center;gap:11px;padding:18px 16px 17px;border-bottom:1px solid #2c374b}
#appShell .account-dropdown.account-expanded .account-head svg{width:18px;height:18px;color:#b9a0ff;flex-shrink:0}
#appShell .account-dropdown.account-expanded .account-head strong{display:block;font-size:14px;font-weight:700;line-height:1.3}
#appShell .account-dropdown.account-expanded .account-head small{display:block;font-size:10px;color:#9daac0;margin-top:3px}
#appShell .account-dropdown.account-expanded .account-person{padding:27px 15px 24px;border-bottom:1px solid #2c374b}
#appShell .account-dropdown.account-expanded .account-person strong{display:block;font-size:13px;overflow-wrap:anywhere;color:#f4f6fb}
#appShell .account-dropdown.account-expanded .account-person span{display:block;color:#5bdec4;font-size:11px;margin-top:9px}
#appShell .account-dropdown.account-expanded .account-links{padding:14px 0 16px;border-bottom:1px solid #2c374b}
#appShell .account-dropdown.account-expanded .account-signout{padding:14px 0 17px}
#appShell .account-dropdown.account-expanded .account-links button,
#appShell .account-dropdown.account-expanded .account-signout #accountMenuSignOut{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;width:100%!important;height:45px!important;padding:9px 16px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#f1f3f9!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important;text-align:left!important;transform:none!important;white-space:nowrap}
#appShell .account-dropdown.account-expanded .account-links button:hover{background:#182237!important}
#appShell .account-dropdown.account-expanded .account-signout #accountMenuSignOut{color:#ff6375!important;font-weight:650!important}
#appShell .account-dropdown.account-expanded .account-signout #accountMenuSignOut:hover{background:#2a1722!important}
#appShell .account-dropdown.account-expanded .account-link-icon{width:15px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;color:#bac7df;flex-shrink:0}
#appShell .account-dropdown.account-expanded .account-signout .account-link-icon{color:#ff6375}
.account-modal-backdrop{position:fixed;inset:0;background:#03060dbd;z-index:99999;display:flex;justify-content:center;align-items:center;padding:18px}
.account-modal-backdrop[hidden]{display:none!important}
.account-modal{width:min(350px,100%);background:#111827;border:1px solid #2b374d;border-radius:13px;padding:18px;color:#f3f6ff;box-shadow:0 24px 70px #000a}
.account-modal-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.account-modal-title h2{font-size:16px;margin:0;font-weight:750}
.account-modal-title button{border:0;background:transparent;color:#aebbd0;font-size:24px;cursor:pointer}
.subscription-heading{display:flex;justify-content:space-between;align-items:center;padding:4px 0 16px;border-bottom:1px solid #344056;font-size:14px}
.subscription-pill{border-radius:18px;padding:3px 9px;font-size:11px;background:#293244;color:#d2d8e5;font-weight:700}
.subscription-pill.active{background:#123e32;color:#38df9a}
.subscription-pill.pending{background:#4a3518;color:#f4c56b}
.subscription-pill.blocked,.subscription-pill.expired{background:#48222d;color:#ff8192}
.subscription-details{padding-top:8px}
.subscription-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0;font-size:13px}
.subscription-row span{color:#aebad0}.subscription-row strong{text-align:right;color:#f0f3f9;font-weight:650}
.subscription-row strong.subscription-remaining{color:#58dfb6}
.account-modal-description{font-size:13px;line-height:1.65;color:#b8c4da}
.account-modal-primary{padding:10px 13px;background:#a78bfa;border:0;border-radius:8px;color:#151224;font-weight:700;cursor:pointer;margin-top:9px}
.account-feedback{font-size:12px;line-height:1.6;color:#a8b8d4}
body.light #appShell .account-menu-wrap .account-dropdown.account-expanded{background:#0c111b!important;color:#f3f5fc!important}
@media(max-width:360px){#appShell .account-menu-wrap .account-dropdown.account-expanded{width:270px!important}}

/* v0.6.34 exact line icons, stable subscription modal, password recovery */
#appShell .account-dropdown .account-link-icon svg{width:17px;height:17px;display:block;flex-shrink:0}
#appShell .account-dropdown .account-link-icon{font-size:0!important}
.account-modal:has(.subscription-heading){min-height:210px;box-sizing:border-box}
.password-recovery-screen{position:fixed;inset:0;z-index:200000;background:#0e1320;display:grid;place-items:center;padding:20px;overflow:auto}
.password-recovery-screen[hidden]{display:none!important}
.password-recovery-card{width:min(400px,100%);box-sizing:border-box;padding:28px;background:#151d2c;border:1px solid #303b52;border-radius:16px;color:#f4f5fc;box-shadow:0 25px 70px #0007}
.password-recovery-card>img{display:block;margin:0 auto 12px}
.password-recovery-card .auth-brand-eyebrow{text-align:center;color:#ac92fa;letter-spacing:.15em;font-size:11px}
.password-recovery-card h1{text-align:center;font-size:23px;margin:7px 0 18px}
.password-recovery-card p{color:#b8c5dc;font-size:13px;line-height:1.6}
.password-recovery-card label{display:block;margin:15px 0;font-size:12px;color:#c4cde0}
.password-recovery-card input{display:block;width:100%;box-sizing:border-box;margin-top:7px;background:#0e1523;color:#fff;border:1px solid #42506a;border-radius:9px;padding:12px;font:inherit}
.password-recovery-card button{width:100%;padding:12px;margin-top:8px}
.password-recovery-card a{display:block;text-align:center;margin-top:18px;color:#bca6ff}

/* v0.6.35: login password recovery entry */
.auth-forgot-password{background:none!important;border:0!important;box-shadow:none!important;color:#b49afa!important;font-size:12px!important;padding:10px 3px!important;text-decoration:underline;text-underline-offset:3px}
.auth-forgot-password:hover{color:#d3c2ff!important}
.auth-forgot-password[hidden]{display:none!important}

/* v0.6.36 dedicated password recovery form */
.auth-forgot-view[hidden],.auth-forgot-view form[hidden],.auth-forgot-view #authForgotResult[hidden]{display:none!important}
.auth-forgot-view h2{font-size:20px;margin:12px 0 6px;color:#f7f5ff}
.auth-forgot-view>p{font-size:13px;color:#b7c1d5;line-height:1.6}
.auth-forgot-view form{margin-top:20px}
.auth-forgot-view label{font-size:12px;font-weight:600;color:#cbd4e8}
.auth-forgot-view #authForgotSubmit{margin:5px 0 15px;width:100%}
.auth-forgot-view .auth-forgot-back{background:transparent;border:0;color:#b7a0ff;padding:10px 0;font-size:13px}
.auth-forgot-view .auth-forgot-back:hover{text-decoration:underline}
.auth-forgot-view #authForgotResult{background:#102d2a;border:1px solid #2d866e;border-radius:12px;padding:16px;margin:16px 0;color:#74e6b5}
.auth-forgot-view #authForgotResult h3{margin:4px 0 8px;font-size:17px;color:#81edbd}
.auth-forgot-view #authForgotResult p{margin:0;color:#b7e8d4;font-size:13px;line-height:1.65}
.auth-forgot-success-icon{font-size:24px;font-weight:bold}
body.light .auth-forgot-view #authForgotResult{background:#e9fff3;border-color:#69b992;color:#146b47}
body.light .auth-forgot-view #authForgotResult h3{color:#146b47}
body.light .auth-forgot-view #authForgotResult p{color:#256448}


/* v0.6.38: account features follow the global light theme. Keep dark theme unchanged. */
body.light #appShell .account-menu-wrap .account-dropdown.account-expanded {
  background:#ffffff!important;color:#17233a!important;border-color:#cbd5e5!important;
  box-shadow:0 18px 40px #24365326!important;
}
body.light #appShell .account-dropdown.account-expanded .account-head,
body.light #appShell .account-dropdown.account-expanded .account-person,
body.light #appShell .account-dropdown.account-expanded .account-links {border-bottom-color:#dbe2ed!important}
body.light #appShell .account-dropdown.account-expanded .account-head strong,
body.light #appShell .account-dropdown.account-expanded .account-person strong {color:#18243b!important}
body.light #appShell .account-dropdown.account-expanded .account-head small {color:#64748b!important}
body.light #appShell .account-dropdown.account-expanded .account-person span {color:#087c65!important}
body.light #appShell .account-dropdown.account-expanded .account-links button {color:#26354e!important}
body.light #appShell .account-dropdown.account-expanded .account-links button:hover,
body.light #appShell .account-dropdown.account-expanded .account-links button:focus-visible {background:#eef1fa!important}
body.light #appShell .account-dropdown.account-expanded .account-link-icon {color:#586984!important}
body.light #appShell .account-dropdown.account-expanded .account-head svg {color:#7752c5!important}
body.light #appShell .account-dropdown.account-expanded .account-signout #accountMenuSignOut {color:#d12f4a!important}
body.light #appShell .account-dropdown.account-expanded .account-signout .account-link-icon {color:#d12f4a!important}
body.light #appShell .account-dropdown.account-expanded .account-signout #accountMenuSignOut:hover {background:#fff0f2!important}
body.light .account-modal-backdrop {background:#14203991}
body.light .account-modal {background:#fff;color:#18243b;border-color:#cbd5e5;box-shadow:0 24px 65px #20324d35}
body.light .account-modal-title h2 {color:#17233a}
body.light .account-modal-title button {color:#52617a}
body.light .subscription-heading {border-bottom-color:#dbe2ed;color:#1e2b43}
body.light .subscription-pill {background:#edf0f7;color:#536078}
body.light .subscription-pill.active {background:#d9f7e9;color:#08784c}
body.light .subscription-pill.pending {background:#fff0c9;color:#94620a}
body.light .subscription-pill.blocked,body.light .subscription-pill.expired {background:#ffe4e8;color:#bc2543}
body.light .subscription-row span,body.light .account-modal-description,body.light .account-feedback {color:#586984}
body.light .subscription-row strong {color:#1d2a41}
body.light .subscription-row strong.subscription-remaining {color:#07875e}
body.light .account-modal-primary {background:#a78bfa;color:#171126}
body.light .password-recovery-screen {background:#f3f5fb}
body.light .password-recovery-card {background:#fff;border-color:#d3dced;color:#1c2941;box-shadow:0 25px 65px #20324d24}

/* V0.7.2: accessible, unboxed brand navigation to Claims home */
#appShell>header .header-home-button{appearance:none;border:0;background:transparent;color:inherit;padding:0;margin:0;cursor:pointer;text-align:left;font:inherit;box-shadow:none;border-radius:4px;}
#appShell>header .header-home-button:hover{opacity:.85;}
#appShell>header .header-home-button:focus-visible{outline:2px solid #a78bfa;outline-offset:5px;}


/* Preserve original brand typography while allowing home navigation. */
#appShell>header a.header-home-button{text-decoration:none!important;}

/* V0.7.4 — show live cloud status in the mobile footer, too. */
.compact-footer #saved{display:inline;white-space:normal;overflow-wrap:break-word;text-align:right}
@media(max-width:639px){.compact-footer{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);column-gap:5px}.compact-footer .footer-status{min-width:0;justify-content:flex-end}.compact-footer #saved{font-size:9px;line-height:1.25}.compact-footer .footer-license{font-size:10px}}
