/* One visual language for every application shell. Screen rules leave document printing intact. */
@media screen {
  :root {
    color-scheme: light;
    --ui-ink: #0b205b;
    --ui-sub: #405a85;
    --ui-blue: #075ee8;
    --ui-blue-hover: #0348ba;
    --ui-line: #c8dcec;
    --ui-soft: #eaf5ff;
    --ui-yellow: #ffe178;
    --ui-radius: 16px;
    --ui-text: 18px;
    --ui-small: 16px;
    --ui-shadow: 0 5px 20px #1b508b0c;
  }
  body.pmd-ui {
    --ink: var(--ui-ink); --sub: var(--ui-sub); --muted: var(--ui-sub);
    --teal: var(--ui-blue); --yellow: var(--ui-yellow); --line: var(--ui-line);
    --ground: #edf8ff; --panel: #fff; --brand: var(--ui-blue); --brand-ink: #fff;
    --graphite: #e5f3ff;
    margin: 0; min-height: 100vh;
    background: radial-gradient(ellipse at 8% 0%, #fff8dc 0, transparent 45%),
      radial-gradient(ellipse at 100% 6%, #d9f0ff 0, transparent 62%), #eff9ff;
    color: var(--ui-ink); font: var(--ui-text)/1.55 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  }
  body.pmd-ui *, body.pmd-ui *::before, body.pmd-ui *::after { box-sizing: border-box; }
  .pmd-ui :is(main, section, article, fieldset, .panel, .card, .form-grid > *, .grid > *) { min-width: 0; }
  .pmd-ui :is(h1, h2, h3, h4) { color: var(--ui-ink); line-height: 1.2; overflow-wrap: anywhere; }
  .pmd-ui h1 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.025em; margin: 8px 0 18px; }
  .pmd-ui h2 { font-size: 27px; letter-spacing: -.015em; margin-bottom: 16px; }
  .pmd-ui h3 { font-size: 21px; margin-bottom: 10px; }
  .pmd-ui h4 { font-size: 19px; }
  .pmd-ui :is(p, li, label, legend, summary) { font-size: var(--ui-text); line-height: 1.55; }
  .pmd-ui :is(p, li, td, th, label, legend) { overflow-wrap: anywhere; }
  .pmd-ui :is(a, button, input, select, textarea, summary) { outline-offset: 4px; }
  .pmd-ui :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #d88c00; box-shadow: 0 0 0 5px #fff7d6; }
  .pmd-ui a { color: #0756ce; text-underline-offset: 3px; }
  .pmd-ui a:hover { color: #033e9b; }
  .pmd-ui :is(small, .muted, .helptext, .minor-help, .panel-note, .register-foot, .hub-count,
    .section-kicker, .eyebrow, .workspace-kicker, .mobile-label, .team-menu-divider,
    .register-product, .workflow-label, .step-footer, .source-group p, .card p,
    .risk-facts span, .signal small, .voice-note, .voice-help p, .stat span, .dashboard-kicker,
    .journey-role, .journey-arrow span, .journey-path, .journey-context, .note, footer,
    .learning-progress-label, .learning-card a, .motto, .workflow-label a, .empty-work strong) {
    font-size: var(--ui-small) !important; line-height: 1.5; color: var(--ui-sub);
  }
  .pmd-ui :is(.eyebrow, .section-kicker, .dashboard-kicker) { color: #265b92; letter-spacing: .08em; font-weight: 750; }
  .pmd-ui :is(.panel, .card, .work-panel, .order-register, .workspace-role-grid a,
    .dashboard-task-panel, .dashboard-quick, .dashboard-queues, .box) {
    background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow);
  }
  .pmd-ui :is(.panel, .work-panel) { padding: 26px; margin-top: 22px; margin-bottom: 22px; }
  .pmd-ui .card { padding: 22px; }
  .pmd-ui :is(.grid, .workspace-actions, .workspace-role-grid) { gap: 16px; }
  .pmd-ui .page-shell { clear: both; max-width: 1600px; width: 100%; padding: 30px clamp(20px, 3vw, 48px) 60px; }
  .pmd-ui .page-shell > :first-child { margin-top: 0; }
  .pmd-ui :is(.hero, .workspace-header, .section-header) { gap: 24px; flex-wrap: wrap; }
  .pmd-ui :is(.hero, .workspace-header) > div:first-child { flex: 1 1 440px; }
  .pmd-ui :is(.hero, .workspace-header) > .toolbar { flex: 0 1 540px; }
  .pmd-ui .workspace-header p, .pmd-ui .section-header p { font-size: var(--ui-text); color: var(--ui-sub); }

  /* Actions and form fields share the same size and hierarchy. */
  .pmd-ui :is(button, input, select, textarea) { font-family: inherit; font-size: var(--ui-text); line-height: 1.4; }
  .pmd-ui :is(button, .btn, .primary, .row-action, .dashboard-task-button, .dashboard-quick-link,
    input[type=submit], input[type=button], .button) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 20px; border: 1px solid var(--ui-blue); border-radius: 10px;
    background: var(--ui-blue); color: #fff; font-size: var(--ui-text); font-weight: 650;
    line-height: 1.35; text-decoration: none; white-space: normal; text-align: center;
    cursor: pointer; box-shadow: none; max-width: 100%; transition: box-shadow .12s ease;
  }
  .pmd-ui :is(button, .btn, .primary, .row-action, .button):hover {
    background: var(--ui-blue-hover); color: #fff; border-color: var(--ui-blue-hover); transform: none;
    box-shadow: 0 4px 12px #075ee820;
  }
  .pmd-ui :is(.btn.secondary, button.secondary, .button.secondary, .btn.outline, .row-action,
    .workspace-logout button, .logout-form button) {
    background: #fff; color: #0756ce; border: 1px solid #528bea;
  }
  .pmd-ui :is(.btn.secondary, button.secondary, .button.secondary, .row-action, .workspace-logout button):hover {
    background: #e9f3ff; color: #0348ba;
  }
  .pmd-ui :is(button.danger, .btn.danger, a.deletelink) { background: #b52b3d; border-color: #b52b3d; color: #fff; }
  .pmd-ui :is(button, input, select):disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
  .pmd-ui :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea) {
    min-height: 48px; padding: 11px 13px; background: #fff; color: var(--ui-ink);
    border: 1px solid #8aaad0; border-radius: 9px; max-width: 100%;
  }
  .pmd-ui :is(input, textarea)::placeholder { color: #597194; opacity: 1; }
  .pmd-ui :is(input[type=checkbox], input[type=radio]) { width: 23px; height: 23px; min-height: 0; accent-color: var(--ui-blue); vertical-align: middle; flex: none; }
  .pmd-ui textarea { min-height: 110px; resize: vertical; }
  .pmd-ui select[multiple] { min-height: 180px; }
  .pmd-ui input[type=file] { padding: 13px; border-style: dashed; background: #f3f9ff; }
  .pmd-ui input[type=file]::file-selector-button { font: inherit; background: #e3efff; color: #124b9b; border: 1px solid #aac8ee; padding: 8px 12px; border-radius: 7px; margin-right: 12px; cursor: pointer; }
  .pmd-ui :is(.field, .form-row) label { color: var(--ui-ink); font-weight: 650; margin-bottom: 8px; }
  .pmd-ui .field { margin: 18px 0; }
  .pmd-ui .form-grid { gap: 6px 24px; }
  .pmd-ui :is(.toolbar, .analysis-toolbar, .report-links, .hero-actions, .row-actions) { gap: 12px; }
  .pmd-ui .toolbar input { min-width: min(220px, 100%); }
  .pmd-ui .toolbar form { max-width: 100%; }

  /* Tables keep numeric alignment; wide matrices scroll within their own region. */
  .pmd-ui :is(table, .compact-table, .history-table, .register-table) { font-size: 17px; line-height: 1.5; color: var(--ui-ink); }
  .pmd-ui :is(td, th), .pmd-ui :is(.compact-table, .register-table, .source-preview) :is(td, th) {
    font-size: 17px; line-height: 1.5; padding: 15px 16px; border-bottom-color: #d7e5f2;
  }
  .pmd-ui th { font-weight: 700; background: #e8f3ff; color: #193e78; text-transform: none; letter-spacing: 0; white-space: normal; }
  .pmd-ui :is(td strong, .compact-table td strong, .order-link) { font-size: 18px; }
  .pmd-ui :is(td.number, .num, .number, input[type=number]) { font-variant-numeric: tabular-nums; }
  .pmd-ui tbody tr:nth-child(even) { background-color: #f6faff; }
  .pmd-ui tbody tr:hover { background-color: #eaf4ff; }
  .pmd-ui :is(.ui-table-scroll, main .scroll) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #83add7 #e8f3ff; }
  .pmd-ui .ui-table-scroll:focus-visible { outline: 3px solid #d88c00; outline-offset: 3px; }
  .pmd-ui .register-table { table-layout: auto; }
  .pmd-ui .register-table :is(.order-cell, .customer-cell, .quantity-cell, .deadline-cell, .state-cell) { width: auto; }
  .pmd-ui .register-table .order-cell { min-width: 225px; }
  .pmd-ui .register-table .state-cell { min-width: 230px; }
  .pmd-ui .register-table .signal { gap: 10px; }
  .pmd-ui .register-table .signal small { max-width: 230px; }
  .pmd-ui :is(.register-tabs a, .workflow-tabs a, .intake-nav a, .steps span, .route-strip span) {
    font-size: var(--ui-text); min-height: 46px; padding: 11px 16px; color: #164981;
    background: #edf6ff; border: 1px solid #c7ddf5; border-radius: 10px;
  }
  .pmd-ui :is(.register-tabs a[aria-current=page], .workflow-tabs a[aria-selected=true], .steps .active) { background: #075ee8; border-color: #075ee8; color: #fff; }
  .pmd-ui :is(.register-tabs b, .workflow-tabs a small) { font-size: 16px; opacity: 1; }
  .pmd-ui .workflow-tabs a[aria-selected=true] small { color: #fff; }
  .pmd-ui .workflow-tabs a span { width: 30px; height: 30px; flex-basis: 30px; font-size: 16px; }
  .pmd-ui .workflow-tabs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 10px; }
  .pmd-ui :is(.stat, .context-item, .workspace-action) { background: #eaf5ff; border-color: #bddbfa; }
  .pmd-ui :is(.stat:nth-child(2), .context-item:nth-child(2), .workspace-action:nth-child(even)) { background: #fff8df; border-color: #eddaa1; }
  .pmd-ui :is(.stat:nth-child(3), .context-item:nth-child(3)) { background: #e9faf5; border-color: #b4e6d6; }
  .pmd-ui .stat b { font-size: 36px; color: var(--ui-ink); }
  .pmd-ui :is(.tag, .badge, .pill) { font-size: 16px; line-height: 1.4; padding: 6px 10px; }
  .pmd-ui .tag { background: #fff1be; color: #71500c; }
  .pmd-ui :is(.notice, .panel-note, .issue) { background: #fff7dc; color: #6b4c14; border-color: #edcd75; border-radius: 12px; padding: 17px 20px; }
  .pmd-ui :is(.errorlist, .errornote) { color: #a12035; font-size: 17px; }
  .pmd-ui .errorlist { background: #fff0f1; border-radius: 9px; padding: 10px 14px 10px 32px; }
  .pmd-ui :is(.success, .notice.success) { color: #096549; background: #e6f8ee; border-color: #91d2b7; }
  .pmd-ui :is(.empty, .empty-work, .dashboard-empty) { background: #f3f8ff; color: #405a85; padding: 24px; border-radius: 12px; }
  .pmd-ui :is(.risk-card, .panel.risk-card) { border-top-width: 5px; border-top-color: var(--signal, #edc349); }
  .pmd-ui :is(.green, .signal.green) { --signal: #087954; }
  .pmd-ui :is(.red, .signal.red) { --signal: #bb293a; }
  .pmd-ui .signal.amber { --signal: #8b5300; }
  .pmd-ui .resource-list strong { font-size: 18px; }

  /* The masthead and navigation match the central workplace. */
  .pmd-ui .workspace-topbar { background: linear-gradient(105deg, #fff9df, #f5fcff 60%, #e4f4ff); border-color: #cce2f3; padding: 18px clamp(18px, 3vw, 46px); gap: 24px; flex-wrap: wrap; }
  .pmd-ui .workspace-brand { color: #092055; gap: 12px; }
  .pmd-ui .workspace-brand img { height: 56px; width: 56px; padding: 6px; border-radius: 10px; background: #05070b; }
  .pmd-ui .workspace-brand strong { font-size: 29px; color: #092055; }
  .pmd-ui .workspace-brand small { font-size: 16px !important; color: #153e7c; }
  .pmd-ui .workspace-my-tasks { font-size: 18px; padding: 11px 16px; border-radius: 10px; background: #dceeff; color: #0756ce; }
  .pmd-ui .workspace-account-actions { margin-left: auto; gap: 12px; }
  .pmd-ui .workspace-account-actions .profile-chip { max-width: 280px; font-size: 17px; }
  .pmd-ui .workspace-logout button { min-height: 44px; font-size: 16px; padding: 10px 13px; }
  .pmd-ui .profile-initials { background: #d7eaff; color: #164a94; }
  .pmd-ui .workspace-navigation { padding: 14px clamp(18px, 3vw, 46px); background: #e5f3ff; border-color: #c6dff5; gap: 18px; align-items: center; }
  .pmd-ui .workspace-switch > summary { background: #fff; border-color: #98bce8; color: #154a91; min-height: 48px; font-size: 18px; }
  .pmd-ui .workspace-switch-menu { background: #fff; border-color: #b6cee9; width: 380px; max-width: calc(100vw - 32px); box-shadow: 0 15px 35px #12386125; }
  .pmd-ui .workspace-switch-menu a { font-size: 18px; padding: 12px 14px; }
  .pmd-ui .workspace-switch-menu a[aria-current], .pmd-ui .workspace-switch-menu a:hover { color: #064daf; background: #deedff; }
  .pmd-ui .workspace-quick-links { gap: 8px; }
  .pmd-ui .workspace-quick-links a { font-size: 17px; padding: 9px 12px; border-radius: 8px; color: #174e93; background: #ffffffb8; }
  .pmd-ui .workspace-help { font-size: 17px; }
  .pmd-ui .workspace-tools { float: right; max-width: 65%; padding: 10px clamp(18px, 3vw, 46px); gap: 10px; }
  .pmd-ui .dashboard-sidebar .workspace-tools { float: none; max-width: none; }
  .pmd-ui .workspace-tools :is(#voice-open, #learning-launcher), .pmd-ui .dashboard-sidebar .dashboard-tools :is(#voice-open, #learning-launcher) { font-size: 16px !important; min-height: 44px; padding: 10px 14px !important; }
  .pmd-ui #voice-open { background: #075ee8; color: #fff; border-color: #075ee8; }
  .pmd-ui #learning-launcher { background: #ffe178; color: #403410; border-color: #dcb94f; }
  .pmd-ui .workspace-all-sections { margin: 0 clamp(18px, 3vw, 46px); padding-top: 10px; min-height: 64px; }
  .pmd-ui .workspace-all-sections[open] { clear: both; }
  .pmd-ui .workspace-all-sections > summary { font-size: 17px; padding: 12px 16px; background: #fff4cb; color: #654a10; }
  .pmd-ui .process-header { background: #fff; border-color: #c7dff2; border-radius: 14px; }
  .pmd-ui .process-header .process-nav { flex-wrap: wrap; }
  .pmd-ui .process-header .process-nav > :is(a, .nav-group) { flex: 1 1 180px; }
  .pmd-ui .process-header .process-nav > a, .pmd-ui .process-header .process-nav > .nav-group > summary { font-size: 17px; white-space: normal; background: #eaf4ff; border-color: #c5dcf4; color: #174e93; }
  .pmd-ui :is(.nav-popover a, .app-header nav > a, .nav-group > summary) { font-size: 17px; padding: 12px; }
  .pmd-ui .app-brand strong { font-size: 23px; }
  .pmd-ui .app-brand img { width: 48px; height: 48px; }
  .pmd-ui .account-chip > span:last-child { font-size: 17px; }

  /* Central workplace uses the same readable type scale. */
  body.pmd-ui:has(.workspace-dashboard) main.page-shell { max-width: none; padding: 0; }
  .pmd-ui .workspace-topbar.is-dashboard { gap: 20px; }
  .pmd-ui .workspace-topbar.is-dashboard .workspace-brand { flex: 0 1 280px; }
  .pmd-ui .workspace-topbar.is-dashboard .workspace-brand strong { font-size: 29px; }
  .pmd-ui .workspace-topbar.is-dashboard .dashboard-search { min-width: 240px; height: 52px; flex: 1 1 320px; }
  .pmd-ui .dashboard-search input { min-height: 48px; font-size: 18px; border: 0 !important; }
  .pmd-ui .dashboard-search button { min-height: 42px; padding: 8px 12px; font-size: 16px; }
  .pmd-ui .dashboard-role-chip { font-size: 15px; color: #074aa8; background: #d0eaff; }
  .pmd-ui .workspace-dashboard { grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 24px; padding-right: 24px; }
  .pmd-ui .dashboard-side-link { font-size: 18px; min-height: 54px; line-height: 1.4; }
  .pmd-ui .dashboard-side-link.is-current { color: #034cb6 !important; }
  .pmd-ui .dashboard-more-list a { font-size: 17px; }
  .pmd-ui .dashboard-intro h1 { font-size: clamp(34px, 3.3vw, 46px); }
  .pmd-ui .dashboard-intro p { font-size: 20px; color: #245688; }
  .pmd-ui .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .pmd-ui .dashboard-metric { align-items: flex-start; flex-wrap: wrap; padding: 18px; min-height: 150px; gap: 12px; }
  .pmd-ui .dashboard-metric small { font-size: 17px !important; color: #133f7a; }
  .pmd-ui .dashboard-metric em { font-size: 15px; color: #496085; line-height: 1.4; }
  .pmd-ui .dashboard-metric strong { font-size: 36px; }
  .pmd-ui .dashboard-task { grid-template-columns: 92px minmax(0, 1fr) minmax(160px, 200px); gap: 14px; padding: 20px 0; }
  .pmd-ui .dashboard-task-copy h3 { font-size: 21px; }
  .pmd-ui .dashboard-task-copy p { font-size: 18px; color: #405a85; }
  .pmd-ui .dashboard-task-copy small { color: #496085; }
  .pmd-ui .dashboard-urgent-badge { font-size: 15px; padding: 8px; color: #a12027; }
  .pmd-ui :is(.dashboard-task-button, .dashboard-quick-link) { font-size: 18px; min-height: 50px; }
  .pmd-ui .dashboard-quick-link:not(.is-primary) { background: #fff; color: #0756ce !important; }
  .pmd-ui :is(.dashboard-panel-heading h2, .dashboard-quick h2, .dashboard-route h2) { font-size: 27px; }
  .pmd-ui .dashboard-panel-heading p { color: var(--ui-sub); }
  .pmd-ui :is(.dashboard-tip h2, .dashboard-queue h3) { font-size: 20px; }
  .pmd-ui :is(.dashboard-tip p, .dashboard-route-footer p, .dashboard-route-footer a, .dashboard-route-hint,
    .dashboard-route-steps li, .dashboard-queues > summary, .dashboard-queue p, .dashboard-search-summary, .dashboard-all-tasks) { font-size: 17px; color: #405a85; }
  .pmd-ui .dashboard-route-steps { padding: 22px 0; }
  .pmd-ui .dashboard-route-footer a { white-space: normal; color: #0756ce; }
  .pmd-ui .dashboard-queue { background: #f4f9ff; }

  /* Earlier screens and Django reference editors belong to the same application. */
  .pmd-ui.ui-legacy :is(.side, .top, .tabbar) { background: #e7f4ff; color: #0b205b; border-color: #bdd8f1; }
  .pmd-ui.ui-legacy .side { width: 270px; }
  .pmd-ui.ui-legacy .wrap { margin-left: 270px; max-width: 1600px; }
  .pmd-ui.ui-legacy :is(.side a, .tabbar a, .grp) { color: #164a8d; font-size: 17px; }
  .pmd-ui.ui-legacy :is(.side a.on, .tabbar a.on) { background: #cee5ff; color: #064dad; }
  .pmd-ui.ui-legacy :is(.logo img, .slogan img) { background: #05070b; padding: 5px; border-radius: 8px; }
  .pmd-ui.ui-legacy :is(.top .sub, .top .user, .side .foot, .summary .t, .nums div span, .tile span, .item .meta, .side nav .grp) { font-size: 16px; opacity: 1; }
  .pmd-ui.ui-legacy :is(.side .logo b, .tile b) { font-size: 20px; }
  .pmd-ui.ui-legacy .tile { background: #075ee8; color: #fff; min-height: 125px; padding: 20px; }
  .pmd-ui.ui-legacy .top .mark { background: #05070b; border-radius: 8px; padding: 4px; height: 46px; }
  .pmd-ui.ui-legacy .side .logout-form button { color: #174e93; font-size: 17px; }
  .pmd-ui.ui-account .card { width: min(100%, 540px); padding: 36px; }
  .pmd-ui.ui-account :is(button, .primary) { width: 100%; }
  .pmd-ui.ui-account h1 { font-size: 34px; }
  .pmd-ui.ui-account .brand { font-size: 24px; color: #0b205b; }
  .pmd-ui.ui-account .brand img { background: #05070b; width: 56px; height: 56px; padding: 6px; }
  body.pmd-ui.ui-admin {
    --primary: #075ee8; --secondary: #154783; --accent: #ffe178; --header-bg: #e5f3ff;
    --header-color: #0b205b; --header-link-color: #174e93; --breadcrumbs-bg: #f5faff;
    --breadcrumbs-fg: #405a85; --breadcrumbs-link-fg: #0756ce; --body-bg: #f1f9ff;
    --body-fg: #0b205b; --body-quiet-color: #405a85; --body-loud-color: #0b205b;
    --darkened-bg: #eaf4ff; --selected-bg: #dbeeff; --selected-row: #fff4cb;
    --hairline-color: #d5e4f2; --border-color: #bdd4ea; --link-fg: #0756ce;
    --link-hover-color: #033e9b; --default-button-bg: #075ee8; --button-bg: #075ee8;
    --close-button-bg: #405a85; --object-tools-bg: #075ee8; --object-tools-hover-bg: #0348ba;
  }
  .pmd-ui.ui-admin :is(#header, div.breadcrumbs) { padding: 18px 28px; }
  .pmd-ui.ui-admin #header { background: #e5f3ff; color: #0b205b; }
  .pmd-ui.ui-admin :is(#user-tools, #user-tools a, #logout-form button, .object-tools a, #nav-sidebar a) { font-size: 16px; }
  .pmd-ui.ui-admin #branding h1 { font-size: 28px; }
  .pmd-ui.ui-admin #changelist-filter h2 { font-size: 20px; }
  .pmd-ui.ui-admin #content { padding: 28px; }
  .pmd-ui.ui-admin :is(.module, .submit-row, .inline-group) { background: #fff; border: 1px solid #c8dcec; border-radius: 12px; overflow: visible; }
  .pmd-ui.ui-admin :is(.module h2, .module caption) { font-size: 20px; padding: 14px 16px; background: #e4f1ff; color: #173f7a; }
  .pmd-ui.ui-admin :is(.module h2 a, .module caption a) { color: #173f7a; }
  .pmd-ui.ui-admin :is(.form-row, .submit-row) { padding: 18px; }
  .pmd-ui.ui-admin :is(.form-row input, .form-row select, .form-row textarea) { max-width: 100%; }
  .pmd-ui.ui-admin :is(.vTextField, .vLargeTextField) { width: min(38rem, 100%); }
  .pmd-ui.ui-admin :is(#changelist-search input, #changelist .actions, #changelist .paginator) { font-size: 17px; }
  .pmd-ui.ui-admin #changelist .actions select { min-width: 220px; height: auto; }
  .pmd-ui.ui-admin :is(a.addlink, #changelist .actions label, #changelist .actions .button, #changelist .actions .action-counter, #changelist-filter a) { font-size: 16px !important; }
  .pmd-ui.ui-admin .theme-toggle { display: none; }
  .pmd-ui.ui-terminal .mode button { font-size: 25px; min-height: 64px; background: #e5f1ff; color: #164a91; }
  .pmd-ui.ui-terminal .mode button.active { background: #075ee8; border-color: #0548b1; color: #fff; }
  .pmd-ui.ui-terminal .scanner p { color: #fff; }
  .pmd-ui.ui-terminal .result strong { font-size: 27px; }
  .pmd-ui :is(#voice-dialog, #learning-panel, #learning-guide) { color: #0b205b; background: #fff; border-color: #aecbea; border-radius: 16px; }
  .pmd-ui :is(#learning-panel, #learning-guide) :is(p, a, button, li, label) { font-size: 17px; }
  .pmd-ui .learning-card p:not(.eyebrow) { font-size: 18px; line-height: 1.55; color: var(--ui-sub); }
  .pmd-ui :is(.learning-top, .voice-top) { background: #eaf5ff; color: #0b205b; }
  .pmd-ui #voice-dialog { max-width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
  .pmd-ui #voice-dialog :is(select, textarea) { width: 100%; }
  .pmd-ui :is(#voice-close, #learning-close) { min-width: 44px; min-height: 44px; padding: 6px; font-size: 25px; }

  @media (max-width: 1250px) {
    .pmd-ui .workspace-dashboard { grid-template-columns: 245px minmax(0, 1fr); gap: 20px; padding-right: 20px; }
    .pmd-ui .dashboard-sidebar { grid-row: 1 / span 4; }
    .pmd-ui .dashboard-main { grid-column: 2; grid-row: 1; }
    .pmd-ui .dashboard-aside { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .pmd-ui .dashboard-route { grid-column: 2; grid-row: 3; }
    .pmd-ui .dashboard-queues { grid-column: 2; grid-row: 4; }
    .pmd-ui .dashboard-role-chip { display: none; }
    .pmd-ui .dashboard-metric { display: block; padding: 16px; }
    .pmd-ui .dashboard-metric .metric-icon { margin-bottom: 8px; }
    .pmd-ui .dashboard-task { grid-template-columns: 80px minmax(0, 1fr); }
    .pmd-ui .dashboard-task-button { grid-column: 2; justify-self: start; }
    .pmd-ui .dashboard-task-marker { grid-row: 1 / span 2; }
  }
  @media (max-width: 900px) {
    .pmd-ui .workspace-topbar { gap: 14px; }
    .pmd-ui .workspace-brand strong { font-size: 25px; }
    .pmd-ui .workspace-brand img { width: 48px; height: 48px; }
    .pmd-ui .workspace-quick-links { display: none; }
    .pmd-ui .workspace-dashboard { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
    .pmd-ui .dashboard-metrics { grid-template-columns: 1fr; }
    .pmd-ui .dashboard-metric { display: flex; align-items: center; min-height: 100px; flex-wrap: nowrap; }
    .pmd-ui .dashboard-aside { display: block; }
    .pmd-ui .dashboard-side-link { font-size: 17px; }
    .pmd-ui .dashboard-quick { margin-bottom: 16px; }
  }
  @media (max-width: 760px) {
    :root { --ui-text: 18px; --ui-small: 16px; }
    .pmd-ui .page-shell { padding: 24px 16px 48px; }
    .pmd-ui h1 { font-size: 34px; }
    .pmd-ui h2 { font-size: 25px; }
    .pmd-ui :is(.panel, .work-panel, .card) { padding: 20px 16px; }
    .pmd-ui :is(.stats, .form-grid, .archive-grid, .work-split) { grid-template-columns: minmax(0, 1fr); }
    .pmd-ui :is(.hero, .workspace-header, .section-header) { display: block; }
    .pmd-ui .workspace-header > .toolbar { margin-top: 20px; }
    .pmd-ui .workspace-topbar { padding: 14px 16px; gap: 12px; }
    .pmd-ui .workspace-brand strong, .pmd-ui .workspace-topbar.is-dashboard .workspace-brand strong { font-size: 25px; }
    .pmd-ui .workspace-brand small { font-size: 16px !important; }
    .pmd-ui .workspace-topbar.is-dashboard .workspace-brand { flex: 1 1 auto; }
    .pmd-ui .workspace-topbar.is-dashboard .dashboard-search { order: 5; flex: 0 0 100%; min-width: 0; max-width: 100%; height: 52px; }
    .pmd-ui .workspace-topbar.is-dashboard .dashboard-search input { width: 0; }
    .pmd-ui .workspace-my-tasks { order: 4; width: 100%; text-align: center; }
    .pmd-ui .workspace-account-actions { gap: 8px; }
    .pmd-ui .workspace-topbar .profile-chip { width: 40px; max-width: 40px; }
    .pmd-ui .workspace-topbar .profile-chip > .dashboard-profile-name { display: none; }
    .pmd-ui .workspace-logout button { font-size: 16px; padding: 10px; }
    .pmd-ui .workspace-navigation { padding: 12px 16px; gap: 12px; }
    .pmd-ui .workspace-switch { flex: 1; min-width: 0; }
    .pmd-ui .workspace-switch > summary { font-size: 17px; padding: 10px 12px; }
    .pmd-ui .workspace-switch-menu { width: calc(100vw - 32px); }
    .pmd-ui .workspace-help { font-size: 16px; }
    .pmd-ui .workspace-tools { float: none; max-width: none; padding: 12px 16px 0; justify-content: flex-start; }
    .pmd-ui .workspace-all-sections { margin: 12px 16px; }
    .pmd-ui .workspace-dashboard { display: block; padding: 0 16px 32px; }
    .pmd-ui .dashboard-sidebar { margin: 0 -16px 22px; padding: 10px 16px; }
    .pmd-ui .dashboard-side-nav { gap: 8px; }
    .pmd-ui .dashboard-side-link { min-height: 48px; padding: 10px 12px; font-size: 17px; }
    .pmd-ui .dashboard-more-list { top: 190px; max-height: 60vh; overflow: auto; }
    .pmd-ui .dashboard-sidebar .dashboard-tools { flex-wrap: wrap; gap: 8px; }
    .pmd-ui .dashboard-sidebar .dashboard-tools :is(#voice-open, #learning-launcher) { flex: 1 1 170px; }
    .pmd-ui .dashboard-intro h1 { font-size: 36px; }
    .pmd-ui .dashboard-intro p { font-size: 19px; }
    .pmd-ui .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pmd-ui .dashboard-metric { display: block; }
    .pmd-ui .dashboard-aside { margin-top: 20px; }
    .pmd-ui .dashboard-task { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
    .pmd-ui .dashboard-task-copy h3 { font-size: 20px; }
    .pmd-ui .dashboard-task-copy p { font-size: 17px; }
    .pmd-ui .dashboard-route-steps { grid-template-columns: repeat(5, minmax(125px, 1fr)); }
    .pmd-ui .register-table :is(.order-cell, .state-cell) { min-width: 0; }
    .pmd-ui .register-table .customer-cell { font-size: 17px; }
    .pmd-ui .register-table tr { gap: 16px; padding: 20px 16px; }
    .pmd-ui .register-table .state-cell { grid-column: 1 / -1; grid-row: auto; }
    .pmd-ui .register-table .signal small { max-width: none; }
    .pmd-ui .register-table .deadline-cell { grid-column: auto; }
    .pmd-ui .workflow-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmd-ui .workflow-tabs a { font-size: 17px; }
    .pmd-ui .workflow-tabs a small { display: block; }
    .pmd-ui .context-item { gap: 16px; flex-wrap: wrap; }
    .pmd-ui .context-item strong { font-size: 25px; }
    .pmd-ui :is(.report-readable-table, .hub-table) td::before { font-size: 16px; color: #405a85; }
    .pmd-ui.ui-legacy .wrap { margin-left: 0; }
    .pmd-ui.ui-account { padding: 16px; }
    .pmd-ui.ui-account .card { padding: 28px 22px; }
    .pmd-ui.ui-admin #content { padding: 18px 14px; }
    .pmd-ui.ui-admin :is(.aligned label, .aligned .form-row) { width: auto; }
    .pmd-ui.ui-admin .form-row > div { min-width: 0; }
  }
  @media (max-width: 540px) {
    .pmd-ui .dashboard-metrics { grid-template-columns: 1fr; gap: 10px; }
    .pmd-ui .dashboard-metric { display: flex; min-height: 100px; align-items: center; gap: 16px; }
    .pmd-ui .dashboard-metric .metric-icon { width: 48px; height: 48px; margin: 0; }
    .pmd-ui .dashboard-metric strong { font-size: 32px; }
    .pmd-ui .dashboard-metric em { font-size: 16px; }
    .pmd-ui .dashboard-bell { display: none; }
    .pmd-ui :is(.toolbar, .hero-actions) { align-items: stretch; }
    .pmd-ui .toolbar > :is(.btn, button, input:not([type=checkbox]):not([type=radio])) { flex: 1 1 100%; }
    .pmd-ui .toolbar > form { width: 100%; }
    .pmd-ui .register-search { flex-wrap: wrap; }
    .pmd-ui .register-search input { flex: 1 1 190px; }
    .pmd-ui .register-search button { flex: 1; }
    .pmd-ui .process-header .process-nav > :is(a, .nav-group) { flex-basis: 100%; }
    .pmd-ui .manual div { display: grid; }
    .pmd-ui .dashboard-task { grid-template-columns: minmax(0, 1fr); }
    .pmd-ui .dashboard-task-marker { grid-row: auto; justify-self: start; }
    .pmd-ui .dashboard-task-glyph { display: none; }
    .pmd-ui .dashboard-task-button { grid-column: 1; width: 100%; }
    .pmd-ui .workspace-topbar .workspace-brand { flex: 1 1 100%; }
    .pmd-ui .workspace-account-actions { margin-left: 0; width: 100%; justify-content: space-between; }
    .pmd-ui .workspace-topbar .profile-chip { max-width: calc(100% - 105px); width: auto; }
    .pmd-ui .workspace-topbar .profile-chip > .dashboard-profile-name { display: block; font-size: 16px; }
    .pmd-ui .workspace-topbar.is-dashboard .workspace-brand { flex-basis: 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pmd-ui *, .pmd-ui *::before, .pmd-ui *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
  /* Printed documents retain their paper typography; only the on-screen toolbar is themed. */
  body.ui-print { background: #edf7ff; }
  .ui-print > .toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 20px; font: 18px/1.5 "Segoe UI", sans-serif; }
  .ui-print > .toolbar :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; font: inherit; }
  .ui-print > .toolbar button { background: #075ee8; color: #fff; }
  .ui-print > .toolbar a { background: #fff; color: #0756ce; border: 1px solid #92b7e7; }
}
@media print {
  .ui-table-scroll { overflow: visible !important; }
}
