@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./inter-400.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./inter-500.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./inter-600.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./inter-700.ttf") format("truetype");
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-body);
  background: var(--surface-canvas);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  --ink: var(--text-heading);
  --muted: var(--text-muted);
  --line: var(--border-divider);
  --teal: #7fe3d3;
  --nav: var(--surface-reading);
  --soft: var(--surface-secondary);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--text-accent);
}
button,
.button {
  border: 1px solid var(--border-control);
  border-radius: 8px;
  background: var(--surface-reading);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.4;
  text-decoration: none;
  min-height: 42px;
}
button:hover,
.button:hover {
  background: var(--surface-secondary);
  border-color: var(--border-control);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #ffffff;
}
.primary:hover {
  background: var(--gradient);
  color: #ffffff;
}
.secondary {
  background: var(--surface-reading);
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: var(--text-error);
  border-color: var(--text-error);
}
.small-button {
  padding: 6px 10px;
  min-height: 34px;
  font-size: 13px;
}
.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.navigation {
  background: var(--nav);
  color: var(--text-body);
  padding: 34px 20px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-divider);
  border-radius: 10px;
  width: 38px;
  height: 42px;
  font-family: Georgia, serif;
  font-size: 37px;
  line-height: 1;
  color: var(--text-body);
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand small {
  display: block;
  letter-spacing: 0.2px;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}
.nav-section {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 55px 12px 15px;
}
.nav-link {
  display: flex;
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--text-accent);
  justify-content: flex-start;
  gap: 12px;
  margin: 5px 0;
  padding: 12px;
  font-size: 14px;
}
.nav-link span {
  font-size: 20px;
  line-height: 1;
}
.nav-link.active,
.nav-link:hover {
  background: var(--surface-secondary);
  color: var(--text-accent);
}
.nav-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
  padding: 24px 10px 0;
}
.nav-bottom p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 9px;
  line-height: 1.7;
}
.environment-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-accent);
  display: inline-block;
  margin-right: 6px;
}
.identity-line {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  margin-top: 20px;
}
.main-shell {
  min-width: 0;
}
.topbar {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 42px;
  background: var(--surface-secondary);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--text-accent);
  margin: 0 0 7px;
  display: block;
}
.topbar-title {
  font-size: 12px;
  color: var(--muted);
}
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: var(--surface-secondary);
  color: var(--text-body);
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  white-space: nowrap;
}
.pill.green,
.badge.green {
  background: var(--surface-success);
  color: var(--text-success);
}
.pill.amber,
.badge.amber {
  background: var(--surface-warning);
  color: var(--text-warning);
}
.pill.blue,
.badge.blue {
  background: var(--surface-secondary);
  color: var(--text-accent);
}
.pill.red,
.badge.red {
  background: var(--surface-error);
  color: var(--text-error);
}
.subtle {
  border: 1px solid var(--line);
  background: transparent;
}
.identity-bar {
  padding: 12px 42px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-secondary);
}
.identity-bar:has(#tenant-controls:empty) {
  display: none;
}
#tenant-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
#tenant-controls label {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
#tenant-controls select {
  padding: 7px 30px 7px 10px;
  min-height: 36px;
  max-width: 220px;
  font-size: 12px;
}
#tenant-controls button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
#tenant-controls button:last-child {
  margin-left: auto;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
main {
  padding: 36px 42px 28px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 15px;
}
#page-description {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.message {
  font-size: 13px;
  color: var(--text-warning);
  background: var(--surface-warning);
  border: 1px solid var(--border-divider);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  white-space: pre-line;
}
.message:empty {
  display: none;
}
.message.success {
  background: var(--surface-success);
  border-color: var(--border-divider);
  color: var(--text-success);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-reading);
  margin: 0 0 26px;
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.6px;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.queue-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.search-field {
  flex: 1;
  max-width: 420px;
}
.search-field input {
  width: 100%;
  background: var(--surface-reading);
}
input,
select,
textarea {
  border: 1px solid var(--border-control);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--surface-reading);
  color: var(--ink);
  max-width: 100%;
  min-height: 42px;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}
textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  width: 17px;
  height: 17px;
  accent-color: var(--text-accent);
}
.field {
  margin-bottom: 22px;
}
.field input,
.field select {
  width: 100%;
}
.product-selector {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 352px;
  margin-bottom: 20px;
}
.product-selector label,
.product-selector p {
  margin: 0;
}
.product-selector select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.field small,
small.help {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.required {
  font-size: 10px;
  color: var(--text-warning);
  background: var(--surface-warning);
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.content-layout.detail {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.request-sidebar {
  min-width: 0;
}
.request-sidebar h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 8px 6px;
}
.request-row {
  display: block;
  width: 100%;
  background: var(--surface-reading);
  text-align: left;
  margin-bottom: 8px;
  padding: 15px;
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-weight: 400;
}
.request-row.selected {
  border-color: var(--text-accent);
  background: var(--surface-secondary);
  box-shadow: inset 3px 0 var(--text-accent);
}
.request-row .row-title {
  display: block;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 9px 0;
}
.request-row small {
  font-size: 10px;
  color: var(--muted);
}
.request-row .badge {
  font-size: 9px;
  padding: 3px 6px;
}
#workspace {
  min-width: 0;
  outline: none;
}
.card {
  background: var(--surface-reading);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.card-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.card-heading h2 {
  margin-bottom: 6px;
}
.welcome {
  padding: 70px 40px;
  text-align: center;
  max-width: 760px;
  margin: 25px auto 50px;
  background: var(--surface-reading);
}
.welcome h2 {
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -1.7px;
  margin: 20px 0;
}
.welcome p:not(.eyebrow) {
  max-width: 395px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 14px;
}
.welcome small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.welcome-symbol {
  margin: 0 auto 30px;
  font-family: Georgia, serif;
  font-size: 40px;
  color: var(--text-accent);
  width: 64px;
  height: 64px;
  background: var(--surface-reading);
  border-radius: 18px;
  line-height: 58px;
}
.empty {
  text-align: center;
  padding: 56px 28px;
}
.empty h2 {
  margin-top: 14px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 410px;
  margin: 0 auto 20px;
}
.empty-icon {
  font-size: 30px;
  color: var(--text-muted);
}
.table-wrap {
  overflow: auto;
}
.request-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.request-table th {
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.request-table td {
  padding: 19px 20px;
  border-bottom: 1px solid var(--border-divider);
  font-size: 12px;
  vertical-align: middle;
}
.request-table tr:last-child td {
  border-bottom: 0;
}
.request-table th:first-child {
  width: 47%;
}
.request-table td button {
  border: 0;
  padding: 0;
  min-height: auto;
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.request-table td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.back-link {
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 28px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.case-title {
  font-size: 24px;
}
.reference {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps {
  display: flex;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  flex: 1;
  border-top: 3px solid var(--border-divider);
  padding-top: 9px;
  font-size: 10px;
  color: var(--muted);
}
.steps li.done {
  border-color: var(--border-divider);
  color: var(--text-success);
}
.steps li.current {
  border-color: var(--text-accent);
  color: var(--text-accent);
  font-weight: 700;
}
.form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 22px;
}
.progress-track {
  height: 5px;
  display: flex;
  gap: 3px;
  margin-bottom: 25px;
}
.progress-track span {
  height: 5px;
  flex: 1;
  background: var(--surface-secondary);
  border-radius: 4px;
}
.progress-track .complete {
  background: var(--surface-success);
}
.question-title {
  font-size: 20px;
}
.save-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.save-state {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin: 0;
}
.answer-grid div {
  min-width: 0;
  border-bottom: 1px solid var(--border-divider);
  padding-bottom: 15px;
}
.answer-grid dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.answer-grid dd {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attachment-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-divider);
}
.file-icon {
  width: 36px;
  height: 42px;
  border-radius: 7px;
  background: var(--surface-secondary);
  color: var(--text-accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.file-body {
  min-width: 0;
  flex: 1;
}
.file-body a,
.file-body strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}
.file-body small {
  color: var(--muted);
  font-size: 10px;
}
.upload-box {
  border: 1px dashed var(--border-control);
  border-radius: 9px;
  padding: 20px;
  background: var(--surface-reading);
  margin-top: 20px;
}
.upload-box input {
  background: var(--surface-reading);
  border: 0;
  padding: 7px 0;
  display: block;
  width: 100%;
  font-size: 12px;
}
.upload-box p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 15px;
}
.callout {
  border-left: 3px solid var(--border-divider);
  background: var(--surface-secondary);
  padding: 15px 18px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  margin-bottom: 20px;
}
.callout.warning {
  background: var(--surface-warning);
  border-color: var(--border-divider);
}
.callout strong {
  display: block;
  margin-bottom: 5px;
}
.callout p {
  margin: 0;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 23px 24px;
  border-left: 1px solid var(--line);
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--text-accent);
  border-radius: 50%;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline strong {
  font-size: 12px;
  display: block;
}
.timeline small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.timeline p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 7px 0 0;
}
.timeline details {
  font-size: 11px;
  margin-top: 7px;
}
.section-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: list-item;
  margin-bottom: 16px;
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
}
.builder-field {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 16px 0;
  background: var(--surface-reading);
}
.builder-field .field-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.builder-field .field-top strong {
  font-size: 12px;
}
.builder-field label {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field {
  margin-bottom: 0;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 12px;
}
.builder-preview {
  position: sticky;
  top: 20px;
  background: var(--surface-reading);
}
.builder-preview input,
.builder-preview select {
  width: 100%;
  font-size: 12px;
}
.builder-preview .field {
  margin-bottom: 16px;
}
.builder-preview label {
  font-size: 11px;
}
.builder-preview .eyebrow {
  margin-bottom: 17px;
}
.builder-preview h3 {
  font-size: 18px;
}
.route-row {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.route-row .actions {
  justify-content: space-between;
  margin-bottom: 12px;
}
.route-row label {
  font-size: 11px;
}
.route-row input,
.route-row select {
  width: 100%;
  font-size: 12px;
}
.publish-bar {
  position: sticky;
  bottom: 16px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-divider);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
  padding: 16px 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.publish-bar p {
  margin: 0;
  font-size: 12px;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.health-grid .card {
  margin: 0;
}
.health-number {
  font-size: 28px;
  font-weight: 600;
}
.health-grid h3 {
  font-size: 12px;
  color: var(--muted);
}
.health-grid p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
.fixture-bar {
  font-size: 12px;
  background: var(--surface-warning);
  padding: 9px 42px;
}
.fixture-bar label,
.fixture-bar select,
.fixture-bar button {
  display: inline-flex;
  margin: 8px;
  font-size: 12px;
}
.fixture-bar small {
  display: block;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 42px 24px;
  font-size: 10px;
  color: var(--text-muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  max-width: 620px;
  width: calc(100% - 32px);
  color: var(--ink);
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: var(--surface-reading);
}
dialog h2 {
  font-size: 23px;
}
dialog p {
  color: var(--muted);
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -60px;
  background: var(--surface-reading);
  color: var(--text-accent);
  visibility: hidden;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  visibility: visible;
  top: 10px;
}
*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.empty-field {
  color: var(--text-muted);
  font-style: italic;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.packet-meta {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main {
    padding-top: 44px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .navigation {
    padding: 28px 14px;
  }
  .topbar,
  .identity-bar {
    padding-left: 26px;
    padding-right: 26px;
  }
  main {
    padding: 28px 26px;
  }
  .content-layout.detail {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
  }
  .card {
    padding: 22px;
  }
  .table-card {
    padding: 0;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-preview {
    position: static;
  }
  .stat {
    padding: 19px 18px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    display: block;
  }
  .navigation {
    height: auto;
    position: static;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    width: 30px;
    height: 34px;
    font-size: 30px;
  }
  .brand small {
    font-size: 9px;
  }
  .nav-section,
  .nav-bottom {
    display: none;
  }
  .navigation nav {
    display: flex;
    gap: 5px;
  }
  .nav-link {
    font-size: 11px;
    margin: 0;
    padding: 10px 9px;
    width: auto;
  }
  .nav-link span {
    display: none;
  }
  .topbar {
    padding: 14px 20px;
    min-height: 65px;
  }
  .identity-bar {
    padding: 12px 20px;
  }
  #tenant-controls {
    gap: 8px;
  }
  #tenant-controls label {
    font-size: 10px;
  }
  main {
    padding: 26px 20px;
  }
  .content-layout.detail {
    display: block;
  }
  .request-sidebar {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(3) {
    border-bottom: 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading .actions {
    justify-content: flex-end;
  }
  .page-heading .actions button {
    font-size: 12px;
    padding: 9px 12px;
  }
  #refresh {
    display: none;
  }
  .queue-tools {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .queue-tools select {
    flex: 1;
  }
  .request-table th:nth-child(3),
  .request-table td:nth-child(3) {
    display: none;
  }
  .request-table th:first-child {
    width: 65%;
  }
  .request-table td,
  .request-table th {
    padding: 16px;
  }
  .answer-grid {
    grid-template-columns: 1fr;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .welcome {
    padding: 48px 20px;
  }
  .welcome h2 {
    font-size: 39px;
  }
  .card-heading {
    gap: 10px;
  }
  .case-title {
    font-size: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .save-line {
    flex-wrap: wrap;
  }
  .save-state {
    margin-left: 0;
    flex-basis: 100%;
  }
  footer {
    padding: 20px;
  }
  .publish-bar {
    bottom: 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .fixture-bar {
    padding: 9px 20px;
  }
  .topbar-title {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
@media print {
  .navigation,
  .topbar,
  .identity-bar,
  .page-heading,
  .stats,
  .queue-tools,
  .request-sidebar,
  footer,
  .actions,
  .review-actions,
  .back-link,
  button {
    display: none !important;
  }
  .app-shell,
  .content-layout.detail {
    display: block;
  }
  .main-shell,
  main {
    padding: 0;
  }
  body {
    background: white;
  }
  .card {
    break-inside: avoid;
    border-color: #ddd;
  }
  .card:not(.packet) {
    display: none;
  }
  .card.packet {
    display: block;
  }
}
.preview-fields {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.snapshot-note {
  margin: 18px 0 25px;
}
.health-number {
  margin-bottom: 10px !important;
  color: var(--ink) !important;
}
@media (max-width: 800px) {
  .request-table th:first-child {
    width: 58%;
  }
  .request-table .badge {
    white-space: normal;
    max-width: 100%;
    font-size: 10px;
  }
  .request-table td {
    overflow-wrap: anywhere;
  }
  .identity-bar label {
    flex-shrink: 0;
  }
}
/* Conversational capture shares the same saved answers and review workflow. */
/* Navaura's site palette, with a focused conversation and a live details rail. */
:root {
  color-scheme: light;
  --blue: #2563eb;
  --violet: #7c3aed;
  --surface: var(--surface-reading);
  --gradient: linear-gradient(90deg, #2563eb, #7c3aed);
}
body {
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
}
button,
.button,
input,
select,
textarea {
  transition:
    border-color 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
button:hover,
.button:hover {
  border-color: var(--border-control);
}
.primary {
  background: var(--gradient);
  border-color: var(--text-accent);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
}
.primary:hover {
  background: var(--gradient);
  border-color: var(--text-accent);
  color: #ffffff;
}
.secondary {
  background: var(--surface-reading);
}
*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.navigation {
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  background: var(--surface-reading);
}
.brand {
  color: var(--text-heading);
  letter-spacing: -0.7px;
  font-size: 23px;
  gap: 10px;
  line-height: 1;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand small {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 2.6px;
  margin-top: 7px;
}
.nav-section {
  margin-top: 50px;
  font-size: 9px;
  letter-spacing: 1.7px;
}
.nav-link.active {
  background: var(--surface-secondary);
  box-shadow: inset 3px 0 var(--text-accent);
}
.nav-link {
  font-size: 13px;
  min-height: 44px;
}
.topbar {
  background: var(--surface-secondary);
  min-height: 68px;
  padding: 16px 32px;
}
.topbar .eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
}
.identity-bar {
  background: var(--surface-secondary);
  padding: 10px 32px;
}
main {
  padding: 30px 32px;
}
.page-heading {
  margin-bottom: 24px;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
}
h2 {
  font-weight: 600;
}
.card {
  background: var(--surface-reading);
  border-color: var(--border-divider);
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
}
.stats {
  background: var(--surface-reading);
}
.stat strong {
  font-size: 32px;
  color: var(--text-heading);
}
.table-wrap {
  background: var(--surface-reading);
}
.request-table tbody tr:hover {
  background: var(--surface-canvas);
}
.request-table th {
  background: var(--surface-secondary);
}
.request-table td {
  padding-top: 21px;
  padding-bottom: 21px;
}
.request-table td button:hover {
  color: var(--text-accent);
}
.search-field input {
  background: var(--surface-reading);
}
.welcome {
  background: var(--surface-reading);
  border-color: var(--border-divider);
  border-radius: 20px;
  max-width: 880px;
}
.welcome h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -2px;
}
.welcome-symbol {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  display: block;
  margin-bottom: 28px;
}
.welcome p:not(.eyebrow) {
  max-width: 430px;
  line-height: 1.8;
}
.welcome .button {
  min-height: 50px;
  padding: 13px 28px;
}
.request-open .page-heading {
  justify-content: flex-end;
  margin-bottom: 0;
  min-height: 0;
}
.request-open .page-heading > div:first-child {
  display: none;
}
.request-open .page-heading .actions {
  flex-direction: row;
}
.request-open .page-heading button {
  padding: 7px 12px;
  min-height: 34px;
  font-size: 12px;
}
.request-open main {
  padding-top: 18px;
}
.request-open #message.success {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border-radius: 30px;
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
  padding: 9px 18px;
  pointer-events: none;
  animation: toast-away 0.3s 2.5s forwards;
}
.request-header {
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
  background: transparent;
  box-shadow: none;
}
.request-header .card-heading {
  margin: 0;
  flex: 1;
  align-items: center;
}
.request-header .case-title {
  font-size: 20px;
}
.request-header .eyebrow {
  font-size: 9px;
  margin-bottom: 3px;
}
.request-header .steps {
  width: 38%;
  max-width: 400px;
  flex-shrink: 0;
  margin: 0;
}
.request-header .steps li {
  padding-top: 7px;
  font-size: 10px;
  border-top-width: 2px;
}
.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 22px;
  align-items: start;
}
.conversation-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: clamp(460px, calc(100dvh - 200px), 600px);
  position: sticky;
  top: 20px;
  border-color: var(--border-divider);
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
  margin: 0;
  background: var(--surface-reading);
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-reading);
}
.assistant-avatar {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.conversation-header h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0 0 4px;
}
.conversation-header p {
  font-size: 10px;
  color: var(--text-body);
  margin: 0;
}
.assistant-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-accent);
  white-space: nowrap;
}
.assistant-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-reading);
  margin-right: 6px;
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
}
.chat-log {
  overflow: auto;
  min-height: 140px;
  flex: 1;
  padding: 26px 24px;
  scrollbar-color: #3b4e72 transparent;
  overscroll-behavior: contain;
}
.chat-bubble {
  max-width: 90%;
  margin-bottom: 22px;
  animation: message-enter 0.2s ease-out;
  overflow-wrap: anywhere;
}
.bubble-author {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.chat-bubble p {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: var(--text-body);
}
.chat-bubble.user {
  margin-left: auto;
  background: var(--surface-secondary);
  border: 1px solid var(--border-divider);
  border-radius: 16px 16px 3px 16px;
  padding: 12px 16px;
  max-width: 85%;
}
.chat-bubble.user p {
  color: var(--text-body);
  font-size: 13px;
}
.chat-bubble.user .bubble-author {
  color: var(--text-muted);
}
.chat-bubble.question p {
  font-size: 20px;
  color: var(--text-heading);
  letter-spacing: -0.3px;
  line-height: 1.5;
  font-weight: 500;
}
.chat-bubble.saved {
  padding-left: 12px;
  border-left: 2px solid var(--border-divider);
}
.chat-bubble.saved p {
  font-size: 12px;
  color: var(--text-success);
}
.chat-bubble.saved .bubble-author {
  display: none;
}
.chat-composer {
  padding: 16px 22px 14px;
  border-top: 1px solid var(--border-control);
  background: var(--surface-reading);
}
.current-field {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.composer-input {
  position: relative;
  border: 1px solid var(--border-control);
  border-radius: 13px;
  background: var(--surface-reading);
  overflow: hidden;
}
.composer-input:focus-within {
  border-color: var(--text-accent);
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
}
.composer-input textarea {
  display: block;
  resize: none;
  border: 0;
  background: transparent;
  padding: 15px 16px;
  width: 100%;
  font-size: 13px;
  min-height: 76px;
  outline: none;
  box-shadow: none;
}
.composer-input .chat-send {
  display: flex;
  margin: 0 10px 10px auto;
  min-height: 37px;
  font-size: 11px;
  padding: 8px 15px;
  border-radius: 8px;
}
.composer-tools {
  gap: 5px;
  margin-top: 7px;
  justify-content: space-between;
}
.composer-tools button {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  font-size: 11px;
  min-height: 34px;
  padding: 6px 3px;
}
.composer-tools button:hover {
  color: var(--text-accent);
}
.chat-footnote {
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.answer-suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.confirmation-options,
.date-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.confirmation-options button {
  width: 100%;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.date-answer input {
  width: auto;
  min-width: 0;
  max-width: 100%;
}
.answer-suggestions button {
  background: var(--surface-secondary);
  border: 1px solid var(--border-control);
  min-height: 34px;
  font-size: 11px;
  border-radius: 20px;
  padding: 7px 13px;
}
.answer-suggestions button:hover {
  background: var(--surface-secondary);
  border-color: var(--border-control);
}
.chat-complete {
  border: 1px solid var(--border-divider);
  background: var(--surface-success);
  border-radius: 14px;
  padding: 22px;
}
.chat-complete h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 10px 0;
}
.chat-complete p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.8;
}
.chat-complete button {
  font-size: 12px;
}
.chat-error {
  padding: 12px 22px;
  background: var(--surface-error);
  border-top: 1px solid var(--text-error);
  font-size: 12px;
  color: var(--text-error);
}
.chat-error p {
  margin: 0 0 8px;
}
.chat-error button {
  font-size: 11px;
  min-height: 30px;
}
.chat-thinking {
  font-size: 12px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.thinking-dots {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-accent);
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
  margin-right: 20px;
  animation: thinking 1.2s infinite;
}
.detail-rail {
  min-width: 0;
}
.detail-rail .card {
  padding: 22px;
  margin-bottom: 16px;
}
.detail-rail .card-heading {
  margin-bottom: 18px;
}
.detail-rail h2 {
  font-size: 17px;
}
.detail-rail .card-heading p {
  font-size: 11px;
  line-height: 1.6;
}
.draft-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--text-muted);
}
.draft-progress .eyebrow {
  margin: 0;
  font-size: 9px;
}
.live-details progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  accent-color: var(--text-accent);
  margin-bottom: 18px;
  background: var(--surface-secondary);
}
.live-details progress::-webkit-progress-bar {
  background: var(--surface-secondary);
}
.live-details progress::-webkit-progress-value {
  background: var(--text-accent);
  transition: width 0.3s;
}
.live-details .answer-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.live-details .answer-grid > div {
  padding: 11px 60px 11px 10px;
  position: relative;
  border-bottom-color: var(--border-divider);
  border-left: 2px solid transparent;
}
.live-details .answer-grid dt {
  font-size: 10px;
  margin-bottom: 4px;
}
.live-details .answer-grid dd {
  font-size: 12px;
  line-height: 1.6;
}
.live-details .answer-grid .active-field {
  border-left-color: var(--text-accent);
  background: var(--surface-secondary);
}
.live-details .answer-grid .recently-saved {
  animation: saved-flash 1.5s ease-out;
}
.live-details .empty-field {
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
}
.discuss-field {
  position: absolute;
  right: 0;
  top: 12px;
  padding: 4px 5px;
  min-height: 30px;
  font-size: 9px;
  color: var(--text-accent);
  background: transparent;
  border-color: transparent;
}
.live-details > .actions {
  margin-top: 15px;
  gap: 8px;
}
.live-details > .actions button {
  font-size: 11px;
  min-height: 35px;
  padding: 8px 11px;
}
.live-details > .save-state {
  display: block;
  margin: 12px 0 0;
  font-size: 10px;
  color: var(--text-body);
}
.detail-editor {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 20px;
}
.detail-editor label {
  font-size: 11px;
}
.detail-editor textarea {
  min-height: 72px;
  font-size: 12px;
}
.detail-editor select,
.detail-editor input {
  font-size: 12px;
}
.detail-editor .field {
  margin-bottom: 18px;
}
.detail-editor .field small {
  font-size: 10px;
}
.submit-card {
  background: var(--surface-secondary);
}
.submit-card .primary {
  width: 100%;
  margin-top: 4px;
}
.submit-card p {
  font-size: 12px;
  line-height: 1.8;
}
.submit-card small {
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}
#supporting-documents .upload-box {
  padding: 14px;
  margin-top: 14px;
}
#supporting-documents .upload-box input {
  background: transparent;
  color: var(--text-body);
  font-size: 10px;
}
#supporting-documents .upload-box button {
  font-size: 11px;
}
#supporting-documents h2 {
  font-size: 16px;
}
dialog {
  background: var(--surface-reading);
  box-shadow: 0 18px 38px rgba(11, 19, 43, 0.07);
}
dialog .answer-grid {
  margin: 22px 0;
  grid-template-columns: 1fr;
  gap: 12px;
}
dialog .answer-grid dd {
  font-size: 13px;
}
.fixture-bar {
  color: var(--text-body);
}
@keyframes thinking {
  50% {
    opacity: 0.4;
  }
}
@keyframes message-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes saved-flash {
  from {
    background: #7fe3d328;
  }
  to {
    background: transparent;
  }
}
@keyframes toast-away {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@media (min-width: 1600px) {
  .capture-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  main {
    max-width: 1580px;
  }
}
@media (max-width: 1200px) {
  .capture-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
  }
  main {
    padding: 24px;
  }
  .detail-rail .card {
    padding: 18px;
  }
  .conversation-header {
    padding: 20px 18px;
  }
  .conversation-header h2 {
    font-size: 18px;
  }
  .assistant-status {
    display: none;
  }
  .request-header {
    display: block;
  }
  .request-header .steps {
    width: 100%;
    margin-top: 15px;
    max-width: none;
  }
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .navigation {
    padding: 24px 12px;
  }
  .brand {
    font-size: 19px;
    gap: 7px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 8px;
  }
  .capture-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
  }
  main {
    padding: 18px;
  }
  .chat-log {
    padding: 20px 18px;
  }
  .chat-composer {
    padding: 14px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .navigation {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }
  .nav-section,
  .nav-bottom {
    display: none;
  }
  .navigation nav {
    display: flex;
  }
  .nav-link {
    font-size: 11px;
    width: auto;
  }
  .nav-link span {
    display: none;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .topbar {
    min-height: 56px;
    padding: 12px 20px;
  }
  .identity-bar {
    padding: 10px 20px;
  }
  .conversation-panel {
    height: 650px;
  }
  .capture-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .request-header {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .capture-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .conversation-panel {
    position: static;
    width: 100%;
    height: 610px;
    max-height: 85dvh;
    min-height: 440px;
  }
  .detail-rail {
    width: 100%;
  }
  .request-header .reference {
    font-size: 9px;
  }
  .request-header .case-title {
    font-size: 18px;
  }
  .request-open main {
    padding: 14px 12px;
  }
  .topbar-title {
    font-size: 10px;
  }
  .identity-bar {
    padding: 10px 14px;
  }
  #tenant-controls {
    gap: 6px;
  }
  #tenant-controls select {
    max-width: 150px;
  }
  .conversation-header h2 {
    font-size: 19px;
  }
  .chat-log {
    padding: 20px;
  }
  .chat-bubble {
    max-width: 95%;
  }
  .chat-bubble p {
    font-size: 13px;
  }
  .chat-bubble.question p {
    font-size: 19px;
  }
  .welcome {
    padding: 44px 22px;
  }
  .welcome h2 {
    font-size: 35px;
  }
  .request-header .steps li {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .actions {
    flex-direction: column;
  }
  footer {
    padding: 20px 16px;
  }
  .navigation {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #111;
  }
  .packet,
  .packet * {
    background: #fff;
    color: #111;
  }
}

/* Navaura Balanced light. The conversation is the intentional navy surface. */
:root {
  color-scheme: light;
  --surface-canvas: #f7f9fc;
  --surface-reading: #ffffff;
  --surface-secondary: #eef3f9;
  --text-heading: #0b132b;
  --text-body: #4b5c73;
  --text-muted: #52627a;
  --text-accent: #2563eb;
  --border-divider: #dce3ef;
  --border-control: #7b8ba2;
  --text-error: #b42318;
  --text-success: #0f766e;
  --text-warning: #805b16;
  --surface-error: #fff1f0;
  --surface-success: #eef8f5;
  --surface-warning: #fff8e9;
  --focus: #2563eb;
}
.conversation-panel {
  color-scheme: dark;
  --surface-reading: #0b132b;
  --surface-secondary: #152139;
  --text-heading: #f7f9fc;
  --text-body: #c4cfdf;
  --text-muted: #bbc9dc;
  --text-accent: #7fe3d3;
  --text-success: #7fe3d3;
  --text-error: #fca5a5;
  --surface-error: #3c2934;
  --surface-success: #173932;
  --border-divider: #35425d;
  --focus: #7fe3d3;
  /* Resolve legacy aliases here as custom properties inherit computed values. */
  --ink: var(--text-heading);
  --muted: var(--text-muted);
  --line: var(--border-divider);
  color: var(--text-heading);
  background: #0b132b;
}

a {
  color: var(--text-accent);
}
.navigation,
.topbar,
.identity-bar,
.stats,
.table-wrap,
dialog {
  background: var(--surface-reading);
}
.brand {
  color: var(--text-heading);
}
.nav-link.active,
.nav-link:hover {
  background: var(--surface-secondary);
  color: var(--text-accent);
}
.primary,
.primary:hover {
  background: var(--gradient);
  color: #fff;
  min-height: 48px;
  border-color: transparent;
}
input,
select,
textarea,
button,
.button {
  min-height: 44px;
}
input[type="radio"],
input[type="checkbox"] {
  min-height: auto;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.conversation-header,
.chat-composer {
  background: #0b132b;
}
.chat-bubble.user {
  background: var(--surface-secondary);
  border-color: var(--border-divider);
}
.composer-input:focus-within {
  border-color: var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.live-details progress {
  accent-color: var(--text-accent);
}
.live-details progress::-webkit-progress-value {
  background: var(--text-accent);
}
@media (max-width: 650px) {
  .navigation nav {
    flex-wrap: wrap;
  }
  .topbar {
    gap: 12px;
  }
  .topbar > div {
    min-width: 0;
  }
  footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (forced-colors: active) {
  button,
  .button {
    border: 1px solid ButtonText !important;
  }
  :focus-visible {
    outline: 3px solid Highlight !important;
  }
}
@media print {
  .packet,
  .packet * {
    background: #fff;
    color: #111;
  }
}

/* Headings retain navy on reading surfaces and light text in the conversation. */
h1,
h2,
h3,
h4,
.case-title {
  color: var(--text-heading);
}

/* Application workspace: the editable request leads, Nia stays within reach. */
.workspace-home {
  color: var(--text-accent);
  font-size: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.conversation-header {
  padding: 16px;
}
.conversation-header h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.assistant-avatar {
  width: 32px;
  height: 32px;
}
.assistant-status::before {
  background: var(--text-accent);
}
.chat-log {
  padding: 20px 16px;
}
.chat-bubble {
  max-width: 100%;
  margin-bottom: 18px;
}
.chat-bubble p,
.chat-bubble.question p {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: normal;
}
.chat-bubble.assistant {
  background: var(--surface-secondary);
  border-radius: 3px 14px 14px;
  padding: 12px;
}
.chat-bubble.user {
  background: #eef2ff;
}
.chat-composer {
  padding: 12px;
}
.chat-footnote {
  font-size: 10px;
}
.live-details .answer-grid dt {
  font-size: 12px;
}
.live-details .answer-grid dd {
  font-size: 15px;
  line-height: 1.6;
}
.live-details .answer-grid > div {
  padding-top: 16px;
  padding-bottom: 16px;
}
.detail-rail h2 {
  font-size: 20px;
}
.detail-rail .card-heading p {
  font-size: 13px;
}
.detail-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.detail-editor .field {
  margin: 0;
  min-width: 0;
}
.detail-editor .field:has(textarea),
.detail-editor > .actions {
  grid-column: 1 / -1;
}
.detail-editor textarea {
  min-height: 100px;
}
.detail-editor .field small {
  font-size: 11px;
}
.file-check-status {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.attachment-row {
  align-items: start;
  flex-wrap: wrap;
}
.file-body {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
@media (min-width: 1001px) {
  .app-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .navigation {
    padding: 22px 14px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .topbar {
    min-height: 54px;
    padding: 8px 24px;
  }
  .identity-bar {
    padding: 8px 24px;
  }
  main {
    padding: 22px 24px;
    width: 100%;
    max-width: 1720px;
  }
}
@media (max-width: 760px) {
  .conversation-panel {
    order: -1;
    height: 460px;
    min-height: 380px;
  }
  .detail-editor {
    grid-template-columns: 1fr;
  }
}
.chat-bubble.user p,
.chat-bubble.user .bubble-author {
  color: #243657;
}
@media (min-width: 1001px) and (min-height: 700px) {
  .request-open .page-heading {
    position: absolute;
    right: 24px;
  }
  .request-open .back-link {
    min-height: 36px;
  }
  .request-header {
    padding: 16px 22px;
  }
  .capture-layout {
    height: calc(100dvh - 320px);
    min-height: 380px;
  }
  .detail-rail {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }
  .conversation-panel {
    position: static;
    height: 100%;
    min-height: 0;
  }
  .request-open footer {
    display: none;
  }
}

/* Claims shares the Balanced Light workspace and its responsive layout. */
.claim-section-heading {
  grid-column: 1 / -1;
  margin: 22px 0 4px;
  color: var(--text-heading);
}
.claim-items {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-divider);
}
.claim-items details {
  margin: 12px 0;
  padding: 14px;
  background: var(--surface-secondary);
  border-radius: 10px;
}
.claim-items summary {
  cursor: pointer;
  font-weight: 600;
}
.claim-item-editor,
.claims-configuration-fields {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.claims-configuration-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.claims-configuration-fields input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
@media (max-width: 700px) {
  .claims-configuration-fields {
    grid-template-columns: 1fr;
  }
}

/* Optional voice mode uses the same conversation panel and saved intake. */
.voice-controls {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--border-divider);
  border-radius: 12px;
  background: var(--surface-secondary);
}
.conversation-panel:has(.voice-controls) {
  height: auto;
  max-height: none;
  min-height: 600px;
}
.conversation-panel:has(.voice-controls) .chat-log {
  flex: 0 0 auto;
  height: clamp(160px, 25dvh, 260px);
}
.voice-controls,
.conversation-panel:has(.voice-controls) .chat-composer {
  flex-shrink: 0;
}
.voice-controls .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.voice-controls button {
  min-height: 40px;
}
.voice-controls [role="status"] {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-accent);
}
.voice-disclosure {
  margin: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.voice-caption {
  margin: 8px 0 0;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.5;
  max-height: 90px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.voice-caption:empty {
  display: none;
}
.voice-caption[aria-label="Your live speech"]::before {
  content: "You: ";
  font-weight: 600;
}
.voice-caption[aria-label="Nia’s live speech"]::before {
  content: "Nia: ";
  font-weight: 600;
}
.communication-settings {
  margin-bottom: 20px;
}
.communication-settings select {
  width: 100%;
  max-width: 480px;
  margin: 8px 0;
}
