:root {
  color-scheme: light;
  --brand: #163f46;
  --brand-coral: #d46b4f;
  --hero-ink: #2c373d;
  --navy: #163f46;
  --navy-2: #24545a;
  --blue: #1769aa;
  --blue-2: #73b7d6;
  --blue-soft: #eef6fa;
  --green: #2aa575;
  --green-soft: #eefaf6;
  --ink: #101722;
  --body: #445061;
  --muted: #8993a3;
  --line: #dfe5ee;
  --page: #f5f7f7;
  --surface: #ffffff;
  --surface-soft: #f6f8f8;
  --radius: 8px;
  --radius-lg: 8px;
  --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: var(--page);
  font-family: var(--font);
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

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

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

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

.service-brand,
.service-brand > picture,
.service-brand > picture img {
  display: block;
}

.service-brand > picture img {
  width: 188px;
  height: auto;
}

.brand-mobile-lockup {
  display: none;
}

.service-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.service-context i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-coral);
}

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

.client-heading {
  min-width: 0;
}

.client-header .client-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

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

.client-heading h1 {
  margin-bottom: 0;
}

.client-project-name {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--body);
  font-size: 13px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-file-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  cursor: pointer;
  font-family: inherit;
  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: var(--radius-lg);
  color: #fff;
  background: var(--hero-ink);
  box-shadow: 0 12px 30px rgba(28, 40, 48, 0.15);
}

.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(--brand-coral);
}

.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: 14px;
  line-height: 1.45;
}

.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: 8px;
  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: 18px;
  font-weight: 780;
  line-height: 1.1;
  white-space: nowrap;
}

.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,
.panel-link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

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

.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: 13px;
  line-height: 1.45;
}

.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.warning {
  color: var(--brand-coral);
  background: #fff2ed;
}

.status-chip.warning::before {
  background: var(--brand-coral);
}

.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: 104px;
  margin: 0;
  padding: 14px;
}

.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: 14px;
  line-height: 1.5;
}

.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: 14px;
  line-height: 1.5;
}

.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;
}

.action-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-panel {
  border-color: rgba(22, 63, 70, 0.2);
}

.payment-heading {
  align-items: flex-start;
}

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

.payment-heading-actions .panel-link-button {
  font-size: 13px;
}

.payment-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.payment-metrics[hidden] {
  display: none;
}

.payment-metrics article {
  min-width: 0;
  padding: 11px 10px;
  background: var(--surface-soft);
}

.payment-metrics article + article {
  border-left: 1px solid var(--line);
}

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

.payment-metrics small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.payment-metrics strong {
  margin-top: 5px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.payment-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.payment-description {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.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;
}

.detail-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 26px 70px rgba(16, 23, 34, 0.24);
}

.detail-dialog::backdrop {
  background: rgba(16, 23, 34, 0.48);
  backdrop-filter: blur(3px);
}

.detail-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
}

.detail-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 16px;
  align-items: start;
  padding: 18px 20px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.detail-dialog-header .eyebrow {
  margin-bottom: 4px;
}

.detail-dialog-header h2 {
  margin: 0;
  font-family: "SF Pro Display", var(--font);
  font-size: 24px;
  line-height: 1.2;
}

.detail-dialog-header p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.detail-dialog-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--body);
  background: var(--surface-soft);
  cursor: pointer;
  font-family: inherit;
}

.detail-dialog-close span {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.detail-dialog-body {
  min-height: 0;
  padding: 8px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-fact-list,
.detail-stage-list,
.detail-history-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-fact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.detail-fact-item:last-child,
.detail-stage-item:last-child,
.detail-history-list li:last-child {
  border-bottom: 0;
}

.detail-fact-item h3,
.detail-stage-title h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.detail-fact-item p,
.detail-stage-item p,
.detail-history-list p {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.detail-stage-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-stage-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 750;
}

.detail-stage-item.done .detail-stage-number {
  border-color: rgba(42, 165, 117, 0.28);
  color: var(--green);
  background: var(--green-soft);
}

.detail-stage-item.current .detail-stage-number {
  border-color: rgba(23, 105, 170, 0.28);
  color: var(--blue);
  background: var(--blue-soft);
}

.detail-stage-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.detail-stage-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--body);
  font-size: 12px;
  white-space: nowrap;
}

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

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

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

.detail-stage-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-history-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

.detail-payment-overview {
  padding: 14px 0 16px;
}

.detail-payment-overview > p {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.detail-payment-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-payment-metrics article {
  min-width: 0;
  padding: 12px;
}

.detail-payment-metrics article + article {
  border-left: 1px solid var(--line);
}

.detail-payment-metrics small,
.detail-payment-metrics strong,
.detail-payment-metrics span {
  display: block;
}

.detail-payment-metrics small,
.detail-payment-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.detail-payment-metrics strong {
  margin-top: 5px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.detail-payment-metrics span {
  margin-top: 3px;
}

.detail-payment-section {
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}

.detail-payment-section + .detail-payment-section {
  margin-top: 18px;
}

.detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.detail-section-heading h3 {
  margin: 0;
  font-size: 16px;
}

.detail-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.detail-payment-list {
  display: grid;
}

.detail-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-payment-row:last-child {
  border-bottom: 0;
}

.detail-payment-row h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.detail-payment-row p,
.detail-payment-row small {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-payment-row-end {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}

.detail-payment-row-end > strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.detail-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.case-file-link:focus-visible,
.panel-link-button:focus-visible,
.detail-dialog-close:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.25);
  outline-offset: 2px;
}

.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;
}

.service-footer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 2px 0;
  border-top: 1px solid var(--line);
}

.service-footer img {
  width: 32px;
  height: 32px;
}

.service-footer strong {
  display: block;
  color: var(--brand);
  font-size: 14px;
}

.service-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .service-nav {
    min-height: 74px;
  }

  .service-brand > picture {
    display: none;
  }

  .brand-mobile-lockup {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 172px;
    height: 46px;
  }

  .brand-mobile-symbol {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
  }

  .brand-mobile-copy {
    display: grid;
    flex: 0 0 122px;
    justify-items: center;
    gap: 1px;
    width: 122px;
  }

  .brand-wordmark-window {
    position: relative;
    display: block;
    width: 120px;
    height: 28px;
    overflow: hidden;
  }

  /* Crop the approved compact asset to keep its Chinese wordmark in the mobile lockup. */
  .brand-wordmark-source {
    position: absolute;
    top: -8px;
    left: -88px;
    display: block;
    width: 208px;
    max-width: none;
    height: auto;
  }

  .brand-descriptor {
    display: block;
    width: 122px;
    color: #556267;
    font-size: 8px;
    font-weight: 650;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .service-context {
    font-size: 12px;
  }

  .detail-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .detail-dialog-header {
    padding: 15px 15px 13px;
  }

  .detail-dialog-header h2 {
    font-size: 22px;
  }

  .detail-dialog-body {
    padding: 6px 15px 18px;
  }

  .detail-payment-metrics article {
    padding: 10px 8px;
  }

  .detail-payment-metrics strong {
    font-size: 16px;
  }

  .detail-payment-row {
    gap: 8px;
  }
}

@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: 24px;
  }

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

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