/* Workspace surfaces. Existing business and permission rules are unchanged. */
:root {
  --ink: #162c42;
  --muted: #53677b;
  --support-text: #53677b;
  --line: #d4e0eb;
  --paper: #f0f4f9;
  --orange: #08728a;
  --orange-pale: #e5f5f9;
  --nav: #0b2138;
  --focus-ring: #087899;
  --workspace-muted: #53687e;
  --workspace-accent: #08728a;
  --workspace-soft: #e9f5f8;
  --workspace-sidebar-width: 216px;
  --workspace-gutter: clamp(20px, 3.15vw, 48px);
  --workspace-card-shadow: 0 2px 6px #18324d09;
}

.main {
  width: calc(100% - var(--workspace-sidebar-width));
  margin-left: var(--workspace-sidebar-width);
}

.sidebar {
  width: var(--workspace-sidebar-width);
  padding: 22px 12px 13px;
  background: linear-gradient(165deg, #102d49, #0b2138 54%, #091b2d);
  border-right: 1px solid #284461;
  color: #c9d6e4;
}

.sidebar .brand {
  align-self: stretch;
  padding: 9px 9px 20px;
  gap: 10px;
}

.sidebar .brand-mark {
  width: 44px;
  height: 38px;
}

.sidebar .brand-mark img { width: 43px; height: 29px; }
.sidebar .brand-name { color: #f4fbff; font-size: 17px; letter-spacing: .02em; }
.sidebar .brand small { color: #a7bed0; font-size: 11px; letter-spacing: .09em; margin-top: 3px; }
.sidebar .nav-label { padding: 10px 10px 7px; color: #abc0d3; font-size: 12px; letter-spacing: .09em; }
.sidebar .nav-list { gap: 2px; scrollbar-width: thin; scrollbar-color: #4b667c transparent; }

.sidebar .nav-item {
  position: relative;
  min-height: 40px;
  padding: 9px 11px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c4d4e3;
  font-size: 14px;
  line-height: 1.45;
}

.sidebar .nav-item:hover { color: #fff; background: #183955; }
.sidebar .nav-item.active {
  background: #1b4564;
  border-color: #2b5875;
  color: #fff;
  font-weight: 650;
}

.sidebar .nav-item.active::before {
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #65d7e5;
  content: "";
}

.sidebar .nav-item .icon { width: 17px; height: 17px; }
.sidebar .nav-item.active .icon { color: #91e5ed; }
.sidebar .nav-count { min-width: 21px; border-radius: 6px; padding: 0 4px; color: #dff8ff; background: #255977; }
.sidebar .sidebar-bottom { padding: 12px 4px 0; }
.sidebar .confidential-entry { min-height: 35px; color: #c2d5e5; }
.sidebar .confidential-entry:hover { color: #fff; background: #193953; }
.sidebar .brand-work-note { margin: 7px 2px 11px; padding: 10px; border-color: #35526a; background: #0a243a; }
.sidebar .brand-work-note b { font-size: 13px; color: #e4f4ff; }
.sidebar .brand-work-note p { margin-top: 4px; line-height: 1.55; color: #b0c7d9; }
.sidebar .brand-work-note small { margin-top: 4px; line-height: 1.55; color: #acbed0; }
.sidebar .profile { min-height: 50px; padding-top: 10px; border-color: #365069; }
.sidebar .profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4fbff; }
.sidebar .profile small { color: #acc1d4; }
.sidebar .profile .ghost { color: #c0d4e5; }
.sidebar :focus-visible { outline-color: #8ee7f2; outline-offset: -2px; }

.topbar {
  height: 60px;
  padding: 0 var(--workspace-gutter);
  gap: 14px;
  background: #fff;
  box-shadow: 0 1px 9px #182c440b;
}

.breadcrumb { gap: 10px; min-width: 0; font-size: 13px; }
.breadcrumb strong { color: #173755; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb span { flex-shrink: 0; color: var(--workspace-muted); }
.topbar-right { gap: 8px; flex-shrink: 0; }
.topbar .icon-button { width: 36px; height: 36px; color: #3c5971; }
.topbar .icon-button:hover { background: #f0f7fb; border-color: #a9bdce; color: #1a5470; }
.topbar .global-search { width: clamp(172px, 19vw, 258px); }
.topbar .global-search input {
  height: 36px;
  color: var(--ink);
  background: #f4f7fb;
  border-color: #d9e4ee;
  border-radius: 8px;
  padding-left: 34px;
  font-size: 13px;
}
.topbar .global-search input::placeholder { color: #53677b; }
.topbar .global-search .icon { top: 9px; }
.topbar .key-hint { top: 10px; color: #5d7287; }
.topbar .sync-status {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #c9e8d9;
  border-radius: 8px;
  background: #edf8f2;
  color: #245f48;
  font-size: 12px;
  font-weight: 550;
}
.topbar .sync-status .dot { width: 6px; height: 6px; background: #2c7b5c; }
.topbar .sync-status.disconnected { color: #9d3c25; background: #fff2ed; border-color: #eac7bc; }
.topbar .sync-status.disconnected .dot { background: #b64b31; }

.content { max-width: 1700px; padding: 26px var(--workspace-gutter) 32px; }
.page-head { min-width: 0; align-items: center; gap: 16px; margin-bottom: 22px; }
.page-head > div:first-child { min-width: 0; }
.page-head .eyebrow { color: #3d667e; font-size: 11px; letter-spacing: .12em; margin-bottom: 7px; }
.page-head h1 { color: #102e48; font-size: clamp(24px, 2.25vw, 34px); font-weight: 700; letter-spacing: -.018em; line-height: 1.32; }
.page-head .subtitle { margin-top: 7px; color: var(--workspace-muted); font-size: 14px; line-height: 1.65; }
.head-actions { flex-wrap: wrap; gap: 7px; }
.head-actions:empty { display: none; }
.date-pill { min-height: 38px; padding: 7px 10px; color: #456176; background: #edf3f8; border-color: #d8e4ed; }
.content-foot { color: var(--workspace-muted); gap: 12px; padding-top: 22px; }

.button {
  min-height: 38px;
  padding: 8px 13px;
  border-color: #beceda;
  border-radius: 8px;
  color: #254863;
  font-weight: 600;
}
.button:hover:not(:disabled) { border-color: #96b3c6; background: #f3f8fc; }
.button.primary { color: #fff; background: var(--workspace-accent); border-color: var(--workspace-accent); box-shadow: 0 2px 5px #0b5f7822; }
.button.primary:hover:not(:disabled) { color: #fff; background: #075d72; border-color: #075d72; }
.button.small { min-height: 32px; padding: 6px 9px; }
.button.text { color: #285b77; }
.button.text.orange { color: #006982; }
.button.danger { color: #a63a38; border-color: #e7bfc0; }
.button.danger:hover:not(:disabled) { color: #8a2a28; background: #fff1f1; border-color: #dba8ab; }
.button.ghost { color: #42627c; background: transparent; border-color: transparent; }
.button:disabled { opacity: .57; }
:where(.main, #overlay-root, .login-layout, .workspace-finder) :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
:where(.main, #overlay-root, .login-layout, .workspace-finder) :where(input, textarea, select):focus-visible {
  outline-offset: 1px;
}

.panel,
.stat-card,
.pickup-card,
.dispatch-card,
.member-card,
.service-card {
  min-width: 0;
  border-color: #d3dfea;
  border-radius: 11px;
  box-shadow: var(--workspace-card-shadow);
}
.panel-head { padding: 16px 19px; gap: 12px; }
.panel-title { color: var(--ink); font-size: 16px; font-weight: 680; }
.panel-title small, .panel-subtitle { color: var(--workspace-muted); }
.panel-subtitle { line-height: 1.65; }

.role-welcome,
.control-intro {
  position: relative;
  padding: 19px 22px;
  margin-bottom: 18px;
  border-color: #244c66;
  border-radius: 12px;
  background: linear-gradient(112deg, #12344f, #194b63);
  color: #ecf8ff;
}
.role-welcome h2, .control-intro h2 { color: #fff; font-size: clamp(18px, 1.75vw, 26px); font-weight: 650; margin-bottom: 4px; }
.role-welcome-meta { color: #c1e2f1; margin-bottom: 7px; }
.workspace-focus { color: #c2dfee; border-color: #60829a; }
.role-welcome > div > p, .control-intro p { color: #d4e8f3; font-size: 14px; line-height: 1.65; }
.role-values { color: #d3e9f2; border-color: #5a7b90; }
.role-values > i { background: #92bdcb; }
.stats-grid { gap: 13px; margin-bottom: 19px; }
.stat-card { min-height: 113px; padding: 13px 15px; }
.stat-card.emphasis { background: #eaf7fb; border-color: #bedde8; }
.stat-top { gap: 6px; margin-bottom: 8px; }
.stat-label { color: #3e5a70; font-weight: 600; line-height: 1.5; }
.stat-value { color: #112e4b; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.048em; overflow-wrap: anywhere; }
.stat-card.emphasis .stat-value { color: #075e76; }
.stat-icon { width: 28px; height: 28px; color: #346984; background: #eaf2f8; flex: 0 0 28px; }
.stat-bottom { color: var(--workspace-muted); line-height: 1.5; }
.workspace-action-section { margin-bottom: 19px; }
.workspace-section-head { margin-bottom: 10px; }
.workspace-section-head h2 { color: var(--ink); font-weight: 650; }
.workspace-section-head > span, .workspace-entry small { color: var(--workspace-muted); }
.workspace-entry { min-height: 68px; padding: 11px 12px; border-color: #d3e2ee; box-shadow: var(--workspace-card-shadow); }
.workspace-entry strong { color: #24465d; font-size: 14px; font-weight: 630; }
.workspace-entry-icon { color: #196481; background: #e9f4fa; }
.workspace-entry > .icon { color: #52758d; }
.workspace-entry:hover { border-color: #a6c9dc; background: #f4fafc; }
.task-text b { color: #23445e; }
.task-text span, .task-number > small { color: var(--workspace-muted); }
.task-number { font-variant-numeric: tabular-nums; color: #214864; }
.workspace-notice p, .workspace-onboarding > p { color: var(--workspace-muted); }
.brand-values-strip strong { color: #426079; }
.brand-values-strip span { color: var(--workspace-muted); }

.tab-row { gap: 15px; padding: 0 17px; background: #fff; scrollbar-width: thin; }
.tab-row .tab, .public-board-tabs .tab { min-height: 44px; padding: 10px 4px 9px; color: #455e74; font-weight: 550; }
.tab-row .tab.active, .public-board-tabs .tab.active { color: #006c83; border-bottom-color: #0b819d; font-weight: 680; }
.tab-row .tab:hover, .public-board-tabs .tab:hover { color: #005a71; }
.tab-row .tab span, .public-board-tabs .tab span { color: #51667c; background: #eef2f6; border-radius: 5px; }
.tab-row .tab.active span, .public-board-tabs .tab.active span { color: #085e76; background: #e0f0f7; }
.filter-bar { padding: 12px 16px; gap: 9px 12px; background: #f8fbfd; }
.filter-fields { min-width: 0; flex-wrap: wrap; }
.workspace-orders .filter-fields { width: 100%; flex: 1 1 0; }
.filter-bar input, .filter-bar select {
  min-height: 36px;
  border-color: #c8d5e1;
  border-radius: 7px;
  color: #27445c;
  background: #fff;
  font-size: 13px;
}
.filter-bar input { width: min(245px, 100%); }
.filter-bar input::placeholder { color: #52677c; }
.filter-bar > .field-hint { flex-shrink: 0; color: var(--workspace-muted); }
.filter-bar .button.ghost { margin: 0; }
.table-wrap { max-width: 100%; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #9db1c3 #edf3f8; }
.table-wrap:focus-visible { outline-offset: -3px; }
.data-table { font-variant-numeric: tabular-nums; }
.data-table th {
  padding: 11px 11px;
  border-color: #dce7f0;
  background: #f0f5f9;
  color: #36536e;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}
.data-table td { padding: 11px; border-color: #e7edf4; color: #3e556d; }
.data-table tbody tr:nth-child(even) { background: #fafcfe; }
.data-table tbody tr.clickable:hover, .data-table tbody tr:focus-within { background: #e9f5fb; }
.data-table .primary-text { color: #142f49; font-weight: 630; }
.data-table .muted, .data-table .muted-text { color: var(--workspace-muted); line-height: 1.55; }
.data-table .number { color: #23516e; }
.data-table .amount { color: #142f49; font-size: 14px; font-weight: 640; }
.data-table td:has(.performers) { min-width: 96px; }
.data-table td:has(.primary-text) > :where(.primary-text,.muted) { max-width: 220px; white-space: normal; overflow-wrap: anywhere; }
.data-table .performers { max-width: 150px; }
.data-table .performers > span:last-child { white-space: normal; overflow-wrap: anywhere; }
.data-table .button.text { white-space: nowrap; }
.order-table { min-width: 835px; }
.order-table th:nth-child(2), .order-table td:nth-child(2) { min-width: 112px; }
.order-table td:nth-child(2) > :where(.primary-text, .muted) { max-width: 185px; }
.order-table td:last-child .button { min-height: 30px; }
.table-footer { padding: 10px 16px; background: #f7fafc; border-top-color: #e1e9f1; color: var(--workspace-muted); }
.status { border-radius: 6px; color: #41576a; background: #eaf0f5; font-weight: 600; }
.status.waiting { color: #79500d; background: #fff2d8; }
.status.active { color: #245b91; background: #e9f2ff; }
.status.review { color: #684697; background: #f1eafa; }
.status.approved { color: #236047; background: #e6f5ec; }
.status.returned { color: #983a37; background: #faeae9; }
.status.cancelled { color: #495b6e; background: #e9eff5; }
.empty, .empty.compact { padding: 29px 16px; }
.empty > .icon { width: 34px; height: 34px; padding: 7px; color: #28718a; background: #eaf5fa; border-radius: 9px; }
.empty h3 { margin: 9px 0 4px; color: #223f58; font-weight: 650; }
.empty p { margin-top: 0; color: var(--workspace-muted); }

.pickup-section { margin-top: 18px; }
.pickup-section > h2 { color: #21435c; font-size: 17px; font-weight: 650; }
.pickup-grid, .dispatch-grid { gap: 12px; }
.pickup-card, .dispatch-card { padding: 15px 16px; }
.pickup-card h3 { color: #193a56; font-weight: 650; line-height: 1.5; margin: 10px 0 8px; }
.pickup-card > p, .pickup-candidate-summary > p { color: var(--workspace-muted); }
.pickup-card-actions { padding-top: 12px; margin-top: 11px; border-top: 1px solid #e3ebf2; }
.pickup-card-actions .button { max-width: 100%; white-space: normal; line-height: 1.45; }
.pickup-candidate-summary { margin: 12px 0; }
.public-board-tabs { gap: 13px; }

.modal-backdrop { background: #0a1b2e80; }
.modal { border: 1px solid #c9dbe8; border-radius: 12px; }
.modal-head, .drawer .modal-head { padding: 17px 21px; background: #f6fafc; border-color: #d7e3ed; }
.modal-head h2 { color: #143451; font-weight: 680; overflow-wrap: anywhere; }
.modal-head p { color: var(--workspace-muted); }
.modal-body, .drawer-body { padding: 18px 21px; overscroll-behavior: contain; }
.modal-foot, .detail-actions { padding: 11px 21px; border-top: 1px solid #d9e5ef; background: #f6fafc; }
.detail-actions { row-gap: 7px; }
.field > label { color: #27445e; font-weight: 630; }
.field input:not([type=checkbox], [type=radio]), .field select, .field textarea { border-color: #c0d0df; border-radius: 8px; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5b7185; }
.field-hint, .field small, .modal-foot .foot-hint { color: var(--workspace-muted); }
.toast { max-width: min(540px, calc(100% - 30px)); overflow-wrap: anywhere; }

.login-layout { grid-template-columns: minmax(340px, 43%) minmax(0, 1fr); }
.login-story {
  padding: clamp(29px, 4vw, 61px);
  background: radial-gradient(ellipse at 62% 47%, #1b5872 0%, #12364f 40%, #0a2138 76%);
  border-right: 1px solid #345672;
}
.login-story h1 { max-width: 520px; font-size: clamp(27px, 3.2vw, 47px); font-weight: 720; line-height: 1.32; letter-spacing: .023em; }
.login-story .eyebrow { color: #bce2ec; margin-bottom: 16px; }
.login-story .login-brand-claim { color: #d8ecf5; line-height: 1.7; }
.login-story .brand small, .login-story > .footer-brand { color: #c4dce9; }
.login-story .login-inspiration { border-color: #5a7c91; }
.login-story .login-inspiration p { color: #d6e9f3; }
.login-main { padding: 28px clamp(18px, 5vw, 72px); background: #eef4f9; }
.login-card {
  width: 425px;
  padding: 27px 28px;
  background: #fff;
  border: 1px solid #d1e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px #12305014;
  color: var(--ink);
}
.login-card > .eyebrow { color: #426f87; margin-bottom: 8px; }
.login-card h2 { color: #143450; font-size: clamp(21px, 2.15vw, 28px); line-height: 1.4; font-weight: 700; }
.login-card > .subtitle { margin-bottom: 19px; color: var(--workspace-muted); }
.login-card > .field { margin-bottom: 15px; }
.login-card > .field input:not([type=checkbox], [type=radio]) { background-color: #f9fbfd; min-height: 43px; }
.login-card > .help-text, .login-card > .field-hint { color: var(--workspace-muted); }

/* Quick navigation and the order queues sit above the existing data views. */
.workspace-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #c5d7e5;
  border-radius: 8px;
  color: #23536e;
  background: #f5f9fc;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}
.workspace-launch:hover { background: #e6f3f9; border-color: #9abbd0; }
.workspace-launch .icon { width: 16px; height: 16px; }
.workspace-launch kbd, .workspace-finder kbd {
  padding: 1px 5px;
  border: 1px solid #c9d9e8;
  border-radius: 5px;
  color: #47647d;
  background: #fff;
  font: 12px/1.45 "KailangLatin", "KailangCJK", sans-serif;
  white-space: nowrap;
}
.workspace-finder {
  width: min(590px, calc(100vw - 28px));
  max-height: min(580px, calc(100dvh - 36px));
  margin: min(13vh, 84px) auto auto;
  padding: 0;
  border: 1px solid #b6cedf;
  border-radius: 14px;
  color: var(--ink);
  background: #fbfdff;
  box-shadow: 0 20px 64px #0b243b4d;
}
.workspace-finder[open] { display: flex; flex-direction: column; }
.workspace-finder::backdrop { background: #0a1b3273; backdrop-filter: blur(2px); }
.workspace-finder-head { display: flex; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid #dce7ef; }
.workspace-finder-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: #49667e; }
.workspace-finder-search input { min-width: 0; width: 100%; padding: 10px; color: var(--ink); background: #fff; border: 1px solid #c1d4e2; border-radius: 8px; }
.workspace-finder-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px; }
.workspace-finder-group { margin: 3px 0 5px; padding: 4px 7px; color: #526b81; font-size: 12px; font-weight: 630; }
.workspace-finder-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #224760;
  text-align: left;
}
.workspace-finder-option .icon { width: 16px; height: 16px; flex-shrink: 0; color: #25617d; }
.workspace-finder-option > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.workspace-finder-option:hover, .workspace-finder-option.is-selected { background: #e7f4fa; border-color: #bfddea; }
.workspace-finder-option-title { font-weight: 630; overflow-wrap: anywhere; }
.workspace-finder-option-meta { color: #516c82; font-size: 12px; overflow-wrap: anywhere; }
.workspace-finder-empty { margin: 0; padding: 26px 12px; color: var(--workspace-muted); text-align: center; }
.workspace-finder-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 13px; border-top: 1px solid #dce7ef; color: #486580; font-size: 12px; }

.order-queues {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 13px;
  background: #f7fafc;
  border-bottom: 1px solid #dce7ef;
}
.order-queue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 5px 9px;
  border: 1px solid #cad9e6;
  border-radius: 7px;
  color: #34546d;
  background: #fff;
  font-size: 13px;
  font-weight: 620;
}
.order-queue:hover { border-color: #8ebbd0; background: #edf7fb; }
.order-queue.is-active { color: #075d73; background: #e0f0f6; border-color: #88bdcc; }
.order-queue span { min-width: 19px; padding: 1px 4px; border-radius: 4px; color: #345771; background: #edf2f7; text-align: center; font-variant-numeric: tabular-nums; }
.order-queue.is-active span { background: #cde7f1; color: #15516b; }

@media (max-height: 780px) {
  .sidebar .brand { padding-bottom: 10px; }
  .sidebar .brand-work-note { margin: 5px 2px 7px; padding: 6px 9px; }
  .sidebar .brand-work-note :is(p, small) { display: none; }
}

@media (max-height: 650px) {
  .sidebar { padding-top: 11px; }
}

@media (max-width: 1150px) {
  :root { --workspace-sidebar-width: 195px; --workspace-gutter: 21px; }
  .topbar .sync-status { display: none; }
  .topbar .global-search { width: clamp(145px, 17vw, 198px); }
  .workspace-launch kbd { display: none; }
  .data-table th, .data-table td { padding-inline: 9px; }
}

@media (max-width: 980px) {
  .sidebar .brand { padding-inline: 4px; }
  .role-welcome { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .role-values { margin: 0; padding: 4px 0 0; border-top: 0; }
  .workspace-entry small { line-height: 1.55; }
}

@media (max-width: 720px) {
  :root { --workspace-gutter: 14px; }
  .sidebar { width: min(265px, 88vw); }
  .main { width: 100%; margin-left: 0; }
  .topbar { height: 53px; gap: 7px; }
  .breadcrumb { flex: 1; }
  .breadcrumb > span { display: none; }
  .topbar .mobile-menu { flex: 0 0 36px; }
  .topbar-right { gap: 6px; }
  .workspace-launch { min-width: 36px; }
  .workspace-launch > span { display: none; }
  .content { padding-top: 17px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 15px; }
  .head-actions { width: 100%; min-width: 0; }
  .head-actions .button { min-height: 38px; }
  .role-welcome, .control-intro { padding: 14px 15px; }
  .role-values { width: 100%; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 100px; padding: 10px; }
  .stat-icon { display: none; }
  .stat-label, .stat-bottom { font-size: 12px; }
  .workspace-entries { gap: 8px; }
  .workspace-entry { min-height: 66px; padding: 8px; gap: 7px; }
  .workspace-entry strong { font-size: 13px; }
  .workspace-entry-icon { width: 28px; height: 28px; }
  .workspace-entry > .icon { display: none; }
  .panel-head { padding: 12px; }
  .panel-head .button { white-space: normal; }
  .tab-row { gap: 10px; padding: 0 11px; }
  .filter-bar input, .filter-bar select { min-width: min(105px, 100%); max-width: 100%; }
  .filter-bar input { width: 100%; flex: 1 1 100%; }
  .filter-bar { padding: 10px; }
  .table-footer { flex-wrap: wrap; gap: 7px; padding-inline: 10px; }
  .modal-body, .drawer-body, .modal-head, .drawer .modal-head { padding: 14px; }
  .modal-foot, .detail-actions { flex-wrap: wrap; padding: 10px 14px; }
  .modal-foot .foot-hint { flex-basis: 100%; max-width: 100%; }
  .login-story { min-height: 0; padding: 20px; }
  .login-story > div:nth-child(2) { margin-top: 15px; }
  .login-story h1 { margin: 0 0 6px; }
  .login-main { padding: 17px 14px 24px; }
  .login-card { max-width: 100%; padding: 19px; }
  .workspace-finder-foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar, .nav-item, .workspace-entry, .modal-backdrop, .drawer { animation: none; transition: none; }
}

.website-filing { padding: 8px 16px; text-align: center; font-size: 13px; line-height: 18px; background: #eef4f9; color: #39576b; }
.website-filing a { text-decoration: underline; }
body:has(.website-filing) .login-layout { min-height: calc(100dvh - 34px); }
