/* Hinatoro v0.7.34-dev — shared visual system & private staging shell. */
#authGate .auth-brand{gap:16px}
#authGate .auth-brand h1{font-size:clamp(29px,4vw,36px)!important;letter-spacing:.085em;font-weight:900;line-height:1.15;margin:0}
#authGate .auth-boot strong{font-size:30px;letter-spacing:.09em;color:#e9dbff}
#authGate #authMessage[data-kind="error"]{color:#ffc0a9!important;background:#4e29341c;border-left:3px solid #f88790;padding:9px 12px;border-radius:7px}
#authGate #authMessage[data-kind="success"]{color:#76e9ba!important}
#authGate #authLogout,.auth-legal-note{display:none!important}
#authGate[hidden]{display:none!important}
/* Default dark UI, existing explicit user theme preferences continue to work. */
#appShell #accountChangePassword,#appShell #accountSubscription,#appShell #accountSupport,#appShell #accountAdminLink{display:none!important}
#appShell #accountOpenProfile{display:flex!important;align-items:center;gap:10px}
#appShell.tool-account-mode>.sf-page-heading,#appShell.tool-account-mode>main,#appShell.tool-account-mode>nav,#appShell.tool-account-mode>#notice,#appShell.tool-account-mode>.tool-pick-preview,
#appShell.tool-legal-mode>.sf-page-heading,#appShell.tool-legal-mode>main,#appShell.tool-legal-mode>nav,#appShell.tool-legal-mode>#notice,#appShell.tool-legal-mode>.tool-pick-preview{display:none!important}
#appShell.tool-account-mode>footer,#appShell.tool-legal-mode>footer{display:flex!important}
#appShell.tool-admin-mode #accountPage,#appShell.tool-admin-mode #hinLegalPage{display:none!important}
#appShell #accountPage[hidden],#appShell #hinLegalPage[hidden]{display:none!important}
#appShell #accountPage,#appShell #hinLegalPage{display:block;width:min(1006px,calc(100% - 32px));margin:22px auto 56px;padding:0;box-sizing:border-box;min-height:400px;color:var(--text,#f2f5fc)}
.hin-page-heading{margin-bottom:19px}.hin-page-heading h2{font-size:clamp(22px,3vw,26px);letter-spacing:-.025em;margin:0 0 7px;font-weight:850}.hin-page-heading p{font-size:13px;color:var(--muted);margin:0;line-height:1.6}
.hin-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hin-account-panel{border:1px solid var(--border);background:var(--panel);padding:21px;border-radius:15px;min-width:0}
.hin-account-panel h3{font-size:16px;margin:10px 0 12px}.hin-account-panel p{color:var(--muted);font-size:12px;line-height:1.7;min-height:40px}
.hin-account-panel dl{margin:16px 0 0}.hin-account-panel dl div{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px;overflow-wrap:anywhere}.hin-account-panel dt{color:var(--muted)}.hin-account-panel dd{font-weight:700;text-align:right;margin:0}
.hin-account-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#a78bfa25;color:#b7a0ff;font-size:20px}.hin-icon-green{background:#28c59a19;color:#51d6ad}.hin-icon-amber{background:#e8a74b1b;color:#edb75a}.hin-icon-violet{background:#7a91ef22;color:#9eaafe}.hin-icon-red{background:#ed697e20;color:#fa8895}
.hin-account-panel button{border-radius:9px;padding:10px 12px;color:inherit;background:transparent;border:1px solid var(--border);font-weight:700;cursor:pointer;font-size:12px}
.hin-account-panel button:hover{border-color:#a78bfa}.hin-account-feedback{min-height:14px!important;margin:10px 0 0!important}.hin-account-pill{display:inline-flex;border-radius:30px;border:1px solid #9c88bc;color:#bba6ed;padding:5px 11px;font-size:11px;font-weight:800}.hin-account-pill.active{color:#50d6ab;border-color:#339f83}.hin-account-pill.expired{color:#ff919e;border-color:#a4535b}
.hin-admin-entry{grid-column:1/-1;border-top:2px solid #f3778b}.hin-admin-entry button{border-color:#e27588;color:#f49aab}
/* Legal documents use exactly the app's heading, header and footer (not a standalone site). */
#hinLegalPage{--legal-bg:var(--bg);--legal-panel:var(--panel);--legal-inner:var(--bg);--legal-border:var(--border);--legal-text:var(--text);--legal-muted:var(--muted);--legal-accent:var(--accent)}
#hinLegalPage .hin-legal-layout{display:grid;grid-template-columns:minmax(170px,215px) minmax(0,1fr);gap:15px;align-items:start}
#hinLegalPage .hin-legal-nav{position:sticky;top:68px;display:flex;flex-direction:column;gap:5px;background:var(--panel);border:1px solid var(--border);padding:12px;border-radius:13px}
#hinLegalPage .hin-legal-nav a{font-size:12px;font-weight:650;color:var(--muted);border-radius:7px;text-decoration:none;padding:9px 10px;white-space:nowrap}
#hinLegalPage .hin-legal-nav a[aria-current="page"]{background:#a78bfa21;color:#b99cf9}
#hinLegalPage .legal-document{background:var(--panel);border:1px solid var(--border);box-shadow:none;color:var(--text);padding:clamp(18px,3vw,30px)}
#hinLegalPage .legal-document[hidden]{display:none!important}
#hinLegalPage .legal-document h2{font-size:clamp(20px,3vw,24px)}
#hinLegalPage .legal-document h3{font-size:15px}
#hinLegalPage .legal-document p,#hinLegalPage .legal-document li{font-size:12.5px;color:var(--muted);line-height:1.75}
#hinLegalPage .legal-document strong{color:var(--text)}
#hinLegalPage .legal-note{background:var(--bg);border-color:var(--border);color:var(--muted)}
#hinLegalPage .legal-contact-detail{background:var(--bg);border-color:var(--border)}
#hinLegalPage a{color:#baa0fa}
body.light #hinLegalPage{--legal-accent:#6f50b8}
body.light #hinLegalPage a{color:#6943b5}
body.light #hinLegalPage .hin-legal-nav a[aria-current="page"]{color:#59379c;background:#ede6ff}
/* One-row shared footer with keyboard-scrollable legal links at narrow widths. */
html body #appShell:not([hidden]) > footer.compact-footer{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(6px,1.2vw,15px)!important;flex-wrap:nowrap!important;min-height:53px!important;margin:0!important;padding:9px max(12px,calc((100vw - 1140px)/2))!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;overflow-x:auto!important;scrollbar-width:thin!important;white-space:nowrap!important}
#appShell > footer.compact-footer .footer-brand{flex:0 0 auto!important;white-space:nowrap!important}
#appShell > footer.compact-footer .footer-license{flex:0 0 auto!important;white-space:nowrap!important;font-size:11px!important}
#appShell > footer.compact-footer .footer-status{flex:0 0 auto!important;white-space:nowrap!important}
#appShell > footer.compact-footer .hinatoro-legal-links{grid-column:auto!important;display:flex!important;flex:0 0 auto!important;gap:9px!important;padding:0!important;border:0!important;white-space:nowrap!important;flex-wrap:nowrap!important;font-size:10px!important;line-height:1.4!important}
#appShell > footer.compact-footer .hinatoro-legal-links a{white-space:nowrap!important}
/* Hide truly inaccessible destinations instead of advertising locked features. */
#appShell #toolMenu [data-tool][hidden],#appShell .tool-choice[hidden]{display:none!important}
/* Compact mobile landing: both accessible choices should appear early. */
#appShell.tool-landing-mode .tool-landing{padding-top:0;margin-top:18px!important;margin-bottom:22px!important}
#appShell .tool-landing-intro{margin-bottom:15px!important}
#appShell .tool-landing-intro h2{font-size:clamp(20px,3vw,26px);line-height:1.2;margin:0 0 5px}
#appShell .tool-landing-intro p{font-size:12px;line-height:1.45}
#appShell .tool-choice-grid svg{width:26px;height:26px;display:block}
#appShell .tool-choice{gap:8px;min-height:200px;padding:18px}
#appShell .tool-choice h3{font-size:16px}
#appShell .tool-choice p{font-size:12px;line-height:1.45}
#appShell .tool-choice button{padding:9px}
/* One scrolling Straight Fill workspace. Existing element IDs and event logic intact. */
#appShell:not(.tool-pick-mode):not(.tool-landing-mode):not(.tool-tags-mode):not(.tool-winners-mode):not(.tool-admin-mode):not(.tool-account-mode):not(.tool-legal-mode):not(.tool-access-denied-mode) > main .tab{display:block!important;visibility:visible!important;height:auto!important;opacity:1!important}
#appShell > main > section.tab[hidden]{display:block!important}
#appShell > main .sf-flow-section{margin-top:18px;min-width:0}
#appShell > main #participants .participant-summary{display:none!important}
#appShell > main #participants .split-title{align-items:center;gap:8px}
#appShell > main .sf-copy-actions{display:flex;flex-wrap:wrap;gap:7px}
#appShell > main .sf-copy-actions button{min-width:85px}
#appShell > main .sf-spot-preview{border:1px solid var(--border);border-radius:9px;margin-top:12px}
#appShell > main .sf-spot-preview summary{cursor:pointer;padding:11px 13px;font-size:12px;font-weight:700}
#appShell > main .sf-spot-preview .spotrows{padding:12px}
#appShell > main #settings .feature-card{padding:17px}
/* mobile settings — reduced padding but preserve readable controls */
@media(max-width:650px){
  #appShell .tool-landing-cards{gap:10px}
  #appShell .tool-choice{min-height:155px;padding:13px 15px;gap:5px}
  #appShell .tool-choice-icon{width:30px;height:30px;font-size:20px}
  #appShell .tool-choice-grid svg{width:23px;height:23px}
  #appShell .tool-choice p{font-size:11px;line-height:1.35}
  #appShell .tool-choice button{min-height:34px;padding:7px;font-size:12px}
  #appShell .tool-landing-intro{margin:8px 0 13px}
  #appShell .tool-landing-intro h2{font-size:20px}
  #appShell .tool-landing-intro p{font-size:11px}
  #appShell #pickPreview .pick-toolbar,#appShell #claims .sf-toolbar{padding:12px!important;gap:8px!important}
  #appShell #pickPreview .pick-toolbar label,#appShell #claims .sf-toolbar label{font-size:11px!important}
  #appShell #pickPreview .pick-toolbar>label:first-child,#appShell #claims .sf-toolbar>label:first-child{grid-column:1/-1}
  #appShell #pickPreview .pick-toolbar input,#appShell #claims .sf-toolbar input{min-height:36px!important}
  #appShell .hin-account-grid{grid-template-columns:1fr}
  #appShell .hin-admin-entry{grid-column:auto}
  #hinLegalPage .hin-legal-layout{grid-template-columns:1fr}
  #hinLegalPage .hin-legal-nav{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:thin;flex-wrap:nowrap}
  html body #appShell:not([hidden]) > footer.compact-footer{min-height:51px!important;gap:9px!important}
}
/* Dropdown select indicators should not touch the edge. */
#appShell #pickFilter{padding-right:36px!important;background-position:right 13px center!important}
/* Compact participant list typography improves legibility without enlarging cards. */
#pickPreview .pick-participant-card .pick-person-identity strong{font-size:14px!important;line-height:1.2}
/* Keep background permission/data refreshes from moving the user's viewport. */
#appShell{overflow-anchor:none}
#appShell #pickFilter{
  appearance:none!important;-webkit-appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23b7c4d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-size:16px!important;background-position:right 13px center!important;
}
body.light #appShell #pickFilter{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%2350617b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
