:root {
  --app-font: "Avenir Next", "Segoe UI", sans-serif;
  --bg: #f4f4f5;
  --card: #ffffff;
  --ink: #101214;
  --muted: #5e6369;
  --primary: #111111;
  --danger: #111111;
  --border: #d8dbe0;
  --result-rail-width: 240px;
  --tabs-sticky-clearance: 6rem;
  --sidebar-sticky-gap: 2rem;
  --search-composer-height: 188px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--app-font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

#root,
button,
input,
textarea,
select {
  font-family: var(--app-font);
}

body.theme-dark {
  --bg: #0a0b0d;
  --bg-elevated: #101216;
  --bg-hover: #161a1f;
  --border: #2b3138;

  --text: #f2f3f5;
  --text-muted: #b0b5bc;
  --text-dim: #8a9098;

  --accent: #e9eaec;
  --accent-hover: #ffffff;

  --success: #e9eaec;
  --warning: #d0d3d7;
  --danger: #ffffff;

  --selection: #1f232a;
  --input-bg: #1a1e25;
  --input-text: #f2f3f5;

  --card: var(--bg-elevated);
  --ink: var(--text);
  --muted: var(--text-muted);
  --primary: var(--accent);
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--card);
  border: none;
  border-radius: 0;
  min-height: 100vh;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.card.login-card-shell {
  padding: 0;
  background: #ffffff;
}

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  background: #ffffff;
  color: #101417;
}

.new-search-screen {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  color: #101417;
}

.login-hero,
.new-search-hero {
  --login-hero-padding: clamp(1rem, 3vw, 1.5rem);
  padding: var(--login-hero-padding);
  display: grid;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-hero-card,
.new-search-hero-card {
  --hero-cursor-x: 50%;
  --hero-cursor-y: 50%;
  --hero-cursor-opacity: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.46) 100%),
    #010205;
  border: 1px solid #1b2026;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  align-content: center;
  gap: 1.2rem;
  width: min(1320px, 100%);
  min-height: calc(100vh - (var(--login-hero-padding) * 2));
  min-height: calc(100dvh - (var(--login-hero-padding) * 2));
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(3, 6, 10, 0.18), 0 28px 56px rgba(3, 6, 10, 0.24);
}

.login-hero-card::before,
.new-search-hero-card::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(420px 320px at 16% 14%, rgba(236, 170, 156, 0.4), transparent 72%),
    radial-gradient(420px 320px at 84% 18%, rgba(177, 197, 162, 0.36), transparent 74%),
    radial-gradient(430px 330px at 52% 86%, rgba(142, 172, 212, 0.34), transparent 76%);
  filter: blur(24px);
  animation: loginHeroGradientDrift 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  opacity: 0.62;
  will-change: transform, opacity;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.login-hero-card::after,
.new-search-hero-card::after {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(260px 200px at var(--hero-cursor-x) var(--hero-cursor-y), rgba(246, 196, 181, 0.26), transparent 70%),
    radial-gradient(300px 240px at calc(var(--hero-cursor-x) + 2%) calc(var(--hero-cursor-y) + 4%), rgba(186, 210, 244, 0.22), transparent 72%),
    radial-gradient(380px 300px at calc(var(--hero-cursor-x) - 4%) calc(var(--hero-cursor-y) - 2%), rgba(181, 210, 177, 0.16), transparent 74%),
    radial-gradient(760px 560px at 48% 44%, rgba(240, 183, 168, 0.12), transparent 74%),
    radial-gradient(760px 560px at 58% 52%, rgba(162, 188, 224, 0.16), transparent 76%),
    radial-gradient(360px 280px at 22% 22%, rgba(238, 170, 156, 0.24), transparent 70%),
    radial-gradient(360px 280px at 78% 24%, rgba(180, 197, 163, 0.22), transparent 72%),
    radial-gradient(380px 300px at 50% 82%, rgba(146, 176, 214, 0.2), transparent 74%);
  filter: blur(30px);
  animation: loginHeroGradientDriftAlt 13s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate-reverse;
  opacity: calc(0.36 + var(--hero-cursor-opacity));
  will-change: transform, opacity;
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.22, 0.61, 0.36, 1) 90ms;
}

.login-hero-card.hero-interactive:not(:hover)::after,
.new-search-hero-card.hero-interactive:not(:hover)::after {
  transition: opacity 180ms ease-out 0ms;
}

.login-hero-card > *,
.new-search-hero-card > * {
  position: relative;
  z-index: 1;
}

.login-eyebrow,
.new-search-eyebrow {
  margin: 0;
  color: #a2b4c2;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.login-title,
.new-search-title {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: #f8fafc;
}

.login-copy,
.new-search-copy {
  margin: 0;
  max-width: 50ch;
  color: #c3d0da;
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-login-screen .login-eyebrow {
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.auth-login-screen .login-title {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
}

.auth-login-screen .login-copy {
  font-size: 1.15rem;
  line-height: 1.55;
}

.login-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 100%;
}

.login-hero-copy-block {
  display: grid;
  gap: 1rem;
}

.login-hero-actions {
  justify-self: stretch;
  display: grid;
  justify-items: start;
  gap: 0.7rem;
}

.login-hero-primary-btn,
.login-hero-secondary-btn {
  width: auto;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.login-hero-primary-btn {
  min-width: 164px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #ffffff;
  color: #0d1217;
}

.login-hero-primary-btn:hover {
  background: #f1f5f8;
}

.login-hero-primary-btn:focus-visible,
.login-hero-secondary-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 3px;
}

.login-hero-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f6f9;
}

.login-hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}


.login-hero-error {
  margin: 0;
  max-width: 48ch;
}

@keyframes loginHeroGradientDrift {
  0% {
    transform: translate3d(-22%, -18%, 0) scale(1.08) rotate(-3deg);
    opacity: 0.5;
  }
  35% {
    transform: translate3d(15%, -10%, 0) scale(1.17) rotate(1.2deg);
    opacity: 0.66;
  }
  68% {
    transform: translate3d(-10%, 16%, 0) scale(1.2) rotate(2.4deg);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(21%, 19%, 0) scale(1.14) rotate(-1.6deg);
    opacity: 0.64;
  }
}

@keyframes loginHeroGradientDriftAlt {
  0% {
    transform: translate3d(20%, 16%, 0) scale(1.03) rotate(2.2deg);
    opacity: 0.32;
  }
  40% {
    transform: translate3d(-14%, 8%, 0) scale(1.12) rotate(-1.2deg);
    opacity: 0.45;
  }
  72% {
    transform: translate3d(10%, -14%, 0) scale(1.18) rotate(1.5deg);
    opacity: 0.36;
  }
  100% {
    transform: translate3d(-18%, -16%, 0) scale(1.08) rotate(-2.4deg);
    opacity: 0.42;
  }
}

@media (max-width: 980px) {
  .generating-hero-screen {
    min-height: calc(100vh - 9.5rem);
    padding: 0.5rem 0;
  }

  .generating-hero-card {
    min-height: 320px;
  }

  .login-screen,
  .new-search-screen {
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .login-hero,
  .new-search-hero {
    padding: 1rem 0.95rem;
  }

  .login-hero-card,
  .new-search-hero-card {
    min-height: calc(100vh - 2rem);
    min-height: calc(100dvh - 2rem);
    padding: clamp(1.45rem, 4vw, 2.2rem);
    transform: none;
    box-shadow: 0 8px 20px rgba(3, 6, 10, 0.15), 0 16px 32px rgba(3, 6, 10, 0.16);
  }

  .login-hero-layout {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .login-hero-actions {
    justify-self: start;
    justify-items: start;
  }
}

h1,
h2,
h3 {
  margin-top: 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.app-header h1 {
  margin: 0;
}

.app-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.settings-btn,
.profile-btn {
  border: 1px solid #cdd7e1;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.settings-btn:hover,
.profile-btn:hover {
  background: #eef4f8;
}

.settings-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.36);
  padding: 1rem;
}

.settings-modal {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  padding: 0.85rem 0.9rem;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.settings-modal-header h3 {
  margin: 0;
  font-size: 1.04rem;
}

.settings-modal-close {
  border: 1px solid #b7c6d4;
  border-radius: 8px;
  background: #f4f8fb;
  color: #1f3447;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
  cursor: pointer;
}

.settings-modal-close:hover {
  background: #e8f0f7;
}

.settings-modal-content {
  display: grid;
  gap: 0.55rem;
}

.settings-modal-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.settings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #dbe3eb;
  border-radius: 10px;
  background: #f8fbfd;
  padding: 0.6rem 0.68rem;
}

.settings-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.settings-value {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

.theme-toggle-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.36rem;
}

.theme-toggle-btn {
  border: 1px solid #b7c6d4;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: #eef4f8;
}

.theme-toggle-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

body.theme-dark .tabs {
  border-bottom-color: var(--border);
  background: rgba(10, 11, 13, 0.56);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

body.theme-dark .tab {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

body.theme-dark .tab:hover {
  background: var(--bg-hover);
}

body.theme-dark .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

body.theme-dark .tab-button {
  background: var(--selection);
  border-color: var(--accent);
  color: var(--text);
}

body.theme-dark .tab-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

body.theme-dark .tab-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

body.theme-dark .tab.drop-target-tab {
  outline-color: var(--accent);
  background: var(--selection);
}

body.theme-dark .tab.active.drop-target-tab {
  outline-color: var(--accent-hover);
  background: var(--accent-hover);
}

body.theme-dark .settings-btn,
body.theme-dark .profile-btn,
body.theme-dark .menu-btn,
body.theme-dark .todo-view-btn,
body.theme-dark .settings-modal-close,
body.theme-dark .todo-modal-close,
body.theme-dark .todo-remove,
body.theme-dark .secondary-btn,
body.theme-dark .toast-dismiss {
  background: linear-gradient(180deg, #2c3642 0%, #222b36 100%);
  border-color: #4e6073;
  color: #dce8f5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.34), 0 6px 14px rgba(0, 0, 0, 0.28);
}

body.theme-dark .settings-btn:hover,
body.theme-dark .profile-btn:hover,
body.theme-dark .menu-btn:hover,
body.theme-dark .todo-view-btn:hover,
body.theme-dark .settings-modal-close:hover,
body.theme-dark .todo-modal-close:hover,
body.theme-dark .todo-remove:hover,
body.theme-dark .secondary-btn:hover,
body.theme-dark .toast-dismiss:hover {
  background: linear-gradient(180deg, #334051 0%, #273242 100%);
  border-color: #60758d;
}

body.theme-dark .schedule-b-action-card {
  background: linear-gradient(145deg, #263a50 0%, #1e2f42 100%);
  border-color: #52779b;
  color: #d9ecff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.34), 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .schedule-b-action-card:hover {
  background: linear-gradient(145deg, #2d4560 0%, #243a51 100%);
  border-color: #6790b8;
}

body.theme-dark .schedule-b-card-loading {
  background: var(--bg-elevated);
  border-color: var(--border);
}

body.theme-dark .schedule-b-card-loading-title {
  color: var(--text);
}

body.theme-dark .schedule-b-generate-error {
  color: #ff8f99;
}

body.theme-dark .result-menu,
body.theme-dark .todo-panel,
body.theme-dark .todo-item,
body.theme-dark .todo-modal,
body.theme-dark .settings-modal,
body.theme-dark .result-panel,
body.theme-dark .property-tile,
body.theme-dark .scope-tile,
body.theme-dark .action-card,
body.theme-dark .chain-timeline-card,
body.theme-dark .schedule-b-item-card,
body.theme-dark .drop-zone,
body.theme-dark .toast-item {
  background: var(--bg-elevated);
  border-color: var(--border);
}

body.theme-dark .timeline-ai-recommend-btn {
  border-color: #725841;
  background: #2a221b;
  color: #efdfcd;
}

body.theme-dark .timeline-ai-recommendation {
  border-color: #64513f;
  background: #26211d;
  color: #eadbc9;
}

body.theme-dark .chain-parties-panel {
  border-color: #1f252d;
  background: #000000;
}

body.theme-dark .chain-parties-item {
  color: #ffffff;
}

body.theme-dark .chain-parties-empty {
  color: #d7dce2;
}

body.theme-dark .chain-judgments-json {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--input-text);
}

body.theme-dark .past-searches-table-wrap {
  border-color: #253241;
  background: #10161d;
}

body.theme-dark .past-searches-table th {
  background: #151c24;
  color: #aebed0;
  border-bottom-color: #253241;
}

body.theme-dark .past-searches-table td {
  border-bottom-color: #253241;
  color: #edf3f9;
}

body.theme-dark .past-searches-table tbody tr:hover {
  background: #131b23;
}

body.theme-dark .past-searches-open-btn {
  border-color: #314154;
  background: #151c24;
  color: #edf3f9;
}

body.theme-dark .past-searches-open-btn:hover,
body.theme-dark .past-searches-open-btn:focus-visible {
  background: #1d2833;
}

body.theme-dark .past-searches-search-label {
  color: rgba(237, 243, 249, 0.76);
}

body.theme-dark .past-searches-search-input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body.theme-dark .past-searches-link {
  color: #d9e8f7;
}

body.theme-dark .past-searches-link-missing,
body.theme-dark .past-searches-modal-note {
  color: #9eb0c2;
}

body.theme-dark .chain-judgments-row {
  background: var(--bg-hover);
  border-color: var(--border);
}

body.theme-dark .chain-judgments-item-card {
  background: var(--bg-hover);
  border-color: var(--border);
}

body.theme-dark .chain-judgments-status {
  color: var(--text);
}

body.theme-dark .chain-judgments-key {
  color: var(--text-muted);
}

body.theme-dark .chain-judgments-object-key {
  color: var(--text-muted);
}

body.theme-dark .chain-judgments-value {
  color: var(--text);
}

body.theme-dark .chain-judgments-object-value {
  color: var(--text);
}

body.theme-dark .chain-judgments-empty-value {
  color: var(--text-muted);
}

body.theme-dark .chain-compact-group-card,
body.theme-dark .chain-compact-item-card {
  border-color: #43566a;
  background: #1a2430;
}

body.theme-dark .chain-compact-group-title,
body.theme-dark .chain-compact-item-title {
  color: #d7e6f6;
}

body.theme-dark .chain-compact-item-key {
  color: #9fb4c8;
}

body.theme-dark .chain-compact-item-value {
  color: #d7e6f6;
}

body.theme-dark .chain-section-toggle-btn {
  border-color: #4c6076;
  background: #202a36;
  color: #d7e6f6;
  box-shadow: none;
}

body.theme-dark .chain-section-toggle-btn:hover {
  background: #263242;
  border-color: #5e7691;
  transform: none;
  box-shadow: none;
}

body.theme-dark .chain-section-toggle-icon {
  border-color: #5f748c;
  background: #1b2430;
}

body.theme-dark .chain-compact-item-actions .followup-btn.chain-compact-action-btn {
  border-color: #507564;
  background: #21322d;
  color: #c5e4d8;
  box-shadow: none;
}

body.theme-dark .chain-compact-item-actions .followup-btn.chain-compact-action-btn:hover {
  border-color: #648d7b;
  background: #294038;
  transform: none;
  box-shadow: none;
}

body.theme-dark .timeline-notes-content {
  border-color: #4d647c;
  background: #1a2430;
  color: #d7e6f6;
}

body.theme-dark .timeline-note-link {
  color: #9fd5ff;
}

body.theme-dark .timeline-note-link:hover {
  color: #c1e4ff;
}

body.theme-dark .instrument-reference-section {
  border-color: var(--border);
  background: var(--bg-hover);
}

body.theme-dark .instrument-reference-kicker {
  color: var(--text-muted);
}

body.theme-dark .instrument-reference-title,
body.theme-dark .instrument-reference-meta,
body.theme-dark .instrument-reference-empty,
body.theme-dark .instrument-reference-recording-value,
body.theme-dark .instrument-reference-list li {
  color: var(--text);
}

body.theme-dark .instrument-reference-recording-key {
  color: var(--text-muted);
}

body.theme-dark .timeline-confidence-badge {
  border-color: #49576a;
  background: #1f2936;
  color: #d4deea;
}

body.theme-dark .timeline-confidence-badge.high {
  border-color: #3f6a5e;
  background: #1a2f2a;
  color: #b9f0db;
}

body.theme-dark .timeline-confidence-badge.medium {
  border-color: #6d6642;
  background: #2c2818;
  color: #f2e3a8;
}

body.theme-dark .timeline-confidence-badge.low {
  border-color: #6f5148;
  background: #30211d;
  color: #f0ccc2;
}

body.theme-dark .settings-row {
  background: var(--bg-hover);
  border-color: var(--border);
}

body.theme-dark .analysis-disclaimer {
  border-top-color: var(--border);
}

body.theme-dark .section-strip,
body.theme-dark .menu-title,
body.theme-dark .todo-title,
body.theme-dark .property-tile-title,
body.theme-dark .scope-tile-title {
  color: var(--text);
}

body.theme-dark .schedule-a-source-line {
  color: var(--text-muted);
}

body.theme-dark .schedule-a-source-label {
  color: var(--text);
}

body.theme-dark .schedule-a-flag-reason {
  color: #f2a8b3;
}

body.theme-dark .generated-legal-description-label {
  color: var(--text);
}

body.theme-dark .extracted-legal-row-btn {
  border-color: var(--border);
  background: var(--input-bg);
  color: var(--input-text);
}

body.theme-dark .extracted-legal-modal-textarea {
  border-color: var(--border);
  background: var(--input-bg);
  color: var(--input-text);
}

body.theme-dark .draft-block,
body.theme-dark .draft-editor,
body.theme-dark .tab-rename-input,
body.theme-dark .todo-comment-input,
body.theme-dark .schedule-b-edit-input,
body.theme-dark .property-edit-input {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--input-text);
}

body.theme-dark .draft-side-panel {
  background: var(--bg-hover);
  border-color: var(--border);
}

body.theme-dark .chain-highlight-title,
body.theme-dark .chain-highlight-count {
  color: var(--text-muted);
}

body.theme-dark .chain-highlight-input {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--input-text);
}

body.theme-dark .chain-highlight-input:focus {
  outline: 2px solid var(--accent);
}

body.theme-dark .chain-highlight-mark {
  background: #8a7a12;
  color: #ffffff;
}

body.theme-dark .draft-editor:focus,
body.theme-dark .todo-comment-input:focus,
body.theme-dark .schedule-b-edit-input:focus,
body.theme-dark .property-edit-input:focus,
body.theme-dark .tab-rename-input:focus {
  outline: 2px solid var(--accent);
}

body.theme-dark .followup-btn {
  background: linear-gradient(180deg, #2c3642 0%, #222b36 100%);
  border-color: #4e6073;
  color: #dbe8f6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.34), 0 4px 10px rgba(0, 0, 0, 0.26);
}

body.theme-dark .followup-btn:hover {
  background: linear-gradient(180deg, #334051 0%, #273242 100%);
  border-color: #60758d;
}

body.theme-dark .followup-btn.todo {
  background: linear-gradient(180deg, #213630 0%, #1b2c28 100%);
  border-color: #5f9a82;
  color: #9de0c3;
}

body.theme-dark .followup-btn.todo:hover {
  background: linear-gradient(180deg, #28433b 0%, #223832 100%);
  border-color: #73b798;
}

body.theme-dark .followup-btn.dismiss {
  background: linear-gradient(180deg, #3b292f 0%, #2f2126 100%);
  border-color: #a56172;
  color: #f4a5b6;
}

body.theme-dark .followup-btn.dismiss:hover {
  background: linear-gradient(180deg, #49333a 0%, #3b2a30 100%);
  border-color: #c37a8d;
}

body.theme-dark .bundle-chain-card-btn {
  background: var(--bg-elevated);
  border-color: var(--success);
  color: var(--success);
  box-shadow: none;
}

body.theme-dark .bundle-chain-card-btn:hover {
  background: var(--bg-hover);
}

body.theme-dark .timeline-json-note {
  color: var(--text-muted);
}

body.theme-dark .timeline-loading-text {
  color: var(--text);
}

body.theme-dark .timeline-json-error {
  color: var(--danger);
}

body.theme-dark .timeline-json-card-title {
  color: var(--text);
}

body.theme-dark .timeline-json-textarea {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--input-text);
}

body.theme-dark .timeline-json-textarea:focus {
  outline: 2px solid var(--accent);
}

body.theme-dark .followup-btn.icon-only {
  background: linear-gradient(180deg, #2c3642 0%, #222b36 100%);
  border-color: #4e6073;
  color: #c4d3e3;
}

body.theme-dark .followup-btn.icon-only:hover {
  background: linear-gradient(180deg, #334051 0%, #273242 100%);
  border-color: #60758d;
  color: #e1ebf5;
}

body.theme-dark .reorderable-item:not(.dragging):hover .chain-timeline-card {
  background: var(--selection);
  border-color: var(--accent);
}

body.theme-dark .reorderable-item:not(.dragging):hover .schedule-b-item-card {
  background: var(--selection);
  border-color: var(--accent);
}

body.theme-dark .theme-toggle-btn {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

body.theme-dark .theme-toggle-btn:hover {
  background: var(--bg-hover);
}

body.theme-dark .theme-toggle-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

body.theme-dark .chatgpt-composer {
  background: var(--bg-elevated);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-0.5px);
}

body.theme-dark .chatgpt-composer:hover,
body.theme-dark .chatgpt-composer:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}

body.theme-dark .chatgpt-composer.dragover {
  background: var(--selection);
}

body.theme-dark .chatgpt-composer.has-file {
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}

body.theme-dark .chatgpt-composer.has-file:hover,
body.theme-dark .chatgpt-composer.has-file:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}

body.theme-dark .chatgpt-composer-title {
  color: var(--text-muted);
}

body.theme-dark .chatgpt-composer.has-file .chatgpt-composer-title {
  color: var(--text);
}

body.theme-dark .chatgpt-composer-help {
  color: var(--text-dim);
}

body.theme-dark .composer-action-btn.attach {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

body.theme-dark .composer-action-btn.attach:hover {
  background: var(--bg-hover);
}

body.theme-dark .composer-action-btn.send {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

body.theme-dark .composer-action-btn.send.ready,
body.theme-dark .chatgpt-composer.has-file .composer-action-btn.send {
  background: linear-gradient(
    120deg,
    #6f86a6 0%,
    #8b7ea1 24%,
    #a27f7a 48%,
    #6e9a8a 72%,
    #6f86a6 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  border-color: transparent;
  color: #ffffff;
  animation: send-ready-shift 12s linear infinite;
  box-shadow: 0 4px 12px rgba(3, 6, 10, 0.3);
  will-change: background-position;
}

body.theme-dark .composer-action-btn.send:hover:not([disabled]) {
  filter: brightness(0.92);
}

body.theme-dark .composer-mode-pill {
  background: transparent;
  border-color: transparent;
  color: var(--accent-hover);
}

body.theme-dark .new-search-greeting {
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.46rem 0.58rem 0.6rem;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  position: sticky;
  top: 0.35rem;
  z-index: 140;
  background: rgba(244, 244, 245, 0.58);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #c6d2dd;
  background: #edf3f8;
  color: #1f2933;
  border-radius: 999px;
  padding: 0.36rem 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  max-width: min(560px, 74vw);
  min-height: 2.3rem;
}

.tab.draggable {
  cursor: grab;
}

.tab.draggable:active {
  cursor: grabbing;
}

.tab:hover {
  background: #e3edf6;
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.tab.dragging-tab {
  opacity: 0.52;
}

.tab.drop-target-tab {
  outline: 2px dashed #8fb4cd;
  outline-offset: 2px;
  background: #deebf7;
}

.tab.active.drop-target-tab {
  outline-color: #d6fff1;
  background: #0d8c7b;
}

.tab-button {
  cursor: pointer;
  padding: 0.5rem 0.92rem;
  border-color: #9fbaf4;
  background: #eaf1ff;
  color: #1d4f9f;
}

.tab-button:hover {
  background: #dce8ff;
}

.tab-button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.tab-select-btn {
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  min-width: 0;
  padding: 0.2rem 0.42rem;
  font: inherit;
}

.tab-label {
  max-width: min(370px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.tab-icon-btn {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.tab-icon-btn:hover {
  background: rgba(31, 41, 51, 0.16);
}

.tab.active .tab-icon-btn:hover {
  background: rgba(255, 255, 255, 0.23);
}

.tab-icon-btn.close {
  font-size: 1.08rem;
}

.tab-icon-btn.rename {
  transform: scaleX(-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.tab:hover .tab-icon-btn.rename,
.tab:focus-within .tab-icon-btn.rename {
  opacity: 1;
  pointer-events: auto;
}

.tab.editing {
  cursor: default;
}

.tab-rename-input {
  width: min(280px, 50vw);
  border: 1px solid #8eb7aa;
  border-radius: 7px;
  padding: 0.2rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d3f35;
}

.tab-rename-input:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
}

.tab-indicator {
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.tab-indicator.error {
  background: #ffe3e7;
  color: var(--danger);
}

.tab-spinner {
  width: 0.88rem;
  height: 0.88rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: tab-spin 0.9s linear infinite;
}

.tab:not(.active) .tab-spinner {
  border-color: rgba(31, 41, 51, 0.24);
  border-top-color: currentColor;
}

@keyframes tab-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-form {
  display: grid;
  gap: 0.75rem;
}

.new-search-shell {
  --new-search-viewport-offset: 190px;
  --new-search-bottom-gap: clamp(0.9rem, 2vw, 1.4rem);
  min-height: calc(100vh - var(--new-search-viewport-offset));
  min-height: calc(100dvh - var(--new-search-viewport-offset));
  width: 100%;
  background: transparent;
  padding-bottom: var(--new-search-bottom-gap);
  box-sizing: border-box;
  display: grid;
  align-items: center;
}

.new-search-greeting {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #20242b;
  text-align: center;
}

.chatgpt-search-form {
  width: 100%;
  margin: 0;
}

.new-search-panel {
  display: grid;
  align-items: center;
}

.new-search-hero {
  min-height: auto;
  display: grid;
  align-items: center;
}

.new-search-hero-card {
  min-height: min(560px, calc(100vh - var(--new-search-viewport-offset) - (var(--login-hero-padding) * 2) - var(--new-search-bottom-gap)));
  min-height: min(560px, calc(100dvh - var(--new-search-viewport-offset) - (var(--login-hero-padding) * 2) - var(--new-search-bottom-gap)));
}

.new-search-panel-card {
  width: min(560px, 100%);
  min-height: 0;
  gap: 0.9rem;
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0 auto;
}

.chatgpt-composer {
  border: 1px solid transparent;
  border-radius: 30px;
  background: #ffffff;
  min-height: var(--search-composer-height);
  padding: 1.08rem 1.18rem 0.94rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  transform: translateY(-0.5px);
  transition: box-shadow 140ms ease, background-color 120ms ease, transform 140ms ease;
}

.chatgpt-composer:hover,
.chatgpt-composer:focus-visible {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.chatgpt-composer.dragover {
  background: #f4fbf9;
}

.chatgpt-composer.has-file {
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.chatgpt-composer.has-file:hover,
.chatgpt-composer.has-file:focus-visible {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.chatgpt-composer-content {
  flex: 1;
}

.chatgpt-composer-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.24rem);
  font-weight: 450;
  line-height: 1.22;
  color: #8f97a3;
  word-break: break-word;
}

.chatgpt-composer.has-file .chatgpt-composer-title {
  color: #1f2933;
}

.chatgpt-composer-help {
  margin: 0.42rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.chatgpt-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.chatgpt-composer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chatgpt-composer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.composer-action-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.composer-action-btn svg {
  display: block;
}

.composer-action-btn.attach {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: #384250;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.composer-action-btn.attach:hover {
  background: #eef2f6;
}

.composer-action-btn.send {
  min-height: 2.34rem;
  padding: 0 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #15181f;
  border-color: #15181f;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.composer-action-btn.send.ready,
.chatgpt-composer.has-file .composer-action-btn.send {
  background: linear-gradient(
    120deg,
    #6f86a6 0%,
    #8b7ea1 24%,
    #a27f7a 48%,
    #6e9a8a 72%,
    #6f86a6 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  border-color: transparent;
  color: #ffffff;
  animation: send-ready-shift 12s linear infinite;
  box-shadow: 0 4px 12px rgba(3, 6, 10, 0.28);
  will-change: background-position;
}

.composer-action-btn.send[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.composer-action-btn.send:hover:not([disabled]) {
  filter: brightness(0.95);
}

@keyframes send-ready-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 120% 50%;
  }
}

.composer-mode-pill {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #3b82f6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.composer-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
}

.new-search-shell .status {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.87rem;
}

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.drop-zone {
  border: 2px dashed #b5c2ce;
  border-radius: 12px;
  padding: 1rem 0.9rem;
  background: #f8fbfd;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--primary);
  background: #eef9f5;
  outline: none;
}

.drop-zone.dragover {
  border-color: var(--primary);
  background: #e8f8f1;
  transform: translateY(-1px);
}

.drop-zone.has-file {
  border-color: #30876f;
  background: #ecf8f2;
}

.drop-title {
  margin: 0;
  font-weight: 700;
}

.drop-help {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skill-label-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.primary-btn {
  width: fit-content;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
}

.primary-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.secondary-btn {
  width: fit-content;
  border: 1px solid #c6d4e2;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f9 100%);
  color: #243a50;
  padding: 0.48rem 0.84rem;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.secondary-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e6eef7 100%);
  border-color: #b6c7d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.secondary-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.secondary-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 122, 109, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: grid;
  gap: 0.55rem;
  max-width: min(380px, calc(100vw - 2rem));
}

.toast-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
  padding: 0.62rem 0.7rem;
}

.toast-message {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.toast-dismiss {
  border: 1px solid #cdd7e1;
  border-radius: 7px;
  background: #f7fafc;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.22rem 0.48rem;
  cursor: pointer;
}

.toast-dismiss:hover {
  background: #e9f1f7;
}

.result-loading {
  border: 1px dashed #cdd7e1;
  border-radius: 12px;
  padding: 1rem 0.8rem;
  background: #f8fbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.generating-hero-screen {
  margin-top: 0;
  min-height: calc(100vh - 12.5rem);
  display: grid;
  place-items: center;
  padding: 0.75rem 0;
  opacity: 0;
  animation: generatingHeroFadeIn 3s ease forwards;
}

.generating-hero-card {
  width: min(940px, 100%);
  min-height: min(62vh, 640px);
  display: grid;
  align-content: center;
  gap: 1rem;
}

.generating-hero-title {
  max-width: 17ch;
}

.generating-hero-message {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.04rem, 2.1vw, 1.34rem);
  line-height: 1.35;
  font-weight: 600;
  color: #ffffff;
}

.generating-hero-label {
  margin: 0;
  color: #d4dbe2;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.workspace-loading-screen {
  --workspace-loading-padding: clamp(0.95rem, 3vw, 1.5rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  background: #ffffff;
  padding: var(--workspace-loading-padding);
}

.workspace-loading-hero {
  width: 100%;
  padding: 0;
  min-height: calc(100vh - (var(--workspace-loading-padding) * 2));
  min-height: calc(100dvh - (var(--workspace-loading-padding) * 2));
  display: grid;
  place-items: center;
}

.workspace-loading-card {
  width: min(80vw, 1320px);
  height: min(80vh, calc(100vh - (var(--workspace-loading-padding) * 2)));
  height: min(80dvh, calc(100dvh - (var(--workspace-loading-padding) * 2)));
  margin: 0 auto;
}

@keyframes generatingHeroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.loading-gif {
  width: 190px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.hidden {
  display: none;
}

.error-text {
  color: var(--danger);
  font-weight: 600;
}

.review-error-actions {
  margin-top: 0.75rem;
}

.retry-hero-screen {
  margin-top: 0;
  min-height: calc(100vh - 12.5rem);
  display: grid;
  place-items: center;
  padding: 0.75rem 0;
}

.retry-hero-card {
  width: min(940px, 100%);
  min-height: min(62vh, 640px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.retry-hero-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #ffffff;
}

.retry-hero-actions {
  display: flex;
  justify-content: center;
}

.retry-hero-button {
  min-width: 9rem;
  min-height: 3.15rem;
  font-size: 1rem;
}

.validity {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.valid {
  background: #d8f3e6;
  color: #085e45;
}

.invalid {
  background: #ffe3e7;
  color: var(--danger);
}

.result-card {
  margin-top: 0.2rem;
}

.result-layout {
  display: grid;
  grid-template-columns: var(--result-rail-width) 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: calc(var(--tabs-sticky-clearance) + var(--sidebar-sticky-gap));
}

.analysis-disclaimer {
  margin: 1rem 0 0;
  padding: 0.42rem 0.56rem;
  border-top: 1px solid #dce4eb;
  color: #6b7f91;
  font-size: 0.72rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.result-sidebar {
  --rail-zoom-scale: 1;
  position: sticky;
  top: calc(var(--tabs-sticky-clearance) + var(--sidebar-sticky-gap));
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: calc(100vh - var(--tabs-sticky-clearance) - var(--sidebar-sticky-gap));
  max-height: calc(100vh - var(--tabs-sticky-clearance) - var(--sidebar-sticky-gap));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.1rem;
}

.result-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.quick-view-menu {
  padding: calc(0.8rem * var(--rail-zoom-scale));
  gap: calc(0.45rem * var(--rail-zoom-scale));
}

.quick-view-menu .menu-title {
  margin-bottom: calc(0.2rem * var(--rail-zoom-scale));
  font-size: calc(0.86rem * var(--rail-zoom-scale));
}

.result-sidebar .result-menu.quick-view-toc {
  background: #07090d !important;
  border: 1px solid #1a2028 !important;
  color: #f4f7fb !important;
  box-shadow: 0 8px 18px rgba(3, 6, 10, 0.14) !important;
  transform: none;
  transition: box-shadow 140ms ease;
}

.result-sidebar .result-menu.quick-view-toc:hover {
  box-shadow: 0 10px 20px rgba(3, 6, 10, 0.16) !important;
  transform: none;
}

.result-sidebar .result-menu.quick-view-toc .menu-title {
  color: #ced8e4;
}

.quick-view-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: calc(0.16rem * var(--rail-zoom-scale));
}

.quick-view-toc-item {
  margin: 0;
}

.quick-view-sidebar-action {
  margin-top: 0.42rem;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-view-sidebar-action > button + button {
  margin-top: 0.45rem;
}

.quick-view-chain-analysis-ready {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(
      120deg,
      rgba(124, 155, 213, 0.9) 0%,
      rgba(109, 188, 164, 0.88) 22%,
      rgba(216, 187, 124, 0.86) 46%,
      rgba(204, 136, 132, 0.86) 68%,
      rgba(146, 132, 198, 0.88) 84%,
      rgba(124, 155, 213, 0.9) 100%
    );
  background-size: 240% 100%;
  color: #f8fbff;
  padding: 0.58rem 0.7rem;
  margin-bottom: 0.45rem;
  text-align: left;
  font-size: calc(0.82rem * var(--rail-zoom-scale));
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 20px rgba(3, 6, 10, 0.18);
  animation: quickViewChainAnalysisReadyShift 9s ease-in-out infinite alternate;
}

.quick-view-chain-analysis-ready:hover {
  border-color: rgba(255, 255, 255, 0.28);
  filter: brightness(1.03);
}

.quick-view-chain-analysis-ready-floating {
  position: relative;
  z-index: 3;
  align-self: stretch;
  margin: 0 0 -1.15rem;
}

@keyframes quickViewChainAnalysisReadyShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.quick-view-action-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7fb;
  padding: 0.62rem 0.72rem;
  text-align: left;
  font-size: calc(0.84rem * var(--rail-zoom-scale));
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.quick-view-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.quick-view-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.quick-view-pdf-open {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.62rem 0.72rem;
  text-align: left;
  font-size: calc(0.84rem * var(--rail-zoom-scale));
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.quick-view-pdf-open:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.quick-view-pdf-open:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.quick-view-toc-link {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  display: flex;
  align-items: baseline;
  gap: calc(0.46rem * var(--rail-zoom-scale));
  text-align: left;
  padding: calc(0.2rem * var(--rail-zoom-scale)) 0;
  cursor: pointer;
}

.quick-view-toc-index {
  color: #8fa1b4;
  font-size: calc(0.68rem * var(--rail-zoom-scale));
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: calc(1.45rem * var(--rail-zoom-scale));
  font-variant-numeric: tabular-nums;
}

.quick-view-toc-text {
  color: #f3f6fa;
  font-size: calc(0.85rem * var(--rail-zoom-scale));
  line-height: 1.28;
  font-weight: 400;
}

.quick-view-toc-link:hover {
  background: transparent;
}

.quick-view-toc-link:hover .quick-view-toc-text {
  color: #ffffff;
}

.quick-view-toc-link:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body.theme-dark .result-sidebar .result-menu.quick-view-toc {
  background: #07090d !important;
  border-color: #252d37 !important;
}

.result-sidebar > .result-menu {
  max-height: min(62vh, calc(100vh - 15.5rem));
  overflow-y: auto;
}

.property-float-window {
  position: fixed;
  left: 1rem;
  bottom: 4rem;
  z-index: 90;
  width: min(var(--result-rail-width), calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #05080c 0%, #0c1118 100%);
  color: #f4f8fc;
  box-shadow: 0 18px 34px rgba(3, 6, 10, 0.34);
  padding: 0.72rem 0.78rem 0.68rem;
  display: grid;
  gap: 0.3rem;
  text-align: left;
  cursor: pointer;
}

.property-float-brand {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #b7c9d8;
}

.property-float-label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
}

.property-float-line {
  margin: 0;
  display: grid;
  gap: 0.04rem;
}

.property-float-key {
  font-size: 0.6rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8ba0b4;
}

.property-float-value {
  font-size: 0.76rem;
  line-height: 1.22;
  color: #f6fbff;
  word-break: break-word;
}

.property-float-hint {
  margin-top: 0.08rem;
  font-size: 0.7rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fd2ff;
}

.menu-title {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.menu-btn {
  border: 1px solid #cad5e0;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5fa 100%);
  color: #22384d;
  padding: 0.56rem 0.68rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.05), 0 6px 14px rgba(15, 23, 42, 0.05);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.menu-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8eff7 100%);
  border-color: #b8c8d8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.menu-btn.active {
  background: linear-gradient(135deg, #e5f5f0 0%, #d6ece5 100%);
  border-color: #86b2a3;
  color: #07584b;
  box-shadow: inset 0 0 0 1px rgba(7, 88, 75, 0.08);
}

.menu-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 122, 109, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.title-with-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.title-with-tag > h1,
.title-with-tag > h2,
.title-with-tag > h3,
.title-with-tag > h4,
.title-with-tag > h5,
.title-with-tag > h6,
.title-with-tag > p {
  margin: 0;
  line-height: 1.2;
}

.timeline-head-row {
  margin-top: 0.2rem;
  padding: 0.05rem 0.05rem 0.08rem;
}

.schedule-b-reco-head {
  margin-top: 0.3rem;
}

.schedule-b-reco-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.ai-generated-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd5dd;
  background: #eef1f4;
  color: #4b5663;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.14rem 0.46rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ai-generated-tag.subtle {
  border-color: #c7ced7;
  background: #e8edf2;
  color: #45515e;
  font-weight: 600;
  opacity: 1;
}

body.theme-dark .ai-generated-tag.subtle {
  border-color: #3a414b;
  background: #1a1f26;
  color: #c3ccd6;
  opacity: 1;
}

.todo-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 0.65rem 0.72rem;
}

.todo-summary-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.todo-title {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-right: auto;
}

.todo-count {
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #d8e9f6;
  color: #154e76;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
}

.todo-empty {
  margin: 0.35rem 0 0;
  color: #556575;
  font-size: 0.9rem;
}

.todo-view-btn {
  border: 1px solid #b7c5d4;
  border-radius: 8px;
  background: #f4f8fb;
  color: #22435d;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.2rem 0.58rem;
  cursor: pointer;
}

.todo-view-btn:hover {
  background: #e8f0f7;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.todo-item {
  border: 1px solid #d5dde6;
  border-radius: 9px;
  background: #ffffff;
  padding: 0.5rem 0.55rem;
}

.todo-item.done {
  background: #f6f8fb;
}

.todo-item.done .todo-item-text strong {
  text-decoration: line-through;
  opacity: 0.68;
}

.todo-item.done .todo-source {
  opacity: 0.72;
}

.todo-item-main {
  display: grid;
  gap: 0.38rem;
  width: 100%;
}

.todo-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.todo-done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334960;
}

.todo-done-toggle input {
  margin: 0;
}

.todo-item-text {
  min-width: 0;
}

.todo-item-text strong {
  font-size: 0.9rem;
  line-height: 1.25;
  display: block;
  word-break: break-word;
}

.todo-source {
  font-size: 0.77rem;
  color: #596b7e;
  display: block;
  margin-top: 0.08rem;
}

.todo-comment-wrap {
  display: grid;
  gap: 0.18rem;
}

.todo-comment-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #4d6074;
}

.todo-comment-input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.42rem 0.5rem;
  color: #1f2933;
  font-size: 0.84rem;
  font-family: inherit;
  line-height: 1.28;
  resize: vertical;
}

.todo-comment-input:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
  border-color: #94b7c8;
}

.todo-remove {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid #c4cfda;
  border-radius: 7px;
  background: #f5f8fb;
  color: #2a3b4d;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.42rem;
  cursor: pointer;
}

.todo-remove:hover {
  background: #eaf1f7;
}

.todo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(19, 31, 46, 0.42);
  backdrop-filter: blur(1px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.todo-modal {
  position: relative;
  isolation: isolate;
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow: auto;
  border: 1px solid #cbd6e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  padding: 0.9rem;
}

.todo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.todo-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.todo-modal-close {
  border: 1px solid #bfcbd8;
  border-radius: 8px;
  background: #f7fafc;
  color: #24364a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.54rem;
  cursor: pointer;
}

.todo-modal-close:hover {
  background: #edf3f8;
}

.todo-modal.past-searches-modal {
  width: min(980px, calc(100vw - 2rem));
  height: min(78vh, 860px);
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32) !important;
  color: #edf3f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.past-searches-modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
}

.past-searches-modal-heading {
  display: grid;
  gap: 0.18rem;
}

.past-searches-modal-heading h3 {
  margin: 0;
  color: #ffffff;
}

.past-searches-modal-note {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(237, 243, 249, 0.78);
}

.past-searches-table-shell {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.past-searches-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.8rem;
}

.past-searches-search-field {
  display: grid;
  gap: 0.34rem;
  min-width: min(360px, 100%);
}

.past-searches-search-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(237, 243, 249, 0.76);
}

.past-searches-search-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.4;
  padding: 0.72rem 0.88rem;
}

.past-searches-search-input::placeholder {
  color: rgba(237, 243, 249, 0.46);
}

.past-searches-search-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.18);
  outline-offset: 0;
  border-color: rgba(255, 255, 255, 0.24);
}

.todo-modal.past-searches-modal .past-searches-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04) !important;
}

.past-searches-table {
  width: 100%;
  border-collapse: collapse;
}

.past-searches-table th,
.past-searches-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e3eaf1;
  vertical-align: top;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #ffffff;
}

.todo-modal.past-searches-modal .past-searches-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111111 !important;
  color: rgba(237, 243, 249, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.past-searches-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
}

.past-searches-sort-btn:hover,
.past-searches-sort-btn:focus-visible {
  color: #ffffff;
  outline: none;
}

.past-searches-sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(237, 243, 249, 0.76);
  background: rgba(255, 255, 255, 0.04);
}

.past-searches-sort-btn[data-active="true"] .past-searches-sort-indicator {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.past-searches-actions-header {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.past-searches-table tbody tr:last-child td {
  border-bottom: none;
}

.todo-modal.past-searches-modal .past-searches-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.past-searches-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.past-searches-open-btn {
  border: 1px solid #cad5e0;
  border-radius: 999px;
  background: #ffffff;
  color: #1f3449;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.44rem 0.78rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.past-searches-table tbody tr:hover .past-searches-open-btn,
.past-searches-table tbody tr:focus-within .past-searches-open-btn,
.past-searches-open-btn:focus-visible,
.past-searches-open-btn[data-active="true"] {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.past-searches-open-btn:hover,
.past-searches-open-btn:focus-visible {
  background: #f3f7fb;
  border-color: #b7c7d7;
  outline: none;
}

.past-searches-open-btn:disabled {
  cursor: default;
}

.past-searches-link {
  color: #edf3f9;
  font-weight: 600;
  text-decoration: none;
}

.past-searches-link:hover {
  text-decoration: underline;
}

.past-searches-link-missing {
  color: rgba(237, 243, 249, 0.5);
}

.result-panels {
  display: grid;
  gap: 1rem;
}

.document-pdf-modal-overlay {
  z-index: 10050;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
}

.document-pdf-modal {
  width: min(1180px, calc(100vw - 2rem));
  height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.document-pdf-modal-header {
  margin-bottom: 0;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e0e7ef;
  background: #f8fafc;
}

.document-pdf-modal-copy {
  min-width: 0;
}

.document-pdf-modal-eyebrow {
  margin: 0 0 0.18rem;
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c7c8e;
}

.document-pdf-modal-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #13202f;
  word-break: break-word;
}

.document-pdf-modal-close {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.document-pdf-modal-body {
  min-height: 0;
  background: #dbe4ee;
}

.document-pdf-modal-state {
  height: 100%;
  min-height: 16rem;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  color: #516172;
}

.document-pdf-modal-state-error {
  color: #8b2f2f;
}

.document-pdf-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 8rem);
  border: none;
  background: #ffffff;
}

body.theme-dark .document-pdf-modal {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0c1118;
}

body.theme-dark .document-pdf-modal-header {
  border-bottom-color: #212832;
  background: #0f151d;
}

body.theme-dark .document-pdf-modal-eyebrow {
  color: #96a8bb;
}

body.theme-dark .document-pdf-modal-title {
  color: #edf3fa;
}

body.theme-dark .document-pdf-modal-close {
  border-color: #2b3440;
  background: #131922;
  color: #edf3fa;
}

body.theme-dark .document-pdf-modal-body {
  background: #10161f;
}

body.theme-dark .document-pdf-modal-state {
  color: #b2c0cf;
}

body.theme-dark .document-pdf-modal-state-error {
  color: #f4b2b2;
}

.result-section-block + .result-section-block {
  border-top: 1px solid #d8e0e8;
  padding-top: 1rem;
}

body.theme-dark .result-section-block + .result-section-block {
  border-top-color: var(--border);
}

.result-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
  background: #fcfdff;
}

.chain-panel {
  padding: 0.1rem 0.05rem;
}

.chain-main-grid {
  margin-top: 0.28rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.chain-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.chain-timeline-column {
  min-width: 0;
}

.chain-timeline-panel {
  min-width: 0;
}

.chain-easements-side-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.chain-mortgage-side-panel {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.chain-parties-panel {
  margin-top: 0.68rem;
  padding: 0.68rem 0.8rem 0.74rem;
  border: 1px solid #1a212a;
  border-radius: 12px;
  background: #000000;
  opacity: 0.5;
}

.chain-parties-head {
  margin-bottom: 0.34rem;
}

.chain-parties-heading {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
  color: #ffffff;
}

.chain-parties-list {
  margin: 0;
  padding-left: 0.9rem;
  display: grid;
  gap: 0.22rem;
}

.chain-parties-item {
  line-height: 1.28;
  color: #ffffff;
  font-size: 0.82rem;
}

.chain-parties-item::marker {
  color: #ffffff;
}

.chain-parties-empty {
  margin: 0;
  color: #d7dce2;
  font-size: 0.82rem;
}

.chain-parties-inline-component {
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.46);
  padding: 1rem 1.08rem 1.06rem;
  box-shadow: 0 10px 24px rgba(8, 12, 18, 0.18), 0 2px 6px rgba(8, 12, 18, 0.12);
}

.chain-parties-inline-component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
}

.chain-parties-inline-component-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #ffffff;
}

.chain-parties-inline-component-list {
  margin: 0;
  padding-left: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.chain-parties-inline-component-item {
  font-size: 0.82rem;
  line-height: 1.28;
  color: #ffffff;
}

.chain-parties-inline-component-item::marker {
  color: #ffffff;
}

.chain-parties-inline-component-empty {
  margin: 0;
  color: #d7dce2;
  font-size: 0.82rem;
}

.chain-filter-view {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 0.72rem;
  align-items: start;
}

.chain-filter-sidebar {
  border: 1px solid rgba(26, 33, 42, 0.5);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 0.7rem 0.74rem;
  display: grid;
  gap: 0.56rem;
}

.chain-filter-sidebar-head {
  display: grid;
  gap: 0.46rem;
}

.chain-filter-sidebar-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

.chain-filter-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.chain-filter-action-button {
  appearance: none;
  border: 1px solid rgba(236, 240, 245, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fafc;
  margin: 0;
  padding: 0.34rem 0.64rem;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chain-filter-action-button:hover {
  border-color: rgba(236, 240, 245, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.chain-filter-action-button:focus-visible {
  outline: 2px solid rgba(193, 219, 247, 0.5);
  outline-offset: 2px;
}

.chain-filter-action-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.chain-filter-action-button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #cfd8e4;
}

.chain-filter-label {
  display: grid;
  gap: 0.24rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #cdd4de;
}

.chain-filter-checkbox-list {
  display: grid;
  gap: 0.34rem;
  max-height: 320px;
  overflow: auto;
  padding-right: 0.08rem;
}

.chain-filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  cursor: pointer;
  padding: 0.08rem 0;
}

.chain-filter-checkbox-input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  flex: 0 0 auto;
  border: 2px solid rgba(236, 240, 245, 0.92);
  border-radius: 3px;
  background: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.chain-filter-checkbox-input::after {
  content: "";
  width: 0.2rem;
  height: 0.4rem;
  border-right: 1.5px solid #f7fafc;
  border-bottom: 1.5px solid #f7fafc;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 130ms ease;
}

.chain-filter-checkbox-input:checked {
  border-color: #f7fafc;
  background: rgba(255, 255, 255, 0.08);
}

.chain-filter-checkbox-input:checked::after {
  transform: rotate(45deg) scale(1);
}

.chain-filter-checkbox-input:focus-visible {
  outline: 2px solid rgba(193, 219, 247, 0.46);
  outline-offset: 1px;
}

.chain-filter-checkbox-row:hover .chain-filter-checkbox-input {
  border-color: #ffffff;
}

.chain-filter-checkbox-label {
  font-size: 0.84rem;
  line-height: 1.3;
  color: #8d939b;
  font-weight: 500;
}

.chain-filter-checkbox-input:checked + .chain-filter-checkbox-label {
  color: #e5ecf5;
}

.chain-filter-empty {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.32;
  color: #aeb8c6;
}

.chain-filter-select {
  width: 100%;
  border: 1px solid #2c3642;
  border-radius: 8px;
  background: #0f1319;
  color: #f8fafc;
  padding: 0.38rem 0.48rem;
  font-size: 0.84rem;
  line-height: 1.3;
}

.chain-filter-select:focus {
  outline: 2px solid rgba(168, 196, 232, 0.35);
  outline-offset: 1px;
  border-color: #425165;
}

.chain-filter-summary {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.32;
  color: #aeb8c6;
}

.chain-filter-results {
  min-width: 0;
}

.chain-filter-timeline-cards {
  margin: 0;
}

.chain-filter-source-label {
  margin: 0 0 0.18rem;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5f7081;
}

.chain-judgments-json {
  margin: 0;
  padding: 0.6rem;
  border: 1px solid #d4dbe3;
  border-radius: 10px;
  background: #f5f8fb;
  color: #233242;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.chain-judgments-grid {
  display: grid;
  gap: 0.55rem;
}

.chain-judgments-panel {
  margin-top: 0.68rem;
  padding-top: 0.76rem;
  border-top: 1px solid var(--border);
  background: transparent;
}

.chain-judgments-status {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.chain-judgments-row {
  border: 1px solid #d7e0e8;
  border-radius: 10px;
  background: #f9fbfd;
  padding: 0.52rem 0.6rem;
}

.chain-judgments-row-no-label {
  padding-top: 0;
}

.chain-judgments-key {
  margin: 0 0 0.28rem;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  color: #5e6f7f;
  letter-spacing: 0.01em;
}

.chain-judgments-value {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.chain-judgments-value-full {
  width: 100%;
}

.chain-judgments-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.chain-judgments-card-list {
  display: grid;
  gap: 0.45rem;
}

.chain-judgments-item-card {
  border: 1px solid #ccd7e2;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.9rem;
}

.chain-judgments-item-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0.45rem 0 0;
}

.chain-judgments-object-grid {
  display: grid;
  gap: 0.35rem;
}

.chain-judgments-object-row {
  display: grid;
  gap: 0.14rem;
}

.chain-judgments-object-key {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5e6f7f;
}

.chain-judgments-object-value {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.chain-judgments-empty-value {
  color: var(--muted);
}

.chain-easements-grid {
  gap: 0.2rem;
}

.chain-easements-row {
  display: grid;
  grid-template-columns: minmax(165px, 205px) minmax(0, 1fr);
  align-items: start;
  column-gap: 0.32rem;
  row-gap: 0.04rem;
  padding: 0.2rem 0.26rem;
}

.chain-easements-key {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.08;
}

.chain-easements-value {
  min-width: 0;
}

.chain-easements-row-no-label {
  grid-template-columns: minmax(0, 1fr);
}

.chain-easements-value-full {
  grid-column: 1 / -1;
}

.chain-easements-row .chain-judgments-card-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.18rem;
}

.chain-easements-row .chain-judgments-item-card {
  padding: 0.34rem 0.4rem;
  border-radius: 8px;
}

.chain-easements-row .chain-judgments-object-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem 0.28rem;
}

.chain-easements-row .chain-judgments-object-row {
  gap: 0.03rem;
}

.chain-easements-row .chain-judgments-object-key {
  font-size: 0.69rem;
  line-height: 1.08;
}

.chain-easements-row .chain-judgments-object-value {
  font-size: 0.8rem;
  line-height: 1.2;
}

.chain-easements-row .chain-judgments-item-actions {
  margin: 0.18rem 0 0;
}

.chain-easements-row .chain-judgments-item-actions .followup-btn {
  padding: 0.14rem 0.36rem;
  font-size: 0.72rem;
  line-height: 1.1;
  border-radius: 6px;
}

.chain-compact-group-card {
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: #f7fbff;
  padding: 0.34rem;
}

.chain-compact-group-head {
  margin: 0 0 0.3rem;
}

.chain-compact-group-title {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  color: #5c738a;
}

.chain-compact-card-list {
  display: grid;
  gap: 0.26rem;
}

.chain-compact-item-card {
  border: 1px solid #ccd8e4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.46rem 0.52rem;
}

.chain-compact-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.22rem;
}

.chain-compact-item-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3a5268;
}

.chain-compact-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem 0.34rem;
}

.chain-compact-item-field {
  min-width: 0;
}

.chain-compact-item-field-full {
  grid-column: 1 / -1;
}

.chain-compact-item-key {
  margin: 0;
  font-size: 0.67rem;
  font-weight: 700;
  color: #5a6f84;
}

.chain-compact-item-value {
  margin: 0.04rem 0 0;
  font-size: 0.75rem;
  line-height: 1.22;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.chain-compact-action-btn {
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.14rem 0.32rem;
}

.chain-compact-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.chain-compact-item-actions .followup-btn.chain-compact-action-btn {
  border-radius: 6px;
  border: 1px solid #bcd2c6;
  background: #ebf4ef;
  color: #2f5a4b;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0;
}

.chain-compact-item-actions .followup-btn.chain-compact-action-btn:hover {
  border-color: #a8c1b4;
  background: #e1ede7;
  transform: none;
  box-shadow: none;
}

.chain-easements-side-panel .chain-parties-head,
.chain-mortgage-side-panel .chain-parties-head {
  margin-bottom: 0.24rem;
}

.chain-easements-side-panel .chain-parties-heading,
.chain-mortgage-side-panel .chain-parties-heading {
  font-size: 0.95rem;
  line-height: 1.14;
}

.chain-section-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid #c9d7e5;
  background: #f5f8fc;
  color: #31485f;
  border-radius: 12px;
  padding: 0.48rem 0.8rem;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 2.2rem;
  cursor: pointer;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chain-section-toggle-btn:hover {
  background: #edf2f8;
  border-color: #b7c8d8;
  color: #253a4f;
  transform: none;
  box-shadow: none;
}

.chain-section-toggle-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.chain-section-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 122, 109, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.chain-section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid #c4d1de;
  border-radius: 999px;
  background: #f3f7fb;
  font-size: 0.88rem;
  line-height: 1;
}

.chain-easements-side-panel .chain-judgments-status,
.chain-mortgage-side-panel .chain-judgments-status {
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.chain-easements-timeline-wrap {
  margin: 0 0 0.4rem;
}

.chain-easements-timeline-heading {
  margin: 0 0 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7182;
}

.chain-easements-timeline-cards {
  gap: 0.34rem;
  padding-left: 1rem;
  margin-bottom: 0.2rem;
}

.chain-easements-timeline-cards::before {
  left: 0.3rem;
  top: 0.3rem;
  bottom: 0.3rem;
  border-left-width: 1px;
}

.chain-easements-timeline-card {
  border-radius: 8px;
  padding: 0.4rem 0.46rem;
}

.chain-easements-timeline-card::before {
  left: -0.94rem;
  width: 0.44rem;
  height: 0.44rem;
  border-width: 1.5px;
}

.chain-easements-timeline-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.42rem;
}

.chain-easements-timeline-card .chain-timeline-main p {
  margin: 0.1rem 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

.chain-easements-timeline-card .chain-timeline-title {
  font-size: 0.86rem;
  line-height: 1.28;
}

.chain-easements-timeline-card .timeline-notes-content {
  margin-top: 0.18rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.78rem;
}

.chain-easements-timeline-card .chain-timeline-right .followup-btn {
  padding: 0.14rem 0.36rem;
  font-size: 0.72rem;
  line-height: 1.1;
  border-radius: 6px;
}

.chain-easements-side-panel .chain-judgments-row,
.chain-mortgage-side-panel .chain-judgments-row {
  padding: 0.18rem 0.24rem;
}

.chain-easements-side-panel .chain-judgments-key,
.chain-mortgage-side-panel .chain-judgments-key {
  font-size: 0.68rem;
}

.chain-easements-side-panel .chain-judgments-value,
.chain-mortgage-side-panel .chain-judgments-value {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .chain-easements-row {
    grid-template-columns: 1fr;
  }

  .chain-easements-row .chain-judgments-object-grid {
    grid-template-columns: 1fr;
  }

  .chain-compact-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .chain-top-grid {
    grid-template-columns: 1fr;
  }

  .chain-easements-side-panel {
    margin-top: 0.56rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
  }

  .chain-mortgage-side-panel {
    margin-top: 0.38rem;
    padding-top: 0.52rem;
    border-top: 1px solid var(--border);
  }
}

.generated-legal-description {
  padding: 0.7rem 0.75rem;
}

.generated-legal-description-head {
  margin-top: 0.1rem;
  margin-bottom: 0.4rem;
}

.generated-legal-description-head-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.extracted-legal-description-head {
  margin-top: 1.35rem;
}

.generated-legal-section-title-row {
  margin-bottom: 0.5rem;
}

.generated-legal-description-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.generated-legal-description-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  color: var(--ink);
}

.generated-legal-description-reference {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.32;
  font-weight: 400;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.generated-legal-description-reference-label {
  font-weight: 600;
}

.extracted-legal-descriptions-card {
  margin-top: 0.7rem;
  padding-top: 1.05rem;
}

.schedule-b-generator-card {
  margin-top: 0.55rem;
  padding: 0.68rem 0.72rem;
}

.schedule-b-generate-surface {
  width: 100%;
  min-height: 210px;
  border-radius: 28px;
}

.schedule-b-generate-trigger-card {
  border: 1px solid #d6dde5;
  background: #f3f5f7;
  padding: 1.22rem 1.28rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.schedule-b-generate-trigger-card:hover:not(:disabled) {
  background: #eceff3;
  border-color: #cad2dc;
}

.schedule-b-generate-trigger-card:focus-visible {
  outline: 2px solid rgba(87, 141, 197, 0.34);
  outline-offset: 2px;
}

.schedule-b-generate-trigger-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.schedule-b-generate-trigger-text {
  margin: 0;
  color: #617284;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  line-height: 1.35;
  font-weight: 500;
  max-width: 36ch;
}

.schedule-b-card-loading.schedule-b-generate-surface {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 210px;
}

.schedule-b-generate-hero {
  width: 100%;
  min-height: 210px;
  border-radius: 28px;
  padding: 1.22rem 1.28rem;
  transform: none;
  box-shadow: none;
  align-content: flex-start;
  gap: 0.5rem;
}

.schedule-b-generate-hero-message {
  margin: 0;
  color: #eef2f7;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.34;
  font-weight: 600;
  max-width: 30ch;
}

.chain-analysis-hero-section {
  display: grid;
  gap: 0.55rem;
}

.chain-analysis-hero-trigger {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.chain-analysis-hero-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.chain-analysis-hero-card {
  width: 100%;
  min-height: 210px;
  border-radius: 28px;
  padding: 1.22rem 1.28rem;
  transform: none;
  box-shadow: none;
  align-content: flex-start;
  gap: 0.5rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chain-analysis-hero-trigger:hover:not(:disabled) .chain-analysis-hero-card {
  border-color: rgba(154, 176, 200, 0.34);
  box-shadow: 0 14px 30px rgba(3, 6, 10, 0.22), 0 30px 56px rgba(3, 6, 10, 0.28);
  transform: translateY(-6px);
}

.chain-analysis-hero-detail {
  margin: 0;
  color: #d3dce7;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42ch;
}

.schedule-b-action-card {
  width: 100%;
  border: 1px solid #84bdf2;
  background: linear-gradient(140deg, #edf6ff 0%, #d8eaff 100%);
  border-radius: 12px;
  padding: 0.82rem 0.84rem;
  text-align: left;
  color: #143a62;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 53, 94, 0.12), 0 10px 20px rgba(16, 53, 94, 0.12);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.schedule-b-action-card:hover {
  background: linear-gradient(140deg, #e5f1ff 0%, #cfe4ff 100%);
  border-color: #68a8e7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 53, 94, 0.14), 0 14px 26px rgba(16, 53, 94, 0.14);
}

.schedule-b-action-card:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(16, 53, 94, 0.14);
}

.schedule-b-action-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3), 0 2px 6px rgba(16, 53, 94, 0.16);
}

.schedule-b-action-card[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.schedule-b-card-loading {
  border: 1px dashed #8cbde8;
  border-radius: 10px;
  padding: 1rem 0.95rem;
  background: #eef6ff;
  min-height: 98px;
  display: flex;
  align-items: center;
}

.schedule-b-card-loading-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.schedule-b-generator-card.schedule-b-generator-card-surface {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.schedule-b-generate-error {
  margin: 0 0 0.45rem;
  color: #be2d3e;
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.schedule-b-generated-output {
  margin-top: 0;
}

.schedule-b-exceptions-stack {
  display: grid;
  gap: 0.72rem;
}

.schedule-b-exception-card {
  padding: 1.18rem 1.28rem;
}

.schedule-b-exception-head {
  margin-bottom: 0.88rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid var(--border);
}

.schedule-b-exception-text {
  margin: 0;
  min-height: 0;
  padding: 0.08rem 0 0.18rem;
  line-height: 1.54;
}

#schedule-a-legal-descriptions .schedule-b-exception-card,
#schedule-b-exceptions .schedule-b-exception-card {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18), 0 6px 16px rgba(15, 23, 42, 0.12) !important;
}

#schedule-a-legal-descriptions .schedule-b-exception-head,
#schedule-b-exceptions .schedule-b-exception-head {
  margin-bottom: 0.56rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
}

#schedule-a-legal-descriptions .schedule-b-exception-card .generated-legal-description-label,
#schedule-a-legal-descriptions .schedule-b-exception-card .generated-legal-description-reference,
#schedule-a-legal-descriptions .schedule-b-exception-card .generated-legal-description-reference-label,
#schedule-a-legal-descriptions .schedule-b-exception-card .schedule-b-exception-text,
#schedule-a-legal-descriptions .schedule-b-exception-card .schedule-a-flag-reason,
#schedule-b-exceptions .schedule-b-exception-card .generated-legal-description-label,
#schedule-b-exceptions .schedule-b-exception-card .generated-legal-description-reference,
#schedule-b-exceptions .schedule-b-exception-card .generated-legal-description-reference-label,
#schedule-b-exceptions .schedule-b-exception-card .schedule-b-exception-text,
#schedule-b-exceptions .schedule-b-exception-card .schedule-a-flag-reason {
  color: #ffffff !important;
}

#schedule-a-legal-descriptions .schedule-b-exception-copy-btn,
#schedule-b-exceptions .schedule-b-exception-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  min-height: 2rem;
  padding: 0.24rem 0.72rem !important;
}

#schedule-a-legal-descriptions .schedule-b-exception-copy-btn:hover:not(:disabled),
#schedule-b-exceptions .schedule-b-exception-copy-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.schedule-b-actions-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.schedule-b-refresh-btn {
  font-size: 0.85rem;
}

.schedule-b-copy-btn {
  font-size: 0.85rem;
}

.extracted-legal-list {
  display: grid;
  gap: 0.45rem;
}

.extracted-legal-actions-row {
  margin-top: 0.18rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.extracted-legal-row-btn {
  width: auto;
  max-width: 100%;
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
}

.extracted-legal-modal-overlay {
  background: rgba(7, 11, 18, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.extracted-legal-modal {
  width: min(900px, calc(100vw - 2rem));
}

.extracted-legal-modal.extracted-legal-modal-translucent {
  background: rgba(21, 26, 33, 0.72) !important;
  border: 1px solid rgba(163, 176, 195, 0.34) !important;
  color: #eef2f7 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.extracted-legal-modal.extracted-legal-modal-translucent .todo-modal-header h3 {
  color: #eef2f7;
}

.extracted-legal-modal-textarea {
  width: 100%;
  min-height: 320px;
  margin: 0.1rem 0 0;
  border: 1px solid #cfd8e2;
  border-radius: 9px;
  background: #f9fbfd;
  color: var(--ink);
  padding: 0.65rem;
  font-family: var(--app-font);
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
}

.extracted-legal-modal.extracted-legal-modal-translucent .extracted-legal-modal-textarea {
  background: rgba(10, 14, 20, 0.46) !important;
  border: 1px solid rgba(160, 174, 193, 0.34) !important;
  color: #f3f6fb !important;
}

.extracted-legal-modal-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.chain-analysis-modal-status {
  margin: 0.1rem 0 0;
  min-height: 320px;
  border: 1px solid rgba(160, 174, 193, 0.34);
  border-radius: 9px;
  background: rgba(10, 14, 20, 0.46);
  color: #f3f6fb;
  padding: 0.9rem;
  font-family: var(--app-font);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chain-analysis-modal-status-error {
  color: #ffd1d1;
  border-color: rgba(241, 76, 76, 0.38);
}

.chain-analysis-modal {
  width: min(1040px, calc(100vw - 2rem));
}

.chain-analysis-results {
  display: grid;
  gap: 0.85rem;
}

.chain-analysis-summary-bar {
  border: 1px solid rgba(160, 174, 193, 0.3);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.34);
  padding: 0.9rem 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.chain-analysis-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chain-analysis-summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(160, 174, 193, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  background: rgba(0, 0, 0, 0.22);
  color: #f3f6fb;
}

.chain-analysis-summary-stat.pass {
  border-color: rgba(137, 209, 133, 0.42);
  background: rgba(137, 209, 133, 0.12);
}

.chain-analysis-summary-stat.fail {
  border-color: rgba(241, 76, 76, 0.42);
  background: rgba(241, 76, 76, 0.12);
}

.chain-analysis-summary-stat.other {
  border-color: rgba(160, 174, 193, 0.34);
  background: rgba(160, 174, 193, 0.08);
}

.chain-analysis-summary-stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chain-analysis-summary-stat-value {
  font-size: 0.88rem;
  font-weight: 700;
}

.chain-analysis-summary-nav {
  display: grid;
  gap: 0.4rem;
}

.chain-analysis-summary-nav-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aebad1;
}

.chain-analysis-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.chain-analysis-quick-link {
  border: 1px solid rgba(160, 174, 193, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #f3f6fb;
  padding: 0.28rem 0.62rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chain-analysis-quick-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.chain-analysis-quick-link.pass {
  border-color: rgba(137, 209, 133, 0.42);
  color: #dff5dd;
}

.chain-analysis-quick-link.fail {
  border-color: rgba(241, 76, 76, 0.42);
  color: #ffd9d9;
}

.chain-analysis-quick-link.needs-review {
  border-color: rgba(255, 205, 86, 0.42);
  color: #ffeeb8;
}

.chain-analysis-quick-link.not-applicable,
.chain-analysis-quick-link.unknown {
  border-color: rgba(160, 174, 193, 0.34);
  color: #dfe6ef;
}

.chain-analysis-rule-card {
  border: 1px solid rgba(160, 174, 193, 0.34);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.42);
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.72rem;
}

.chain-analysis-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.chain-analysis-rule-kicker {
  margin: 0 0 0.16rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aebad1;
}

.chain-analysis-rule-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #ffffff;
}

.chain-analysis-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  border-radius: 999px;
  padding: 0.26rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(160, 174, 193, 0.34);
  background: rgba(10, 14, 20, 0.5);
  color: #f3f6fb;
}

.chain-analysis-result-badge.pass {
  border-color: rgba(137, 209, 133, 0.42);
  background: rgba(137, 209, 133, 0.14);
  color: #dff5dd;
}

.chain-analysis-result-badge.fail {
  border-color: rgba(241, 76, 76, 0.42);
  background: rgba(241, 76, 76, 0.14);
  color: #ffd9d9;
}

.chain-analysis-result-badge.needs-review {
  border-color: rgba(255, 205, 86, 0.42);
  background: rgba(255, 205, 86, 0.14);
  color: #ffeeb8;
}

.chain-analysis-result-badge.not-applicable,
.chain-analysis-result-badge.unknown {
  border-color: rgba(160, 174, 193, 0.34);
  background: rgba(160, 174, 193, 0.12);
  color: #dfe6ef;
}

.chain-analysis-rule-field {
  display: grid;
  gap: 0.28rem;
}

.chain-analysis-field-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aebad1;
}

.chain-analysis-field-value {
  margin: 0;
  color: #f3f6fb;
  font-size: 0.92rem;
  line-height: 1.55;
}

.chain-analysis-rich-text {
  border: 1px solid rgba(160, 174, 193, 0.26);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0.78rem 0.82rem;
}

.chain-analysis-documents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.chain-analysis-document-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(115, 165, 223, 0.38);
  background: rgba(22, 86, 150, 0.2);
  color: #e9f4ff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
}

.chain-analysis-document-link:hover {
  background: rgba(22, 86, 150, 0.32);
}

.chain-analysis-exception-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.chain-analysis-exception-head .chain-analysis-field-label {
  flex: 1 1 auto;
}

.chain-analysis-exception-tile {
  border: 1px solid rgba(160, 174, 193, 0.26);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #f3f6fb;
  padding: 0.82rem 0.86rem;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
}

.chain-analysis-exception-tile.is-empty {
  color: #b8c3d6;
  font-style: italic;
}

.chain-exception-panel {
  margin-top: 0.62rem;
  grid-column: 1 / -1;
}

.chain-exception-head {
  padding: 0.05rem 0.05rem 0.08rem;
}

.chain-exception-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
}

.chain-title {
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.chain-view-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.56rem;
}

.chain-view-toggle-btn {
  border: 1px solid #d6dae0;
  background: #ffffff;
  color: #111111;
  border-radius: 12px;
  padding: 0.42rem 0.76rem;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.chain-view-toggle-btn:hover {
  background: #f1f2f4;
  border-color: #cfd4db;
  color: #111111;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.07), 0 10px 22px rgba(15, 23, 42, 0.06);
}

.chain-view-toggle-btn.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.chain-view-toggle-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chain-add-timeline-toggle-btn {
  margin-left: auto;
}

body.theme-dark .chain-view-toggle-btn {
  border-color: #3d4e61;
  background: #1f2732;
  color: #d4deea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.theme-dark .chain-view-toggle-btn:hover {
  background: #263140;
  border-color: #4f647a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28), 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.theme-dark .chain-view-toggle-btn.active {
  background: #f3f4f6;
  border-color: #f3f4f6;
  color: #0b0d10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 24px rgba(0, 0, 0, 0.22);
}

.chain-followup-card {
  margin-top: 0.62rem;
  border: 1px solid #c8d0da;
  border-radius: 10px;
  background: #e7ebf0;
  padding: 0.45rem 0.55rem;
  font-size: 0.93rem;
}

.chain-followup-card h3 {
  margin: 0.42rem 0 0.26rem;
  font-size: 1rem;
}

.chain-followup-card ul {
  margin-top: 0.12rem;
}

.chain-followup-card li {
  margin: 0.22rem 0;
  line-height: 1.34;
}

.followup-list {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
}

.followup-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.46rem 0;
  border-bottom: 1px solid #dde3ea;
}

.followup-item:last-child {
  border-bottom: none;
}

.followup-item-body {
  flex: 1;
  min-width: 0;
}

.followup-item.dismissed .followup-item-body {
  text-decoration: line-through;
  opacity: 0.58;
}

.followup-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.followup-btn {
  border: 1px solid #c7d4e0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6fb 100%);
  color: #31485f;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.22rem 0.52rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.followup-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e9f0f8 100%);
  border-color: #b2c4d6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 8px 14px rgba(15, 23, 42, 0.08);
}

.followup-btn.todo {
  border-color: #9ec9b7;
  background: linear-gradient(180deg, #f7fdfb 0%, #e9f6f0 100%);
  color: #0d5a4b;
}

.followup-btn.dismiss {
  border-color: #d5a9b4;
  background: linear-gradient(180deg, #fff8f9 0%, #f9ecef 100%);
  color: #8f1f34;
}

.followup-btn.icon-only {
  border: 1px solid #d3dce6;
  background: linear-gradient(180deg, #ffffff 0%, #eff4fa 100%);
  padding: 0.12rem 0.2rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.05);
}

.followup-btn.icon-only:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e6edf6 100%);
  border-color: #b7c8d9;
  color: #0f172a;
}

.followup-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 122, 109, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.followup-btn.icon-only[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.chain-review-summary {
  margin-top: 0.7rem;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.chain-main-grid .chain-review-summary {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .chain-main-grid {
    grid-template-columns: 1fr;
  }

  .chain-main-grid .chain-review-summary {
    margin-top: 0.7rem;
  }

  .chain-filter-view {
    grid-template-columns: 1fr;
  }

  .schedule-b-main-grid {
    grid-template-columns: 1fr;
  }
}

.section-strip {
  margin-top: 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #29384b;
}

.chain-review-summary .section-strip:first-child {
  margin-top: 0;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.section-toggle-icon {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 140ms ease;
  flex: 0 0 auto;
  margin-left: 0.1rem;
}

.section-toggle-icon.open {
  transform: rotate(225deg);
}

.action-cards {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.5rem;
}

.action-card {
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.action-card.dismissed {
  opacity: 0.66;
}

.action-card.dismissed h4,
.action-card.dismissed .action-card-body {
  text-decoration: line-through;
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e3e9ef;
}

.action-card-header h4 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.severity-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.severity-dot.high {
  background: #e73939;
}

.severity-dot.moderate {
  background: #edb72f;
}

.severity-dot.low {
  background: #4cbf8f;
}

.severity-pill {
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
  background: transparent;
}

.severity-pill.high {
  border-color: #edc8cf;
  color: #7e1f25;
}

.severity-pill.moderate {
  border-color: #e8d7aa;
  color: #735513;
}

.severity-pill.low {
  border-color: #b9dbc9;
  color: #245d45;
}

.action-card-body {
  padding: 0.44rem 0.6rem;
}

.action-card-body p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.action-card-footer {
  border-top: 1px solid #e3e9ef;
  padding: 0.34rem 0.6rem;
}

.chain-review-summary .followup-list {
  margin-top: 0.2rem;
}

.advisories-compact {
  margin-left: 1rem;
  padding-left: 0.55rem;
  border-left: 1px solid #dbe3eb;
}

.advisories-compact .followup-item {
  padding: 0.35rem 0;
}

.advisories-compact .followup-item-body {
  font-size: 0.88rem;
  line-height: 1.32;
}

.timeline-heading {
  font-size: 1.35rem;
  margin: 0;
}

.chain-timeline-cards {
  display: grid;
  gap: 0.52rem;
  position: relative;
  padding-left: 1.12rem;
}

.chain-timeline-cards::before {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.38rem;
  bottom: 0.38rem;
  border-left: 2px solid #000000;
}

.chain-timeline-card {
  position: relative;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.55rem 0.62rem;
  overflow: visible;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.chain-timeline-card::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  border: 2px solid #000000;
  background: #000000;
  z-index: 2;
}

.chain-timeline-layout {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.chain-timeline-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-timeline-main {
  min-width: 0;
}

.chain-timeline-main p {
  margin: 0.14rem 0;
  font-size: 0.96rem;
  line-height: 1.42;
}

.chain-timeline-title {
  font-weight: 600;
}

.chain-timeline-title-row {
  margin: 0.14rem 0;
}

.chain-timeline-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.chain-timeline-card .schedule-b-item-actions .followup-btn.icon-only {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: auto;
  min-height: auto;
  padding: 0.08rem 0.16rem;
}

.chain-timeline-card .schedule-b-item-actions .followup-btn.icon-only:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.chain-timeline-empty {
  color: #5f7182;
}

.timeline-ai-alert-row {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.timeline-notes-content {
  margin-top: 0.32rem;
  border: 1px solid #d7e4ef;
  background: #f7fbff;
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
  font-size: 0.86rem;
  line-height: 1.38;
  color: #365067;
}

.timeline-note-link {
  color: #0b63b6;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 600;
}

.timeline-note-link:hover {
  color: #084a87;
}

.todo-modal.instrument-reference-modal {
  width: min(880px, calc(100vw - 2rem));
  background: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-dark .todo-modal.instrument-reference-modal {
  background: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  color: #ffffff !important;
}

.todo-modal.instrument-reference-modal .todo-modal-header h3 {
  color: #ffffff;
}

.todo-modal.instrument-reference-modal .todo-modal-close {
  border: none !important;
  background: #ffffff !important;
  color: #111111 !important;
}

.todo-modal.instrument-reference-modal .todo-modal-close:hover {
  background: #f1f2f4 !important;
}

.instrument-reference-content {
  display: grid;
  gap: 0.72rem;
}

.instrument-reference-section {
  border: none;
  border-radius: 12px;
  background: #000000;
  padding: 0.92rem 1rem;
}

.instrument-reference-kicker {
  margin: 0 0 0.18rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.instrument-reference-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
}

.instrument-reference-meta,
.instrument-reference-empty {
  margin: 0.22rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ffffff;
}

.instrument-reference-recording-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 0.65rem;
}

.instrument-reference-recording-row {
  min-width: 0;
}

.instrument-reference-recording-key {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  color: #ffffff;
}

.instrument-reference-recording-value {
  margin: 0.05rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #ffffff;
  word-break: break-word;
}

.instrument-reference-pdf-link {
  margin-top: 0.72rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fd5ff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.instrument-reference-pdf-link:hover {
  color: #c1e4ff;
}

.instrument-reference-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
}

.instrument-reference-list li {
  color: #ffffff;
}

.instrument-reference-list li::marker {
  color: #ffffff;
}

.timeline-ai-recommend-btn {
  border-color: #e6c8ae;
  background: #fffaf5;
}

.timeline-ai-recommendation {
  margin-top: 0.32rem;
  border: 1px solid #eadccc;
  background: #fffaf4;
  border-radius: 8px;
  padding: 0.36rem 0.48rem;
  font-size: 0.86rem;
  line-height: 1.38;
  color: #5a4938;
}

.timeline-ai-recommendation-label {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.timeline-ai-sparkle {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(-0.04em);
}

.timeline-confidence-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e2ec;
  background: #f5f8fb;
  color: #3b4a5b;
  border-radius: 999px;
  padding: 0.08rem 0.44rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.timeline-confidence-badge.high {
  border-color: #b8dfcf;
  background: #e9f7f0;
  color: #1f5f47;
}

.timeline-confidence-badge.medium {
  border-color: #e6dbb2;
  background: #fdf8e8;
  color: #6f5612;
}

.timeline-confidence-badge.low {
  border-color: #e7c9c3;
  background: #fbefed;
  color: #7f2f2a;
}

.timeline-add-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem 0.52rem;
}

.timeline-entry-modal {
  width: min(680px, calc(100vw - 2rem));
}

.timeline-json-note {
  margin: 0 0 0.5rem;
  color: #556779;
  font-size: 0.88rem;
  line-height: 1.35;
}

.timeline-inline-json-card {
  width: calc(100% - 1.12rem);
  margin-left: 1.12rem;
  margin-top: 0.46rem;
  padding: 0.72rem 0.78rem;
}

.timeline-json-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #29435e;
}

.timeline-json-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.timeline-json-textarea {
  width: 100%;
  min-height: 340px;
  border: 1px solid #c9d4df;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.62rem 0.66rem;
  color: #1f2933;
  font-size: 0.82rem;
  line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
}

.timeline-json-textarea:focus {
  outline: 2px solid #c5ddd0;
  outline-offset: 1px;
}

.timeline-add-actions {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.timeline-add-targets {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.5rem;
}

.timeline-add-targets-legend {
  padding: 0;
  font-size: 0.79rem;
  font-weight: 700;
}

.timeline-add-targets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.timeline-add-target-option {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
}

.timeline-add-target-option input {
  margin: 0;
}

.timeline-json-actions {
  margin-top: 0.52rem;
  justify-content: flex-end;
}

.timeline-loading-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-loading-text {
  margin: 0.5rem 0 0;
  color: #365471;
  font-size: 0.92rem;
  font-weight: 600;
}

.timeline-json-error {
  margin: 0 0 0.55rem;
  color: #a72131;
  font-size: 0.88rem;
  line-height: 1.35;
}

.chain-exception-panel .timeline-json-error {
  margin-top: 0.5rem;
}

.chain-exception-loading-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chain-exception-editor {
  margin-top: 0;
}

.bundle-chain-card-btn {
  width: 100%;
  margin-top: 0.55rem;
  margin-left: 0;
  border: 1px solid #cfe1d5;
  border-radius: 12px;
  background: #f2f8f4;
  color: #2c5842;
  padding: 1.12rem 0.9rem;
  min-height: 4.25rem;
  text-align: left;
  display: grid;
  gap: 0.18rem;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.bundle-chain-card-btn:hover {
  background: #ebf4ee;
  border-color: #c4d9cb;
}

.bundle-chain-card-btn:focus-visible {
  outline: 2px solid #c5ddd0;
  outline-offset: 2px;
}

.bundle-chain-card-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.bundle-chain-card-btn.attached-to-timeline {
  width: calc(100% - 1.12rem);
  margin-left: 1.12rem;
  margin-top: 0.46rem;
}

.bundle-chain-card-btn.chain-exception-trigger-btn {
  margin-top: 0;
}

.bundle-chain-card-title {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.2;
}

.bundle-chain-card-subtitle {
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 400;
  font-style: italic;
  opacity: 0.86;
}

.reorderable-item.drop-target .chain-timeline-card {
  outline: 2px dashed #9cb2c7;
  outline-offset: 1px;
  background: #f6fbff;
}

.reorderable-item:not(.dragging):hover .chain-timeline-card {
  background: #eef6ff;
  border-color: #bfd2e6;
}

.chain-timeline {
  font-size: 1.18rem;
  line-height: 1.72;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.chain-timeline li {
  position: relative;
  margin: 0;
  padding: 0.12rem 0 1rem 1.45rem;
}

.chain-timeline li::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.95rem;
  bottom: -0.6rem;
  border-left: 2px solid #b7c7d6;
}

.chain-timeline li::after {
  content: "";
  position: absolute;
  left: 0.16rem;
  top: 0.2rem;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 999px;
  border: 2px solid #0a7a6d;
  background: #f2fffb;
}

.chain-timeline li:last-child {
  padding-bottom: 0.1rem;
}

.chain-timeline li:last-child::before {
  display: none;
}

ul {
  margin-top: 0.3rem;
}

li {
  margin: 0.35rem 0;
}

.draft-block {
  margin: 0.35rem 0;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  height: auto;
  max-height: none;
  overflow: visible;
}

.draft-read-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.draft-side-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f6f9fc;
  padding: 0.65rem;
}

.chain-highlight-tools {
  display: grid;
  gap: 0.5rem;
}

.chain-highlight-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #415467;
}

.chain-highlight-input {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.4rem 0.46rem;
  color: #1f2933;
  font-size: 0.88rem;
  line-height: 1.25;
}

.chain-highlight-input:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
  border-color: #94b7c8;
}

.chain-highlight-count {
  margin: 0;
  font-size: 0.8rem;
  color: #56697c;
}

.chain-highlight-clear-btn {
  justify-self: start;
}

.chain-highlight-mark {
  background: #fff59d;
  color: #1c2630;
  border-radius: 2px;
  padding: 0 0.04rem;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.panel-head-row h3 {
  margin: 0;
}

.schedule-a-wrap {
  display: grid;
  gap: 0.35rem;
}

.schedule-a-head {
  padding: 0.05rem 0.05rem 0.08rem;
}

.schedule-a-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
}

#schedule-a-legal-descriptions .property-tile-title {
  font-size: 1.65rem;
  line-height: 1.2;
}

#schedule-b-exceptions .property-tile-title {
  font-size: 1.65rem;
  line-height: 1.2;
}

.schedule-b-wrap {
  display: grid;
  gap: 0.35rem;
}

.schedule-b-head {
  padding: 0.05rem 0.05rem 0.08rem;
}

.schedule-b-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
}

.property-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 0.72rem 0.78rem;
  min-height: var(--search-composer-height);
  display: grid;
  gap: 0.45rem;
}

.property-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3f51;
}

.property-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.property-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
}

.property-tile-grid p {
  margin: 0;
  font-size: 0.92rem;
  font-family: var(--app-font);
  font-weight: 450;
  letter-spacing: 0;
}

.property-tile-grid p strong {
  font-family: var(--app-font);
  font-weight: 650;
}

.property-tile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.8rem;
}

.property-edit-field {
  display: grid;
  gap: 0.22rem;
}

.property-edit-field span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #4d6074;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.property-edit-input {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.36rem 0.46rem;
  color: #1f2933;
  font-size: 0.88rem;
  line-height: 1.25;
}

.property-edit-input:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
  border-color: #94b7c8;
}

.scope-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 0.72rem 0.78rem;
  display: grid;
  gap: 0.48rem;
}

.scope-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3f51;
}

.scope-tile-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.28rem;
  font-size: 0.9rem;
}

.schedule-b-cards {
  display: grid;
  gap: 0.5rem;
}

.schedule-b-main-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.schedule-b-recommendations,
.schedule-b-advisories-panel {
  min-width: 0;
}

.reorderable-item {
  border-radius: 10px;
}

.reorderable-item.dragging {
  opacity: 0.62;
}

.reorderable-item.drop-target .schedule-b-item-card {
  outline: 2px dashed #9cb2c7;
  outline-offset: 1px;
  background: #f6fbff;
}

.schedule-b-item-card {
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.55rem 0.62rem;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.reorderable-item:not(.dragging):hover .schedule-b-item-card {
  background: #eff8ff;
  border-color: #c0d7ec;
}

.schedule-b-item-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.schedule-b-item-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-b-item-main {
  min-width: 0;
}

.schedule-b-item-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.schedule-b-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
}

.drag-handle {
  font-size: 0.78rem;
  color: #607588;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  cursor: grab;
}

.reorderable-item.dragging .drag-handle {
  cursor: grabbing;
}

.followup-btn.reorder[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-b-edit-icon {
  display: inline-block;
  transform: scaleX(-1);
}

.schedule-b-item-card p {
  margin: 0.14rem 0;
  font-size: 0.9rem;
  line-height: 1.38;
}

.schedule-b-edit-form {
  display: grid;
  gap: 0.34rem;
}

.schedule-b-edit-label {
  display: grid;
  gap: 0.18rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: #405365;
}

.schedule-b-edit-label.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-b-edit-input {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.38rem 0.44rem;
  color: #1f2933;
  font-size: 0.86rem;
  font-family: inherit;
  line-height: 1.28;
}

select.schedule-b-edit-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231f2933' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem 0.5rem;
}

.schedule-b-edit-input:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
  border-color: #94b7c8;
}

.schedule-b-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.schedule-b-item-title {
  font-weight: 600;
}

.schedule-b-item-empty {
  color: #5f7182;
}

.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.timeline-head-row > .panel-head-actions {
  margin-left: auto;
}

.property-tile .panel-head-actions .followup-btn.icon-only {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: auto;
  min-height: auto;
  padding: 0.04rem 0.12rem;
}

.property-tile .panel-head-actions .followup-btn.icon-only:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.schedule-a-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.schedule-a-card-actions {
  width: auto;
  justify-content: flex-end;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.schedule-a-card-tag {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
}

.schedule-a-source-line {
  margin: 0.05rem 0 0.35rem;
  font-size: 0.84rem;
  color: #596c7f;
}

.schedule-a-flag-reason {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #8a2f3d;
  white-space: pre-wrap;
  word-break: break-word;
}

.schedule-a-source-label {
  font-weight: 700;
  color: #425569;
}

.draft-editor {
  width: 100%;
  min-height: 380px;
  margin: 0.35rem 0;
  padding: 0.72rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.4;
  font-family: var(--app-font);
  resize: none;
  overflow: hidden;
}

.draft-editor:focus {
  outline: 2px solid #b8e0d4;
  outline-offset: 1px;
}

.pill-list {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
  margin-left: 0.28rem;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9d7e6;
  border-radius: 999px;
  background: #f3f8fd;
  color: #29435e;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0.16rem 0.48rem;
}

.doc-pill.absent {
  border-color: #dbc8d1;
  background: #f9f2f5;
  color: #63404d;
}

.pill-empty {
  margin-left: 0.28rem;
  color: #607183;
}

@media (max-width: 640px) {
  :root {
    --search-composer-height: 168px;
  }

  .shell {
    margin: 0;
  }

  .card {
    padding: 1rem;
  }

  .card.login-card-shell {
    padding: 0;
  }

  .login-hero,
  .new-search-hero {
    padding: 0.9rem 0.75rem;
  }

  .login-hero-card,
  .new-search-hero-card {
    min-height: calc(100vh - 1.8rem);
    min-height: calc(100dvh - 1.8rem);
    border-radius: 18px;
    padding: 1.05rem 1rem;
    gap: 0.82rem;
  }

  .auth-login-screen .login-title {
    max-width: none;
    font-size: clamp(1.95rem, 8.4vw, 2.65rem);
  }

  .past-searches-modal {
    width: min(100%, calc(100vw - 1.5rem));
    height: min(72vh, 720px);
    padding: 0.85rem;
  }

  .past-searches-search-field {
    min-width: 100%;
  }

  .past-searches-table th,
  .past-searches-table td {
    padding: 0.68rem 0.72rem;
  }

  .past-searches-open-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .result-sidebar {
    position: static;
    min-height: 0;
  }

  .quick-view-chain-analysis-ready-floating {
    margin-bottom: 0.4rem;
  }

  .result-menu {
    position: static;
  }

  .action-card-header h4 {
    font-size: 1.05rem;
  }

  .property-tile-grid {
    grid-template-columns: 1fr;
  }

  .property-tile-edit-grid {
    grid-template-columns: 1fr;
  }

  .timeline-add-form {
    grid-template-columns: 1fr;
  }

  .schedule-b-main-grid {
    grid-template-columns: 1fr;
  }

  .timeline-json-textarea {
    min-height: 260px;
  }

  .property-float-window {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 1.25rem;
    width: auto;
  }

  .chain-main-grid {
    grid-template-columns: 1fr;
  }

  .chain-main-grid .chain-review-summary {
    margin-top: 0.7rem;
  }

  .schedule-a-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-a-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .chatgpt-search-form {
    width: 100%;
  }

  .tab-icon-btn.rename {
    opacity: 1;
    pointer-events: auto;
  }

  .chatgpt-composer {
    min-height: var(--search-composer-height);
    border-radius: 22px;
    padding: 0.88rem 0.84rem 0.82rem;
  }

  .new-search-shell {
    --new-search-viewport-offset: 180px;
    min-height: calc(100vh - var(--new-search-viewport-offset));
    min-height: calc(100dvh - var(--new-search-viewport-offset));
  }

  .new-search-greeting {
    font-size: clamp(1.5rem, 7vw, 2.15rem);
  }

  .chatgpt-composer-title {
    font-size: 1.6rem;
  }

  .composer-action-btn.attach {
    width: 2rem;
    height: 2rem;
  }

  .composer-action-btn.send {
    min-height: 2.2rem;
    padding: 0 0.82rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 960px) {
  .draft-read-layout {
    grid-template-columns: 1fr;
  }
}

/* Flat UI override */
.primary-btn,
.secondary-btn,
.followup-btn,
.todo-view-btn,
.todo-modal-close,
.todo-remove,
.menu-btn,
.result-menu,
.schedule-b-action-card,
.chain-section-toggle-btn,
.chain-section-toggle-icon,
.chain-compact-action-btn {
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

.primary-btn:hover,
.secondary-btn:hover,
.followup-btn:hover,
.todo-view-btn:hover,
.todo-modal-close:hover,
.todo-remove:hover,
.menu-btn:hover,
.result-menu:hover,
.schedule-b-action-card:hover,
.chain-section-toggle-btn:hover,
.chain-compact-action-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.primary-btn:active,
.secondary-btn:active,
.followup-btn:active,
.menu-btn:active,
.result-menu:active,
.chain-section-toggle-btn:active {
  transform: none !important;
  box-shadow: none !important;
}

.result-panel,
.property-tile,
.scope-tile,
.action-card,
.chain-timeline-card,
.schedule-b-item-card,
.todo-panel,
.todo-item,
.todo-modal,
.settings-modal,
.drop-zone,
.toast-item,
.chain-judgments-row,
.chain-judgments-item-card,
.chain-compact-group-card,
.chain-compact-item-card,
.timeline-ai-recommendation,
.timeline-notes-content,
.timeline-confidence-badge,
.timeline-inline-json-card,
.schedule-b-generator-card {
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.chain-compact-table th,
.chain-compact-table td {
  border: none !important;
}

/* Flat Quick View */
.result-sidebar .result-menu {
  background: #f3f6fa !important;
  border: none !important;
  box-shadow: none !important;
}

.result-sidebar .menu-btn {
  background: #e9eef4 !important;
  border: none !important;
  box-shadow: none !important;
  color: #2f4459 !important;
}

.result-sidebar .menu-btn:hover {
  background: #e3e9f1 !important;
  transform: none !important;
  box-shadow: none !important;
}

.result-sidebar .menu-btn.active {
  background: #d5e8df !important;
  color: #1f5748 !important;
  box-shadow: none !important;
}

.result-sidebar .menu-btn:disabled {
  background: #eef2f6 !important;
  color: #7e8fa1 !important;
  opacity: 0.7;
}

body.theme-dark .result-sidebar .result-menu {
  background: #1f2733 !important;
}

body.theme-dark .result-sidebar .menu-btn {
  background: #263241 !important;
  color: #d5e1ef !important;
}

body.theme-dark .result-sidebar .menu-btn:hover {
  background: #2b3949 !important;
}

body.theme-dark .result-sidebar .menu-btn.active {
  background: #2a463d !important;
  color: #c5e8da !important;
}

body.theme-dark .result-sidebar .menu-btn:disabled {
  background: #2a3340 !important;
  color: #8ea0b3 !important;
}

/* Monochrome app pass */
html,
body,
#root,
button,
input,
textarea,
select,
.tab,
.menu-btn,
.followup-btn,
.result-panel,
.property-tile,
.scope-tile,
.action-card,
.chain-timeline-card,
.chain-judgments-json,
.timeline-json-textarea,
.extracted-legal-modal-textarea {
  font-family: var(--app-font) !important;
}

.settings-btn,
.profile-btn,
.menu-btn,
.followup-btn,
.secondary-btn,
.todo-view-btn,
.todo-modal-close,
.todo-remove,
.tab,
.tab-button {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d6dae0 !important;
  box-shadow: none !important;
}

.settings-btn:hover,
.profile-btn:hover,
.menu-btn:hover,
.followup-btn:hover,
.secondary-btn:hover,
.todo-view-btn:hover,
.todo-modal-close:hover,
.todo-remove:hover,
.tab:hover,
.tab-button:hover {
  background: #f1f2f4 !important;
  color: #111111 !important;
  transform: none !important;
}

.menu-btn.active,
.tab.active,
.tab-button.active,
.theme-toggle-btn.active,
.followup-btn.todo {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

.followup-btn.dismiss {
  background: #2d3137 !important;
  color: #ffffff !important;
  border-color: #2d3137 !important;
}

.result-panel,
.property-tile,
.scope-tile,
.action-card,
.chain-timeline-card,
.schedule-b-item-card,
.todo-panel,
.todo-item,
.todo-modal,
.settings-modal,
.drop-zone,
.toast-item,
.chain-judgments-row,
.chain-judgments-item-card,
.chain-compact-group-card,
.chain-compact-item-card,
.timeline-ai-recommendation,
.timeline-notes-content,
.timeline-confidence-badge,
.timeline-inline-json-card,
.schedule-b-generator-card,
.result-menu {
  background: #ffffff !important;
  border: 1px solid #e0e4e9 !important;
  color: #111111 !important;
}

.chain-judgments-json,
.timeline-json-textarea,
.extracted-legal-modal-textarea {
  background: #f6f7f8 !important;
  color: #111111 !important;
  border: 1px solid #d8dde3 !important;
}

.result-sidebar .result-menu {
  background: #f4f5f6 !important;
  border: 1px solid #dfe3e8 !important;
}

.result-sidebar .menu-btn {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d6dae0 !important;
}

.result-sidebar .menu-btn.active {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

body.theme-dark .settings-btn,
body.theme-dark .profile-btn,
body.theme-dark .menu-btn,
body.theme-dark .followup-btn,
body.theme-dark .secondary-btn,
body.theme-dark .todo-view-btn,
body.theme-dark .todo-modal-close,
body.theme-dark .todo-remove,
body.theme-dark .tab,
body.theme-dark .tab-button {
  background: #12151a !important;
  color: #f3f4f6 !important;
  border: 1px solid #2d323a !important;
  box-shadow: none !important;
}

body.theme-dark .menu-btn.active,
body.theme-dark .tab.active,
body.theme-dark .tab-button.active,
body.theme-dark .theme-toggle-btn.active,
body.theme-dark .followup-btn.todo {
  background: #f3f4f6 !important;
  color: #0b0d10 !important;
  border-color: #f3f4f6 !important;
}

body.theme-dark .followup-btn.dismiss {
  background: #6d737b !important;
  color: #ffffff !important;
  border-color: #6d737b !important;
}

body.theme-dark .result-panel,
body.theme-dark .property-tile,
body.theme-dark .scope-tile,
body.theme-dark .action-card,
body.theme-dark .chain-timeline-card,
body.theme-dark .schedule-b-item-card,
body.theme-dark .todo-panel,
body.theme-dark .todo-item,
body.theme-dark .todo-modal,
body.theme-dark .settings-modal,
body.theme-dark .drop-zone,
body.theme-dark .toast-item,
body.theme-dark .chain-judgments-row,
body.theme-dark .chain-judgments-item-card,
body.theme-dark .chain-compact-group-card,
body.theme-dark .chain-compact-item-card,
body.theme-dark .timeline-ai-recommendation,
body.theme-dark .timeline-notes-content,
body.theme-dark .timeline-confidence-badge,
body.theme-dark .timeline-inline-json-card,
body.theme-dark .schedule-b-generator-card,
body.theme-dark .result-menu {
  background: #101317 !important;
  color: #f2f3f5 !important;
  border: 1px solid #2a3038 !important;
}

body.theme-dark .chain-judgments-json,
body.theme-dark .timeline-json-textarea,
body.theme-dark .extracted-legal-modal-textarea {
  background: #161b22 !important;
  color: #f2f3f5 !important;
  border: 1px solid #303842 !important;
}

body.theme-dark .result-sidebar .result-menu {
  background: #101317 !important;
  border: 1px solid #2a3038 !important;
}

body.theme-dark .result-sidebar .menu-btn {
  background: #12151a !important;
  color: #f2f3f5 !important;
  border: 1px solid #2d323a !important;
}

body.theme-dark .result-sidebar .menu-btn.active {
  background: #f3f4f6 !important;
  color: #0b0d10 !important;
  border-color: #f3f4f6 !important;
}

/* New Search tab button gradient style */
.tabs .tab-button {
  background: linear-gradient(120deg, #7f85ae 0%, #9a86a2 52%, #ac8c83 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(82, 87, 117, 0.36) !important;
  box-shadow: 0 6px 12px rgba(35, 42, 62, 0.12) !important;
}

.tabs .tab-button:hover {
  background: linear-gradient(120deg, #7a80a8 0%, #95819d 52%, #a7887f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(75, 81, 110, 0.42) !important;
}

.tabs .tab-button.active {
  background: linear-gradient(120deg, #72789f 0%, #907a97 52%, #9f7f77 100%) !important;
  color: #ffffff !important;
  border-color: rgba(66, 72, 99, 0.5) !important;
}

body.theme-dark .tabs .tab-button {
  background: linear-gradient(120deg, #7f85ae 0%, #9a86a2 52%, #ac8c83 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(111, 119, 160, 0.44) !important;
}

body.theme-dark .tabs .tab-button:hover {
  background: linear-gradient(120deg, #7a80a8 0%, #95819d 52%, #a7887f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(114, 121, 164, 0.5) !important;
}

body.theme-dark .tabs .tab-button.active {
  background: linear-gradient(120deg, #72789f 0%, #907a97 52%, #9f7f77 100%) !important;
  color: #ffffff !important;
  border-color: rgba(106, 113, 153, 0.56) !important;
}

/* Search page: force New Search tab to black when active. */
.tabs .tab-button.new-search-active,
.tabs .tab-button.new-search-active:hover,
body.theme-dark .tabs .tab-button.new-search-active,
body.theme-dark .tabs .tab-button.new-search-active:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  box-shadow: none !important;
}

/* Floating property card treatment */
.result-content .property-tile {
  border: 1px solid #e3e8ef !important;
  border-radius: 16px !important;
  background: #fbfcfe !important;
  padding: 0.7rem 0.9rem !important;
  min-height: 0 !important;
  gap: 0.28rem !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transform: none;
  transition: none;
}

.result-content .property-tile .property-tile-grid {
  gap: 0.24rem 0.72rem;
}

body.theme-dark .result-content .property-tile {
  border-color: #2a3038 !important;
  background: #101317 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

/* Keep all app typography aligned with the search page font stack. */
html,
body,
#root,
#root * {
  font-family: var(--app-font) !important;
}


/* Add Timeline modal: larger surface + same typography and white action buttons. */
.timeline-entry-modal {
  width: 80vw !important;
  max-width: calc(100vw - 2rem) !important;
  height: auto !important;
  max-height: calc(100vh - 2rem) !important;
  padding: 1.35rem 1.4rem !important;
  background: rgba(0, 0, 0, 0.7) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .timeline-entry-modal {
    width: calc(100vw - 2rem) !important;
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
  }
}

.timeline-entry-modal,
.timeline-entry-modal * {
  font-family: var(--app-font) !important;
}

.timeline-entry-modal .todo-modal-header h3,
.timeline-entry-modal .schedule-b-edit-label,
.timeline-entry-modal .timeline-add-targets-legend,
.timeline-entry-modal .timeline-add-target-option {
  color: #ffffff !important;
}

.timeline-entry-modal .schedule-b-edit-input {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.timeline-entry-modal select.schedule-b-edit-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.25rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9rem center !important;
  background-size: 0.75rem 0.5rem !important;
}

.timeline-entry-modal .schedule-b-edit-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.timeline-entry-modal .schedule-b-edit-input option {
  background: #111111;
  color: #ffffff;
}

.timeline-entry-modal .timeline-add-target-option {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.timeline-entry-modal .timeline-add-target-option input {
  accent-color: #ffffff;
}

.timeline-entry-modal .followup-btn,
.timeline-entry-modal .todo-modal-close {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d6dae0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  padding: 0.42rem 0.76rem !important;
}

.timeline-entry-modal .followup-btn:hover,
.timeline-entry-modal .todo-modal-close:hover {
  background: #f1f2f4 !important;
  color: #111111 !important;
  border-color: #cfd4db !important;
}

.timeline-entry-modal .followup-btn.todo,
.timeline-entry-modal .followup-btn.dismiss {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d6dae0 !important;
}

body.theme-dark .timeline-entry-modal .followup-btn,
body.theme-dark .timeline-entry-modal .todo-modal-close,
body.theme-dark .timeline-entry-modal .followup-btn.todo,
body.theme-dark .timeline-entry-modal .followup-btn.dismiss {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d6dae0 !important;
}

/* Schedule A generated legal description card. */
#schedule-a-legal-descriptions.chain-judgments-panel {
  margin-top: 1.4rem !important;
  padding-top: 1rem !important;
  border-top: none !important;
}

#schedule-b-exceptions.chain-judgments-panel {
  margin-top: 1.8rem !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* Judgment Search results panel: single outer card, 50% black, white text. */
.chain-judgments-primary-heading-row {
  margin: 1.1rem 0 0.44rem !important;
}

.chain-judgments-primary-title,
body.theme-dark .chain-judgments-primary-title {
  font-size: 1.65rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.chain-judgments-primary-panel {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  padding: 1.06rem 1.12rem !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18), 0 6px 16px rgba(15, 23, 42, 0.12) !important;
}

.chain-judgments-primary-panel .chain-parties-head {
  margin-bottom: 0.44rem !important;
}

.chain-judgments-primary-panel .chain-parties-heading {
  font-size: 1.12rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.chain-judgments-primary-panel .chain-judgments-status {
  margin-bottom: 0.56rem !important;
  font-size: 0.98rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.chain-judgments-primary-panel .chain-judgments-grid {
  gap: 0.6rem !important;
}

.chain-judgments-primary-panel .chain-judgments-card-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 0.6rem !important;
}

.chain-judgments-primary-panel .chain-judgments-item-card {
  padding: 0.78rem 0.82rem !important;
}

.chain-judgments-primary-panel .chain-judgments-item-card,
.chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-object-key,
.chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-object-value,
.chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-empty-value,
.chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-list li,
.chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-list li::marker,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-object-key,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-object-value,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-empty-value,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-list li,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-item-card .chain-judgments-list li::marker {
  color: #000000 !important;
}

.chain-judgments-primary-panel .chain-judgments-object-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.48rem;
}

.chain-judgments-primary-panel .chain-judgments-object-row {
  min-width: 0;
}

.chain-judgments-primary-panel .chain-judgments-row {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.chain-judgments-primary-panel .chain-judgments-key {
  margin-bottom: 0.22rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.chain-judgments-primary-panel .chain-judgments-value {
  font-size: 0.9rem !important;
  line-height: 1.34 !important;
}

.chain-judgments-primary-panel .chain-judgments-list {
  gap: 0.26rem !important;
  padding-left: 1.08rem !important;
}

.chain-judgments-primary-panel .chain-judgments-list li,
.chain-judgments-primary-panel .chain-judgments-list li::marker {
  color: #ffffff !important;
}

.chain-judgments-primary-panel,
.chain-judgments-primary-panel .chain-parties-heading,
.chain-judgments-primary-panel .chain-judgments-status,
.chain-judgments-primary-panel .chain-judgments-key,
.chain-judgments-primary-panel .chain-judgments-value,
.chain-judgments-primary-panel .chain-judgments-object-key,
.chain-judgments-primary-panel .chain-judgments-object-value,
.chain-judgments-primary-panel .chain-judgments-empty-value,
.chain-judgments-primary-panel .chain-parties-empty,
body.theme-dark .chain-judgments-primary-panel,
body.theme-dark .chain-judgments-primary-panel .chain-parties-heading,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-status,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-key,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-value,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-object-key,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-object-value,
body.theme-dark .chain-judgments-primary-panel .chain-judgments-empty-value,
body.theme-dark .chain-judgments-primary-panel .chain-parties-empty {
  color: #ffffff !important;
}

.chain-mortgage-records-heading-row {
  margin: 1.1rem 0 0.44rem !important;
}

@media (max-width: 900px) {
  .chain-judgments-primary-panel .chain-judgments-card-list,
  .chain-judgments-primary-panel .chain-judgments-object-grid {
    grid-template-columns: 1fr !important;
  }
}

.chain-mortgage-records-title,
body.theme-dark .chain-mortgage-records-title {
  font-size: 1.65rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.chain-mortgage-records-panel {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.chain-mortgage-records-panel .chain-judgments-grid {
  gap: 0.66rem;
}

.chain-mortgage-records-panel .chain-judgments-row {
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

.chain-mortgage-records-panel .chain-judgments-row + .chain-judgments-row {
  padding-top: 0.57rem;
  border-top: 1px solid #d8e0e8;
}

body.theme-dark .chain-mortgage-records-panel .chain-judgments-row + .chain-judgments-row {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.chain-mortgage-records-panel .chain-compact-card-list {
  gap: 0.55rem;
}

.chain-mortgage-records-panel .chain-compact-item-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.chain-mortgage-records-panel .chain-compact-item-actions {
  margin-top: 0.22rem;
}

.chain-mortgage-records-panel .chain-judgments-status,
.chain-mortgage-records-panel .chain-parties-empty {
  color: #111111 !important;
}

.chain-mortgage-items-tile {
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(136, 136, 136, 0.94), rgba(125, 125, 125, 0.98));
  box-shadow: none;
  padding: 1.25rem 1.35rem;
}

.chain-mortgage-items-tile .chain-judgments-card-list {
  justify-items: start;
  gap: 0.16rem;
}

.chain-mortgage-items-tile .chain-judgments-item-card {
  border: none !important;
  border-radius: 8px;
  background: #000000 !important;
  padding: 0.92rem 1.04rem;
  width: fit-content;
  max-width: min(100%, 1200px);
}

.chain-mortgage-items-tile .chain-judgments-object-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
  gap: 0.08rem 0.75rem;
}

.chain-mortgage-items-tile .chain-judgments-object-row {
  gap: 0.02rem;
}

.chain-mortgage-items-tile .chain-judgments-object-key {
  font-size: 0.68rem;
  line-height: 1.06;
}

.chain-mortgage-items-tile .chain-judgments-object-value {
  font-size: 0.8rem;
  line-height: 1.14;
}

.chain-mortgage-items-tile,
.chain-mortgage-items-tile .chain-judgments-key,
.chain-mortgage-items-tile .chain-judgments-value,
.chain-mortgage-items-tile .chain-judgments-object-key,
.chain-mortgage-items-tile .chain-judgments-object-value,
.chain-mortgage-items-tile .chain-judgments-empty-value,
.chain-mortgage-items-tile .chain-judgments-list li,
.chain-mortgage-items-tile .chain-judgments-list li::marker {
  color: #ffffff !important;
}

.chain-mortgage-items-tile .chain-judgments-item-card,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-key,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-value,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-object-key,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-object-value,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-empty-value,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-list li,
.chain-mortgage-items-tile .chain-judgments-item-card .chain-judgments-list li::marker {
  color: #ffffff !important;
}

#schedule-a-legal-descriptions .generated-legal-description-copy-btn {
  min-width: 5rem;
  justify-content: center;
}

.schedule-b-actions-row .schedule-b-refresh-btn,
.schedule-b-actions-row .schedule-b-copy-btn {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d6dae0 !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.schedule-b-actions-row .schedule-b-refresh-btn:hover,
.schedule-b-actions-row .schedule-b-copy-btn:hover {
  background: #f1f2f4 !important;
  border-color: #cfd4db !important;
  box-shadow: none !important;
  transform: none !important;
}

.workspace-result-loading {
  display: grid;
  place-items: center;
  min-height: 40vh;
  padding: 2rem;
  color: #344054;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
