:root {
  --navy-950: #101d2f;
  --navy-900: #17263c;
  --navy-800: #203653;
  --navy-700: #314968;
  --ink: #182234;
  --paper: #fffefb;
  --canvas: #f5f4ef;
  --soft: #f1f3f5;
  --line: #dde1e5;
  --line-strong: #cbd1d7;
  --muted: #667080;
  --muted-light: #8b93a0;
  --wine: #8b3246;
  --wine-dark: #702438;
  --wine-wash: #fbf1f3;
  --gold: #a87527;
  --gold-wash: #fbf4e8;
  --green: #2f745c;
  --green-wash: #edf7f2;
  --shadow-sm: 0 1px 2px rgba(21, 31, 47, 0.04), 0 8px 24px rgba(21, 31, 47, 0.04);
  --shadow-lg: 0 20px 60px rgba(17, 29, 47, 0.17);
  --sans: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sidebar: 232px;
  --drawer: 470px;
  --cols: 72px minmax(180px, 1.15fr) minmax(220px, 1.35fr) 104px 126px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.auth-pending > :not(#auth-gate):not(#toast),
.auth-locked > :not(#auth-gate):not(#toast) { visibility: hidden; }
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 15%, rgba(215, 189, 139, 0.14), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}
.auth-card {
  width: min(410px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(8, 18, 33, 0.34);
}
.auth-card .brand-mark { margin-bottom: 26px; background: var(--navy-900); color: white; }
.auth-card h1 { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1; }
.auth-card > p:not(.eyebrow):not(.auth-error) { margin: 9px 0 24px; color: var(--muted); font-size: 13px; }
.auth-card label { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; font-weight: 600; }
.auth-card input {
  width: 100%;
  height: 44px;
  margin-top: 5px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: white;
}
.auth-card .primary { width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 9px; background: var(--navy-900); color: white; font-weight: 600; }
.auth-card .primary:disabled { cursor: wait; opacity: 0.65; }
.auth-error { min-height: 18px; margin: 9px 0 0; color: var(--wine); font-size: 11px; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(49, 73, 104, 0.32); outline-offset: 2px; }
::placeholder { color: var(--muted-light); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  width: var(--sidebar);
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  color: #f7f4ed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand strong, .brand small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; }
.brand small { margin-top: 2px; color: rgba(247, 244, 237, 0.6); font-size: 10px; letter-spacing: 0.04em; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label {
  margin: 0 10px 8px;
  color: rgba(247, 244, 237, 0.42);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-label-tools { margin-top: 20px; }
.sidebar nav button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(247, 244, 237, 0.7);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.sidebar nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar nav button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 #d7bd8b;
}
.nav-icon { display: grid; place-items: center; color: rgba(247, 244, 237, 0.55); font-size: 16px; }
#nav-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
#nav-count:empty { display: none; }
.sidebar-foot {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 17px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d9c39a;
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 600;
}
.sidebar-foot strong { font-size: 12px; font-weight: 600; }
.sidebar-foot small { color: rgba(247, 244, 237, 0.5); font-size: 11px; }
.sidebar-foot button { border: 0; background: none; color: rgba(247, 244, 237, 0.5); }

.workspace { margin-left: var(--sidebar); min-height: 100vh; transition: margin-right 180ms ease; }
.mast, main { width: min(100%, 1380px); margin: 0 auto; }
.mast {
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 36px 24px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}
#today-line { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.mast-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 116, 92, 0.1);
}
.mast-status strong, .mast-status small { display: block; }
.mast-status strong { font-size: 12px; font-weight: 600; }
.mast-status small { color: var(--muted); font-size: 10px; }

main { padding: 0 36px 64px; }
.briefing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  min-height: 170px;
  padding: 30px 34px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 15%, rgba(215, 189, 139, 0.12), transparent 28%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white;
  box-shadow: 0 16px 38px rgba(23, 38, 60, 0.14);
}
.briefing .eyebrow { color: #d7bd8b; }
.briefing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.briefing-copy > p:last-child { max-width: 610px; margin: 9px 0 0; color: rgba(255, 255, 255, 0.65); font-size: 13px; }
.briefing-metrics { display: grid; grid-template-columns: repeat(3, 92px); }
.briefing-metrics div { padding: 2px 20px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.briefing-metrics strong, .briefing-metrics span { display: block; }
.briefing-metrics strong { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.briefing-metrics span { margin-top: 7px; color: rgba(255, 255, 255, 0.58); font-size: 11px; }

.work-panel {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.panel-heading {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.tools { display: flex; align-items: center; gap: 14px; }
#filters { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 9px; background: var(--soft); }
#filters button {
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
#filters button:hover { color: var(--ink); }
#filters button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 31, 46, 0.1); }
#filters button[data-filter="noreply"][aria-pressed="true"] { color: var(--gold); }
#filters button[data-filter="risk"][aria-pressed="true"],
#filters button[data-filter="overdue"][aria-pressed="true"] { color: var(--wine); }
.search { position: relative; display: block; }
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; background: var(--muted); transform: rotate(45deg); }
.search input {
  width: 210px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px 7px 32px;
  background: white;
  font-size: 12px;
}
.search input:focus { border-color: var(--navy-700); outline: none; box-shadow: 0 0 0 3px rgba(49, 73, 104, 0.09); }
.showing { margin: 0; padding: 7px 26px 0; color: var(--muted); font-size: 11px; }
.showing:empty { display: none; }

.cols, .row { display: grid; grid-template-columns: var(--cols); column-gap: 18px; }
.cols {
  padding: 13px 26px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.row {
  position: relative;
  width: 100%;
  min-height: 86px;
  margin: 0;
  padding: 16px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  align-items: start;
  row-gap: 2px;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}
.row:last-child { border-bottom: 0; }
.row:hover { z-index: 1; background: #fbfbf9; box-shadow: inset 3px 0 0 var(--navy-700); }
.row.at-risk { background: var(--wine-wash); box-shadow: inset 3px 0 0 var(--wine); }
.row.at-risk:hover { background: #f9eaed; }
.row.is-open { background: #eef1f4; box-shadow: inset 3px 0 0 var(--navy-700); }
.client, .filing, .chan, .status, .reason { min-width: 0; }
.client strong, .filing b, .reason { overflow-wrap: break-word; }
.day { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; }
.day.is-late { color: var(--wine); }
.month { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.client strong, .filing b { display: block; font-size: 13px; font-weight: 600; }
.client small, .filing small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.chan { padding-top: 1px; color: var(--muted); font-size: 12px; }
.status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.flag { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: var(--green-wash); color: var(--green); font-size: 10px; font-weight: 600; white-space: nowrap; }
.flag.quiet { background: var(--gold-wash); color: var(--gold); }
.flag.risk { background: #f4dfe4; color: var(--wine-dark); }
.reason { grid-column: 2 / -1; margin: 1px 0 0; max-width: 74ch; color: var(--muted); font-size: 11px; }
.row.at-risk .reason { color: var(--wine-dark); }
.empty { padding: 46px 26px; text-align: center; }
.empty h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; font-weight: 600; }

.btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn { border: 1px solid var(--navy-900); background: var(--navy-900); color: white; }
.btn:hover { background: var(--navy-800); }
.btn:disabled { border-color: var(--line-strong); background: var(--line-strong); color: white; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line-strong); background: white; color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--soft); }

.scrim { position: fixed; inset: 0; z-index: 6; border: 0; background: rgba(16, 29, 47, 0.38); backdrop-filter: blur(2px); }
#drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 7;
  width: var(--drawer);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
body.drawer-open .workspace { margin-right: var(--drawer); }
.drawer-head, .drawer-block, .composer { padding-left: 25px; padding-right: 25px; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 26px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; overflow-wrap: break-word; }
.drawer-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.drawer-head button { border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; background: white; color: var(--muted); font-size: 11px; }
.banner { margin: 16px 25px 2px; border-radius: 9px; padding: 10px 12px; font-size: 11px; }
.banner.risk { background: var(--wine-wash); color: var(--wine-dark); }
.banner.quiet { background: var(--gold-wash); color: #76531c; }
.drawer-scroll { overflow: auto; flex: 1; min-height: 0; padding-bottom: 16px; }
.drawer-block { padding-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-block:last-child { border-bottom: 0; }
.drawer-block h3 { margin: 3px 0 9px; color: var(--navy-700); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.drawer-block > p:not(.meta):not(.notice) { margin: 0; font-size: 12px; }
.meta { display: grid; grid-template-columns: 92px 1fr; margin: 0 0 6px; font-size: 12px; }
.meta span { color: var(--muted); }
.notice { margin: 10px 0 0; border-left: 2px solid var(--gold); padding-left: 10px; color: #76531c; font-size: 11px; }
.auto-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auto-row h3 { margin: 3px 0 9px; }
.switch { border: 0; border-radius: 999px; padding: 4px 9px; background: var(--green-wash); color: var(--green); font-size: 10px; font-weight: 600; }
.switch[aria-pressed="false"] { background: var(--soft); color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { margin: 7px 0; font-size: 12px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; }
.checks input { accent-color: var(--green); }
.log { margin-top: 8px; padding: 11px 12px; border-radius: 8px; background: var(--soft); font-size: 12px; }
.log.client { margin-left: 20px; background: #edf2f7; box-shadow: inset 2px 0 0 var(--navy-700); }
.log.practice { margin-right: 20px; background: #f6f2ea; }
.log.note { color: var(--muted); background: transparent; border: 1px dashed var(--line-strong); }
.log-meta { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.log p:last-child { margin: 0; }
.log-subject { margin: 0 0 4px; font-weight: 600; }
.composer { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 17px; background: #faf9f6; }
.pick { display: flex; gap: 5px; margin-bottom: 9px; }
.pick button { border: 0; border-radius: 6px; padding: 5px 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; }
.pick button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 31, 46, 0.12); }
#composer-subject, #composer-text { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: white; font-size: 12px; }
#composer-subject { margin-bottom: 7px; }
#composer-text { min-height: 110px; resize: vertical; }
.warn { margin: 7px 0 0; color: var(--wine); font-size: 11px; }
.composer-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

.channel-page { max-width: 860px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); }
.channel-page > h1 { margin: 0; padding: 24px 26px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; font-weight: 600; }
.channel-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.channel-row:last-child { border-bottom: 0; }
.channel-row h2 { margin: 0; font-size: 13px; font-weight: 600; }
.channel-row p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.channel-row .live { color: var(--green); }
.wait { grid-column: 1 / -1; }
.unmatched { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.unmatched strong { width: 100%; color: var(--wine); font-size: 10px; font-weight: 600; }
.unmatched code { border-radius: 5px; padding: 3px 6px; background: var(--wine-wash); color: var(--wine-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

dialog { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(16, 29, 47, 0.5); backdrop-filter: blur(2px); }
.dialog-body { padding: 26px; }
.dialog-body h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.dialog-body > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.drop { display: block; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 10px; margin-bottom: 12px; background: #faf9f6; cursor: pointer; text-align: center; }
.drop strong { display: block; font-size: 13px; font-weight: 600; }
.drop input { max-width: 100%; margin-top: 10px; font-size: 11px; }
.drop.over { border-color: var(--navy-700); background: var(--soft); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dialog-actions.start { justify-content: flex-start; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 11px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
th { color: var(--muted); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.steps span { color: var(--muted); font-size: 11px; }
.steps p { margin: 0; font-size: 12px; }

#toast { position: fixed; left: calc(var(--sidebar) + 24px); bottom: 24px; z-index: 9; max-width: min(420px, calc(100vw - 48px)); border-radius: 9px; padding: 10px 13px; background: var(--navy-900); color: white; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; font-size: 12px; }
#toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1181px) { .scrim { display: none !important; } }
@media (max-width: 1180px) {
  body.drawer-open .workspace { margin-right: 0; }
  #drawer { width: min(var(--drawer), 100%); }
  .briefing { gap: 24px; }
  .briefing-metrics { grid-template-columns: repeat(3, 76px); }
  .briefing-metrics div { padding: 2px 14px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .tools { width: 100%; justify-content: space-between; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { position: static; width: 100%; min-height: auto; padding: 12px 16px; flex-direction: row; align-items: center; gap: 12px; }
  .brand { padding: 0; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; font-size: 15px; }
  .brand > span:last-child, .nav-label, .sidebar-foot { display: none; }
  .sidebar nav { margin-left: auto; flex-direction: row; gap: 3px; }
  .sidebar nav button { width: auto; min-height: 36px; display: flex; padding: 7px 9px; }
  .sidebar nav button span:not(.nav-icon), .sidebar nav button em { display: none !important; }
  .sidebar nav button[aria-current="page"] { box-shadow: none; }
  .workspace { margin-left: 0; }
  .mast { min-height: 104px; padding: 22px 20px 18px; }
  main { padding: 0 20px 44px; }
  .briefing { grid-template-columns: 1fr; padding: 26px; }
  .briefing-metrics { grid-template-columns: repeat(3, 1fr); }
  .work-panel { border-radius: 13px; }
  .cols, .row { --cols: 58px minmax(0, 1.2fr) minmax(0, 1fr); padding-left: 18px; padding-right: 18px; column-gap: 14px; }
  .chan, .cols span:nth-child(4), .cols span:nth-child(5) { display: none; }
  .status { grid-column: 2 / -1; flex-direction: row; gap: 5px; }
  #toast { left: 20px; }
}

@media (max-width: 640px) {
  .sidebar nav button { padding: 6px; }
  .mast { align-items: flex-start; }
  .mast-status { display: none; }
  main { padding-left: 12px; padding-right: 12px; }
  .briefing { padding: 22px 20px; border-radius: 12px; }
  .briefing-copy > p:last-child { font-size: 12px; }
  .briefing-metrics { gap: 0; }
  .briefing-metrics div { padding: 0 12px; }
  .briefing-metrics div:first-child { padding-left: 0; border-left: 0; }
  .briefing-metrics strong { font-size: 25px; }
  .panel-heading { padding: 18px; }
  .tools { align-items: stretch; flex-direction: column; }
  #filters { width: fit-content; max-width: 100%; }
  .search input { width: 100%; }
  .cols { display: none; }
  .row { --cols: 46px 1fr; min-height: 104px; padding: 17px 16px; }
  .filing { grid-column: 2; margin-top: 5px; }
  .status { grid-column: 2; margin-top: 4px; }
  .reason { grid-column: 2; }
  .day { font-size: 24px; }
  .drawer-head, .drawer-block, .composer { padding-left: 18px; padding-right: 18px; }
  .banner { margin-left: 18px; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
