:root{--bg:#0a0d12;--surface:#121720;--surface-2:#19212d;--border:#293445;--text:#f7f9fc;--muted:#9faabd;--accent:#31c2f1;--danger:#ff6b79;--success:#66d19e;--radius:18px}
*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:radial-gradient(circle at top left,rgba(49,194,241,.12),transparent 32rem),var(--bg);color:var(--text)}
a{color:inherit}.site-header,.page-shell,.site-footer{width:min(1180px,calc(100% - 32px));margin-left:auto;margin-right:auto}.site-header{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:800}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--accent),#8ce6ff);color:#04131a}nav{display:flex;gap:22px}nav a{color:var(--muted);text-decoration:none;font-weight:700}.page-shell{margin-top:30px;margin-bottom:70px}.site-footer{padding:22px 0 40px;color:var(--muted);border-top:1px solid var(--border)}
.auth-card{min-height:620px;display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden;border:1px solid var(--border);border-radius:28px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.32)}.auth-intro{padding:clamp(40px,7vw,92px);display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,rgba(49,194,241,.14),transparent 60%),#0e131b}.auth-intro h1,.hero h1{margin:10px 0 18px;max-width:720px;font-size:clamp(2.2rem,5vw,4.7rem);line-height:.98;letter-spacing:-.055em}.auth-intro p,.hero p{color:var(--muted);font-size:1.05rem;line-height:1.7}.tabs{padding:clamp(30px,5vw,64px);align-self:center}.tab-list{display:grid;grid-template-columns:1fr 1fr;padding:5px;margin-bottom:30px;background:var(--surface-2);border-radius:13px}.tab-button{border:0;padding:12px;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-weight:800}.tab-button.active{background:var(--accent);color:#04131a}
.stack{display:grid;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label,legend{font-weight:750;color:#dfe5ee}input,select,textarea{width:100%;margin-top:8px;padding:14px 15px;border:1px solid var(--border);border-radius:11px;background:#0c1118;color:var(--text);font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(49,194,241,.12)}textarea{resize:vertical}
.primary-button,.secondary-button{display:inline-block;border:0;border-radius:11px;padding:14px 18px;font:inherit;font-weight:900;cursor:pointer;text-decoration:none;text-align:center}.primary-button{background:var(--accent);color:#04131a}.secondary-button{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.button-row{display:flex;gap:12px;flex-wrap:wrap}.install-shell{max-width:820px}.hero{padding:45px 0}.hero.compact h1{font-size:clamp(2.5rem,6vw,4.5rem)}.eyebrow{color:var(--accent);font-size:.78rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.section-card{margin-bottom:24px;padding:clamp(24px,4vw,42px);border:1px solid var(--border);border-radius:var(--radius);background:rgba(18,23,32,.93)}.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.report-summary{padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.report-summary h3{margin:0 0 16px}.report-summary small{display:block;margin-top:12px;color:var(--muted)}.status-badge,.issue-tag{display:inline-flex;padding:6px 9px;border-radius:999px;background:#283344;color:#dce4ef;font-size:.78rem;font-weight:850}.status-fixed{background:rgba(102,209,158,.16);color:var(--success)}.status-testing{background:rgba(245,191,91,.15);color:#f5bf5b}.status-investigating{background:rgba(255,107,121,.14);color:#ff9ca6}.status-in-process{background:rgba(49,194,241,.14);color:var(--accent)}
.search-panel{display:grid;grid-template-columns:1fr 1fr auto;align-items:start;gap:16px}.search-panel>label{display:block}.search-panel>.primary-button{margin-top:30px;min-height:49px}.channel-results{margin-top:22px}.channel-list{display:grid;gap:8px;max-height:480px;overflow:auto}.channel-option{display:grid;grid-template-columns:1fr minmax(130px,.45fr) auto;gap:18px;align-items:center;width:100%;padding:15px;border:1px solid var(--border);border-radius:11px;background:#0d1219;color:var(--text);text-align:left;cursor:pointer}.channel-option:hover,.channel-option.selected{border-color:var(--accent)}.channel-option>span{color:var(--muted)}.channel-option .choose-label{color:var(--accent);font-weight:900}.hidden{display:none!important}.selected-channel{padding:16px;border-left:4px solid var(--accent);border-radius:8px;background:var(--surface-2)}fieldset{border:0;padding:0;margin:0}.issue-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.check-card{display:flex;align-items:center;gap:9px;padding:13px;border:1px solid var(--border);border-radius:11px;background:#0c1118}.check-card input{width:auto;margin:0}
.alert{margin-bottom:20px;padding:14px 16px;border-radius:11px;border:1px solid var(--border)}.alert-error{background:rgba(255,107,121,.1);border-color:rgba(255,107,121,.38)}.alert-success{background:rgba(102,209,158,.1);border-color:rgba(102,209,158,.38)}.empty-state{color:var(--muted)}.activity-list{display:grid;gap:18px}.activity-card{padding:26px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.activity-topline{display:flex;justify-content:space-between;gap:20px}.activity-topline h2{margin:6px 0 4px}.activity-topline p{margin:0;color:var(--muted)}.reference{color:var(--accent);font-size:.78rem;font-weight:900;letter-spacing:.09em}.tag-row{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.probe-result{display:grid;gap:5px;margin-top:18px;padding:14px;border-radius:11px;background:var(--surface-2)}.probe-result small{color:var(--muted)}.warning-note{margin-top:22px;color:#f5bf5b}
@media(max-width:900px){.auth-card{grid-template-columns:1fr}.search-panel>.primary-button{margin-top:0}.report-grid{grid-template-columns:repeat(2,1fr)}.search-panel,.form-grid{grid-template-columns:1fr}.issue-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.report-grid,.issue-grid{grid-template-columns:1fr}.channel-option{grid-template-columns:1fr}.activity-topline{flex-direction:column}}

.type-tabs{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.type-tab{border:1px solid #374151;background:#111827;color:#e5e7eb;padding:.7rem 1rem;border-radius:999px;cursor:pointer}.type-tab.selected{background:#2563eb;border-color:#2563eb}.content-type{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#93c5fd}.table-scroll{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;min-width:1050px}.admin-table th,.admin-table td{text-align:left;vertical-align:top;padding:.9rem;border-bottom:1px solid #273244}.admin-table small,.probe-result small,.admin-table td small{display:block;margin-top:.3rem;color:#94a3b8}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:1.2rem}.detail-list{display:grid;grid-template-columns:140px 1fr;gap:.8rem}.detail-list dt{font-weight:700;color:#94a3b8}.detail-list dd{margin:0}@media(max-width:800px){.detail-grid{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr}}

/* Admin dashboard */
.admin-body{background:#090d13}.admin-layout{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.admin-sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;display:flex;flex-direction:column;border-right:1px solid var(--border);background:#0c1118}.admin-brand{display:flex;align-items:center;gap:12px;padding:0 10px 24px;text-decoration:none}.admin-brand>span:last-child{display:grid;gap:2px}.admin-brand small,.sidebar-user small{display:block;color:var(--muted);font-size:.76rem;font-weight:600}.sidebar-nav{display:grid;gap:5px}.sidebar-nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:11px;color:var(--muted);text-decoration:none;font-weight:750}.sidebar-nav a:hover{background:var(--surface-2);color:var(--text)}.sidebar-nav a.active{background:rgba(49,194,241,.14);color:var(--accent)}.sidebar-icon{display:grid;place-items:center;width:24px;height:24px;font-size:1.05rem}.sidebar-user{margin-top:auto;padding:18px 10px 4px;border-top:1px solid var(--border);display:grid;gap:14px}.logout-link{display:flex;align-items:center;gap:9px;color:var(--muted);text-decoration:none;font-weight:750}.admin-main{min-width:0}.admin-topbar{height:84px;padding:0 clamp(22px,4vw,48px);display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--border);background:rgba(9,13,19,.88);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}.admin-topbar>div{display:grid;gap:2px}.topbar-label{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.12em}.view-portal{margin-left:auto;padding:10px 14px;border:1px solid var(--border);border-radius:10px;text-decoration:none;color:var(--muted);font-weight:750}.sidebar-toggle{display:none;border:0;background:transparent;color:var(--text);font-size:1.4rem}.admin-content{padding:clamp(24px,4vw,48px);max-width:1500px}.admin-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.admin-page-heading h1{margin:4px 0 8px;font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.04em}.admin-page-heading p{margin:0;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.stat-card span{color:var(--muted);font-weight:700}.stat-card strong{display:block;margin-top:10px;font-size:2.2rem;letter-spacing:-.04em}.stat-card small{display:block;margin-top:7px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.admin-card{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-bottom:24px}.admin-card h2{margin-top:0}.quick-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-action{padding:17px;border:1px solid var(--border);border-radius:12px;background:#0d1219;text-decoration:none}.quick-action strong{display:block}.quick-action small{display:block;margin-top:5px;color:var(--muted)}.content-counts{display:grid;gap:12px}.content-count-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--border)}.content-count-row:last-child{border-bottom:0}.admin-filters{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px}.table-empty{text-align:center;padding:34px!important;color:var(--muted)}.content-admin-list{display:grid;gap:8px}.content-admin-row{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(150px,1fr) 110px;gap:18px;padding:14px;border-bottom:1px solid var(--border)}.content-admin-row small{color:var(--muted)}.admin-login-shell{margin-top:30px;margin-bottom:70px}.admin-auth-card{width:100%}.admin-login-card{padding:clamp(30px,6vw,54px);border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.35)}.admin-login-card h1{margin:8px 0 12px;font-size:2.5rem}.admin-login-card>p{color:var(--muted);margin-bottom:28px}.live-search-note{margin:10px 0 0;color:var(--muted);font-size:.9rem}.search-loading{opacity:.65}.channel-results:empty{display:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:820px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:fixed;left:-290px;z-index:50;width:270px;transition:left .2s ease;box-shadow:20px 0 50px rgba(0,0,0,.4)}body.sidebar-open .admin-sidebar{left:0}.sidebar-toggle{display:block}.view-portal{display:none}.admin-filters{grid-template-columns:1fr}.content-admin-row{grid-template-columns:1fr}.admin-content{padding:22px}.admin-page-heading{display:block}}
@media(max-width:560px){.stats-grid,.quick-actions{grid-template-columns:1fr}}

/* v3.5 beta polish */
.unified-auth-card{height:620px;min-height:620px}.unified-auth-card .auth-intro,.unified-auth-card .tabs{min-height:100%}.unified-auth-card .auth-intro h1{min-height:3em;display:flex;align-items:flex-start}.tab-button{text-align:center;text-decoration:none;display:block}.activity-card{position:relative}.activity-topline{align-items:flex-start}.activity-heading{min-width:0}.activity-topline>.status-badge{flex:0 0 auto;width:auto;height:auto;min-width:0;max-width:max-content;align-self:flex-start;white-space:nowrap}.activity-meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;color:var(--muted);font-size:.9rem}.activity-meta strong{color:var(--text)}.activity-description{margin:0 0 18px;line-height:1.65}.probe-result{margin-top:0;padding:15px 16px;border:1px solid var(--border);background:#101722}.probe-result-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.probe-result-heading span{color:var(--muted);font-weight:750}.probe-responding{border-color:rgba(102,209,158,.35)}.probe-inconclusive,.probe-not_responding{border-color:rgba(245,191,91,.32)}.probe-timeout,.probe-http_error,.probe-authentication_rejected,.probe-error{border-color:rgba(255,107,121,.35)}.muted-copy{color:var(--muted);line-height:1.65}.sync-stats .stat-card strong{font-size:1.75rem}.check-card.hidden{display:none!important}
@media(max-width:900px){.unified-auth-card{height:auto;min-height:0}.unified-auth-card .auth-intro,.unified-auth-card .tabs{min-height:0}.unified-auth-card .auth-intro h1{min-height:0}.probe-result-heading{align-items:flex-start;flex-direction:column;gap:4px}}

/* v3.5.1 unified login: both modes live in one DOM, preventing page flash. */
.unified-login-shell{margin-top:30px;margin-bottom:70px}
.unified-auth-card .auth-intro{position:relative}
.login-copy{width:100%}
.login-copy[hidden],.login-form[hidden]{display:none!important}
.unified-login-controls{width:100%}
.unified-login-controls .login-form{width:100%}
.unified-login-controls .tab-button{cursor:pointer}
@media(min-width:901px){
  .unified-auth-card .auth-intro{min-height:620px}
  .unified-auth-card .login-copy h1{height:3em;min-height:3em;margin-bottom:18px;display:flex;align-items:flex-start}
  .unified-auth-card .login-copy p{min-height:3.4em;margin:0}
}

/* v3.6 branding settings */
.brand-mark-logo{overflow:hidden;background:var(--surface-2);border:1px solid var(--border);padding:4px}
.brand-mark-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}
.settings-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);gap:28px;align-items:start}
.logo-setting{display:grid;gap:13px}.setting-label{font-weight:750;color:#dfe5ee}.logo-preview{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px;border:1px solid var(--border);border-radius:12px;background:#0c1118;font-weight:800}.file-label{display:grid;gap:5px}.file-label input{padding:10px}.file-label small{color:var(--muted);font-weight:500}.danger-outline{color:var(--danger);border-color:rgba(255,107,121,.35);justify-self:start}.card-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.card-heading-row h2{margin-bottom:6px}.card-heading-row p{margin:0;color:var(--muted)}.colour-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:18px}.colour-field{display:grid;gap:8px}.colour-input-row{display:grid;grid-template-columns:58px 1fr;gap:10px}.colour-input-row input{margin-top:0}.colour-input-row input[type=color]{height:49px;padding:5px;cursor:pointer}.settings-actions{display:flex;justify-content:flex-end;margin-bottom:24px}.technical-settings{margin-top:10px}
@media(max-width:850px){.settings-grid,.colour-settings-grid{grid-template-columns:1fr}.card-heading-row{flex-direction:column}.settings-actions .primary-button{width:100%}}

/* v3.7 editable portal wording */
.content-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.content-settings-group{margin:0;padding:1.1rem;border:1px solid var(--border);border-radius:16px;display:grid;gap:1rem}.content-settings-group legend{padding:0 .45rem;font-weight:800;color:var(--text)}.content-settings-group label{display:grid;gap:.45rem}.content-settings-group textarea{resize:vertical;min-height:72px}@media(max-width:900px){.content-settings-grid{grid-template-columns:1fr}}

/* v3.8 compact, collapsible settings */
.settings-form{gap:14px}.settings-panel{margin:0 0 14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden}.settings-panel>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;cursor:pointer;user-select:none}.settings-panel>summary::-webkit-details-marker{display:none}.settings-panel>summary:hover{background:rgba(255,255,255,.018)}.settings-panel>summary>span:first-child{display:grid;gap:3px}.settings-panel>summary strong{font-size:1.05rem;color:var(--text)}.settings-panel>summary small{color:var(--muted);font-weight:550}.settings-chevron{width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .18s ease;margin-right:4px}.settings-panel[open] .settings-chevron{transform:rotate(225deg)}.settings-panel-body{padding:4px 22px 22px;border-top:1px solid var(--border)}.settings-panel[open] .settings-panel-body{animation:settingsReveal .16s ease-out}@keyframes settingsReveal{from{opacity:.35;transform:translateY(-4px)}to{opacity:1;transform:none}}
.settings-form label{font-size:.88rem}.settings-form input.compact-control,.settings-form textarea.compact-textarea{margin-top:6px;padding:10px 12px;border-radius:9px;min-height:40px}.settings-form textarea.compact-textarea{min-height:58px;line-height:1.4;resize:vertical}.compact-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.compact-settings-grid.three-column{grid-template-columns:repeat(3,minmax(0,1fr))}.content-settings-grid{gap:16px}.content-settings-group{padding:16px;border-radius:12px;gap:12px}.content-settings-group legend{font-size:.92rem}.settings-grid{gap:20px}.logo-preview{min-height:58px;padding:10px 12px}.logo-setting{gap:10px}.file-label input.compact-control{padding:8px}.colour-settings-grid{gap:14px}.colour-input-row{grid-template-columns:46px 1fr;gap:9px}.colour-input-row input[type=color]{height:40px;padding:4px;border-radius:9px}.panel-action-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 18px}.panel-action-row p{margin:0;color:var(--muted);font-size:.9rem}.settings-actions{position:sticky;bottom:16px;z-index:8;margin:8px 0 22px;padding:10px;border:1px solid var(--border);border-radius:14px;background:rgba(18,23,32,.94);backdrop-filter:blur(10px)}.settings-actions .primary-button{margin-left:auto}.technical-settings{margin-top:0}.technical-settings .settings-panel-body{padding-top:18px}
@media(max-width:1050px){.compact-settings-grid.three-column{grid-template-columns:1fr 1fr}}@media(max-width:760px){.settings-panel>summary{padding:16px 17px}.settings-panel-body{padding:4px 17px 18px}.compact-settings-grid,.compact-settings-grid.three-column{grid-template-columns:1fr}.panel-action-row{align-items:stretch;flex-direction:column}.panel-action-row .secondary-button{width:100%}.settings-actions{position:static}.settings-actions .primary-button{width:100%;margin:0}}

/* v3.9 customer updates, Telegram settings and maintenance */
.status-reported{background:rgba(49,194,241,.14);color:var(--accent);border:1px solid rgba(49,194,241,.25)}
.report-update-section{margin-top:1.25rem}
.update-timeline{display:grid;gap:.85rem}
.update-entry{padding:1rem;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.update-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.65rem}
.update-entry-heading time{font-size:.8rem;color:var(--muted)}
.update-entry p{margin:.25rem 0 .55rem;line-height:1.55}
.update-entry small{color:var(--muted)}
.customer-updates{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}
.customer-updates h3{margin:0 0 .8rem;font-size:1rem}
.field-help{display:block;color:var(--muted);margin-top:-.35rem}
.telegram-settings{display:grid;gap:1rem}
.checkbox-setting{display:flex!important;align-items:flex-start;gap:.8rem;padding:.85rem 1rem;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.checkbox-setting input{width:18px;height:18px;margin-top:.15rem;accent-color:var(--accent);flex:0 0 auto}
.checkbox-setting span{display:grid;gap:.2rem}
.checkbox-setting small{color:var(--muted);font-weight:400}
.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}
.maintenance-counts{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:1.25rem}
.danger-zone{border-color:rgba(255,92,112,.42)}
.danger-zone h2{margin:.35rem 0 .6rem}
.preserved-data{padding:.9rem 1rem;border-radius:10px;background:rgba(49,194,241,.08);border:1px solid rgba(49,194,241,.18);margin:1rem 0}
.danger-form{max-width:620px;margin-top:1.25rem}
.danger-button{border:0;border-radius:10px;padding:.85rem 1rem;font-weight:800;background:#d83b52;color:#fff;cursor:pointer}
.danger-button:hover{filter:brightness(1.08)}
@media(max-width:850px){.two-column,.maintenance-counts{grid-template-columns:1fr}.update-entry-heading{align-items:flex-start;flex-direction:column;gap:.4rem}}

/* v3.9.1 report deletion */
.report-delete-section{margin-top:24px}.report-delete-section p{color:var(--muted);max-width:760px}.report-delete-section .danger-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) auto;align-items:end;gap:14px;max-width:none}.report-delete-section .danger-button{min-height:49px}@media(max-width:980px){.report-delete-section .danger-form{grid-template-columns:1fr}.report-delete-section .danger-button{width:100%}}

/* v3.9.3 Telegram improvements */
.telegram-control-group,.telegram-diagnostics,.telegram-test-response{margin-top:.4rem;padding:1rem;border:1px solid var(--border);border-radius:12px;background:#0c1118}.telegram-control-group h3,.telegram-diagnostics h3,.telegram-test-response h3{margin:0 0 .9rem}.telegram-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.compact-checkbox{padding:.7rem .8rem}.diagnostic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.diagnostic-item{display:flex;gap:.7rem;align-items:flex-start;padding:.8rem;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}.diagnostic-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;font-weight:900;background:#283344}.diagnostic-confirmed .diagnostic-icon{color:var(--success)}.diagnostic-failed .diagnostic-icon{color:var(--danger)}.diagnostic-unknown .diagnostic-icon{color:#f5bf5b}.diagnostic-item div{display:grid;gap:.2rem}.diagnostic-item small,.diagnostic-history span{color:var(--muted);font-weight:500}.diagnostic-history{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-top:.7rem}.diagnostic-history>div{display:grid;gap:.3rem;padding:.8rem;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}.telegram-test-response pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:.45rem 0 1rem;padding:.8rem;border-radius:9px;background:#080c11;border:1px solid var(--border);color:var(--text);font-size:.82rem;line-height:1.5}.telegram-test-response>div:last-child pre{margin-bottom:0}@media(max-width:850px){.telegram-toggle-grid,.diagnostic-grid,.diagnostic-history{grid-template-columns:1fr}}

/* v3.9.3 final regression: explicit spacing before a following probe card. */
.customer-updates-before-probe{margin-bottom:16px}
.customer-updates-before-probe + .probe-result{margin-top:0}


/* v3.10 Stream Health Monitor */
.stream-health-result{margin-top:16px;padding:14px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.stream-health-healthy{border-color:rgba(74,190,132,.5)}.stream-health-degraded{border-color:rgba(238,177,64,.55)}.stream-health-failed,.stream-health-access_failed,.stream-health-unavailable{border-color:rgba(230,76,96,.6)}
.health-metrics{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;color:var(--muted);font-size:.88rem}.health-metrics strong{color:var(--text)}

/* v3.10.1 activity diagnostics spacing */
.activity-diagnostics{display:grid;gap:16px}.activity-diagnostics>.stream-health-result,.activity-diagnostics>.probe-result{margin:0}.customer-updates{margin-bottom:16px}

/* Stream Health Monitor admin layout */
.stream-health-stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:960px}
.stream-health-diagnostics h2,.stream-health-jobs h2{margin:0 0 18px}
.stream-health-diagnostics .field-help,.stream-health-jobs .field-help{line-height:1.55}
.health-diagnostic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.health-diagnostic-card{min-width:0;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.health-diagnostic-card span{display:block;margin-bottom:7px;color:var(--muted);font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.health-diagnostic-card strong{display:block;font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.health-worker-detail{margin:0 0 14px;padding:13px 15px;border:1px solid var(--border);border-radius:10px;background:#0d1219;color:var(--muted);line-height:1.5}
.health-worker-detail strong{color:var(--text)}
.health-explainer{max-width:1050px;margin:0;color:var(--muted);line-height:1.6}
.health-explainer code{display:inline-block;padding:2px 6px;border:1px solid var(--border);border-radius:6px;background:#090d13;color:var(--text);font-size:.88em;overflow-wrap:anywhere}
.health-actions{margin-top:20px}
.health-jobs-table{width:100%;border-collapse:collapse}
.health-jobs-table th,.health-jobs-table td{padding:13px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}
.health-jobs-table th{color:var(--muted);font-size:.82rem;font-weight:800;white-space:nowrap}
.health-jobs-table tbody tr:last-child td{border-bottom:0}
.health-job-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--surface-2);font-size:.8rem;font-weight:800}
@media(max-width:1000px){.health-diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.stream-health-stats,.health-diagnostic-grid{grid-template-columns:1fr}.health-jobs-table th,.health-jobs-table td{padding:11px 10px}.stream-health-jobs .table-wrap{overflow-x:auto}}

/* v3.10.3 Stream Health technical diagnostics */
.health-diagnostic-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.health-tech-row>td{padding:0 14px 16px!important;background:rgba(255,255,255,.01)}
.health-tech-details{border:1px solid var(--border);border-radius:10px;background:var(--surface-2);overflow:hidden}
.health-tech-details summary{cursor:pointer;padding:12px 14px;font-weight:800;color:var(--text);user-select:none}
.health-tech-details[open] summary{border-bottom:1px solid var(--border)}
.health-tech-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}
.health-tech-grid>div{min-width:0;padding:12px;border:1px solid var(--border);border-radius:9px;background:#0d1219}
.health-tech-grid span,.health-tech-summary>span,.health-tech-output>span{display:block;margin-bottom:6px;color:var(--muted);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.health-tech-grid strong{display:block;overflow-wrap:anywhere}
.health-tech-summary,.health-tech-output{margin:0 14px 14px}
.health-tech-summary p{margin:0;line-height:1.55}
.health-tech-output pre{max-height:280px;margin:0;padding:13px;border:1px solid var(--border);border-radius:9px;background:#090d13;color:var(--text);white-space:pre-wrap;overflow:auto;font-size:.82rem;line-height:1.5}
.health-tech-details>.field-help{margin:0 14px 14px}
@media(max-width:1100px){.health-diagnostic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.health-tech-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.health-diagnostic-grid,.health-tech-grid{grid-template-columns:1fr}}

.report-health-tech{margin-top:14px}.report-health-tech summary{padding:11px 13px}

/* v3.10.6 Stream Health readiness */
.health-diagnostic-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.health-worker-detail small{display:inline;color:var(--muted)}

/* v3.10.9 Stream Health configuration mock-up layout */
.stream-health-config h2{margin:0 0 10px}
.stream-health-config>.field-help{margin:0 0 18px;line-height:1.55}
.stream-health-config form.stack{gap:0}
.health-config-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 12px;align-items:stretch}
.health-config-card{box-sizing:border-box;min-width:0;min-height:310px;padding:18px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);display:flex;flex-direction:column;align-items:stretch}
.health-config-label{min-height:40px;display:block;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em;line-height:1.35}
.health-config-control{box-sizing:border-box;min-width:0;height:48px;flex:0 0 48px;display:flex;align-items:center;border-radius:10px;margin:8px 0 0}
.health-config-number{border:1px solid var(--border);background:#0d1219;overflow:hidden}
.health-config-number input{box-sizing:border-box;width:100%;height:46px;min-width:0;margin:0;padding:0 14px;border:0!important;border-radius:0!important;background:transparent!important;color:var(--text);font:inherit;font-size:1.05rem;font-weight:800;outline:none}
.health-config-number input:focus{box-shadow:inset 0 0 0 1px var(--accent)}
.health-config-toggle{padding:0;border:0;background:transparent;gap:9px}
.health-config-toggle input{width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:var(--accent)}
.health-config-toggle strong,.health-config-status strong{font-size:1rem;line-height:1.2}
.health-config-status{width:max-content;max-width:100%;padding:0 12px;border:1px solid var(--border);background:#0d1219}
.health-config-status.is-ready{border-color:#177c35;background:rgba(15,105,43,.24);color:#72df8b}
.health-config-status.is-missing{border-color:var(--danger);color:var(--danger)}
.health-config-subvalue{display:block;min-height:28px;padding-top:8px;color:var(--muted);font-size:.9rem}
.health-config-description{display:block;margin-top:14px;color:var(--muted);font-size:.88rem;line-height:1.55}
.health-config-range{display:block;margin-top:auto;padding-top:10px;color:var(--muted);font-size:.88rem}
.health-config-info{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:13px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.health-config-info-icon{width:36px;height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:#071018;font-size:1.1rem;font-weight:900;font-style:normal}
.health-config-info p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.stream-health-config .primary-button{width:100%}
@media(max-width:1250px){.health-config-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.health-config-card{min-height:275px}}
@media(max-width:850px){.health-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.health-config-grid{grid-template-columns:1fr}.health-config-card{min-height:0}.health-config-info{align-items:flex-start}}

/* v3.10.10 Stream Health centred configuration layout */
.stream-health-config h2,
.stream-health-config>.field-help{text-align:center}
.health-config-card{text-align:center;align-items:center}
.health-config-label{width:100%;text-align:center}
.health-config-control{justify-content:center}
.health-config-number{width:100%;max-width:100%}
.health-config-number input{text-align:center}
.health-config-toggle{width:100%}
.health-config-status{align-self:center}
.health-config-subvalue,
.health-config-description,
.health-config-range{width:100%;text-align:center}

/* v3.10.11 Stream Health centred card layout */
.stream-health-stats .stat-card{text-align:center}
.stream-health-stats .stat-card span,
.stream-health-stats .stat-card strong{display:block;text-align:center}
.stream-health-diagnostics h2,
.stream-health-diagnostics>.health-explainer,
.stream-health-jobs h2,
.stream-health-jobs>.field-help{text-align:center}
.health-diagnostic-card{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:96px}
.health-diagnostic-card span,
.health-diagnostic-card strong{width:100%;text-align:center}
.health-worker-detail{text-align:center}
.health-explainer{margin-left:auto;margin-right:auto;text-align:center}
.health-tech-grid>div{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:82px}
.health-tech-grid span,
.health-tech-grid strong{width:100%;text-align:center}
.health-tech-summary{text-align:center}
.health-tech-output>span{text-align:center}
.health-tech-details>.field-help{text-align:center}


/* v3.10.12 Stream Health monitor-status card alignment */
.stream-health-overview h2{margin:0 0 18px;text-align:center}
.stream-health-overview .stream-health-stats{max-width:none;width:100%;margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stream-health-overview .stat-card{min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.stream-health-overview .stat-card span{width:100%;margin-bottom:10px;text-align:center}
.stream-health-overview .stat-card strong{width:100%;text-align:center;overflow-wrap:anywhere}
@media(max-width:700px){.stream-health-overview .stream-health-stats{grid-template-columns:1fr}}

/* v3.10.13 Centre the three monitor-status cards as a group.
   The middle Running card now shares the Stream Health page centre line. */
.stream-health-overview .stream-health-stats,
.stream-health-stats{
  width:100%;
  max-width:864px;
  margin-left:auto;
  margin-right:auto;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:960px){
  .stream-health-overview .stream-health-stats,
  .stream-health-stats{max-width:100%}
}
@media(max-width:700px){
  .stream-health-overview .stream-health-stats,
  .stream-health-stats{grid-template-columns:1fr;max-width:420px}
}

/* v3.10.15 — portal-wide card presentation consistency
   Compact/tile cards use the centred Stream Health visual language.
   Long-form content, forms, tables, timelines and diagnostic logs remain left aligned for readability. */
.stat-card,
.report-summary,
.quick-action,
.check-card,
.diagnostic-item,
.health-diagnostic-card,
.health-config-card{
  text-align:center;
}

.stat-card,
.report-summary,
.quick-action,
.health-diagnostic-card,
.health-config-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.stat-card > *,
.report-summary > *,
.quick-action > *,
.health-diagnostic-card > *,
.health-config-card > *{
  max-width:100%;
  text-align:center;
}

.stat-card span,
.stat-card strong,
.stat-card small,
.report-summary .content-type,
.report-summary h3,
.report-summary small,
.quick-action strong,
.quick-action small{
  width:100%;
  text-align:center;
}

.report-summary .status-badge,
.report-summary .issue-tag{
  width:auto;
  align-self:center;
}

.quick-action{
  min-height:104px;
  justify-content:center;
}

.check-card{
  justify-content:center;
  min-height:52px;
}
.check-card input{
  flex:0 0 auto;
}

.diagnostic-item{
  align-items:center;
  justify-content:center;
}
.diagnostic-item > div{
  justify-items:center;
  text-align:center;
}

/* Keep data-heavy cards deliberately readable rather than forcing centred prose. */
.activity-card,
.update-entry,
.probe-result,
.stream-health-result,
.section-card,
.admin-card,
.settings-panel,
.telegram-control-group,
.telegram-diagnostics,
.telegram-test-response{
  text-align:left;
}

/* Section headings for card collections follow the centred Stream Health treatment. */
.stream-health-overview > h2,
.stream-health-diagnostics > h2,
.stream-health-config > h2,
.stream-health-jobs > h2{
  text-align:center;
}

/* v3.10.16 catalogue count presentation */
.catalogue-count-wrap{display:flex;justify-content:center;margin:-4px 0 24px}.catalogue-count-card{width:min(100%,320px);min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.catalogue-count-card span,.catalogue-count-card strong{width:100%;text-align:center}.catalogue-count-card span{margin-bottom:10px}.catalogue-count-card strong{margin-top:0}
.catalogue-summary-wrap{display:flex;justify-content:center;gap:16px;margin:-4px 0 24px;flex-wrap:wrap}.catalogue-summary-card{width:min(100%,320px);min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.catalogue-summary-card span,.catalogue-summary-card strong{width:100%;text-align:center}.catalogue-summary-card span{margin-bottom:10px}.catalogue-summary-card strong{margin-top:0}
@media(max-width:720px){.catalogue-summary-wrap{flex-direction:column;align-items:stretch}.catalogue-summary-card{width:100%}}

/* v3.10.18 — Customer Reports work queues */
.report-status-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:-4px 0 18px}.report-status-card{min-height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.report-status-card span,.report-status-card strong{width:100%;text-align:center}.report-status-card strong{margin:8px 0 14px}.report-card-link{display:inline-flex;align-items:center;justify-content:center;min-width:104px;padding:8px 13px;border:1px solid var(--border);border-radius:9px;background:#0d1219;color:var(--text);font-size:.84rem;font-weight:800;text-decoration:none}.report-card-link:hover{border-color:var(--accent);color:var(--accent)}
.report-section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}.report-section-card{min-height:118px;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:var(--text);transition:border-color .15s ease,background .15s ease}.report-section-card:hover,.report-section-card.active{border-color:var(--accent);background:rgba(49,194,241,.07)}.report-section-card span{color:var(--muted);font-weight:800}.report-section-card strong{margin:7px 0 2px;font-size:2rem;letter-spacing:-.04em}.report-section-card small{color:var(--muted);font-weight:700}
@media(max-width:1100px){.report-status-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.report-status-overview,.report-section-nav{grid-template-columns:1fr}.report-status-card{min-height:132px}}

/* v3.10.19 dashboard layout: keep recent reports full-width and avoid desktop horizontal scrolling. */
.dashboard-catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.dashboard-catalogue-card{min-height:132px;padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:var(--text)}.dashboard-catalogue-card:hover{border-color:var(--accent);background:var(--surface-2)}.dashboard-catalogue-card span{color:var(--muted);font-weight:700}.dashboard-catalogue-card strong{display:block;margin-top:8px;font-size:2rem;letter-spacing:-.04em}.dashboard-catalogue-card small{display:block;margin-top:5px;color:var(--muted)}.dashboard-actions-card{margin-bottom:24px}.dashboard-actions-card h2{text-align:center}.dashboard-quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-quick-actions .quick-action{text-align:center;display:flex;min-height:82px;flex-direction:column;align-items:center;justify-content:center}.dashboard-recent-reports{width:100%}.dashboard-recent-reports>h2{margin-bottom:12px}.dashboard-reports-table{min-width:0;table-layout:auto}.dashboard-reports-table th,.dashboard-reports-table td{padding-left:12px;padding-right:12px}.dashboard-reports-table th:first-child,.dashboard-reports-table td:first-child{padding-left:0}.dashboard-reports-table th:last-child,.dashboard-reports-table td:last-child{padding-right:0;white-space:nowrap}@media(max-width:1200px){.dashboard-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.dashboard-catalogue-grid{grid-template-columns:1fr}.dashboard-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-reports-table{min-width:760px}}@media(max-width:560px){.dashboard-quick-actions{grid-template-columns:1fr}}

/* v3.10.20 dashboard section consistency */
.dashboard-summary-card,.dashboard-catalogue-overview{padding:clamp(24px,3vw,38px)}
.dashboard-summary-card>h2,.dashboard-catalogue-overview>h2{text-align:center;margin:0 0 22px}
.dashboard-summary-grid{margin-bottom:0}
.dashboard-summary-grid .stat-card{min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--surface-2)}
.dashboard-catalogue-overview .dashboard-catalogue-grid{margin-bottom:0}
.dashboard-catalogue-overview .dashboard-catalogue-card{background:var(--surface-2)}


/* v3.10.22 customer dashboard refresh */
.customer-dashboard-intro{margin:18px 0 24px}.customer-dashboard-intro h1{margin:7px 0 8px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.035em}.customer-dashboard-intro p{margin:0;color:var(--muted);line-height:1.6}.customer-dashboard-intro a{color:var(--accent);text-decoration:none}.customer-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}.customer-action-card{min-width:0;min-height:220px;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;text-decoration:none;transition:border-color .15s ease,transform .15s ease,background .15s ease}.customer-action-card[href]:hover{border-color:var(--accent);background:var(--surface-2);transform:translateY(-2px)}.customer-action-icon{width:42px;height:42px;display:grid;place-items:center;margin-bottom:18px;border-radius:12px;background:rgba(49,194,241,.12);color:var(--accent)}.customer-action-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.customer-action-card h2{margin:0 0 8px;font-size:1.05rem;line-height:1.3}.customer-action-card p{margin:0;color:var(--muted);font-size:.91rem;line-height:1.55}.customer-action-link{margin-top:auto;padding-top:18px;color:var(--accent);font-size:.76rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.customer-action-coming-soon{opacity:.72}.customer-action-coming-soon .customer-action-link{color:var(--muted)}@media(max-width:980px){.customer-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.customer-action-grid{grid-template-columns:1fr}.customer-action-card{min-height:190px}}

/* v3.10.23 customer navigation and account */
.customer-site-header{border-bottom:1px solid var(--border);background:rgba(12,17,24,.94);backdrop-filter:blur(12px);position:sticky;top:0;z-index:40}.customer-nav-shell{width:min(1180px,calc(100% - 32px));min-height:72px;margin:0 auto;display:flex;align-items:center;gap:28px}.customer-brand{flex:0 0 auto}.customer-nav{margin-left:auto;display:flex;align-items:center;gap:5px}.customer-nav>a,.customer-nav-menu>summary{padding:10px 12px;border-radius:9px;color:var(--muted);font-size:.9rem;font-weight:750;text-decoration:none;cursor:pointer;list-style:none}.customer-nav-menu>summary::-webkit-details-marker{display:none}.customer-nav-menu>summary::after{content:'⌄';margin-left:7px;font-size:.8rem}.customer-nav>a:hover,.customer-nav>a.active,.customer-nav-menu>summary:hover,.customer-nav-menu[open]>summary{background:var(--surface-2);color:var(--text)}.customer-nav-menu{position:relative}.customer-nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:210px;padding:7px;border:1px solid var(--border);border-radius:12px;background:#0c1118;box-shadow:0 18px 45px rgba(0,0,0,.35);display:grid;gap:3px}.customer-nav-dropdown a,.customer-nav-dropdown span{padding:10px 11px;border-radius:8px;color:var(--muted);text-decoration:none;font-size:.88rem;font-weight:700;white-space:nowrap}.customer-nav-dropdown a:hover{background:var(--surface-2);color:var(--text)}.customer-nav-dropdown span{display:flex;justify-content:space-between;gap:14px;opacity:.7}.customer-nav-dropdown small{color:var(--accent);font-size:.68rem;text-transform:uppercase;letter-spacing:.05em}.customer-nav-toggle{display:none;margin-left:auto;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:8px 11px;font-size:1.1rem}.customer-page-shell{margin-top:30px}.customer-account-heading{margin:18px 0 24px}.customer-account-heading h1{margin:7px 0 8px;font-size:clamp(2.2rem,5vw,3.5rem);letter-spacing:-.045em}.customer-account-heading p{margin:0;color:var(--muted)}.customer-account-profile{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:26px 30px}.customer-account-avatar{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:rgba(49,194,241,.14);border:1px solid rgba(49,194,241,.28);color:var(--accent);font-weight:900}.customer-account-profile h2{margin:4px 0 5px}.customer-account-profile p{margin:0;color:var(--muted)}.account-status-pill{padding:7px 11px;border-radius:999px;background:rgba(102,209,158,.14);color:var(--success);font-size:.8rem;font-weight:850}.customer-account-overview>h2{text-align:center;margin-top:0;margin-bottom:22px}.customer-account-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.customer-account-stat{min-height:132px;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none}.customer-account-stat:hover{border-color:var(--accent)}.customer-account-stat span,.customer-account-stat small{color:var(--muted);font-weight:700}.customer-account-stat strong{margin:8px 0 5px;font-size:2rem}.customer-account-actions{display:flex;align-items:center;justify-content:space-between;gap:24px}.customer-account-actions h2{margin:0 0 6px}.customer-account-actions p{margin:0;color:var(--muted)}.customer-logout-button{border-color:rgba(255,107,121,.38);color:#ff9ca6}@media(max-width:820px){.customer-nav-toggle{display:block}.customer-nav{display:none;position:absolute;top:72px;left:16px;right:16px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#0c1118;box-shadow:0 18px 45px rgba(0,0,0,.35);align-items:stretch;flex-direction:column}.customer-nav.open{display:flex}.customer-nav>a,.customer-nav-menu>summary{width:100%}.customer-nav-menu{width:100%}.customer-nav-dropdown{position:static;margin-top:5px;box-shadow:none}.customer-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.customer-account-profile{grid-template-columns:auto 1fr}.account-status-pill{grid-column:1/-1;justify-self:start}.customer-account-stats{grid-template-columns:1fr}.customer-account-actions{align-items:flex-start;flex-direction:column}}

/* v3.10.24 — centred customer action cards and shared light/dark appearance */
.customer-action-card{align-items:center;text-align:center}.customer-action-icon{margin-left:auto;margin-right:auto}.customer-action-card h2,.customer-action-card p,.customer-action-link{width:100%;text-align:center}

.theme-toggle{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text);cursor:pointer;font:inherit;transition:border-color .15s ease,background .15s ease}.theme-toggle:hover{border-color:var(--accent)}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .theme-icon-sun{display:none}html[data-theme="light"] .theme-toggle .theme-icon-moon{display:none}html[data-theme="light"] .theme-toggle .theme-icon-sun{display:block}.customer-theme-toggle{margin-left:8px}.admin-theme-toggle{margin-left:8px}

html[data-theme="light"]{color-scheme:light;--bg:#f5f7fb;--surface:#ffffff;--surface-2:#f0f3f8;--border:#d8dee9;--text:#17202d;--muted:#687386;--danger:#c63f50;--success:#238653}
html[data-theme="light"] body{background:radial-gradient(circle at top left,rgba(49,194,241,.08),transparent 32rem),var(--bg);color:var(--text)}
html[data-theme="light"] .admin-body{background:var(--bg)}
html[data-theme="light"] .admin-sidebar,html[data-theme="light"] .customer-site-header{background:rgba(255,255,255,.95)}
html[data-theme="light"] .admin-topbar{background:rgba(245,247,251,.92)}
html[data-theme="light"] .admin-card,html[data-theme="light"] .section-card,html[data-theme="light"] .activity-card,html[data-theme="light"] .stat-card,html[data-theme="light"] .report-summary,html[data-theme="light"] .customer-action-card,html[data-theme="light"] .customer-account-stat,html[data-theme="light"] .customer-account-profile,html[data-theme="light"] .quick-action,html[data-theme="light"] .dashboard-catalogue-card,html[data-theme="light"] .report-section-card,html[data-theme="light"] .report-status-card{box-shadow:0 1px 2px rgba(20,31,48,.04)}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea,html[data-theme="light"] .channel-option,html[data-theme="light"] .check-card,html[data-theme="light"] .quick-action,html[data-theme="light"] .report-card-link,html[data-theme="light"] .customer-nav-dropdown,html[data-theme="light"] .probe-result{background:#fff;color:var(--text)}
html[data-theme="light"] .customer-nav-dropdown{box-shadow:0 18px 45px rgba(31,41,55,.14)}
html[data-theme="light"] .selected-channel,html[data-theme="light"] .probe-result,html[data-theme="light"] .customer-account-stat,html[data-theme="light"] .dashboard-summary-grid .stat-card,html[data-theme="light"] .dashboard-catalogue-overview .dashboard-catalogue-card{background:var(--surface-2)}
html[data-theme="light"] .auth-card,html[data-theme="light"] .admin-login-card{box-shadow:0 25px 70px rgba(31,41,55,.12)}
html[data-theme="light"] .auth-intro{background:linear-gradient(145deg,rgba(49,194,241,.10),transparent 60%),#f8fafc}
html[data-theme="light"] .type-tab{background:#fff;color:var(--text);border-color:var(--border)}html[data-theme="light"] .type-tab.selected{background:var(--accent);border-color:var(--accent);color:#04131a}
@media(max-width:820px){.customer-theme-toggle{margin-left:0}.customer-nav-shell{gap:12px}}

/* v3.10.25 — complete light-theme surface correction
   Dark mode remains unchanged. In light mode, structural cards/panels use the
   light surface palette instead of legacy hard-coded dark backgrounds. */
html[data-theme="light"] .section-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .customer-account-profile,
html[data-theme="light"] .customer-account-overview,
html[data-theme="light"] .customer-account-actions,
html[data-theme="light"] .stream-health-overview,
html[data-theme="light"] .stream-health-diagnostics,
html[data-theme="light"] .stream-health-config,
html[data-theme="light"] .stream-health-jobs,
html[data-theme="light"] .telegram-control-group,
html[data-theme="light"] .telegram-diagnostics,
html[data-theme="light"] .telegram-test-response,
html[data-theme="light"] .content-settings-group,
html[data-theme="light"] .settings-actions {
  background:var(--surface);
  color:var(--text);
}
html[data-theme="light"] .health-worker-detail,
html[data-theme="light"] .health-tech-grid>div,
html[data-theme="light"] .health-config-number,
html[data-theme="light"] .health-config-status,
html[data-theme="light"] .report-card-link,
html[data-theme="light"] .logo-preview {
  background:var(--surface-2);
  color:var(--text);
}
html[data-theme="light"] .health-explainer code,
html[data-theme="light"] .health-tech-output pre,
html[data-theme="light"] .telegram-test-response pre {
  background:#f7f9fc;
  color:var(--text);
}
html[data-theme="light"] .health-tech-row>td {background:rgba(23,32,45,.015)}
html[data-theme="light"] .settings-panel>summary:hover {background:rgba(23,32,45,.025)}
html[data-theme="light"] label,
html[data-theme="light"] legend,
html[data-theme="light"] .setting-label {color:var(--text)}
html[data-theme="light"] .status-badge,
html[data-theme="light"] .issue-tag,
html[data-theme="light"] .diagnostic-icon {background:#e5eaf2;color:var(--text)}
html[data-theme="light"] .status-fixed {background:rgba(35,134,83,.12);color:var(--success)}
html[data-theme="light"] .status-testing {background:rgba(183,126,15,.12);color:#8a620f}
html[data-theme="light"] .status-investigating {background:rgba(198,63,80,.11);color:var(--danger)}
html[data-theme="light"] .status-in-process {background:rgba(49,194,241,.13);color:#087fa6}
html[data-theme="light"] .health-config-status.is-ready {background:rgba(35,134,83,.10);border-color:rgba(35,134,83,.45);color:var(--success)}
html[data-theme="light"] .customer-logout-button {color:var(--danger)}

/* v3.11.0 content request workflow */
.request-match-panel{padding:16px 18px;border:1px solid var(--accent);border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));}.request-match-panel p{margin:.35rem 0 .75rem;color:var(--muted)}.request-match-list{display:flex;gap:8px;flex-wrap:wrap}.request-match-list span{padding:6px 9px;border:1px solid var(--border);border-radius:999px;background:var(--surface-2);font-size:.86rem}.request-status-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.request-status-card{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.request-status-card strong{font-size:2rem;margin:8px 0 14px}.request-table{min-width:900px}.activity-request-heading{margin-top:32px}.status-requested,.status-reviewing,.status-approved,.status-added,.status-declined,.status-already-available{border-color:var(--border)}
@media(max-width:1100px){.request-status-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.request-status-overview{grid-template-columns:1fr}}

/* v3.11.3 activity tabs and request dashboard summary */
.activity-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.activity-tab{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font-size:.86rem;font-weight:750;text-decoration:none;transition:border-color .15s ease,background .15s ease,color .15s ease}.activity-tab span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--surface-2);font-size:.75rem}.activity-tab:hover{border-color:var(--accent);color:var(--text)}.activity-tab.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}.activity-tab.active span{background:color-mix(in srgb,var(--accent) 20%,var(--surface-2));color:var(--accent)}.hero.compact+.activity-tabs{margin-top:-4px}.request-activity-list{margin-top:0}.dashboard-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-request-summary{text-decoration:none;color:var(--text);transition:border-color .15s ease,background .15s ease,transform .15s ease}.dashboard-request-summary:hover{border-color:var(--accent);background:var(--surface-2);transform:translateY(-2px)}@media(max-width:1200px){.dashboard-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.dashboard-summary-grid{grid-template-columns:1fr 1fr}.activity-tabs{gap:8px}.activity-tab{flex:1 1 calc(50% - 8px);justify-content:center}}@media(max-width:480px){.dashboard-summary-grid{grid-template-columns:1fr}.activity-tab{flex-basis:100%}}

/* v3.11.4 card-based My Activity navigation */
.activity-overview-card{padding:clamp(22px,3vw,32px);text-align:center}.activity-overview-card>h2{margin:0 0 22px}.activity-card-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.activity-card-nav .report-section-card{min-height:126px}.activity-card-nav .report-section-card.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface))}.activity-card-nav .report-section-card.active span,.activity-card-nav .report-section-card.active strong{color:var(--accent)}@media(max-width:900px){.activity-card-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.activity-card-nav{grid-template-columns:1fr}}


/* v3.11.5 — balanced overview rows */
.report-status-overview,.request-status-overview,.dashboard-summary-grid{display:flex;flex-wrap:wrap;gap:14px}
.report-status-overview>.stat-card,.request-status-overview>.stat-card,.dashboard-summary-grid>.stat-card{flex:1 1 190px;min-width:0}
@media(max-width:760px){.report-status-overview>.stat-card,.request-status-overview>.stat-card,.dashboard-summary-grid>.stat-card{flex-basis:calc(50% - 7px)}}
@media(max-width:480px){.report-status-overview>.stat-card,.request-status-overview>.stat-card,.dashboard-summary-grid>.stat-card{flex-basis:100%}}
