@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b1825;
  --navy-2: #11273a;
  --navy-3: #17344a;
  --canvas: #f2f4ef;
  --paper: #fbfcf8;
  --white: #ffffff;
  --ink: #14202a;
  --ink-2: #4f5d67;
  --ink-3: #5f6a72;
  --line: #dfe4de;
  --line-2: #cbd3cc;
  --mint: #6fd1bd;
  --mint-deep: #247b6d;
  --mint-soft: #e4f5ef;
  --lime: #d8f36c;
  --lime-soft: #f1f9cc;
  --blue: #3977bb;
  --blue-soft: #e7f0fa;
  --amber: #b66b22;
  --amber-soft: #fff0dc;
  --red: #ae4450;
  --red-soft: #fbe7e9;
  --green: #247452;
  --green-soft: #e3f3e9;
  --shadow: 0 20px 55px rgb(18 39 48 / 0.09);
  --shadow-soft: 0 8px 24px rgb(18 39 48 / 0.07);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 22px;
  --ease: 180ms cubic-bezier(.2, .72, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease), opacity var(--ease);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #168ec0;
  outline-offset: 2px;
}

button:active {
  transform: translateY(1px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}

.side-rail {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 25px 17px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 92%, rgb(111 209 189 / 0.14), transparent 28%),
    linear-gradient(150deg, #0b1825, #102538);
  color: #dce7ea;
}

.side-rail::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 7px 42px;
  color: #f7fbfb;
  text-decoration: none;
}

.brand-mark,
.paper-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
  flex: 0 0 auto;
}

.brand-mark i,
.paper-mark i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mint);
}

.brand-mark i:nth-child(2),
.paper-mark i:nth-child(2) {
  background: var(--lime);
}

.brand-mark i:nth-child(3),
.paper-mark i:nth-child(3) {
  background: #fff;
}

.brand-mark i:nth-child(4),
.paper-mark i:nth-child(4) {
  background: #7391a5;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand small {
  color: #849ba8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #8fa5b0;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}

.nav-item svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-item:first-child svg {
  fill: currentColor;
  stroke: none;
}

.nav-item:hover {
  background: rgb(255 255 255 / 0.055);
  color: #f4f8f7;
}

.nav-item.is-active {
  background: rgb(111 209 189 / 0.14);
  color: #effbf8;
}

.nav-item.is-active::before {
  position: absolute;
  left: -17px;
  width: 3px;
  height: 25px;
  border-radius: 0 4px 4px 0;
  background: var(--mint);
  content: "";
}

.nav-item b {
  display: inline-grid;
  min-width: 23px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.08);
  color: #aec0c8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.nav-item.is-active b {
  background: var(--mint);
  color: var(--navy);
}

.rail-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 6px 15px;
  padding: 13px 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.035);
}

.connection-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgb(111 209 189 / 0.35);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(111 209 189 / 0.1);
}

.rail-note div {
  display: grid;
}

.rail-note strong,
.rail-note small {
  font-size: 12px;
}

.rail-note small {
  color: #7f97a4;
}

.rail-reset {
  position: relative;
  z-index: 1;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #748d9a;
  font-size: 12px;
  text-align: left;
}

.rail-reset:hover {
  color: #e7eff1;
}

.app-frame {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(260px, 510px) minmax(250px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid rgb(203 211 204 / 0.8);
  background: rgb(251 252 248 / 0.88);
  box-shadow: 0 4px 20px rgb(25 45 52 / 0.025);
  backdrop-filter: blur(18px);
}

.page-identity {
  display: grid;
  line-height: 1.2;
}

.page-identity span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-identity strong {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 750;
}

.global-search {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8f4;
  color: var(--ink-3);
  text-align: left;
  font-size: 13px;
}

.global-search:hover {
  border-color: var(--line-2);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.global-search svg,
.command-input svg,
.inline-search svg,
.portal-hero label svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

kbd {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  box-shadow: 0 1px 0 var(--line);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.role-control {
  display: grid;
  line-height: 1.15;
}

.role-control span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
}

.role-control select {
  min-width: 116px;
  padding: 2px 22px 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.profile-avatar {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #bed0c7;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 800;
}

.profile-avatar.mini {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.mobile-menu,
.rail-scrim {
  display: none;
}

.app-view {
  min-height: calc(100dvh - 72px);
  outline: 0;
}

.overview-page,
.page {
  width: min(100%, 1590px);
  margin: 0 auto;
  padding: 28px 34px 56px;
}

.page-enter {
  animation: page-enter 380ms cubic-bezier(.2, .72, .2, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.section-label {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.welcome-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  min-height: 302px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 15%, rgb(111 209 189 / 0.18), transparent 24%),
    radial-gradient(circle at 60% 120%, rgb(216 243 108 / 0.08), transparent 36%),
    var(--navy);
  box-shadow: 0 24px 70px rgb(11 24 37 / 0.15);
  color: #eaf1f2;
}

.welcome-band::before {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: 0.035;
  content: "";
}

.welcome-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 42px 20px 48px 50px;
}

.welcome-copy .section-label {
  color: #7ca6a2;
}

.welcome-copy h1 {
  max-width: 600px;
  margin: 10px 0 14px;
  color: #f6fbfa;
  font-size: clamp(31px, 3.05vw, 49px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.welcome-copy h1 em {
  color: var(--mint);
  font-style: normal;
  font-weight: 430;
}

.welcome-copy p {
  max-width: 56ch;
  margin-bottom: 25px;
  color: #9bb0ba;
  font-size: 14px;
  line-height: 1.7;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.welcome-graphic {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: 30px 32px 34px 10px;
}

.welcome-graphic > svg {
  width: 100%;
  max-height: 235px;
}

.flow-grid {
  fill: none;
  stroke: #527083;
  stroke-width: 0.6;
  opacity: 0.24;
}

.flow-line {
  fill: none;
  stroke: url("#flowFade");
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 9px rgb(111 209 189 / 0.32));
}

.flow-node {
  fill: var(--navy);
  stroke: var(--mint);
  stroke-width: 3;
}

.flow-node.end {
  fill: var(--lime);
  stroke: rgb(216 243 108 / 0.3);
  stroke-width: 7;
}

.flow-label rect {
  fill: #193346;
  stroke: rgb(255 255 255 / 0.08);
}

.flow-label text {
  fill: #94aab3;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  text-anchor: middle;
}

.flow-label.strong rect {
  fill: var(--lime);
}

.flow-label.strong text {
  fill: var(--navy);
  font-weight: 750;
}

.graphic-caption {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: #8299a4;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.graphic-caption i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(111 209 189 / 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: #f7fbfa;
  box-shadow: 0 7px 18px rgb(11 24 37 / 0.12);
}

.button-primary:hover {
  background: var(--navy-2);
  box-shadow: 0 9px 24px rgb(11 24 37 / 0.18);
}

.button-light {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 10px 25px rgb(216 243 108 / 0.12);
}

.button-light:hover {
  background: #e3f884;
}

.button-quiet {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--line-2);
  background: #f8faf7;
  box-shadow: var(--shadow-soft);
}

.button-danger {
  background: var(--red);
  color: #fff;
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 12px;
}

.inline-icon {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.text-link {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  border-bottom-color: currentColor;
}

.light-link {
  color: #b2c3c8;
}

.metric-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: calc(100% - 46px);
  margin: -24px auto 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-row button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 88px;
  padding: 16px 20px;
  border: 0;
  background: var(--paper);
  text-align: left;
}

.metric-row button:hover {
  background: var(--white);
}

.metric-row span {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.metric-row strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.metric-row small {
  grid-column: 1;
  color: var(--ink-3);
  font-size: 11px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.panel,
.content-block,
.library-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.panel {
  min-height: 260px;
  padding: 22px;
}

.trend-panel {
  grid-column: span 8;
}

.health-panel {
  grid-column: span 4;
}

.attention-panel {
  grid-column: span 7;
  padding-bottom: 10px;
}

.workload-panel {
  grid-column: span 5;
}

.task-panel,
.activity-panel {
  grid-column: span 6;
}

.panel-title-row,
.block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row h2,
.block-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.trend-positive,
.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 750;
}

.chart-wrap {
  position: relative;
  margin-top: 4px;
}

.trend-chart {
  width: 100%;
  height: 215px;
}

.chart-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.area-fill {
  fill: url("#nothing");
  fill: rgb(111 209 189 / 0.16);
}

.area-line {
  fill: none;
  stroke: var(--mint-deep);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.chart-points circle {
  fill: var(--paper);
  stroke: var(--mint-deep);
  stroke-width: 2;
}

.chart-points circle:last-child {
  fill: var(--lime);
  stroke: var(--navy);
}

.chart-days text {
  fill: var(--ink-3);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  text-anchor: middle;
}

.chart-total {
  position: absolute;
  top: 25px;
  left: 55px;
  display: grid;
}

.chart-total span,
.chart-total small {
  color: var(--ink-3);
  font-size: 11px;
}

.chart-total strong {
  font-size: 25px;
  letter-spacing: -0.05em;
}

.health-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(130px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 190px;
}

.donut {
  display: grid;
  width: min(100%, 150px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint-deep) 0 var(--value), #e5e9e4 var(--value) 360deg);
}

.donut::before {
  position: absolute;
  width: 105px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.donut strong {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.donut span {
  color: var(--ink-3);
  font-size: 11px;
}

.health-body ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.health-body li {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11px;
}

.health-body li i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-ready {
  background: var(--mint-deep);
}

.legend-review {
  background: var(--blue);
}

.legend-missing {
  background: var(--amber);
}

.health-body li strong {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.attention-list {
  margin: 11px -10px 0;
}

.attention-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.attention-row:first-child {
  border-top: 0;
}

.attention-row:hover {
  border-radius: 9px;
  background: #f5f7f3;
}

.priority-signal {
  display: block;
  width: 4px;
  height: 30px;
  border-radius: 4px;
  background: var(--blue);
}

.priority-signal.high {
  background: var(--red);
}

.priority-signal.standard {
  background: var(--amber);
}

.priority-signal.low {
  background: var(--mint-deep);
}

.attention-row > span:nth-child(2),
.attention-due,
.attention-row > span:nth-child(2) span {
  display: grid;
}

.attention-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-row small {
  color: var(--ink-3);
  font-size: 11px;
}

.attention-due {
  min-width: 45px;
}

.attention-due strong {
  font-size: 11px;
}

.attention-row .inline-icon {
  color: var(--ink-3);
}

.workload-bars {
  display: grid;
  gap: 16px;
  margin-top: 27px;
}

.workload-bars > div {
  display: grid;
  grid-template-columns: minmax(105px, 1.35fr) 2fr 15px;
  align-items: center;
  gap: 11px;
}

.workload-bars span,
.workload-bars strong {
  font-size: 11px;
}

.workload-bars strong {
  font-variant-numeric: tabular-nums;
}

.workload-bars b {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5e9e4;
}

.workload-bars b i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: var(--mint-deep);
}

.mini-task-list {
  display: grid;
  margin: 12px -10px 0;
}

.mini-task-list button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.mini-task-list button:hover {
  border-radius: 9px;
  background: #f5f7f3;
}

.mini-task-list button > i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}

.mini-task-list button span {
  display: grid;
}

.mini-task-list strong {
  font-size: 12px;
}

.mini-task-list small,
.mini-task-list time {
  color: var(--ink-3);
  font-size: 11px;
}

.activity-list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  border-top: 1px solid var(--line);
}

.activity-mark {
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 1px var(--mint-deep);
}

.activity-list div {
  display: grid;
}

.activity-list strong {
  font-size: 11px;
}

.activity-list small,
.activity-list time {
  color: var(--ink-3);
  font-size: 11px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin: 7px 0 24px;
}

.page-header h1 {
  margin: 7px 0 5px;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.page-header p {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.case-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgb(18 39 48 / 0.055);
}

.case-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: #f8faf6;
}

.inline-search {
  display: grid;
  grid-template-columns: 18px minmax(170px, 1fr);
  align-items: center;
  gap: 8px;
  width: min(380px, 46%);
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-3);
}

.inline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.filter-select span {
  color: var(--ink-3);
  font-size: 11px;
}

.filter-select select {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.result-count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11px;
}

.case-browser-grid {
  display: grid;
  grid-template-columns: minmax(295px, 330px) minmax(0, 1fr);
  min-height: 690px;
}

.case-list-pane {
  border-right: 1px solid var(--line);
  background: #f5f7f3;
}

.case-list-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 10px;
  width: 100%;
  min-height: 105px;
  padding: 16px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.case-list-row:hover {
  background: var(--white);
}

.case-list-row.is-selected {
  background: var(--white);
  box-shadow: inset 3px 0 var(--mint-deep);
}

.case-list-main {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 11px;
}

.case-list-main > span:last-child {
  display: grid;
  align-content: start;
  gap: 3px;
}

.case-list-main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-list-main small,
.case-list-meta > span:not(.status),
.case-list-meta time {
  color: var(--ink-3);
  font-size: 11px;
}

.case-list-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 15px;
}

.case-list-meta time {
  margin-left: auto;
}

.case-list-row > .inline-icon {
  align-self: center;
  color: var(--ink-3);
}

.case-record {
  min-width: 0;
  background: var(--paper);
}

.case-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  padding: 24px 28px 20px;
}

.case-record-head h2 {
  margin: 5px 0;
  font-size: 23px;
  line-height: 1.15;
}

.case-record-head p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.case-id {
  color: var(--mint-deep);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.case-record-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 7px;
  background: #edf0ec;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 730;
  white-space: nowrap;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-in-review {
  background: var(--blue-soft);
  color: #2e659e;
}

.status-action-needed,
.status-draft,
.status-draft-evidence {
  background: var(--amber-soft);
  color: #91561c;
}

.status-approved,
.status-published {
  background: var(--green-soft);
  color: var(--green);
}

.status-superseded,
.status-withdrawn {
  background: #ecefed;
  color: #66716d;
}

.priority-label,
.visibility,
.connection-chip,
.published-note,
.role-banner {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 720;
}

.priority-label.high {
  background: var(--red-soft);
  color: var(--red);
}

.priority-label.standard {
  background: var(--amber-soft);
  color: var(--amber);
}

.priority-label.low {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.record-tabs {
  display: flex;
  min-height: 43px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}

.record-tabs button {
  position: relative;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
}

.record-tabs button:hover,
.record-tabs button.is-active {
  color: var(--ink);
}

.record-tabs button.is-active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--mint-deep);
  content: "";
}

.case-record-body {
  padding: 22px 26px 30px;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.65fr);
  gap: 18px;
}

.case-primary-column,
.case-side-column {
  display: grid;
  align-content: start;
  gap: 17px;
}

.brief-card {
  padding: 22px;
  overflow: hidden;
  border: 1px solid #cae5db;
  border-radius: 14px;
  background:
    radial-gradient(circle at 95% 10%, rgb(216 243 108 / 0.22), transparent 32%),
    var(--mint-soft);
}

.brief-card header {
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 11px;
}

.brief-icon,
.next-action-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: var(--mint);
}

.brief-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.connection-chip {
  background: rgb(255 255 255 / 0.58);
  color: var(--mint-deep);
}

.brief-card > p {
  max-width: 70ch;
  margin: 17px 0 12px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.65;
}

.brief-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-card li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 11px;
}

.brief-card li svg {
  width: 13px;
  color: var(--mint-deep);
}

.brief-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 16px -22px -22px;
  padding: 11px 22px;
  border-top: 1px solid rgb(36 123 109 / 0.12);
  background: rgb(255 255 255 / 0.45);
}

.brief-card footer > span {
  margin-right: 3px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.brief-card footer button {
  padding: 3px 7px;
  border: 1px solid rgb(36 123 109 / 0.15);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.5);
  color: var(--mint-deep);
  font-size: 11px;
}

.content-block {
  padding: 20px;
}

.evidence-list {
  display: grid;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 53px;
  border-top: 1px solid var(--line);
}

.evidence-list li > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--ink-3);
}

.evidence-list li.is-present > span:first-child {
  border-color: #b9decf;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.evidence-list .inline-icon {
  width: 13px;
}

.evidence-list div {
  display: grid;
}

.evidence-list strong {
  font-size: 12px;
  text-transform: capitalize;
}

.evidence-list small {
  color: var(--ink-3);
  font-size: 11px;
}

.next-action-card {
  padding: 21px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgb(111 209 189 / 0.14), transparent 36%),
    var(--navy);
  color: #d9e4e7;
}

.next-action-card .section-label {
  color: #819aa6;
}

.next-action-icon {
  margin: 27px 0 13px;
  background: var(--lime);
  color: var(--navy);
}

.next-action-card h3 {
  margin-bottom: 7px;
  color: #f7fbfa;
  font-size: 18px;
  line-height: 1.2;
}

.next-action-card p {
  margin-bottom: 18px;
  color: #94a9b3;
  font-size: 11px;
  line-height: 1.65;
}

.next-action-card .button {
  width: 100%;
  background: var(--lime);
  color: var(--navy);
  box-shadow: none;
}

.case-facts {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.case-facts > div,
.owner-field {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.case-facts > div:first-child {
  border-top: 0;
}

.case-facts span,
.owner-field span {
  color: var(--ink-3);
  font-size: 11px;
}

.case-facts strong,
.owner-field select {
  font-size: 11px;
  font-weight: 700;
}

.owner-field select {
  width: 100%;
  border: 0;
  background: transparent;
}

.document-workspace {
  display: grid;
  grid-template-columns: minmax(225px, 0.6fr) minmax(360px, 1.4fr);
  min-height: 525px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.document-index {
  border-right: 1px solid var(--line);
  background: #f4f6f2;
}

.document-index > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.document-index h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 18px;
}

.icon-button:hover {
  background: #edf0ec;
  color: var(--ink);
}

.icon-button.bordered {
  border: 1px solid var(--line);
  background: var(--white);
}

.document-version-list > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 79px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.document-version-list > button:hover {
  background: var(--white);
}

.document-version-list > button.is-selected {
  background: var(--white);
  box-shadow: inset 3px 0 var(--mint-deep);
}

.document-version-list button > span:nth-child(2) {
  display: grid;
  align-content: start;
}

.document-version-list strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-version-list small {
  color: var(--ink-3);
  font-size: 11px;
}

.document-version-list .status {
  grid-column: 2;
}

.file-tile {
  display: inline-grid;
  width: 33px;
  height: 36px;
  place-items: center;
  border: 1px solid #c9d7d1;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 800;
}

.document-inspector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.inspector-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 65px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.inspector-toolbar h3,
.inspector-toolbar h2 {
  margin: 3px 0 0;
  font-size: 14px;
}

.inspector-toolbar > div:last-child {
  display: flex;
  gap: 7px;
}

.document-canvas,
.review-preview {
  display: grid;
  min-height: 390px;
  padding: 26px;
  place-items: center;
  overflow: auto;
  background: radial-gradient(circle at 50% 5%, rgb(255 255 255 / 0.68), transparent 58%), #e9ece7;
}

.preview-paper {
  width: min(100%, 505px);
  min-height: 400px;
  padding: 36px 40px 27px;
  border: 1px solid #d5dad4;
  background: #fff;
  box-shadow: 0 17px 40px rgb(25 42 45 / 0.13);
}

.preview-paper > header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-paper > header > div {
  display: grid;
}

.preview-paper > header strong {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.preview-paper > header small {
  color: var(--ink-3);
  font-size: 11px;
}

.paper-mark {
  grid-template-columns: repeat(2, 6px);
  gap: 2px;
}

.paper-mark i {
  width: 6px;
  height: 6px;
}

.paper-mark i:nth-child(3) {
  background: var(--navy);
}

.paper-rule {
  height: 2px;
  margin: 20px 0 37px;
  background: var(--navy);
}

.paper-type {
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-paper h3 {
  max-width: 22ch;
  margin: 10px 0 4px;
  font-size: 25px;
  line-height: 1.12;
}

.paper-ref {
  color: var(--ink-3);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.paper-content {
  display: grid;
  gap: 9px;
  margin-top: 35px;
}

.paper-content p {
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf0ed;
  font-size: 11px;
}

.preview-paper > footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 42px;
  padding-top: 11px;
  border-top: 1px solid #dfe3df;
  color: var(--ink-3);
  font-size: 11px;
}

.uploaded-image,
.uploaded-preview,
.text-preview {
  display: block;
  width: min(100%, 650px);
  max-height: 560px;
  margin: auto;
  border: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.uploaded-preview {
  min-height: 450px;
}

.text-preview {
  min-height: 300px;
  padding: 32px;
  overflow: auto;
  white-space: pre-wrap;
}

.inspector-footer {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(150px, auto);
  align-items: center;
  gap: 15px;
  min-height: 67px;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.inspector-footer > div {
  display: grid;
  gap: 2px;
}

.inspector-footer > div > span:first-child {
  color: var(--ink-3);
  font-size: 11px;
}

.inspector-footer strong {
  font-size: 11px;
}

.inspector-primary {
  justify-items: end;
}

.published-note {
  background: var(--green-soft);
  color: var(--green);
}

.tasks-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.task-list,
.comment-list {
  margin-top: 14px;
}

.task-row {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 3px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.task-row:hover {
  background: #f7f9f5;
}

.task-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

.task-check svg {
  width: 12px;
}

.task-row.is-complete {
  color: var(--ink-3);
}

.task-row.is-complete .task-check {
  border-color: #b6ddce;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.task-row > span:nth-child(2) {
  display: grid;
}

.task-row strong {
  font-size: 11px;
}

.task-row small,
.task-row time {
  color: var(--ink-3);
  font-size: 11px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-list article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf6;
}

.comment-list article header {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
}

.comment-list article header > div {
  display: grid;
}

.comment-list article strong {
  font-size: 11px;
}

.comment-list article small {
  color: var(--ink-3);
  font-size: 11px;
}

.comment-list article p {
  margin: 11px 0 0 38px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.visibility.internal {
  background: var(--amber-soft);
  color: var(--amber);
}

.visibility.portal {
  background: var(--blue-soft);
  color: var(--blue);
}

.activity-full {
  min-height: 490px;
}

.timeline {
  position: relative;
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 84px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 68px 12px minmax(0, 1fr);
  gap: 11px;
  min-height: 64px;
}

.timeline time {
  color: var(--ink-3);
  font-size: 11px;
  text-align: right;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 1px var(--mint-deep);
}

.timeline div {
  display: grid;
  align-content: start;
}

.timeline strong {
  font-size: 11px;
}

.timeline small {
  color: var(--ink-3);
  font-size: 11px;
}

.library-panel {
  min-height: 620px;
}

.document-table-wrap {
  overflow: auto;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.document-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.document-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.document-table tr:hover td {
  background: #f8faf6;
}

.document-table td:first-child button {
  display: grid;
  grid-template-columns: 33px minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.document-table td > strong,
.document-table td > small,
.document-table td:first-child button > span:last-child {
  display: grid;
}

.document-table strong {
  font-size: 11px;
}

.document-table small {
  color: var(--ink-3);
  font-size: 11px;
}

.role-banner {
  min-height: 31px;
  padding: 0 11px;
  background: var(--blue-soft);
  color: var(--blue);
}

.role-banner.safe {
  gap: 7px;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.role-banner.safe i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(36 123 109 / 0.09);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.review-queue {
  border-right: 1px solid var(--line);
  background: #f4f6f2;
}

.review-queue > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.review-queue > header strong {
  font-size: 13px;
}

.review-queue > header span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
}

.review-queue > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.review-queue > button:hover,
.review-queue > button.is-selected {
  background: var(--white);
}

.review-queue > button.is-selected {
  box-shadow: inset 3px 0 var(--mint-deep);
}

.review-queue > button > span:nth-child(2) {
  display: grid;
}

.review-queue strong {
  font-size: 11px;
}

.review-queue small {
  color: var(--ink-3);
  font-size: 11px;
}

.review-inspector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.review-preview {
  min-height: 500px;
}

.review-decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 87px;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
}

.review-decision > div {
  display: grid;
}

.review-decision strong {
  font-size: 12px;
}

.review-decision small {
  color: var(--ink-3);
  font-size: 11px;
}

.empty-state {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  padding: 25px;
  color: var(--ink-3);
  text-align: center;
}

.empty-state > span {
  margin-bottom: 10px;
  color: var(--mint-deep);
  font-size: 28px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 14px;
}

.empty-state p {
  max-width: 38ch;
  margin: 4px 0 13px;
  font-size: 11px;
}

.empty-state.spacious {
  min-height: 550px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(550px, 1.6fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.portal-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.portal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid #e3e8e3;
}

.portal-header a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
}

.portal-logo {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--lime);
  font-size: 11px;
}

.portal-header nav {
  display: flex;
  gap: 22px;
  color: var(--ink-2);
  font-size: 11px;
}

.portal-header > button {
  justify-self: end;
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.portal-hero {
  position: relative;
  min-height: 282px;
  padding: 54px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgb(216 243 108 / 0.12), transparent 24%),
    var(--navy);
  color: #dbe6e8;
}

.portal-hero > span {
  color: var(--mint);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-hero h2 {
  max-width: 500px;
  margin: 8px 0 7px;
  color: #f8fbfa;
  font-size: clamp(25px, 3vw, 37px);
}

.portal-hero p {
  max-width: 51ch;
  margin-bottom: 20px;
  color: #9cb0b8;
  font-size: 11px;
}

.portal-hero label {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  width: min(430px, 70%);
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
  box-shadow: 0 15px 35px rgb(0 0 0 / 0.17);
}

.portal-hero input {
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.portal-orbit {
  position: absolute;
  right: -15px;
  bottom: -12px;
  width: 300px;
  opacity: 0.65;
}

.portal-orbit circle,
.portal-orbit path {
  fill: none;
  stroke: #486579;
  stroke-width: 1;
}

.portal-orbit path {
  stroke: var(--mint);
  stroke-width: 2;
}

.portal-orbit circle:nth-of-type(3) {
  fill: var(--lime);
  stroke: none;
}

.service-directory {
  padding: 27px;
}

.service-directory > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.service-directory > header span {
  color: var(--ink-3);
  font-size: 11px;
}

.service-directory h3 {
  margin: 3px 0 0;
  font-size: 17px;
}

.service-directory > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-directory article {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-symbol {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 760;
}

.service-directory article div {
  display: grid;
}

.service-directory article strong {
  font-size: 11px;
}

.service-directory article small,
.service-directory article > span:last-child {
  color: var(--ink-3);
  font-size: 11px;
}

.portal-status {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 25px;
  margin: 0 27px 28px;
  padding: 25px;
  border-radius: 15px;
  background: #f3f6f2;
}

.status-illustration {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
}

.status-illustration i {
  position: absolute;
  width: 70px;
  height: 95px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  background: #173247;
  transform: rotate(-8deg);
}

.status-illustration i:nth-child(2) {
  background: #1d4356;
  transform: translate(15px, -7px) rotate(6deg);
}

.status-illustration i:nth-child(3) {
  width: 40px;
  height: 40px;
  border: 8px solid rgb(216 243 108 / 0.22);
  border-radius: 50%;
  background: var(--lime);
  transform: translate(36px, 35px);
}

.portal-status > div > span {
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 720;
}

.portal-status h3 {
  margin: 6px 0;
  font-size: 16px;
}

.portal-status p {
  color: var(--ink-2);
  font-size: 11px;
}

.portal-status ol {
  display: flex;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.portal-status li {
  position: relative;
  flex: 1;
  padding-top: 13px;
  color: var(--ink-3);
  font-size: 11px;
}

.portal-status li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid #cfd6d0;
  border-radius: 50%;
  background: #f3f6f2;
  content: "";
}

.portal-status li::after {
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 0;
  left: 8px;
  height: 1px;
  background: #cfd6d0;
  content: "";
}

.portal-status li:last-child::after {
  display: none;
}

.portal-status li.complete::before,
.portal-status li.active::before {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
}

.portal-status li.active {
  color: var(--ink);
  font-weight: 700;
}

.publishing-panel {
  display: grid;
  gap: 14px;
}

.publishing-panel > section,
.publication-list,
.publish-ready,
.portal-notes {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.publishing-panel h2 {
  margin: 5px 0;
  font-size: 18px;
}

.publishing-panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
}

.publication-list {
  display: grid;
  gap: 11px;
}

.publication-list article {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.publication-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.publication-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.publication-list time,
.publication-list small {
  color: var(--ink-3);
  font-size: 11px;
}

.publication-list article > strong,
.publication-list article > small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}

.publish-ready {
  display: grid;
  gap: 12px;
}

.publish-ready > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.publish-ready > div > span {
  display: grid;
}

.publish-ready strong {
  font-size: 11px;
}

.publish-ready small {
  color: var(--ink-3);
  font-size: 11px;
}

.portal-notes {
  display: grid;
  gap: 12px;
}

.portal-notes blockquote {
  margin: 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
}

.portal-notes blockquote footer {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11px;
}

dialog {
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(8 20 31 / 0.28);
}

dialog::backdrop {
  background: rgb(8 20 31 / 0.58);
  backdrop-filter: blur(4px);
}

.form-dialog {
  width: min(620px, calc(100vw - 32px));
}

.compact-dialog {
  width: min(490px, calc(100vw - 32px));
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-head span {
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 22px;
}

.form-stack {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 41px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.field textarea {
  min-height: 94px;
  padding: 10px 11px;
  resize: vertical;
}

.field small {
  color: var(--ink-3);
  font-size: 11px;
}

.file-field {
  display: grid;
  min-height: 145px;
  padding: 18px;
  place-items: center;
  border: 1px dashed #9fb4aa;
  border-radius: 12px;
  background: #f4f8f3;
  text-align: center;
}

.file-field input {
  width: min(100%, 330px);
  font-size: 11px;
}

.file-glyph {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 9px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 18px;
}

.file-field strong {
  font-size: 12px;
}

.file-field small,
.file-field em {
  color: var(--ink-3);
  font-size: 11px;
  font-style: normal;
}

.file-field em {
  font-weight: 720;
}

.check-field {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink-2);
  font-size: 11px;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--mint-deep);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: #f6f8f4;
}

.dialog-copy {
  margin: 0;
  padding: 22px;
  color: var(--ink-2);
  font-size: 12px;
}

.form-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #ecc5c9;
  border-radius: 8px;
  background: var(--red-soft);
  color: #8f3440;
  font-size: 11px;
}

.review-subject,
.template-preview {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 11px;
  margin: 20px 22px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f8f4;
}

.review-subject > div,
.template-preview > div {
  display: grid;
}

.review-subject strong,
.template-preview strong {
  font-size: 12px;
}

.review-subject small,
.template-preview small,
.template-preview p {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
}

.template-sheet {
  display: grid;
  width: 35px;
  height: 42px;
  place-items: center;
  border: 1px solid #c9d7d1;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.command-dialog {
  top: -25%;
  width: min(650px, calc(100vw - 32px));
  border-radius: 15px;
}

.command-input {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}

.command-input svg {
  width: 20px;
}

.command-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.command-results {
  max-height: 410px;
  padding: 8px;
  overflow: auto;
}

.command-results > header {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.command-results > button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 57px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.command-results > button:hover {
  background: #f3f6f2;
}

.search-result-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.search-result-icon.file {
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px;
}

.command-results button > span:nth-child(2) {
  display: grid;
}

.command-results strong {
  font-size: 12px;
}

.command-results small {
  color: var(--ink-3);
  font-size: 11px;
}

.command-results kbd {
  border: 0;
  box-shadow: none;
}

.live-message {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid #b8dfd1;
  border-radius: 11px;
  background: var(--navy);
  color: #effaf7;
  box-shadow: 0 20px 55px rgb(11 24 37 / 0.25);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.live-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.live-message.is-error {
  border-color: #e6aeb5;
  background: #752e37;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .side-rail {
    padding-inline: 13px;
  }

  .brand {
    justify-content: center;
    margin-inline: 0;
  }

  .brand > span:last-child,
  .nav-item span,
  .nav-item b,
  .rail-note div,
  .rail-reset {
    display: none;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-item.is-active::before {
    left: -13px;
  }

  .rail-note {
    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
  }

  .topbar {
    padding-inline: 25px;
  }

  .overview-page,
  .page {
    padding-inline: 25px;
  }

  .welcome-band {
    grid-template-columns: minmax(370px, 0.9fr) 1.1fr;
  }

  .case-browser-grid {
    grid-template-columns: 285px minmax(0, 1fr);
  }

  .case-record-body {
    padding-inline: 19px;
  }

  .case-summary-grid {
    grid-template-columns: 1fr;
  }

  .case-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .side-rail {
    overflow: visible;
  }

  .nav-item::after {
    position: absolute;
    z-index: 3;
    left: 58px;
    padding: 7px 9px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 7px;
    background: var(--navy-2);
    color: #f3f8f7;
    box-shadow: var(--shadow-soft);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    content: attr(data-label);
  }

  .nav-item:hover::after,
  .nav-item:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .side-rail {
    position: fixed;
    width: 228px;
    transform: translateX(calc(-100% - 2px));
    transition: transform var(--ease);
  }

  body.rail-open .side-rail {
    transform: translateX(0);
  }

  .side-rail .brand {
    justify-content: flex-start;
    margin-inline: 7px;
  }

  .side-rail .brand > span:last-child,
  .side-rail .nav-item span,
  .side-rail .nav-item b,
  .side-rail .rail-note div,
  .side-rail .rail-reset {
    display: initial;
  }

  .side-rail .nav-item {
    grid-template-columns: 20px 1fr auto;
    justify-items: initial;
    padding: 0 13px;
  }

  .side-rail .nav-item.is-active::before {
    left: -17px;
  }

  .side-rail .rail-note {
    justify-content: flex-start;
    margin-inline: 6px;
    padding-inline: 12px;
  }

  .rail-scrim {
    position: fixed;
    z-index: 19;
    inset: 0;
    border: 0;
    background: rgb(8 20 31 / 0.46);
  }

  body.rail-open .rail-scrim {
    display: block;
  }

  .topbar {
    grid-template-columns: auto minmax(100px, 1fr) minmax(180px, 320px) auto;
    min-height: 64px;
    padding-inline: 16px;
  }

  .mobile-menu {
    display: grid;
    width: 34px;
    height: 34px;
    margin-right: 9px;
    padding: 9px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
  }

  .mobile-menu span {
    width: 14px;
    height: 1.5px;
    background: var(--navy);
  }

  .role-control span {
    display: none;
  }

  .role-control select {
    min-width: 106px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .profile-avatar {
    display: none;
  }

  .overview-page,
  .page {
    padding: 20px 18px 46px;
  }

  .welcome-band {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    padding: 38px;
  }

  .welcome-graphic {
    display: none;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-panel,
  .health-panel,
  .attention-panel,
  .workload-panel,
  .task-panel,
  .activity-panel {
    grid-column: span 1;
  }

  .trend-panel,
  .attention-panel {
    grid-column: span 2;
  }

  .case-browser-grid {
    display: block;
  }

  .case-list-pane {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x mandatory;
  }

  .case-list-row {
    flex: 0 0 290px;
    border-right: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .case-record-head {
    min-height: 112px;
  }

  .document-workspace {
    grid-template-columns: 210px minmax(340px, 1fr);
    overflow-x: auto;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .publishing-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publishing-panel > section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .page-identity span,
  .global-search span,
  .global-search kbd {
    display: none;
  }

  .global-search {
    display: grid;
    grid-template-columns: 1fr;
    width: 36px;
    min-height: 36px;
    margin-right: 8px;
    padding: 0;
    place-items: center;
  }

  .global-search svg {
    width: 16px;
  }

  .role-control select {
    min-width: 95px;
    font-size: 11px;
  }

  .welcome-copy {
    padding: 32px 25px 38px;
  }

  .welcome-copy h1 {
    font-size: 33px;
  }

  .welcome-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 18px);
  }

  .metric-row button {
    min-height: 82px;
  }

  .overview-grid {
    display: block;
  }

  .panel {
    margin-bottom: 14px;
  }

  .health-body {
    justify-items: center;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header > .button,
  .page-header > .role-banner {
    align-self: stretch;
  }

  .case-toolbar {
    flex-wrap: wrap;
  }

  .inline-search {
    width: 100%;
  }

  .result-count {
    margin-left: auto;
  }

  .case-record-head {
    flex-direction: column;
    gap: 11px;
    padding: 20px;
  }

  .case-record-head > div:last-child {
    justify-content: flex-start;
  }

  .record-tabs {
    padding: 0 8px;
    overflow-x: auto;
  }

  .record-tabs button {
    flex: 0 0 auto;
    padding-inline: 11px;
  }

  .case-record-body {
    padding: 15px 13px 22px;
  }

  .case-side-column,
  .tasks-notes-grid {
    grid-template-columns: 1fr;
  }

  .brief-card {
    padding: 17px;
  }

  .brief-card header {
    grid-template-columns: 33px 1fr;
  }

  .connection-chip {
    grid-column: 2;
    justify-self: start;
  }

  .brief-card footer {
    margin-inline: -17px;
    margin-bottom: -17px;
    padding-inline: 17px;
  }

  .document-workspace {
    display: block;
    overflow: visible;
  }

  .document-index {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .document-version-list {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .document-version-list > button {
    flex: 0 0 210px;
    border-right: 1px solid var(--line);
  }

  .inspector-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-canvas {
    min-height: 440px;
    padding: 17px;
  }

  .preview-paper {
    min-height: 390px;
    padding: 28px 25px 22px;
  }

  .preview-paper h3 {
    font-size: 21px;
  }

  .inspector-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .inspector-primary {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .inspector-primary .button {
    width: 100%;
  }

  .document-table th:nth-child(3),
  .document-table td:nth-child(3),
  .document-table th:nth-child(4),
  .document-table td:nth-child(4) {
    display: none;
  }

  .review-layout {
    display: block;
  }

  .review-queue {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-queue > header {
    flex: 0 0 110px;
    align-content: center;
    flex-direction: column;
    justify-content: center;
  }

  .review-queue > button {
    flex: 0 0 220px;
    border-right: 1px solid var(--line);
  }

  .review-preview {
    min-height: 440px;
    padding: 17px;
  }

  .review-decision {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header {
    grid-template-columns: 1fr auto;
  }

  .portal-header nav {
    display: none;
  }

  .portal-hero {
    padding: 40px 24px;
  }

  .portal-hero label {
    width: 100%;
  }

  .portal-orbit {
    right: -130px;
    opacity: 0.4;
  }

  .service-directory {
    padding: 20px;
  }

  .service-directory > div {
    grid-template-columns: 1fr;
  }

  .portal-status {
    grid-template-columns: 1fr;
    margin: 0 20px 20px;
  }

  .status-illustration {
    min-height: 120px;
  }

  .publishing-panel {
    grid-template-columns: 1fr;
  }

  .publishing-panel > section:first-child {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .overview-page,
  .page {
    padding-inline: 12px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .page-identity strong {
    font-size: 13px;
  }

  .welcome-copy {
    padding-inline: 21px;
  }

  .metric-row {
    width: calc(100% - 10px);
  }

  .metric-row button {
    padding-inline: 14px;
  }

  .metric-row strong {
    font-size: 23px;
  }

  .panel {
    padding: 17px;
  }

  .trend-chart {
    height: 185px;
  }

  .health-body {
    gap: 12px;
  }

  .case-list-row {
    flex-basis: 265px;
  }
}

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

/* Working pages: clear ownership, explicit actions and readable detail. */
.case-toolbar { flex-wrap: wrap; gap: 12px; }
.case-toolbar .inline-search { flex: 1 1 220px; }
.case-browser-grid { grid-template-columns: minmax(240px, 270px) minmax(0, 1fr); }
.case-workbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 22px; background: #f2f5ef; border-bottom: 1px solid var(--line); font-size: 13px; }
.case-workbar > span:first-child { margin-right: auto; }
.case-record-head h2 { overflow-wrap: anywhere; }
.case-record-head p { max-width: 70ch; }
.tasks-notes-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.work-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 14px 0; }
.work-filters label { display: grid; gap: 6px; color: var(--ink-3); font-size: 12px; }
.work-filters select { padding: 9px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.work-filters > span { margin-left: auto; padding-bottom: 10px; font-size: 12px; color: var(--ink-3); }
.task-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; padding: 14px 0; }
.task-check { width: 32px; height: 32px; background: white; cursor: pointer; }
.task-row strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.task-row small, .task-row time { font-size: 12px; }
.task-row.is-complete strong { text-decoration: line-through; }
.review-feedback { padding: 16px 22px; background: #fff4dd; color: #614919; border-bottom: 1px solid #e4d6b8; font-size: 14px; }
.review-feedback p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.participant-selector { display: grid; gap: 8px; padding: 20px 26px; font-size: 13px; border-bottom: 1px solid var(--line); }
.participant-selector select { min-width: 0; max-width: 100%; padding: 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font: inherit; }
.participant-selector small { color: var(--ink-3); }
.portal-header .portal-home { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); }
.portal-header nav button { padding: 8px; background: transparent; border: 0; color: var(--ink); }
.service-detail { border-bottom: 1px solid var(--line); padding: 18px 0; }
.service-detail summary { cursor: pointer; font-size: 14px; }
.service-detail summary span { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; }
.service-detail p, .portal-help p { max-width: 68ch; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.portal-help { padding: 24px; border-top: 1px solid var(--line); }
.portal-help h3 { margin: 0; }
.case-record-body, .case-side-column, .case-primary-column, .comment-list article { min-width: 0; }
.comment-list p, .timeline strong, .case-facts strong { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 1180px) { .case-browser-grid { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .case-browser-grid { display: block; }
  .case-workbar { padding: 14px 18px; }
}
@media (max-width: 680px) {
  .case-toolbar { align-items: stretch; }
  .case-toolbar .filter-select { flex: 1 1 140px; }
  .case-toolbar .filter-select select { min-width: 0; max-width: 100%; }
  .case-list-row { flex-basis: 245px; min-height: 90px; }
  .task-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .task-row > .button { grid-column: 2 / -1; justify-self: start; }
  .task-row strong { font-size: 16px; }
  .task-row small, .task-row time { font-size: 14px; }
  .work-filters label { flex: 1 1 120px; }
  .work-filters > span { margin-left: 0; }
  .form-dialog input, .form-dialog select, .form-dialog textarea, .work-filters select, .participant-selector select, .case-toolbar input, .case-toolbar select { font-size: 16px; }
  .portal-header { flex-wrap: wrap; gap: 12px; }
  .portal-header nav { display: flex; }
  .portal-status p, .portal-help p, .service-detail p { font-size: 16px; }
}
.case-list-meta { flex-wrap: wrap; gap: 7px; }
.case-list-meta time { flex: 0 0 100%; margin-left: 0; white-space: nowrap; }
.case-list-row > .inline-icon { grid-column: 2; grid-row: 1; }
.mobile-filter-toggle { display: none; }
@media (max-width: 680px) {
  .mobile-filter-toggle { display: inline-flex; order: 1; }
  .case-toolbar:not(.filters-open) > .filter-select,
  .case-toolbar:not(.filters-open) > [data-clear-filters] { display: none; }
  .case-toolbar .result-count { order: 2; align-self: center; }
  .case-toolbar .inline-search { flex-basis: 100%; }
  .case-toolbar.filters-open > .filter-select { order: 3; }
  .case-toolbar.filters-open > [data-clear-filters] { order: 4; }
}
.comment-list article p { font-size: 14px; }
.comment-list article strong { font-size: 13px; }
@media (max-width: 680px) {
  .comment-list article header { grid-template-columns: minmax(0, 1fr) auto; }
  .comment-list article .profile-avatar { display: none; }
  .comment-list article strong { font-size: 14px; }
  .comment-list article small { font-size: 12px; }
  .comment-list article p { margin-left: 0; font-size: 16px; }
}

/* Useful entry points share visible link and focus affordances. */
.person-link, .case-link, .activity-link, .task-title-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.person-link { color: var(--mint-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.case-link:hover, .activity-link:hover, .task-title-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.activity-link { font-size: 12px; font-weight: 650; line-height: 1.5; }
.activity-link .inline-icon { width: 14px; height: 14px; vertical-align: middle; }
.health-body li { display: block; }
.readiness-link { display: grid; grid-template-columns: 7px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 6px 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.readiness-link:hover { color: var(--mint-deep); text-decoration: underline; }
button.donut { border: 0; padding: 0; color: var(--ink); font-family: inherit; cursor: pointer; }
.workload-bars > .team-load-link { display: grid; grid-template-columns: minmax(105px, 1.35fr) 2fr 15px; align-items: center; gap: 11px; width: 100%; padding: 5px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.team-load-link:hover span { text-decoration: underline; }
.welcome-graphic a { cursor: pointer; }
.welcome-graphic a:hover rect, .welcome-graphic a:focus rect { stroke: var(--lime); stroke-width: 2px; }
.scope-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; background: var(--mint-soft); border-radius: 10px; font-size: 14px; }
.task-directory { padding: 22px; }
.task-directory .work-filters { margin-top: 0; }
.task-directory input { min-width: 0; padding: 9px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }
.task-directory-row { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(130px, 1fr) minmax(160px, 1.4fr) auto; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; }
.task-title-link { display: grid; gap: 6px; }
.task-title-link small { color: var(--ink-3); font-size: 12px; }
.case-link .inline-icon { width: 16px; height: 16px; vertical-align: middle; }
.evidence-list li { gap: 12px; }
@media(max-width: 1180px) { .task-directory-row { grid-template-columns: minmax(180px, 2fr) 1fr; gap: 14px; } .task-directory-row > .button { justify-self: end; } }
@media(max-width: 680px) {
  .task-directory { padding: 16px; }
  .task-directory-row { grid-template-columns: minmax(0, 1fr); font-size: 16px; gap: 12px; }
  .task-directory-row > .button { justify-self: start; }
  .task-directory input { font-size: 16px; width: 100%; }
  .evidence-list li > .button { grid-column: 2 / -1; justify-self: start; }
}

/* Direct actions stay in the list, with larger row targets for inspection. */
.task-status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.task-status-tabs [aria-pressed="true"] { background: var(--ink); color: white; }
.task-status-tabs strong { margin-left: 8px; font-variant-numeric: tabular-nums; }
.task-directory-row { grid-template-columns: 32px minmax(180px, 1.6fr) minmax(150px, 1fr) 145px minmax(130px, 1fr) auto; gap: 16px; cursor: pointer; }
.task-directory-row:hover, .document-table tr[data-row-document]:hover { background: #f1f6f0; }
.task-directory-row:focus-visible, .document-table tr[data-row-document]:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: -2px; }
.task-done .task-title-link strong { text-decoration: line-through; color: var(--ink-3); }
.task-done .task-check { background: var(--mint-soft); color: var(--mint-deep); }
.task-inline-field { display: grid; gap: 6px; min-width: 0; cursor: default; }
.task-inline-field > span { color: var(--ink-3); font-size: 11px; }
.task-inline-field select, .task-inline-field input { min-width: 0; width: 100%; max-width: 100%; padding: 9px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.task-inline-field .person-link { font-size: 11px; }
.file-row-actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: 190px; }
.document-table tr[data-row-document] { cursor: pointer; }
.document-table td > .case-link { padding: 0; display: inline; color: var(--mint-deep); font-size: 12px; }
@media(max-width: 1180px) {
  .task-directory-row { grid-template-columns: 32px minmax(170px, 1fr) minmax(145px, 1fr); }
  .task-directory-row > .task-inline-field:nth-of-type(2) { grid-column: 2; }
  .task-directory-row > .button { grid-column: 3; justify-self: end; }
}
@media(max-width: 680px) {
  .task-directory-row { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .task-directory-row > .task-inline-field, .task-directory-row > .case-link, .task-directory-row > .button { grid-column: 2; }
  .task-directory-row > .button { justify-self: start; }
  .task-inline-field select, .task-inline-field input { font-size: 16px; min-height: 44px; }
  .task-inline-field > span, .task-inline-field .person-link { font-size: 13px; }
  .welcome-actions { flex-wrap: wrap; }
}

/* Context stays beside the work: record details with linked actions. */
.detail-drawer { inset: 0 0 0 auto; width: min(600px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.detail-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.detail-drawer::backdrop { background: rgb(11 24 37 / .4); }
.detail-drawer > header { display: flex; align-items: start; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.detail-drawer h2 { margin: 0; flex: 1; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
#detail-content { overflow: auto; padding: 24px; font-size: 14px; line-height: 1.65; }
#detail-content h3 { margin: 28px 0 12px; font-size: 17px; }
#detail-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
#detail-content > .button { display: flex; width: 100%; justify-content: start; text-align: left; white-space: normal; margin: 8px 0; line-height: 1.5; }
.detail-facts { margin: 0; }
.detail-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { color: var(--ink-3); }
.detail-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
#detail-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--line); background: #f2f5ef; }
#detail-actions:empty { display: none; }
.detail-link, .note-body, .status-detail { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.detail-link { color: var(--mint-deep); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.note-body { display: block; width: 100%; margin-top: 12px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-body small { display: block; margin-top: 8px; color: var(--mint-deep); text-decoration: underline; }
.row-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chart-total { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.chart-points .chart-hit { fill: transparent; stroke: none; pointer-events: all; }
.chart-points a:hover circle:not(.chart-hit), .chart-points a:focus circle:not(.chart-hit) { stroke-width: 4px; }
.chart-total:hover small { text-decoration: underline; }
.case-facts .detail-link { justify-self: start; }
.connection-chip[type=button] { cursor: pointer; }
.status-detail { font-size: 12px; }
@media(max-width: 1180px) { .task-directory-row > .row-action-group { grid-column: 3; } }
@media(max-width: 680px) {
  .detail-drawer > header, #detail-content { padding: 18px; }
  .detail-drawer h2 { font-size: 21px; }
  #detail-content, .note-body { font-size: 16px; }
  .detail-facts > div { grid-template-columns: 110px minmax(0,1fr); gap: 10px; }
  #detail-actions { padding: 14px 18px; }
  .task-directory-row > .row-action-group, .task-row > .row-action-group { grid-column: 2 / -1; }
}
