.tmc-shell {
  --tmc-blue: #006fad;
  --tmc-blue-deep: #005f96;
  --tmc-ink: #2f3741;
  --tmc-muted: #596b79;
  --tmc-sky: #eef7fc;
  --tmc-line: #cfe2ee;
  --tmc-white: #fff;
  --tmc-warn: #8a5700;
  box-sizing: border-box;
  color: var(--tmc-ink);
  font-family: Roboto, "Segoe UI", sans-serif;
  margin: 1.5rem auto 4rem;
  max-width: 1120px;
}

.tmc-shell *, .tmc-shell *::before, .tmc-shell *::after { box-sizing: border-box; }

.tmc-hero {
  align-items: end;
  background: var(--tmc-blue);
  border-radius: 1.6rem 1.6rem .55rem .55rem;
  color: var(--tmc-white);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .55fr);
  padding: clamp(2rem, 5vw, 4rem);
}

.tmc-hero h1, .tmc-complete h1 {
  color: inherit;
  font-size: clamp(2.2rem, 5.2vw, 4.3rem);
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 0 1rem;
  max-width: 15ch;
}

.tmc-hero p { color: #fff; font-size: 1.08rem; line-height: 1.6; margin: 0; max-width: 68ch; }
.tmc-case-id { font-size: .82rem !important; font-weight: 700; letter-spacing: .08em; margin-bottom: .85rem !important; text-transform: uppercase; }
.tmc-hero ol { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.tmc-hero li { border-bottom: 1px solid rgba(255,255,255,.55); color: rgba(255,255,255,.9); font-size: .9rem; padding: .55rem 0; }
.tmc-hero li[aria-current="step"] { color: #fff; font-weight: 700; }

.tmc-lookup, .tmc-form, .tmc-identity, .tmc-current, .tmc-review-person, .tmc-table-wrap, .tmc-review-columns, .tmc-notes, .tmc-complete, .tmc-login, .tmc-handoff {
  background: var(--tmc-white);
  border: 1px solid var(--tmc-line);
}

.tmc-lookup, .tmc-form { border-radius: .55rem 1.6rem 1.6rem 1.6rem; box-shadow: 0 .8rem 2.4rem rgba(47,55,65,.12); display: grid; gap: 1.5rem; margin-top: .45rem; padding: clamp(1.4rem, 4vw, 3.2rem); }
.tmc-lookup { grid-template-columns: minmax(0, 1fr) minmax(17rem, .72fr); }
.tmc-lookup .tmc-field-grid { grid-template-columns: 1fr; }
.tmc-lookup .tmc-help, .tmc-lookup .tmc-button { grid-column: 2; }
.tmc-lookup h2, .tmc-section-heading h2, .tmc-identity h2, .tmc-review h2 { color: var(--tmc-ink); font-size: 1.55rem; margin: 0 0 .5rem; }
.tmc-lookup p, .tmc-section-heading p, .tmc-identity p { color: var(--tmc-muted); line-height: 1.55; margin: 0; }

.tmc-shell label { color: var(--tmc-ink); display: grid; font-size: .94rem; font-weight: 700; gap: .45rem; }
.tmc-shell input:not([type="radio"]):not([type="checkbox"]), .tmc-shell select, .tmc-shell textarea {
  background: #fff;
  border: 1px solid #6f8797;
  border-radius: .72rem;
  color: var(--tmc-ink);
  font: inherit;
  min-height: 3.1rem;
  padding: .78rem .9rem;
  width: 100%;
}
.tmc-shell textarea { line-height: 1.5; resize: vertical; }
.tmc-shell input:focus-visible, .tmc-shell select:focus-visible, .tmc-shell textarea:focus-visible, .tmc-shell button:focus-visible, .tmc-shell a:focus-visible { outline: 3px solid #ffbd38; outline-offset: 3px; }
.tmc-shell small, .tmc-help { color: var(--tmc-muted); font-size: .82rem; font-weight: 400; line-height: 1.45; }
.tmc-required { color: #8a2f2f; font-size: .76rem; font-weight: 700; }

.tmc-button { align-items: center; background: var(--tmc-blue); border: 0; border-radius: 999px; color: #fff !important; cursor: pointer; display: inline-flex; font: inherit; font-weight: 700; justify-content: center; min-height: 3rem; padding: .75rem 1.35rem; text-decoration: none; width: fit-content; }
.tmc-button:hover { background: var(--tmc-blue-deep); }
.tmc-button--secondary { background: #fff; border: 1px solid var(--tmc-blue); color: var(--tmc-blue) !important; }
.tmc-button--secondary:hover { background: var(--tmc-sky); }

.tmc-identity { align-items: start; border-radius: .75rem; display: grid; gap: 1.5rem; grid-template-columns: .75fr 1.5fr; margin: 1rem 0; padding: 1.4rem; }
.tmc-identity dl, .tmc-state-list { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tmc-identity dl div, .tmc-state-list div { background: var(--tmc-sky); min-width: 0; padding: .8rem .9rem; }
.tmc-identity dt, .tmc-state-list dt { color: var(--tmc-muted); font-size: .78rem; font-weight: 700; }
.tmc-identity dd, .tmc-state-list dd { font-weight: 700; margin: .25rem 0 0; overflow-wrap: anywhere; }
.tmc-current { border-radius: .75rem; margin: 0 0 1rem; padding: 1rem 1.2rem 1.2rem; }
.tmc-current summary { cursor: pointer; font-size: 1.05rem; font-weight: 700; padding: .4rem 0 .9rem; }

.tmc-panel, .tmc-branch { border: 0; display: grid; gap: 1.2rem; margin: 0; padding: 0; }
.tmc-panel legend { float: left; font-size: 1.42rem; font-weight: 700; margin-bottom: 1rem; width: 100%; }
.tmc-panel legend + * { clear: both; }
.tmc-pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmc-choice, .tmc-group { align-items: start; border: 1px solid var(--tmc-line); border-radius: 1rem; cursor: pointer; display: grid !important; gap: .8rem !important; grid-template-columns: auto 1fr; padding: 1rem; }
.tmc-choice:has(input:checked), .tmc-group:has(input:checked) { background: var(--tmc-sky); border-color: var(--tmc-blue); box-shadow: 0 .35rem 1rem rgba(0,126,196,.12); }
.tmc-choice input, .tmc-group input, .tmc-check input, .tmc-subfield input { margin-top: .2rem; }
.tmc-choice input, .tmc-group input, .tmc-check input, .tmc-subfield input { min-height: 24px; min-width: 24px; }
.tmc-choice span, .tmc-group span { display: grid; gap: .25rem; }
.tmc-choice small, .tmc-group small { font-weight: 400; }
.tmc-branch { border-top: 1px solid var(--tmc-line); padding-top: 1.7rem; }
.tmc-branch[hidden], .tmc-detail[hidden] { display: none; }
.tmc-field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmc-effective { background: var(--tmc-sky); border-radius: .9rem; max-width: 34rem; padding: 1rem; }
.tmc-change-groups { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmc-detail { background: #f8fbfd; border: 1px solid var(--tmc-line); border-radius: 1rem; padding: 1.2rem; }
.tmc-subfield { border: 0; display: grid; gap: .55rem; margin: 0; padding: 0; }
.tmc-subfield legend { font-size: .94rem; margin: 0 0 .45rem; }
.tmc-subfield label, .tmc-check { align-items: start; display: grid !important; gap: .5rem !important; grid-template-columns: auto 1fr; }
.tmc-check-grid { display: grid; gap: .4rem; }
.tmc-check-grid label, .tmc-subfield > label, .tmc-check { align-items: center; min-height: 44px; padding: .35rem .25rem; }
.tmc-check-grid label[hidden] { display: none !important; }
.tmc-flag { background: #fff4dc; border: 1px solid #e3c27d; border-radius: .7rem; color: var(--tmc-warn); font-weight: 700; margin: 0; padding: .85rem 1rem; }
.tmc-actions { align-items: center; display: flex; gap: .8rem; justify-content: flex-end; }
.tmc-actions form { margin: 0; }

.tmc-review-person, .tmc-table-wrap, .tmc-review-columns, .tmc-notes { margin-top: 1rem; padding: 1.4rem; }
.tmc-review-person { border-radius: .75rem; }
.tmc-review-person p { color: var(--tmc-muted); margin: .2rem 0 0; }
.tmc-review-person dl { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0 0; }
.tmc-review-person dl div { background: var(--tmc-sky); min-width: 0; padding: .75rem; }
.tmc-review-person dt { color: var(--tmc-muted); font-size: .78rem; font-weight: 700; }
.tmc-review-person dd { font-weight: 700; margin: .2rem 0 0; overflow-wrap: anywhere; }
.tmc-table-wrap { border-radius: .75rem; overflow-x: auto; }
.tmc-table-wrap:focus-visible { outline: 3px solid #ffbd38; outline-offset: 3px; }
.tmc-table-wrap table { border-collapse: collapse; min-width: 720px; width: 100%; }
.tmc-table-wrap th, .tmc-table-wrap td { border-bottom: 1px solid var(--tmc-line); padding: .8rem; text-align: left; vertical-align: top; }
.tmc-table-wrap thead th { background: var(--tmc-sky); }
.tmc-review-columns { border-radius: .75rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmc-review-columns ul { line-height: 1.55; padding-left: 1.2rem; }
.tmc-review .tmc-actions { margin-top: 1rem; }
.tmc-complete, .tmc-login, .tmc-handoff { border-radius: 1.2rem; color: var(--tmc-ink); padding: clamp(2rem, 5vw, 4rem); }
.tmc-complete h1, .tmc-login h1, .tmc-handoff h1 { color: var(--tmc-blue); font-size: clamp(2rem, 4.5vw, 3.7rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 1rem; }
.tmc-login p, .tmc-handoff p { color: var(--tmc-muted); line-height: 1.6; max-width: 68ch; }
.tmc-notice { border-radius: .75rem; margin: 1rem auto; max-width: 900px; padding: 1rem 1.2rem; }
.tmc-notice--error { background: #fff2f2; border: 1px solid #ddb1b1; color: #792626; }

@media (max-width: 760px) {
  .tmc-shell { margin-top: .75rem; }
  .tmc-hero, .tmc-lookup, .tmc-identity, .tmc-review-columns { grid-template-columns: 1fr; }
  .tmc-hero ol { grid-template-columns: repeat(4, 1fr); }
  .tmc-hero li { font-size: .72rem; overflow-wrap: anywhere; }
  .tmc-lookup .tmc-help, .tmc-lookup .tmc-button { grid-column: auto; }
  .tmc-pathway, .tmc-change-groups, .tmc-field-grid, .tmc-state-list, .tmc-identity dl, .tmc-review-person dl { grid-template-columns: 1fr; }
  .tmc-actions { align-items: stretch; flex-direction: column-reverse; }
  .tmc-actions .tmc-button, .tmc-actions form, .tmc-actions form .tmc-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tmc-shell * { scroll-behavior: auto !important; transition: none !important; }
}
