.native-workspace {
  --paper: #ffffff;
  --paper-soft: #f5f6f7;
  --ink: #22242a;
  --ink-soft: #43464f;
  --muted: #646974;
  --accent: #166f52;
  --line: #dce0e5;
  --line-strong: #a7adb8;
  --workspace-max: 1280px;
  --workspace-pad: 24px;
}
:root[data-theme="dark"] .native-workspace {
  --paper: #17181c;
  --paper-soft: #202228;
  --ink: #f3f5f7;
  --ink-soft: #ced2da;
  --muted: #a5adb9;
  --accent: #72cfad;
  --line: #363942;
  --line-strong: #626976;
}
:root[data-theme] body.native-workspace { background: var(--paper); }
.native-workspace :where(h1, h2, h3, p, button, a) { letter-spacing: 0; }
.native-workspace :where(label, span, strong, small, em, dt, .eyebrow, .row-index) { letter-spacing: 0; }
.native-workspace :where(main, section, article, form, .line-row, .section-title, .split-section) { min-width: 0; }
.native-workspace :where(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
.native-workspace main h1 { font-size: 32px; margin-bottom: 12px; }
.native-workspace main h2 { font-size: 22px; }
.native-workspace main h3 { font-size: 17px; }
.native-workspace .page-head { padding: 32px 0 24px; }
.native-workspace .page-head .lead { font-size: 15px; margin-bottom: 0; }
.native-workspace .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.native-workspace .hero-actions .button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-width: 0; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.native-workspace :where(.section-line, .split-section) { padding: 28px 0; }
.native-workspace .section-title { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 20px; }
.native-workspace .section-title .eyebrow { margin: 0; }
.native-workspace :where(.account-tool-page, .internal-workspace-page) { width: min(var(--workspace-max), calc(100% - 48px)); max-width: var(--workspace-max); }
.native-workspace .account-dashboard-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 28px 0; }
.native-workspace .account-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.native-workspace .account-identity-block strong { font-size: 26px; line-height: 1.3; }
.native-workspace .account-action-tile { padding: 16px 0; align-content: start; }
.native-workspace .account-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.native-workspace .account-forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.native-workspace .account-forms-grid :where(form, .account-danger-zone) { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
.native-workspace :where(.application-form, .wallet-transfer-form) label { font-size: 12px; }
.native-workspace :where(.application-form, .wallet-transfer-form) :where(input, select, textarea) { font-size: 14px; min-width: 0; }
.native-workspace .account-security-action { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; }
.native-workspace .account-security-action p { font-size: 14px; overflow-wrap: anywhere; }
.native-workspace .account-security-action .button { padding: 10px 14px; font-size: 13px; }
.native-workspace .account-management-section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.native-workspace .account-control-list .line-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 14px; }
.native-workspace .account-control-list .line-row > span:last-child { grid-column: 2; font-size: 13px; overflow-wrap: anywhere; }
.native-workspace .wallet-summary-grid strong { font-size: 28px; }
.native-workspace .wallet-summary-grid span { font-size: 11px; }
.native-workspace .wallet-locked-panel { background: none; border: 0; border-top: 1px solid var(--line); padding: 20px 0; }
.native-workspace :where(.wallet-console, .wallet-statement) .ticket-console-head h2 { font-size: 20px; }
.native-workspace .department-workspace-nav { width: min(var(--workspace-max), calc(100% - 48px)); margin: 0 auto; background: none; border: 0; border-bottom: 1px solid var(--line); }
.native-workspace .department-workspace-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; min-height: 64px; }
.native-workspace .workspace-root-link { border: 0; padding: 0; font-size: 13px; color: var(--muted); }
.native-workspace .department-workspace-nav-inner.is-compact .department-switcher { display: block; min-width: 0; width: min(360px, 65%); margin: 0; padding: 0; border: 0; }
.native-workspace .department-switcher select { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); padding: 6px 10px; font-size: 13px; }
.native-workspace .workspace-mobile-tool-switcher { display: none; }
.native-workspace-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; width: min(var(--workspace-max), calc(100% - 48px)); margin: 0 auto; }
.native-workspace-layout > aside { padding: 32px 16px 32px 0; border-right: 1px solid var(--line); }
.native-workspace-layout > .internal-workspace-page { width: 100%; margin: 0; }
.workspace-area-label { margin: 0 0 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.native-workspace .workspace-tool-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 0; }
.native-workspace .workspace-tool-link { border: 0; border-radius: 4px; padding: 10px 12px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.native-workspace .workspace-tool-link.is-active { background: var(--paper-soft); color: var(--accent); font-weight: 700; }
.native-workspace .workspace-tool-link:hover { background: var(--paper-soft); }
.native-workspace [hidden] { display: none !important; }
.native-workspace-layout:has(> aside[hidden]) { grid-template-columns: minmax(0, 1fr); }
.native-workspace :where(.department-workspace-shell, .workspace-section, .workspace-command-bar, .workspace-tool-browser) { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; }
.native-workspace .department-workspace-shell { margin: 24px 0 48px; }
.native-workspace .workspace-command-bar { display: block; margin-bottom: 20px; }
.native-workspace .workspace-tool-search { width: min(100%, 460px); }
.native-workspace .workspace-tool-search input { min-height: 40px; font-size: 14px; }
.native-workspace .workspace-tool-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.native-workspace .workspace-tool-console-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 12px; min-width: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; padding: 20px 0; }
.native-workspace .workspace-tool-console-card p { font-size: 13px; margin-bottom: 0; }
.native-workspace .workspace-tool-console-card strong { font-size: 16px; }
.native-workspace .workspace-tool-index { display: block; grid-column: 1; padding-top: 3px; }
.native-workspace .workspace-tool-body { grid-column: 2; }
.native-workspace .workspace-tool-state { color: var(--accent); font-size: 20px; }
.native-workspace .workspace-tool-state { grid-column: 3; justify-self: end; }
.native-workspace .workspace-subtool-list { display: none; }
.native-workspace .account-view-tabs { margin-bottom: 0; flex-wrap: wrap; gap: 0 24px; }
.native-workspace .account-view-tabs button { white-space: nowrap; min-height: 44px; }
.native-workspace .account-view-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.native-workspace .account-editor { max-width: 640px; }
.native-workspace .handbook-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.native-workspace .handbook-toolbar label { width: min(380px, 100%); font-size: 12px; }
.native-workspace .handbook-toolbar input { font-size: 14px; }
.native-workspace .handbook-library { display: block; border: 0; border-top: 1px solid var(--line); }
.native-workspace .handbook-card { grid-template-columns: 62px minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.native-workspace .handbook-card[hidden] { display: none; }
.native-workspace .handbook-code { color: var(--muted); padding-top: 4px; letter-spacing: 0; }
.native-workspace .handbook-card-body { display: grid; gap: 8px; min-width: 0; }
.native-workspace .handbook-card h2 { font-size: 17px; }
.native-workspace .handbook-card p { font-size: 13px; }
.native-workspace .handbook-card dl { display: flex; flex-wrap: wrap; gap: 8px 24px; border: 0; font-size: 12px; }
.native-workspace .handbook-card dl div { display: flex; align-items: baseline; gap: 8px; padding: 0; }
.native-workspace .handbook-card dt { letter-spacing: 0; text-transform: none; }
.native-workspace .handbook-actions { padding: 0; gap: 8px; }
.native-workspace .handbook-actions .button { font-size: 12px; padding: 10px 14px; }
.native-workspace .recovery-layout { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; padding: 40px 0; align-items: start; }
.native-workspace .recovery-layout .lead { font-size: 17px; }
.native-workspace .recovery-layout .signin-form { margin: 0; padding: 24px 0; gap: 18px; }
.native-workspace .recovery-layout .signin-form h2 { margin: 0; font-size: 19px; }
.native-workspace .recovery-layout .signin-form[hidden] { display: none; }
.native-workspace .recovery-layout .signin-form label { font-size: 12px; }
.native-workspace .recovery-layout .signin-form input { font-size: 15px; }
.native-workspace .recovery-step-link { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--ink); font-size: 13px; cursor: pointer; }
.native-workspace .account-platform-section { max-width: 820px; }
.native-workspace .account-privacy-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.native-workspace .account-panel-heading { padding: 28px 0 16px; margin: 0; }
.native-workspace .workspace-tool-catalog { border: 0; }
.native-workspace .workspace-tool-console-card { min-height: 112px; }
.native-workspace .custom-battle-grid { gap: 24px; }
.native-workspace .wt-room-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.native-workspace .wt-room-toolbar label { width: min(320px, 100%); margin: 0; font-size: 12px; }
.native-workspace .wt-room-toolbar select { width: 100%; font-size: 14px; }
.native-workspace .wt-room-toolbar output { color: var(--muted); font-size: 13px; }
.native-workspace .wt-ballot-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); text-align: left; font-size: 14px; cursor: pointer; }
.native-workspace .wt-ballot-option[aria-pressed=true] { border-color: var(--accent); background: var(--paper-soft); font-weight: 700; }
.native-workspace .wt-ballot-option:disabled { cursor: default; }
.native-workspace .wt-ballot-options { display: grid; gap: 8px; margin: 14px 0; }
.native-workspace .wt-ballot-meta { font-size: 13px; color: var(--muted); }
.native-workspace .wt-ballot-panel button.text-link { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 0; min-height: 40px; cursor: pointer; font: inherit; font-size: 13px; }
.native-workspace .wt-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.native-workspace .wt-actions-grid > form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.native-workspace .wt-actions-grid > form[hidden] { display: none; }
.native-workspace .wt-actions-grid > form :where(label, h2, output) { grid-column: 1; width: 100%; }
.native-workspace .wt-actions-grid > form .button.full { width: 100%; }
.native-workspace .wt-player-card[data-badge=staff] { border-top: 3px solid #178253; }
.native-workspace .wt-player-card[data-badge=peacekeeper] { border-top: 3px solid #2574c7; }
.native-workspace [data-wt-state] { padding: 16px 0; margin: 0 0 24px; border: 0; }
.native-workspace [data-wt-state] article { min-width: 0; padding: 16px; }
.native-workspace [data-wt-state] strong { font-size: 20px; }
.native-workspace .wt-player-card strong { font-size: 15px; }
.native-workspace .wt-player-card :where(span, small, em) { font-size: 12px; }
.native-workspace .wt-player-card span { letter-spacing: 0; }
.native-workspace .wt-player-card .button { font-size: 12px; }
.native-workspace .line-row > * { min-width: 0; overflow-wrap: anywhere; }
.native-workspace [data-wt-reports] .line-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.native-workspace .wt-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.native-workspace .wt-report-actions .button { padding: 8px 12px; font-size: 12px; }
.native-workspace [data-wt-events] .line-row { grid-template-columns: 86px minmax(0, 1fr); gap: 8px 12px; }
.native-workspace [data-wt-events] .line-row > span:last-child { grid-column: 2; }
.native-workspace [data-wt-state] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.native-workspace .mission-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.native-workspace .mission-detail-dialog article { background: var(--paper); }
.native-workspace [data-private-mission-link] { display: block; padding: 16px 0; overflow-wrap: anywhere; font-size: 14px; }
.native-workspace [role="tabpanel"]:focus { outline: none; }
.native-workspace .workspace-live-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 0; }
.native-workspace .workspace-live-footer span { font-size: 12px; color: var(--muted); }
.native-workspace .workspace-counter-strip { margin-top: 16px; }
.native-workspace .team-home .section-line > h2 { margin-bottom: 12px; }
.native-workspace .team-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.native-workspace .team-section-heading a { font-size: 13px; }
.native-workspace .team-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.native-workspace .team-tool-grid > a { display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 100px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.native-workspace .team-tool-grid strong { font-size: 15px; }
.native-workspace .team-tool-grid span { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.native-workspace .team-tool-grid > a:hover strong { text-decoration: underline; }
.native-workspace .department-directory-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.native-workspace .department-directory-toolbar label { width: min(480px, 100%); display: grid; gap: 8px; margin: 0; font-size: 12px; }
.native-workspace .department-directory-toolbar input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.native-workspace .department-directory-toolbar output { padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.native-workspace .department-directory-list { border-top: 1px solid var(--line); }
.native-workspace .department-directory-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.native-workspace .department-directory-code { font-size: 12px; font-weight: 700; color: var(--muted); }
.native-workspace .department-directory-row h2 { margin: 0 0 6px; font-size: 16px; }
.native-workspace .department-directory-row p { margin: 0; font-size: 13px; color: var(--muted); }
.native-workspace .department-directory-row nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px 18px; }
.native-workspace .department-directory-row nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; overflow-wrap: anywhere; }
.native-workspace .department-directory-empty { padding: 28px 0; font-size: 14px; color: var(--muted); }
.native-workspace :where(.department-switcher select, .workspace-mobile-tool-switcher select, .department-directory-toolbar input) { font-weight: 400; }
.native-tool { margin: 32px auto 64px; padding: 0; min-width: 0; }
.native-tool-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; }
.native-tool-head h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.native-tool-head .eyebrow { margin-bottom: 8px; font-size: 11px; }
.native-tool-actions { display: flex; align-items: center; gap: 16px; }
.native-icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 24px; cursor: pointer; }
.native-icon-button:hover { background: var(--paper-soft); }
.native-icon-button:disabled { opacity: .5; cursor: wait; }
.native-view-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.native-view-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.native-view-tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.mailbox-console .native-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mailbox-console .native-view-tabs :where(a, button) { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 12px 0; color: var(--muted); font-size: 14px; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.mailbox-console .native-view-tabs button[aria-pressed="true"] { color: var(--accent); }
.mailbox-console .native-tool-head h1 { white-space: nowrap; }
.mailbox-console .native-icon-button { width: 44px; height: 44px; }
.native-tool [hidden] { display: none !important; }
.mailbox-identity, .mailbox-status { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mailbox-status { margin: 16px 0; min-height: 20px; }
.mailbox-preferences { max-width: 720px; margin: 24px auto; padding: 14px 0; font-size: 13px; }
.mailbox-preferences h2 { font-size: 22px; }
.mailbox-email-toggle { display: flex; gap: 12px; align-items: start; text-transform: none; font-size: 14px; padding: 12px 0; }
.mailbox-email-toggle input { appearance: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.mailbox-preferences p, .mailbox-preferences output { font-size: 13px; color: var(--muted); }
.mailbox-login { margin: 12px 0 24px; }
.native-tool .mailbox-layout { display: block; margin: 0; padding-top: 0; }
.native-tool .ticket-list { border: 0; }
.mailbox-console .ticket-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px 18px; gap: 16px; align-items: center; padding: 20px 12px; overflow-wrap: anywhere; }
.mailbox-console .ticket-row:hover { background: var(--paper-soft); }
.mailbox-row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--paper-soft); }
.mailbox-row-copy { display: grid; gap: 6px; min-width: 0; }
.mailbox-row-copy strong { font-size: 15px; line-height: 1.5; font-weight: 600; }
.mailbox-row-copy small, .mailbox-console .ticket-row time { color: var(--muted); font-size: 12px; line-height: 1.6; }
.mailbox-console .ticket-row time { text-align: right; }
.mailbox-console .is-unread .mailbox-row-icon { box-shadow: inset 3px 0 var(--accent); }
.mailbox-console .is-unread .mailbox-row-copy strong { font-weight: 700; }
.mailbox-console .native-icon-button img, .mailbox-console .mailbox-row-icon img, .mailbox-row-arrow, .mailbox-back img, .mailbox-letter-actions img { filter: none; }
:root[data-theme="dark"] .mailbox-console :where(.native-icon-button, .mailbox-row-icon, .mailbox-back, .mailbox-letter-actions) img,
:root[data-theme="dark"] .mailbox-row-arrow { filter: invert(1); }
.mailbox-reader-toolbar { border-block: 1px solid var(--line); padding: 8px 0; }
.mailbox-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.mailbox-back:hover { background: var(--paper-soft); }
.mailbox-reader { max-width: 840px; margin: 24px auto 0; }
.mailbox-console :where(button, a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mailbox-console h2:focus { outline: none; }
.mailbox-console[data-mailbox-reading="true"] .mailbox-identity { display: none; }
.native-tool .ticket-row.is-active { background: var(--paper-soft); color: var(--accent); }
.native-tool .ticket-row-top strong { font-size: 12px; }
.native-tool .ticket-detail-panel { border-left: 1px solid var(--line); padding-left: 32px; }
.native-tool :where(.ticket-detail-head, .ticket-message header) { flex-wrap: wrap; }
.native-tool :where(.ticket-detail-head > div, .ticket-message, .ticket-empty) { min-width: 0; overflow-wrap: anywhere; }
.native-tool :where(.ticket-detail-head h2, .ticket-empty h2) { font-size: 22px; line-height: 1.35; hyphens: auto; }
.native-tool .ticket-id-block { min-width: 0; text-align: left; font-size: 12px; }
.native-tool .ticket-detail-head p { font-size: 14px; color: var(--muted); }
.native-tool .ticket-message-log h3 { font-size: 16px; }
.native-tool .ticket-message p { font-size: 14px; white-space: pre-wrap; }
.native-tool .ticket-reply-box { grid-template-columns: minmax(0, 1fr); }
.native-tool .ticket-reply-box textarea { min-height: 110px; resize: vertical; font-size: 14px; line-height: 1.6; }
.native-tool .ticket-reply-box .button { justify-self: start; font-size: 14px; padding: 12px 18px; }
.native-tool .mailbox-documents { margin: 0; padding: 0; border: 0; }
.mailbox-console .mailbox-document-list { gap: 0; }
.mailbox-console .mailbox-document-row :where(strong, small) { grid-column: auto; }
.mailbox-console .ticket-detail-head { display: block; padding-bottom: 20px; }
.mailbox-console .ticket-id-block { display: flex; gap: 12px; margin-top: 12px; }
.mailbox-console .ticket-message-log { max-height: none; overflow: visible; padding: 0; gap: 0; }
.mailbox-console .ticket-message-log h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mailbox-console .ticket-message { padding: 20px 16px; border: 0; border-bottom: 1px solid var(--line); }
.mailbox-console .ticket-message.is-own { background: var(--paper-soft); }
.mailbox-console .ticket-message header { justify-content: space-between; }
.mailbox-console .ticket-message header strong { font-size: 13px; }
.mailbox-console .ticket-reply-box label { font-size: 13px; text-transform: none; }
.mailbox-letter { display: grid; gap: 24px; min-width: 0; }
.mailbox-letter-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.mailbox-letter-head .eyebrow { margin: 0 0 12px; font-size: 12px; text-transform: none; color: var(--muted); }
.mailbox-console .mailbox-letter h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.mailbox-letter-head time, .mailbox-attribution { color: var(--muted); font-size: 12px; }
.mailbox-letter p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.mailbox-letter .mailbox-letter-summary { font-size: 16px; }
.mailbox-letter :where(dl, dd) { margin: 0; }
.mailbox-letter dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mailbox-letter dt { color: var(--muted); }
.mailbox-letter-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mailbox-letter-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; font-size: 14px; }
.mailbox-letter-actions .document-download-action::before { content: none; }
.mailbox-letter-metadata { border-top: 1px solid var(--line); padding-top: 12px; }
.mailbox-letter-metadata summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 13px; }
.native-tool .ticket-empty { padding: 24px 0; }
.native-workspace .calendar-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 24px 0; }
.native-workspace .calendar-toolbar label { display: grid; gap: 8px; min-width: 0; flex: 1 1 160px; font-size: 12px; }
.native-workspace .calendar-toolbar label:has(input[type=number]) { flex: 0 1 100px; }
.native-workspace .calendar-toolbar :where(input, select) { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.native-workspace .calendar-toolbar .button { min-height: 44px; font-size: 13px; }
.calendar-status { display: block; min-height: 24px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.calendar-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(100px, .6fr); gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.calendar-entry > div { display: grid; gap: 6px; min-width: 0; }
.calendar-entry :where(strong, span) { overflow-wrap: anywhere; font-size: 14px; }
.calendar-entry div > span, .calendar-entry-state { color: var(--muted); font-size: 13px; }
.calendar-empty { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.calendar-footer, .calendar-availability { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13px; }
.calendar-footer span, .calendar-availability span { color: var(--muted); }
.calendar-availability { margin-bottom: 24px; }
@media (max-width: 980px) {
  .native-workspace .ticket-console { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .native-workspace .team-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-workspace .department-directory-row { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .native-workspace .department-directory-row nav { grid-column: 2; justify-content: start; }
  .native-workspace .handbook-card { grid-template-columns: 62px minmax(0, 1fr); }
  .native-workspace .handbook-actions { grid-column: 2; }
  .native-workspace .workspace-tool-catalog { grid-template-columns: minmax(0, 1fr); }
  .native-workspace :where(.custom-battle-grid, .wt-actions-grid) { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .mission-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-workspace [data-wt-state] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .native-workspace .ticket-console > * { min-width: 0; }
  .calendar-entry { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .native-workspace .calendar-toolbar label { flex-basis: 100%; }
  .native-workspace .calendar-toolbar label:has(input[type=number]) { flex-basis: 100%; }
  .native-workspace .handbook-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .native-workspace .handbook-actions { grid-column: 1; }
  .native-workspace :where(.account-tool-page, .internal-workspace-page, .department-workspace-nav), .native-workspace-layout { width: calc(100% - 36px); }
  .native-workspace main h1 { font-size: 28px; }
  .native-workspace .account-dashboard-grid,
  .native-workspace .recovery-layout,
  .native-workspace .account-forms-grid,
  .native-workspace .account-management-section,
  .native-workspace .workspace-tool-catalog { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .account-privacy-section { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .account-view-tabs { gap: 0 18px; }
  .native-workspace .wt-player-grid,
  .native-workspace .mission-card-grid { grid-template-columns: minmax(0, 1fr); }
  .native-workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .native-workspace-layout > aside { display: none; }
  .native-workspace-layout > .internal-workspace-page { width: 100%; }
  .native-workspace .wallet-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-workspace .wallet-transfer-form { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .account-security-action { grid-template-columns: 36px minmax(0, 1fr); }
  .native-workspace .account-security-action .button { grid-column: 2; justify-self: start; }
  .native-workspace .department-workspace-nav-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .native-workspace .workspace-root-link { display: none; }
  .native-workspace .department-workspace-nav-inner.is-compact .department-switcher { width: 100%; }
  .native-workspace .workspace-mobile-tool-switcher { display: block; min-width: 0; margin: 0; }
  .native-workspace .workspace-mobile-tool-switcher select { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; }
  .native-tool { width: calc(100% - 36px); margin-top: 24px; }
  .native-tool-head h1 { font-size: 28px; }
  .native-tool-actions { gap: 10px; }
  .mailbox-console .ticket-row { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 8px 12px; padding: 18px 4px; }
  .mailbox-row-icon { width: 32px; height: 36px; grid-row: 1 / span 2; }
  .mailbox-console .ticket-row time { grid-column: 2; grid-row: 2; text-align: left; }
  .mailbox-row-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .mailbox-console .mailbox-letter h2 { font-size: 22px; }
  .mailbox-letter dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mailbox-console .ticket-message { padding-inline: 12px; }
  .mailbox-identity { font-size: 11px; }
  .mailbox-console .mailbox-identity { display: none; }
}
/* Keep pagination a fixed touch target below the conversation queue. */
[data-mailbox-list], .mailbox-document-list {
  max-height: min(56dvh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 800px) {
  [data-mailbox-list] { max-height: 36dvh; }
}
.mailbox-more {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mailbox-more[hidden] { display: none; }

.pat-release-page :where(section, div, a) { min-width: 0; }
.native-workspace > .skip-link { position: fixed; top: 8px; left: 18px; z-index: 1000; transform: translateY(-160%); padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.native-workspace > .skip-link:focus { transform: translateY(0); }
.pat-release-page :where(p, strong, span, time) { overflow-wrap: anywhere; hyphens: auto; }
.pat-release-heading, .pat-release-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pat-release-heading { margin: 32px 0 20px; }
.native-workspace .pat-release-heading h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: 0; }
.pat-release-heading p, .pat-release-section-heading > span { margin: 0; color: var(--muted); font-size: 14px; }
.pat-release-heading .account-icon-button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.pat-release-heading .account-icon-button:disabled { opacity: .5; cursor: wait; }
.pat-release-tools { display: flex; flex-wrap: wrap; gap: 0 24px; border-bottom: 1px solid var(--line); }
.pat-release-tools a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.pat-release-update { display: block; min-height: 44px; padding: 12px 0; color: var(--muted); font-size: 13px; }
.pat-release-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 28px; }
.pat-release-summary > div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 18px 0; }
.pat-release-summary span { color: var(--muted); font-size: 13px; }
.pat-release-summary strong { font-size: 26px; font-weight: 600; }
.native-workspace .pat-release-section-heading h2 { font-size: 18px; margin: 0; }
.pat-release-section-heading { margin-bottom: 16px; }
.pat-release-filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; margin-bottom: 16px; }
.pat-release-filters label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.pat-release-filters :where(input, select) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.pat-release-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 18px; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.pat-release-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pat-release-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pat-release-reference, .pat-release-row-owner { color: var(--muted); font-size: 12px; }
.pat-release-row strong, .pat-release-row-state { font-size: 14px; }
.pat-release-badge { display: inline-block; padding: 4px 8px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.pat-release-badge[data-priority="high"], .pat-release-badge[data-priority="critical"] { border-color: #a44a3a; }
.pat-release-audit { margin-top: 32px; }
.pat-release-audit-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 140px; align-items: start; gap: 24px; border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.pat-release-audit-row :where(time, span) { color: var(--muted); }
.pat-release-audit-row p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.pat-release-empty { color: var(--muted); padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pat-release-downloads { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--line); }
.native-workspace .pat-release-downloads h2 { font-size: 16px; margin: 0 0 8px; }
.pat-release-downloads p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }
:root[data-theme="dark"] .pat-release-page img { filter: invert(1); }
@media (max-width: 760px) {
  .native-workspace .pat-release-heading h1 { font-size: 28px; }
  .pat-release-summary { gap: 16px; }
  .pat-release-filters, .pat-release-audit-row { grid-template-columns: minmax(0, 1fr); }
  .pat-release-audit-row { gap: 10px; }
  .pat-release-section-heading { flex-wrap: wrap; gap: 8px; }
  .pat-release-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 14px; }
  .pat-release-row > div { grid-column: 1; }
  .pat-release-row > img { grid-column: 2; grid-row: 1 / 4; }
  .pat-release-row .pat-release-row-state { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pat-release-downloads { grid-template-columns: 22px minmax(0, 1fr); }
  .pat-release-downloads > span { grid-column: 2; justify-self: start; }
}

.ias-traffic-page :where(section, div, aside, label) { min-width: 0; }
.native-workspace .ias-traffic-page .page-head { padding: 32px 0 24px; }
.native-workspace .ias-traffic-page h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: 0; }
.ias-traffic-page .page-head .lead { max-width: 760px; font-size: 14px; line-height: 1.7; }
.ias-traffic-page .ias-traffic-workspace { padding: 0 0 32px; }
.ias-traffic-page .traffic-map-head { align-items: center; margin: 0 0 18px; }
.native-workspace .ias-traffic-page h2 { margin: 0; font-size: 18px; }
.ias-traffic-page .account-icon-button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; }
.ias-traffic-page .account-icon-button:disabled { opacity: .5; cursor: wait; }
.ias-traffic-toolbar { display: grid; grid-template-columns: 180px 180px minmax(0, 1fr); gap: 16px; }
.ias-traffic-toolbar label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.ias-traffic-toolbar :where(select, input) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.ias-traffic-update { min-height: 48px; margin: 0; padding: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ias-traffic-page .traffic-map-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.ias-traffic-page .traffic-map-canvas { height: clamp(320px, 52vh, 560px); min-height: 320px; border-radius: 4px; background: var(--paper-soft); }
.ias-traffic-page .map-land { fill: color-mix(in srgb, var(--ink) 8%, var(--paper)); stroke: color-mix(in srgb, var(--ink) 36%, var(--paper)); }
.ias-traffic-page .traffic-map-side { height: clamp(320px, 52vh, 560px); max-height: none; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; padding-left: 24px; }
.ias-traffic-page .traffic-dot:not(.green, .blue, .yellow, .red) { background: var(--ink); }
.ias-traffic-page .traffic-map-stats span { padding: 10px 8px; font-size: 12px; }
.ias-traffic-page .traffic-map-event { min-height: 66px; gap: 6px; padding: 12px 0; cursor: pointer; }
.ias-traffic-page .traffic-map-event b { font-size: 12px; font-weight: 500; }
.ias-traffic-page .traffic-map-event span { font-size: 12px; line-height: 1.5; }
.ias-traffic-page .traffic-map-event:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ias-traffic-page .traffic-map-event:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ias-traffic-page .traffic-map-events { grid-auto-rows: max-content; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ias-traffic-page .traffic-map-viewbar { border-color: var(--line-strong); border-radius: 4px; background: var(--paper); box-shadow: none; }
.ias-traffic-page .traffic-map-viewbar button { height: 40px; color: var(--muted); font-weight: 500; }
.ias-traffic-page .traffic-map-viewbar button.active { color: var(--ink); background: var(--paper-soft); }
.ias-traffic-page .traffic-map-ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; gap: 0 24px; margin-top: 28px; }
.ias-traffic-page .traffic-map-ledger > div { padding: 16px 0; border: 0; border-top: 1px solid var(--line); font-size: 13px; }
.ias-traffic-page .traffic-map-ledger strong { font-size: 14px; font-weight: 500; }
.ias-traffic-page .traffic-map-ledger :where(span, small) { line-height: 1.6; overflow-wrap: anywhere; }
.ias-traffic-page .traffic-map-dialog { width: min(760px, calc(100% - 32px)); max-width: none; max-height: 84dvh; padding: 0; border-radius: 4px; background: var(--paper); color: var(--ink); }
.ias-traffic-page .traffic-map-dialog article { padding: 20px; }
.ias-traffic-page .traffic-map-dialog header { align-items: center; gap: 16px; }
.ias-traffic-page .traffic-map-dialog header strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.ias-traffic-page .traffic-map-dialog header button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.ias-traffic-page .traffic-detail-item { padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; }
.ias-traffic-page .traffic-analysis { padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: none; }
.ias-traffic-page .traffic-analysis b { font-weight: 400; line-height: 1.7; }
.ias-traffic-page :where(.traffic-analysis small, .traffic-detail-item b) { overflow-wrap: anywhere; }
:root[data-theme="dark"] .ias-traffic-page :where(.account-icon-button, .traffic-map-dialog header button) img { filter: invert(1); }
@media (max-width: 1100px) {
  .ias-traffic-page .traffic-map-layout { grid-template-columns: minmax(0, 1fr); }
  .ias-traffic-page .traffic-map-side { height: auto; border-left: 0; padding-left: 0; }
  .ias-traffic-page .traffic-map-events { max-height: 360px; }
  .ias-traffic-page .traffic-map-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ias-traffic-page .traffic-legend { display: flex; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 760px) {
  .native-workspace .ias-traffic-page h1 { font-size: 28px; }
  .ias-traffic-page .traffic-map-head { flex-direction: row; align-items: center; text-align: left; }
  .ias-traffic-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ias-traffic-search { grid-column: 1 / -1; }
  .ias-traffic-page .traffic-map-canvas { height: 320px; }
  .ias-traffic-page .traffic-map-stats, .ias-traffic-page .traffic-map-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ias-traffic-page .traffic-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .ias-traffic-page .traffic-map-tooltip { display: none; }
}
@media (max-width: 480px) {
  .ias-traffic-toolbar { grid-template-columns: minmax(0, 1fr); }
  .ias-traffic-search { grid-column: 1; }
}

/* Shared department desks keep navigation, queue and case work distinct. */
.native-workspace .department-overview-main .page-head { padding: 28px 0 20px; }
.native-workspace .department-overview-main .department-workspace-shell { display: block; margin: 0 0 40px; padding: 0; }
.native-workspace .department-overview-toolbar { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; }
.native-workspace .department-overview-toolbar .button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.native-workspace .workspace-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); cursor: pointer; }
.native-workspace .workspace-icon-button:hover { background: var(--paper-soft); }
.native-workspace .workspace-icon-button:disabled { opacity: .45; cursor: default; }
.native-workspace :where(.department-overview-toolbar, .department-recent-row, .department-ticket-console) img { flex-shrink: 0; }
:root[data-theme="dark"] .native-workspace :where(.department-overview-toolbar, .department-recent-row, .department-ticket-console) img { filter: invert(1); }
.native-workspace :where(.department-overview-toolbar, .department-ticket-console) .button.dark img { filter: invert(1); }
:root[data-theme="dark"] .native-workspace :where(.department-overview-toolbar, .department-ticket-console) .button.dark img { filter: none; }
.native-workspace .department-workspace-shell .workspace-counter-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 16px 0; border: 0; border-block: 1px solid var(--line); background: none; }
.native-workspace .department-workspace-shell .workspace-counter-strip > div { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; }
.native-workspace .department-workspace-shell .workspace-counter-strip span { color: var(--muted); font-size: 12px; }
.native-workspace .department-workspace-shell .workspace-counter-strip strong { font-size: 24px; font-weight: 600; }
.native-workspace .department-recent { margin-bottom: 36px; }
.native-workspace :where(.department-recent, .workspace-command-bar) h2 { margin: 0; font-size: 17px; }
.native-workspace .department-recent [role="status"] { font-size: 12px; color: var(--muted); }
.native-workspace .department-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.native-workspace .department-recent-row > span:first-child { display: grid; gap: 6px; min-width: 0; }
.native-workspace .department-recent-row strong { font-size: 14px; overflow-wrap: anywhere; }
.native-workspace .department-recent-row small { font-size: 11px; color: var(--muted); }
.native-workspace .department-recent-row:hover strong { text-decoration: underline; }
.native-workspace .department-empty { padding: 20px 0; margin: 0; color: var(--muted); font-size: 14px; }
.native-workspace .workspace-command-bar-clean { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.native-workspace .workspace-command-bar-clean .workspace-tool-search { width: min(100%, 300px); }
.native-workspace .workspace-command-bar-clean .workspace-tool-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.native-workspace .department-ticket-page .page-head { padding: 28px 0 24px; }
.native-workspace .department-ticket-page .page-head h1 { margin-bottom: 0; }
.native-workspace .department-ticket-console { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.65fr); align-items: start; gap: 0; padding-top: 0; margin-bottom: 48px; }
.native-workspace .department-ticket-console .ticket-queue-panel { position: sticky; top: 20px; padding: 20px 20px 0 0; }
.native-workspace .department-ticket-console .ticket-detail-panel { padding: 20px 0 0 24px; border-left: 1px solid var(--line); min-height: 480px; }
.native-workspace .department-ticket-console :where(input, select, textarea) { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); padding: 9px 10px; font: inherit; font-size: 13px; line-height: 1.5; }
.native-workspace .department-ticket-console label { display: grid; gap: 8px; margin: 0; min-width: 0; font-size: 12px; text-transform: none; font-weight: 500; }
.native-workspace .department-ticket-console :where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.native-workspace .department-ticket-console .ticket-console-head { align-items: center; }
.native-workspace .department-ticket-console .ticket-console-head h2 { font-size: 17px; }
.native-workspace .department-ticket-console .ticket-filter-row { margin: 16px 0 12px; }
.native-workspace .department-queue-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); }
.native-workspace .department-queue-tabs button { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.native-workspace .department-queue-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
.native-workspace .department-queue-tabs span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.native-workspace .department-queue-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.native-workspace .department-queue-controls select { padding: 8px 4px; font-size: 11px; }
.native-workspace .department-ticket-console .ticket-status-line { min-height: 32px; padding: 10px 0; font-size: 11px; }
.native-workspace .department-ticket-console .ticket-list { max-height: min(58dvh, 680px); overflow: auto; scrollbar-gutter: stable; }
.native-workspace .department-ticket-console .ticket-row { gap: 8px; padding: 16px 10px; border-left: 2px solid transparent; }
.native-workspace .department-ticket-console .ticket-row.is-active { border-left-color: var(--accent); background: var(--paper-soft); color: var(--ink); }
.native-workspace .department-ticket-console .ticket-row:hover { background: var(--paper-soft); }
.native-workspace .department-ticket-console .ticket-row strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.native-workspace .department-ticket-console .ticket-row small { font-size: 11px; overflow-wrap: anywhere; }
.native-workspace .department-ticket-console .ticket-row-top { align-items: center; gap: 8px; }
.native-workspace .department-priority { font-size: 11px; color: var(--muted); white-space: nowrap; }
.native-workspace .department-priority[data-priority="high"] { color: #a25413; }
.native-workspace .department-priority[data-priority="critical"] { color: #bc3546; font-weight: 700; }
:root[data-theme="dark"] .native-workspace .department-priority[data-priority="high"] { color: #efbb79; }
:root[data-theme="dark"] .native-workspace .department-priority[data-priority="critical"] { color: #ff9aa6; }
.native-workspace .department-ticket-console .ticket-detail { gap: 0; }
.native-workspace .department-ticket-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.native-workspace .department-ticket-state { font-size: 12px; color: var(--accent); }
.native-workspace .department-ticket-console .ticket-detail-head { gap: 12px; padding: 0 0 18px; border: 0; }
.native-workspace .department-ticket-console .ticket-detail-head > div { min-width: 0; }
.native-workspace .department-ticket-console .ticket-detail-head h2 { font-size: 20px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; hyphens: auto; }
.native-workspace .department-ticket-console .ticket-detail-head p { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.native-workspace .department-ticket-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.native-workspace .department-ticket-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.native-workspace .department-ticket-tabs [aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
.native-workspace .department-ticket-console [data-ticket-panel] { min-width: 0; }
.native-workspace .department-ticket-intake { padding: 0 0 20px; }
.native-workspace .department-ticket-intake h3 { font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.native-workspace .department-ticket-intake p { font-size: 14px; line-height: 1.7; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.native-workspace .department-ticket-console .ticket-message-log { gap: 0; max-height: 50dvh; overflow: auto; scrollbar-gutter: stable; }
.native-workspace .department-ticket-console .ticket-message { padding: 18px 0; gap: 10px; }
.native-workspace .department-ticket-console .ticket-message.is-internal { border-left: 2px solid #b78639; padding-left: 14px; }
.native-workspace .department-ticket-console .ticket-message header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.native-workspace .department-ticket-console .ticket-message header :where(strong, span, em) { font-size: 11px; font-weight: 400; color: var(--muted); }
.native-workspace .department-ticket-console .ticket-message header strong { color: var(--ink); font-weight: 600; }
.native-workspace .department-ticket-console .ticket-message p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.native-workspace .department-ticket-console .ticket-reply-box { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; }
.native-workspace .department-ticket-console .ticket-reply-box > label:first-child { grid-template-columns: auto minmax(0, 240px); align-items: center; justify-content: start; gap: 12px; }
.native-workspace .department-ticket-console textarea { resize: vertical; min-height: 104px; }
.native-workspace .department-compose-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.native-workspace .department-compose-footer > span { color: var(--muted); font-size: 11px; max-width: 260px; line-height: 1.6; }
.native-workspace .department-ticket-console .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; font-size: 13px; }
.native-workspace .department-ticket-console .ticket-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.native-workspace .department-ticket-console .ticket-meta-grid :where(span, strong) { font-size: 12px; text-transform: none; }
.native-workspace .department-ticket-console .ticket-meta-grid strong { font-weight: 500; }
.native-workspace .department-ticket-console .ticket-action-panel { margin-top: 24px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.native-workspace .department-ticket-console .ticket-action-panel h3 { grid-column: 1 / -1; font-size: 16px; }
.native-workspace .department-ticket-console .ticket-action-panel [hidden] { display: none; }
.native-workspace .ticket-completion-fields { display: grid; gap: 16px; }
.native-workspace .department-ticket-console .ticket-action-panel .ticket-work-confirm { display: flex; align-items: start; gap: 10px; }
.native-workspace .ticket-work-confirm input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; }
.native-workspace .ticket-workflow-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.native-workspace .ticket-workflow-state a { display: inline-flex; align-items: center; gap: 6px; }
.native-workspace .department-ticket-console [data-ticket-action-status] { min-height: 24px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.native-workspace .department-ticket-console .ticket-empty { padding: 24px 0; }
.native-workspace .department-ticket-console .ticket-empty :where(h2, strong) { font-size: 16px; }
.native-workspace .department-ticket-console .ticket-empty :where(p, span) { font-size: 13px; color: var(--muted); }
.native-workspace .department-queue-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.native-workspace .department-mobile-back { display: none; }
.native-workspace .department-ticket-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
@media (max-width: 1100px) and (min-width: 981px) {
  .native-workspace .department-ticket-console { grid-template-columns: 240px minmax(0, 1fr); }
  .native-workspace .department-ticket-console .ticket-queue-panel { padding-right: 12px; }
  .native-workspace .department-ticket-console .ticket-detail-panel { padding-left: 16px; }
}
@media (max-width: 980px) {
  .native-workspace .department-ticket-console { display: block; }
  .native-workspace .department-ticket-console .ticket-queue-panel { position: static; padding: 20px 0 0; }
  .native-workspace .department-ticket-console .ticket-detail-panel { display: none; border: 0; padding: 20px 0 0; }
  .native-workspace .department-ticket-console[data-reading="true"] .ticket-queue-panel { display: none; }
  .native-workspace .department-ticket-console[data-reading="true"] .ticket-detail-panel { display: block; }
  .native-workspace .department-ticket-console[data-reading="true"] .department-mobile-back { display: block; border-bottom: 1px solid var(--line); }
  .native-workspace .department-ticket-console .ticket-list { max-height: none; }
}
@media (max-width: 600px) {
  .native-workspace .department-workspace-shell .workspace-counter-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .native-workspace .department-recent-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px 12px; }
  .native-workspace .department-recent-row .department-ticket-state { grid-column: 1; grid-row: 2; }
  .native-workspace .department-recent-row > img { grid-column: 2; grid-row: 1 / span 2; }
  .native-workspace .department-ticket-console .ticket-meta-grid { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .department-ticket-console .ticket-action-panel { grid-template-columns: minmax(0, 1fr); }
  .native-workspace .department-ticket-console .ticket-reply-box > label:first-child { grid-template-columns: minmax(0, 1fr); }
}
