:root {
  color-scheme: light;
  --navy: #071522;
  --navy-2: #0d2030;
  --blue: #1266f1;
  --blue-2: #62b4ff;
  --blue-soft: #edf5ff;
  --green: #2aa575;
  --green-soft: #eefaf6;
  --ink: #101722;
  --body: #445061;
  --muted: #8993a3;
  --line: #dfe5ee;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --radius: 18px;
  --radius-lg: 24px;
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 7%, rgba(18, 102, 241, 0.08), transparent 19rem),
    linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
  font-family: var(--font);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 0 14px 40px;
}

.service-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 0 -14px 8px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(16, 23, 34, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.service-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.shield-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.shield-icon svg,
.bell-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
}

.bell-icon {
  width: 22px;
  height: 22px;
}

.bell-button span {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.client-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  margin: 0 10px 8px;
}

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

h1 {
  margin-bottom: 6px;
  font-family: "SF Pro Display", var(--font);
  font-size: 34px;
  font-weight: 760;
  line-height: 1.02;
}

.client-header p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.32;
}

.case-file-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
}

.file-icon,
.metric-icon,
.row-icon,
.focus-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.file-icon {
  width: 18px;
  height: 20px;
  border: 2px solid var(--blue);
  border-radius: 3px;
}

.file-icon::before {
  content: "";
  width: 8px;
  height: 2px;
  box-shadow: 0 5px 0 var(--blue), 0 10px 0 var(--blue);
  background: var(--blue);
}

.status-card {
  overflow: hidden;
  margin-bottom: 12px;
  padding: 16px 15px 13px;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(98, 180, 255, 0.22), transparent 15rem),
    linear-gradient(155deg, var(--navy) 0%, #07111b 100%);
  box-shadow: 0 16px 42px rgba(7, 21, 34, 0.2);
}

.status-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
}

.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.stage-label span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.stage-copy h2 {
  margin-bottom: 7px;
  font-family: "SF Pro Display", var(--font);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.12;
}

.stage-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 13px;
  line-height: 1.45;
}

.progress-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
}

.stage-position-card {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 112px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.stage-position-card small,
.stage-position-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.stage-position-card strong {
  color: #fff;
  font-family: "SF Pro Display", var(--font);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.1;
}

.progress-card svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.progress-card circle {
  fill: none;
  stroke-width: 8;
}

.track {
  stroke: rgba(255, 255, 255, 0.15);
}

.meter {
  stroke: var(--blue-2);
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(98, 180, 255, 0.48));
}

.progress-number {
  position: absolute;
  display: grid;
  gap: 2px;
  text-align: center;
}

.progress-number strong {
  color: #fff;
  font-family: "SF Pro Display", var(--font);
  font-size: 25px;
  font-weight: 780;
}

.progress-number span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.status-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.status-metrics article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-metrics article + article {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-icon {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-metrics small,
.status-metrics strong {
  display: block;
}

.status-metrics small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.status-metrics strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.panel,
.evidence-panel,
.focus-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.evidence-panel {
  margin-bottom: 12px;
  padding: 13px 12px 11px;
}

.panel-heading {
  margin-bottom: 9px;
}

.panel-heading.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-family: "SF Pro Display", var(--font);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
}

.panel-heading a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.evidence-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.evidence-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 58px;
  padding: 7px;
  background: #fff;
}

.evidence-row + .evidence-row {
  border-top: 1px solid var(--line);
}

.row-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.row-icon::before,
.row-icon::after,
.focus-icon::before,
.focus-icon::after {
  content: "";
  position: absolute;
}

.row-icon.document::before {
  width: 16px;
  height: 20px;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.row-icon.document::after {
  width: 12px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 6px 0 var(--blue);
}

.row-icon.lawyer::before,
.focus-icon.person::before {
  top: 9px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.row-icon.lawyer::after,
.focus-icon.person::after {
  bottom: 8px;
  width: 21px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.row-icon.fingerprint::before {
  width: 15px;
  height: 22px;
  border: 2px solid var(--blue);
  border-radius: 50% 50% 42% 42%;
}

.row-copy strong,
.row-copy p {
  display: block;
}

.row-copy {
  min-width: 0;
}

.row-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.row-copy p {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 11px;
  line-height: 1.38;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f3f7;
  font-size: 11px;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.success {
  color: var(--green);
  background: var(--green-soft);
}

.status-chip.success::before {
  content: "✓";
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}

.status-chip.current {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-chip.current::before {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='6' r='5' fill='%231266f1'/%3E%3Cpath d='M6 3.4v3l2.1 1.1' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.status-chip.muted::before {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23aab3c0'/%3E%3Cpath d='M6 3.4v3l2.1 1.1' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.evidence-row > i,
.focus-card > i {
  color: #223044;
  font-size: 26px;
  font-style: normal;
  line-height: 1;
}

.focus-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  margin-bottom: 8px;
  padding: 9px 12px;
}

.focus-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.focus-icon.person {
  color: var(--green);
  background: var(--green-soft);
}

.focus-icon.calendar-check::before {
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 7px;
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 12px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 5px -1px / 3px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 14px -1px / 3px 7px no-repeat;
}

.focus-icon.calendar-check::after {
  left: 17px;
  top: 23px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow.blue {
  color: var(--blue);
}

.eyebrow.green {
  color: var(--green);
}

.focus-card h2 {
  margin: 0;
  font-family: "SF Pro Display", var(--font);
  font-size: 19px;
  font-weight: 760;
  line-height: 1.16;
}

.focus-card p {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 12px;
  line-height: 1.35;
}

.task-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  position: relative;
  padding-left: 12px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.45;
}

.task-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.panel {
  margin-bottom: 14px;
  padding: 14px;
}

.timeline-preview {
  padding-bottom: 14px;
}

.journey-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.journey-preview::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: var(--line);
}

.journey-preview li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  text-align: center;
}

.journey-step {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 7px;
  border: 5px solid #f1f5fb;
  border-radius: 50%;
  color: #fff;
  background: #d9dee7;
  font-size: 0;
}

.journey-step::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.journey-step::after {
  content: none;
}

.journey-preview li.todo .journey-step {
  color: #9aa6b7;
  background: #e5ebf3;
}

.journey-preview li.todo .journey-step::before {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: none;
}

.journey-preview li.done .journey-step,
.journey-preview li.current .journey-step {
  background: var(--blue);
}

.journey-preview li.current .journey-step {
  box-shadow: 0 0 0 6px rgba(18, 102, 241, 0.12);
}

.journey-preview li.current .journey-step::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: none;
}

.journey-preview li.current .journey-step::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.journey-preview small,
.journey-preview p {
  display: none;
}

.journey-preview strong {
  display: block;
  font-size: 11px;
  line-height: 1.25;
}

.journey-preview em {
  display: block;
  margin-top: 4px;
  color: var(--body);
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

.journey-status {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.1;
}

.journey-preview li.done em,
.journey-preview li.done .journey-status {
  color: var(--blue);
}

.journey-preview li.current em,
.journey-preview li.current .journey-status {
  color: var(--blue);
  font-weight: 700;
}

.service-note {
  background: #fff;
}

.note {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  gap: 14px;
}

.timeline,
.update-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item,
.timeline-summary {
  display: grid;
  gap: 8px;
}

.date-block {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.date-block strong {
  color: var(--ink);
  font-size: 13px;
}

.marker,
.summary-marker {
  display: none;
}

.stage-card,
.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.timeline-item.current .stage-card {
  border-color: rgba(18, 102, 241, 0.28);
  background: var(--blue-soft);
}

.stage-title-row {
  display: grid;
  gap: 8px;
}

.stage-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--body);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.done {
  background: var(--green);
}

.dot.current {
  background: var(--blue);
}

.stage-card p,
.summary-card span {
  display: block;
  margin: 9px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.summary-card strong {
  display: block;
}

.text-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.timeline-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.update-list {
  display: grid;
  gap: 10px;
}

.update-list li {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.update-list time,
.update-list span {
  display: block;
}

.update-list time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.update-list span {
  margin-top: 6px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.topbar {
  margin-top: 80px;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
}

.error-card {
  margin: 80px 10px 0;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.error-card h1 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.1;
}

.error-card p {
  margin-bottom: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

.error-card .error-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 720px) {
  .shell {
    width: min(860px, calc(100% - 48px));
    padding-top: 10px;
  }

  .status-card-main {
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .stage-position-card {
    min-height: 146px;
    padding: 20px 18px;
  }

  .stage-position-card strong {
    font-size: 28px;
  }

  .stage-copy h2 {
    font-size: 42px;
  }
}
