@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  --navy: #102830;
  --ink: #142e37;
  --muted: #526971;
  --line: #e0e8eb;
  --teal: #167b73;
  --bg: #f4f7f8;
  --purple: #6f5acf;
  --radius: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem "DM Sans",
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #49b3a4;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #e6eff0;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
  font:
    750 1.3125rem Manrope,
    system-ui;
}
.brand small {
  display: block;
  font:
    550 0.75rem "DM Sans",
    system-ui;
  letter-spacing: 1.9px;
  color: #8aa5ad;
  margin-top: 6px;
}
.brand-icon {
  background: #d6f2a4;
  color: #183d38;
  border-radius: 10px;
  width: 39px;
  height: 41px;
  display: grid;
  place-content: center;
  position: relative;
  font-size: 1.5625rem;
}
.brand-icon span {
  position: absolute;
  right: 5px;
  top: 4px;
  color: var(--teal);
}
.workspace-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #36515a;
  border-radius: 9px;
  padding: 12px 10px;
  margin-top: 36px;
  font-size: 0.875rem;
  font-weight: 600;
}
.workspace-tag small {
  display: block;
  color: #8da5ae;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 3px;
}
.workspace-icon {
  background: #314b54;
  border-radius: 6px;
  padding: 8px;
  color: #c5d8d9;
}
.tag {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #a2c9ad;
  background: #263f3d;
  border: 1px solid #46695a;
  border-radius: 4px;
  padding: 3px 4px;
  margin-left: auto;
}
.nav-label {
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  color: #7f9ca6;
  margin: 33px 12px 13px;
}
.nav-item {
  border: 0;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  background: none;
  color: #a9bdc4;
  border-radius: 8px;
  padding: 13px 12px;
  font-size: 0.875rem;
  margin: 4px 0;
  gap: 11px;
}
.nav-item > span:first-child {
  width: 18px;
  font-size: 1.25rem;
  line-height: 20px;
}
.nav-item.active {
  background: #29464d;
  color: #eaf6eb;
}
.count {
  font-size: 0.75rem;
  background: #41605e;
  color: #c7e7cf;
  border-radius: 5px;
  min-width: 23px;
  padding: 3px;
  text-align: center;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.scope-note {
  border-top: 1px solid #304a53;
  padding: 24px 10px 20px;
  font-size: 0.8125rem;
}
.shield {
  display: block;
  font-size: 1.5625rem;
  color: #c7e49f;
  margin-bottom: 12px;
}
.scope-note b {
  font-weight: 500;
  color: #d4e1e0;
}
.scope-note p {
  color: #8ca7b0;
  line-height: 1.7;
  margin: 8px 0 0;
}
.sidebar-bottom > a {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  color: #a5b9be;
  font-size: 0.75rem;
}
.build-label {
  padding: 20px 10px 0;
  color: #92b1ba;
  font-size: 0.75rem;
}
.app-shell {
  margin-left: 244px;
}
.topbar {
  height: 79px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
}
.breadcrumb span {
  color: #b5c2c7;
  margin: 0 14px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.75rem;
}
.adapter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #446b58;
}
.adapter-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #489376;
}
.identity-label {
  color: var(--muted);
  margin-left: 10px;
}
.top-actions select {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #2c4751;
  padding: 8px 25px 8px 10px;
  background: #fff;
}
.avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8ede8;
  color: #50705b;
  display: grid;
  place-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 36px 38px 15px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--teal);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    750 clamp(1.5625rem, 2.4vw, 2.125rem)/1.3 Manrope,
    system-ui;
  letter-spacing: -1.2px;
  margin: 9px 0 10px;
}
.page-heading p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 9px;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 11px 17px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}
.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 3px #08352b14;
}
.primary:hover {
  background: #12665f;
}
.secondary {
  background: #fff;
  border-color: #d6e2e4;
  color: #38545d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 19px 21px;
  border-radius: 10px;
  position: relative;
}
.stat > span {
  font-size: 0.75rem;
  color: #58717b;
}
.stat strong {
  display: block;
  font:
    650 1.9375rem Manrope,
    system-ui;
  margin: 10px 0 8px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 0.75rem;
  color: #526971;
}
.stat:nth-child(2):after {
  content: "◇";
  color: #a48c40;
  position: absolute;
  top: 18px;
  right: 20px;
}
.stat:nth-child(3):after {
  content: "✓";
  color: var(--teal);
  position: absolute;
  top: 18px;
  right: 20px;
}
.stat:nth-child(4):after {
  content: "⌁";
  color: var(--purple);
  position: absolute;
  top: 18px;
  right: 20px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(270px, 32%) minmax(0, 1fr);
  gap: 20px;
  min-height: 535px;
}
.inbox-panel,
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.inbox-panel {
  display: flex;
  flex-direction: column;
}
.panel-head {
  padding: 19px 19px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-head h2 {
  font:
    700 0.875rem Manrope,
    system-ui;
  margin: 0;
}
.panel-head h2 > span {
  font: 500 0.75rem "DM Sans";
  background: #edf2f3;
  color: #4e666e;
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 7px;
}
.icon-button {
  background: none;
  border: 0;
  color: #718990;
  font-size: 1.25rem;
  border-radius: 5px;
  padding: 3px 7px;
}
.search-wrap {
  padding: 0 17px 13px;
}
.search-wrap input {
  width: 100%;
  font-size: 0.75rem;
  background: #f8fafb;
  border: 1px solid #e3eaed;
  padding: 10px 12px;
  border-radius: 6px;
  color: #34515b;
}
.filters {
  display: flex;
  gap: 6px;
  padding: 0 17px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter {
  font-size: 0.75rem;
  padding: 6px 8px;
  color: #526971;
  background: #fff;
  border: 0;
  border-radius: 5px;
}
.filter.active {
  background: #e7f2ed;
  color: #28705d;
}
.case-list {
  max-height: 515px;
  overflow: auto;
  flex: 1;
}
.case-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eaf0f2;
  background: #fff;
  padding: 17px 19px;
  position: relative;
}
.case-row:hover {
  background: #f7faf9;
}
.case-row.selected {
  background: #f0f7f4;
}
.case-row.selected:before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.75rem;
  color: #526971;
  margin-bottom: 9px;
}
.case-meta > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.case-row h3 {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.order-ref {
  font:
    0.75rem ui-monospace,
    monospace;
  color: #526971;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef2f4;
  color: #4c646e;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge.awaiting_approval {
  background: #fff4d6;
  color: #8a6c28;
}
.badge.resolved {
  background: #e2f2e9;
  color: #24623e;
}
.badge.escalated {
  background: #f0eafe;
  color: #654596;
}
.badge.failed {
  background: #fde9e8;
  color: #9a3c37;
}
.badge.needs_info {
  background: #eaf1fa;
  color: #356394;
}
.inbox-footer {
  padding: 12px 19px;
  font-size: 0.75rem;
  color: #526971;
  border-top: 1px solid var(--line);
}
.detail-subtitle span,
.order-ref {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.case-bottom { flex-wrap: wrap; }
.case-row h3 { overflow-wrap: anywhere; }
.welcome-state {
  text-align: center;
  padding: 27px 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 535px;
}
.welcome-art {
  width: 300px;
  height: 185px;
  position: relative;
  display: grid;
  place-content: center;
  margin-bottom: 17px;
}
.center-mark {
  background: var(--navy);
  border-radius: 18px;
  color: #e4f2dc;
  width: 70px;
  height: 76px;
  font: 750 2.875rem Manrope;
  display: grid;
  place-content: center;
  box-shadow: 0 12px 30px #153c3017;
  transform: rotate(-6deg);
  position: relative;
}
.center-mark > span {
  position: absolute;
  right: 9px;
  top: 10px;
  color: #c6ed9d;
}
.orbit {
  position: absolute;
  border: 1px solid #dde8e4;
  width: 190px;
  height: 140px;
  top: 22px;
  left: 55px;
  border-radius: 50%;
  transform: rotate(-26deg);
}
.orbit-two {
  width: 255px;
  height: 174px;
  top: 5px;
  left: 22px;
  border-style: dashed;
  border-color: #e9eeeb;
}
.art-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 3px 8px #12342908;
  padding: 9px 12px;
  font-size: 0.75rem;
  color: #5d7e73;
}
.chip-one {
  top: 34px;
  left: 0;
  transform: rotate(-7deg);
}
.chip-two {
  bottom: 24px;
  right: 0;
  transform: rotate(6deg);
}
.welcome-state h2 {
  font: 750 1.5rem Manrope;
  margin: 10px 0 12px;
  letter-spacing: -0.7px;
}
.welcome-state p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.welcome-foot {
  font-size: 0.75rem;
  color: #526971;
  margin-top: 26px;
}
.fixture-disclaimer {
  color: #526971;
  font-size: 0.75rem;
  text-align: center;
  margin: 22px 0 0;
}
.empty {
  padding: 38px 23px;
  text-align: center;
  color: #526971;
  font-size: 0.75rem;
  line-height: 1.7;
}
.empty h3 {
  color: #3c5b63;
  font-size: 0.8125rem;
  margin: 9px 0;
}
.empty-icon {
  font-size: 2rem;
  color: #a1b6bd;
}
.detail-head {
  padding: 22px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.detail-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.detail-topline .case-id {
  color: #526971;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-head h2 {
  font: 700 1.0625rem/1.5 Manrope;
  letter-spacing: -0.4px;
  margin: 14px 0 12px;
}
.detail-subtitle {
  font-size: 0.75rem;
  color: #526971;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  font-size: 0.75rem;
  color: #526971;
  padding: 14px 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.detail-tabs button.active {
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}
.detail-body {
  padding: 22px 25px;
}
.section-label {
  font-size: 0.75rem;
  letter-spacing: 1.1px;
  color: #526971;
  font-weight: 600;
  margin-bottom: 11px;
}
.routing-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.intent-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a5861;
}
.score {
  font-size: 0.75rem;
  color: #3a6554;
  border-radius: 4px;
  background: #eef6f2;
  padding: 5px 7px;
}
.score-caveat {
  font-size: 0.75rem;
  color: #526971;
  line-height: 1.5;
  margin: 0 0 22px;
}
.answer-card {
  background: #f7faf9;
  border: 1px solid #e0ebe6;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  font-size: 0.75rem;
  line-height: 1.85;
}
.answer-card p {
  margin: 0;
}
.answer-meta {
  border-top: 1px solid #e3ece7;
  margin-top: 13px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3a6554;
  font-size: 0.75rem;
}
.action-card {
  border: 1px solid #eadfbd;
  background: #fffcf3;
  border-radius: 8px;
  padding: 17px;
  margin-bottom: 18px;
}
.action-card h3 {
  font-size: 0.75rem;
  margin-bottom: 11px;
  color: #79652f;
}
.action-card p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #705d28;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.action-grid span {
  font-size: 0.75rem;
  color: #7a6835;
  display: block;
  margin-bottom: 4px;
}
.action-grid strong {
  font-size: 0.75rem;
  color: #6b624a;
  font-family: ui-monospace, monospace;
}
.action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.action-footer small {
  font-size: 0.75rem;
  color: #9e9171;
  max-width: 190px;
  line-height: 1.6;
}
.role-hint {
  font-size: 0.75rem;
  color: #705b2a;
  background: #fff7df;
  padding: 11px;
  border-radius: 5px;
}
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  font-size: 0.75rem;
  line-height: 1.7;
}
.evidence-card h3 {
  font-size: 0.75rem;
  margin: 0 0 7px;
  color: #326e65;
}
.evidence-card p {
  margin: 0;
  color: #526971;
  font-size: 0.75rem;
}
.evidence-card code {
  font-size: 0.75rem;
  color: #526971;
  overflow-wrap: anywhere;
}
.trace-row {
  display: grid;
  grid-template-columns: 23px 1fr auto;
  gap: 9px;
  border-bottom: 1px solid #edf1f3;
  padding: 12px 0;
}
.trace-symbol {
  width: 20px;
  height: 20px;
  background: #e6f4ec;
  color: #4c9270;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 0.75rem;
}
.trace-symbol.error {
  background: #fde9e8;
  color: #b15d59;
}
.trace-row strong {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.trace-row p {
  font-size: 0.75rem;
  color: #526971;
  margin: 5px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.trace-row > small {
  font-size: 0.75rem;
  color: #526971;
}
.notice {
  padding: 13px 18px;
  margin: 0 0 20px;
  border: 1px solid #cfe4d9;
  background: #edf7f0;
  border-radius: 7px;
  color: #3f7a56;
  font-size: 0.75rem;
}
.notice.error {
  border-color: #ecc9c9;
  background: #fff1f0;
  color: #a5564d;
}
.muted {
  color: var(--muted);
  font-size: 0.75rem;
}
.text-button {
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
}
.resolution-empty {
  padding: 40px 10px;
  text-align: center;
}
.resolution-empty h3 {
  font: 700 1.125rem Manrope;
}
.resolution-empty p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
  max-width: 330px;
  margin: 0 auto 22px;
}
dialog {
  border: 1px solid #dbe5e9;
  border-radius: 14px;
  padding: 28px;
  width: min(580px, 95vw);
  color: var(--ink);
  box-shadow: 0 25px 100px #0a252e33;
}
dialog::backdrop {
  background: #0f2c3b5c;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.dialog-head h2 {
  font: 750 1.4375rem Manrope;
  letter-spacing: -0.5px;
  margin: 9px 0 16px;
}
form > label {
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
  margin: 20px 0 8px;
}
form > textarea,
form > input {
  width: 100%;
  border: 1px solid #d7e3e5;
  border-radius: 7px;
  padding: 12px;
  font-size: 0.8125rem;
  color: #294751;
  resize: vertical;
  line-height: 1.6;
}
.examples {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.examples span {
  width: 100%;
  font-size: 0.75rem;
  color: #526971;
  margin-bottom: 3px;
}
.examples button {
  font-size: 0.75rem;
  border: 1px solid #dfebea;
  border-radius: 5px;
  padding: 6px 8px;
  background: #f5faf8;
  color: #4f7b70;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.form-error {
  color: #ad5a50;
  background: #fff0ee;
  padding: 11px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.content-card h2 {
  font: 700 1.125rem Manrope;
  margin-bottom: 8px;
}
.content-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.result-metrics strong {
  font: 700 1.6875rem Manrope;
  display: block;
  margin-bottom: 6px;
}
.result-metrics span {
  font-size: 0.75rem;
  color: #526971;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.75rem;
}
th {
  text-align: left;
  color: #526971;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf2f4;
  line-height: 1.7;
}
td code {
  font-size: 0.75rem;
  word-break: break-all;
}
.release-active {
  font-size: 0.75rem;
  background: #e4f3ea;
  color: #24623e;
  padding: 4px 6px;
  border-radius: 4px;
}
.run-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.run-form select {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.75rem;
}
.compact-code {
  color: #526971;
  font:
    0.75rem/1.7 ui-monospace,
    monospace;
  word-break: break-all;
}
.report-link {
  display: inline-block;
  margin: 12px 16px 0 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .workbench {
    min-height: 610px;
  }
  .welcome-state {
    min-height: 610px;
  }
  .case-list {
    max-height: 590px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 25px 13px;
  }
  .app-shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 25px;
  }
  .adapter-label {
    display: none;
  }
  main {
    padding: 28px 25px;
  }
  .workbench {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px 15px;
  }
  .heading-actions {
    align-self: flex-end;
  }
  .page-heading {
    align-items: start;
  }
  .stat small {
    font-size: 0.75rem;
  }
  .detail-body,
  .detail-head {
    padding: 19px;
  }
  .detail-tabs {
    padding: 0 19px;
  }
  .welcome-art {
    width: 260px;
  }
  .orbit {
    left: 35px;
  }
  .orbit-two {
    left: 2px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .brand {
    padding: 0 6px;
  }
  .brand > span:last-child,
  .workspace-tag,
  .nav-label,
  .nav-item .count,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 13px 0;
    margin-top: 15px;
  }
  .nav-item > span:first-child {
    font-size: 1.375rem;
  }
  .app-shell {
    margin-left: 76px;
  }
  .topbar {
    padding: 0 20px;
  }
  .top-actions {
    gap: 9px;
  }
  .identity-label {
    display: none;
  }
  main {
    padding: 25px 20px;
  }
  .brand-icon {
    flex-shrink: 0;
  }
  .workbench {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    align-self: center;
  }
  .stat small {
    display: none;
  }
  .stat strong {
    margin-bottom: 0;
  }
  .stat > span {
    font-size: 0.75rem;
  }
  .welcome-art {
    transform: scale(0.85);
  }
  .welcome-state h2 {
    font-size: 1.3125rem;
  }
  .welcome-state p {
    font-size: 0.75rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .sidebar {
    width: 58px;
    padding: 20px 6px;
  }
  .brand {
    padding: 0 3px;
  }
  .brand-icon {
    width: 38px;
    height: 39px;
  }
  .app-shell {
    margin-left: 58px;
  }
  .topbar {
    height: 65px;
    padding: 0 14px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .avatar {
    display: none;
  }
  .top-actions select {
    width: 100%;
    font-size: 0.75rem;
  }
  main {
    padding: 22px 14px;
  }
  h1 {
    font-size: 1.625rem;
  }
  .page-heading p {
    font-size: 0.75rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 1.5625rem;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .case-list {
    max-height: 260px;
  }
  .detail-panel {
    min-height: 400px;
  }
  .welcome-state {
    min-height: 400px;
  }
  .welcome-art {
    height: 130px;
    margin-top: -10px;
  }
  .fixture-disclaimer {
    font-size: 0.75rem;
    line-height: 1.8;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .result-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .scope-note {
    display: none;
  }
  .action-footer {
    flex-wrap: wrap;
  }
  .button {
    font-size: 0.75rem;
  }
  .workbench {
    gap: 15px;
  }
}

.evaluation-dialog {
  width: min(1000px, 95vw);
  max-height: 90vh;
  overflow: auto;
}
.evaluation-case {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}
.evaluation-case-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}
.evaluation-case-head > span:last-child {
  color: var(--muted);
}
.evaluation-case p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.evaluation-case summary {
  font-size: 0.75rem;
  color: var(--teal);
  cursor: pointer;
}
.evaluation-case pre {
  font:
    0.75rem/1.7 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f8f7;
  padding: 14px;
  border-radius: 6px;
}
.report-filter {
  font-size: 0.8125rem;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
}

/* Readable task text, fluid workspace, and text-size zoom support. */
:root {
  --sidebar-width: 15.25rem;
}
.sidebar {
  width: var(--sidebar-width);
  overflow-y: auto;
}
.app-shell {
  margin-left: var(--sidebar-width);
  container-type: inline-size;
}
.topbar {
  height: auto;
  min-height: 5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.top-actions {
  flex-wrap: wrap;
  min-width: 0;
}
.top-actions select {
  max-width: 100%;
}
.brand-icon {
  width: 2.45rem;
  height: 2.56rem;
  flex-shrink: 0;
}
.page-heading p,
.answer-card,
.evidence-card p,
.content-card p,
.evaluation-case p,
.muted {
  font-size: 0.875rem;
}
.button {
  font-size: 0.875rem;
  min-height: 44px;
}
.case-row h3 {
  font-size: 0.875rem;
}
.detail-tabs button {
  font-size: 0.875rem;
}
.badge,
.case-meta,
.order-ref,
.section-label,
.score-caveat,
.compact-code,
.trace-row p,
.trace-row > small {
  font-size: 0.75rem;
}
.icon-button {
  min-width: 36px;
  min-height: 36px;
}
.detail-head h2,
.page-heading h1 {
  overflow-wrap: anywhere;
}
.detail-subtitle {
  row-gap: 0.5rem;
}
@container (max-width:58rem) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-list {
    max-height: 20rem;
  }
  .comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-state {
    min-height: 25rem;
  }
}
@container (max-width:18rem) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar-width: 12.8125rem;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar-width: 4.75rem;
  }
}
@media (max-width: 650px) {
  :root {
    --sidebar-width: 3.625rem;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .action-footer {
    flex-wrap: wrap;
  }
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  background: #fff;
  color: #142e37;
  border: 2px solid #167b73;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}

.inbox-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.inbox-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}
.inbox-pagination .button {
  flex: 1 1 6rem;
  min-width: 0;
}
dialog {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail-tabs [role="tab"]:focus-visible,
[role="tabpanel"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.inline-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
  background: #fff;
}
.inline-review h3 { margin: 0 0 10px; font-size: 1rem; }
.inline-review select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d7e3e5;
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 0.875rem;
}
.inline-review-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.inline-review-footer [role="status"] { flex: 1 1 12rem; }
.workspace-sign-in {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 24rem);
  text-align: left;
  padding: 0 1rem;
}
.workspace-sign-in input {
  min-width: 0;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #718990;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.workspace-sign-in p { margin: 0; font-size: 0.875rem; }
.neon-login .page-heading,
.neon-login .stats,
.neon-login .inbox-panel {
  display: none;
}
.neon-login .workbench {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
  margin: 2rem auto;
  min-height: 0;
}
.neon-login .welcome-state {
  min-height: 0;
  padding: 2rem 1rem;
  margin-bottom: 0;
}
@media (max-width: 650px) {
  dialog { padding: 18px; }
}
