[hidden]{display:none!important}.credit-chip{background:#eaf6ef;color:#277c52;border:1px solid #dceee2;padding:6px 9px;border-radius:6px;font-size:9px;font-weight:700;white-space:nowrap}.signout-link{margin-left:auto;border:0;background:none;color:#89958e;font-size:15px}.auth-gate{position:fixed;inset:0;z-index:20;background:#f4f7f4;display:grid;place-items:center;padding:20px}.auth-card{width:min(420px,100%);background:#fff;border:1px solid #e5ebe6;border-radius:14px;padding:31px 34px 26px;box-shadow:0 16px 55px #1a302313}.auth-brand{padding:0;margin:0 auto 31px;justify-content:center}.auth-icon{width:42px;height:42px;border-radius:12px;background:#eaf6ef;color:#228457;display:grid;place-items:center;font-size:19px;margin-bottom:18px}.auth-card .eyebrow{color:#3b9668}.auth-card h1{font:700 22px var(--display);letter-spacing:-.5px;margin:0}.auth-copy{font-size:11px;line-height:1.55;color:#859188;margin:8px 0 19px}.auth-card .admin-form{gap:12px}.auth-card .admin-form label{font-size:10px}.auth-card .admin-form input{height:38px}.auth-submit{width:100%;height:40px;margin-top:4px}.auth-footnote{display:block;text-align:center;color:#9aa49e;font-size:9px;line-height:1.5;margin-top:16px}.form-message{min-height:15px;margin:0;color:#b05c4c;font-size:10px;line-height:1.45}.form-message.success{color:#258657}.admin-page,.account-page{padding-bottom:40px}.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:1px 0 18px}.admin-heading h2{font:700 23px var(--display);letter-spacing:-.5px;margin:0}.admin-heading p{font-size:11px;color:#89958d;margin:6px 0 0}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:14px}.admin-stats article{background:white;border:1px solid var(--line);border-radius:9px;padding:13px 15px}.admin-stats span{display:block;color:#98a29c;font-size:8px;letter-spacing:.8px;font-weight:700}.admin-stats b{display:block;font:700 19px var(--display);margin-top:7px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.admin-card{padding:18px 19px}.admin-card>.panel-title,.admin-card .panel-head .panel-title{margin-bottom:17px}.admin-form{display:grid;gap:10px}.admin-form label,.password-form label{display:grid;gap:5px;font-size:9px;color:#67756c;font-weight:600}.admin-form input,.admin-form select,.password-form input{width:100%;height:33px;border:1px solid var(--line);border-radius:6px;background:white;padding:0 9px;font-size:10px;color:#435148;outline:none}.admin-form input:focus,.password-form input:focus,.admin-form select:focus{border-color:#8fc7a7;box-shadow:0 0 0 3px #2da66c12}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.admin-form>.button{justify-self:start}.cost-setting{border-top:1px solid #edf0ed;padding-top:11px;margin-top:5px}.cost-setting>label{display:block;margin-bottom:6px}.cost-setting>div{display:flex;gap:8px}.cost-setting input{max-width:100px}.cost-setting .button{height:32px}.user-table-card,.ledger-card,.account-password{margin-bottom:14px}.user-table-card table{min-width:690px}.user-table-card td{vertical-align:middle}.user-table-card .role-select{border:1px solid var(--line);border-radius:4px;padding:4px;font-size:9px;background:white}.user-table-card .status-toggle{border:0;background:#e8f5ed;color:#267f53;border-radius:4px;padding:5px 7px;font-size:8px;font-weight:600}.user-table-card .status-toggle.inactive{background:#f8eee8;color:#a95c45}.row-action{border:0;background:transparent;color:#498e68;font-size:9px;padding:3px 0;text-decoration:underline}.user-actions{display:flex;align-items:center;gap:8px}.ledger-list{display:grid}.ledger-row{display:grid;grid-template-columns:minmax(130px,1fr) auto minmax(90px,1fr) auto;gap:13px;align-items:center;padding:9px 2px;border-top:1px solid #eff2ef;font-size:9px}.ledger-row b{font-weight:600;color:#526057}.ledger-row span,.ledger-row time{color:#939e97}.ledger-amount{font-weight:700;color:#278657}.ledger-amount.negative{color:#ba6c52}.ledger-empty{padding:15px;text-align:center;color:#a2aca5;font-size:10px}.password-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-top:16px}.password-form .button{height:33px;white-space:nowrap}.account-page .password-form{max-width:700px}.admin-nav{margin-top:7px;border-top:1px solid #eef1ef;padding-top:8px!important}.admin-nav[hidden]{display:none!important}.admin-page .panel-title h2,.account-page .panel-title h2{font-size:13px}.admin-page .panel-title p,.account-page .panel-title p{font-size:9px;line-height:1.45}.admin-page [data-user]{white-space:nowrap}@media(max-width:850px){.admin-grid{grid-template-columns:1fr}.admin-stats{gap:7px}.admin-stats article{padding:11px}.admin-stats b{font-size:16px}.password-form{grid-template-columns:1fr 1fr}.password-form .button{grid-column:1/-1;justify-self:start}.ledger-row{grid-template-columns:minmax(100px,1fr) auto auto}.ledger-row time{display:none}}@media(max-width:580px){.auth-card{padding:25px 20px}.admin-heading h2{font-size:20px}.admin-stats span{font-size:7px;line-height:1.35}.admin-stats b{font-size:14px}.admin-card{padding:15px 13px}.admin-grid{gap:10px}.form-row{gap:7px}.ledger-row{gap:8px;font-size:8px}.password-form{grid-template-columns:1fr}.password-form .button{grid-column:auto}.credit-chip{padding:5px 6px;font-size:8px}}
.ledger-toolbar{display:flex;align-items:center;gap:12px;margin:-2px 0 12px}.ledger-toolbar .history-search{flex:1;max-width:460px}.ledger-toolbar>small{font-size:9px;color:#718078;white-space:nowrap}.ledger-list{max-height:570px;overflow:auto;overscroll-behavior:contain;border-bottom:1px solid #eff2ef}.ledger-row{grid-template-columns:minmax(160px, .9fr) minmax(240px, 2fr) minmax(85px,auto) minmax(165px,auto);gap:14px;min-height:42px;padding:8px 9px;font-size:10px}.ledger-row:nth-child(even){background:#fafbf9}.ledger-row b,.ledger-row>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-row b{color:#435248}.ledger-row>span:nth-child(2),.ledger-row time{color:#68766e}.ledger-row time{text-align:right;white-space:nowrap;font-size:9px}.ledger-empty[hidden]{display:none!important}.ledger-no-results{padding:14px;text-align:center;color:#7a8780;font-size:10px}.ledger-row[hidden]{display:none!important}.history-search{height:36px;display:flex;align-items:center;gap:8px;min-width:200px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 10px;color:#829087}.history-search>span{font-size:17px;line-height:1}.history-search input{width:100%;min-width:0;height:32px;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font-size:10px;color:#435148}.history-search input::placeholder{color:#99a49d}.analytics-page .history-search{margin:0 0 12px;max-width:460px}.analytics-page .activity-table tr[hidden]{display:none!important}.analytics-page tr[data-no-matches] td{padding:16px;color:#76847b;text-align:center;font-size:10px}html[data-theme="dark"] .ledger-row:nth-child(even){background:#202a23}html[data-theme="dark"] .ledger-row b{color:#d5e0d8}html[data-theme="dark"] .ledger-row>span:nth-child(2),html[data-theme="dark"] .ledger-row time,html[data-theme="dark"] .ledger-toolbar>small{color:#b1beb5}html[data-theme="dark"] .history-search{background:#202b24;border-color:#3a473f;color:#c1d0c6}html[data-theme="dark"] .history-search input{color:#e7eee9}html[data-theme="dark"] .ledger-list{border-color:#303b34}@media(max-width:850px){.ledger-row{grid-template-columns:minmax(130px,.8fr) minmax(180px,1.8fr) minmax(75px,auto) minmax(145px,auto);gap:10px}.ledger-row time{display:block}}@media(max-width:580px){.ledger-toolbar{align-items:flex-start;flex-direction:column;gap:7px}.ledger-toolbar .history-search{max-width:none;width:100%}.ledger-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px}.ledger-row>b{grid-column:1}.ledger-row>span:nth-child(2){grid-column:1;grid-row:2}.ledger-row>.ledger-amount{grid-column:2;grid-row:1/3;align-self:center;text-align:right}.ledger-row>time{grid-column:1/-1;text-align:left;font-size:8px}.history-search{min-width:0;width:100%}}
.admin-form textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:#fff;padding:9px;font:inherit;font-size:10px;line-height:1.5;color:#435148;resize:vertical;outline:none}.admin-form textarea:focus{border-color:#8fc7a7;box-shadow:0 0 0 3px #2da66c12}.auto-reply-toggle{display:flex!important;align-items:center;gap:8px!important}.auto-reply-toggle input{width:15px!important;height:15px!important;margin:0}.admin-form label small{color:#8a968e;font-weight:400}.auto-reply-note{max-width:760px;color:#89958d;font-size:9px;line-height:1.55}.auto-reply-card{margin-bottom:14px}.auto-reply-card .admin-form{max-width:760px}
html[data-theme="dark"] .format-toolbar button{background:#202b24;color:var(--ink);border-color:#3a473f}
html[data-theme="dark"] .preview-size-control select{background:#202b24;color:var(--ink);border-color:#3a473f}

/* Cleaner admin workspace and maintenance controls */
.admin-page{display:grid;gap:15px}.admin-heading{margin:0;padding:3px 0 4px}.admin-heading .eyebrow{margin-bottom:7px}.admin-heading h2{font-size:25px;letter-spacing:-.8px}.admin-heading p{margin-top:7px}.admin-stats{gap:12px;margin:0}.admin-stats article{position:relative;overflow:hidden;min-height:88px;padding:15px 17px;border-radius:11px;box-shadow:0 3px 14px #1a302307;transition:transform .18s,box-shadow .18s}.admin-stats article:hover{transform:translateY(-2px);box-shadow:0 8px 22px #1a30230d}.admin-stats article:after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,#36a875,#b5e4c7)}.admin-stats span{font-size:9px}.admin-stats b{font-size:22px;margin-top:9px}.admin-grid{gap:15px;margin:0}.admin-card{border-radius:11px;box-shadow:0 3px 14px #1a302306}.admin-grid .admin-card>.panel-title{padding-bottom:12px;border-bottom:1px solid #eff2ef}.admin-form{gap:12px}.admin-form label{font-size:10px}.admin-form input,.admin-form select,.password-form input{height:37px;border-radius:7px;padding:0 10px}.admin-form>.button,.maintenance-actions .button{height:37px}.user-table-card,.ledger-card{margin-bottom:0}.user-table-card .panel-head,.ledger-card .panel-head{padding-bottom:13px;border-bottom:1px solid #eff2ef}.admin-page .panel{box-shadow:0 3px 14px #1a302306}.maintenance-card{border-color:#dcebe1;background:linear-gradient(135deg,#fff 0%,#f7fcf8 100%)}.maintenance-heading{display:flex;align-items:center;gap:12px}.maintenance-heading>div{min-width:0;flex:1}.maintenance-heading h2{margin:0;font:700 14px var(--display)}.maintenance-heading p{margin:5px 0 0;color:#859188;font-size:10px;line-height:1.5}.maintenance-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:#eaf6ef;color:#268858;font-size:18px}.maintenance-state{white-space:nowrap;padding:6px 9px;border-radius:20px;background:#f1f3f1;color:#738078;font-size:9px;font-weight:700}.maintenance-state.active{background:#fff0e9;color:#bb5b43}.maintenance-form{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(250px,1.2fr);align-items:end;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #eaf0eb}.maintenance-toggle{display:flex!important;align-items:center;gap:10px;min-height:42px;cursor:pointer}.maintenance-toggle input{position:absolute;opacity:0;width:1px!important;height:1px!important}.toggle-track{position:relative;display:block;width:36px;height:21px;flex:none;border-radius:20px;background:#d8dfda;transition:background .18s}.toggle-track i{position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .18s}.maintenance-toggle input:checked+.toggle-track{background:#df8c5c}.maintenance-toggle input:checked+.toggle-track i{transform:translateX(15px)}.maintenance-toggle input:focus-visible+.toggle-track{outline:3px solid #2da66c33}.maintenance-toggle span:last-child b,.maintenance-toggle span:last-child small{display:block}.maintenance-toggle span:last-child b{font-size:10px;color:#526158}.maintenance-toggle span:last-child small{margin-top:4px;color:#929d95;font-size:9px;font-weight:400;line-height:1.4}.maintenance-message-label{display:grid;gap:6px;color:#67756c;font-size:10px;font-weight:600}.maintenance-message-label input{width:100%;height:37px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:#fff;color:#435148;font-size:10px}.maintenance-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.maintenance-actions .form-message{min-height:0}.maintenance-banner{display:flex;align-items:center;gap:12px;padding:13px 15px;margin-bottom:17px;border:1px solid #f0d0bf;border-radius:10px;background:linear-gradient(120deg,#fff8f4,#fff);color:#744631}.maintenance-banner[hidden]{display:none!important}.maintenance-banner .maintenance-icon{background:#fff0e7;color:#bb6849}.maintenance-banner b{font-size:11px}.maintenance-banner p{margin:4px 0 0;color:#95684f;font-size:10px;line-height:1.5}.admin-page .user-table-card,.admin-page .ledger-card{min-width:0}.admin-page .panel-title h2{font-size:14px}.admin-page .panel-title p{font-size:10px}html[data-theme="dark"] .maintenance-card{background:linear-gradient(135deg,#202b24,#1b2a21);border-color:#35483b}html[data-theme="dark"] .maintenance-form{border-color:#35483b}html[data-theme="dark"] .maintenance-message-label input{background:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme="dark"] .maintenance-banner{background:#382923;border-color:#674634;color:#f4d6c6}html[data-theme="dark"] .maintenance-banner p{color:#e3bda7}html[data-theme="dark"] .admin-grid .admin-card>.panel-title,html[data-theme="dark"] .user-table-card .panel-head,html[data-theme="dark"] .ledger-card .panel-head{border-color:#354139}
@media(max-width:700px){.admin-stats{grid-template-columns:1fr 1fr}.admin-stats article:last-child{grid-column:1/-1}.maintenance-form{grid-template-columns:1fr}.maintenance-actions{grid-column:auto}.maintenance-heading{align-items:flex-start;flex-wrap:wrap}.maintenance-state{margin-left:50px}.maintenance-actions{align-items:flex-start;flex-direction:column}.maintenance-actions .button{align-self:stretch}}

/* Admin account directory refinements */
.admin-page .admin-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.admin-page .online-users-stat b{color:#208e59}.admin-page .online-users-stat b:before{content:"";display:inline-block;width:8px;height:8px;margin:0 7px 2px 0;border-radius:50%;background:#2fb878;box-shadow:0 0 0 3px #2fb87820}
.admin-user-toolbar{display:flex;align-items:center;gap:10px;margin:-2px 0 12px}
.admin-user-toolbar .history-search{flex:1;max-width:480px}
.admin-user-filter{display:flex;align-items:center;gap:7px;color:#76837b;font-size:9px;font-weight:600;white-space:nowrap}
.admin-user-filter select{height:36px;min-width:118px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 9px;color:#435148;font-size:10px}
.admin-user-toolbar>small{margin-left:auto;color:#7f8c83;font-size:9px;white-space:nowrap}
.admin-user-no-results{padding:16px;border-top:1px solid var(--line);color:#89958d;text-align:center;font-size:10px}
.admin-user-no-results[hidden]{display:none!important}
.user-table-card tbody tr[data-user]:hover{background:#f3faf5}
.user-table-card .role-select{min-width:76px;padding:6px 7px;border-radius:6px}
.user-table-card .status-toggle{padding:6px 9px;border-radius:6px}
.user-table-card .status-toggle:disabled{opacity:.65}
.user-table-card .row-action:disabled{opacity:.45;cursor:not-allowed}
html[data-theme="dark"] .admin-user-filter select{background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .user-table-card tbody tr[data-user]:hover{background:#26362b}
@media(max-width:850px){.admin-page .admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-user-toolbar{flex-wrap:wrap}.admin-user-toolbar .history-search{max-width:none;min-width:220px}.admin-user-toolbar>small{margin-left:0}}
@media(max-width:580px){.admin-page .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page .admin-stats article:last-child{grid-column:auto}.admin-user-toolbar{align-items:stretch;flex-direction:column}.admin-user-toolbar .history-search{min-width:0;width:100%}.admin-user-filter{justify-content:space-between}.admin-user-filter select{flex:1}.admin-user-toolbar>small{white-space:normal}}

/* Readability controls shared by the user and admin panels */
.accessibility-select{display:flex;align-items:center;gap:5px;height:31px;padding:0 7px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:#637168}
.accessibility-select>span{font-size:12px;font-weight:700}
.accessibility-select select{max-width:128px;border:0;outline:0;background:transparent;color:var(--ink);font-size:9px;font-weight:600;cursor:pointer}
.language-select select{max-width:115px}
.text-size-select select{max-width:106px}
.contrast-toggle{width:31px;height:31px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:#58675d;font-size:17px}
.contrast-toggle[aria-pressed="true"]{background:#25392d;color:#fff;border-color:#25392d}
body[data-text-size="large"]{zoom:1.08}
body[data-text-size="larger"]{zoom:1.15}
html[data-contrast="high"]{--muted:#56635b;--line:#b7c0ba;--wash:#f3f5f3}
html[data-contrast="high"] body{color:#101813}
html[data-contrast="high"] .sidebar,html[data-contrast="high"] .topbar,html[data-contrast="high"] .panel,html[data-contrast="high"] .admin-stats article{border-color:#9da9a1}
.admin-user-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 0 1px}.admin-user-pagination>span{font-size:10px;color:#68766d;min-width:150px;text-align:center}.admin-user-pagination .button{height:30px;font-size:9px}.admin-user-pagination .button:disabled{opacity:.45;cursor:default}.row-action-delete{color:#b64f43}.row-action-delete:disabled{opacity:.35;text-decoration:none;cursor:not-allowed}.account-profile-card{margin-bottom:14px}.account-profile-card .admin-form{max-width:620px}.account-profile-card .admin-form>.button{margin-top:3px}
.user-actions{gap:7px}.user-row-action{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:5px 9px;border:1px solid #dce8df;border-radius:7px;background:#fff;color:#277c52;font-size:9px;font-weight:650;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s,transform .15s}.user-row-action:hover:not(:disabled){background:#eaf6ef;border-color:#abd3b8;color:#145d3a;transform:translateY(-1px)}.user-row-action:focus-visible{outline:3px solid #2da66c40;outline-offset:2px}.user-row-action:disabled{opacity:.45;cursor:not-allowed}.user-row-action.delete-user-action{border-color:#f0d5d0;background:#fff8f6;color:#a84438}.user-row-action.delete-user-action:hover:not(:disabled){background:#feece8;border-color:#e9a89f;color:#812d23}.admin-role-badge{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #e5e9e6;border-radius:7px;background:#f5f7f5;color:#59675e;font-size:9px;font-weight:650}.analytics-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:15px 0 2px}.analytics-pagination[hidden]{display:none!important}.analytics-page-number{min-width:30px;height:30px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:10px;font-weight:600}.analytics-page-number:hover{border-color:#91cba8;color:#187346}.analytics-page-number.active{border-color:#1c9b65;background:#1c9b65;color:#fff}.analytics-page-arrow{height:30px;margin:0 3px;font-size:9px}.analytics-page-arrow:disabled{opacity:.4;cursor:default}.preview-size-control{display:flex;align-items:center;gap:5px;margin-left:0;color:#68766d;font-size:9px;font-weight:600;white-space:nowrap}.preview-size-control input{width:56px;height:27px;padding:0 5px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font-size:10px;text-align:center}.preview-size-control input:focus{outline:2px solid #2da66c40;outline-offset:1px}html[data-theme="dark"] .user-row-action{background:#202b24;border-color:#3a473f;color:#9bd6b0}html[data-theme="dark"] .user-row-action.delete-user-action{background:#382522;border-color:#68413a;color:#f0a89a}html[data-theme="dark"] .admin-role-badge{background:#202b24;border-color:#3a473f;color:#d4ddd6}html[data-theme="dark"] .analytics-page-number{background:var(--paper)}html[data-theme="dark"] .analytics-page-number.active{background:#1c9b65;color:white}html[data-theme="dark"] .preview-size-control{color:#afbbb2}html[data-theme="dark"] .preview-size-control input{background:#202b24;color:var(--ink);border-color:#3a473f}
html[data-contrast="high"] .nav-item,html[data-contrast="high"] .breadcrumbs,html[data-contrast="high"] .field-hint,html[data-contrast="high"] .panel-title p,html[data-contrast="high"] .admin-heading p,html[data-contrast="high"] .admin-user-toolbar>small{color:#46564c}
html[data-contrast="high"] input,html[data-contrast="high"] textarea,html[data-contrast="high"] select{border-color:#929e96}
html[data-contrast="high"] button:focus-visible,html[data-contrast="high"] a:focus-visible,html[data-contrast="high"] input:focus-visible,html[data-contrast="high"] textarea:focus-visible,html[data-contrast="high"] select:focus-visible{outline:3px solid #126b42;outline-offset:2px}
html[data-theme="dark"][data-contrast="high"]{--ink:#fff;--muted:#d0d9d2;--line:#738178;--wash:#111813;--paper:#17211b}
html[data-theme="dark"][data-contrast="high"] body,html[data-theme="dark"][data-contrast="high"] .nav-item,html[data-theme="dark"][data-contrast="high"] .breadcrumbs,html[data-theme="dark"][data-contrast="high"] .field-hint,html[data-theme="dark"][data-contrast="high"] .panel-title p,html[data-theme="dark"][data-contrast="high"] .admin-heading p{color:#f3f7f4}
html[data-theme="dark"][data-contrast="high"] .sidebar,html[data-theme="dark"][data-contrast="high"] .topbar,html[data-theme="dark"][data-contrast="high"] .panel{border-color:#738178}
html[data-theme="dark"][data-contrast="high"] button:focus-visible,html[data-theme="dark"][data-contrast="high"] a:focus-visible,html[data-theme="dark"][data-contrast="high"] input:focus-visible,html[data-theme="dark"][data-contrast="high"] textarea:focus-visible,html[data-theme="dark"][data-contrast="high"] select:focus-visible{outline:3px solid #9fe3b9;outline-offset:2px}
@media(max-width:950px){.top-actions{gap:8px}.accessibility-select{padding:0 5px}.accessibility-select select{max-width:105px}.language-select select{max-width:90px}.text-size-select select{max-width:88px}.saved{display:none}}
@media(max-width:650px){.topbar{padding:0 9px}.top-actions{gap:5px}.accessibility-select{height:29px}.accessibility-select>span{display:none}.language-select select{max-width:77px}.text-size-select select{max-width:75px}.contrast-toggle{width:29px;height:29px}.theme-toggle{padding:0 7px!important}.theme-toggle-label{display:none}}
.theme-select select{max-width:112px}
html[data-theme="dark"] .theme-select select{background:transparent;color:var(--ink)}
html[data-theme="dark"][data-skin="futuristic"] .theme-select,html[data-theme="dark"][data-skin="ocean"] .theme-select,html[data-theme="dark"][data-skin="violet"] .theme-select{background:var(--paper);border-color:var(--line)}
@media(max-width:950px){.theme-select select{max-width:94px}}
@media(max-width:650px){.theme-select select{max-width:85px}}

/* Keep admin text and controls readable across every dark palette. */
html[data-theme="dark"] .admin-stats article{background:var(--paper)!important;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .admin-stats article span{color:var(--muted)!important}
html[data-theme="dark"] .admin-stats article b{color:var(--ink)!important}
html[data-theme="dark"] .admin-stats article:after{background:linear-gradient(90deg,var(--green),color-mix(in srgb,var(--green) 35%,transparent))}
html[data-theme="dark"] .user-table-card .role-select,html[data-theme="dark"] .admin-user-filter select,html[data-theme="dark"] .admin-form input,html[data-theme="dark"] .admin-form select,html[data-theme="dark"] .password-form input,html[data-theme="dark"] .maintenance-message-label input{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important;color-scheme:dark}
html[data-theme="dark"] .admin-form label,html[data-theme="dark"] .password-form label,html[data-theme="dark"] .maintenance-message-label,html[data-theme="dark"] .maintenance-toggle span:last-child b{color:var(--ink)}
html[data-theme="dark"] .maintenance-toggle span:last-child small{color:var(--muted)}
html[data-theme="dark"] .admin-grid .admin-card>.panel-title,html[data-theme="dark"] .user-table-card .panel-head,html[data-theme="dark"] .ledger-card .panel-head{border-color:var(--line)}
html[data-theme="dark"] .admin-page .user-table-card tbody tr[data-user]:hover{background:var(--mint)}
html[data-theme="dark"] .user-table-card .status-toggle{background:color-mix(in srgb,var(--green) 18%,var(--paper));color:var(--green)}
html[data-theme="dark"] .user-table-card .status-toggle.inactive{background:#49312c;color:#ffc2a9}
html[data-theme="dark"] .user-row-action{background:var(--paper)}
html[data-theme="dark"] .admin-page .history-search{background:var(--paper);border-color:var(--line)}
html[data-theme="dark"] .maintenance-card{background:linear-gradient(135deg,var(--paper),var(--wash));border-color:var(--line)}
html[data-theme="dark"] .maintenance-state{background:var(--mint);color:var(--ink)}
html[data-theme="dark"] .maintenance-state.active{background:#49312c;color:#ffc2a9}

/* Sign-in follows the same dark green brand palette as registration,
   independent of the workspace theme selected behind it. */
.auth-gate{background:radial-gradient(ellipse at 50% 18%,#123522 0,#091910 43%,#06100b 100%)}
.auth-card{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:linear-gradient(145deg,#0d1d15,#0a1710);border:1px solid #244331;border-radius:16px;padding:32px 38px 28px;box-shadow:0 22px 70px #0008;color:#eef7ef}
.auth-logo{display:block;width:108px;height:108px;object-fit:cover;border-radius:13px;margin:0 auto 22px}
.auth-icon{background:#11271a;color:#39c979}
.auth-card .eyebrow{color:#43d884}
.auth-card h1{color:#f1f7f2;font-size:27px;line-height:1.2;margin-top:8px}
.auth-copy{font-size:13px;color:#a9b9ad;margin:9px 0 22px}
.auth-card .admin-form{gap:14px}
.auth-card .admin-form label{font-size:12px;color:#c8d7cc;gap:7px}
.auth-card .admin-form input{height:45px;background:#08130c;border:1px solid #294332;border-radius:8px;padding:0 12px;color:#f0f6f1;font:13px var(--font)}
.auth-card .admin-form input::placeholder{color:#78887d}
.auth-card .admin-form input:focus{border-color:#39bb70;box-shadow:0 0 0 3px #39db7e18}
.auth-submit{height:46px;border:0;border-radius:8px;background:linear-gradient(100deg,#27c96f,#46df88);color:#062011;font-size:13px;box-shadow:0 7px 20px #20a85a24}
.auth-card .form-message{color:#ff9e85;font-size:12px}
.auth-card .form-message.success{color:#54df8d}
.auth-footnote{color:#9bad9f;font-size:11px;margin-top:18px}
.auth-public-link{display:block;text-align:center;color:#43d884;font-size:12px;font-weight:700;text-decoration:none;margin-top:14px}
.auth-public-link:hover{text-decoration:underline}
.auth-card .google-divider{color:#9bad9f}
.auth-card .google-divider:before,.auth-card .google-divider:after{background:#294332}
.user-table-card table{min-width:1050px}
.user-table-card tbody td:nth-child(3),.user-table-card tbody td:nth-child(4){max-width:190px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:580px){.auth-gate{padding:12px}.auth-card{padding:25px 20px;max-height:calc(100vh - 24px)}.auth-logo{width:86px;height:86px;margin-bottom:18px}.auth-card h1{font-size:24px}}

.telegram-security-card{margin-bottom:14px}
.telegram-security-status{display:flex;align-items:center;gap:9px;margin:4px 0 13px;color:var(--ink)}
.telegram-security-status p{margin:0;font-size:12px;line-height:1.5}
.telegram-status-dot{width:10px;height:10px;border-radius:50%;background:#b5a17d;box-shadow:0 0 0 4px color-mix(in srgb,#b5a17d 14%,transparent)}
.telegram-status-dot.linked{background:#31b976;box-shadow:0 0 0 4px #31b97622}
.telegram-security-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.telegram-security-help{display:block;color:var(--muted);font-size:11px;line-height:1.55;margin-top:12px}
.telegram-otp-form{margin-top:4px}
.telegram-otp-form>p{margin:0;color:#a9b9ad;font-size:12px;line-height:1.5}
.telegram-otp-form .telegram-resend,.telegram-otp-form .telegram-back{justify-self:center;border:0;background:none;color:#43d884;font:600 12px var(--font);padding:5px;cursor:pointer}
.telegram-otp-form button:disabled{opacity:.55;cursor:wait}
html[data-theme="light"] .telegram-otp-form>p{color:#64736a}
@media(max-width:580px){.telegram-security-status p{font-size:11px}.telegram-security-actions{align-items:stretch}.telegram-security-actions .button{justify-content:center}}

/* Stronger outlines and clearer control labels across panel themes */
:root{--line:#cbd6ce}
html[data-theme="dark"]{--line:#495b4e}
html[data-theme="dark"][data-skin="futuristic"]{--line:#1d6073}
html[data-theme="dark"][data-skin="ocean"]{--line:#365e78}
html[data-theme="dark"][data-skin="violet"]{--line:#5e4b76}
.panel, .sidebar, .topbar, .workspace, .help-card, .quality-card, .review-modal, .admin-stats article, .template-choice, .template-library-item, .image-attachment-preview, .qr-area, .profile-checklist{border-color:var(--line)!important}
input:not([type="file"]),textarea,select,.button-outline,.button-quiet,.format-toolbar button,.button-row input,.template-form input,.template-form textarea{border-color:var(--line)}
.field-label label,.admin-form>label,.template-form>label{color:var(--ink)}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid color-mix(in srgb,var(--green) 62%,transparent);outline-offset:2px}
html[data-theme="dark"] .field-label label,html[data-theme="dark"] .admin-form>label,html[data-theme="dark"] .template-form>label{color:var(--ink)}

/* Admin navigation and persistent workspace rail */
.sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar-bottom{position:sticky;bottom:0;z-index:2;background:var(--paper);padding-top:8px}.admin-nav{width:100%;text-align:left;border:0;background:transparent;cursor:pointer}.admin-nav .chevron{font-size:14px;transition:transform .18s}.admin-nav[aria-expanded="true"] .chevron{transform:rotate(180deg)}.admin-subnav{display:grid;gap:3px;margin:2px 0 7px 28px;padding-left:10px;border-left:2px solid var(--line)}.admin-subnav[hidden]{display:none}.admin-subnav button{min-height:31px;border:0;border-radius:6px;padding:5px 9px;text-align:left;background:transparent;color:var(--muted);font-size:10px;font-weight:600}.admin-subnav button:hover,.admin-subnav button:focus-visible{background:var(--mint);color:var(--green-dark);outline:0}.admin-card,.admin-stats article,.panel,.workspace,.help-card,.accessibility-select,.field input,.message-panel textarea,.public-home-settings textarea,.public-home-settings select,.admin-form input,.admin-form select,.admin-form textarea,.history-search,.user-row-action,.admin-user-filter select{border-width:1.5px!important}.admin-card,.panel{border-color:var(--line)}.home-media-current{display:flex;align-items:center;justify-content:space-between;gap:10px}.public-home-settings .promo-toggle{display:flex;align-items:center;gap:9px}.public-home-settings .promo-toggle input{width:16px;height:16px}.public-home-settings label small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.mainPageHeading[hidden],#mainPageHeading[hidden]{display:none!important}
.topbar{position:sticky;top:0;z-index:3;background:var(--paper)}
body[data-current-view="overview"] #mainPageHeading,body[data-current-view="analytics"] #mainPageHeading,body[data-current-view="admin"] #mainPageHeading,body[data-current-view="account"] #mainPageHeading,body[data-current-view="templates"] #mainPageHeading{display:none!important}
.topbar{min-height:58px;box-shadow:0 1px 0 var(--line);backdrop-filter:blur(12px)}
.topbar .breadcrumbs{flex:1;min-width:0}.topbar .breadcrumbs b{color:var(--ink);font-weight:700}
button[aria-busy="true"]{opacity:.72;cursor:progress}
.top-refresh{min-height:34px;padding:0 10px;white-space:nowrap}
.top-signout{min-height:34px;padding:0 11px;white-space:nowrap;border-color:var(--line);color:var(--ink)}
.top-signout:hover,.top-signout:focus-visible{border-color:var(--orange);color:#a34e3b;outline:0}
.top-signout[hidden]{display:none!important}

/* Small-screen navigation, forms, and data tables */
@media(max-width:850px) and (min-width:581px){.admin-subnav{position:fixed;left:66px;top:auto;width:205px;max-height:70vh;overflow:auto;margin:0;padding:8px;border:1.5px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 12px 32px #10201826;z-index:8}.topbar{gap:10px}.top-actions{gap:9px}.admin-page .table-scroll,.analytics-page .activity-table-wrap{max-width:100%;overflow-x:auto}.dashboard-stats,.dashboard-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.sidebar{display:flex;position:fixed;inset:auto 0 0;width:100%;height:auto;max-height:72px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));flex-direction:row;align-items:center;border-right:0;border-top:1.5px solid var(--line);box-shadow:0 -5px 22px #0a1b1020;overflow:visible;z-index:10}.sidebar>.brand,.sidebar>.workspace,.sidebar>.nav-label,.sidebar>.sidebar-bottom{display:none}.sidebar nav{display:flex;align-items:stretch;gap:3px;width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav>.nav-item{display:flex!important;flex:1 0 auto;min-width:54px;height:52px;max-width:90px;flex-direction:column;justify-content:center;gap:2px;padding:4px 5px!important;font-size:9px!important;white-space:nowrap}.sidebar nav>.nav-item>span:first-child{width:auto;font-size:16px}.sidebar nav>.nav-item .nav-count{display:none}.sidebar nav>.admin-nav .chevron{display:none}.admin-subnav{position:fixed;left:auto;right:8px;bottom:calc(70px + env(safe-area-inset-bottom));width:min(240px,calc(100vw - 20px));max-height:65vh;overflow:auto;margin:0;padding:8px;border:1.5px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 12px 32px #10201826;z-index:11}.main{margin:0;padding-bottom:76px}.topbar{position:sticky;top:0;padding:0 8px;gap:6px}.breadcrumbs{display:none}.top-actions{width:100%;min-width:0;gap:6px;overflow-x:auto;scrollbar-width:none;justify-content:flex-end}.top-actions::-webkit-scrollbar{display:none}.accessibility-select{flex:none;height:29px;padding:0 5px}.accessibility-select select{max-width:78px;font-size:8px}.language-select select{max-width:75px}.text-size-select select{max-width:70px}.theme-select select{max-width:65px}.credit-chip{flex:none}.top-actions .saved{display:none}.page-wrap{padding:18px 12px 26px}.admin-page .admin-heading{align-items:flex-start;gap:8px}.admin-page .admin-heading .button{flex:none}.admin-page .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid{grid-template-columns:minmax(0,1fr)}.admin-user-toolbar{width:100%}.admin-user-toolbar .history-search{min-width:0}.admin-page .table-scroll,.analytics-page .activity-table-wrap,.templates-page .templates-layout{max-width:100%;overflow-x:auto}.user-table-card table{min-width:820px}.analytics-page .activity-table{min-width:620px}.ledger-list{max-height:460px}.ledger-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.public-home-settings .form-row{grid-template-columns:1fr}.public-home-settings .home-media-current{align-items:flex-start;flex-direction:column}.dashboard-stats,.dashboard-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stat{min-width:0;padding:12px}.dashboard-stat>b{font-size:20px}.page-heading h1{font-size:22px}.admin-subnav button{min-height:38px;font-size:12px}}
@media(max-width:360px){.sidebar nav>.nav-item{min-width:49px;font-size:8px!important}.top-actions{justify-content:flex-start}.top-actions .credit-chip,.top-actions .saved,.top-actions #topAvatar{display:none}.dashboard-stat>span{font-size:7px}.dashboard-stat>b{font-size:18px}.admin-page .admin-stats article{padding:10px}}
.mobile-signout{display:none}
@media(max-width:850px){.sidebar-bottom{display:none}.mobile-signout{display:flex}}
@media(max-width:580px){.sidebar nav>.mobile-signout{display:flex!important}}

.top-location{display:inline-flex;align-items:center;max-width:min(30vw,340px);padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.top-location[hidden]{display:none}
@media(max-width:920px){.top-location{max-width:220px}}
@media(max-width:680px){.top-location{max-width:150px;padding:6px 8px;font-size:10px}}
.profile-signout{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:31px;margin-left:auto;padding:0 9px;border:1.5px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:600 10px var(--font);white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.profile-signout:hover,.profile-signout:focus-visible{border-color:var(--green);background:var(--mint);color:var(--green-dark);outline:0}
.profile-signout[hidden]{display:none!important}
@media(max-width:850px){.profile-signout{display:none}}
