:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f9;
  --ink: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --black: #050505;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.10), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: -0.01em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(22px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px;
  border-radius: 18px;
}

.brand:hover {
  background: var(--surface-soft);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: var(--black);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  text-align: left;
  transition: 0.18s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: #111827;
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(17, 24, 39, 0.07);
  color: inherit;
  font-weight: 700;
}

.nav-item.is-active .nav-icon,
.nav-item:hover .nav-icon {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.sidebar-card strong,
.sidebar-card span {
  display: block;
}

.sidebar-card strong {
  margin: 8px 0;
}

.sidebar-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.main-shell {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4px 22px;
  background: linear-gradient(to bottom, rgba(245, 247, 251, 0.96) 70%, rgba(245, 247, 251, 0));
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 0 14px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.search-box span {
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  border: 0;
  border-radius: 999px;
  transition: 0.18s ease;
  white-space: nowrap;
}

.primary-button {
  background: var(--black);
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.23);
}

.secondary-button {
  background: #eaf1ff;
  color: #1d4ed8;
  padding: 12px 18px;
}

.secondary-button:hover {
  background: #dbeafe;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 11px 16px;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: var(--surface-soft);
}

.text-button {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
  font-weight: 700;
}

.full {
  width: 100%;
}

.view {
  display: none;
  animation: fadeUp 0.26s ease both;
}

.view.is-visible {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  min-height: 390px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(17, 24, 39, 0.88)),
    var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -45% auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.34), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 740px;
}

.hero-copy h2 {
  margin: 20px 0 16px;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill.dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pipeline-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px);
}

.pipeline-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.pipeline-step span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--black);
  font-weight: 900;
}

.pipeline-step strong {
  font-size: 15px;
}

.pipeline-step small {
  color: rgba(255, 255, 255, 0.62);
}

.pipeline-line {
  width: 2px;
  height: 18px;
  margin-left: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.metric-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.metric-card span,
.metric-card small,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  margin: 10px 0 4px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card small {
  color: var(--muted);
}

.metric-card.accent {
  background: #eef6ff;
}

.metric-card.warning {
  background: #fff7ed;
}

.metric-card.danger {
  background: #fff1f2;
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header.large {
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-header h2,
.panel-header h3,
.report-header h2,
.case-detail-header h2,
.workspace-header h2 {
  margin: 5px 0 0;
  letter-spacing: -0.04em;
}

.panel-header h3 {
  font-size: 21px;
}

.panel-header p:not(.eyebrow),
.report-header p,
.case-detail-header p,
.workspace-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dark-panel {
  background: #111827;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-panel .panel-header p:not(.eyebrow),
.dark-panel p,
.dark-panel small {
  color: rgba(255, 255, 255, 0.66);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.case-table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.5fr 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.table-row:hover:not(.table-head) {
  border-color: #c7d2fe;
  background: #f8fbff;
}

.table-row span strong,
.table-row span small {
  display: block;
}

.table-row span small {
  margin-top: 4px;
  color: var(--muted);
}

.table-head {
  min-height: auto;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}

.badge.low {
  background: #ecfdf5;
  color: #047857;
}

.badge.medium {
  background: #fff7ed;
  color: #c2410c;
}

.badge.high {
  background: #fef2f2;
  color: #b91c1c;
}

.badge.status {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge.neutral {
  background: #f3f4f6;
  color: #374151;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight-list article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-list strong,
.insight-list p {
  display: block;
  margin: 0;
}

.insight-list p {
  margin-top: 7px;
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 18px;
  align-items: start;
}

.public-form-shell,
.side-explainer {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.public-form-shell {
  padding: 26px;
}

.public-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.public-form-header strong,
.public-form-header small {
  display: block;
}

.public-form-header small {
  margin-top: 4px;
  color: var(--muted);
}

.stepper {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.step-dot {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.step-dot.is-active,
.step-dot.is-complete {
  background: var(--black);
  color: #fff;
}

.intake-form h2 {
  margin: 8px 0 20px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: 16px;
  animation: fadeUp 0.2s ease both;
}

label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

textarea {
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.choice-card small {
  display: block;
}

.choice-card span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.choice-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-success {
  display: none;
  padding: 30px;
  text-align: center;
  border-radius: 24px;
  background: #ecfdf5;
  color: #065f46;
}

.form-success.is-visible {
  display: block;
}

.form-success h2 {
  margin: 14px 0 8px;
}

.form-success p {
  color: #047857;
  line-height: 1.7;
}

.success-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.side-explainer {
  position: sticky;
  top: 112px;
  padding: 26px;
}

.side-explainer h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.side-explainer p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.flow-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.flow-stack div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: var(--surface-soft);
  font-weight: 800;
}

.flow-stack span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 9px 13px;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.75fr 0.75fr 0.85fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: 0.16s ease;
}

.case-card:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

.case-card strong,
.case-card small {
  display: block;
}

.case-card small,
.case-card p {
  color: var(--muted);
}

.case-card p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.case-card button {
  justify-self: end;
}

.case-detail-header,
.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.header-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.timeline-item > span {
  position: relative;
  margin-top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.timeline-item:not(:last-child) > span::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 5px;
  width: 2px;
  height: calc(100% + 34px);
  background: var(--line);
}

.timeline-item strong,
.timeline-item p {
  display: block;
  margin: 0;
}

.timeline-item p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.info-grid small,
.info-grid strong {
  display: block;
}

.info-grid small {
  color: var(--muted);
  margin-bottom: 5px;
}

.info-grid strong {
  font-size: 14px;
}

.mini-score {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag-group span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.evidence-box {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.evidence-thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5e7eb, #bfdbfe);
  color: #1f2937;
  font-weight: 900;
}

.evidence-box p,
.evidence-box strong {
  margin: 0;
}

.evidence-box p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.next-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.next-actions h4,
.handoff-card h4 {
  margin: 0;
}

.next-actions label,
.action-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.next-actions input,
.action-list input {
  width: auto;
}

.ai-summary {
  padding: 16px;
  border-radius: 18px;
  background: #eff6ff;
}

.ai-summary span {
  display: inline-block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-summary p {
  margin: 0;
  color: #1e3a8a;
  line-height: 1.75;
}

.handoff-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.handoff-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.micro-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.vendor-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.vendor-inbox {
  display: grid;
  gap: 12px;
}

.vendor-ticket {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.vendor-ticket.is-selected {
  border-color: var(--blue);
  background: #eff6ff;
}

.vendor-ticket strong,
.vendor-ticket span {
  display: block;
}

.vendor-ticket span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card {
  padding: 17px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid transparent;
}

.workspace-card.emphasized {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.workspace-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 8px;
}

.workspace-card p {
  margin: 0;
  line-height: 1.75;
}

.thread-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
}

.thread-message {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.thread-message.from-vendor {
  justify-self: end;
  background: #111827;
  color: #fff;
}

.thread-message strong,
.thread-message p {
  display: block;
  margin: 0;
}

.thread-message p {
  margin-top: 6px;
  line-height: 1.65;
  color: inherit;
  opacity: 0.82;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bar-chart {
  display: grid;
  gap: 13px;
}

.bar-chart div {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.bar-chart div::before {
  content: "";
  height: 12px;
  width: calc(var(--value) * 1%);
  grid-column: 2;
  grid-row: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.bar-chart span {
  grid-column: 1;
  color: var(--muted);
  font-weight: 800;
}

.bar-chart strong {
  grid-column: 3;
  justify-self: end;
}

.horizontal-chart {
  display: grid;
  gap: 14px;
}

.horizontal-chart div {
  display: grid;
  grid-template-columns: 160px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.horizontal-chart span {
  color: var(--muted);
  font-weight: 800;
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.voc-list,
.action-list {
  display: grid;
  gap: 12px;
}

.voc-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.voc-list article span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.voc-list strong,
.voc-list p {
  margin: 0;
}

.voc-list p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.action-list label {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 12px;
  }

  .brand span:not(.brand-mark),
  .nav-item span:not(.nav-icon),
  .sidebar-card {
    display: none;
  }

  .brand,
  .nav-item {
    justify-content: center;
  }

  .hero-card,
  .two-column,
  .split-layout,
  .detail-grid,
  .vendor-layout,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .side-explainer {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    display: flex;
    margin: 0;
    gap: 8px;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
  }

  .main-shell {
    padding: 16px;
  }

  .topbar,
  .case-detail-header,
  .report-header,
  .workspace-header {
    position: static;
    display: grid;
  }

  .topbar-actions,
  .workspace-actions {
    justify-content: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .hero-card,
  .panel,
  .public-form-shell,
  .side-explainer,
  .case-detail-header,
  .report-header {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .metric-grid,
  .choice-grid,
  .workspace-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .table-row,
  .case-card {
    grid-template-columns: 1fr;
  }

  .thread-message {
    max-width: 100%;
  }

  .horizontal-chart div,
  .bar-chart div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-chart div::before {
    grid-column: 1;
    grid-row: auto;
  }
}
