:root {
  color-scheme: light;
  --admin-primary: #174b78;
  --admin-primary-deep: #10385e;
  --admin-primary-soft: #eaf2f8;
  --admin-ink: #1d2a39;
  --admin-text: #344456;
  --admin-muted: #6c7a89;
  --admin-line: #dbe3ea;
  --admin-line-strong: #c9d4df;
  --admin-surface: #ffffff;
  --admin-background: #f4f7f9;
  --admin-success: #277452;
  --admin-warning: #9a6a1f;
  --admin-danger: #b13a32;
  --admin-danger-bg: #fff4f2;
  --admin-radius: 8px;
  --admin-control-height: 42px;
  --admin-shadow: 0 8px 24px rgba(25, 48, 70, 0.05);
  --admin-shell-navy: #10385e;
  --admin-shell-navy-deep: #0b2b49;
  --admin-accent: #1475e8;
  --admin-radius-lg: 10px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body { color: var(--admin-ink); background: var(--admin-background); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .64; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(23, 75, 120, .28); outline-offset: 2px; }
[hidden] { display: none !important; }

.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 24px; background: linear-gradient(135deg, #edf3f7, #f8fafb 62%, #edf2f5); }
.login-panel { width: min(100%, 900px); min-height: 500px; display: grid; grid-template-columns: minmax(270px, .85fr) minmax(360px, 1.15fr); overflow: hidden; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface); box-shadow: 0 18px 48px rgba(27, 53, 76, .10); }
.brand-block { display: flex; align-items: flex-start; gap: 15px; padding: 48px 40px; color: #fff; background: #153f66; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; color: #fff; font-size: 24px; font-weight: 700; }
.login-page .brand-mark { width: 50px; height: 50px; flex: 0 0 50px; overflow: hidden; contain: layout paint; }
.login-page .brand-mark .platform-brand-logo-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.platform-name, .platform-section { margin: 0; }
.heading-actions { display: flex; gap: 10px; align-items: center; }
.heading-actions .primary-button { margin-top: 0; }
.agent-create-dialog { position: fixed; z-index: 30; inset: 50% auto auto 50%; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; transform: translate(-50%, -50%); background: #fff; border: 1px solid #d8e1ea; box-shadow: 0 24px 56px rgba(15, 37, 62, .2); }
body.agent-modal-open, body.customer-modal-open { overflow: hidden; }
.agent-form { padding: 24px; }
.form-intro { margin: 0 0 20px; color: #607083; font-size: 14px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; gap: 7px; color: #34465a; font-size: 14px; font-weight: 600; }
.form-grid input, .form-grid select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #b9c7d5; border-radius: 4px; padding: 8px 10px; background: #fff; color: #172b42; font: inherit; }
.form-grid input:focus, .form-grid select:focus { outline: 3px solid rgba(32, 105, 177, .18); border-color: #2069b1; }
.form-message { margin: 16px 0 0; color: #b42318; font-size: 14px; }
.form-scope-hint { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--admin-primary); color: var(--admin-text); background: var(--admin-primary-soft); line-height: 1.6; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.drawer-section-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-section-actions h3 { margin-right: auto; }
.drawer-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-button { min-height: 38px; padding: 8px 14px; border: 1px solid #b42318; background: #b42318; color: #fff; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.danger-button:hover, .danger-button:focus-visible { background: #8f1b13; outline: 3px solid rgba(180, 35, 24, .2); outline-offset: 1px; }
.hard-delete-dialog .drawer-header { border-bottom-color: #ecc6c1; }.hard-delete-warning { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--admin-danger); color: #71332d; background: var(--admin-danger-bg); line-height: 1.6; }.hard-delete-warning p { margin: 0; }.hard-delete-warning p + p { margin-top: 7px; }.organization-hard-delete { margin-left: 8px; }
.organization-layout { min-width: 0; display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 22px; align-items: start; }
.organization-region-panel, .organization-directory { min-width: 0; border: 1px solid var(--admin-line); background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.organization-region-panel { padding: 22px; border-top: 3px solid var(--admin-primary); }
.organization-panel-heading h2, .organization-directory-heading h2 { margin: 3px 0 0; font-size: 19px; }
.organization-region-field { display: grid; gap: 8px; margin-top: 24px; color: var(--admin-text); font-weight: 600; }
.organization-region-field select { width: 100%; min-width: 0; min-height: var(--admin-control-height); padding: 0 11px; border: 1px solid var(--admin-line-strong); border-radius: 5px; color: var(--admin-ink); background: #fff; }
.organization-region-hint { margin: 14px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.65; }
.organization-directory { min-height: 320px; }
.organization-directory-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--admin-line); }
.organization-count { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #c8d8e5; border-radius: 999px; color: var(--admin-primary-deep); background: var(--admin-primary-soft); font-size: 12px; font-weight: 700; }
.organization-list { min-width: 0; }
.organization-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 19px 24px; border-bottom: 1px solid var(--admin-line); }
.organization-item:last-child { border-bottom: 0; }
.organization-index { width: 42px; height: 42px; display: grid; place-items: center; color: var(--admin-primary); background: var(--admin-primary-soft); font-weight: 700; }
.organization-copy { min-width: 0; }
.organization-copy strong, .organization-copy span { display: block; overflow-wrap: anywhere; }
.organization-copy strong { font-size: 16px; line-height: 1.45; }
.organization-copy span { margin-top: 4px; color: var(--admin-muted); font-size: 13px; }
.organization-empty { padding: 58px 24px; text-align: center; color: var(--admin-text); }
.organization-empty p { margin: 8px 0 0; color: var(--admin-muted); }
.organization-dialog { width: min(600px, calc(100vw - 32px)); }
.organization-form-grid { grid-template-columns: minmax(0, 1fr); }
.organization-form-grid small { color: var(--admin-muted); font-weight: 400; line-height: 1.5; }
.organization-regional-admin-fields { padding: 16px; border: 1px solid #c8d8e5; background: var(--admin-primary-soft); }
.organization-regional-admin-fields .section-kicker { margin: 0 0 12px; }
.organization-regional-admin-fields > p:last-child { margin: 12px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.6; }
.organization-open-success { margin-top: 18px; padding: 15px 16px; border: 1px solid #7dc7a0; background: #edf9f1; color: #155b32; line-height: 1.6; }
.organization-open-success strong { display: block; font-size: 16px; }
.organization-open-success p { margin: 5px 0 0; overflow-wrap: anywhere; }
.form-field-wide { grid-column: 1 / -1; }
body.organization-modal-open, body.regional-admin-modal-open { overflow: hidden; }
.reason-field { display: grid; gap: 7px; margin-top: 16px; color: var(--admin-text); font-size: 13px; font-weight: 600; }
.reason-field textarea { width: 100%; min-width: 0; resize: vertical; padding: 10px; border: 1px solid var(--admin-line-strong); border-radius: 4px; color: var(--admin-ink); background: #fff; font: inherit; font-weight: 400; line-height: 1.5; }
.reason-field textarea:focus { outline: 3px solid rgba(32, 105, 177, .18); border-color: #2069b1; }
@media (max-width: 560px) { .heading-actions { width: 100%; justify-content: space-between; } .form-grid { grid-template-columns: minmax(0, 1fr); } .agent-form { padding: 18px; } }
@media (max-width: 900px) { .organization-layout { grid-template-columns: minmax(0, 1fr); } .organization-region-panel { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr); gap: 18px; align-items: end; } .organization-region-field { margin-top: 0; } .organization-region-hint { grid-column: 1 / -1; margin-top: -4px; } }
@media (max-width: 560px) { .organization-region-panel { display: block; padding: 18px; } .organization-region-field { margin-top: 18px; } .organization-region-hint { margin-top: 12px; } .organization-directory-heading, .organization-item { padding-left: 18px; padding-right: 18px; } .organization-item { grid-template-columns: 36px minmax(0, 1fr); } .organization-index { width: 36px; height: 36px; } .organization-item .secondary-button { grid-column: 2; justify-self: start; } .organization-create-button { margin-top: 0; } }
.platform-name { padding-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.platform-section { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.login-content { display: flex; flex-direction: column; justify-content: center; padding: 48px 62px; }
.eyebrow { margin: 0 0 10px; color: var(--admin-primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.login-content h1 { margin: 0; color: var(--admin-ink); font-size: 30px; line-height: 1.3; }
.page-intro { margin: 11px 0 0; color: var(--admin-muted); line-height: 1.7; }
.login-form { display: flex; flex-direction: column; margin-top: 29px; }
.field-label { margin: 0 0 8px; color: var(--admin-text); font-weight: 600; }
.field-label:not(:first-child) { margin-top: 19px; }
.login-form input { width: 100%; min-width: 0; height: var(--admin-control-height); padding: 0 12px; border: 1px solid var(--admin-line-strong); border-radius: 6px; color: var(--admin-ink); background: #fff; }
.login-form input:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(23,75,120,.12); outline: 0; }
.primary-button, .secondary-button { min-height: var(--admin-control-height); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 6px; font-weight: 600; }
.primary-button { margin-top: 27px; border: 1px solid var(--admin-primary); color: #fff; background: var(--admin-primary); }
.primary-button:hover:not(:disabled) { border-color: var(--admin-primary-deep); background: var(--admin-primary-deep); }
.secondary-button { border: 1px solid var(--admin-line-strong); color: var(--admin-text); background: #fff; }
.secondary-button:hover:not(:disabled) { border-color: #9eb1c2; color: var(--admin-primary-deep); background: #f8fafb; }
.status-message { margin-top: 20px; padding: 10px 12px; border: 1px solid #f0c3be; border-radius: 6px; color: var(--admin-danger); background: var(--admin-danger-bg); line-height: 1.55; }
.checking-state, .access-state { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--admin-muted); }
.checking-state { min-height: 150px; }
.spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #cfd9e1; border-top-color: var(--admin-primary); border-radius: 50%; animation: admin-spin .72s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.access-state { min-height: 100vh; min-height: 100dvh; flex-direction: column; padding: 32px; text-align: center; }
.access-error p { margin: 0 0 16px; }
.state-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.state-icon-error { color: var(--admin-danger); background: #fde8e6; }

.admin-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0, 1fr); overflow-x: clip; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 22px 14px 18px; color: #d5e0e9; background: linear-gradient(180deg, var(--admin-shell-navy), var(--admin-shell-navy-deep)); }
.admin-brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; padding: 0 10px; color: #fff; text-decoration: none; }
.admin-brand .brand-mark { max-width: 40px; max-height: 40px; overflow: hidden; flex-shrink: 0; }
.admin-brand .platform-brand-logo-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.admin-brand > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-brand strong, .admin-brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand strong { font-size: 16px; letter-spacing: .025em; }
.admin-brand small { color: #acc1d3; font-size: 12px; }
.brand-mark-small { width: 34px; height: 34px; border-color: rgba(255,255,255,.55); border-radius: 7px; background: transparent; font-size: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 17px; margin-top: 42px; overflow-y: auto; }
.admin-nav-group { display: grid; gap: 3px; min-width: 0; }
.admin-nav-group:nth-of-type(1) { order: 1; }
.admin-nav-group:nth-of-type(4) { order: 2; }
.admin-nav-group:nth-of-type(7) { order: 3; }
.admin-nav-group:nth-of-type(2) { order: 4; }
.admin-nav-group:nth-of-type(5) { order: 5; }
.admin-nav-group:nth-of-type(3) { order: 6; }
.admin-nav-group:nth-of-type(6) { order: 7; }
.admin-nav-group:nth-of-type(2) .nav-section-label, .admin-nav-group:nth-of-type(3) .nav-section-label { display: none; }
.admin-nav-group:nth-of-type(4)::before, .admin-nav-group:nth-of-type(5)::before { margin: 0 10px 7px; color: #92abc0; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.admin-nav-group:nth-of-type(4)::before { content: "组织与人员"; }
.admin-nav-group:nth-of-type(5)::before { content: "业务运营"; }
.nav-section-label { margin: 0 10px 7px; color: #92abc0; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.nav-item { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: #cbd9e4; font-weight: 600; text-decoration: none; }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(20,117,232,.95), rgba(26,99,184,.88)); box-shadow: inset 3px 0 0 #9bd0ff; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(212,229,241,.18); color: #adc1d1; font-size: 12px; }
.sidebar-status { width: 7px; height: 7px; border-radius: 50%; background: #87bc9b; }
.admin-main { min-width: 0; }
.admin-header { position: sticky; top: 0; z-index: 10; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px clamp(24px, 3vw, 48px); border-bottom: 1px solid rgba(255,255,255,.12); color: #dce9f3; background: var(--admin-shell-navy); }
.header-scope { min-width: 0; display: flex; align-items: baseline; gap: 9px; color: var(--admin-muted); font-size: 12px; }
.header-scope strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.header-account { min-width: 0; display: flex; align-items: center; gap: 16px; }
.header-account-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: right; }
.header-account-name { max-width: 250px; overflow: hidden; color: var(--admin-text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.header-account-text span { color: var(--admin-muted); font-size: 12px; }
.header-divider { width: 1px; height: 26px; background: var(--admin-line); }
.text-button { padding: 5px 0; border: 0; color: var(--admin-muted); background: transparent; font-size: 13px; }
.text-button:hover:not(:disabled) { color: var(--admin-primary-deep); }
.admin-workspace { width: min(100%, 1480px); min-width: 0; margin: 0 auto; padding: clamp(24px, 3.2vw, 44px) clamp(24px, 3vw, 48px) 48px; }
.workspace-view { min-width: 0; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 2px 0 28px; border-bottom: 1px solid var(--admin-line); }
.heading-copy { min-width: 0; }
.workspace-heading h1 { margin: 0; color: var(--admin-ink); font-size: clamp(25px, 2vw, 30px); line-height: 1.3; letter-spacing: .01em; }
.overview-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 17px; color: var(--admin-muted); font-size: 13px; }
.overview-meta strong, .overview-meta time { color: var(--admin-text); font-weight: 600; }
.refresh-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-state { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--admin-muted); }
.panel-state strong { display: block; margin-bottom: 4px; color: var(--admin-text); }
.panel-state p { margin: 0; line-height: 1.6; }
.panel-error { flex-direction: column; text-align: center; }
.metrics-section { padding-top: 27px; }
.section-heading h2, .service-quality h2 { margin: 0; color: var(--admin-ink); font-size: 17px; line-height: 1.45; }
.section-heading p { margin: 5px 0 0; color: var(--admin-muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.metric-card { min-width: 0; min-height: 165px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.metric-label { display: flex; align-items: center; gap: 9px; }
.metric-index { width: 22px; height: 20px; display: grid; place-items: center; border: 1px solid #cfdde8; border-radius: 3px; color: var(--admin-primary); background: #f5f9fc; font-size: 10px; font-weight: 700; }
.metric-label p, .metric-note { margin: 0; color: var(--admin-muted); font-size: 13px; }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 18px; }
.metric-value strong { overflow: hidden; color: var(--admin-primary-deep); font-size: clamp(30px, 2.7vw, 40px); font-variant-numeric: tabular-nums; line-height: 1; text-overflow: ellipsis; }
.metric-value span { color: var(--admin-muted); font-size: 13px; }
.metric-note { margin-top: 12px; line-height: 1.45; }
.service-quality { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 20px; padding: 22px 24px; border: 1px solid var(--admin-line); border-left: 3px solid #6e94b3; border-radius: var(--admin-radius); background: #fbfcfd; }
.section-kicker { margin: 0 0 7px; color: var(--admin-primary); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.quality-copy > p:last-child { margin: 7px 0 0; color: var(--admin-muted); line-height: 1.6; }
.rating-summary { min-width: 112px; padding-left: 24px; border-left: 1px solid var(--admin-line); text-align: right; }
.rating-summary strong { color: var(--admin-primary-deep); font-size: 25px; font-variant-numeric: tabular-nums; }
.rating-summary span { margin-left: 5px; color: var(--admin-muted); }
.empty-note { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 5px; color: var(--admin-muted); background: #f2f5f7; line-height: 1.55; }
.data-note { margin: 18px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.6; }
.floating-message { position: fixed; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); margin: 0; box-shadow: 0 8px 24px rgba(25,48,70,.12); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.agent-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 24px 0 18px; padding: 16px; border: 1px solid var(--admin-line); background: #f8fafb; }
.agent-filters label { display: grid; gap: 7px; min-width: 155px; color: var(--admin-text); font-size: 12px; font-weight: 600; }
.agent-filters input, .agent-filters select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--admin-line-strong); border-radius: 4px; color: var(--admin-ink); background: #fff; font: inherit; font-weight: 400; }
.agent-filters input:focus, .agent-filters select:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(23,75,120,.12); outline: 0; }
.agent-filters .primary-button { min-height: 38px; margin: 0; }
.agent-table-wrap { overflow-x: auto; border: 1px solid var(--admin-line); background: #fff; }
.agent-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 13px; }
.regional-admin-table { min-width: 880px; }
.customer-table { min-width: 980px; }
.service-record-table { min-width: 1620px; }
.evaluation-table { min-width: 1280px; }
.service-record-filters { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.service-evaluation-filters { grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; }
.customer-filters { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto; }
.evaluation-list { display: grid; gap: 10px; }
.evaluation-item { padding: 13px; border-left: 3px solid #7a9ab4; background: #f7fafc; }
.evaluation-item strong { color: var(--admin-ink); }
.evaluation-item p { margin: 7px 0 0; color: var(--admin-text); line-height: 1.55; }
.evaluation-item span { display: block; margin-top: 6px; color: var(--admin-muted); font-size: 12px; }
.agent-table th, .agent-table td { padding: 13px 14px; border-bottom: 1px solid var(--admin-line); text-align: left; white-space: nowrap; }
.agent-table th { color: var(--admin-muted); background: #f7f9fb; font-size: 12px; font-weight: 600; }
.agent-table tbody tr { cursor: pointer; } .agent-table tbody tr:hover { background: #f6faff; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; color: #4b6478; } .status-pill::before { width: 7px; height: 7px; border-radius: 50%; background: #9baeba; content: ""; } .status-pill.online::before { background: #4c9271; }
.table-link { border: 0; padding: 0; color: var(--admin-primary); background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.agent-table td:last-child { display: flex; align-items: center; gap: 12px; }
.table-link-danger { color: var(--admin-danger); }
.agents-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: var(--admin-muted); font-size: 13px; }.agents-pagination .secondary-button { min-height: 34px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(17, 39, 57, .36); }.agent-drawer { position: fixed; top: 0; right: 0; z-index: 31; width: min(680px, 100vw); height: 100dvh; overflow: auto; border-left: 1px solid var(--admin-line); background: #fff; box-shadow: -12px 0 34px rgba(20, 45, 65, .18); }.drawer-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--admin-line); background: #fff; }.drawer-header h2 { margin: 2px 0 0; color: var(--admin-ink); font-size: 22px; }.drawer-close { width: 34px; height: 34px; border: 1px solid var(--admin-line-strong); border-radius: 4px; color: var(--admin-text); background: #fff; font-size: 24px; line-height: 1; }.drawer-content { padding: 24px; }.drawer-section { margin-bottom: 27px; }.drawer-section h3 { margin: 0 0 12px; color: var(--admin-ink); font-size: 15px; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--admin-line); }.detail-grid div { min-width: 0; padding: 12px; background: #fff; }.detail-grid dt { color: var(--admin-muted); font-size: 12px; }.detail-grid dd { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--admin-text); font-weight: 600; }.service-list { display: grid; gap: 10px; }.service-item { width: 100%; padding: 13px; border: 1px solid var(--admin-line); color: var(--admin-text); background: #fff; text-align: left; }.service-item:hover { border-color: #9eb8cd; background: #f8fbfd; }.service-item strong { display: block; color: var(--admin-ink); }.service-item span { display: block; margin-top: 5px; color: var(--admin-muted); font-size: 12px; line-height: 1.5; }.service-detail { border-left: 3px solid #739ab8; padding: 13px; background: #f8fafb; }.service-detail p { margin: 7px 0; color: var(--admin-text); line-height: 1.55; }

@media (max-width: 1120px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .admin-shell { grid-template-columns: minmax(0, 1fr); } .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 13px 18px; } .admin-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0 0 0 auto; } .nav-section-label, .sidebar-footer { display: none; } .nav-item { padding: 0 9px; } .admin-header { position: static; } }
@media (max-width: 1100px) { .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .customer-filters .primary-button { align-self: end; } }
@media (max-width: 1100px) { .service-record-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-record-filters .primary-button { align-self: end; } }
@media (max-width: 1100px) { .service-evaluation-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-evaluation-filters .primary-button { align-self: end; } }
@media (max-width: 760px) { .login-page { padding: 20px; } .login-panel { min-height: 0; grid-template-columns: minmax(0, 1fr); } .brand-block { padding: 28px; } .login-content { padding: 36px 28px 40px; } .admin-workspace { padding: 24px 18px 36px; } }
@media (max-width: 560px) { .admin-sidebar { align-items: flex-start; } .admin-nav { margin-left: 12px; } .nav-item span { display: none; } .admin-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 18px; } .header-account { width: 100%; justify-content: space-between; } .header-account-text { text-align: left; } .workspace-heading { flex-direction: column; padding-bottom: 22px; } .metric-grid { grid-template-columns: minmax(0, 1fr); } .metric-card { min-height: 142px; } .service-quality { grid-template-columns: minmax(0, 1fr); gap: 18px; } .rating-summary { padding: 15px 0 0; border-top: 1px solid var(--admin-line); border-left: 0; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.4s; } }
.connection-diagnostic h4 {
  margin: 18px 0 10px;
  color: var(--text-primary, #1f2937);
  font-size: 14px;
}

.diagnostic-timeline {
  border-left: 2px solid #d8e2ef;
  padding-left: 14px;
}

.diagnostic-timeline p {
  margin: 8px 0;
  color: var(--text-secondary, #4b5563);
  line-height: 1.6;
}

.home-content-workspace { min-width: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding-top: 24px; }
.home-content-modules { align-self: start; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--admin-line); background: #f8fafb; }
.home-content-module { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border-left: 3px solid transparent; color: var(--admin-muted); font-size: 13px; }
button.home-content-module { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
button.home-content-module:hover, button.home-content-module:focus-visible { color: var(--admin-primary-deep); background: #f0f5f8; outline: 0; }
.home-content-module small { flex: 0 0 auto; color: #8696a3; font-size: 10px; font-weight: 400; }
.home-content-module.is-current { border-left-color: var(--admin-primary); color: var(--admin-primary-deep); background: #edf4f9; font-weight: 700; }
.home-settings-panel { min-width: 0; border: 1px solid var(--admin-line); background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.home-settings-panel-heading { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--admin-line); }
.home-settings-panel-heading h2 { margin: 0; color: var(--admin-ink); font-size: 18px; }
.home-settings-panel-heading p:last-child { margin: 6px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.55; }
.home-settings-revision { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--admin-line); color: var(--admin-muted); background: #f8fafb; font-size: 11px; font-variant-numeric: tabular-nums; }
.home-settings-state { min-height: 360px; }
.home-settings-empty { margin: 20px 22px 0; padding: 13px 15px; border-left: 3px solid #6e94b3; color: var(--admin-text); background: #f3f7fa; }
.home-settings-empty strong { display: block; font-size: 13px; }
.home-settings-empty p { margin: 4px 0 0; color: var(--admin-muted); font-size: 12px; }
.home-settings-form { min-width: 0; padding: 4px 22px 22px; }
.home-settings-form fieldset { min-width: 0; margin: 0; padding: 20px 0 22px; border: 0; border-bottom: 1px solid var(--admin-line); }
.home-settings-form legend { width: 100%; margin: 0 0 14px; padding: 0; color: var(--admin-ink); font-size: 14px; font-weight: 700; }
.home-settings-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.home-settings-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-settings-grid label { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--admin-text); font-size: 12px; font-weight: 600; }
.home-settings-grid input, .home-settings-grid select, .home-settings-grid textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid var(--admin-line-strong); border-radius: 4px; color: var(--admin-ink); background: #fff; font: inherit; font-weight: 400; }
.home-settings-grid textarea { resize: vertical; line-height: 1.55; }
.home-settings-grid input:focus, .home-settings-grid select:focus, .home-settings-grid textarea:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(23,75,120,.12); outline: 0; }
.home-settings-grid label small { color: var(--admin-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.home-settings-message { margin: 18px 0 0; }
.home-settings-message[data-tone="success"] { border-color: #b8d7c2; color: #24633a; background: #eff8f2; }
.home-settings-message[data-tone="warning"] { border-color: #dfc992; color: #725515; background: #fff9e9; }
.home-settings-actions { align-items: center; justify-content: space-between; }
.home-settings-actions p { margin: 0; color: var(--admin-muted); font-size: 12px; }
.home-banners-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.home-banners-heading-actions .primary-button { min-height: var(--admin-control-height); margin-top: 0; }
.home-banners-content { min-width: 0; padding: 0 22px 22px; }
.home-banners-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid #dfe7ef; border-radius: 6px; background: #fff; }
.home-banners-table { width: 100%; min-width: 940px; border-collapse: collapse; color: #26384f; font-size: 13px; table-layout: fixed; }
.home-banners-table th, .home-banners-table td { height: 52px; padding: 10px 16px; border-bottom: 1px solid #e5ebf1; text-align: left; vertical-align: middle; }
.home-banners-table th { color: #334762; background: #f5f8fc; font-weight: 700; white-space: nowrap; }
.home-banners-table th:nth-child(1) { width: 142px; }
.home-banners-table th:nth-child(2) { width: 260px; }
.home-banners-table th:nth-child(3) { width: 84px; }
.home-banners-table th:nth-child(4), .home-banners-table th:nth-child(6) { width: 62px; }
.home-banners-table th:nth-child(5) { width: 76px; }
.home-banners-table th:last-child { width: 210px; }
.home-banners-table tbody tr:last-child td { border-bottom: 0; }
.home-banner-thumb { width: 116px; aspect-ratio: 5.333 / 1; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 4px; color: var(--admin-muted); background: #eef4f8; font-size: 10px; }
.home-banner-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-banner-copy { min-width: 0; }
.home-banner-copy strong, .home-banner-copy span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-banner-copy strong { color: var(--admin-ink); font-size: 13px; line-height: 1.45; white-space: nowrap; }
.home-banner-copy span { margin-top: 5px; color: var(--admin-muted); overflow-wrap: anywhere; white-space: nowrap; }
.home-banner-status { display: inline-flex; align-items: center; min-width: 52px; justify-content: center; padding: 5px 9px; border-radius: 4px; color: #657486; background: #eef2f5; font-size: 12px; font-weight: 600; white-space: nowrap; }
.home-banner-status.is-enabled { color: #16864a; background: #e3f7eb; }
.home-banner-row-actions { display: flex; flex-wrap: wrap; gap: 7px 10px; }
.home-banner-row-actions button:disabled { color: #aeb8bf; cursor: not-allowed; }
.home-banner-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.home-banner-form { display: grid; gap: 17px; }
.home-banner-form > label { min-width: 0; display: grid; gap: 7px; color: var(--admin-text); font-size: 12px; font-weight: 600; }
.home-banner-form input, .home-banner-form select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid var(--admin-line-strong); border-radius: 4px; color: var(--admin-ink); background: #fff; font: inherit; font-weight: 400; }
.home-banner-form input:focus, .home-banner-form select:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(23,75,120,.12); outline: 0; }
.home-banner-form label small, .home-banner-upload-actions span { color: var(--admin-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.home-banner-media-preview { min-height: 112px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--admin-line-strong); border-radius: 6px; color: var(--admin-muted); background: #f6f9fb; }
.home-banner-media-preview img { width: 100%; aspect-ratio: 5.333 / 1; object-fit: cover; }
.official-service-media-preview { min-height: 8rem; max-width: 12rem; }
.official-service-media-preview img { aspect-ratio: 1; object-fit: contain; }
.official-services-table td:nth-child(3) { max-width: 16rem; color: #61728e; }
.official-services-table td:nth-child(4) { max-width: 18rem; color: #1769df; word-break: break-all; }
.home-banner-upload { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--admin-line); background: #fafcfd; }
.home-banner-upload legend { padding: 0 5px; color: var(--admin-ink); font-size: 12px; font-weight: 700; }
.home-banner-upload input { padding: 7px; }
.home-banner-upload-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.home-banner-form .form-actions > div { display: flex; gap: 8px; }
.home-banner-form .form-actions .primary-button { margin-top: 0; }
.admin-dialog-open { overflow: hidden; }

.platform-brand-panel { width: min(100%, 880px); margin-top: 24px; border: 1px solid var(--admin-line); background: #fff; }
.platform-brand-panel-heading { padding: 22px 22px 18px; border-bottom: 1px solid var(--admin-line); }
.platform-brand-panel-heading h2 { margin: 2px 0 6px; color: var(--admin-ink); font-size: 18px; }
.platform-brand-panel-heading p { margin: 0; color: var(--admin-muted); font-size: 13px; line-height: 1.6; }
.platform-brand-form { padding: 2px 22px 22px; }
.platform-brand-form fieldset { min-width: 0; margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--admin-line); }
.platform-brand-form legend { width: 100%; margin: 0 0 13px; padding: 0; color: var(--admin-ink); font-size: 14px; font-weight: 700; }
.platform-brand-field { display: grid; max-width: 520px; gap: 7px; color: var(--admin-text); font-size: 13px; font-weight: 600; }
.platform-brand-field input { width: 100%; height: var(--admin-control-height); padding: 0 11px; border: 1px solid var(--admin-line-strong); border-radius: 5px; color: var(--admin-ink); font: inherit; font-weight: 400; }
.platform-brand-field input:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(23,75,120,.12); outline: 0; }
.platform-brand-field small { color: var(--admin-muted); font-size: 12px; font-weight: 400; }
.platform-logo-editor { display: flex; align-items: center; gap: 18px; }
.platform-logo-preview { width: 96px; height: 96px; max-width: 96px; max-height: 96px; display: grid; flex: 0 0 96px; place-items: center; overflow: hidden; contain: layout paint; border: 1px solid var(--admin-line-strong); border-radius: 8px; color: #fff; background: var(--admin-primary); font-size: 40px; font-weight: 700; }
.platform-logo-preview img, .platform-brand-live-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.platform-logo-actions { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 10px; }
.platform-logo-actions > p:first-child { width: 100%; margin: 0; color: var(--admin-muted); font-size: 13px; }
.file-picker { min-height: var(--admin-control-height); position: relative; display: inline-flex; align-items: center; padding: 0 14px; overflow: hidden; border: 1px solid var(--admin-line-strong); border-radius: 6px; color: var(--admin-text); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.file-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.platform-logo-actions .text-button { min-height: var(--admin-control-height); padding: 0 3px; }
.platform-logo-actions .form-message { width: 100%; margin: 0; }
.platform-brand-preview-fieldset { border-bottom: 0 !important; }
.platform-brand-live-preview { min-height: 64px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--admin-line); background: #f8fafb; }
.platform-brand-live-logo { width: 38px; height: 38px; max-width: 38px; max-height: 38px; display: grid; flex: 0 0 38px; place-items: center; overflow: hidden; contain: layout paint; border-radius: 6px; color: #fff; background: var(--admin-primary); font-size: 19px; font-weight: 700; }
.platform-brand-live-preview strong { min-width: 0; overflow: hidden; color: var(--admin-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.platform-brand-live-preview span:last-child { margin-left: auto; color: var(--admin-muted); font-size: 12px; white-space: nowrap; }
.platform-brand-form-actions { align-items: center; justify-content: space-between; }
.platform-brand-form-actions p { margin: 0; color: var(--admin-muted); font-size: 12px; }
.platform-brand-form-actions .primary-button { margin-top: 0; }

.platform-portal-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #72849a; font-size: 14px; }
.platform-portal-breadcrumb a { color: inherit; text-decoration: none; }
.platform-portal-breadcrumb a:hover, .platform-portal-breadcrumb a:focus-visible { color: var(--admin-accent); text-decoration: underline; }
.platform-portal-breadcrumb strong { color: #52677f; font-weight: 600; }
.platform-portal-tabs { display: flex; min-width: 0; margin-top: 24px; overflow-x: auto; border: 1px solid #dbe4ee; border-radius: 6px 6px 0 0; background: #f8fafc; }
.platform-portal-tab { min-width: 116px; min-height: 48px; position: relative; flex: 1 0 auto; padding: 0 18px; border: 0; border-right: 1px solid var(--admin-line); color: var(--admin-text); background: transparent; font: inherit; font-weight: 600; white-space: nowrap; }
.platform-portal-tab:last-child { border-right: 0; }
.platform-portal-tab:hover:not(.is-current), .platform-portal-tab:focus-visible:not(.is-current) { color: var(--admin-primary-deep); background: #f1f6fa; outline: 0; }
.platform-portal-tab.is-current { color: var(--admin-accent); background: #fff; }
.platform-portal-tab.is-current::after { position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; border-radius: 3px 3px 0 0; background: var(--admin-accent); content: ""; }
.platform-portal-tabs + .platform-brand-panel, .platform-portal-tabs + .platform-brand-panel + .portal-pending-panel { margin-top: 0; border-top: 0; }
.platform-portal-tabs + .platform-brand-panel + .portal-navigation-panel,
.platform-portal-tabs + .platform-brand-panel + .portal-navigation-panel + .platform-portal-banner-mount .home-banners-panel,
.platform-portal-tabs + .platform-brand-panel + .portal-navigation-panel + .platform-portal-banner-mount + .portal-pending-panel { margin-top: 0; border-top: 0; }
.platform-portal-banner-mount > .home-banners-panel { margin: 0; }
.portal-navigation-panel, .platform-portal-banner-mount > .home-banners-panel, .announcements-panel, .official-services-panel { background: #fff; box-shadow: 0 3px 14px rgba(30, 65, 105, .06); }
.announcements-panel { border-top: 0; }
.announcements-filters { display: flex; align-items: center; gap: 12px; padding: 18px 22px 16px; border-top: 1px solid #e3eaf1; border-bottom: 1px solid #e3eaf1; background: #fff; }
.announcements-filters label { min-width: 0; margin: 0; }
.announcements-filters input, .announcements-filters select { height: 42px; margin: 0; border-color: #dce5ee; background: #fff; color: #394d66; }
.announcements-search { width: min(32vw, 392px); position: relative; flex: 1 1 272px; }
.announcements-search svg { width: 18px; height: 18px; position: absolute; top: 12px; left: 14px; fill: none; stroke: #7a8ca1; stroke-linecap: round; stroke-width: 1.8; pointer-events: none; }
.announcements-search input { width: 100%; padding-left: 42px; }
.announcements-filters select { width: 156px; }
.announcements-date { display: flex; align-items: center; gap: 8px; min-width: 286px; padding: 0 12px; border: 1px solid #dce5ee; border-radius: 5px; color: #8292a6; }
.announcements-date input { width: 118px; padding: 0; border: 0; outline: 0; }
.announcements-filter-actions { display: flex; gap: 8px; margin-left: auto; }
.announcements-filter-actions .primary-button, .announcements-filter-actions .secondary-button { min-height: 42px; margin: 0; padding: 0 18px; }
.announcements-content { min-width: 0; padding: 16px 22px 0; }
.announcements-table { min-width: 1000px; }
.announcements-table th:nth-child(1) { width: 68px; text-align: center; }
.announcements-table th:nth-child(2) { width: 31%; }
.announcements-table th:nth-child(3) { width: 17%; }
.announcements-table th:nth-child(4) { width: 92px; text-align: center; }
.announcements-table th:nth-child(5), .announcements-table th:nth-child(6) { width: 166px; }
.announcements-table th:nth-child(7) { width: 92px; text-align: center; }
.announcements-table td:first-child, .announcements-table td:nth-child(4), .announcements-table td:last-child { text-align: center; }
.announcement-title-cell { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.announcement-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 28px; padding: 0 9px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.announcement-status.is-published { color: #159456; background: #e5f8ed; }
.announcement-status.is-draft { color: #a77010; background: #fff5dc; }
.announcement-status.is-unpublished { color: #63758c; background: #eef2f6; }
.announcement-row-actions { display: flex; justify-content: center; }
.announcements-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 20px 22px 22px; color: #52677f; font-size: 13px; }
.announcements-pagination > div { display: flex; gap: 8px; }
.pagination-button { width: 34px; height: 32px; border: 1px solid #dce5ee; border-radius: 5px; color: #3970ba; background: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.pagination-button:hover:not(:disabled), .pagination-button:focus-visible:not(:disabled) { border-color: #4b96ef; color: #0877f9; outline: 0; }
.pagination-button:disabled { color: #aab6c4; cursor: not-allowed; }
.portal-navigation-table { min-width: 1060px; }
.portal-navigation-table th:nth-child(1) { width: 64px; text-align: center; }
.portal-navigation-table th:nth-child(2) { width: 130px; }
.portal-navigation-table th:nth-child(3) { width: 140px; }
.portal-navigation-table th:nth-child(4) { width: 198px; }
.portal-navigation-table th:nth-child(5), .portal-navigation-table th:nth-child(6) { width: 100px; text-align: center; }
.portal-navigation-table th:nth-child(7) { width: 82px; text-align: center; }
.portal-navigation-table th:nth-child(8) { width: 94px; text-align: center; }
.portal-navigation-table th:last-child { width: 118px; }
.portal-navigation-table td:nth-child(1), .portal-navigation-table td:nth-child(5), .portal-navigation-table td:nth-child(6), .portal-navigation-table td:nth-child(7), .portal-navigation-table td:nth-child(8) { text-align: center; }
.portal-navigation-drag { display: inline-block; color: #46617c; font-size: 23px; line-height: 1; letter-spacing: -4px; transform: rotate(90deg); cursor: grab; }
.portal-visibility-switch { width: 48px; height: 26px; position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 999px; color: transparent; background: #b9c5d1; font-size: 0; cursor: pointer; transition: background .16s ease; }
.portal-visibility-switch::after { width: 20px; height: 20px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(21, 44, 70, .22); content: ""; transition: transform .16s ease; }
.portal-visibility-switch.is-on { background: #0877f9; }
.portal-visibility-switch.is-on::after { transform: translateX(22px); }
.portal-visibility-switch:focus-visible { outline: 3px solid rgba(8, 119, 249, .25); outline-offset: 2px; }
.portal-navigation-sort { width: 52px; height: 34px; padding: 0 6px; border: 1px solid #d9e2eb; border-radius: 5px; color: #2d4058; background: #fff; font: inherit; text-align: center; }
.portal-navigation-sort:focus { border-color: var(--admin-accent); outline: 2px solid rgba(8, 119, 249, .12); }
.portal-navigation-tip { margin: 18px 0 0; padding: 12px 16px; border-radius: 4px; color: #3970ba; background: #f1f7ff; font-size: 13px; line-height: 1.55; }
.portal-navigation-visibility { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 0; padding: 13px 15px; border: 1px solid var(--admin-line); background: #fafcfd; }
.portal-navigation-visibility legend { padding: 0 5px; color: var(--admin-ink); font-size: 12px; font-weight: 700; }
.portal-navigation-visibility label { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-text); font-size: 13px; font-weight: 500; }
.portal-navigation-visibility input { width: 16px; height: 16px; accent-color: var(--admin-primary); }
.portal-pending-panel { min-height: 300px; padding: 32px; border: 1px solid var(--admin-line); border-top: 0; background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.portal-pending-panel h2 { margin: 4px 0 10px; color: var(--admin-ink); font-size: 20px; }
.portal-pending-panel p:last-child { max-width: 580px; margin: 0; color: var(--admin-muted); line-height: 1.7; }

.admin-header .header-scope, .admin-header .header-account, .admin-header .header-account-text, .admin-header .text-button { color: #dce9f3; }
.admin-header .header-account-name { color: #fff; }
.admin-header .header-divider { background: rgba(220,233,243,.3); }
.admin-header .text-button:hover:not(:disabled) { color: #fff; }

@media (max-width: 1080px) {
  .home-content-workspace { grid-template-columns: minmax(0, 1fr); }
  .home-content-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .platform-logo-editor { align-items: flex-start; flex-direction: column; } .platform-brand-live-preview span:last-child { display: none; } .platform-brand-form-actions { align-items: flex-start; flex-direction: column; } }

@media (max-width: 760px) {
  .home-content-modules, .home-settings-grid, .home-settings-grid-three { grid-template-columns: minmax(0, 1fr); }
  .home-settings-panel-heading, .home-settings-actions { align-items: flex-start; flex-direction: column; }
  .home-banners-heading-actions { justify-content: flex-start; }
  .announcements-filters { align-items: stretch; flex-direction: column; }
  .announcements-search, .announcements-filters select, .announcements-date { width: 100%; }
  .announcements-date { min-width: 0; justify-content: space-between; }
  .announcements-date input { flex: 1; min-width: 0; }
  .announcements-filter-actions { margin-left: 0; }
  .home-banner-dialog { width: 100vw; max-height: 100dvh; }
}

@media (max-width: 900px) {
  .platform-portal-tab { min-width: 108px; }
}
