/* Hinatoro staging v0.7.35 — unified role-aware My Account and shared shell.
   Presentation-only. The existing admin management logic and data schema are reused. */
#appShell .hin-account-menu-minimal{width:216px!important;min-width:216px!important;max-width:calc(100vw - 24px)!important;overflow:hidden!important;padding:6px!important;border-radius:13px!important;box-sizing:border-box!important}
#appShell .hin-account-menu-minimal .hin-account-menu-items{display:grid;gap:2px}
#appShell .hin-account-menu-minimal .hin-account-menu-items>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;width:100%!important;min-height:43px!important;height:auto!important;line-height:1.3!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;font-size:13px!important;font-weight:650!important;color:#edf0fa!important;background:transparent!important;text-align:left!important;box-shadow:none!important;transform:none!important}
#appShell .hin-account-menu-minimal .hin-account-menu-items>button:hover,#appShell .hin-account-menu-minimal .hin-account-menu-items>button:focus-visible{background:#1b2840!important;outline:2px solid transparent!important}
#appShell .hin-account-menu-minimal .hin-account-menu-items>button>svg{width:14px;height:14px;margin-left:auto;color:#8191b3}
#appShell .hin-account-menu-minimal .account-link-icon{width:18px!important;height:19px!important;display:inline-flex;align-items:center;justify-content:center;color:#bba3fc!important}
#appShell .hin-account-menu-minimal .account-link-icon svg{width:18px;height:18px}
#appShell .hin-account-menu-minimal #accountMenuSignOut{color:#ff879a!important;border-top:1px solid #263149!important;border-radius:0!important;margin-top:4px!important;padding-top:12px!important}
#appShell .hin-account-menu-minimal #accountMenuSignOut .account-link-icon{color:#ff879a!important}
#appShell .hin-account-menu-minimal #accountMenuSignOut:hover{background:#34212b!important}
#appShell .hin-account-menu-minimal #hinLegacyAccountControls[hidden]{display:none!important}
body.light #appShell .hin-account-menu-minimal .hin-account-menu-items>button{color:#23304a!important}
body.light #appShell .hin-account-menu-minimal .hin-account-menu-items>button:hover{background:#f0edfa!important}
body.light #appShell .hin-account-menu-minimal #accountMenuSignOut{border-top-color:#e0e3ee!important;color:#bd3451!important}
body.light #appShell .hin-account-menu-minimal #accountMenuSignOut:hover{background:#fff0f3!important}

/* Page aligns exactly with existing Hinatoro tool width and page-header rhythm. */
#appShell #accountPage{width:min(1006px,calc(100% - 32px))!important;max-width:1006px;margin:22px auto 36px!important;padding:0!important;min-height:0!important}
#appShell #accountPage[hidden],#appShell #hinAccountAdminView[hidden],#appShell #hinAccountUserView[hidden],#appShell #hinAccountPublicHeading[hidden],#appShell #accountPage #admin[hidden]{display:none!important}
#appShell #accountPage .hin-page-heading{margin:0 0 20px}
#appShell #accountPage .hin-page-heading h2{font-size:clamp(23px,2.4vw,26px);line-height:1.25;margin:4px 0 7px;color:var(--text);letter-spacing:-.035em}
#appShell #accountPage .hin-page-heading p{font-size:13px;color:var(--muted);line-height:1.5}
#appShell #accountPage .hin-account-heading-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.5px;color:#b6a1fb}
#appShell #accountPage .hin-account-user-grid{gap:13px}
#appShell #accountPage .hin-account-panel{min-height:213px;position:relative;background:var(--panel);border:1px solid var(--border);padding:22px;border-radius:14px;box-shadow:0 5px 18px rgba(0,0,0,.025);overflow:hidden;display:flex;flex-direction:column}
#appShell #accountPage .hin-account-panel:before{content:'';height:2px;position:absolute;top:0;left:0;right:0;background:var(--account-accent,#a88afc)}
#appShell #accountPage .hin-card-profile{--account-accent:#a78bfa}#appShell #accountPage .hin-card-subscription{--account-accent:#4bd1a5}#appShell #accountPage .hin-card-security{--account-accent:#ecb95c}#appShell #accountPage .hin-card-support{--account-accent:#8dafff}
#appShell #accountPage .hin-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
#appShell #accountPage .hin-card-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.2px;color:var(--muted)}
#appShell #accountPage .hin-account-icon{flex-shrink:0;width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:rgba(167,139,250,.13);color:#bda7ff}
#appShell #accountPage .hin-account-icon svg{width:19px;height:19px;display:block}
#appShell #accountPage .hin-account-icon.hin-icon-green{color:#43d6ac;background:rgba(40,197,154,.14)}
#appShell #accountPage .hin-account-icon.hin-icon-amber{color:#edc06d;background:rgba(232,167,75,.14)}
#appShell #accountPage .hin-account-icon.hin-icon-blue{color:#9fbbff;background:rgba(119,151,241,.14)}
#appShell #accountPage .hin-account-panel h3{margin:0 0 10px;font-size:17px;line-height:1.3;letter-spacing:-.025em;color:var(--text)}
#appShell #accountPage .hin-account-panel .hin-card-intro{min-height:0;margin:0;font-size:12px}
#appShell #accountPage .hin-account-panel p{font-size:12px;line-height:1.65;color:var(--muted);min-height:0;margin:0 0 14px}
#appShell #accountPage .hin-account-panel dl{margin:auto 0 0;width:100%}
#appShell #accountPage .hin-account-panel dl div{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--border);font-size:12px}
#appShell #accountPage .hin-account-panel dl div:last-child{border-bottom:0;padding-bottom:0}
#appShell #accountPage .hin-account-panel dt{color:var(--muted);flex:none}
#appShell #accountPage .hin-account-panel dd{overflow-wrap:anywhere;word-break:break-word;max-width:69%;color:var(--text);font-weight:700;text-align:right}
#appShell #accountPage .hin-account-pill{align-self:flex-start;background:rgba(40,197,154,.10);padding:6px 11px;border-radius:30px;font-size:11px;margin:1px 0 12px;color:#4bd7b2;border-color:#37ad90;letter-spacing:.01em}
#appShell #accountPage .hin-account-pill.expired{background:rgba(235,90,113,.09)}
#appShell #accountPage .hin-account-action{margin-top:auto!important;display:inline-flex;align-items:center;justify-content:space-between;gap:11px;align-self:flex-start;min-height:38px;padding:10px 13px;border-radius:9px;font-weight:750;font-size:12px;color:var(--text);background:transparent;border:1px solid var(--border);white-space:normal}
#appShell #accountPage .hin-account-action svg{width:15px;height:15px;flex-shrink:0}
#appShell #accountPage .hin-account-action:hover{border-color:#a88afd;color:#bb9bff;background:rgba(167,139,250,.07)}
#appShell #accountPage .hin-account-panel .hin-account-feedback{min-height:0!important;margin:7px 0 0!important;font-size:11px!important;color:var(--muted);line-height:1.4}

/* Administrator sees admin controls directly, not account cards and a second navigation click. */
#appShell #accountPage .hin-admin-page-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px;flex-wrap:wrap}
#appShell #accountPage .hin-admin-page-intro h2{font-size:clamp(23px,2.4vw,27px);margin:4px 0 6px;line-height:1.25;letter-spacing:-.03em}
#appShell #accountPage .hin-admin-page-intro p{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
#appShell #accountPage .hin-admin-page-kicker{font-size:10px;color:#f59caf;font-weight:850;letter-spacing:1.4px}
#appShell #accountPage .hin-admin-verified-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid #db7588;background:rgba(222,100,126,.1);border-radius:50px;padding:8px 12px;color:#ff92a4;font-size:11px;font-weight:750;white-space:nowrap}
#appShell #accountPage .hin-admin-verified-badge svg{height:16px;width:16px}
#appShell #accountPage .hin-admin-overview{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:0;align-items:center;margin:0 0 16px;padding:0 12px;background:var(--panel);border:1px solid var(--border);border-top:2px solid #ec879b;border-radius:14px;min-height:84px}
#appShell #accountPage .hin-admin-overview-item{display:flex;align-items:center;gap:11px;min-width:0;padding:14px 13px}
#appShell #accountPage .hin-admin-overview-item:not(:first-child){border-left:1px solid var(--border)}
#appShell #accountPage .hin-admin-overview-icon{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;background:rgba(167,139,250,.13);color:#bfaaff;border-radius:10px}
#appShell #accountPage .hin-admin-membership .hin-admin-overview-icon{background:rgba(39,184,144,.11);color:#51d7ac}
#appShell #accountPage .hin-admin-overview-icon svg{width:17px;height:17px}
#appShell #accountPage .hin-admin-overview-item>div{min-width:0}
#appShell #accountPage .hin-admin-overview small{display:block;font-size:10px;color:var(--muted);margin:0 0 5px}
#appShell #accountPage .hin-admin-overview strong{font-size:12px;font-weight:750;color:var(--text);overflow-wrap:anywhere;line-height:1.4}
#appShell #accountPage .hin-admin-overview .hin-account-pill{font-size:10px;white-space:nowrap;display:inline-flex;vertical-align:middle;padding:4px 9px;margin:0 4px 0 0}
#appShell #accountPage .hin-admin-sub-detail{font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap}
#appShell #accountPage .hin-admin-password{flex-direction:column;align-items:stretch;gap:2px}
#appShell #accountPage .hin-admin-password-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;white-space:nowrap;padding:10px 11px;font-size:12px;font-weight:750;border-radius:9px;min-height:39px}
#appShell #accountPage .hin-admin-password-button svg{width:15px;height:15px}
#appShell #accountPage .hin-admin-password .hin-account-feedback{min-height:0!important;max-width:220px;font-size:10px;margin:4px 0 0!important;line-height:1.4}
#appShell #accountPage #admin{display:block;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box}
#appShell #accountPage #admin[hidden]{display:none!important}
#appShell #accountPage #admin .admin-page-head{display:none!important}
#appShell #accountPage #admin .card{box-shadow:none;border-radius:14px;margin-bottom:14px}
#appShell #accountPage #admin .admin-stat{background:rgba(132,145,184,.065)}
#appShell #accountPage #admin .admin-customer{background:rgba(132,145,184,.045)}
#appShell #accountPage #admin .admin-stats{margin:0 0 14px}
#appShell #accountPage #admin .admin-stat strong{font-size:26px}

/* Shared footer: one line, no document-wide horizontal scrollbar. Overflow is isolated
   to legal links on genuinely narrow screens; all workspaces reuse this single footer. */
html body #appShell:not([hidden])>footer.compact-footer.hin-unified-footer{width:100%!important;max-width:none!important;min-width:0!important;min-height:54px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:18px!important;margin-top:auto!important;padding:8px clamp(12px,2vw,30px)!important;box-sizing:border-box!important;position:static!important;overflow:hidden!important;white-space:nowrap!important}
#appShell>footer.hin-unified-footer .hin-footer-operational{display:flex;align-items:center;gap:13px;min-width:0;flex:0 0 auto}
#appShell>footer.hin-unified-footer .footer-brand{display:flex;align-items:center;gap:7px;flex:0 0 auto!important;min-width:0}
#appShell>footer.hin-unified-footer .footer-brand img{width:19px;height:19px}
#appShell>footer.hin-unified-footer .footer-brand span{display:flex;flex-direction:column;font-size:10px;line-height:1.15}
#appShell>footer.hin-unified-footer .footer-brand small{font-size:9px}
#appShell>footer.hin-unified-footer .footer-license,#appShell>footer.hin-unified-footer .footer-status{flex:0 0 auto!important;min-width:0;white-space:nowrap!important;font-size:10px;line-height:1.2}
#appShell>footer.hin-unified-footer .footer-status #saved{font-size:10px;white-space:nowrap;overflow-wrap:normal}
#appShell>footer.hin-unified-footer .hinatoro-legal-links{flex:0 1 auto!important;display:flex!important;flex-wrap:nowrap!important;gap:11px!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;border:0!important;margin:0!important;padding:4px 0!important;white-space:nowrap!important;line-height:1.4!important;font-size:10px!important}
#appShell>footer.hin-unified-footer .hinatoro-legal-links::-webkit-scrollbar{display:none!important}
#appShell>footer.hin-unified-footer .hinatoro-legal-links a,#appShell>footer.hin-unified-footer .hinatoro-legal-links span{white-space:nowrap;flex:0 0 auto}
/* Keep footer naturally at the bottom when the account page is short. */
#appShell.tool-account-mode:not([hidden]){min-height:100dvh;display:flex;flex-direction:column}
#appShell.tool-account-mode>header{flex:0 0 auto}
#appShell.tool-account-mode #accountPage{flex:0 0 auto}

body.light #appShell #accountPage .hin-account-panel{background:#fff;border-color:#dce2ed}
body.light #appShell #accountPage .hin-card-eyebrow{color:#61708b}
body.light #appShell #accountPage .hin-admin-overview{background:#fff;border-color:#dde3ed}
body.light #appShell #accountPage .hin-admin-page-kicker{color:#be4160}
body.light #appShell #accountPage .hin-admin-verified-badge{background:#fff0f3;color:#b33452;border-color:#e7a8b6}
body.light #appShell #accountPage .hin-admin-overview-item:not(:first-child){border-left-color:#e2e7ef}
body.light #appShell #accountPage .hin-account-pill{color:#07815f;background:#e9f9f2}
body.light #appShell #accountPage .hin-account-pill.expired{color:#b63047;background:#fff0f2}
body.light #appShell #accountPage .hin-admin-sub-detail{color:#596784}
body.light #appShell #accountPage #admin .admin-stat{background:#f9faff}
body.light #appShell #accountPage #admin .admin-customer{background:#f9faff}
@media(max-width:760px){
 #appShell #accountPage .hin-admin-overview{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #appShell #accountPage .hin-admin-password{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end;border-top:1px solid var(--border);padding:9px 13px}
 #appShell #accountPage .hin-admin-password:not(:first-child){border-left:0}
 #appShell #accountPage .hin-admin-password .hin-account-feedback{max-width:none}
}
@media(max-width:600px){
 #appShell #accountPage{width:calc(100% - 24px)!important;margin:17px auto 22px!important}
 #appShell #accountPage .hin-account-user-grid{grid-template-columns:1fr;gap:11px}
 #appShell #accountPage .hin-account-panel{min-height:0;padding:16px}
 #appShell #accountPage .hin-card-top{margin-bottom:11px}
 #appShell #accountPage .hin-account-panel h3{margin-bottom:7px}
 #appShell #accountPage .hin-account-panel .hin-card-intro{margin-bottom:7px}
 #appShell #accountPage .hin-account-panel p{margin-bottom:12px}
 #appShell #accountPage .hin-account-panel dl{margin:8px 0 0}
 #appShell #accountPage .hin-account-action{min-height:36px}
 #appShell #accountPage .hin-admin-page-intro{gap:9px;margin-bottom:14px}
 #appShell #accountPage .hin-admin-page-intro p{font-size:12px}
 #appShell #accountPage .hin-admin-overview{grid-template-columns:1fr;padding:0 11px}
 #appShell #accountPage .hin-admin-overview-item{padding:12px 4px}
 #appShell #accountPage .hin-admin-overview-item:not(:first-child){border-left:0;border-top:1px solid var(--border)}
 #appShell #accountPage .hin-admin-password{grid-column:auto;justify-content:flex-start;align-items:flex-start;flex-direction:column;gap:3px}
 #appShell #accountPage #admin .card{padding:14px}
 html body #appShell:not([hidden])>footer.compact-footer.hin-unified-footer{gap:9px!important;padding:9px 12px!important;min-height:53px!important}
 #appShell>footer.hin-unified-footer .hin-footer-operational{gap:7px;flex:0 0 auto}
 #appShell>footer.hin-unified-footer .footer-brand small{font-size:8px}
 #appShell>footer.hin-unified-footer .footer-brand img{width:17px;height:17px}
 #appShell>footer.hin-unified-footer .footer-license,#appShell>footer.hin-unified-footer .footer-status #saved{font-size:9px}
 #appShell>footer.hin-unified-footer .hinatoro-legal-links{font-size:9px!important;gap:10px!important;justify-content:flex-start!important}
}
@media(max-width:355px){#appShell>footer.hin-unified-footer .footer-status{display:none}#appShell #accountPage .hin-admin-verified-badge{font-size:10px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){#appShell #accountPage *{scroll-behavior:auto!important}}
