/* Neworia control room: navy surfaces, steel type, electric cyan and cool blue. */
@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/albert-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.dashboard-v3:not(.light) {
  color-scheme: dark;
  --bg: #071522;
  --sidebar: #141b22;
  --sidebar-line: #2e3c47;
  --panel: #1b232b;
  --surface: #1b232b;
  --surface-raised: #252e36;
  --panel-2: #252e36;
  --control: #171f27;
  --line: #1b394b;
  --text: #f2f1ed;
  --muted: #a6c0cc;
  --blue: #37b9e8;
  --blue-light: #a7e8ff;
  --focus: #72d3fb;
  --green: #52c99e;
  --red: #fa7780;
  --amber: #73d4f7;
  --surface-shadow: none;
  background: var(--bg);
  color: var(--text);
}
body.dashboard-v3.light {
  color-scheme: light;
  --bg: #e9ebed;
  --sidebar: #e4e0d7;
  --sidebar-line: #c9bda9;
  --panel: #fff;
  --surface: #fff;
  --surface-raised: #f4f0e8;
  --panel-2: #f4f4f2;
  --control: #fff;
  --line: #d5cec2;
  --text: #292720;
  --muted: #615c51;
  --blue: #087eaa;
  --blue-light: #075d7c;
  --focus: #087eaa;
  --green: #138766;
  --red: #bd4652;
  --amber: #087eaa;
  --surface-shadow: none;
  background: var(--bg);
  color: var(--text);
}

body.dashboard-v3 { font-family: "Albert Sans", "Segoe UI", sans-serif; font-optical-sizing: auto; font-size: 14px; line-height: 1.5; }
body.dashboard-v3 ::selection { background: color-mix(in srgb, var(--blue) 32%, transparent); color: var(--text); }
body.dashboard-v3 :where(button, a, input, select, textarea, [role="button"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body.dashboard-v3 .layout { min-height: 100dvh; grid-template-columns: 246px minmax(0, 1fr); background: var(--bg); }
body.dashboard-v3 .sidebar { width: 246px; padding: 14px 10px 12px; border-color: var(--sidebar-line); background: var(--sidebar); }
body.dashboard-v3 .sidebar-brand-area { padding: 3px 7px 12px; }
body.dashboard-v3 .brand { gap: 11px; padding: 0 3px 9px; }
body.dashboard-v3 .brand-mark.small { width: 38px; height: 38px; border: 0; border-radius: 8px; }
body.dashboard-v3 .brand b { font-size: 14px; letter-spacing: .075em; }
body.dashboard-v3 .brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
body.dashboard-v3 .sidebar-workspace { border-color: var(--sidebar-line); }
body.dashboard-v3 .side-navigation { padding: 9px 2px 12px; scrollbar-color: var(--line) transparent; }
body.dashboard-v3 .module-search { top: -9px; gap: 7px; margin: -9px -2px 12px; padding: 12px 9px 11px; border-color: var(--sidebar-line); background: var(--sidebar); }
body.dashboard-v3 .module-search > span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
body.dashboard-v3 .module-search input { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--control); color: var(--text); font-size: 13px; }
body.dashboard-v3 .nav-group { gap: 2px; margin-bottom: 9px; }
body.dashboard-v3 .nav-group-toggle { min-height: 40px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
body.dashboard-v3 .nav-group-toggle:hover, body.dashboard-v3 .nav-group.expanded > .nav-group-toggle { background: color-mix(in srgb, var(--panel-2) 72%, transparent); color: var(--text); }
body.dashboard-v3 .nav-group-chevron { color: var(--muted); }
body.dashboard-v3 .nav-item { min-height: 40px; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; }
body.dashboard-v3 .nav-item:hover { background: var(--panel-2); color: var(--text); }
body.dashboard-v3 .nav-item.active { background: color-mix(in srgb, var(--blue) 12%, var(--panel)); box-shadow: none; /* taste-skill-ignore: remove the old inset stripe; the selected fill carries state */ color: var(--text); }
body.dashboard-v3 .nav-item.active > span { color: var(--blue); }
body.dashboard-v3 .sidebar-bottom { padding-top: 10px; border-color: var(--sidebar-line); background: var(--sidebar); }
body.dashboard-v3 .online { color: var(--muted); font-size: 11px; }
body.dashboard-v3 .online i { background: var(--green); box-shadow: none; /* taste-skill-ignore: remove the old status halo */ }
body.dashboard-v3 .logout { min-height: 38px; border-radius: 6px; color: var(--muted); font-size: 12px; }
body.dashboard-v3 .logout:hover { background: var(--panel-2); color: var(--text); }

body.dashboard-v3 .main { min-width: 0; max-width: none; padding: 0 clamp(22px, 3vw, 46px) 48px; }
body.dashboard-v3 .topbar { min-height: 68px; margin: 0 calc(-1 * clamp(22px, 3vw, 46px)) 28px; padding: 9px clamp(22px, 3vw, 46px); border-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
body.dashboard-v3 .topbar .breadcrumbs { margin-bottom: 1px; color: var(--muted); font-size: 10px; letter-spacing: .055em; }
body.dashboard-v3 .topbar h1 { margin: 0; color: var(--text); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
body.dashboard-v3 .topbar-actions { gap: 12px; }
body.dashboard-v3 .topbar-server-picker { width: min(230px, 24vw); padding-right: 12px; border-color: var(--line); }
body.dashboard-v3 .topbar-server-picker select { min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--panel); color: var(--text); font-size: 13px; }
body.dashboard-v3 .user-chip { max-width: 200px; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font-size: 12px; }
body.dashboard-v3 .user-chip img { width: 30px; height: 30px; }

body.dashboard-v3 .view { min-width: 0; animation: none; }
body.dashboard-v3 .section-intro, body.dashboard-v3 .overview-page-heading { align-items: flex-end; gap: 18px; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
body.dashboard-v3 .section-intro h2, body.dashboard-v3 .overview-page-heading h2 { margin: 0; color: var(--text); font-size: 25px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
body.dashboard-v3 .section-intro p, body.dashboard-v3 .overview-page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
body.dashboard-v3 .overview-page-heading { align-items: center; }
body.dashboard-v3 .overview-page-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.dashboard-v3 .overview-page-heading p strong { color: var(--text); font-weight: 600; }
body.dashboard-v3 .overview-separator { color: var(--muted); }
body.dashboard-v3 .overview-page-actions { gap: 10px; }
body.dashboard-v3 .health-pill { min-height: 36px; border-radius: 6px; }

body.dashboard-v3 .panel, body.dashboard-v3 .stat-card, body.dashboard-v3 .login-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: none; /* taste-skill-ignore: flatten legacy card elevation */ }
body.dashboard-v3 .panel { padding: 0; }
body.dashboard-v3 .panel-head { min-width: 0; align-items: center; gap: 14px; margin: 0; padding: 17px 18px; border-bottom: 1px solid var(--line); }
body.dashboard-v3 .panel-head > div { min-width: 0; }
body.dashboard-v3 .panel h3 { color: var(--text); font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
body.dashboard-v3 .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
body.dashboard-v3 .panel > :not(.panel-head) { min-width: 0; }
body.dashboard-v3 .settings-panel { padding: 20px; }
body.dashboard-v3 .settings-panel:has(> .panel-head) { padding: 0; }
body.dashboard-v3 .editor-panel { padding: 18px; }
body.dashboard-v3 .applications-settings, body.dashboard-v3 .applications-question-panel { padding: 18px; }
body.dashboard-v3 .appeals-login, body.dashboard-v3 .appeals-form-panel { padding: 18px; }
body.dashboard-v3 .appeals-mine-panel:has(> .panel-head) { padding: 0; }
body.dashboard-v3 .content-grid, body.dashboard-v3 .events-grid, body.dashboard-v3 .applications-layout, body.dashboard-v3 .logging-studio-grid { gap: 18px; }
body.dashboard-v3 .module-card { overflow: visible; border: 1px solid var(--line); }
body.dashboard-v3 .module-fields { gap: 18px 22px; padding: 20px; }
body.dashboard-v3 .module-fields > label, body.dashboard-v3 .settings-panel > label { min-width: 0; color: var(--text); font-size: 13px; font-weight: 550; line-height: 1.45; }
body.dashboard-v3 .input, body.dashboard-v3 textarea.input, body.dashboard-v3 select.input, body.dashboard-v3 .multi-select-trigger, body.dashboard-v3 .form-question { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background-color: var(--control); color: var(--text); }
body.dashboard-v3 select.input { padding-right: 36px; }
body.dashboard-v3 .multi-select-trigger { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 1px 12px; padding: 9px 12px; text-align: left; }
body.dashboard-v3 .multi-select-trigger > span { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-v3 .multi-select-trigger > small { grid-column: 1; color: var(--muted); font-size: 11px; }
body.dashboard-v3 .multi-select-trigger > svg { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .16s ease; }
body.dashboard-v3 .multi-select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
body.dashboard-v3 .multi-select-dialog { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
body.dashboard-v3 .multi-select-dialog::backdrop { background: rgb(3 12 19 / 68%); }
body.dashboard-v3 .multi-select-card { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; gap: 12px; max-height: min(760px, calc(100dvh - 32px)); padding: 20px; overflow: hidden; background: var(--panel); color: var(--text); }
body.dashboard-v3 .multi-select-head { align-items: center; padding: 0 34px 2px 0; }
body.dashboard-v3 .multi-select-head h2 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; }
body.dashboard-v3 .multi-select-options { min-height: 0; max-height: min(52dvh, 480px); }
body.dashboard-v3 .multi-select-option { border-radius: 7px; background: var(--surface-raised); color: var(--text); }
body.dashboard-v3 .multi-select-option.selected { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); background: color-mix(in srgb, var(--blue) 12%, var(--surface-raised)); }
body.dashboard-v3 .multi-select-selection, body.dashboard-v3 .multi-select-tools { color: var(--muted); }
body.dashboard-v3 .multi-select-actions { gap: 10px; padding-top: 12px; border-color: var(--line); }
body.dashboard-v3 .multi-select-actions .button { min-height: 44px; }
body.dashboard-v3 textarea.input { min-height: 112px; }
body.dashboard-v3 select.input option, body.dashboard-v3 select option { background: var(--panel); color: var(--text); }
body.dashboard-v3 .input:focus, body.dashboard-v3 textarea.input:focus, body.dashboard-v3 select.input:focus, body.dashboard-v3 .multi-select-trigger:focus-visible { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 22%, transparent); outline-offset: 1px; box-shadow: none; /* taste-skill-ignore: remove legacy focus glow; visible outline remains */ }
body.dashboard-v3 .button { min-height: 40px; border-radius: 7px; font-weight: 650; transition: background-color .14s ease, border-color .14s ease, color .14s ease; }
body.dashboard-v3 .button:hover:not(:disabled) { transform: none; filter: none; }
body.dashboard-v3 .button.primary, body.dashboard-v3 .primary:not(.badge):not(.status-badge) { border: 1px solid var(--blue); background: var(--blue); color: #04121d; }
body.dashboard-v3 .button.ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
body.dashboard-v3 .button.ghost:hover:not(:disabled) { border-color: var(--focus); background: var(--panel-2); }
body.dashboard-v3 .text-button { min-height: 38px; border-radius: 6px; color: var(--blue-light); }
body.dashboard-v3 .text-button:hover { background: var(--panel-2); color: var(--text); }
body.dashboard-v3 .notice { border-color: var(--line); border-radius: 7px; background: var(--panel); color: var(--text); }

/* The queue owns its filters and rows; operational context is a separate section. */
body.dashboard-v3 #overview-view .overview-command-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 26px; }
body.dashboard-v3 #overview-view .overview-tickets { min-width: 0; overflow: hidden; padding: 0; border-color: var(--line); }
body.dashboard-v3 #overview-view .overview-tickets > .panel-head { margin: 0; padding: 16px 18px 13px; }
body.dashboard-v3 #overview-view .overview-tickets .overview-focus { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-raised); }
body.dashboard-v3 #overview-view .overview-focus .focus-card { display: grid; min-width: 0; min-height: 74px; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 11px 15px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); text-align: left; }
body.dashboard-v3 #overview-view .overview-focus .focus-card:last-child { border-right: 0; }
body.dashboard-v3 #overview-view .overview-focus .focus-card:hover { background: color-mix(in srgb, var(--blue) 9%, var(--surface-raised)); }
body.dashboard-v3 #overview-view .overview-focus .focus-card > span { min-width: 0; }
body.dashboard-v3 #overview-view .overview-focus .focus-card small { color: var(--muted); font-size: 12px; font-weight: 550; }
body.dashboard-v3 #overview-view .overview-focus .focus-card strong { color: var(--text); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.dashboard-v3 #overview-view .overview-focus .focus-card em, body.dashboard-v3 #overview-view .overview-focus .focus-icon { display: none !important; }
body.dashboard-v3 #overview-view .overview-focus .focus-urgent strong { color: var(--red); }
body.dashboard-v3 #overview-view .overview-focus .focus-unassigned strong { color: var(--amber); }
body.dashboard-v3 #overview-view .overview-focus .focus-active strong { color: var(--blue-light); }
body.dashboard-v3 #overview-view .overview-focus .focus-completed strong { color: var(--muted); }
body.dashboard-v3 #overview-view .overview-tickets .ticket-list { min-height: 0; padding: 0 18px; }
body.dashboard-v3 #overview-view .overview-tickets .empty-state { min-height: 94px; padding: 26px 8px; color: var(--muted); text-align: left; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row { min-height: 58px; gap: 14px; padding: 10px 2px; border-top: 1px solid var(--line); }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row:hover { background: transparent; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row:hover .ticket-name { color: var(--blue-light); }
body.dashboard-v3 #overview-view .overview-tickets .ticket-name { color: var(--text); font-size: 13px; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-meta, body.dashboard-v3 #overview-view .overview-tickets .ticket-assignee { color: var(--muted); }
body.dashboard-v3 #overview-view .overview-section-heading { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 -10px; }
body.dashboard-v3 #overview-view .overview-section-heading h3 { margin: 0; color: var(--text); font-size: 18px; font-weight: 650; }
body.dashboard-v3 #overview-view .overview-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
body.dashboard-v3 #overview-view .overview-secondary-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
body.dashboard-v3 #overview-view .overview-team-panel { grid-column: auto; grid-row: auto; min-width: 0; width: 100%; overflow: hidden; }
body.dashboard-v3 #overview-view .overview-team-panel .panel-head select { width: auto; min-width: 138px; }
body.dashboard-v3 #overview-view .overview-team-panel .table-panel { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table { min-width: 650px; }
body.dashboard-v3 #overview-view .overview-distribution, body.dashboard-v3 #overview-view .distribution { padding: 7px 16px; }
body.dashboard-v3 #overview-view .distribution-row { padding: 9px 0; }
body.dashboard-v3 #overview-view .attention-list, body.dashboard-v3 #overview-view .type-summary { padding: 6px 14px; }
body.dashboard-v3 #overview-view .attention-list > button { min-height: 54px; }
body.dashboard-v3 #overview-view .type-chip { min-height: 43px; }
body.dashboard-v3 #overview-view .rating-insights { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 0; }
body.dashboard-v3 #overview-view .rating-insights.hidden { display: none; }
body.dashboard-v3 #overview-view .rating-insights .panel { min-width: 0; overflow: hidden; }
body.dashboard-v3 #overview-view .rating-recent-panel { grid-column: 1 / -1; }
body.dashboard-v3 #overview-view .rating-list { padding: 6px 17px; }
body.dashboard-v3 #overview-view .rating-row { padding: 12px 0; }
body.dashboard-v3 #overview-view .overview-metrics { margin-top: 28px; }
body.dashboard-v3 #overview-view .overview-metrics-heading { align-items: baseline; margin-bottom: 13px; }
body.dashboard-v3 #overview-view .overview-metrics-heading h3 { color: var(--text); font-size: 18px; font-weight: 650; }
body.dashboard-v3 #overview-view .overview-metrics .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
body.dashboard-v3 #overview-view .overview-metrics .stat-card { min-height: 80px; padding: 12px 15px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
body.dashboard-v3 #overview-view .overview-metrics .stat-card:last-child { border-right: 0; }
body.dashboard-v3 #overview-view .overview-metrics .stat-value { margin-top: 7px; color: var(--text); font-size: 21px; font-weight: 600; }
body.dashboard-v3 #overview-view .overview-metrics .stat-top, body.dashboard-v3 #overview-view .overview-metrics .stat-sub { color: var(--muted); font-size: 11px; }

/* Tables and repeatable settings rows share a stable visual rhythm. */
body.dashboard-v3 .table-panel, body.dashboard-v3 .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
body.dashboard-v3 .ticket-table { width: 100%; border-collapse: collapse; }
body.dashboard-v3 .ticket-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
body.dashboard-v3 .ticket-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
body.dashboard-v3 .ticket-table tr:last-child td { border-bottom: 0; }
body.dashboard-v3 .table-panel table { min-width: 620px; }
body.dashboard-v3 .tickets-view #ticket-table { min-width: 760px; }
body.dashboard-v3 .ticket-table td:first-child, body.dashboard-v3 .ticket-table th:first-child { padding-left: 14px; }
body.dashboard-v3 .ticket-table td:last-child, body.dashboard-v3 .ticket-table th:last-child { padding-right: 14px; }
body.dashboard-v3 .invite-reward-row, body.dashboard-v3 .linked-role-row, body.dashboard-v3 .team-role-row, body.dashboard-v3 .counter-row, body.dashboard-v3 .role-option-row { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
body.dashboard-v3 .badge { min-height: 23px; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
body.dashboard-v3 .ticket-meta, body.dashboard-v3 .muted { color: var(--muted); }

@media (min-width: 761px) and (max-width: 1120px) {
  body.dashboard-v3 .layout { grid-template-columns: 218px minmax(0, 1fr); }
  body.dashboard-v3 .sidebar { width: 218px; }
  body.dashboard-v3 .main { padding-right: 22px; padding-left: 22px; }
  body.dashboard-v3 .topbar { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; }
  body.dashboard-v3 .topbar-server-picker { width: 150px; }
  body.dashboard-v3 #overview-view .overview-secondary-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  body.dashboard-v3 #overview-view .overview-team-panel { grid-column: 1 / -1; }
  body.dashboard-v3 #overview-view .rating-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .rating-recent-panel { grid-column: 1 / -1; }
  body.dashboard-v3 .content-grid, body.dashboard-v3 .events-grid, body.dashboard-v3 .applications-layout, body.dashboard-v3 .logging-studio-grid { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-v3 .module-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.dashboard-v3 .layout { display: block; min-height: 100dvh; }
  body.dashboard-v3 .sidebar { display: none; }
  body.dashboard-v3 .main { width: 100%; padding: 0 14px calc(92px + env(safe-area-inset-bottom)); }
  body.dashboard-v3 .topbar { min-height: 58px; margin: 0 -14px 20px; padding: calc(7px + env(safe-area-inset-top)) 14px 8px; }
  body.dashboard-v3 .topbar h1 { font-size: 17px; }
  body.dashboard-v3 .topbar .breadcrumbs { max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  body.dashboard-v3 .topbar-actions { max-width: 55vw; gap: 7px; }
  body.dashboard-v3 .mobile-server-picker { width: clamp(104px, 31vw, 148px); }
  body.dashboard-v3 .mobile-server-picker select { min-width: 0; min-height: 42px; padding: 6px 27px 6px 9px; }
  body.dashboard-v3 .user-chip { flex: 0 0 38px; width: 38px; min-width: 38px; max-width: 38px; min-height: 38px; justify-content: center; overflow: hidden; padding: 3px; }
  body.dashboard-v3 .user-chip img { width: 30px; height: 30px; }
  body.dashboard-v3 .user-chip span { display: none; }
  body.dashboard-v3 .section-intro, body.dashboard-v3 .overview-page-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 16px; padding-bottom: 13px; }
  body.dashboard-v3 .section-intro h2, body.dashboard-v3 .overview-page-heading h2 { font-size: 23px; }
  body.dashboard-v3 .section-intro p, body.dashboard-v3 .overview-page-heading p { font-size: 12px; }
  body.dashboard-v3 .overview-page-actions { width: 100%; justify-content: space-between; }
  body.dashboard-v3 .overview-page-actions .button { min-height: 42px; }
  body.dashboard-v3 .tickets-view #ticket-table { min-width: 0; width: 100%; overflow: visible; }
  body.dashboard-v3 .tickets-view #ticket-table > .ticket-table { display: block; width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; }
  body.dashboard-v3 .overview-command-layout { gap: 20px; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head { align-items: flex-start; padding: 14px 14px 11px; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head .text-button { min-height: 42px; padding-inline: 8px; white-space: nowrap; }
  body.dashboard-v3 #overview-view .overview-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .overview-focus .focus-card { min-height: 68px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  body.dashboard-v3 #overview-view .overview-focus .focus-card:nth-child(2) { border-right: 0; }
  body.dashboard-v3 #overview-view .overview-focus .focus-card:nth-child(n+3) { border-bottom: 0; }
  body.dashboard-v3 #overview-view .overview-section-heading { display: block; margin: 0 0 -9px; }
  body.dashboard-v3 #overview-view .overview-section-heading h3 { font-size: 17px; }
  body.dashboard-v3 #overview-view .overview-section-heading p { margin-top: 3px; }
  body.dashboard-v3 #overview-view .overview-secondary-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  body.dashboard-v3 #overview-view .overview-team-panel { grid-column: 1; }
  body.dashboard-v3 #overview-view .overview-team-panel .panel-head { align-items: flex-start; flex-direction: column; }
  body.dashboard-v3 #overview-view .overview-team-panel .panel-head select { width: 100%; }
  body.dashboard-v3 #overview-view .overview-team-panel .ticket-table { min-width: 620px; }
  body.dashboard-v3 #overview-view .rating-insights { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.dashboard-v3 #overview-view .rating-recent-panel { grid-column: auto; }
  body.dashboard-v3 #overview-view .overview-metrics { margin-top: 23px; }
  body.dashboard-v3 #overview-view .overview-metrics-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  body.dashboard-v3 #overview-view .overview-metrics .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .overview-metrics .stat-card { min-height: 72px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  body.dashboard-v3 #overview-view .overview-metrics .stat-card:nth-child(2n) { border-right: 0; }
  body.dashboard-v3 #overview-view .overview-metrics .stat-card:nth-last-child(-n+2) { border-bottom: 0; }
  body.dashboard-v3 .panel-head { align-items: flex-start; gap: 9px; padding: 14px; }
  body.dashboard-v3 .panel h3 { font-size: 15px; }
  body.dashboard-v3 .module-card { overflow: hidden; }
  body.dashboard-v3 .module-fields, body.dashboard-v3 .settings-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  body.dashboard-v3 .settings-panel:has(> .panel-head), body.dashboard-v3 .appeals-mine-panel:has(> .panel-head) { padding: 0; }
  body.dashboard-v3 .editor-panel, body.dashboard-v3 .applications-settings, body.dashboard-v3 .applications-question-panel, body.dashboard-v3 .appeals-login, body.dashboard-v3 .appeals-form-panel { padding: 14px; }
  body.dashboard-v3 .module-fields > * { min-width: 0; }
  body.dashboard-v3 .module-fields > :is(.editor-heading, .editor-actions, .ticket-meta, .empty-state, .module-list, .linked-role-list, .invite-reward-rows, .counter-rows, .team-role-rows, .role-option-rows, .question-list, .resource-list, .resource-filters, .teamlist-preview, .preview-label, [id$="-rows"], [id$="-list"]), body.dashboard-v3 .module-fields > label:has(textarea), body.dashboard-v3 .module-fields > label:has(select[multiple]) { grid-column: 1; }
  body.dashboard-v3 .content-grid, body.dashboard-v3 .events-grid, body.dashboard-v3 .applications-layout, body.dashboard-v3 .logging-studio-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  body.dashboard-v3 .mobile-tabbar { position: fixed; z-index: 40; inset: auto 0 0; display: grid !important; width: 100%; min-height: 62px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--sidebar); box-shadow: 0 -8px 22px #0002; /* taste-skill-ignore: separate the fixed navigation from scrolling content */ }
  body.dashboard-v3 .mobile-tab { min-height: 48px; gap: 4px; border-radius: 7px; color: var(--muted); }
  body.dashboard-v3 .mobile-tab.active { background: var(--panel-2); color: var(--text); }
  body.dashboard-v3 .mobile-tab small { font-size: 11px; }
  body.dashboard-v3 .multi-select-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: 82dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 14px 14px 0 0; }
  body.dashboard-v3 .multi-select-card { max-height: 82dvh; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  body.dashboard-v3 .multi-select-options { max-height: min(44dvh, 420px); }
  body.dashboard-v3 .mobile-more-dialog { width: min(520px, calc(100vw - 24px)); max-height: min(82dvh, 760px); margin: auto 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
  body.dashboard-v3 .mobile-more-card { padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  body.dashboard-v3 .main { padding-right: 11px; padding-left: 11px; }
  body.dashboard-v3 .topbar { margin-right: -11px; margin-left: -11px; padding-right: 11px; padding-left: 11px; }
  body.dashboard-v3 .topbar-server-picker { width: 124px; }
  body.dashboard-v3 .overview-page-actions { align-items: flex-start; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head { flex-direction: column; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head .text-button { align-self: flex-end; }
}
@media (pointer: coarse) {
  body.dashboard-v3 :where(button, input:not([type="checkbox"]):not([type="radio"]), select, textarea, [role="button"]) { min-height: 44px; }
  body.dashboard-v3 .nav-item, body.dashboard-v3 .nav-group-toggle { min-height: 44px; }
  body.dashboard-v3 .mobile-tab { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body.dashboard-v3 *, body.dashboard-v3 *::before, body.dashboard-v3 *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  body.dashboard-v3 .topbar, body.dashboard-v3 .mobile-tabbar { background: var(--bg); }
  body.dashboard-v3 .mobile-more-dialog::backdrop { backdrop-filter: none; /* taste-skill-ignore: honor reduced transparency preferences */ }
}

/* Neworia overview: queue first, with each supporting area in its own grid. */
body.dashboard-v3 .main { container: dashboard-main / inline-size; }
body.dashboard-v3 #overview-view { min-width: 0; }
body.dashboard-v3 #overview-view .overview-page-heading { align-items: center; }
body.dashboard-v3 #overview-view .overview-page-heading h2 { font-family: "Albert Sans", "Segoe UI", sans-serif; font-size: clamp(30px, 2.65vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
body.dashboard-v3 #overview-view .overview-focus {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
body.dashboard-v3 #overview-view .overview-focus .focus-card {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
body.dashboard-v3 #overview-view .overview-focus .focus-card:last-child { border-right: 0; }
body.dashboard-v3 #overview-view .overview-focus .focus-card:hover { background: var(--surface-raised); }
body.dashboard-v3 #overview-view .overview-focus .focus-icon { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); color: transparent; }
body.dashboard-v3 #overview-view .overview-focus .focus-icon svg { display: none; }
body.dashboard-v3 #overview-view .overview-focus .focus-urgent .focus-icon { background: var(--red); }
body.dashboard-v3 #overview-view .overview-focus .focus-unassigned .focus-icon { background: var(--amber); }
body.dashboard-v3 #overview-view .overview-focus .focus-completed .focus-icon { background: var(--muted); }
body.dashboard-v3 #overview-view .overview-focus .focus-card > span:last-child { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 8px; }
body.dashboard-v3 #overview-view .overview-focus .focus-card small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-v3 #overview-view .overview-focus .focus-card strong { color: var(--text); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
body.dashboard-v3 #overview-view .overview-focus .focus-card em { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-style: normal; }

body.dashboard-v3 #overview-view .overview-command-layout { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
body.dashboard-v3 #overview-view .overview-command-layout > * { grid-column: 1 / -1; grid-row: auto; width: 100%; min-width: 0; }
body.dashboard-v3 #overview-view .overview-tickets { overflow: hidden; padding: 0; }
body.dashboard-v3 #overview-view .overview-tickets > .panel-head { min-height: 58px; align-items: center; padding: 13px 18px; }
body.dashboard-v3 #overview-view .overview-tickets > .panel-head .text-button { flex: 0 0 auto; }
body.dashboard-v3 #overview-view .overview-ticket-head,
body.dashboard-v3 #overview-view .ticket-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(82px, .58fr) minmax(120px, 1fr) minmax(110px, .86fr) minmax(90px, .68fr) minmax(115px, 1fr) minmax(128px, .92fr);
  align-items: center;
  column-gap: 12px;
}
body.dashboard-v3 #overview-view .overview-ticket-head { min-height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-list { min-height: 0; padding: 0 18px; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row { min-height: 54px; margin: 0; padding: 9px 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row:first-child { border-top: 0; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row:hover { background: transparent; }
body.dashboard-v3 #overview-view .overview-tickets .ticket-row:hover .ticket-ref { color: var(--blue-light); }
body.dashboard-v3 #overview-view .ticket-ref { color: var(--text); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
body.dashboard-v3 #overview-view .ticket-owner, body.dashboard-v3 #overview-view .ticket-type,
body.dashboard-v3 #overview-view .ticket-assignee, body.dashboard-v3 #overview-view .ticket-created { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-v3 #overview-view .ticket-assignee { color: var(--text); }
body.dashboard-v3 #overview-view .ticket-status { justify-self: start; }
body.dashboard-v3 #overview-view .queue-empty { display: grid; min-height: 230px; align-content: center; justify-items: center; gap: 8px; padding: 22px; text-align: center; }
body.dashboard-v3 #overview-view .queue-empty-mark { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 3px; border-radius: 50%; background: var(--surface-raised); color: var(--muted); }
body.dashboard-v3 #overview-view .queue-empty b { color: var(--text); font-size: 14px; }
body.dashboard-v3 #overview-view .queue-empty p { max-width: 40ch; margin: 0; color: var(--muted); font-size: 12px; }

body.dashboard-v3 #overview-view .overview-section-heading { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 14px; margin: 4px 0 -7px; }
body.dashboard-v3 #overview-view .overview-section-heading h3 { margin: 0; color: var(--text); font-size: 17px; font-weight: 650; }
body.dashboard-v3 #overview-view .overview-section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
body.dashboard-v3 #overview-view .overview-secondary-grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
body.dashboard-v3 #overview-view .overview-secondary-grid > .panel { min-width: 0; width: 100%; overflow: hidden; }
body.dashboard-v3 #overview-view .overview-team-panel .panel-head { min-height: 60px; }
body.dashboard-v3 #overview-view .overview-team-panel .panel-head select { flex: 0 0 auto; width: auto; min-width: 118px; }
body.dashboard-v3 #overview-view .overview-secondary-grid > .overview-team-panel { grid-column: 1; grid-row: auto; min-width: 0; width: 100%; }
body.dashboard-v3 #overview-view .overview-team-panel .table-panel { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table { width: 100%; min-width: 510px; table-layout: fixed; }
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table th,
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table td { padding: 10px 7px; font-size: 10px; }
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table th:first-child,
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table td:first-child { width: 29%; padding-left: 14px; text-align: left; }
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table th:not(:first-child),
body.dashboard-v3 #overview-view .overview-team-panel .ticket-table td:not(:first-child) { text-align: right; }
body.dashboard-v3 #overview-view .distribution { display: grid; gap: 0; padding: 0 17px 5px; }
body.dashboard-v3 #overview-view .distribution-row { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border-bottom: 1px solid var(--line); }
body.dashboard-v3 #overview-view .distribution-row:last-child { border-bottom: 0; }
body.dashboard-v3 #overview-view .distribution-status { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--text); font-size: 12px; }
body.dashboard-v3 #overview-view .distribution-row > b { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
body.dashboard-v3 #overview-view .status-mark { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
body.dashboard-v3 #overview-view .status-mark.open { background: var(--red); }
body.dashboard-v3 #overview-view .status-mark.claimed { background: var(--amber); }
body.dashboard-v3 #overview-view .status-mark.working { background: var(--blue); }
body.dashboard-v3 #overview-view .status-mark.closed { background: var(--muted); }

body.dashboard-v3 #overview-view .overview-utility-grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
body.dashboard-v3 #overview-view .overview-utility-grid > .panel { min-width: 0; width: 100%; overflow: hidden; }
body.dashboard-v3 #overview-view .attention-list { padding: 7px 12px; }
body.dashboard-v3 #overview-view .attention-list > button { min-height: 50px; }
body.dashboard-v3 #overview-view .type-summary { padding: 6px 12px; }
body.dashboard-v3 #overview-view .type-chip { min-height: 42px; }
body.dashboard-v3 #overview-view .rating-insights { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 14px; margin-top: 2px; }
body.dashboard-v3 #overview-view .rating-insights.hidden { display: none; }
body.dashboard-v3 #overview-view .rating-insights > .panel { min-width: 0; width: 100%; overflow: hidden; }
body.dashboard-v3 #overview-view .rating-score { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.dashboard-v3 #overview-view .overview-metrics { margin-top: 8px; }

@container dashboard-main (min-width: 800px) {
  body.dashboard-v3 #overview-view .overview-focus .focus-card { min-height: 62px; }
  body.dashboard-v3 #overview-view .overview-utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .rating-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .rating-insights > .rating-recent-panel { grid-column: 1 / -1; }
}
@container dashboard-main (min-width: 1080px) {
  body.dashboard-v3 #overview-view .overview-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .overview-team-panel.hidden + .overview-status-panel { grid-column: 1 / -1; }
}
@container dashboard-main (max-width: 720px) {
  body.dashboard-v3 #overview-view .overview-page-heading { align-items: flex-start; flex-direction: column; }
  body.dashboard-v3 #overview-view .overview-page-actions { width: 100%; justify-content: space-between; }
  body.dashboard-v3 #overview-view .overview-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v3 #overview-view .overview-focus .focus-card:nth-child(2) { border-right: 0; }
  body.dashboard-v3 #overview-view .overview-focus .focus-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  body.dashboard-v3 #overview-view .overview-ticket-head { display: none; }
  body.dashboard-v3 #overview-view .overview-tickets .ticket-list { padding: 0 12px; }
  body.dashboard-v3 #overview-view .overview-tickets .ticket-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 12px 0; }
  body.dashboard-v3 #overview-view .ticket-ref { grid-column: 1; grid-row: 1; }
  body.dashboard-v3 #overview-view .ticket-owner { grid-column: 1; grid-row: 2; }
  body.dashboard-v3 #overview-view .ticket-type { grid-column: 1; grid-row: 3; }
  body.dashboard-v3 #overview-view .ticket-status { grid-column: 2; grid-row: 1; justify-self: end; }
  body.dashboard-v3 #overview-view .ticket-assignee { grid-column: 2; grid-row: 2 / span 2; max-width: 42vw; justify-self: end; text-align: right; white-space: normal; }
  body.dashboard-v3 #overview-view .ticket-created { grid-column: 1 / -1; grid-row: 4; }
  body.dashboard-v3 #overview-view .overview-team-panel .panel-head { align-items: flex-start; flex-direction: column; }
  body.dashboard-v3 #overview-view .overview-team-panel .panel-head select { width: 100%; }
  body.dashboard-v3 #overview-view .overview-team-panel .ticket-table { min-width: 510px; }
}
@media (min-width: 761px) and (max-width: 860px) {
  body.dashboard-v3 .topbar-actions { gap: 7px; }
  body.dashboard-v3 .topbar-server-picker { width: 142px; }
  body.dashboard-v3 .user-chip { flex: 0 0 40px; width: 40px; min-width: 40px; max-width: 40px; justify-content: center; overflow: hidden; padding: 3px; }
  body.dashboard-v3 .user-chip span { display: none; }
}
@media (max-width: 760px) {
  body.dashboard-v3 #overview-view .overview-page-heading h2 { font-size: 27px; }
  body.dashboard-v3 #overview-view .overview-focus .focus-card { min-height: 60px; padding: 8px 10px; }
  body.dashboard-v3 #overview-view .overview-focus .focus-card small { font-size: 11px; }
  body.dashboard-v3 #overview-view .overview-focus .focus-card em { font-size: 9px; }
  body.dashboard-v3 #overview-view .overview-section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  body.dashboard-v3 #overview-view .overview-command-layout { gap: 14px; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head { align-items: flex-start; padding: 12px 13px; }
  body.dashboard-v3 #overview-view .overview-tickets > .panel-head .text-button { min-height: 40px; }
  body.dashboard-v3 #overview-view .overview-tickets .ticket-list { min-height: 0; }
  body.dashboard-v3 #overview-view .queue-empty { min-height: 190px; }
  body.dashboard-v3 #overview-view .rating-insights > .rating-recent-panel { grid-column: auto; }
}
