@font-face {
  font-family: "Manrope";
  src: url("/vendor/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --bg: #f6f7f5;
  --paper: #fff;
  --ink: #20322e;
  --muted: #60716b;
  --line: #dde4df;
  --soft: #edf2ee;
  --green: #17634d;
  --green-dark: #114c3b;
  --green-soft: #e4f1e9;
  --lime: #d9f18b;
  --amber: #876018;
  --amber-soft: #fbf2df;
  --red: #a24836;
  --radius: 14px;
  --shadow: 0 2px 3px #17342604, 0 7px 20px #17342605;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --surface-hover: #f0f5f1;
  --overdue-soft: #fcf3ee;
  --radius-control: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2a886b;
  outline-offset: 3px;
}
button:disabled:active {
  transform: none;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.22;
  font-weight: 750;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 640;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
small {
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}
.app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #183d33;
  color: #d9e6de;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #678578 #183d33;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
}
.brand-mark {
  width: 36px;
  height: 39px;
  border: 1px solid #e2f5bd33;
  border-radius: 12px 12px 12px 3px;
  background: var(--lime);
  color: #23422f;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: white;
  white-space: nowrap;
}
.brand-by {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b1cbbd;
  margin-top: 2px;
}
.workspace {
  margin: 28px 8px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.workspace strong {
  display: block;
  font-size: 12px;
  color: #edf4ee;
  font-weight: 550;
}
.workspace small {
  font-size: 11px;
  color: #abc4b5;
}
.nav-label {
  padding: 0 12px;
  color: #a7c0b1;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid transparent;
  background: none;
  color: #c3d6cb;
  text-align: left;
  padding: 11px 12px;
  min-height: 46px;
  border-radius: var(--radius-control);
  font-size: 13px;
}
.nav button:hover {
  background: #ffffff0b;
  color: white;
}
.nav button.active {
  background: var(--lime);
  color: #294431;
  font-weight: 650;
  box-shadow: 0 2px 5px #092a231a;
}
.nav .nav-count {
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fff3;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
}
.nav-divider {
  height: 1px;
  background: #ffffff15;
  margin: 17px 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 9px 0;
}
.profile {
  border-top: 1px solid #ffffff1b;
  padding-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 34px;
  width: 34px;
  flex-shrink: 0;
  background: #dce5d8;
  color: #3b5647;
  border: 1px solid #cbdac8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.profile strong {
  font-size: 12px;
  display: block;
  color: #ebf1ed;
}
.profile small {
  font-size: 10px;
  color: #a5c0b0;
}
.main-shell {
  min-width: 0;
}
.topbar {
  min-height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb svg {
  width: 15px;
  height: 15px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  color: #5f6d63;
}
.demo-label:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ca572;
}
.topbar .text-btn {
  font-size: 12px;
  min-height: 40px;
}
.mobile-brand {
  display: none;
}
.main {
  padding: 28px 32px 32px;
  max-width: 1840px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px #0f332005;
}
.btn:hover {
  border-color: #a9beb1;
  background: #f8faf8;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.small {
  padding: 8px 11px;
  font-size: 12px;
  min-height: 40px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--soft);
  border-color: #9fb4a7;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.text-btn {
  min-height: 44px;
  border: 0;
  background: none;
  padding: 8px 5px;
  color: var(--green);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}
.text-btn:hover {
  background: var(--green-soft);
  border-radius: 7px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: transparent;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  position: relative;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  min-width: 0;
  gap: 14px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric:hover {
  background: var(--surface-hover);
}
.metric-label {
  font-size: 12px;
  color: var(--ink);
  font-weight: 650;
  display: block;
  max-width: none;
}
.metric-num {
  display: block;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.metric-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.metric.attention .metric-num {
  color: var(--amber);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 190px;
}
.search-wrap svg {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.search-wrap input {
  padding-left: 40px !important;
  width: 100%;
}
.input,
select,
textarea {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: white;
  padding: 10px 12px;
  font-size: 13px;
  max-width: 100%;
  width: 100%;
}
.input::placeholder,
textarea::placeholder {
  color: #65766e;
}
select {
  cursor: pointer;
}
.toolbar-spacer {
  flex: 1;
}
.segmented {
  display: flex;
  background: #e9eeea;
  border: 1px solid #e1e7e2;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: none;
  border-radius: 5px;
  min-height: 36px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #183d3312;
}
.segmented svg {
  width: 16px;
  height: 16px;
}
.filter-count {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 11px;
}
.filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 15px;
  align-items: end;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field-row {
  display: flex;
  gap: 7px;
}
.field-row select {
  min-width: 0;
  flex: 1;
}
.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.quick-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.chip.active {
  background: var(--green-soft);
  border-color: #bad5c7;
  color: #235c43;
  font-weight: 600;
}
.chip:hover {
  border-color: #a5bcae;
}
.chip svg {
  width: 14px;
  height: 14px;
}
.chip .count {
  font-size: 11px;
  opacity: 0.85;
}
.view-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.view-meta h2 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}
.view-meta .meta-end {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.view-meta p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.board-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: #b1c4b7 transparent;
}
.board {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 100%;
}
.column {
  flex: 1 0 286px;
  min-width: 286px;
  max-width: 340px;
}
.column-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 38px;
  padding: 0 3px 9px;
  border-bottom: 1px solid var(--line);
}
.stage-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #8b9c94;
  border-radius: 50%;
  flex-shrink: 0;
}
.stage-dot.preparing {
  border-color: #ba983e;
  border-style: dashed;
}
.stage-dot.analysis {
  border-color: #73908a;
  background: #73908a55;
}
.stage-dot.authorized {
  border-color: #559279;
  background: #559279;
}
.stage-dot.scheduled {
  border-color: var(--green);
  background: var(--green);
}
.column-heading h3 {
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stage-count {
  font-size: 11px;
  min-width: 21px;
  text-align: center;
  background: #e6ece7;
  color: #5c6f63;
  border-radius: 5px;
  padding: 1px 5px;
}
.column-heading .text-btn {
  margin-left: auto;
  min-height: 36px;
  min-width: 36px;
  padding: 6px;
}
.column-heading .text-btn svg {
  width: 16px;
  height: 16px;
}
.column-body {
  display: grid;
  gap: 12px;
}
.case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 18px 18px 10px;
  min-width: 0;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.case-card:hover {
  border-color: #b2c5b8;
}
.case-open {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 0;
  border-radius: 4px;
}
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.case-id {
  font-size: 11px;
  color: #718177;
  letter-spacing: 0.025em;
}
.due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #58715e;
  background: #f0f4ef;
  font-size: 10px;
  white-space: nowrap;
}
.due.urgent {
  background: var(--amber-soft);
  color: var(--amber);
}
.due.overdue {
  background: #f9ebe7;
  color: var(--red);
}
.due svg {
  width: 11px;
  height: 11px;
}
.case-name {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.25px;
  display: block;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.case-treatment {
  font-size: 13px;
  color: var(--muted);
  display: block;
  line-height: 1.5;
}
.case-plan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #607565;
  font-size: 11px;
  margin-top: 10px;
}
.case-plan svg {
  width: 13px;
  height: 13px;
}
.case-next {
  padding: 14px 0;
  margin: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-next span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-next strong {
  font-weight: 700;
  font-size: 13px;
  display: block;
  line-height: 1.6;
  color: var(--green-dark);
}
.docs-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 9px;
  color: var(--muted);
}
.docs-head strong {
  font-weight: 550;
  color: var(--ink);
}
.doc-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}
.doc-slot {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--green);
  border-radius: 7px;
  padding: 6px 5px;
  display: grid;
  align-items: center;
  position: relative;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  text-align: left;
}
.doc-slot svg {
  width: 20px;
  height: 20px;
  grid-row: 1 / 3;
}
.doc-slot .doc-short {
  font-size: 12px;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 2;
  letter-spacing: normal;
}
.doc-slot small {
  font-size: 10px;
  grid-column: 2;
}
.doc-slot .state-mark {
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  left: 18px;
}
.doc-slot.missing {
  color: var(--muted);
}
.doc-slot.received {
  color: #85601c;
}
.doc-slot:hover {
  border-color: var(--green);
  background: #e9f2e8;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.card-foot .avatar {
  width: 23px;
  height: 23px;
  font-size: 8px;
}
.card-owner {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-foot .text-btn {
  font-size: 12px;
  min-height: 40px;
}
.card-foot .text-btn svg {
  width: 13px;
  height: 13px;
}
.empty-column {
  border: 1px dashed #cdd9ce;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  color: #6c7d6e;
  font-size: 12px;
  background: #ffffff44;
}
.add-column {
  border: 1px dashed #b8cdbb;
  border-radius: 10px;
  color: var(--green);
  background: #edf3e9;
  min-height: 66px;
  min-width: 180px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 52px;
  font-size: 12px;
}
.board-help {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}
.board-help svg {
  width: 15px;
  height: 15px;
}
.mobile-stage-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 20px;
}
.mobile-stage-filter .chip {
  min-height: 44px;
  max-width: 100%;
  font-size: 12px;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.mobile-stage-filter .count {
  flex-shrink: 0;
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--green-soft);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mobile-stage-filter .add-stage {
  border-style: dashed;
  color: var(--green);
}
.case-list {
  display: grid;
  gap: 10px;
}
.case-list .case-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(
      200px,
      1fr
    );
  column-gap: 25px;
  align-items: center;
  padding: 17px 20px;
}
.case-list .case-top {
  margin-bottom: 5px;
}
.case-list .case-plan {
  margin-top: 5px;
}
.case-list .case-next {
  margin: 0;
}
.case-list .case-next strong {
  min-height: 0;
}
.case-list .card-foot {
  grid-column: 1/-1;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f0f3ef;
}
.case-list .doc-slots {
  gap: 6px;
}
.case-list .doc-slot {
  min-height: 56px;
}
.list-stage {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.empty-state {
  border: 1px dashed #c8d7c9;
  border-radius: 14px;
  background: #ffffff80;
  padding: 55px 24px;
  text-align: center;
}
.empty-state > svg {
  width: 32px;
  height: 32px;
  color: #72907a;
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--muted);
  margin: 8px 0 22px;
  font-size: 13px;
}
.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(245px, 0.85fr);
  gap: 28px;
}
.daily-main {
  min-width: 0;
}
.day-group {
  margin-bottom: 28px;
}
.day-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 10px;
}
.day-group-title.overdue {
  color: var(--red);
}
.day-group-title span {
  color: var(--muted);
  font-weight: 400;
}
.task-row {
  border: 0;
  padding: 20px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border-radius: 0;
  width: 100%;
}
.task-row:hover {
  background: var(--surface-hover);
}
.task-initial {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #edf2e8;
  color: #5d7150;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
}
.task-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.task-row > svg {
  width: 16px;
  height: 16px;
  color: #839889;
}
.side-panel {
  padding: 4px 0 4px 28px;
  align-self: start;
  border-left: 1px solid var(--line);
}
.side-panel h3 {
  font-size: 14px;
}
.side-panel .side-label {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 20px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin: 15px 0 20px;
}
.day-pill {
  padding: 8px 0;
  text-align: center;
  border-radius: 7px;
  font-size: 10px;
  color: var(--muted);
}
.day-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 3px 0;
}
.day-pill.current {
  background: var(--green);
  color: white;
}
.day-pill .tiny-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #85a487;
  display: block;
  margin: 5px auto 0;
}
.day-pill.current .tiny-dot {
  background: var(--lime);
}
.side-item {
  border: 0;
  border-top: 1px solid #e8eee8;
  background: none;
  width: 100%;
  padding: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.side-item svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  margin-top: 3px;
}
.side-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.side-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.side-item:hover {
  background: #f5f8f3;
}
.page-foot {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.storage-alert {
  padding: 12px 16px;
  border: 1px solid #e2c9a0;
  border-radius: 8px;
  background: var(--amber-soft);
  font-size: 12px;
  color: #755318;
  margin-bottom: 16px;
}
.mobile-nav {
  display: none;
}
/* Case workspace */
dialog {
  border: 1px solid #d8e2d9;
  background: white;
  color: var(--ink);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 18px 80px #0f2c3033;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #132d3052;
  backdrop-filter: blur(2px);
}
dialog[open] {
  animation: enter 0.18s var(--ease);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#case-dialog {
  width: min(700px, 92vw);
  max-height: 100dvh;
  height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: 15px 0 0 15px;
  border-right: 0;
  overflow: auto;
}
#case-dialog[open] {
  animation: drawer-in 0.22s var(--ease);
}
@keyframes drawer-in {
  from {
    opacity: 0.6;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.drawer-top {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 18px 25px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.drawer-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 19px;
}
.large-avatar {
  width: 47px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5d6;
  background: #edf3e7;
  color: #5c7050;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 550;
  flex-shrink: 0;
}
.drawer-heading h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.drawer-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.drawer-tabs {
  display: flex;
  gap: 26px;
}
.drawer-tabs button {
  padding: 12px 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 13px;
  min-height: 46px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.drawer-tabs button[aria-selected="true"] {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.drawer-tabs svg {
  height: 17px;
  width: 17px;
}
.drawer-body {
  padding: 24px 25px;
}
.drawer-footer {
  padding: 17px 25px;
  background: #f7f9f5;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 22px;
  margin-bottom: 25px;
}
.info-grid .info-label {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}
.info-grid .info-value {
  font-size: 13px;
  font-weight: 550;
}
.next-action {
  border: 1px solid #d6e5cc;
  background: #f0f6e8;
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 26px;
}
.next-action .eyebrow {
  color: #587247;
  font-size: 10px;
}
.next-action-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.next-action h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.next-action p {
  font-size: 13px;
  color: #5a7055;
  line-height: 1.7;
  margin-bottom: 15px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.section-heading h3 {
  font-size: 14px;
}
.section-heading small {
  color: var(--muted);
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  min-width: 0;
}
.check-icon {
  width: 34px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
  border-radius: 7px;
  flex-shrink: 0;
}
.check-icon svg {
  width: 20px;
  height: 20px;
}
.check-copy {
  min-width: 0;
  flex: 1;
}
.check-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.check-copy small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  white-space: nowrap;
}
.status-tag svg {
  width: 12px;
  height: 12px;
}
.status-tag.reviewed {
  color: var(--green);
}
.status-tag.received {
  color: var(--amber);
}
.status-tag.missing {
  color: #6b776c;
}
.documents-summary {
  background: #f6f8f4;
  border: 1px solid #e2e9de;
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.documents-summary svg {
  color: var(--green);
  width: 25px;
  height: 25px;
}
.documents-summary strong {
  display: block;
  font-size: 13px;
}
.documents-summary p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 22px;
}
.document-tile {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
}
.doc-preview-button {
  width: 100%;
  height: 130px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #eff2eb;
  position: relative;
  overflow: hidden;
}
.doc-preview-button:hover {
  background: #e5edde;
}
.mini-paper {
  height: 99px;
  width: 76px;
  border-radius: 3px;
  background: white;
  border: 1px solid #d4dfd1;
  box-shadow: 0 3px 8px #293e2514;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 9px;
  gap: 5px;
  transform: rotate(-4deg);
}
.mini-paper svg {
  width: 17px;
  height: 17px;
  color: #618068;
}
.paper-line {
  height: 3px;
  width: 100%;
  background: #d7e1d4;
  border-radius: 1px;
}
.paper-line.short {
  width: 65%;
}
.mini-paper span {
  font-size: 6px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: #7d8e77;
}
.doc-file-format {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 5px;
  background: #fff9;
  border: 1px solid #dce5d7;
  border-radius: 4px;
  font-size: 9px;
  color: #5c7056;
}
.doc-preview-button .preview-action {
  position: absolute;
  bottom: 9px;
  right: 9px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: white;
  border: 1px solid #d9e3d3;
  display: grid;
  place-items: center;
  color: var(--green);
}
.preview-action svg {
  width: 14px;
  height: 14px;
}
.document-tile-copy {
  padding: 12px;
}
.document-tile-copy strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.document-tile-copy p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 8px;
  overflow-wrap: anywhere;
}
.document-tile-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.document-tile-foot .text-btn {
  font-size: 11px;
  min-height: 36px;
}
.upload-panel {
  background: #f7faf6;
  border: 1px solid #b9cebc;
  border-radius: 11px;
  padding: 18px;
  margin-bottom: 20px;
}
.upload-panel h3 {
  font-size: 14px;
  margin-bottom: 14px;
}
.dropzone {
  position: relative;
  border: 1px dashed #a8c3ad;
  border-radius: 8px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  background: #ffffffb0;
  margin: 14px 0;
  padding: 16px;
}
.dropzone.dragging {
  background: #e4f2df;
  border-color: var(--green);
}
.dropzone svg {
  color: var(--green);
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
}
.dropzone strong {
  font-size: 13px;
  font-weight: 600;
}
.dropzone small {
  color: var(--muted);
  font-size: 11px;
}
.dropzone input {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}
.dropzone input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px 9px;
  color: var(--green);
  font: inherit;
  margin-right: 8px;
}
.upload-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.upload-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.error {
  color: #9c3828;
  background: #fcf0ec;
  border: 1px solid #eaccc1;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  margin: 12px 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
}
.timeline li {
  padding: 0 0 25px 24px;
  position: relative;
  border-left: 1px solid #dae5d8;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  background: #7e9c80;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cddbc8;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.timeline time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.timeline strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.dialog-header {
  padding: 22px 23px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-body {
  padding: 22px 23px;
}
.form-grid {
  display: grid;
  gap: 17px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.span-all {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.catalog-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  overflow: visible;
  padding-bottom: 0;
}
.catalog-tab {
  border: 1px solid transparent;
  background: none;
  padding: 10px 14px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.catalog-tab.active {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.catalog-tab svg {
  width: 17px;
  height: 17px;
}
.catalog-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.catalog-panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.catalog-panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px;
  min-height: 73px;
  border-bottom: 1px solid #ebefea;
}
.catalog-row:last-child {
  border: 0;
}
.catalog-symbol {
  width: 35px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #f0f4ed;
  border: 1px solid #e4ebe0;
  border-radius: 9px;
  color: #5f7860;
  flex-shrink: 0;
}
.catalog-symbol svg {
  width: 18px;
  height: 18px;
}
.catalog-row-copy {
  flex: 1;
  min-width: 0;
}
.catalog-row-copy strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.catalog-row-copy p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.catalog-row-actions {
  display: flex;
  gap: 5px;
}
.catalog-row-actions .icon-btn {
  border-color: transparent;
  background: none;
}
.catalog-row-actions .icon-btn:hover {
  background: var(--soft);
}
.catalog-row-number {
  font-size: 12px;
  color: var(--muted);
  min-width: 20px;
  display: none;
}
.preview-content {
  padding: 22px;
}
.preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}
.preview-content iframe {
  width: 100%;
  height: 60dvh;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1f3ef;
}
.illustrative-document {
  background: #f7f8f4;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.illustrative-document .paper {
  max-width: 320px;
  min-height: 310px;
  padding: 30px;
  background: white;
  border: 1px solid #dbe3d6;
  box-shadow: var(--shadow);
  margin: auto;
}
.illustrative-document .paper .eyebrow {
  color: #769069;
  font-size: 9px;
}
.illustrative-document h3 {
  margin: 22px 0 13px;
}
.illustrative-document p {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0;
}
.about-sections {
  display: grid;
  gap: 18px;
}
.about-sections h3 {
  margin-bottom: 5px;
}
.about-sections p {
  font-size: 13px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #d0dfca;
  background: #f3faef;
  color: #29472d;
  padding: 13px 19px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #16342420;
  z-index: 10;
  font-size: 12px;
  max-width: calc(100% - 30px);
}
.topbar-start {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.menu-toggle {
  border-color: transparent;
  background: none;
  width: 34px;
  height: 36px;
}
.menu-toggle:hover {
  background: #eaf0e6;
}
.app.menu-collapsed {
  grid-template-columns: 96px minmax(0, 1fr);
}
.menu-collapsed .sidebar {
  padding-left: 10px;
  padding-right: 10px;
}
.menu-collapsed .brand {
  padding: 0;
  justify-content: center;
}
.menu-collapsed .brand-text,
.menu-collapsed .workspace-copy,
.menu-collapsed .nav-count,
.menu-collapsed .nav-label,
.menu-collapsed .sidebar-note,
.menu-collapsed .profile-copy {
  display: none;
}
.menu-collapsed .workspace {
  margin: 34px 0 27px;
  justify-content: center;
}
.menu-collapsed .nav button {
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px;
  justify-content: center;
  min-height: 66px;
  text-align: center;
}
.menu-collapsed .nav-text {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
}
.menu-collapsed .profile {
  justify-content: center;
}
.menu-collapsed .sidebar-bottom {
  padding-left: 0;
  padding-right: 0;
}
.menu-collapsed .nav-divider {
  margin: 15px 4px;
}
@media (min-width: 1500px) {
  .column {
    flex-basis: 252px;
  }
  .main {
    padding: 36px 40px;
  }
  .topbar {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1199px) {
  .app {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand {
    gap: 8px;
    padding: 0 6px;
  }
  .brand-mark {
    width: 32px;
    height: 36px;
  }
  .main {
    padding: 26px 24px;
  }
  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }
  .metric {
    padding: 16px;
  }
  .metric-hint {
    font-size: 10px;
  }
  .day-layout {
    grid-template-columns: 1fr;
  }
  .side-panel {
    display: none;
  }
  .case-list .case-card {
    grid-template-columns: 1fr 1fr;
  }
  .case-list .case-next {
    grid-column: 1;
    grid-row: 2;
    margin: 10px 0 0;
  }
  .case-list .case-documents {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .page-heading {
    align-items: flex-start;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-by {
    font-size: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 33px;
  }
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .workspace {
    margin-left: 7px;
    margin-right: 3px;
  }
  .nav button {
    padding: 10px;
    font-size: 12px;
  }
  .nav-label {
    padding-left: 10px;
  }
  .main {
    padding: 23px 20px;
  }
  .topbar {
    padding: 12px 20px;
  }
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .metric-num {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.035em;
    margin: 0;
    display: block;
  }
  .metric {
    padding: 12px 17px;
  }
  .metric-hint {
    display: none;
  }
  .toolbar-spacer {
    display: none;
  }
  .search-wrap {
    max-width: none;
    flex-basis: calc(100% - 120px);
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .filter-panel > .text-btn {
    grid-column: 1/-1;
    justify-self: start;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .btn {
    padding: 10px 12px;
  }
  .page-heading p {
    max-width: 320px;
  }
  .page-foot {
    display: block;
  }
  .page-foot span {
    display: block;
    margin-top: 5px;
  }
}
@media (max-width: 700px) {
  .app {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.4px;
  }
  .mobile-brand .brand-mark {
    width: 27px;
    height: 30px;
  }
  .mobile-brand .brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    min-height: 63px;
    padding: 12px 18px;
    background: #fcfdfb;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar .text-btn {
    font-size: 0;
    width: 36px;
    min-height: 40px;
    padding: 0;
  }
  .topbar .text-btn svg {
    width: 18px;
    height: 18px;
  }
  .demo-label {
    font-size: 10px;
  }
  .main {
    padding: 24px 18px 100px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 12px;
    margin-top: 7px;
  }
  .heading-actions {
    padding-top: 18px;
  }
  .heading-actions .btn {
    min-height: 43px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .heading-actions .btn svg {
    width: 16px;
    height: 16px;
  }
  .summary {
    margin-bottom: 21px;
  }
  .metric {
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .metric-num {
    display: block;
    font-size: 28px;
    margin: 0;
    line-height: 1.5;
    font-weight: 750;
    letter-spacing: -0.035em;
  }
  .metric-label {
    font-size: 12px;
    max-width: none;
    line-height: 1.4;
    font-weight: 650;
    color: var(--ink);
    display: block;
  }
  .metric-inner {
    display: block;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 13px;
  }
  .toolbar .btn {
    min-height: 44px;
  }
  .search-wrap {
    min-width: 0;
    flex: 1;
  }
  .search-wrap input {
    font-size: 16px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .layout-switch {
    display: none;
  }
  .quick-filters {
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .chip {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .filter-panel {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 12px;
  }
  .filter-panel > .text-btn {
    grid-column: auto;
  }
  .field label {
    font-size: 12px;
  }
  .input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .view-meta {
    align-items: flex-start;
    margin-bottom: 13px;
  }
  .view-meta h2 {
    font-size: 13px;
  }
  .view-meta .meta-end {
    gap: 8px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .view-meta .meta-end > .text-btn {
    display: none;
  }
  .mobile-stage-filter .chip svg {
    width: 13px;
    height: 13px;
  }
  .board-scroll {
    overflow: visible;
    padding: 0;
  }
  .board {
    display: grid;
    gap: 24px;
  }
  .column {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .column-heading {
    margin-bottom: 9px;
  }
  .column-heading h3 {
    font-size: 13px;
  }
  .column-body {
    gap: 11px;
  }
  .case-card {
    padding: 17px;
  }
  .case-name {
    font-size: 18px;
  }
  .case-treatment {
    font-size: 13px;
  }
  .case-top {
    margin-bottom: 9px;
  }
  .case-plan {
    font-size: 12px;
    margin-top: 9px;
  }
  .due {
    font-size: 11px;
  }
  .case-next {
    margin: 13px 0;
    padding: 14px 0;
  }
  .case-next span {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .case-next strong {
    font-size: 13px;
    min-height: 0;
  }
  .doc-slots {
    gap: 7px;
  }
  .doc-slot {
    min-height: 48px;
    padding: 6px 5px;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    text-align: left;
  }
  .doc-slot svg {
    width: 20px;
    height: 20px;
  }
  .doc-slot .doc-short {
    font-size: 12px;
    font-weight: 650;
    grid-column: 2;
    letter-spacing: normal;
  }
  .doc-slot small {
    font-size: 10px;
  }
  .docs-head {
    font-size: 12px;
  }
  .card-foot {
    font-size: 11px;
  }
  .card-foot .text-btn {
    min-height: 38px;
    font-size: 12px;
  }
  .add-column {
    margin: 0;
    min-height: 52px;
    width: 100%;
  }
  .board-help {
    display: none;
  }
  .case-list .case-card {
    display: block;
    padding: 17px;
  }
  .case-list .case-next {
    display: block;
    margin: 13px 0;
  }
  .case-list .card-foot {
    border: 0;
    padding-top: 0;
  }
  .case-list .doc-slot {
    min-height: 48px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fcfefa;
    border-top: 1px solid #dce7d8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 10px max(7px, env(safe-area-inset-bottom));
    z-index: 3;
    box-shadow: 0 -4px 18px #183d3305;
  }
  .mobile-nav button {
    background: none;
    border: 0;
    padding: 8px 3px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6c7c6a;
    font-size: 10px;
    min-height: 54px;
    border-radius: 8px;
  }
  .mobile-nav button.active {
    color: var(--green);
    background: #eaf3e4;
    font-weight: 650;
  }
  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }
  .page-foot {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 24px;
  }
  .task-row {
    padding: 16px 13px;
    gap: 10px;
  }
  .task-info strong {
    font-size: 15px;
    font-weight: 750;
  }
  .task-info small {
    font-size: 11px;
  }
  .task-initial {
    width: 34px;
    height: 37px;
    font-size: 10px;
  }
  .day-layout {
    gap: 0;
  }
  .day-group-title {
    font-size: 12px;
  }
  .catalog-tabs {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px;
    margin-bottom: 17px;
    padding-bottom: 0;
  }
  .catalog-tab {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px 11px;
  }
  .catalog-tab svg {
    width: 16px;
    height: 16px;
  }
  .catalog-panel-head {
    padding: 17px;
    align-items: flex-start;
    gap: 10px;
  }
  .catalog-panel-head h2 {
    font-size: 17px;
  }
  .catalog-panel-head p {
    font-size: 11px;
  }
  .catalog-panel-head .btn {
    font-size: 11px;
    min-height: 40px;
    padding: 9px 10px;
  }
  .catalog-row {
    padding: 12px 14px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .catalog-row-actions {
    margin-left: auto;
    gap: 0;
  }
  .catalog-row-actions .icon-btn {
    width: 40px;
    height: 44px;
  }
  .catalog-row-copy strong {
    font-size: 13px;
  }
  .catalog-symbol {
    width: 31px;
    height: 34px;
  }
  .catalog-row-number {
    display: none;
  }
  #case-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    border: 0;
  }
  .drawer-top {
    padding: 12px 18px 0;
  }
  .drawer-topline {
    margin-bottom: 13px;
  }
  .drawer-heading {
    gap: 10px;
    margin-bottom: 14px;
  }
  .drawer-heading h2 {
    font-size: 24px;
  }
  .drawer-heading p {
    font-size: 12px;
  }
  .drawer-tabs {
    gap: 24px;
  }
  .drawer-tabs button {
    font-size: 12px;
  }
  .drawer-body {
    padding: 21px 18px;
  }
  .drawer-footer {
    padding: 16px 18px;
    font-size: 10px;
  }
  .info-grid {
    gap: 17px 14px;
  }
  .info-grid .info-value {
    font-size: 12px;
  }
  .info-grid .info-label {
    font-size: 11px;
  }
  .next-action {
    padding: 17px;
  }
  .next-action h3 {
    font-size: 16px;
  }
  .next-action p {
    font-size: 12px;
  }
  .check-row {
    gap: 9px;
    padding: 10px;
  }
  .check-copy strong {
    font-size: 12px;
  }
  .check-row > .text-btn {
    font-size: 11px;
    min-width: 44px;
  }
  .check-row .status-tag {
    font-size: 9px;
  }
  .document-grid {
    gap: 10px;
  }
  .document-tile-copy {
    padding: 10px;
  }
  .document-tile-foot {
    flex-wrap: wrap;
    gap: 1px;
  }
  .document-tile-foot .text-btn {
    font-size: 11px;
    min-height: 40px;
  }
  .doc-preview-button {
    height: 125px;
  }
  .documents-summary {
    padding: 12px;
  }
  .documents-summary strong {
    font-size: 12px;
  }
  .documents-summary p {
    font-size: 11px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 9px;
  }
  .section-heading .btn {
    font-size: 11px;
    padding: 9px 10px;
  }
  .section-heading .btn svg {
    width: 15px;
    height: 15px;
  }
  .section-heading h3 {
    font-size: 13px;
  }
  .section-heading small {
    font-size: 11px;
  }
  .upload-panel {
    padding: 15px;
  }
  .upload-note {
    font-size: 11px;
  }
  .dropzone input {
    font-size: 12px;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .dialog-header {
    padding: 17px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .dialog-body {
    padding: 18px;
  }
  .form-grid.two {
    grid-template-columns: 1fr;
  }
  .form-grid .span-all {
    grid-column: auto;
  }
  .form-actions {
    margin-top: 19px;
  }
  .toast {
    bottom: 85px;
    font-size: 12px;
    text-align: center;
  }
  .preview-content {
    padding: 16px;
  }
}
@media (max-width: 374px) {
  .main {
    padding-left: 13px;
    padding-right: 13px;
  }
  .topbar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .mobile-brand {
    font-size: 14px;
  }
  .demo-label {
    font-size: 9px;
    gap: 4px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .btn {
    padding: 9px;
  }
  .page-heading .btn span {
    max-width: 42px;
    white-space: normal;
    line-height: 1.2;
  }
  .metric {
    padding: 10px 12px;
  }
  .metric-label {
    font-size: 12px;
    font-weight: 650;
    color: var(--ink);
    display: block;
    max-width: none;
  }
  .view-meta h2 {
    font-size: 12px;
  }
  .case-card {
    padding: 14px;
  }
  .doc-slot .doc-short {
    font-size: 12px;
    font-weight: 650;
    grid-column: 2;
    letter-spacing: normal;
  }
  .drawer-tabs {
    gap: 17px;
  }
  .drawer-tabs button {
    font-size: 11px;
  }
  .document-grid {
    grid-template-columns: 1fr;
  }
  .doc-preview-button {
    height: 150px;
  }
  .check-row {
    flex-wrap: wrap;
  }
  .check-copy {
    min-width: 130px;
  }
  .check-row > .text-btn {
    margin-left: auto;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .catalog-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .catalog-row-copy {
    min-width: 130px;
  }
}
.case-id {
  color: #637468;
}
.case-next span {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.doc-slot.missing {
  color: var(--muted);
}
.doc-slot .doc-short {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 12px;
  letter-spacing: normal;
  font-weight: 650;
  grid-column: 2;
}
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 15px;
  flex-wrap: wrap;
}
.pdf-toolbar button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: var(--green);
  font-size: 12px;
  cursor: pointer;
}
.pdf-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pdf-status {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.pdf-canvas-wrap {
  background: #e9eee6;
  border: 1px solid #dae4d5;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  min-height: 120px;
  max-height: 62dvh;
  overscroll-behavior: contain;
}
.pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: auto;
  background: white;
  box-shadow: 0 2px 8px #1b332812;
}
.pdf-error {
  padding: 18px;
  color: #97402f;
  background: #fff0e9;
  border: 1px solid #ebd2c5;
  border-radius: 9px;
  font-size: 13px;
}
.pdf-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.pdf-text summary {
  cursor: pointer;
  padding: 10px 0;
}
.pdf-text pre {
  white-space: pre-wrap;
  font: 12px/1.7 inherit;
}
.pdf-text-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.pdf-text-details summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.pdf-extracted-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.7 "Segoe UI",
    sans-serif;
  color: var(--ink);
  font: 13px/1.7 var(--font-ui);
}
#preview-dialog .dialog-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.doc-slot .doc-short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: 12px;
  font-weight: 650;
  grid-column: 2;
  letter-spacing: normal;
}
.preview-content > img {
  display: block;
  margin: 0 auto;
  max-height: 65dvh;
  object-fit: contain;
}
.preview-content > .text-btn {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin-top: 12px;
}
#preview-dialog:has(.pdf-toolbar) {
  width: min(820px, calc(100% - 24px));
}
@media (max-width: 700px) {
  .menu-toggle {
    display: none;
  }
  .topbar-start {
    gap: 0;
  }
  .column:has(.empty-column) {
    display: none;
  }
  .pdf-toolbar {
    gap: 5px;
  }
  .pdf-toolbar button {
    font-size: 11px;
    padding: 8px;
  }
  .pdf-canvas-wrap {
    padding: 7px;
  }
}

::selection {
  background: var(--lime);
  color: var(--green-dark);
}
input,
textarea {
  caret-color: var(--green);
}
.page-heading .page-context {
  font-size: 11px;
  margin-top: 8px;
  color: var(--muted);
}
.metric-inner {
  min-width: 0;
}
.metric-arrow {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.quick-filters .chip {
  border-color: transparent;
  border-radius: var(--radius-control);
}
.quick-filters .chip.active {
  border-color: var(--line);
  background: var(--paper);
}
.case-overdue {
  border-color: #dcc5bb;
}
.case-overdue .case-next strong {
  color: var(--red);
}
.day-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.task-stack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.task-row + .task-row {
  border-top: 1px solid var(--line);
}
.task-row:focus-visible {
  outline-offset: -4px;
}
.task-overdue {
  background: var(--overdue-soft);
}
.task-action {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}
.task-action svg {
  width: 14px;
  height: 14px;
  align-self: center;
}
.task-overdue .task-action {
  color: var(--red);
}
.task-status {
  display: grid;
  gap: 9px;
  flex-shrink: 0;
  max-width: 150px;
  color: var(--muted);
  font-size: 11px;
}
.task-stage,
.task-doc-count {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  overflow-wrap: anywhere;
}
.task-doc-count svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 1199px) {
  .metric {
    gap: 10px;
    padding: 16px 14px;
  }
  .metric-arrow {
    display: none;
  }
}
@media (max-width: 700px) {
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .page-heading > div:first-child {
    flex: 1 1 220px;
  }
  .heading-actions {
    padding-top: 0;
  }
  .heading-actions .btn {
    min-height: 44px;
  }
  .page-heading .btn span {
    max-width: none;
  }
  .page-heading p {
    max-width: none;
  }
  .page-heading .page-context {
    font-size: 11px;
  }
  .metric {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }
  .metric-inner {
    display: block;
  }
  .metric-num {
    font-size: 24px;
  }
  .metric-label {
    font-size: 11px;
  }
  .task-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    padding: 16px 12px;
    gap: 10px;
  }
  .task-initial {
    align-self: start;
  }
  .task-info {
    grid-column: 2;
  }
  .task-row > svg {
    grid-column: 3;
    grid-row: 1;
  }
  .task-status {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    max-width: none;
    gap: 8px 14px;
    font-size: 10px;
  }
  .task-info small {
    font-size: 12px;
  }
  .task-action {
    font-size: 12px;
  }
  .day-group-title {
    flex-wrap: wrap;
    font-size: 13px;
  }
  .doc-slot {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .toolbar,
  .quick-filters,
  .heading-actions,
  dialog,
  .toast {
    display: none !important;
  }
  .app {
    display: block;
  }
  .main {
    padding: 0;
  }
  .board {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .column {
    max-width: none;
    min-width: 0;
  }
  .board-scroll {
    overflow: visible;
  }
  .case-card {
    break-inside: avoid;
  }
}
