:root{color-scheme:light;--bg:#f1f2f4;--card:#fff;--text:#171a21;--muted:#697381;--line:#e9ecf0;--soft:#f2f4f7;--accent:#367bf5;--accent-ink:#215db7;--tint:#e6efff;--focus:#2f75e8;--danger:#c83f49;--radius:24px;font:16px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--bg:#101217;--card:#1a1e26;--text:#edf1f7;--muted:#a3adbc;--line:#303641;--soft:#222833;--accent:#4689ff;--accent-ink:#a6c8ff;--tint:#233450;--focus:#8eb7ff;--danger:#ff8994}}
:root.app-dark{color-scheme:dark;--bg:#101217;--card:#1a1e26;--text:#edf1f7;--muted:#a3adbc;--line:#303641;--soft:#222833;--accent:#4689ff;--accent-ink:#a6c8ff;--tint:#233450;--focus:#8eb7ff;--danger:#ff8994}
:root.app-light{color-scheme:light;--bg:#f1f2f4;--card:#fff;--text:#171a21;--muted:#697381;--line:#e9ecf0;--soft:#f2f4f7;--accent:#367bf5;--accent-ink:#215db7;--tint:#e6efff;--focus:#2f75e8;--danger:#c83f49}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}
button,input,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
a{color:inherit;text-decoration:none}
:is(button,a,input,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
:is(button,a){touch-action:manipulation}
button:disabled{opacity:.55;cursor:default}
[hidden]{display:none!important}
svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
h1,h2,p{margin:0}
.help-shell{width:min(100% - 40px,850px);margin:auto;padding-bottom:22px}
.topbar{display:flex;align-items:center;gap:12px;min-height:76px}
.topbar h1{font-size:21px;font-weight:700}
.icon-button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--card)}
.icon-button:hover{background:var(--tint)}
.app-hosted .topbar{display:none}
.app-hosted{--bg:#f2f3f5}
.app-dark .app-hosted{--bg:#000}
.app-hosted .help-shell{padding-top:10px}
.sheet-hosted .help-shell{padding-top:12px}
.sheet-hosted[data-screen=home] .topbar{display:none}
.sheet-hosted .topbar{min-height:56px;margin-bottom:12px}
.screen{min-width:0}
.search-box{display:flex;align-items:center;gap:10px;padding:0 13px;min-height:47px;background:var(--card);border:1px solid var(--line);border-radius:16px;color:var(--muted)}
.search-box svg{width:19px;height:19px}
.search-box input{width:100%;min-width:0;height:45px;border:0;background:none;color:var(--text);font-size:15px}
.search-box input:focus{outline:0}
.search-box:focus-within{outline:2px solid var(--focus)}
.quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.quick-links a{display:grid;grid-template-columns:38px minmax(0,1fr) 17px;align-items:center;gap:10px;padding:14px;min-width:0;background:var(--card);border-radius:18px}
.quick-links a:hover{box-shadow:0 0 0 1px var(--line)}
.quick-links strong{font-size:15px;line-height:20px}
.hint,.count{color:var(--muted);font-size:12px}
.quick-links .chevron{margin-left:auto}
.quick-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--accent-ink);background:var(--tint)}
.quick-icon svg{display:block;width:20px;height:20px}
.history-icon{color:var(--text);background:var(--soft)}
.card{background:var(--card);border-radius:var(--radius)}
.question-card,.form-card,.detail-card,.history-item{padding:20px 24px}
/* The last question row already provides space below its text. */
#home .question-card{padding-bottom:5px}
.card h2{font-size:19px;line-height:1.4}
.categories{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin:13px -4px 5px;padding:4px}
.categories button{flex:none;padding:6px 11px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:13px;white-space:nowrap}
.categories button[aria-pressed=true]{color:var(--accent-ink);background:var(--tint);font-weight:650}
.row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:51px;padding:11px 0;text-align:left;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row:hover{color:var(--accent-ink)}
.row small{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.chevron{width:17px;height:17px;color:var(--muted)}
.state{padding:20px 0;color:var(--muted)}
.feedback-bar{display:flex;justify-content:center;position:sticky;bottom:0;padding:12px 0 max(10px,env(safe-area-inset-bottom));background:var(--bg);margin-top:4px}
.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:10px 22px;border-radius:14px;font-weight:650}
.primary{background:var(--accent);color:#fff}
.primary svg{width:19px;height:19px}
.secondary{background:var(--soft);color:var(--accent-ink)}
.feedback-bar .primary{width:min(100%,300px)}
.detail-card h2{font-size:23px;margin:7px 0 16px}
.detail-category{color:var(--accent-ink);font-size:13px}
.answer,.feedback-copy{white-space:pre-wrap;overflow-wrap:anywhere}
.answer{line-height:1.85}
.form-card{display:grid;gap:10px}
.form-card label{font-weight:650}
.form-card label small{color:var(--muted);font-weight:400}
.required,.form-status.error{color:var(--danger)}
textarea{width:100%;min-height:155px;resize:vertical;background:var(--soft);border:1px solid transparent;border-radius:14px;padding:13px}
.count{text-align:right}
.picker{display:grid;place-items:center;align-content:center;gap:3px;width:91px;height:85px;background:var(--soft);border-radius:14px;color:var(--accent-ink);font-size:13px;cursor:pointer}
.picker:has(+ input:focus-visible){outline:2px solid var(--focus)}
.attachments{display:flex;flex-wrap:wrap;gap:10px}
.attachments:empty,.form-status:empty{display:none}
.attachment{position:relative;width:76px;height:76px}
.attachment img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.attachment button{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#16191dd9;color:#fff;padding:0}
.attachment svg{width:15px;height:15px}
.form-card .primary{margin-top:5px}
.history{display:grid;gap:12px}
.history-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--muted);font-size:13px}
.history-meta strong{color:var(--text);font-size:16px}
.history-meta span:last-child{margin-left:auto}
.history-item .feedback-copy{margin:10px 0 4px}
.reply{margin-top:14px;padding:12px 14px;border-radius:13px;background:var(--soft)}
.reply strong{font-size:14px}
#more-history{margin:12px auto}
@media(max-width:560px){.help-shell{width:calc(100% - 28px)}.topbar{min-height:64px}.topbar h1{font-size:19px}.question-card,.form-card,.detail-card,.history-item{padding:17px}#home .question-card{padding-bottom:3px}.quick-links{gap:8px;margin:10px 0}.quick-links a{grid-template-columns:34px minmax(0,1fr);padding:10px;gap:8px}.quick-links .chevron{display:none}.quick-icon{width:34px;height:34px}.quick-icon svg{width:18px;height:18px}.row{min-height:49px;font-size:15px}.feedback-bar .primary{width:100%}}
