/* Hinatoro v0.7.31 — Dedicated Admin Center, responsive dark/light */
#appShell.tool-admin-mode>nav,#appShell.tool-admin-mode>main,#appShell.tool-admin-mode>#notice,
#appShell.tool-admin-mode>.sf-page-heading,#appShell.tool-admin-mode>.tool-landing,
#appShell.tool-admin-mode>.tool-pick-preview{display:none!important}
#appShell.tool-admin-mode:not([hidden])>footer.compact-footer{display:grid!important}
#appShell.tool-access-denied-mode>nav,#appShell.tool-access-denied-mode>main,
#appShell.tool-access-denied-mode>.sf-page-heading,#appShell.tool-access-denied-mode>#notice,
#appShell.tool-access-denied-mode>.tool-landing,#appShell.tool-access-denied-mode>.tool-pick-preview{display:none!important}
#appShell.tool-access-denied-mode:not([hidden])>footer.compact-footer{display:grid!important}
#appShell>#admin[hidden],#appShell>#accessDenied[hidden],#accountAdminLink[hidden]{display:none!important}
#appShell>#admin{width:min(1006px,calc(100% - 32px));max-width:1006px;margin:20px auto 68px;box-sizing:border-box}
#admin .card{border:1px solid var(--border,#29364e);background:var(--panel,#111827);border-radius:15px;padding:20px;margin:0 0 14px;box-shadow:none}
#admin .admin-page-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:0 0 18px}
#admin .admin-page-head h2{font-size:23px;line-height:1.3;margin:5px 0 4px;font-weight:850;letter-spacing:-.025em}
#admin .admin-page-head p{font-size:12px;line-height:1.6;color:var(--muted,#a6adc1);margin:0}
#admin .admin-kicker{font-size:10px;font-weight:850;letter-spacing:1.2px;color:#b09bfa}
#admin .admin-owner-badge{display:flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #96576b;border-radius:40px;color:#ff94a8;background:rgba(231,78,107,.08);font-size:10px;font-weight:700;white-space:nowrap}
#admin .admin-owner-badge:before{content:'●';font-size:8px}
#admin .admin-intro .desktop-card-heading{display:none}
#admin .admin-intro{border-top:2px solid #a78bfa}
#admin .admin-stats{margin:0 0 15px;gap:11px;grid-template-columns:repeat(4,minmax(0,1fr))}
#admin .admin-stat{position:relative;min-height:95px;display:flex;flex-direction:column;justify-content:flex-end;padding:14px 14px 13px;border:1px solid #354359;border-radius:13px;background:#111c2d;overflow:hidden}
#admin .admin-stat:before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--stat-color,#a78bfa)}
#admin .admin-stat:nth-child(1){--stat-color:#f3c970}#admin .admin-stat:nth-child(2){--stat-color:#34cfa7}#admin .admin-stat:nth-child(3){--stat-color:#8d9fff}#admin .admin-stat:nth-child(4){--stat-color:#ff8195}
#admin .admin-stat strong{font-size:27px;line-height:1.25;color:var(--stat-color);margin-top:4px}
#admin .admin-stat span{font-size:11px;font-weight:650;opacity:.9}
#admin .admin-stat-pending{animation:none!important;box-shadow:none!important;border:1px solid #8e7044;background:#28241e}
#admin .admin-stat-pending strong{color:#f3c970}
#admin .admin-intro .buttons{margin:12px 0 3px}
#admin #adminSync{margin:10px 0 0}
#admin .admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}
#admin .admin-section-heading h3{font-size:17px;line-height:1.35;margin:4px 0 4px;letter-spacing:-.02em}
#admin .admin-section-heading p{font-size:12px;line-height:1.65;margin:0;color:var(--muted,#9ba8c1)}
#admin .admin-access-card{border-top:2px solid #ee8b9c}
#admin .admin-access-filters{display:flex;flex-direction:column;gap:7px;margin:13px 0 10px}
#admin .admin-access-filters label{font-weight:650;font-size:11px}
#admin .admin-access-filters input{width:100%;border-radius:10px;padding:12px;border:1px solid #3a4861;background:#0c1421;color:#eaf0ff;box-sizing:border-box;font-size:13px}
#admin #adminAccessMessage{font-size:11px;line-height:1.7;min-height:17px}
#admin .admin-access-users{display:grid;gap:10px;margin:12px 0 16px}
#admin .admin-access-user{padding:14px 15px;border-radius:12px;border:1px solid #344159;background:rgba(113,129,173,.045)}
#admin .admin-access-user-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
#admin .admin-access-user-heading strong{font-size:13px;display:block;overflow-wrap:anywhere}
#admin .admin-access-user-heading small{font-size:11px;display:block;margin-top:5px;color:var(--muted,#a7b2ca)}
#admin .admin-access-protected{font-size:10px;font-weight:750;color:#b4a3ff;border:1px solid #71609b;border-radius:20px;padding:5px 9px}
#admin .admin-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#admin .admin-page-toggle{display:flex;gap:11px;align-items:center;padding:10px 12px;border:1px solid #364159;border-radius:10px;cursor:pointer;min-width:0}
#admin .admin-page-toggle:hover{border-color:#9484c3}
#admin .admin-page-toggle input{position:absolute;opacity:0;width:1px;height:1px}
#admin .admin-page-switch{width:35px;height:20px;box-sizing:border-box;border-radius:20px;background:#3f4960;position:relative;flex:none;transition:background .18s}
#admin .admin-page-knob{position:absolute;width:14px;height:14px;border-radius:50%;left:3px;top:3px;background:#ecf1ff;transition:transform .18s}
#admin .admin-page-toggle input:checked+.admin-page-switch{background:#38b898}
#admin .admin-page-toggle input:checked+.admin-page-switch .admin-page-knob{transform:translateX(15px)}
#admin .admin-page-toggle input:focus-visible+.admin-page-switch{outline:2px solid #a78bfa;outline-offset:3px}
#admin .admin-page-toggle input:disabled+.admin-page-switch{opacity:.55}
#admin .admin-page-toggle-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
#admin .admin-page-toggle-copy strong{font-size:12px;font-weight:720;overflow-wrap:anywhere}
#admin .admin-page-toggle-copy small{font-size:10px;color:var(--muted,#a7b2ca)}
#admin .admin-access-note{border:1px solid #3e4260;background:rgba(128,112,189,.09);border-radius:10px;padding:11px 12px;color:var(--muted,#a7b2ca);font-size:11px;line-height:1.65}
#admin .admin-customer-card{border-top:2px solid #44bda8}
#admin .admin-tabs{gap:7px}
#admin .admin-tabs button{font-size:12px}
#admin .admin-filters{margin:16px 0}
#admin .admin-customer{background:#111c2b;border:1px solid #354159}
#admin .admin-customer:hover{border-color:#657495}
#admin .admin-actions button{border-radius:8px}
#admin .admin-pending-customer{border-left:3px solid #e6b75e}
#admin .admin-dialog{background:#121c2c}
#admin .admin-dialog button:focus-visible{outline:2px solid #af8bfd;outline-offset:2px}
.account-admin-link{padding:5px 7px;border-top:1px solid #26354b;border-bottom:1px solid #26354b}
#appShell .account-admin-link button{display:flex;align-items:center;width:100%;gap:10px;padding:11px 12px;border:0;border-radius:7px;background:rgba(245,74,107,.06);color:#ff899b!important;font-weight:750;text-align:left;cursor:pointer}
#appShell .account-admin-link button:hover,#appShell .account-admin-link button:focus-visible{background:rgba(245,74,107,.16);outline:1px solid #9e536a}
#appShell .account-admin-link .account-admin-chip{font-size:9px;border:1px solid #975069;padding:3px 5px;border-radius:5px;margin-left:auto;letter-spacing:.4px}
#appShell #toolMenu [data-tool]:disabled{opacity:.45;cursor:not-allowed}
#appShell #toolMenu [data-tool]:disabled:after{content:'🔒';font-size:11px;float:right;margin-left:12px}
.tool-choice.tool-choice-locked{opacity:.68}
.tool-choice.tool-choice-locked button{cursor:not-allowed;opacity:.6}
.access-denied{width:min(620px,calc(100% - 36px));margin:70px auto;padding:30px 26px;box-sizing:border-box;text-align:center;border:1px solid #66587f;border-radius:15px;background:var(--panel,#111827)}
.access-denied h2{font-size:22px;margin:10px 0}
.access-denied p{font-size:13px;color:var(--muted,#a4b0c6);line-height:1.7}
.access-denied button{margin-top:15px}
.access-denied-icon{font-size:30px}
body.light #admin .card{background:#fff;border-color:#dee3ee}
body.light #admin .admin-access-card{border-top-color:#dc738c}
body.light #admin .admin-intro{border-top-color:#a78bfa}
body.light #admin .admin-customer-card{border-top-color:#44bda8}
body.light #admin .admin-stat,body.light #admin .admin-access-user,body.light #admin .admin-customer{background:#f8f9fd;border-color:#dce1eb}
body.light #admin .admin-stat-pending{background:#fff5df;border-color:#d0a95d}
body.light #admin .admin-access-filters input{background:#fff;color:#1f2c44;border-color:#cdd6e8}
body.light #admin .admin-page-toggle{border-color:#d8ddeb;background:#fafbff}
body.light #admin .admin-access-note{background:#f5f2fe;border-color:#e3def4;color:#53637d}
body.light .access-denied{background:#fff;border-color:#ded7ef}
@media(max-width:700px){#admin .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#admin .admin-access-grid{grid-template-columns:1fr}}
@media(max-width:480px){#appShell>#admin{width:calc(100% - 22px);margin-top:15px}#admin .card{padding:14px}#admin .admin-page-head{align-items:flex-start}#admin .admin-owner-badge{font-size:9px}#admin .admin-stat{min-height:78px;padding:11px}#admin .admin-stat strong{font-size:23px}#admin .admin-section-heading{align-items:stretch}#admin .admin-section-heading>button{width:100%}#admin .admin-filters{grid-template-columns:1fr!important}#admin .admin-filters input{grid-column:auto!important}#admin .admin-customer-header{flex-direction:column}#admin .admin-page-toggle{padding:10px}}
@media(prefers-reduced-motion:reduce){#admin .admin-page-knob,#admin .admin-page-switch{transition:none}}

#admin .admin-feedback{margin:12px 0 0;padding:11px;border:1px solid #328c73;border-radius:9px;background:rgba(37,195,143,.1);font-size:12px}#admin .admin-feedback.error{border-color:#a9566d;background:rgba(229,71,104,.1)}#admin .admin-safety-warning{border-radius:9px;border:1px solid #a18a61;background:rgba(205,151,60,.08);padding:10px 12px;color:var(--muted);font-size:11px}
