@charset "UTF-8";
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-variable.ttf') format('truetype');
}
:root {
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  color: #233b36;
  background: #f5f7f4;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
  --ink: #203a33;
  --muted: #78877f;
  --line: #e2e8e1;
  --green: #21644d;
  --mint: #e8f1e9;
  --amber: #a76a20;
  --nav: #142c29;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #6da88b;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small {
  font-size: 11px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.lead {
  color: #74837a;
  margin-top: 10px;
  max-width: 650px;
  font-size: 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #6c8175;
  margin-bottom: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.push-right {
  margin-left: auto;
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #bdcdc5;
  padding: 28px 20px;
  position: fixed;
  width: 232px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #f1f5ef;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  color: #9db4aa;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.brandmark {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background: #d7e7cd;
  color: #254635;
  border-radius: 12px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -2px;
  flex-shrink: 0;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7d9b8f;
  margin: 45px 12px 15px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.nav-link > span:first-child {
  font-size: 19px;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #87a99a;
}
.nav-link:hover {
  background: #203c35;
}
.nav-link.selected {
  background: #29473b;
  color: #eff6e8;
}
.nav-link.selected > span:first-child {
  color: #c7d9a9;
}
.nav-count {
  margin-left: auto;
  background: #c9dba8;
  color: #29412e;
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 12px 0;
}
.workspace-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  border-top: 1px solid #30443b;
  padding-top: 20px;
}
.small-dot {
  height: 6px;
  width: 6px;
  background: #a2c89b;
  border-radius: 50%;
}
.sidebar-bottom p {
  white-space: pre-line;
  font-size: 12px;
  color: #b9ccc0;
  margin-top: 24px;
}
.sidebar-bottom > small {
  color: #729181;
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.main-column {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: #879389;
}
.breadcrumb strong {
  color: #2d4438;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.connection {
  font-size: 10px;
  white-space: nowrap;
  color: #718278;
}
.connection.online {
  color: #3e7757;
}
.connection.stale {
  color: #a16026;
}
.connection.offline {
  color: #8b8170;
}
.profile-avatar {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  background: #e5ebdf;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.demo-tools {
  position: relative;
  font-size: 10px;
}
.demo-tools summary {
  cursor: pointer;
  color: #6b7d6e;
}
.tools-body {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 30px;
  width: 270px;
  background: white;
  box-shadow: 0 10px 30px #122a2820;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.tools-body .button {
  margin-top: 12px;
}
.mock-ribbon {
  padding: 10px 38px;
  color: #67796b;
  background: #eef3ea;
  border-bottom: 1px solid #e5ecdf;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-badge {
  border: 1px solid #b7c7aa;
  color: #61794c;
  font-size: 8px;
  letter-spacing: 1px;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
}
.snapshot {
  margin-left: auto;
  white-space: nowrap;
  color: #8b9688;
}
main {
  padding: 34px 38px 55px;
  max-width: 1580px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin: 1px 0 30px;
}
.page-heading > .button {
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  min-height: 36px;
  white-space: nowrap;
  transition: background 0.12s;
}
.button.primary {
  background: #21644d;
  color: white;
  border-color: #21644d;
}
.button.primary:hover {
  background: #174d3a;
}
.button.secondary {
  background: white;
  color: #435a4b;
  border-color: #dce4d9;
}
.button.secondary:hover {
  background: #edf3e9;
}
.button.plain {
  background: transparent;
  color: #6e7f72;
  padding: 6px 5px;
}
.button.plain:hover {
  color: #284d39;
  background: #edf3ea;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.end {
  justify-content: flex-end;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 35px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 19px;
  background: #fff;
}
.metric .row > span:first-child {
  font-size: 11px;
  color: #708176;
}
.metric-icon {
  color: #93a786;
  font-size: 17px;
}
.metric > strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 550;
  margin-top: 13px;
  line-height: 1.2;
}
.metric > small {
  display: block;
  color: #9aa598;
  font-size: 9px;
  margin-top: 6px;
}
.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 30px 0 15px;
}
.count-pill {
  background: #e4ebdf;
  color: #657652;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10px;
}
.section-heading > .muted {
  font-size: 10px;
  margin-left: auto;
}
.attention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.attention-card,
.approval-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.attention-card {
  border-left: 3px solid #bdcd9e;
}
.approval-card {
  border-top: 3px solid #d6b379;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approval-card h3 {
  font-size: 14px;
  line-height: 1.55;
}
.approval-card .metadata {
  margin: 0;
}
.approval-foot {
  margin-top: auto;
  border-top: 1px solid #edf0e9;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.approval-foot > .muted {
  font-size: 10px;
}
.case-ref {
  font-size: 10px;
  font-family: 'Cascadia Code', Consolas, monospace;
  color: #748b75;
  letter-spacing: 0.6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  padding: 4px 8px;
  line-height: 1.3;
  border-radius: 5px;
  white-space: nowrap;
  max-width: 100%;
}
.badge.neutral {
  background: #eef1e9;
  color: #6b7d60;
}
.badge.good {
  background: #e4efe8;
  color: #467358;
}
.badge.warn {
  background: #faf0e0;
  color: #9d702e;
}
.card-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 16px 0 7px;
}
.attention-card .muted {
  font-size: 11px;
}
.text-link {
  color: #456d50;
  font-size: 11px;
  font-weight: 600;
}
.attention-card .text-link {
  display: inline-block;
  margin-top: 24px;
}
.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.budget-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.budget-card h3 {
  font-size: 12px;
}
.budget-main {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 17px 0;
}
.budget-main > small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #8b9789;
  margin-top: 2px;
}
.budget-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid #edf1e9;
}
.budget-parts strong {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #627568;
  overflow-wrap: anywhere;
}
.legend {
  font-size: 9px;
  color: #8c968a;
  display: block;
}
.legend:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #8aa38a;
  border-radius: 2px;
  margin-right: 5px;
}
.legend.held:before {
  background: #c3b47f;
}
.legend.uncertain:before {
  background: #d7926d;
}
.note {
  font-size: 10px;
  color: #8b978b;
  line-height: 1.6;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.pool-list {
  border-top: 1px solid #edf1e9;
  padding-top: 9px;
}
.pool-list .row {
  font-size: 10px;
  padding: 4px 0;
}
.pool-list strong {
  font-size: 10px;
  font-weight: 500;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 22px;
  margin-top: 20px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-heading p {
  font-size: 11px;
  color: #8a9889;
  margin-top: 5px;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 17px;
}
.activity-list li {
  display: flex;
  gap: 12px;
}
.activity-list strong {
  font-size: 11px;
  font-weight: 500;
}
.activity-list small {
  display: block;
  color: #95a08f;
  font-size: 9px;
  margin-top: 4px;
}
.activity-dot {
  width: 7px;
  height: 7px;
  background: #c5d2ba;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: #718171;
  min-width: 0;
}
.empty-icon {
  font-size: 32px;
  color: #b5c6ab;
  display: block;
  margin-bottom: 9px;
}
.empty h3 {
  font-size: 14px;
  color: #526b53;
}
.empty p {
  font-size: 12px;
  max-width: 450px;
  margin: 8px auto 0;
}
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  align-items: flex-end;
}
.filter-bar .field:first-child {
  flex: 1;
  min-width: 180px;
}
.filter-bar.compact {
  padding: 0;
  border: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #6e806e;
  min-width: 0;
  margin-bottom: 0;
}
.field > span {
  font-weight: 600;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #dce4d7;
  color: #354f3c;
  border-radius: 6px;
  padding: 9px 11px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
}
textarea {
  width: 100%;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #a1ab9c;
}
select {
  padding-right: 28px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #8c9a86;
  font-weight: 600;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 19px 16px;
  border-bottom: 1px solid #edf1e8;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
  padding: 0;
}
.table-scroll table {
  min-width: 650px;
}
.table-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 5px 0;
}
.table-title:hover,
.card-link:hover,
.text-link:hover {
  text-decoration: underline;
}
td small {
  display: block;
  color: #94a18d;
  font-size: 9px;
  margin-top: 5px;
}
.avatar-inline {
  display: inline-grid;
  place-items: center;
  height: 25px;
  width: 25px;
  background: #e4eddf;
  color: #4e7351;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 10px;
  flex-shrink: 0;
}
.avatar-inline.video,
.agent-avatar.video {
  background: #eee6d8;
  color: #91774a;
}
.avatar-inline.software,
.agent-avatar.software {
  background: #e4e9f1;
  color: #626f8e;
}
.back-link {
  font-size: 11px;
  color: #6b8769;
  display: inline-block;
  margin-bottom: 20px;
}
.case-meta {
  font-size: 11px;
  color: #778a76;
  margin-bottom: 18px;
}
.status-note {
  border-left: 3px solid #b7cfa7;
  background: #edf3e7;
  padding: 13px 17px;
  color: #587551;
  font-size: 12px;
}
.case-actions {
  margin: 17px 0;
}
.case-approval {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 18px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #dfe7d8;
  margin-top: 25px;
  overflow-x: auto;
}
.button.tab {
  background: none;
  color: #819077;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 13px;
}
.button.tab.selected {
  color: #366348;
  border-bottom-color: #427558;
}
.detail-content {
  padding-top: 20px;
}
.timeline-entry {
  display: flex;
  gap: 15px;
  margin-bottom: 14px;
}
.timeline-index {
  width: 34px;
  flex-shrink: 0;
  text-align: center;
  color: #a8ba9a;
  font-size: 10px;
  padding-top: 14px;
}
.timeline-index small {
  display: block;
  font-size: 8px;
  color: #a4ae9d;
  margin-top: 5px;
}
.message {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  flex: 1;
  min-width: 0;
  margin: 10px 0;
}
.message.incoming {
  background: #eef3e9;
  border-color: #e0e9d7;
}
.message strong {
  font-size: 12px;
}
.message small {
  font-size: 10px;
  color: #8a9a81;
}
.message-text {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.message > small {
  display: block;
}
.model-label {
  font-size: 9px;
  background: #f3f5ef;
  border: 1px solid #e1e7d9;
  padding: 3px 6px;
  border-radius: 4px;
  color: #819276;
  margin-top: 10px;
  display: inline-block;
}
.switch-note {
  font-size: 10px;
  color: #8e773e;
  margin-top: 9px;
}
.timeline-event {
  flex: 1;
  min-width: 0;
  border-left: 2px solid #dce5d3;
  padding: 12px 16px;
  background: #f0f4eb;
  border-radius: 0 7px 7px 0;
}
.timeline-event strong {
  font-size: 11px;
  font-weight: 500;
}
.timeline-event small {
  display: block;
  color: #94a186;
  font-size: 9px;
  margin-top: 5px;
}
.composer {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
}
.composer .row {
  margin-top: 12px;
}
.composer small {
  font-size: 10px;
  color: #8d9c83;
}
.attempt-card {
  padding: 17px;
  background: #f7f9f4;
  border: 1px solid #e6ecdf;
  border-radius: 7px;
  margin-top: 12px;
}
.attempt-card strong {
  font-size: 12px;
}
.metadata {
  display: flex;
  gap: 7px 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #88987e;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.warning-text {
  color: #b07837 !important;
}
.good-text {
  color: #437756;
}
.effect-note {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
  color: #849478;
}
.code-block {
  background: #f2f5ee;
  padding: 18px;
  border-radius: 7px;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  max-height: 480px;
  overflow: auto;
}
.artifact-image {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 7px;
}
.assignment-row {
  display: flex;
  align-items: center;
  padding: 15px 0;
}
.assignment-row small {
  display: block;
  color: #91a085;
  margin-top: 5px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.agent-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  background: white;
  min-width: 0;
}
.agent-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e6efde;
  color: #5b7c4c;
  border-radius: 12px;
  font-size: 19px;
}
.agent-card h2 {
  font-size: 22px;
  margin-top: 17px;
}
.agent-card > .muted {
  font-size: 11px;
  margin-top: 3px;
}
.agent-stats {
  display: flex;
  gap: 28px;
  border-top: 1px solid #edf1e7;
  border-bottom: 1px solid #edf1e7;
  padding: 15px 0;
  margin: 20px 0;
}
.agent-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
}
.agent-stats span {
  font-size: 9px;
  color: #8c9d7f;
}
.provider-chain {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: #788e6b;
  overflow-wrap: anywhere;
}
.agent-card > .button {
  margin-top: 15px;
}
.approval-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
}
.approval-list .approval-foot {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.security-note {
  border: 1px solid #dce8d1;
  background: #edf4e6;
  color: #6a8158;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 11px;
  margin-bottom: 22px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.admin-grid > .panel {
  margin: 0;
}
.provider-list {
  display: grid;
  gap: 20px;
}
.provider-list article {
  border-bottom: 1px solid #edf1e6;
  padding-bottom: 17px;
}
.provider-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.provider-list strong {
  font-size: 12px;
}
.provider-list article > p {
  font-size: 11px;
  color: #8d9e7e;
  margin-top: 6px;
}
.health-list .row {
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1e6;
}
.secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.secret-row strong {
  font-family: Consolas, monospace;
  font-size: 11px;
}
.secret-row small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #8c9e7c;
}
.code-input {
  font-family: Consolas, monospace;
  margin-bottom: 13px;
  margin-top: 4px;
  line-height: 1.7;
}
.admin-grid form > .field {
  margin-bottom: 14px;
}
.modal {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid #dbe4d2;
  padding: 28px;
  border-radius: 13px;
  box-shadow: 0 25px 70px #142c2940;
  color: var(--ink);
}
.modal::backdrop {
  background: #102d2870;
}
.modal > p {
  font-size: 12px;
  color: #7d9071;
  margin: 12px 0 22px;
}
.modal .field {
  margin-bottom: 15px;
}
.modal .button-row {
  margin-top: 24px;
}
.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid #e5c6a3;
  background: #fff4e6;
  color: #9c662b;
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 24px;
  font-size: 12px;
}
.error-banner > strong {
  font-size: 11px;
}
.error-banner > .button {
  margin-left: auto;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: min(480px, calc(100vw - 32px));
  background: #244d3c;
  color: #f0f4e9;
  font-size: 12px;
  padding: 15px 20px;
  border-radius: 9px;
  z-index: 20;
  box-shadow: 0 8px 20px #12332425;
}
.toast[hidden] {
  display: none;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #91a181;
  font-size: 12px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #edf2e8;
}
.login-card {
  max-width: 480px;
  width: 100%;
  background: white;
  border: 1px solid #dae4d2;
  border-radius: 18px;
  padding: 40px;
}
.login-card > .brandmark {
  margin-bottom: 32px;
}
.login-card h1 {
  white-space: pre-line;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -1.5px;
}
.login-card .lead {
  margin-bottom: 24px;
}
.demo-banner {
  background: #f1f5eb;
  border: 1px solid #e1e9d6;
  border-radius: 8px;
  padding: 15px;
  margin: 25px 0;
}
.demo-banner strong,
.demo-banner span {
  display: block;
  font-size: 11px;
}
.demo-banner span {
  font-size: 10px;
  color: #8b9c7c;
  margin-top: 5px;
}
.login-card > .button {
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
}
.login-card > .note {
  text-align: center;
  margin-top: 22px;
}
@media (min-width: 1450px) {
  .attention-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .budget-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-heading {
    margin-bottom: 36px;
  }
}
@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
    padding: 25px 15px;
  }
  .brand strong {
    font-size: 16px;
  }
  .topbar {
    padding: 0 25px;
  }
  .mock-ribbon {
    padding: 10px 25px;
  }
  main {
    padding: 28px 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    display: none;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric .row > span:first-child {
    font-size: 10px;
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions {
    gap: 10px;
  }
  .snapshot {
    display: none;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    height: auto;
    padding: 12px 16px 0;
    gap: 10px;
  }
  .brandmark {
    height: 32px;
    width: 32px;
    font-size: 20px;
    border-radius: 9px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small,
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 9px;
  }
  .nav-link {
    padding: 8px 11px;
    gap: 7px;
    flex-shrink: 0;
    font-size: 11px;
  }
  .nav-link > span:first-child {
    font-size: 14px;
    width: 14px;
  }
  .main-column {
    display: block;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .mock-ribbon {
    padding: 10px 20px;
  }
  .connection {
    font-size: 9px;
    white-space: normal;
    max-width: 180px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .top-actions {
    gap: 9px;
  }
  .profile-avatar {
    display: none;
  }
  main {
    padding: 25px 20px 45px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 27px;
  }
  .lead {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 25px;
  }
  .metric > strong {
    font-size: 28px;
  }
  .attention-grid {
    grid-template-columns: 1fr;
  }
  .budget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .case-approval {
    grid-template-columns: 1fr;
  }
  .filter-bar > .field {
    flex: 1;
    min-width: 120px;
  }
  .section-heading > .muted {
    display: none;
  }
  .agent-grid {
    gap: 13px;
  }
  .case-meta {
    gap: 10px;
  }
  .page-heading h1 {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  main {
    padding: 22px 15px 40px;
  }
  .topbar {
    padding: 0 15px;
    gap: 8px;
  }
  .top-actions {
    gap: 8px;
  }
  .topbar .button {
    font-size: 10px;
    padding: 4px;
  }
  .mock-ribbon {
    padding: 9px 15px;
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.6;
  }
  .tiny-badge {
    margin-top: 1px;
  }
  .demo-tools summary {
    font-size: 9px;
  }
  .tools-body {
    right: -35px;
    width: 250px;
  }
  .connection {
    max-width: 115px;
    font-size: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics > .metric:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .metrics > .metric:last-child > strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  .metrics > .metric:last-child > .row {
    gap: 20px;
    justify-content: flex-start;
  }
  .budget-grid {
    grid-template-columns: 1fr;
  }
  .budget-card {
    padding: 18px;
  }
  .attention-card,
  .approval-card {
    padding: 18px;
  }
  .section-heading {
    margin-top: 25px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading .text-link {
    font-size: 10px;
  }
  .approval-foot .button-row {
    width: 100%;
  }
  .approval-foot .button-row > .button.primary {
    flex: 1;
  }
  .approval-list .approval-foot {
    align-items: flex-start;
  }
  .metadata {
    font-size: 9px;
  }
  .panel {
    padding: 17px;
  }
  .table-scroll {
    padding: 0;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .timeline-entry {
    gap: 7px;
  }
  .timeline-index {
    width: 25px;
  }
  .message {
    padding: 15px;
  }
  .message-text {
    font-size: 12px;
  }
  .tabs {
    gap: 0;
  }
  .button.tab {
    padding: 10px 9px;
    font-size: 10px;
  }
  .filter-bar {
    padding: 14px;
  }
  .filter-bar .field:first-child {
    flex-basis: 100%;
  }
  .security-note {
    font-size: 10px;
    padding: 13px;
  }
  .modal {
    padding: 23px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 31px;
  }
  .case-meta {
    font-size: 10px;
  }
  .composer {
    padding: 15px;
  }
  .snapshot {
    display: none;
  }
}

.metric > strong,
.budget-amount,
.money,
td.numeric {
  font-variant-numeric: tabular-nums;
}
.brand strong {
  font-weight: 650;
}
.nav-link {
  font-weight: 500;
}
