@import url("/styles/care-chat.css");
@import url("./delivery-desk.css");
:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16263a;
  --muted: #526579;
  --line: #dbe3eb;
  --bg: #f4f6f9;
  --blue: #2854b8;
  --nav: #13263b;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6e9df4;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
::selection {
  background: #daebff;
}
.initial {
  padding: 4rem;
  color: var(--muted);
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  background: #fff;
  padding: 10px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 2.15vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  letter-spacing: 0.01em;
}
.icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.shell {
  display: grid;
  grid-template-columns: clamp(238px, 17vw, 264px) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 27px 15px 18px;
  color: #f5f8fc;
  background: var(--nav);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none !important;
}
.sidebar .brand {
  padding: 0 7px;
}
.sidebar .navigation {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.brand img {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 10px;
}
.brand b {
  display: block;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: inherit;
  opacity: 0.76;
  margin-top: 3px;
}
.rail-label {
  margin: 12px 11px 8px;
  text-transform: uppercase;
  color: #9daec1;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-link,
.rail-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfdae5;
  font-weight: 530;
  padding: 12px;
  border-radius: 7px;
  font-size: 15px;
  text-decoration: none;
}
.nav-link:hover,
.rail-foot a:hover {
  background: #203951;
  color: #fff;
}
.nav-link[aria-current="page"] {
  background: #29465f;
  color: #fff;
  box-shadow: inset 3px 0 #93c4f3;
}
.nav-link[aria-current="page"] .icon {
  color: #a9d0f8;
}
.rail-foot {
  margin-top: auto;
  border-top: 1px solid #344658;
  padding-top: 12px;
}
.rail-foot .end {
  margin-left: auto;
  width: 15px;
}
.column {
  min-width: 0;
}
.topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(18px, 3vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.crumb,
.who,
.inline,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crumb {
  font-size: 14px;
  color: var(--muted);
}
.crumb span {
  color: #8b99a8;
}
.who {
  font-size: 13px;
}
.avatar {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  background: #e8eef5;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: #405770;
}
.content {
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px) clamp(18px, 3vw, 42px) 54px;
}
.content:focus {
  outline: none;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.intro p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 7px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: white;
  color: #2b4258;
  border: 1px solid #cad5df;
  border-radius: 7px;
  padding: 8px 13px;
  min-height: 41px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  text-align: center;
}
.btn:hover:not(:disabled) {
  background: #f0f4f8;
  text-decoration: none;
}
.btn:not(:disabled):active {
  box-shadow: inset 0 1px 2px color-mix(in srgb, currentColor 18%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .tabs a, .nav-link, .staff-group-toggle {
    transition: background-color .12s, border-color .12s, color .12s;
  }
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn.primary:hover:not(:disabled) {
  background: #1e438f;
}
.btn.quiet {
  padding: 5px 6px;
  min-height: 30px;
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.search-zone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.search-label {
  font-weight: 650;
  font-size: 16px;
  white-space: nowrap;
}
.search-zone small {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 640px;
}
.search-field {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search-field .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #677a8e;
  width: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: #172943;
  border: 1px solid #b9c7d5;
  border-radius: 6px;
  padding: 8px 11px;
  line-height: 1.45;
}
input::placeholder,
textarea::placeholder {
  color: #728196;
}
.search-field input {
  padding-left: 38px;
}
.search-form .btn {
  align-self: stretch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
.stat {
  padding: 0 clamp(12px, 1.6vw, 26px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border: none;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.stat strong {
  display: block;
  font-size: clamp(21px, 2vw, 32px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.35;
  margin-top: 5px;
}
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(265px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}
.panel + .panel {
  margin-top: 16px;
}
.deck > .panel + .panel {
  margin-top: 0;
}
.panel-head {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head p,
.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-head a,
.link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--staff-accent, var(--blue));
  outline-offset: -2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
th {
  background: #f6f8fa;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
td,
th {
  padding: 12px 15px;
  border-bottom: 1px solid #e6ebf0;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
@media (hover: hover) {
  tbody tr:hover { background-color: var(--staff-hover, #f2f6fb); }
}
tbody tr:focus-within { background-color: var(--staff-hover, #f2f6fb); }
td .secondary {
  display: block;
  color: var(--muted);
  margin-top: 1px;
  font-size: 13px;
}
td .link {
  white-space: nowrap;
}
.name {
  font-weight: 650;
  color: #233a55;
  line-height: 1.4;
}
.name:hover {
  color: var(--blue);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  color: #2c5a75;
  background: #edf3f8;
  white-space: nowrap;
}
.tag.good {
  background: #e4f2ec;
  color: #28644d;
}
.tag.dim {
  background: #eef1f4;
  color: #546374;
}
.events {
  list-style: none;
  margin: 0;
  padding: 5px 20px;
}
.event {
  display: grid;
  position: relative;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
}
.event:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 23px;
  bottom: -19px;
  width: 1px;
  background: #d9e3ed;
}
.event:last-child:before {
  display: none;
}
.event-dot {
  height: 11px;
  width: 11px;
  border-radius: 50%;
  border: 3px solid #c7d8e8;
  background: #365e84;
  position: relative;
  top: 5px;
}
.event strong {
  font-size: 14px;
}
.event p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.event small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.event small a {
  font-size: inherit;
}
.account-info {
  margin-top: 7px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 19px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 3px;
  margin-bottom: 17px;
}
.tabs a {
  display: block;
  padding: 10px 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover {
  text-decoration: none;
  color: var(--blue);
}
.tabs a[aria-current="page"] {
  color: var(--blue);
  font-weight: 650;
  border-color: var(--blue);
}
.tabs span {
  font-size: 12px;
  margin-left: 3px;
  color: var(--muted);
}
.account-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.empty {
  padding: 27px 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty strong {
  display: block;
  color: #33485d;
  font-size: 15px;
  margin-bottom: 3px;
}
.pad {
  padding: 18px 20px;
}
.data-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
  gap: 11px 16px;
  font-size: 14px;
}
.data-list dt {
  color: var(--muted);
}
.data-list dd {
  margin: 0;
  color: #263c51;
  overflow-wrap: anywhere;
}
.spaced {
  margin-top: 16px;
}
.plan-name {
  display: flex;
  gap: 10px;
  align-items: center;
}
.plan-icon {
  border: 1px solid #c9d8ea;
  background: #f1f5f9;
  color: #325b80;
  border-radius: 6px;
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}
.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  margin-bottom: 15px;
  border: 1px solid #cbdde2;
  background: #eef6f6;
  color: #315759;
  border-radius: 7px;
  font-size: 14px;
}
.notice[role="alert"],
.error {
  border-color: #edcec8;
  background: #fdf1ee;
  color: #7d352a;
}
.error {
  border: 1px solid #edcec8;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
}
.error:empty {
  display: none;
}
dialog {
  width: min(540px, calc(100vw - 28px));
  padding: 0;
  color: inherit;
  border: 1px solid #bfcbd7;
  border-radius: 12px;
  max-height: 88dvh;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 62px #10253a2a;
}
dialog::backdrop {
  background: #13263b68;
}
.wide-dialog {
  width: min(710px, calc(100vw - 28px));
}
#action-form {
  display: flex;
  flex-direction: column;
  max-height: min(calc(88dvh - 2px), 940px);
}
#action-form .dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
#action-form .dialog-head,
#action-form .dialog-foot {
  flex: none;
}
.form-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 12px 15px 16px;
}
.dialog-body .inline-check { display: flex; align-items: center; gap: .6em; }
.dialog-body .inline-check input { width: auto; min-height: 0; }
.form-section legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form-section [hidden] {
  display: none;
}
.audience-picker { display: grid; gap: 9px; }
.audience-top, .audience-chips { display: flex; align-items: center; gap: 6px; }
.audience-top { justify-content: space-between; }
.audience-top small, .audience-option small { color: var(--muted); }
.audience-chips { flex-wrap: wrap; }
.audience-chips button { border: 1px solid #c5d9fa; border-radius: 14px; padding: 3px 9px; background: #eef5ff; color: #204991; font-size: 12px; }
.audience-results { max-height: 166px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
.dialog-body label.audience-option { display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; padding: 8px 11px; font-weight: 500; cursor: pointer; }
.dialog-body .audience-option[hidden] { display: none; }
.dialog-body .audience-option input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--blue); }
.audience-option:has(:checked) { background: #f1f6ff; }
.audience-empty { display: block; padding: 10px; color: var(--muted); }
.audience-pager, .directory-pager { display:flex; align-items:center; flex-wrap:wrap; gap:14px; color:var(--muted); }
.audience-pager small, .directory-pager span { margin-inline-end:auto; }
.audience-pager button:disabled { opacity:.45; cursor:default; }
.directory-pager, .directory-search { padding:14px 20px; }
.directory-search { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.directory-search input { width:min(390px,100%); }
.plan-search { align-items:center; }
.plan-search label { display:block; margin:0; width:auto; max-width:100%; }
.plan-search input[type=search] { width:min(300px,100%); }
.plan-search select { min-width:120px; }
.plan-priority > summary { cursor:pointer; color:var(--muted); }
.plan-priority[open] > summary { margin-bottom:10px; }
.task-owner-search { display:flex;align-items:end;gap:6px;min-width:0; }
.audience-batch { border-top:1px solid var(--line);padding-top:8px; }
.audience-batch summary { cursor:pointer;color:var(--blue);font-size:.9em; }
.audience-batch label { margin-block:10px; }
.audience-batch small { margin-inline-start:8px; overflow-wrap:anywhere; }
.task-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 19px;
}
.task-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.task-filters select {
  min-height: 36px;
}
.attention {
  color: #95501b;
  font-weight: 650;
}
.catalog-search,
.catalog-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
}
.catalog-search label {
  flex: 1;
  min-width: 0;
  max-width: 440px;
}
.catalog-pager {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.supply-browser {overflow: hidden}
.supply-categories {display:flex; gap:6px; padding:14px 18px; border-bottom:1px solid var(--line)}
.supply-categories a {display:inline-flex; align-items:center; gap:9px; min-height:40px; padding:7px 14px; border:1px solid transparent; border-radius:7px; color:#35495f; font-weight:650}
.supply-categories a:hover {background:#f3f6f9; text-decoration:none}
.supply-categories [aria-current="page"] {background:#eaf1ff; border-color:#b6caf3; color:#204da6}
.supply-categories span {font-size:12px; font-variant-numeric:tabular-nums; font-weight:600; opacity:.83}
.supply-filters {display:grid; grid-template-columns:minmax(180px,1.55fr) repeat(4,minmax(102px,1fr)) auto; align-items:end; gap:12px; padding:18px}
.supply-filters label {display:grid; gap:5px; min-width:0; font-size:13px; font-weight:600; color:#47596c}
.supply-filters input,.supply-filters select {min-width:0; width:100%; min-height:39px; font-size:14px; font-weight:400}
.supply-filter-actions,.supply-pager > div,.supply-pager nav,.supply-pager label,.supply-pager form {display:flex; align-items:center; gap:8px}
.supply-filter-actions .btn {white-space:nowrap}
.supply-result-line {display:flex; justify-content:space-between; align-items:baseline; gap:12px; border-top:1px solid var(--line); padding:13px 18px; color:var(--muted); font-size:12px}
.supply-result-line strong {font-size:15px; color:#273a50}
.supply-result-line strong span {margin-left:7px; font-size:13px; color:#496684; font-weight:550}
.supply-pager,.supply-pager > div,.supply-pager nav {flex-wrap:wrap}
.supply-pager label {white-space:nowrap}
.supply-pager select,.supply-pager input {width:auto; min-height:35px; font-size:13px}
.supply-pager input {width:53px; text-align:center}
.supply-pager .btn {min-height:35px; padding:5px 9px}
.supply-pager form {margin:0}
.supply-pager {font-variant-numeric:tabular-nums}
@media(max-width:1330px) {
  .supply-filters {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px) {
  .supply-filters {grid-template-columns:repeat(2,minmax(0,1fr)); padding:14px}
  .supply-filters .supply-search,.supply-filter-actions {grid-column:1/-1}
  .supply-categories {gap:3px;padding:10px}
  .supply-categories a {flex:1; justify-content:center; gap:4px; padding:6px 3px; font-size:13px}
  .supply-categories span {font-size:11px}
  .supply-pager {padding:12px}
  .supply-pager > div {width:100%; justify-content:space-between}
  .supply-result-line {padding:12px}
}
@media (max-width: 680px) {
  .mobile-records table,
  .mobile-records tbody {
    display: block;
  }
  .mobile-records thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-records tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 16px;
    padding: 15px;
    border-top: 1px solid var(--line);
  }
  .mobile-records td,
  .mobile-records td:first-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .mobile-records td:first-child {
    grid-column: 1/-1;
    font-size: 15px;
  }
  .mobile-records td:last-child {
    grid-column: 1/-1;
  }
  .mobile-records td:nth-child(2)::before,
  .mobile-records td:nth-child(3)::before,
  .mobile-records td:nth-child(4)::before {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
  }
  .product-records td:nth-child(2)::before {
    content: "供货价 / 允许售价";
  }
  .product-records td:nth-child(3)::before {
    content: "供应范围";
  }
  .task-records td:nth-child(2)::before {
    content: "经销商";
  }
  .task-records td:nth-child(3)::before {
    content: "截止时间";
  }
  .payout-records td:nth-child(2)::before { content: "经销商"; }
  .payout-records td:nth-child(3)::before { content: "申请时间"; }
  .mobile-records td:nth-child(4)::before {
    content: "状态";
  }
  .private-product-records td:nth-child(2)::before { content: "供货价 / 允许售价"; }
  .private-product-records td:nth-child(3)::before { content: "状态"; }
  .private-product-records td:nth-child(4)::before { content: none; }
  .support-account-records td:nth-child(2)::before { content: "咨询类型"; }
  .account-ledger-records td:nth-child(2)::before { content: "资金账户"; }
  .account-ledger-records td:nth-child(3)::before { content: "变动金额"; }
  .account-ledger-records td:nth-child(4)::before { content: "记账时间"; }
  .support-queue-records td:nth-child(2)::before { content: "经销商"; }
  .support-account-records td:nth-child(3)::before,
  .support-queue-records td:nth-child(3)::before { content: "处理状态"; }
  .support-account-records td:nth-child(4)::before,
  .support-queue-records td:nth-child(4)::before { content: "最近更新"; }
  .mobile-records td .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .mobile-records .request-details .data-list {
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
  }
}
.sidebar .navigation {
  min-width: 0;
}
.sidebar nav {
  max-width: 100%;
}
@media (max-width: 800px) {
  .sidebar nav {
    overflow-x: auto;
    white-space: nowrap;
  }
  .sidebar nav a {
    flex: none;
  }
}
@media (max-width: 580px) {
  .task-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-filters select {
    min-width: 0;
    width: 100%;
  }
}
.dialog-head,
.dialog-body,
.dialog-foot {
  padding: 18px 22px;
}
.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head {
  border-bottom: 1px solid var(--line);
}
.dialog-foot {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.dialog-body {
  display: grid;
  gap: 14px;
}
.dialog-body label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.dialog-body small {
  font-weight: 400;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.summary {
  background: #f2f6fa;
  border: 1px solid #dbe5ee;
  border-radius: 7px;
  padding: 10px 12px;
  color: #40566d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.summary b {
  color: #203b56;
}
.split-summary {
  display: grid;
  gap: 3px;
}
.dialog-head button {
  width: 32px;
}
.mobile-label {
  display: none;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
}
.deck > div {
  min-width: 0;
}
.type-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.type-filter select {
  width: auto;
  min-height: 36px;
}
.account-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  font-size: 13px;
}
.request-details {
  margin-top: 7px;
  font-size: 13px;
}
.request-details summary {
  cursor: pointer;
  color: var(--blue);
}
.request-details .data-list {
  margin-top: 10px;
  grid-template-columns: 100px minmax(140px, 1fr);
  gap: 7px 12px;
  font-size: 13px;
}
@media (max-width: 580px) {
  .sidebar nav {
    overflow-x: auto;
  }
  .sidebar .nav-link {
    white-space: nowrap;
    padding-inline: 7px;
  }
  .sidebar .nav-link .icon {
    display: none;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }
  .deck {
    grid-template-columns: 1fr;
  }
  .search-zone {
    gap: 14px;
  }
  .deck > .panel + .panel {
    margin-top: 0;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar .brand img {
    width: 31px;
    height: 31px;
  }
  .sidebar .brand b {
    font-size: 16px;
  }
  .sidebar .brand small,
  .rail-label {
    display: none;
  }
  .navigation {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
  }
  .nav-link {
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
  }
  .nav-link[aria-current="page"] {
    box-shadow: inset 0 -2px #93c4f3;
  }
  .nav-link .icon {
    width: 16px;
    height: 16px;
  }
  .rail-foot {
    margin: 0;
    padding: 0;
    border: none;
  }
  .rail-foot a {
    padding: 3px 0;
    font-size: 12px;
    gap: 5px;
  }
  .rail-foot a .icon:first-child {
    display: none;
  }
  .topbar {
    min-height: 43px;
  }
  .who .avatar {
    display: none;
  }
  .content {
    padding-top: 20px;
  }
  .intro {
    align-items: flex-start;
  }
  .search-zone {
    display: block;
    padding: 16px;
  }
  .search-form {
    margin-top: 9px;
    max-width: none;
  }
  .stats {
    padding: 12px 0;
  }
  .panel-head {
    padding: 14px 16px;
  }
}
@media (max-width: 580px) {
  .intro {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 17px;
  }
  .actions {
    gap: 6px;
  }
  .actions .btn {
    padding: 7px 10px;
    font-size: 13px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }
  .stat:nth-child(3) {
    border: 0;
  }
  .search-zone small {
    display: none;
  }
  .who {
    gap: 3px;
  }
  .topbar .crumb {
    font-size: 12px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 14px;
  }
  .content {
    padding-inline: 14px;
  }
  td,
  th {
    padding-inline: 10px;
  }
  table {
    font-size: 14px;
  }
  .dialog-body,
  .dialog-head,
  .dialog-foot {
    padding: 15px;
  }
  .date-col {
    min-width: 130px;
  }
}
.support-thread{padding:4px 22px}
.support-note{padding:14px 0;border-bottom:1px solid var(--border,#dae2ec)}
.support-note:last-child{border-bottom:0}
.support-note header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.support-note time{color:var(--muted,#556780);font-size:.82rem}
.support-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:7px 0 0}
.support-desk-split {display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);align-items:start;gap:20px}
.support-desk-split > * {min-width:0; margin-top:0}
.support-desk-split .support-thread {display:grid;gap:12px;padding:20px;background:var(--bg)}
.support-desk-split .support-note {max-width:90%;justify-self:start;padding:12px 15px;background:white;border:1px solid var(--line);border-radius:10px}
.support-desk-split .support-note.is-staff {justify-self:end;background:#edf3ff}
.support-case-context {display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 20px;border-block:1px solid var(--line);color:var(--muted);font-size:.88rem}
.support-case-context span:first-child {font-weight:650;color:var(--ink)}
.support-desk-split .support-note.is-system {background:transparent;color:var(--muted);border-style:dashed}
@media(max-width:950px){.support-desk-split{grid-template-columns:minmax(0,1fr)}}

@media (max-width: 580px) {
  .actions .btn, .directory-pager button, .catalog-pager button, .tabs a { min-height: 42px; }
  .panel-head, .panel-head > div { min-width: 0; }
  .panel-head { flex-wrap: wrap; }
  .content .directory-search { align-items: stretch; }
  .directory-search input { flex: 1 1 11rem; width: auto; }
}
