/* UniWise interactive demo.
   One design system for both products: tokens, shared components, then each product.
   Breakpoints: compact <= 1279px, mobile <= 899px. Nothing else. */

:root {
  /* Brand (from the real ContraSight theme) */
  --uw-blue: #082864;
  --uw-blue-hover: #0d3a8a;
  --uw-cloud: #729beb;
  --uw-border: #a6c0f2;
  --uw-light: #ccdaff;
  --uw-tint: #edf3ff;
  --uw-insight: #003fea;
  --uw-medium: #3d6ff5;
  --uw-red: #e20000;
  --uw-orange: #fe7d05;
  --uw-green: #027e2d;
  --uw-grad: linear-gradient(180deg, #edf3ff 0%, #f1f2f6 16.67%, #fff 66.67%, #e7ecf9 100%);

  /* Text, lines, surfaces */
  --ink: var(--uw-blue);
  --ink-2: #3a4d78;
  --ink-3: #5b6e95;
  --line: #e1e8f8;
  --line-strong: #cbd8f5;
  --surface: #fff;
  --surface-2: #f6f8fe;
  --surface-3: #edf1fb;
  --accent: var(--uw-insight);
  --btn-primary: var(--uw-blue);
  --btn-primary-hover: var(--uw-blue-hover);
  --th-bg: #eef3ff;
  --th-ink: var(--ink-2);

  /* Status colors: text, fill, border */
  --crit: #b00020;
  --crit-bg: #fff0ef;
  --crit-line: #ffc9c5;
  --major: #a64b00;
  --major-bg: #fff3e3;
  --major-line: #ffd5a5;
  --minor: #3a4d78;
  --minor-bg: #eef2fb;
  --minor-line: #d3dcf2;
  --ok: #08702f;
  --ok-bg: #e8f8ee;
  --ok-line: #b7e5c8;
  --warn: #7a4a00;
  --warn-bg: #fff6df;
  --warn-line: #ffe0a0;
  --info: #1741b8;
  --info-bg: #eaf0ff;
  --info-line: #c5d6ff;
  --ai: #5a3de0;
  --ai-bg: #f1edff;
  --ai-line: #d8cffd;
  --neutral: #3a4d78;
  --neutral-bg: #eef1f8;
  --neutral-line: #d7deef;

  /* Call center palette */
  --cc-bg: #dce2f9;
  --cc-bg-top: #e4e9fb;
  --cc-primary: #475d91;
  --cc-primary-hover: #3a4f80;
  --cc-head: #d9e2ff;
  --cc-head-text: #2e4578;
  --cc-text: #1d1b20;
  --cc-text-2: #44464f;
  --cc-divider: #c5c6d0;

  /* Type scale */
  --font: 'BR Sonoma', 'Figtree', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(8, 40, 100, 0.06), 0 1px 1px rgba(8, 40, 100, 0.04);
  --sh-2: 0 4px 14px rgba(8, 40, 100, 0.08), 0 1px 3px rgba(8, 40, 100, 0.06);
  --sh-3: 0 24px 64px rgba(8, 40, 100, 0.28), 0 4px 12px rgba(8, 40, 100, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.12s;
  --t: 0.2s;
  --t-slow: 0.3s;

  /* Layers */
  --z-toast: 3000;
  --z-dialog: 3500;
  --z-tour: 4000;
  --z-skip: 5000;

  /* Layout */
  --top-h: 64px;
  --rail-w: 88px;
  --gutter: 32px;
}

@media (max-width: 1279px) {
  :root {
    --rail-w: 76px;
    --gutter: 24px;
  }
}
@media (max-width: 899px) {
  :root {
    --top-h: 56px;
    --gutter: 12px;
  }
}

/* The call center keeps its lavender palette. */
.uw-shell[data-product='call'] {
  --accent: var(--cc-primary);
  --btn-primary: var(--cc-primary);
  --btn-primary-hover: var(--cc-primary-hover);
  --th-bg: var(--cc-head);
  --th-ink: var(--cc-head-text);
  --ink: var(--cc-text);
  --ink-2: var(--cc-text-2);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--uw-blue);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
::selection {
  background: rgba(61, 111, 245, 0.22);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.uw-skip {
  position: fixed;
  left: var(--s3);
  top: -60px;
  z-index: var(--z-skip);
  background: var(--uw-blue);
  color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  transition: top var(--t);
}
.uw-skip:focus {
  top: var(--s3);
}
.uw-muted {
  color: var(--ink-3);
}
.uw-dim {
  color: var(--ink-3);
}
.uw-mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Icons (Material Symbols). Hidden until the font loads so ligature names never flash. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  width: 1em;
  overflow: hidden;
  flex: none;
  user-select: none;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
html:not(.icons-ready) .material-symbols-outlined {
  color: transparent !important;
}
.spin {
  animation: uw-spin 1s linear infinite;
}
@keyframes uw-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes uw-pulse {
  50% {
    transform: scale(1.35);
    opacity: 0.7;
  }
}

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

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.uw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.uw-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.uw-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.uw-btn-primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--sh-1);
}
.uw-btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  box-shadow: var(--sh-2);
}
.uw-btn-outline {
  background: var(--surface);
  border-color: var(--uw-cloud);
}
.uw-btn-outline:hover:not(:disabled) {
  background: var(--uw-tint);
  border-color: var(--uw-medium);
}
.uw-btn-text {
  padding: 0 var(--s4);
}
.uw-btn-text:hover:not(:disabled) {
  background: rgba(8, 40, 100, 0.07);
}
.uw-btn-tonal {
  background: var(--surface-3);
  color: var(--cc-head-text);
}
.uw-btn-tonal:hover:not(:disabled) {
  background: var(--cc-head);
}
.uw-btn-danger {
  background: #8c1d18;
  color: #fff;
}
.uw-btn-danger:hover:not(:disabled) {
  background: #a8231d;
}
.uw-btn-sm {
  min-height: 36px;
  padding: 0 var(--s4);
}
.uw-btn-lg {
  min-height: 48px;
  padding: 0 var(--s6);
  font-size: var(--fs-md);
}

.uw-icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: inherit;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.uw-icon-btn:hover:not(:disabled) {
  background: rgba(8, 40, 100, 0.08);
}
.uw-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.uw-icon-btn-outline {
  background: var(--surface);
  border-color: var(--uw-cloud);
}
.uw-icon-btn-filled {
  background: var(--btn-primary);
  color: #fff;
}
.uw-icon-btn-filled:hover:not(:disabled) {
  background: var(--btn-primary-hover);
}
.uw-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.uw-link:hover {
  text-decoration: underline;
}
.uw-link .material-symbols-outlined {
  font-size: 18px;
}

/* ------------------------------------------------------------------ */
/* Form controls                                                       */
/* ------------------------------------------------------------------ */

.uw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.uw-field input,
.uw-field select,
.uw-field textarea,
.cs-decision textarea,
.cc-note-compose textarea {
  width: 100%;
  padding: 10px var(--s3);
  border: 1px solid var(--uw-border);
  border-radius: var(--r-md);
  background-color: var(--surface);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.4;
}
.uw-field textarea {
  resize: vertical;
}
.uw-field input:focus,
.uw-field select:focus,
.uw-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.uw-field-row {
  display: flex;
  gap: var(--s3);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6e95' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  padding-right: 34px !important;
  cursor: pointer;
}
.uw-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding-left: var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
}
.uw-select select {
  min-width: 0;
  max-width: 220px;
  padding: 8px 0;
  border: 0;
  background-color: transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
}
.uw-select:focus-within {
  outline: 2px solid var(--accent);
}
.uw-select select:focus-visible {
  outline: none;
}
.uw-select-lg select {
  max-width: 280px;
  font-size: var(--fs-lg);
}
.uw-select-line {
  display: flex;
  border: 0;
  border-bottom: 1px solid var(--cc-divider);
  border-radius: 0;
  padding-left: 0;
}
.uw-select-line select {
  max-width: none;
  width: 100%;
}
.uw-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-3);
}
.uw-search:focus-within {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.uw-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: var(--fs-sm);
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Badges, chips, counts                                               */
/* ------------------------------------------------------------------ */

.uw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--neutral);
  background: var(--neutral-bg);
}
.uw-badge .material-symbols-outlined {
  font-size: 14px;
}
.uw-badge-xs {
  padding: 1px 8px;
}
.uw-badge-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.uw-badge.is-live::before {
  animation: uw-pulse 1.4s ease-in-out infinite;
}
.tone-info {
  color: var(--info);
  background: var(--info-bg);
}
.tone-success {
  color: var(--ok);
  background: var(--ok-bg);
}
.tone-warning {
  color: var(--warn);
  background: var(--warn-bg);
}
.tone-danger {
  color: var(--crit);
  background: var(--crit-bg);
}
.tone-neutral {
  color: var(--neutral);
  background: var(--neutral-bg);
}
.tone-ai {
  color: var(--ai);
  background: var(--ai-bg);
}
.uw-badge-outline {
  background: var(--surface);
}
.uw-badge-outline.tone-info {
  border-color: var(--info-line);
}
.uw-badge-outline.tone-success {
  border-color: var(--ok-line);
}
.uw-badge-outline.tone-danger {
  border-color: var(--crit-line);
}
.uw-badge-outline.tone-warning {
  border-color: var(--warn-line);
}
.sev-critical {
  color: var(--crit);
}
.sev-major {
  color: var(--major);
}
.sev-minor {
  color: var(--minor);
}
.dec-confirm {
  color: var(--ok);
}
.dec-dismiss {
  color: var(--neutral);
}
.dec-review {
  color: var(--major);
}
.uw-badge.sev-critical {
  background: var(--crit-bg);
  border-color: var(--crit-line);
}
.uw-badge.sev-major {
  background: var(--major-bg);
  border-color: var(--major-line);
}
.uw-badge.sev-minor {
  background: var(--minor-bg);
  border-color: var(--minor-line);
}
.uw-badge.dec-confirm {
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
.uw-badge.dec-dismiss {
  background: var(--neutral-bg);
  border-color: var(--neutral-line);
}
.uw-badge.dec-review {
  background: var(--major-bg);
  border-color: var(--major-line);
}
.uw-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--uw-light);
  color: var(--uw-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.uw-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 10px 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  transition: background var(--t), border-color var(--t);
}
.uw-chip-btn:hover {
  background: var(--surface-3);
  border-color: var(--uw-cloud);
}
.uw-chip-btn .material-symbols-outlined {
  font-size: 16px;
}
.uw-chip-btn.tone-ai {
  border-color: var(--ai-line);
  background: var(--ai-bg);
  color: var(--ai);
}
.uw-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-3);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.uw-avatar.role-c {
  background: #5b6ea6;
}
.uw-avatar.role-n {
  background: #1f8a70;
}

/* ------------------------------------------------------------------ */
/* Cards, stats, banners, hints, empty states                          */
/* ------------------------------------------------------------------ */

.uw-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.uw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.uw-stat {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--uw-grad);
}
.uw-stat-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.uw-stat b {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.uw-stat > div > span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.uw-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.uw-hint .material-symbols-outlined {
  color: var(--accent);
}
.uw-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
}
.uw-banner p {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.uw-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--uw-light);
  border-radius: var(--r-md);
  background: var(--uw-tint);
  font-size: var(--fs-sm);
}
.uw-alert .material-symbols-outlined {
  color: var(--uw-insight);
}
.uw-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s7) var(--s4);
  text-align: center;
}
.uw-empty h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
}
.uw-empty p {
  max-width: 44ch;
  color: var(--ink-2);
}
.uw-empty .uw-btn {
  margin-top: var(--s3);
}
.uw-empty-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s2);
  border-radius: 50%;
  background: var(--crit-bg);
  color: var(--crit);
}
.uw-empty-ic .material-symbols-outlined {
  font-size: 28px;
}
.uw-empty-inline {
  padding: var(--s7) var(--s4) var(--s6);
}

/* Progress bar */
.uw-progress {
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--uw-light);
}
.uw-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}

/* Tabs and segmented control */
.uw-tabs {
  display: flex;
  gap: var(--s1);
  border-bottom: 1px solid var(--cc-divider);
}
.uw-tabs button {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: -1px;
  padding: var(--s3) var(--s4);
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--t), color var(--t);
}
.uw-tabs button:hover {
  background: rgba(71, 93, 145, 0.06);
}
.uw-tabs button.on {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.uw-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}
.uw-segmented button {
  min-height: 32px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.uw-segmented button:hover:not(.on) {
  background: rgba(8, 40, 100, 0.06);
}
.uw-segmented button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
}

/* Tables */
.uw-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.uw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.uw-table th {
  padding: var(--s3) var(--s4);
  background: var(--th-bg);
  color: var(--th-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.uw-table td {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.uw-table tbody tr {
  transition: background var(--t-fast);
}
.uw-table tbody tr.is-link,
.uw-table tbody tr.cs-row {
  cursor: pointer;
}
.uw-table tbody tr.is-link:hover,
.uw-table tbody tr.cs-row:hover {
  background: var(--surface-2);
}
.uw-table tbody tr.is-locked {
  background: repeating-linear-gradient(135deg, #f6f6f8, #f6f6f8 8px, #efeff3 8px, #efeff3 16px);
  color: var(--ink-3);
  cursor: not-allowed;
}
.uw-th-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.uw-th-btn:hover {
  color: var(--ink);
}
.th-arrow {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
.th-arrow .material-symbols-outlined {
  font-size: 16px;
}
.uw-table-foot {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.uw-table-empty {
  padding: var(--s6) var(--s4) !important;
  color: var(--ink-3);
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Shell: top bar, product rail, main area                             */
/* ------------------------------------------------------------------ */

.uw-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
}
.uw-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--s3);
  min-height: var(--top-h);
  padding: 0 var(--gutter);
}
.uw-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--s3);
  color: var(--uw-blue);
  text-decoration: none;
}
.uw-brand img {
  display: block;
  width: auto;
  height: 40px;
}
.uw-product {
  font-size: var(--fs-lg);
  font-weight: 600;
  white-space: nowrap;
}
.uw-demo-badge {
  flex: none;
  padding: 2px 10px;
  border: 1px solid var(--uw-light);
  border-radius: var(--r-pill);
  background: var(--uw-tint);
  color: var(--uw-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.uw-title {
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uw-top-right {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}
.uw-slot {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.uw-avatar-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--uw-blue);
}
.uw-avatar-btn .material-symbols-outlined {
  font-size: 32px;
}

.uw-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.uw-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  width: var(--rail-w);
  margin: 0 0 var(--s4) var(--s5);
  padding: var(--s5) var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--uw-grad);
  box-shadow: var(--sh-1);
}
.uw-rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: var(--uw-blue);
  text-decoration: none;
}
.uw-rail-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 40, 100, 0.08);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.uw-rail-link:hover .uw-rail-ic {
  background: rgba(8, 40, 100, 0.15);
}
.uw-rail-link.on .uw-rail-ic {
  background: var(--uw-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 40, 100, 0.28);
}
.uw-rail-link.on .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.uw-rail-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.uw-rail-link.on .uw-rail-label {
  font-weight: 700;
}
.uw-rail-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--uw-red);
  animation: uw-pulse 1.4s ease-in-out infinite;
}
.uw-rail-foot {
  margin-top: auto;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.uw-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0 var(--gutter) var(--s4);
  overflow: auto;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: #d5d2d2 transparent;
}
.uw-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  animation: uw-view-in var(--t-slow) var(--ease);
}
@keyframes uw-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------------------ */
/* Toasts                                                              */
/* ------------------------------------------------------------------ */

.uw-toasts {
  position: fixed;
  bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  left: 50%;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  pointer-events: none;
}
.uw-toast {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-md);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.uw-toast.in {
  opacity: 1;
  transform: none;
}
.uw-toast-info {
  border-color: var(--info-line);
  background: var(--info-bg);
  color: var(--info);
}
.uw-toast-warning {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}
.uw-toast-error {
  border-color: var(--crit-line);
  background: var(--crit-bg);
  color: var(--crit);
}

/* ------------------------------------------------------------------ */
/* Dialogs                                                             */
/* ------------------------------------------------------------------ */

.uw-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  display: grid;
  place-items: center;
  padding: var(--s4);
  background: rgba(8, 40, 100, 0.36);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t);
}
.uw-dialog-backdrop.in {
  opacity: 1;
}
.uw-dialog {
  width: min(540px, 100%);
  max-height: calc(100dvh - 32px);
  padding: var(--s5) var(--s5) var(--s4);
  overflow: auto;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--uw-blue);
  box-shadow: var(--sh-3);
  outline: none;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--t) var(--ease);
}
.uw-dialog-backdrop.in .uw-dialog {
  transform: none;
}
.uw-dialog-title {
  margin-bottom: var(--s2);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.uw-dialog-body {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.uw-dialog-note {
  color: var(--ink-2);
}
.uw-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s2);
  margin-top: var(--s5);
}

/* Intro */
.uw-intro {
  width: min(760px, 100%);
}
.uw-eyebrow {
  margin-bottom: 6px;
  color: var(--uw-insight);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.uw-intro-head p:last-child {
  margin-top: var(--s2);
  color: var(--ink-2);
}
.uw-intro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s5);
}
.uw-intro-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--uw-light);
  border-radius: var(--r-lg);
  background: var(--uw-grad);
  text-align: left;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.uw-intro-card:hover {
  border-color: var(--uw-cloud);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.uw-intro-card b {
  font-size: var(--fs-lg);
  font-weight: 600;
}
.uw-intro-card > span:not(.uw-intro-ic) {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.uw-intro-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s2);
  color: var(--uw-insight);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
}
.uw-intro-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--uw-blue);
  color: #fff;
}
.uw-intro-actions {
  justify-content: space-between;
}
.uw-intro-note {
  margin-top: var(--s3);
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

/* ------------------------------------------------------------------ */
/* Guided tour                                                         */
/* ------------------------------------------------------------------ */

.uw-tour {
  position: fixed;
  inset: 0;
  z-index: var(--z-tour);
}
.uw-tour.no-target {
  background: rgba(8, 40, 100, 0.55);
}
.uw-tour-spot {
  position: fixed;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 9999px rgba(8, 40, 100, 0.55), 0 0 0 3px #fff inset;
  pointer-events: none;
  transition: left var(--t-slow), top var(--t-slow), width var(--t-slow), height var(--t-slow);
}
.uw-tour-card {
  position: fixed;
  width: 360px;
  max-width: calc(100vw - 24px);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--uw-blue);
  box-shadow: var(--sh-3);
  outline: none;
  transition: left var(--t-slow), top var(--t-slow);
}
.uw-tour-card.center {
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
}
.uw-tour-step {
  margin-bottom: var(--s1);
  color: var(--uw-insight);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.uw-tour-card h2 {
  margin-bottom: 6px;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.uw-tour-body {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.uw-tour-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
}
.uw-tour-gap {
  flex: 1;
}

/* =================================================================== */
/* ContraSight                                                          */
/* =================================================================== */

/* ---------- home ---------- */

.cs-home {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--s3);
}
.cs-welcome h1 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cs-welcome p {
  margin-top: var(--s1);
  color: var(--ink-2);
}
.cs-recents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: calc(var(--s2) * -1);
}
.cs-recents-head h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
}
.cs-id {
  color: var(--uw-insight);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.cs-id:hover {
  text-decoration: underline;
}
.cs-sub {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cs-cell-user {
  color: var(--ink-2);
}
.cs-cell-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- upload ---------- */

.cs-upload {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-top: var(--s3);
}
.cs-upload h1 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cs-steps {
  display: flex;
  align-items: flex-start;
}
.cs-steps li {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}
.cs-steps li + li::before {
  content: '';
  position: absolute;
  top: 19px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}
.cs-steps li.on + li::before {
  background: var(--line-strong);
}
.cs-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}
.cs-steps li.on {
  color: var(--ink);
}
.cs-steps li.on .cs-step-dot {
  border-color: var(--uw-blue);
  background: var(--uw-blue);
  color: #fff;
}
.cs-step-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}
.cs-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s6) var(--s5);
  border: 2px dashed var(--uw-border);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  text-align: center;
  transition: background var(--t), border-color var(--t);
}
.cs-drop.drag {
  border-color: var(--uw-insight);
  background: var(--uw-tint);
}
.cs-drop-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s1);
  border-radius: 50%;
  background: var(--uw-light);
  color: var(--uw-blue);
}
.cs-drop-icon .material-symbols-outlined {
  font-size: 32px;
}
.cs-drop-big {
  font-size: var(--fs-lg);
  font-weight: 600;
}
.cs-drop-or,
.cs-drop-small {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.cs-drop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}
.cs-batch {
  padding: var(--s4) var(--s5) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.cs-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}
.cs-batch-head b {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 600;
}
.cs-batch-head span {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.cs-files {
  display: flex;
  flex-direction: column;
  margin-top: var(--s3);
}
.cs-file {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.cs-file-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--uw-tint);
  color: var(--uw-insight);
}
.cs-file-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-file-body b {
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-file-body > span {
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cs-file-body .uw-progress {
  margin-top: var(--s1);
}
.cs-disclaimer {
  padding: var(--s3) var(--s4);
  border: 1px solid var(--warn-line);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: var(--fs-sm);
}
.cs-disclaimer b {
  display: block;
  margin-bottom: 2px;
}
.cs-parse-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  display: grid;
  place-items: center;
  padding: var(--s4);
  background: rgba(237, 243, 255, 0.86);
  backdrop-filter: blur(6px);
}
.cs-parse-card {
  width: min(460px, 100%);
  padding: var(--s6) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.cs-parse-card h2 {
  margin-top: var(--s4);
  font-size: var(--fs-xl);
  font-weight: 600;
  text-align: center;
}
.cs-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 4px solid var(--uw-light);
  border-top-color: var(--uw-blue);
  border-radius: 50%;
  animation: uw-spin 0.9s linear infinite;
}
.cs-parse-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
}
.cs-parse-steps li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  animation: uw-view-in var(--t) var(--ease);
}
.cs-parse-steps li span {
  flex: 1;
}
.cs-parse-steps li em {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-style: normal;
}
.cs-parse-steps li.done {
  color: var(--ink);
}
.cs-parse-steps li.done .material-symbols-outlined {
  color: var(--ok);
}

/* ---------- review: layout ---------- */

.cs-review-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.cs-segmented {
  display: none;
}
.cs-split {
  display: flex;
  flex: 1;
  min-height: 520px;
}
.cs-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transition: width var(--t-slow) var(--ease), margin var(--t-slow) var(--ease), opacity var(--t) var(--ease);
}
.cs-pane > * {
  flex: 1;
  min-width: 0;
}
.cs-pane-left {
  flex: none;
  width: clamp(280px, 26%, 340px);
  margin-right: var(--s4);
}
.cs-pane-mid {
  flex: 1;
}
.cs-pane-right {
  flex: none;
  width: 0;
  opacity: 0;
}
.cs-split[data-view='middle-right'] .cs-pane-left {
  width: 0;
  margin-right: 0;
  opacity: 0;
}
.cs-split[data-view='middle-right'] .cs-pane-mid {
  flex: none;
  width: clamp(340px, 34%, 460px);
}
.cs-split[data-view='middle-right'] .cs-pane-right {
  flex: 1;
  width: auto;
  margin-left: var(--s4);
  opacity: 1;
}
/* A fixed inner width keeps content from reflowing while a pane collapses. */
.cs-pane-left > .cs-card {
  min-width: 280px;
}
.cs-pane-right > .dv {
  min-width: 440px;
}
.cs-split[data-view='left-middle'] .cs-back {
  display: none;
}

/* ---------- review: checklist ---------- */

.cs-card {
  height: 100%;
  padding: var(--s5) var(--s4);
  overflow: auto;
  border-radius: var(--r-xl);
  scrollbar-width: thin;
}
.cs-card-title {
  margin-bottom: var(--s3);
  padding: 0 var(--s2);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 var(--s2) var(--s2);
}
.uw-filter {
  min-height: 32px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.uw-filter:hover:not(.on) {
  background: var(--surface-2);
  border-color: var(--uw-cloud);
}
.uw-filter b {
  margin-left: 4px;
  opacity: 0.7;
}
.uw-filter.on {
  border-color: var(--uw-blue);
  background: var(--uw-blue);
  color: #fff;
}
.cs-group {
  margin-top: var(--s4);
}
.cs-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s2) var(--s2);
}
.cs-group-head h3 {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  padding: var(--s2) var(--s3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  color: var(--ink);
  text-align: left;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cs-li:hover {
  background: var(--surface-2);
}
.cs-li.on {
  border-color: var(--uw-border);
  background: var(--uw-tint);
}
.cs-li-warn {
  font-size: 20px;
}
.cs-li[data-sev='critical'] .cs-li-warn {
  color: var(--crit);
}
.cs-li[data-sev='major'] .cs-li-warn {
  color: var(--major);
}
.cs-li[data-sev='minor'] .cs-li-warn {
  color: var(--minor);
}
.cs-li-name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
}
.cs-li.on .cs-li-name {
  font-weight: 700;
}
.cs-li-state {
  display: inline-grid;
  flex: none;
  color: var(--ink-3);
  opacity: 0.6;
}
.cs-li-state[class*='dec-'] {
  opacity: 1;
}

/* ---------- review: finding ---------- */

.cs-review {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.cs-review-scroll {
  flex: 1;
  min-height: 0;
  padding: var(--s5);
  overflow: auto;
  scrollbar-width: thin;
}
.cs-mid-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.cs-nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-left: auto;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.cs-nav span {
  margin-right: var(--s2);
  white-space: nowrap;
}
.cs-mid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}
.cs-mid-head h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cs-mid-head h2.is-long {
  font-size: var(--fs-xl);
}
.cs-h3 {
  margin: var(--s5) 0 var(--s2);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-reasons {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 68ch;
}
.cs-reasons li {
  position: relative;
  padding-left: var(--s4);
  color: var(--ink-2);
  line-height: 1.6;
}
.cs-reasons li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uw-cloud);
}
.cs-cites {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.cs-cite {
  display: block;
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.cs-cite:hover {
  border-color: var(--uw-cloud);
  background: var(--surface-2);
}
.cs-cite.on {
  border-color: var(--uw-medium);
  background: var(--uw-tint);
  box-shadow: 0 0 0 1px var(--uw-medium);
}
.cs-cite-src {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-sm);
}
.cs-cite-src .material-symbols-outlined {
  color: var(--uw-insight);
  font-size: 18px;
}
.cs-cite-src > span:last-child {
  margin-left: auto;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cs-cite-text {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ---------- review: decision footer ---------- */

.cs-decision {
  flex: none;
  padding: var(--s4) var(--s5) var(--s5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.cs-decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.cs-decision-head label {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.cs-decision-head label span {
  color: var(--ink-3);
  font-weight: 400;
}
.cs-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--s2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--uw-insight);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.cs-link:hover {
  background: var(--uw-tint);
}
.cs-decision textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 10px var(--s3);
  border: 1px solid var(--uw-border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.cs-decision textarea:focus {
  outline: 2px solid var(--uw-insight);
  outline-offset: 0;
  border-color: var(--uw-insight);
}
.cs-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--s2);
  margin-top: var(--s3);
}
.cs-decide {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1.5px solid currentColor;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.cs-decide:hover:not(:disabled) {
  box-shadow: var(--sh-2);
}
.cs-decide:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cs-decide.dec-confirm:hover:not(:disabled),
.cs-decide.dec-confirm.on {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.cs-decide.dec-dismiss:hover:not(:disabled),
.cs-decide.dec-dismiss.on {
  background: var(--neutral);
  border-color: var(--neutral);
  color: #fff;
}
.cs-decide.dec-review:hover:not(:disabled),
.cs-decide.dec-review.on {
  background: var(--major);
  border-color: var(--major);
  color: #fff;
}

/* ---------- top bar controls on the review ---------- */

.cs-progress {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.cs-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(var(--uw-insight) calc(var(--p) * 1%), var(--uw-light) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}
.cs-progress-done {
  color: var(--ok);
  font-size: 28px;
}

/* ---------- summary ---------- */

.cs-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-top: var(--s3);
}
.cs-summary > * {
  width: 100%;
}
.cs-summary > .uw-btn {
  width: auto;
}
.cs-sum-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s3) var(--s5);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.cs-sum-meta dt {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cs-sum-meta dd {
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cs-sum-h {
  margin-top: var(--s2);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}
.cs-stat {
  --tone: var(--neutral);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.cs-stat::before {
  content: '';
  display: block;
  width: 24px;
  height: 4px;
  margin-bottom: var(--s3);
  border-radius: 2px;
  background: var(--tone);
}
.cs-stat b {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
}
.cs-stat span {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.cs-stat.tone-confirm {
  --tone: var(--ok);
}
.cs-stat.tone-dismiss {
  --tone: var(--neutral);
}
.cs-stat.tone-flag {
  --tone: var(--major);
}
.cs-stat.tone-total {
  --tone: var(--uw-insight);
}
.cs-audit {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.cs-audit-item {
  color: var(--ink);
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--minor);
  border-radius: var(--r-md);
  background: var(--surface);
}
.cs-audit-item.sev-critical {
  border-left-color: var(--crit);
}
.cs-audit-item.sev-major {
  border-left-color: var(--major);
}
.cs-audit-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 0;
  background: none;
  text-align: left;
}
.cs-audit-head:hover {
  background: var(--surface-2);
}
.cs-audit-head > b {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.cs-audit-warn {
  font-size: 20px;
}
.cs-audit-item.sev-critical .cs-audit-warn {
  color: var(--crit);
}
.cs-audit-item.sev-major .cs-audit-warn {
  color: var(--major);
}
.cs-audit-item.sev-minor .cs-audit-warn {
  color: var(--minor);
}
.cs-audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-audit-chevron {
  color: var(--ink-3);
}
.cs-audit-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 0 var(--s4) var(--s4);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.cs-audit-body ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: var(--s4);
  list-style: disc;
}
.cs-audit-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--s2);
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cs-audit-by .material-symbols-outlined {
  font-size: 16px;
}
.cs-sum-foot {
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

/* =================================================================== */
/* Document viewer and EMR pages                                        */
/* =================================================================== */

.cs-pane-right .dv {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--uw-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
}
.dv-toolbar {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 12px 14px 6px;
  padding: 5px 12px 5px 20px;
  border: 1px solid var(--uw-cloud);
  border-radius: 100px;
}
.dv-name {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dv-pager,
.dv-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dv-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.dv-count input {
  width: 38px;
  text-align: center;
  border: 1px solid #c9d3ec;
  border-radius: 6px;
  padding: 3px 0;
  font-size: 14px;
}
.dv-btn {
  border: 0;
  background: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--uw-blue);
}
.dv-btn:hover {
  background: var(--uw-light);
}
.dv-ring {
  border: 1px solid var(--uw-cloud);
}
.dv-ann-toggle[aria-pressed='true'] {
  background: var(--uw-blue);
  color: #fff;
  border-color: var(--uw-blue);
}
.dv-docs {
  display: flex;
  gap: 6px;
  padding: 2px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dv-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 1px solid var(--uw-light);
  background: #fff;
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.dv-doc .material-symbols-outlined {
  font-size: 18px;
}
.dv-doc.on {
  background: var(--uw-light);
  border-color: var(--uw-cloud);
  font-weight: 700;
}
.dv-ann {
  margin: 0 14px 6px;
  padding: 8px 12px;
  border: 1px solid var(--uw-light);
  border-radius: 20px;
  background: #f7f9ff;
}
.dv-ann[hidden] {
  display: none;
}
.dv-ann-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dv-ann-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6e95;
}
.dv-ann-chips {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 5px;
  padding: 2px 6px 2px 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.dv-ann-chips::-webkit-scrollbar {
  display: none;
}
.dv-chip {
  flex: none;
}
.dv-ann-label {
  flex: none;
}
.dv-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--uw-medium);
  background: #fff;
  color: var(--uw-medium);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.dv-chip.k-excluded {
  border-color: #6b7488;
  color: #4d566b;
}
.dv-chip.k-info {
  border-color: #0b8f8f;
  color: #0b6f6f;
}
.dv-chip.on {
  color: #fff;
  background: var(--uw-medium);
}
.dv-chip.k-excluded.on {
  background: #6b7488;
}
.dv-chip.k-info.on {
  background: #0b8f8f;
}
.dv-ann-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #5b6e95;
}
.dv-callout {
  margin-top: 8px;
  border-left: 4px solid var(--uw-medium);
  background: #fff;
  border-radius: 6px 14px 14px 6px;
  padding: 10px 14px;
}
.dv-callout.k-excluded {
  border-left-color: #6b7488;
}
.dv-callout.k-info {
  border-left-color: #0b8f8f;
}
.dv-callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dv-callout-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--uw-medium);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.dv-callout.k-excluded .dv-callout-n {
  background: #6b7488;
}
.dv-callout.k-info .dv-callout-n {
  background: #0b8f8f;
}
.dv-callout-head b {
  font-size: 15px;
}
.dv-callout-kind {
  margin-left: auto;
  margin-right: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5b6e95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dv-callout p {
  margin: 4px 0 2px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1c2a4d;
}
.dv-x {
  border: 0;
  background: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5b6e95;
  margin-right: -6px;
}
.dv-x:hover {
  background: #e8eefc;
}
.dv-x .material-symbols-outlined {
  font-size: 18px;
}
.dv-callout-nav {
  display: flex;
  justify-content: space-between;
}
.dv-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--uw-insight);
  padding: 4px 2px;
}
.dv-link .material-symbols-outlined {
  font-size: 18px;
}
.dv-link:disabled {
  opacity: 0.35;
  cursor: default;
}
.dv-scroll {
  --z: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #e9edf6;
  padding: 6px 10px 16px;
  scrollbar-width: thin;
}
.dv-sheet {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.emr-page {
  width: calc(612px * var(--z));
  min-height: calc(792px * var(--z));
  flex: none;
  padding: calc(34px * var(--z)) calc(42px * var(--z)) calc(26px * var(--z));
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 40, 100, 0.2), 0 6px 18px rgba(8, 40, 100, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(11px * var(--z));
  line-height: 1.45;
  color: #1c1f26;
  display: flex;
  flex-direction: column;
}
.emr-page p {
  margin: 0 0 0.6em;
}
.emr-page ul,
.emr-page ol {
  margin: 0 0 0.7em;
  padding-left: 1.5em;
}
.emr-page li {
  margin-bottom: 0.2em;
}
.emr-lh {
  border-bottom: 2px solid #1b3a6b;
  padding-bottom: 0.5em;
  margin-bottom: 0.7em;
}
.emr-lh-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.25em;
  color: #1b3a6b;
}
.emr-lh-sub {
  font-size: 0.82em;
  color: #556;
}
.emr-title {
  margin: 0 0 0.6em;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.emr-banner,
.emr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4em 0.8em;
  background: #f1f4f9;
  border: 1px solid #d5dbe8;
  padding: 0.55em 0.8em;
  margin-bottom: 0.8em;
}
.emr-grid {
  background: #fff;
}
.emr-banner span,
.emr-grid span {
  display: block;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667;
}
.emr-banner b,
.emr-grid b {
  font-weight: 700;
}
.emr-h {
  margin: 1em 0 0.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #c8d0e0;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1b3a6b;
}
.emr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.3em 0 0.8em;
  font-size: 0.95em;
}
.emr-table th,
.emr-table td {
  border: 1px solid #c9d1e0;
  padding: 0.3em 0.5em;
  text-align: left;
}
.emr-table th {
  background: #eef2f9;
  font-weight: 700;
}
.emr-table-lab td,
.emr-table-lab th {
  text-align: center;
}
.emr-table-lab td:first-child,
.emr-table-lab th:first-child {
  text-align: left;
}
.emr-table td.hi {
  font-weight: 700;
  color: #a1160f;
}
.emr-note {
  font-style: italic;
  color: #333;
}
.emr-sign {
  margin-top: 1em;
  padding-top: 0.5em;
  border-top: 1px solid #c9d1e0;
  font-size: 0.9em;
  color: #445;
}
.emr-foot {
  margin-top: auto;
  padding-top: 1.2em;
  font-size: 0.78em;
  color: #778;
  text-align: center;
}

/* faxed scan */
.emr-page.is-fax {
  background: #f5f4ef linear-gradient(0deg, rgba(0, 0, 0, 0.025) 50%, transparent 50%) 0 0 / 100% 3px;
  font-family: 'Courier New', Courier, monospace;
  color: #2a2a2a;
  transform: rotate(-0.3deg);
}
.is-fax .emr-lh {
  border-color: #333;
}
.is-fax .emr-lh-name {
  color: #222;
  font-size: 1.15em;
}
.fax-head {
  font-size: 0.82em;
  padding-bottom: 0.4em;
  margin-bottom: 1em;
  border-bottom: 1px solid #333;
  letter-spacing: 0.03em;
}
.fax-date {
  text-align: right;
}
.fax-sign {
  margin-top: 1.6em;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 1.7em;
  color: #223;
}

/* marks */
.emr-page mark {
  color: inherit;
  background: none;
  padding: 0;
}
mark.cite {
  background: rgba(255, 226, 0, 0.62);
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
mark.cite.active {
  background: #ffd600;
  box-shadow: 0 0 0 2px var(--uw-orange);
}
mark.ann {
  border-bottom: 2px dotted var(--uw-medium);
  cursor: help;
}
mark.ann.k-excluded {
  border-bottom: 2px dashed #6b7488;
  background: rgba(107, 116, 136, 0.14);
}
mark.ann.k-info {
  border-bottom: 2px dotted #0b8f8f;
  background: rgba(11, 143, 143, 0.12);
}
mark.ann.active {
  box-shadow: 0 0 0 3px rgba(61, 111, 245, 0.35);
  border-radius: 2px;
}
mark.pulse,
.ann-badge.pulse {
  animation: uw-mark-pulse 1.3s ease-out 1;
}
@keyframes uw-mark-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 125, 5, 0.9);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(254, 125, 5, 0);
  }
}
.ann-badge {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  margin: 0 0.15em 0 0.25em;
  vertical-align: 0.35em;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--uw-medium);
  color: #fff;
  font: 700 0.85em/1 Arial, sans-serif;
  cursor: pointer;
}
.ann-badge.k-excluded {
  background: #6b7488;
}
.ann-badge.k-info {
  background: #0b8f8f;
}
.ann-badge.active {
  box-shadow: 0 0 0 3px rgba(8, 40, 100, 0.35);
}

/* EMR lab lines */
.lab-line {
  margin: 0 0 0.5em;
  padding: 0.35em 0.6em;
  background: #f6f8fc;
  border-left: 3px solid #c3cde3;
}
.lab-line i {
  color: #667;
  font-size: 0.92em;
}


/* =================================================================== */
/* Call center                                                          */
/* =================================================================== */

/* ---------- dashboard ---------- */

.cc-dash {
  flex: 1;
  min-height: 0;
  padding: var(--s5);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--cc-bg-top) 0%, var(--cc-bg) 100%);
}
.cc-paper {
  padding: var(--s3) var(--s5) var(--s5);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.cc-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s5) 0 var(--s4);
}
.cc-dash-head h1 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-text);
}
.uw-stats-cc {
  margin-bottom: var(--s5);
}
.uw-stats-cc .uw-stat {
  background: var(--cc-head);
  border-color: transparent;
  color: var(--cc-head-text);
}
.uw-stats-cc .uw-stat > div > span {
  color: var(--cc-head-text);
  opacity: 0.8;
}
.cc-dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-bottom: var(--s4);
}
.cc-table th,
.cc-table td {
  padding-inline: var(--s3);
}
.cc-table td.c-referralId,
.cc-table td.c-din,
.cc-table td.c-tod,
.cc-table td.c-consentAt,
.cc-table td.c-dispatchedAt,
.cc-table td.c-closedAt,
.cc-table td.c-elapsed {
  white-space: nowrap;
}
.cc-name {
  font-weight: 600;
}
.cc-name-link {
  color: var(--cc-primary);
  text-decoration: none;
}
.cc-name-link:hover {
  text-decoration: underline;
}
.cc-lock {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cc-lock .material-symbols-outlined {
  font-size: 14px;
}

/* ---------- case view ---------- */

.cc-case {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s3);
  min-height: 640px;
  padding: var(--s4);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--cc-bg-top) 0%, var(--cc-bg) 100%);
}
.cc-case-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
}
.cc-case-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
  line-height: 1.3;
}
.cc-case-id h2 {
  overflow: hidden;
  color: var(--cc-text);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-case-id span {
  color: var(--cc-text-2);
  font-size: var(--fs-sm);
}
.cc-case-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}
.cc-case-actions .uw-btn-outline,
.cc-case-actions .uw-icon-btn-outline {
  border-color: var(--cc-divider);
  color: var(--cc-head-text);
}
.cc-case-actions .uw-btn-outline:hover:not(:disabled),
.cc-case-actions .uw-icon-btn-outline:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--cc-primary);
}
.cc-demo {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 3px 6px 3px 3px;
  border: 1px dashed var(--cc-primary);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
}
.cc-demo .uw-icon-btn {
  width: 36px;
  height: 36px;
  color: var(--cc-head-text);
}
.cc-demo .uw-segmented {
  background: rgba(71, 93, 145, 0.12);
}
.cc-case > .uw-banner {
  flex: none;
}

.cc-case-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: var(--s3);
  min-height: 0;
}
.cc-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--s3);
  min-height: 0;
}
.cc-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  color: var(--cc-text);
}
.cc-card-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 56px;
  padding: var(--s2) var(--s4);
  border-bottom: 1px solid var(--line);
}
.cc-card-head h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
}
.cc-saved {
  color: var(--ok);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ---------- call guide ---------- */

.cc-guide {
  position: relative;
}
.cc-guide-body {
  display: grid;
  flex: 1;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 0;
}
.cc-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 0;
  padding: var(--s4) var(--s3) var(--s4) var(--s4);
  overflow: auto;
  border-right: 1px solid var(--line);
}
.cc-nav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cc-nav-head h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.cc-nav-head span {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.cc-nav .uw-progress {
  background: var(--cc-head);
}
.cc-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  padding: var(--s2) var(--s3);
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--cc-text);
  text-align: left;
  transition: background var(--t-fast);
}
.cc-nav-item:hover {
  background: var(--surface-2);
}
.cc-nav-item.on {
  background: var(--cc-head);
  color: var(--cc-head-text);
}
.cc-nav-item > span:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.cc-nav-item b {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}
.cc-nav-item em {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-style: normal;
}
.cc-nav-item .material-symbols-outlined {
  color: var(--ink-3);
}
.cc-nav-item .material-symbols-outlined.done {
  color: var(--ok);
}
.cc-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--cc-primary);
  opacity: 0.5;
  transition: width var(--t-slow) var(--ease);
}
.cc-fields {
  min-height: 0;
  padding: var(--s2) var(--s5) var(--s5);
  overflow: auto;
  outline: none;
  scrollbar-width: thin;
}
.cc-section + .cc-section {
  margin-top: var(--s5);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.cc-section > h2 {
  margin: var(--s3) 0 var(--s4);
  color: var(--cc-primary);
  font-size: var(--fs-md);
  font-weight: 700;
}
.cc-q {
  margin-bottom: var(--s4);
  padding: var(--s2);
  margin-inline: calc(var(--s2) * -1);
  border-radius: var(--r-md);
}
.cc-q > label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.cc-q-hint {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cc-input {
  position: relative;
  margin-top: 6px;
}
.cc-input textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 48px 10px var(--s3);
  overflow: hidden;
  resize: none;
  border: 1px solid #8f93a3;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.cc-input textarea:focus {
  outline: 2px solid var(--cc-primary);
  outline-offset: 0;
  border-color: var(--cc-primary);
}
.cc-input textarea:disabled {
  background: var(--surface-2);
  color: var(--ink-2);
}
.cc-wand {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  color: var(--ai);
}
.cc-wand:hover:not(:disabled) {
  background: var(--ai-bg);
}
.cc-src-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cc-src-row:not(:empty) {
  margin-top: 6px;
}

/* Autofill states: a fresh fill glows, a correction shows the old value struck through first. */
.cc-q.ai-fill {
  animation: cc-fill 1.9s var(--ease);
}
.cc-q.ai-fill textarea {
  border-color: var(--ai);
  background: var(--ai-bg);
}
.cc-q.is-revised.ai-fill {
  animation-duration: 2.8s;
}
.cc-q.is-struck textarea {
  border-color: var(--crit);
  background: var(--crit-bg);
  color: var(--crit);
  text-decoration: line-through;
}
@keyframes cc-fill {
  0%,
  60% {
    background: var(--ai-bg);
  }
  100% {
    background: transparent;
  }
}

/* ---------- tray: copilot suggestion and flags ---------- */

.cc-tray {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: var(--s2);
  max-height: 38%;
  padding: var(--s3) var(--s4) var(--s4);
  overflow: auto;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  scrollbar-width: thin;
}
.cc-next {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--ai-line);
  border-radius: var(--r-md);
  background: var(--ai-bg);
  color: var(--ai);
}
.cc-next > div {
  flex: 1;
  min-width: 0;
}
.cc-next > div > span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-next > div > b {
  display: block;
  color: var(--cc-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}
.cc-next.is-done {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}
.cc-next.is-idle {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-3);
}
.cc-tray-toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  padding: var(--s1) 0;
  border: 0;
  background: none;
  text-align: left;
}
.cc-tray-toggle b {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.cc-tray-sub {
  margin-left: auto;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cc-flags {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.cc-flag-empty {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.cc-flag {
  --lvl: var(--info);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--lvl);
  border-radius: var(--r-md);
  background: var(--surface);
}
.cc-flag.lvl-critical {
  --lvl: var(--crit);
}
.cc-flag.lvl-major {
  --lvl: var(--major);
}
.cc-flag.lvl-warn {
  --lvl: #b8860b;
}
.cc-flag.lvl-info {
  --lvl: var(--info);
}
.cc-flag.lvl-fix {
  --lvl: var(--ai);
}
.cc-flag.st-cleared {
  --lvl: var(--ok);
}
.cc-flag summary {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  list-style: none;
  cursor: pointer;
}
.cc-flag summary::-webkit-details-marker {
  display: none;
}
.cc-flag summary:hover {
  background: var(--surface-2);
}
.cc-flag-ic {
  display: inline-grid;
  color: var(--lvl);
}
.cc-flag-title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.cc-flag-chev {
  color: var(--ink-3);
  transition: transform var(--t);
}
.cc-flag details[open] .cc-flag-chev {
  transform: rotate(180deg);
}
.cc-flag-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 0 var(--s3) var(--s3) calc(var(--s3) + 28px);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.cc-diff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  background: var(--ai-bg);
}
.cc-diff-label {
  width: 100%;
  color: var(--ai);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cc-diff s {
  color: var(--crit);
}
.cc-diff b {
  color: var(--ok);
}
.cc-diff .material-symbols-outlined {
  color: var(--ink-3);
  font-size: 16px;
}
.cc-flag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

/* ---------- documents and notes ---------- */

.cc-docs-body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-height: 260px;
  padding: var(--s3) var(--s4) var(--s4);
  overflow: auto;
}
.cc-doclist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cc-doclist li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px var(--s3) 4px var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.cc-doclist li .material-symbols-outlined {
  color: var(--crit);
  font-size: 18px;
}
.cc-doclist li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cc-notes li {
  display: flex;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.cc-notes li span {
  flex: none;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cc-note-compose {
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
}
.cc-note-compose textarea {
  flex: 1;
  min-height: 44px;
  resize: none;
  padding: 10px var(--s3);
  border: 1px solid #8f93a3;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.cc-note-compose .uw-btn {
  flex: none;
}

/* ---------- transcript ---------- */

.cc-transcript {
  position: relative;
}
.cc-tr-tools {
  display: flex;
  flex: none;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
}
.cc-utts {
  flex: 1;
  min-height: 0;
  padding: 0 var(--s4) var(--s4);
  overflow: auto;
  scrollbar-width: thin;
}
.cc-utts-empty {
  padding: var(--s6) var(--s4);
  text-align: center;
}
.cc-utt {
  display: grid;
  grid-template-columns: 44px 32px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-md);
  transition: background var(--t);
}
.cc-utt.is-first {
  margin-top: var(--s3);
}
.cc-utt:not(.is-first) .uw-avatar {
  visibility: hidden;
}
.cc-utt.flash {
  background: #fff3c4;
}
.cc-time {
  padding-top: 6px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.cc-who {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}
.cc-who b {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.cc-who em {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-style: normal;
}
.cc-utt-body p {
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.cc-utt:not(.is-first) .cc-utt-body p {
  padding-top: 5px;
}
.cc-utt mark {
  border-radius: 3px;
  background: #ffe58a;
  color: inherit;
}
.cc-utt.is-system {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin: var(--s3) 0 var(--s1);
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.cc-typing {
  display: inline-flex;
  gap: 4px;
  padding: 7px 0;
}
.cc-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: cc-dot 1.1s ease-in-out infinite;
}
.cc-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.cc-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cc-dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.cc-jump {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--sh-2);
}

/* =================================================================== */
/* Responsive: compact (<= 1279px) and mobile (<= 899px)                */
/* =================================================================== */

@media (max-width: 1279px) {
  .uw-rail {
    margin-left: var(--s4);
  }
  .uw-product {
    font-size: var(--fs-md);
  }
  .uw-title,
  .uw-avatar-btn,
  #uw-tour .btn-label,
  #uw-portfolio .btn-label {
    display: none;
  }
  #uw-tour,
  #uw-portfolio {
    width: 40px;
    padding: 0;
  }
  .uw-stat {
    padding: var(--s4);
  }
  .cc-guide-body {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .cc-case-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  }
  .cs-pane-left {
    width: 260px;
  }
  .cs-pane-left > .cs-card {
    min-width: 260px;
  }
  .cs-split[data-view='middle-right'] .cs-pane-mid {
    width: 340px;
  }
  .cc-paper {
    padding-inline: var(--s4);
  }
  .cs-decide {
    flex-direction: column;
    gap: 2px;
    min-height: 52px;
    font-size: var(--fs-xs);
  }
}

@media (max-width: 899px) {
  /* Shell: the rail becomes a bottom bar. */
  .uw-top {
    flex-wrap: wrap;
    row-gap: var(--s2);
    padding-block: var(--s2);
  }
  .uw-brand img {
    height: 32px;
  }
  .uw-product,
  .uw-title,
  .uw-avatar-btn,
  .btn-label {
    display: none;
  }
  .uw-top-right {
    display: contents;
  }
  #uw-tour {
    margin-left: auto;
  }
  .uw-top-right .uw-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .uw-top-right #cs-summary-btn {
    width: auto;
    padding: 0 var(--s4);
  }
  .uw-slot {
    flex: 1 0 100%;
    order: 3;
    gap: var(--s2);
  }
  .uw-slot #cs-summary-btn {
    margin-left: auto;
  }
  .uw-slot:empty {
    display: none;
  }
  .uw-body {
    flex-direction: column;
  }
  .uw-main {
    order: 1;
    padding-bottom: var(--s3);
  }
  .uw-rail {
    order: 2;
    flex-direction: row;
    justify-content: center;
    gap: var(--s6);
    width: auto;
    margin: 0;
    padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: 0 -4px 14px rgba(8, 40, 100, 0.06);
  }
  .uw-rail-link {
    flex-direction: row;
    gap: var(--s2);
    width: auto;
    padding: 6px var(--s3) 6px 6px;
    border-radius: var(--r-pill);
  }
  .uw-rail-link.on {
    background: var(--uw-tint);
  }
  .uw-rail-ic {
    width: 36px;
    height: 36px;
  }
  .uw-rail-foot {
    display: none;
  }
  .uw-toasts {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  /* Dialogs and tour */
  .uw-dialog {
    padding: var(--s4);
  }
  .uw-intro-cards {
    grid-template-columns: 1fr;
  }
  .uw-intro-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .uw-dialog-actions .uw-btn {
    flex: 1;
  }
  .uw-field-row {
    flex-direction: column;
  }

  /* Shared */
  .uw-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s2);
  }
  .uw-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1);
    padding: var(--s3);
  }
  .uw-stat-ic {
    display: none;
  }
  .uw-stat b {
    font-size: var(--fs-xl);
  }
  .uw-stat > div > span {
    font-size: var(--fs-xs);
    line-height: 1.3;
  }
  .uw-table th,
  .uw-table td {
    padding-inline: var(--s3);
  }

  /* ContraSight */
  .cs-welcome h1 {
    font-size: var(--fs-xl);
  }
  .cs-steps li {
    gap: 4px;
  }
  .cs-step-label {
    font-size: var(--fs-xs);
  }
  .cs-drop {
    padding: var(--s5) var(--s4);
  }
  .cs-drop-actions {
    flex-direction: column;
    align-self: stretch;
  }
  .cs-review-wrap {
    gap: var(--s3);
  }
  .cs-segmented {
    display: flex;
    flex: none;
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
  }
  .cs-segmented button {
    flex: 1;
  }
  .cs-split {
    min-height: 0;
  }
  .cs-pane {
    display: none;
    flex: 1;
    width: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: none;
  }
  .cs-split[data-pane='list'] .cs-pane-left,
  .cs-split[data-pane='review'] .cs-pane-mid,
  .cs-split[data-pane='source'] .cs-pane-right {
    display: flex;
  }
  .cs-pane-left > .cs-card,
  .cs-pane-right > .dv {
    min-width: 0;
  }
  .cs-card {
    padding: var(--s4) var(--s3);
  }
  .cs-review-scroll {
    padding: var(--s4);
  }
  .cs-mid-head h2,
  .cs-mid-head h2.is-long {
    font-size: var(--fs-xl);
  }
  .cs-decision {
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  }
  .cs-decision textarea {
    min-height: 64px;
  }
  .cs-decide {
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
    font-size: var(--fs-xs);
  }
  .cs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-audit-head {
    flex-wrap: wrap;
  }
  .cs-audit-badges {
    order: 3;
    width: 100%;
  }

  /* Pages grow with their content. The review is the exception: it fills the screen and scrolls inside. */
  .uw-view {
    flex: 1 0 auto;
  }
  .uw-view:has(.cs-review-wrap) {
    flex: 1;
    min-height: 0;
  }
  .cs-split {
    min-height: 0;
  }
  .cs-pane-right > .dv {
    border-radius: var(--r-xl);
  }
  .dv-toolbar {
    border-radius: var(--r-lg);
    padding: var(--s1) var(--s3);
  }
  .dv-name {
    flex-basis: 100%;
    font-size: var(--fs-md);
  }
  .dv-ann {
    max-height: 30vh;
    overflow: auto;
  }
  .dv-callout p {
    font-size: var(--fs-sm);
    line-height: 1.45;
  }
  .cc-table th,
  .cc-table td {
    white-space: nowrap;
  }
  .cc-dash-head {
    flex-wrap: wrap;
  }

  /* Call center */
  .cc-dash {
    padding: var(--s3);
  }
  .cc-paper {
    padding: var(--s2) var(--s3) var(--s4);
  }
  .cc-dash-head {
    margin-block: var(--s4) var(--s3);
  }
  .cc-dash-head h1 {
    font-size: var(--fs-xl);
  }
  .cc-dash-bar .uw-hint {
    display: none;
  }
  .cc-case {
    flex: none;
    min-height: 0;
    padding: var(--s3);
  }
  .cc-case-actions {
    flex: 1 0 100%;
    justify-content: flex-end;
  }
  .cc-case-actions .uw-btn-outline {
    width: 40px;
    padding: 0;
  }
  .cc-case-actions .uw-btn-primary,
  .cc-case-actions .uw-btn-danger {
    padding: 0 var(--s3);
  }
  .cc-demo {
    flex: 1 0 100%;
    justify-content: space-between;
    order: -1;
  }
  .cc-case-grid {
    display: flex;
    flex-direction: column;
  }
  .cc-col {
    display: flex;
    flex-direction: column;
  }
  .cc-card {
    overflow: visible;
  }
  .cc-guide-body {
    display: block;
  }
  .cc-nav {
    padding: var(--s3) var(--s4);
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cc-nav .uw-select-line {
    display: none;
  }
  .cc-nav ul {
    flex-direction: row;
    gap: var(--s2);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cc-nav-item {
    flex: none;
    width: auto;
    padding: 6px var(--s3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
  }
  .cc-nav-item em,
  .cc-nav-item .material-symbols-outlined,
  .cc-nav-bar {
    display: none;
  }
  .cc-fields {
    padding-inline: var(--s4);
    overflow: visible;
  }
  .cc-guide {
    display: flex;
    flex-direction: column;
  }
  .cc-tray {
    order: 1;
    max-height: 42vh;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .cc-guide-body {
    order: 2;
  }
  .cc-nav-item b {
    white-space: nowrap;
  }
  .cc-docs-body {
    max-height: none;
  }
  .cc-transcript {
    height: 70vh;
    min-height: 420px;
  }
  .cc-transcript .cc-utts {
    min-height: 0;
  }
  .cc-utt {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .cc-time {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Print: the case summary only                                        */
/* ------------------------------------------------------------------ */

@media print {
  .uw-top,
  .uw-rail,
  .uw-skip,
  .uw-toasts,
  .uw-dialog-backdrop,
  .uw-tour,
  .cs-summary > .uw-btn {
    display: none !important;
  }
  html,
  body,
  .uw-shell,
  .uw-body,
  .uw-main,
  .uw-view {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .cs-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .cs-audit-item {
    break-inside: avoid;
  }
  .cs-audit-body[hidden] {
    display: block !important;
  }
}
