@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@400;500;600;700&display=swap");
:root {
  --ink: oklch(35% 0.095 244);
  --muted: oklch(48% 0.025 240);
  --forest: oklch(35% 0.095 244);
  --forest-deep: oklch(29% 0.08 244);
  --paper: oklch(99.8% 0.002 220);
  --canvas: oklch(97.8% 0.009 220);
  --line: oklch(89% 0.014 225);
  --soft: oklch(96.8% 0.014 210);
  --mint-light: oklch(94% 0.05 170);
  --lime: oklch(87% 0.105 170);
  --gold: oklch(92% 0.06 85);
  --blue: oklch(49% 0.12 238);
  --red: oklch(43% 0.12 27);
  --radius: 10px;
  --body:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "DM Serif Display", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1,
h2 {
  font-family: var(--display);
}
h3 {
  font-size: 18px;
}
p {
  max-width: 70ch;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a,
button,
input,
select {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid oklch(54% 0.15 250);
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
  background: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  transition:
    background-color 0.16s,
    color 0.16s;
}
button:hover {
  background: var(--soft);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
}
.button:hover {
  background: var(--forest-deep);
  color: var(--paper);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--soft);
}
.button.light {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
.button.light:hover {
  background: oklch(94% 0.085 121);
}
.button.small {
  padding: 10px 16px;
  min-height: 44px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.text-link:hover {
  text-decoration: underline;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tiny-label {
  font-size: 12px;
  color: var(--muted);
}
.subtle {
  color: var(--muted);
  font-size: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}
.badge.green {
  background: oklch(92% 0.04 153);
  color: oklch(33% 0.07 153);
}
.badge.amber {
  background: oklch(94% 0.055 85);
  color: oklch(39% 0.075 65);
}
.badge.red {
  background: oklch(94% 0.025 30);
  color: var(--red);
}
.badge.blue {
  background: oklch(94% 0.028 246);
  color: var(--blue);
}
.badge.neutral {
  background: var(--soft);
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.preview-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--soft);
  padding: 9px 4.5%;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
}
.preview-strip > span {
  font-weight: 400;
}
.preview-strip > a:first-of-type {
  margin-left: auto;
}
.preview-strip a {
  white-space: nowrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.5px;
  text-decoration: none;
  line-height: 1;
}
.wordmark img {
  border-radius: 50%;
  object-fit: cover;
}
.wordmark-dot {
  color: var(--muted);
  margin-left: -9px;
}
/* Workspaces */
.portal-preview {
  padding: 9px 24px;
}
.app-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: calc(100vh - 38px);
}
.sidebar {
  padding: 28px 18px 20px;
  background: var(--forest-deep);
  color: oklch(92% 0.01 150);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar > .wordmark {
  padding: 0 10px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 8px;
  border-block: 1px solid oklch(38% 0.025 160);
}
.workspace-label strong {
  display: block;
  font-size: 13px;
}
.workspace-label small {
  font-size: 11px;
  color: oklch(77% 0.02 160);
}
.workspace-monogram {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid oklch(48% 0.025 160);
  border-radius: 7px;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  text-decoration: none;
  padding: 12px;
  border-radius: 7px;
  color: oklch(82% 0.016 160);
}
.sidebar nav a:hover {
  background: oklch(32% 0.038 160);
}
.sidebar nav a.active {
  background: oklch(38% 0.044 160);
  color: var(--paper);
}
.nav-count {
  margin-left: auto;
  background: var(--gold);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
}
.preview-boundary {
  font-size: 12px;
  color: oklch(75% 0.02 160);
  padding: 0 10px;
  margin-bottom: 25px;
}
.profile {
  display: flex;
  gap: 10px;
  padding: 20px 8px 0;
  border-top: 1px solid oklch(38% 0.025 160);
  align-items: center;
  font-size: 12px;
}
.profile > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(39% 0.03 160);
}
.profile small {
  display: block;
  color: oklch(75% 0.02 160);
  font-size: 11px;
}
.app-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 36px;
  border-bottom: 1px solid var(--line);
  min-height: 72px;
  background: var(--paper);
  gap: 15px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs strong {
  font-weight: 400;
  color: var(--ink);
}
.breadcrumbs > span {
  color: oklch(73% 0.02 160);
}
.sample-marker {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.portal main {
  padding: 36px;
  max-width: 1540px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
}
.page-heading p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
.page-heading > .badge {
  margin-top: 6px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 32px;
}
.decision-feature {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-bar h2 {
  font-size: 22px;
}
.section-bar h3 {
  font-size: 16px;
}
.section-bar > a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.decision-content {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
}
.decision-content h2 {
  font-size: 32px;
}
.decision-content p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 20px;
  max-width: 38ch;
}
.decision-content .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.feature-avatar {
  width: 130px;
  border-radius: 50%;
  background: var(--paper);
}
.work-section {
  margin-top: 34px;
}
.work-section > .section-bar {
  margin-bottom: 16px;
}
.work-list {
  border-top: 1px solid var(--line);
}
.work-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 5px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--paper);
  object-fit: cover;
}
.work-title {
  flex: 1;
  min-width: 0;
}
.work-title strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.work-title small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.row-cost {
  font-size: 12px;
  text-align: right;
  min-width: 65px;
  font-variant-numeric: tabular-nums;
}
.row-arrow {
  font-size: 20px;
  color: var(--muted);
}
.daily-rail > section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.daily-rail > section:last-child {
  border: 0;
}
.agent-line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
}
.agent-line span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.rail-counts {
  display: flex;
  gap: 36px;
  padding: 23px 0;
}
.rail-counts strong {
  display: block;
  font: 600 28px var(--display);
}
.rail-counts span {
  font-size: 12px;
  color: var(--muted);
}
.daily-rail .text-link {
  font-size: 12px;
}
.spend-value {
  font: 600 28px var(--display);
  margin: 18px 0 12px;
}
.spend-value > span {
  font: 400 12px var(--body);
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  display: block;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  accent-color: var(--forest);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--forest);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: var(--forest);
}
.spend-rail .subtle {
  font-size: 12px;
  margin: 13px 0;
}
.daily-rail h3 + .subtle {
  margin: 12px 0;
}
.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 36px;
  color: var(--muted);
  font-size: 11px;
}
.filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--muted);
}
.search-field input {
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  color: var(--ink);
  font-size: 14px;
}
.select-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
select {
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  min-height: 46px;
  color: var(--ink);
  font-size: 14px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  background: var(--paper);
}
.empty p {
  margin: 12px auto 20px;
  color: var(--muted);
}
.notice {
  background: oklch(94% 0.035 85);
  border: 1px solid oklch(85% 0.045 85);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: oklch(37% 0.04 70);
}
.notice.success {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  gap: 26px;
}
.document-tile {
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.document-tile:hover {
  box-shadow: 0 4px 14px oklch(25% 0.02 160 / 0.07);
}
.paper-preview {
  margin: 20px 24px 0;
  padding: 25px 20px;
  background: oklch(95% 0.03 85);
  aspect-ratio: 0.9;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.paper-preview > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.paper-preview strong {
  font: 600 29px/1.12 var(--display);
}
.paper-preview small {
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
}
.green-paper {
  background: var(--soft);
}
.paper-lines {
  height: 45px;
  background: repeating-linear-gradient(
    to bottom,
    oklch(82% 0.02 145) 0,
    oklch(82% 0.02 145) 1px,
    transparent 1px,
    transparent 12px
  );
  opacity: 0.65;
}
.document-caption {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.document-caption > span:not(.badge) {
  font-size: 12px;
  color: var(--muted);
}
.team-directory {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.team-directory-row {
  display: grid;
  grid-template-columns: 64px 180px 1fr 22px;
  gap: 22px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.team-directory-row .avatar {
  width: 64px;
  height: 64px;
}
.team-directory-row h2 {
  font-size: 23px;
}
.team-directory-row p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.spend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
}
.spend-headline {
  flex-wrap: wrap;
  font: 600 48px var(--display);
  display: flex;
  align-items: baseline;
  gap: 12px;
  letter-spacing: -2px;
}
.spend-headline > span {
  font: 400 14px var(--body);
  letter-spacing: 0;
  color: var(--muted);
}
.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 190px;
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  padding: 0 4px;
}
.chart-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  gap: 8px;
  min-width: 0;
}
.chart-column > div {
  height: calc(var(--bar) * 0.8);
  background: oklch(66% 0.06 160);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
}
.chart-column:last-child > div {
  background: var(--forest);
}
.chart-column > span {
  font-size: 10px;
  min-height: 18px;
  color: var(--muted);
  text-align: center;
}
.chart-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 15px;
}
.cost-details {
  margin-bottom: 32px;
  font-size: 13px;
}
.cost-details summary {
  cursor: pointer;
  padding: 8px 0;
}
.spend-main h2 {
  font-size: 22px;
  margin-bottom: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
}
.budget-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 12px;
  align-self: start;
}
.budget-panel h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.budget-panel h2 span {
  font: 400 14px var(--body);
  color: var(--muted);
}
.budget-panel > .badge {
  margin: 15px 0;
}
.budget-panel > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.budget-panel .button {
  width: 100%;
  font-size: 13px;
  margin-bottom: 10px;
}
.detail-list {
  margin: 20px 0 25px;
  font-size: 13px;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  max-width: 60%;
}
.connection-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.connection-row h2 {
  font-size: 21px;
}
.connection-row p {
  font-size: 14px;
  margin-top: 5px;
  color: var(--muted);
}
.connection-row > .badge {
  margin-left: auto;
}
.connection-symbol {
  background: var(--soft);
  padding: 12px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.connection-list {
  margin-bottom: 30px;
}
.operator-alert {
  display: flex;
  gap: 18px;
  align-items: center;
  background: oklch(94% 0.04 85);
  padding: 22px;
  border: 1px solid oklch(87% 0.04 85);
  border-radius: 10px;
  margin-bottom: 36px;
}
.operator-alert h2 {
  font-size: 20px;
}
.operator-alert p {
  font-size: 13px;
  margin-top: 6px;
  color: var(--muted);
}
.operator-alert .button {
  margin-left: auto;
  white-space: nowrap;
}
.issue-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid oklch(70% 0.06 70);
  border-radius: 50%;
  font-size: 20px;
}
.fleet-section > .section-bar {
  margin-bottom: 15px;
}
.table-scroll {
  overflow-x: auto;
}
.tenant-table {
  white-space: nowrap;
}
.tenant-name {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 7px;
  min-height: 48px;
  padding: 4px;
}
.tenant-name strong {
  display: block;
  font-size: 14px;
}
.tenant-name small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.tenant-monogram {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.tenant-table td {
  font-size: 13px;
  padding: 16px 8px;
}
.admin-bottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  padding-top: 40px;
}
.admin-bottom > section:last-child {
  padding: 24px;
  background: var(--soft);
  border-radius: 10px;
}
.admin-bottom h2 {
  font-size: 23px;
}
.admin-bottom h3 {
  margin: 24px 0 10px;
  font-size: 19px;
}
.admin-bottom p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.gate-track {
  display: flex;
  margin-top: 25px;
  gap: 10px;
}
.gate {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 10px;
}
.gate.green {
  border-top-color: oklch(58% 0.085 155);
}
.gate.amber {
  border-top-color: oklch(72% 0.1 80);
}
.gate span {
  font-size: 16px;
}
.gate small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.issue-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-block: 1px solid var(--line);
  width: 100%;
  text-align: left;
  padding: 22px 10px;
  margin-bottom: 20px;
}
.issue-row > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}
.issue-row p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.release-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 10px;
}
.release-summary h2 {
  font-size: 30px;
}
.release-summary p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.release-gates {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}
.release-gates li {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.release-gates h3 {
  font-size: 17px;
}
.release-gates p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.release-gates .badge {
  margin-left: auto;
}
.gate-number {
  font-size: 13px;
  color: var(--muted);
}
.mobile-nav {
  display: none;
}
.drawer-open {
  overflow: hidden;
}
#drawer-layer[hidden] {
  display: none;
}
.drawer-shade {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 160 / 0.4);
  z-index: 30;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 31;
  width: min(570px, 100%);
  padding: 25px 32px 40px;
  background: var(--paper);
  box-shadow: -10px 0 40px oklch(20% 0.02 160 / 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-header .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.drawer > h2 {
  font-size: 31px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.drawer > p {
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0;
}
.drawer h3 {
  font-size: 17px;
  margin-top: 25px;
}
.drawer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 24px;
}
.drawer-meta > div span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.drawer-meta .badge {
  margin-left: auto;
}
.draft-content {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}
.draft-content p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.65;
  margin-top: 18px;
}
.draft-content p:nth-child(2) {
  font: 600 25px/1.2 var(--display);
}
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.review-actions .button {
  font-size: 13px;
}
.receipt {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}
.agent-detail {
  display: flex;
  gap: 25px;
  align-items: center;
}
.agent-detail img {
  width: 130px;
  border-radius: 12px;
}
.agent-detail p {
  font-size: 14px;
}
#budget-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
}
input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--canvas);
}
@media (min-width: 1600px) {
  .hero {
    padding-inline: calc((100vw - 1380px) / 2);
  }
  .section,
  .brand-line {
    padding-inline: calc((100vw - 1380px) / 2);
  }
}
@media (max-width: 1200px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }
  .portal main {
    padding: 28px;
  }
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .work-row .row-cost {
    display: none;
  }
  .decision-content {
    grid-template-columns: 1fr 100px;
  }
  .feature-avatar {
    width: 100px;
  }
  .decision-content h2 {
    font-size: 28px;
  }
  .team-selector {
    gap: 4px;
  }
  .team-selector button {
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
  }
  .hero {
    padding-inline: 5%;
    gap: 4%;
  }
  .work-scene {
    padding: 22px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 20px;
  }
  .spend-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 1000px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }
  .daily-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .daily-rail > section {
    margin: 0;
  }
  .daily-rail > section:last-child {
    display: none;
  }
  .work-row .row-cost {
    display: block;
  }
  .hero {
    padding-block: 60px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 64px;
  }
  .work-scene {
    padding: 18px;
  }
  .request-bubble {
    margin-left: 15px;
  }
  .request-bubble p {
    font-size: 16px;
  }
  .draft-sheet {
    padding: 18px;
  }
  .draft-sheet h2 {
    font-size: 29px;
  }
  .hero-copy .hero-lead {
    font-size: 18px;
  }
  .site-header nav {
    gap: 20px;
  }
  .team-feature {
    grid-template-columns: 160px 1fr;
    gap: 28px;
  }
  .role-note {
    display: none;
  }
  .team-directory-row {
    grid-template-columns: 55px 140px 1fr 20px;
    gap: 14px;
  }
  .team-directory-row .avatar {
    width: 55px;
    height: 55px;
  }
  .spend-layout {
    grid-template-columns: 1fr;
  }
  .budget-panel {
    max-width: 100%;
  }
  .admin-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .operator-alert {
    flex-wrap: wrap;
  }
  .operator-alert .button {
    margin-left: 52px;
  }
  .release-gates li {
    flex-wrap: wrap;
  }
  .release-gates li > div {
    flex: 1;
  }
  .release-gates .badge {
    margin-left: 38px;
  }
  .page-heading > .badge {
    display: none;
  }
}
@media (max-width: 760px) {
  .preview-strip {
    gap: 12px;
    padding: 9px 18px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .preview-strip > span {
    display: none;
  }
  .preview-strip a {
    font-size: 11px;
  }
  .site-header {
    padding: 18px 5%;
  }
  .site-header nav {
    display: none;
  }
  .site-header .wordmark {
    font-size: 28px;
  }
  .site-header .button {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 45px 6%;
  }
  .hero h1 {
    font-size: 68px;
  }
  .hero-copy > p:not(.eyebrow) {
    max-width: 47ch;
  }
  .work-scene {
    max-width: 500px;
    width: 100%;
    justify-self: center;
    padding: 22px;
  }
  .brand-line {
    padding: 20px 6%;
    flex-wrap: wrap;
    gap: 12px 25px;
    justify-content: flex-start;
  }
  .brand-line p {
    max-width: none;
    width: 100%;
    font-size: 12px;
  }
  .brand-line span {
    font-size: 12px;
  }
  .section {
    padding: 52px 6%;
  }
  .section-heading {
    display: block;
    margin-bottom: 25px;
  }
  .section-heading > p {
    margin-top: 22px;
    font-size: 16px;
  }
  .team-selector {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 13px;
  }
  .team-selector button {
    min-width: 65px;
  }
  .team-feature {
    grid-template-columns: 110px 1fr;
    gap: 20px;
  }
  .team-feature h3 {
    font-size: 27px;
  }
  .team-feature p {
    font-size: 14px;
  }
  .team-feature .eyebrow {
    font-size: 10px;
  }
  .team-feature .skill-pills {
    gap: 5px;
  }
  .skill-pills li {
    font-size: 11px;
  }
  .team-feature .text-link {
    font-size: 12px;
  }
  .how-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .control-lines {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .closing {
    gap: 24px;
  }
  .closing > img {
    width: 100px;
  }
  .closing h2 {
    font-size: 30px;
  }
  .site-footer {
    flex-wrap: wrap;
    padding: 25px 6%;
    gap: 16px;
  }
  .site-footer > a:nth-of-type(2) {
    margin-left: 0;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 20;
    top: 110px;
    bottom: 0;
    left: 0;
    width: 265px;
    box-shadow: 10px 0 30px oklch(25% 0.04 160 / 0.18);
    overflow-y: auto;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-nav {
    display: inline-grid;
  }
  .app-header {
    padding: 10px 16px;
    min-height: 65px;
  }
  .breadcrumbs {
    margin-right: auto;
    font-size: 12px;
    gap: 10px;
  }
  .sample-marker {
    font-size: 10px;
  }
  .portal main {
    padding: 27px 20px;
    min-height: calc(100vh - 175px);
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 14px;
  }
  .decision-feature {
    padding: 20px;
  }
  .decision-content {
    grid-template-columns: 1fr 95px;
  }
  .decision-content h2 {
    font-size: 30px;
  }
  .decision-content .button {
    font-size: 13px;
  }
  .work-row {
    gap: 9px;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .work-row .avatar {
    width: 34px;
    height: 34px;
  }
  .work-row .work-title {
    min-width: calc(100% - 58px);
  }
  .work-row .badge {
    margin-left: 43px;
  }
  .work-row .row-cost {
    margin-left: auto;
  }
  .row-arrow {
    display: none;
  }
  .daily-rail {
    gap: 20px;
  }
  .daily-rail .rail-counts {
    gap: 22px;
  }
  .spend-value {
    font-size: 25px;
  }
  .daily-rail .spend-value > span {
    display: block;
    margin-top: 6px;
  }
  .portal-footer {
    padding: 18px 20px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }
  .select-field select {
    flex: 1;
  }
  .deliverable-grid {
    gap: 15px;
  }
  .paper-preview {
    margin: 12px 12px 0;
    padding: 15px 12px;
    gap: 15px;
  }
  .paper-preview strong {
    font-size: 23px;
  }
  .document-caption {
    padding: 14px;
    font-size: 13px;
  }
  .paper-preview > span {
    font-size: 9px;
  }
  .document-caption .badge {
    white-space: normal;
    font-size: 10px;
  }
  .team-directory-row {
    grid-template-columns: 52px 1fr;
    gap: 10px 15px;
    padding: 20px 0;
  }
  .team-directory-row > p {
    grid-column: 2;
  }
  .team-directory-row .row-arrow {
    display: none;
  }
  .team-directory-row h2 {
    font-size: 23px;
  }
  .connection-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .connection-row > div:nth-child(2) {
    flex: 1;
    min-width: 170px;
  }
  .connection-row > .badge {
    margin-left: 56px;
  }
  .connection-row h2 {
    font-size: 19px;
  }
  .connection-row p {
    font-size: 13px;
  }
  .operator-alert {
    padding: 18px;
    gap: 12px;
  }
  .operator-alert > div {
    flex: 1;
  }
  .operator-alert h2 {
    font-size: 18px;
  }
  .operator-alert .button {
    margin-left: 46px;
    font-size: 13px;
  }
  .release-summary {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .issue-row {
    flex-wrap: wrap;
  }
  .issue-row > div {
    flex: 1;
    min-width: 190px;
  }
  .issue-row > span:last-child {
    font-size: 13px;
  }
  .drawer {
    padding: 20px 23px 35px;
  }
  .drawer > h2 {
    font-size: 28px;
  }
  .drawer-meta {
    flex-wrap: wrap;
  }
  .drawer-meta .badge {
    margin-left: 0;
  }
  .agent-detail img {
    width: 100px;
  }
  .portal-preview > a:first-of-type {
    margin-left: auto;
  }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 58px;
  }
  .decision-content {
    grid-template-columns: 1fr;
  }
  .feature-avatar {
    display: none;
  }
  .daily-rail {
    grid-template-columns: 1fr;
  }
  .daily-rail > section {
    padding-bottom: 20px;
  }
  .team-feature {
    grid-template-columns: 1fr;
  }
  .portrait {
    width: 130px;
  }
  .closing {
    align-items: flex-start;
  }
  .closing > img {
    width: 65px;
  }
  .closing h2 {
    font-size: 26px;
  }
  .deliverable-grid {
    grid-template-columns: 1fr;
  }
  .paper-preview {
    aspect-ratio: 1.2;
  }
  .sample-marker {
    display: none;
  }
  .portal-preview {
    gap: 10px;
  }
  .portal-preview strong {
    width: 100%;
  }
  .portal-preview > a:first-of-type {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .work-scene,
  .request-bubble,
  .handoff,
  .draft-sheet {
    transform: none;
  }
}

/* Shared October 15 identity: quiet white workspaces, blue and mint. */
.portal {
  font-size: 14px;
  background: var(--paper);
}
.portal h1,
.portal h2 {
  font-weight: 400;
}
.sidebar {
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.sidebar nav a {
  color: var(--muted);
  font-size: 12px;
}
.sidebar nav a:hover {
  background: var(--soft);
  color: var(--ink);
}
.sidebar nav a.active {
  background: var(--soft);
  color: var(--ink);
}
.workspace-label {
  border-color: var(--line);
}
.workspace-label small,
.sidebar-bottom,
.sidebar-bottom a {
  color: var(--muted);
}
.workspace-monogram {
  border-color: var(--line);
  background: var(--soft);
}
.portal .wordmark {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.8px;
  gap: 5px;
}
.portal .wordmark img {
  mix-blend-mode: multiply;
  border-radius: 0;
  object-fit: contain;
}
.portal .wordmark small {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--blue);
}
.portal .preview-strip {
  background: var(--soft);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
.portal .button {
  font-weight: 500;
  font-size: 12px;
  border-radius: 6px;
}
.portal .page-heading h1 {
  font-size: 40px;
}
.portal .avatar,
.portal .team-card img {
  mix-blend-mode: multiply;
}
.portal .preview-boundary,
.portal .profile small {
  color: var(--muted);
}
.portal .profile {
  border-color: var(--line);
}
.portal .profile > span {
  background: var(--soft);
  color: var(--ink);
}
/* Agent access and owner controls share the existing portal form language. */
.team-preview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 30px;
}
.team-preview-controls > strong {
  font-size: 12px;
}
.team-preview-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.team-preview-controls select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 14px;
}
.team-preview-controls > span {
  font-size: 11px;
  color: var(--muted);
  flex-basis: 100%;
}
.team-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 30px;
}
.team-plan-summary h2 {
  font-size: 29px;
}
.team-plan-summary p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.agent-roster {
  border-top: 1px solid var(--line);
  margin-bottom: 25px;
}
.agent-roster-row {
  display: grid;
  grid-template-columns: 72px 185px 1fr 165px;
  gap: 22px;
  align-items: center;
  padding: 25px 6px;
  border-bottom: 1px solid var(--line);
}
.agent-roster-row > img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.agent-roster-name h2 {
  font-size: 25px;
}
.agent-roster-name p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.agent-roster-focus {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 42ch;
}
.agent-roster-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.agent-roster-action .button {
  font-size: 12px;
  width: 100%;
  padding-inline: 12px;
}
.agent-roster-action small {
  font-size: 11px;
  color: var(--muted);
}
.agent-locked {
  background: var(--soft);
}
.agent-locked > img {
  filter: grayscale(1);
  opacity: 0.5;
}
.agent-locked .agent-roster-name h2 {
  color: var(--muted);
}
.agent-locked .button {
  background: var(--paper);
}
.agent-locked .button:disabled {
  cursor: not-allowed;
  color: var(--muted);
}
.agent-upgrade-panel,
.agent-review {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 28px;
  margin-block: 25px;
  border-radius: 12px;
}
.agent-upgrade-panel p,
.agent-review p {
  font-size: 14px;
  line-height: 1.8;
  margin-block: 13px;
}
.agent-upgrade-panel .button,
.agent-review .button {
  margin: 10px 10px 0 0;
}
.agent-upgrade-panel small,
.agent-review small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
}
.agent-back {
  margin: 0 0 24px;
  min-height: 44px;
}
.agent-management-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.agent-management-heading img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.agent-management-heading h2 {
  font-size: 34px;
}
.agent-management-heading p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.agent-management-heading > .badge {
  margin-left: auto;
  white-space: nowrap;
}
.agent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.agent-tabs button {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 7px;
  font-size: 13px;
}
.agent-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.agent-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: start;
}
.agent-editor {
  min-width: 0;
}
.agent-editor h3,
.agent-policy h3 {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.agent-editor > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}
.agent-editor > label:not(.agent-connection) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0;
}
.agent-editor textarea,
.agent-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.agent-editor textarea {
  min-height: 115px;
  resize: vertical;
}
.agent-editor select {
  min-height: 48px;
}
.agent-editor textarea[readonly] {
  background: var(--soft);
}
.agent-editor > .button {
  margin-block: 18px;
}
.agent-policy {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.agent-policy ul {
  padding-left: 17px;
}
.agent-policy li,
.agent-policy > p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 15px;
}
.agent-policy > p:last-child {
  margin-top: 18px;
}
.agent-connection {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 16px;
  margin: 16px 0;
  cursor: pointer;
}
.agent-connection input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  flex-shrink: 0;
  margin-top: 3px;
}
.agent-connection strong {
  font-size: 14px;
}
.agent-connection small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
}
.agent-connection .badge {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.agent-history {
  padding-left: 23px;
}
.agent-history li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.agent-history span,
.agent-history small {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
}
.setting-diff {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.setting-diff p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.setting-diff p > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 1150px) {
  .agent-roster-row {
    grid-template-columns: 64px minmax(140px, 1fr) 155px;
    gap: 18px;
  }
  .agent-roster-focus {
    grid-column: 2;
    grid-row: 2;
  }
  .agent-roster-action {
    grid-column: 3;
    grid-row: 1/3;
  }
  .agent-editor-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .agent-policy {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .team-preview-controls {
    gap: 12px;
    padding: 16px;
  }
  .team-preview-controls > strong {
    width: 100%;
  }
  .team-preview-controls label {
    width: 100%;
    justify-content: space-between;
  }
  .team-preview-controls select {
    font-size: 16px;
    max-width: 75%;
  }
  .team-plan-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .agent-roster-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 10px;
  }
  .agent-roster-row > img {
    width: 56px;
    height: 56px;
  }
  .agent-roster-focus {
    grid-column: 1/-1;
    grid-row: 2;
    max-width: none;
  }
  .agent-roster-action {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .agent-roster-name h2 {
    font-size: 24px;
  }
  .agent-management-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .agent-management-heading img {
    width: 65px;
    height: 65px;
  }
  .agent-management-heading > div {
    flex: 1;
  }
  .agent-management-heading h2 {
    font-size: 27px;
  }
  .agent-management-heading > .badge {
    margin-left: 0;
  }
  .agent-tabs {
    gap: 3px;
  }
  .agent-tabs button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .agent-connection {
    flex-wrap: wrap;
  }
  .agent-connection > span:not(.badge) {
    flex: 1;
  }
  .agent-connection .badge {
    margin-left: 35px;
  }
}

/* Connected workspace, without sample controls or unverified actions. */
.connected-standalone { max-width: 760px; margin: 12vh auto; padding: 24px; }
.connected-workspace-label { display: grid; gap: 8px; padding: 26px 0; font-size: 12px; color: var(--muted); }
.connected-workspace-label select { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.connected-report { white-space: pre-wrap; overflow-wrap: anywhere; }
.connected-loading { padding-block: 35px; }
.skeleton-line { height: 18px; margin-top: 20px; background: var(--line); border-radius: 4px; max-width: 620px; }
.skeleton-line.short { max-width: 360px; }
.connected-shell .work-row { text-decoration: none; color: inherit; }
.connected-shell [data-more] { margin-top: 24px; }
.connected-shell .spend-main { max-width: 680px; }
