:root {
  --navy: #0b2744;
  --navy-2: #123a5f;
  --gold: #f0b33a;
  --gold-2: #d9bf85;
  --red: #b32136;
  --burgundy: #941e2e;
  --green: #166534;
  --ink: #132033;
  --muted: #536174;
  --line: #bdc9d7;
  --paper: #f7f9fc;
  --soft: #eef3f8;
  --surface: #fff;
  --white: #fff;
  --shadow: 0 18px 48px rgba(11, 39, 68, .16);
  --sans: "IBM Plex Sans", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

.mast {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.mast-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mark {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  line-height: 1.2;
  text-decoration: none;
}

.mark em {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .26em;
  margin-top: 4px;
}

.mast nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mast nav a {
  color: #c7d6e8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 7px;
}

.mast nav a:hover {
  color: var(--navy);
  background: var(--gold);
}

.tricolor {
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 33.33%, var(--white) 33.33% 66.66%, var(--red) 66.66% 100%);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 42px;
}

.hero-usdata {
  min-height: min(650px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 39, 68, .98), rgba(148, 30, 46, .82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%230b2744'/%3E%3Cg fill='none' stroke='%23f0b33a' stroke-opacity='.24'%3E%3Cpath d='M80 560C260 360 420 620 610 390S950 250 1120 90' stroke-width='6'/%3E%3Cpath d='M70 180h240v120h170v100h250v-90h390' stroke-width='3'/%3E%3Cpath d='M130 480h180v-70h190v-80h150v90h320v-170h110' stroke-width='3'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Ccircle cx='310' cy='300' r='10'/%3E%3Ccircle cx='480' cy='400' r='10'/%3E%3Ccircle cx='730' cy='310' r='10'/%3E%3Ccircle cx='970' cy='250' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(46px, 8vw, 92px);
  line-height: .94;
}

.hero-copy .lede {
  max-width: 56ch;
  color: #e6eef7;
  font-size: clamp(18px, 2.6vw, 24px);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 7px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.wide-btn {
  width: 100%;
  margin-top: 18px;
}

.certificate-card {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.cert-top,
.cert-lines {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cert-top {
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.certificate-card h2 {
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  margin: 52px 0 10px;
}

.cert-lines {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
}

.cert-lines span,
.tag-row span {
  background: #fdf7e8;
  border: 1px solid var(--gold-2);
  color: #6b4f12;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.mobile-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mobile-steps article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.mobile-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--mono);
}

.quote-section,
.tier-section,
#process {
  margin-top: 28px;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hospitality-area,
.architecture-area {
  margin-top: 22px;
}

.hospitality-area {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 12px;
  padding: 20px;
}

.architecture-area {
  background: #fffaf0;
  border: 1px solid var(--gold-2);
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
}

.hospitality-grid,
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hospitality-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  min-height: 162px;
  position: relative;
}

.flow-card b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--mono);
  margin-bottom: 10px;
}

.flow-card h3 {
  color: var(--navy);
}

.flow-card p,
.field-map-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.hospitality-card,
.architecture-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.hospitality-card {
  border-top: 4px solid var(--green);
}

.architecture-card {
  border-top: 4px solid var(--gold);
}

.field-map-card {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.field-map {
  overflow-x: auto;
  margin-top: 12px;
}

.field-map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.field-map-table th,
.field-map-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--soft);
  vertical-align: top;
}

.field-map-table th {
  background: #e7f0e9;
  color: var(--navy);
}

.field-map-table code {
  font-family: var(--mono);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 5px;
}

.deliverable {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  border-top: 4px solid var(--navy);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.muted-line {
  opacity: .42;
}

.site-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 40px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-foot strong {
  color: var(--navy);
}

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

body.sidebar-collapsed .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  display: none;
}

.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, #071b30 100%);
  color: #f5f1e8;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.menu-toggle {
  width: 100%;
  background: rgba(240, 179, 58, .14);
  border: 1px solid rgba(240, 179, 58, .42);
  color: var(--gold);
}

.menu-restore {
  display: none;
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  box-shadow: var(--shadow);
}

body.sidebar-collapsed .menu-restore {
  display: inline-flex;
}

.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  border-radius: 6px;
}

.brand small {
  display: block;
  color: #b9c0c8;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a,
.desk-box a,
.route-switch a,
button,
select {
  border-radius: 6px;
}

.nav-list a {
  padding: 10px 12px;
  color: #dce2e8;
  text-decoration: none;
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(240, 179, 58, .16);
  color: var(--gold);
}

.desk-box {
  margin-top: auto;
  border: 1px solid #454b52;
  padding: 12px;
}

.desk-box span {
  display: block;
  color: #aeb7c1;
  margin-bottom: 8px;
}

.desk-box a {
  display: inline-block;
  background: #f5f1e8;
  color: #202326;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 650;
}

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

.hero-panel {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 32px;
  align-items: center;
}

.hero-panel h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  margin: 0 0 14px;
}

.hero-panel p:not(.eyebrow) {
  color: #cddced;
  font-size: 18px;
  max-width: 58ch;
}

.record {
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.term {
  background: #081018;
  border: 1px solid #1c2c3d;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #c9d6e4;
  font-family: var(--mono);
}

.term-hd {
  background: #0e1a28;
  border-bottom: 1px solid #1c2c3d;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3d51;
}

.dot.live {
  background: #3fae72;
  box-shadow: 0 0 0 3px rgba(63, 174, 114, .18);
}

.term-hd b {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: #8fa6bd;
  font-weight: 500;
}

.live-tag {
  margin-left: auto;
  font-size: 10.5px;
  color: #3fae72;
  letter-spacing: .1em;
}

.term-body {
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.85;
}

.term-meta {
  color: #6f849c;
  border-bottom: 1px solid #1c2c3d;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.term-meta b,
.term-row .ep {
  color: #dbe6f0;
  font-weight: 500;
}

.term-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  padding: 4px 0;
  opacity: 0;
  animation: tin .3s ease forwards;
}

.term-row .j {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.term-row .j.ok {
  background: #0f2a1c;
  color: #3fae72;
}

.term-row .j.hold {
  background: #342607;
  color: var(--gold);
}

.term-row .j.bad {
  background: #3a1420;
  color: #e2596e;
}

.term-ft {
  border-top: 1px solid #1c2c3d;
  margin-top: 10px;
  padding-top: 10px;
  color: #e0b256;
  font-size: 11.5px;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #3fae72;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes tin {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 0; }
}

.record-hd {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.record-hd span,
.meta,
.price-card .kind,
.pill {
  font-family: var(--mono);
}

.record-hd span {
  color: var(--muted);
  font-size: 11px;
}

.record-body {
  padding: 18px;
}

.record-ft {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 13px 18px;
  font-size: 13px;
}

.meta {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.meta b {
  color: var(--ink);
  font-weight: 600;
}

.priceline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--soft);
}

.priceline strong {
  color: var(--navy);
  font-family: var(--mono);
}

.topbar,
.status-band,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.topbar {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.route-switch {
  display: flex;
  gap: 8px;
}

.route-switch a,
button,
select {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 11px;
  text-decoration: none;
}

.route-switch .active-route,
button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
  font-weight: 650;
}

.status-band {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 18px;
  border-top: 4px solid var(--navy);
  box-shadow: 0 10px 26px rgba(11, 39, 68, .08);
}

.metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metrics span {
  background: #fdf7e8;
  border: 1px solid var(--gold-2);
  padding: 8px 10px;
  border-radius: 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.app-card,
.panel,
.task,
.test-row,
.program-card,
.artifact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-card {
  padding: 22px;
  min-height: 184px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 39, 68, .08);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--red));
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.app-card p,
.section-head p,
.status-band p,
.panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions a {
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 6px;
  text-decoration: none;
}

.card-actions a:first-child {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 14px;
  margin: 18px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.artifact {
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(11, 39, 68, .1);
}

.chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.chain span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 9px 10px;
  font-weight: 650;
  font-size: 13px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table td {
  border-bottom: 1px solid var(--soft);
  padding: 8px 6px;
  vertical-align: top;
}

.mini-table td:first-child {
  color: var(--burgundy);
  font-family: var(--mono);
  font-weight: 700;
  width: 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.program-grid.wide {
  margin-bottom: 18px;
}

.program-card {
  border-top: 4px solid var(--gold);
  padding: 18px;
  min-height: 190px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.program-card:nth-child(3n + 2) {
  border-top-color: var(--navy);
}

.program-card:nth-child(3n) {
  border-top-color: var(--red);
}

.program-card small {
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.program-card h3 {
  color: var(--navy);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.program-card code {
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flag {
  display: inline-block;
  justify-self: start;
  color: var(--burgundy);
  background: #fbe9ec;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.sticky-record {
  align-self: start;
  position: sticky;
  top: 18px;
}

.step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.step-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  padding: 12px 14px;
  border-radius: 8px;
}

.step-list strong {
  display: block;
}

.step-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.step-meta span,
.object-row span {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 11px;
}

.object-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  padding: 16px;
}

.data-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 12px;
  margin: 16px 0 0;
}

.data-list dt {
  color: var(--muted);
}

.data-list dd {
  margin: 0;
  font-weight: 650;
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.flow-node {
  min-height: 92px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  padding: 12px;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.matrix th,
.matrix td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.matrix th {
  background: var(--navy);
  color: var(--white);
}

.task-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.task {
  padding: 14px;
  min-height: 150px;
}

.task small,
.test-row small {
  color: var(--muted);
}

.task.assigned {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px #fdf2cf;
}

.timeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  background: var(--navy);
  border-radius: 8px;
  padding: 14px;
}

.timeline span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #cddced;
  font-family: var(--mono);
  font-weight: 700;
}

.timeline span.done {
  background: var(--gold);
  color: var(--navy);
}

.test-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.test-summary {
  margin-top: 12px;
  background: #fdf7e8;
  border: 1px solid var(--gold-2);
  color: #6b4f12;
  border-radius: 8px;
  padding: 12px 14px;
}

.test-row {
  display: grid;
  grid-template-columns: 28px 1fr max-content;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: white;
}

.test-row.done .check {
  background: var(--green);
  border-color: var(--green);
}

.test-row.done .check::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(-1px, 7px);
  margin-left: 5px;
}

.pill {
  background: #eef2ef;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.hidden-card {
  opacity: 0.36;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  max-width: 72ch;
}

.band-lite {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-top: 18px;
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compact-calc {
  box-shadow: none;
  border-radius: 8px;
}

.compact-calc .calc-in,
.compact-calc .calc-out {
  padding: 18px;
}

.compact-calc {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.quote-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quote-form input,
.quote-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 500 14px/1.3 var(--sans);
  padding: 9px 10px;
}

.quote-status {
  border: 1px solid var(--gold-2);
  background: #fdf7e8;
  color: #6b4f12;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-weight: 650;
}

.quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.calc-in {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.calc-out {
  padding: 28px;
  background: var(--soft);
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.field-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.num,
.amt,
.out-total .amt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy);
}

.num {
  font-size: 22px;
  min-width: 56px;
  text-align: right;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.toggle-row .lbl {
  font-weight: 650;
}

.toggle-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.switch {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  flex: none;
  padding: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}

.switch.on {
  background: var(--gold);
}

.switch.on::after {
  transform: translateX(19px);
}

.out-line,
.out-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.out-total {
  border-bottom: 0;
  padding-top: 18px;
}

.out-total .lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.out-total .amt {
  font-size: 30px;
}

.out-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tabbtn,
.mode-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
}

.tabbtn {
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.tabbtn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.lane-panel {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 26px;
}

.doclist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.doclist li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.doclist .n {
  color: var(--muted);
  font-family: var(--mono);
}

.doclist b {
  display: block;
}

.doclist span:not(.n) {
  color: var(--muted);
  font-size: 13px;
}

.mode-toggle {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}

.mode-toggle button {
  padding: 8px 16px;
}

.mode-toggle button.active {
  background: var(--navy);
  color: white;
}

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

.tier {
  display: grid;
  grid-template-columns: 70px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
}

.tier.mon {
  border-left-color: var(--green);
}

.tier-id {
  display: grid;
  place-items: center;
  background: var(--soft);
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}

.tier-txt {
  padding: 16px 20px;
}

.tier-txt small {
  color: var(--muted);
  font-family: var(--mono);
}

.stack-wrap {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
}

.stack {
  display: grid;
  gap: 0;
}

.layer {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.layer > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
}

.see-split {
  display: grid;
  gap: 10px;
}

.see-col {
  border-radius: 10px;
  padding: 18px;
}

.see-col.good {
  background: #e7f0e9;
  border-left: 5px solid var(--green);
}

.see-col.bad {
  background: #fbe9ec;
  border-left: 5px solid var(--burgundy);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.status-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.dot-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.status-dot.pending {
  background: var(--gold);
}

.status-dot.blocked {
  background: var(--red);
}

.status-card .t {
  font-weight: 700;
}

@media (max-width: 800px) {
  .app-shell,
  .hero-usdata,
  .page-grid,
  .hero-panel,
  .insight-grid,
  .quote-grid,
  .calc,
  .lane-panel,
  .stack-wrap {
    grid-template-columns: 1fr;
  }

  .quote-form,
  .quote-actions {
    grid-template-columns: 1fr;
  }

  main {
    padding: 16px 12px 32px;
  }

  .hero-usdata {
    min-height: auto;
    padding: 24px 18px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .mobile-steps {
    grid-template-columns: 1fr;
  }

  .mobile-steps article {
    min-height: 58px;
  }

  .mast-inner {
    padding: 12px;
  }

  .mast nav {
    width: 100%;
    margin-left: 0;
  }

  .mast nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .calc-in {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar {
    min-height: auto;
  }

  body.sidebar-collapsed .sidebar {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .menu-restore,
  body.sidebar-collapsed .menu-restore {
    display: none;
  }

  .topbar,
  .status-band,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-row {
    grid-template-columns: 28px 1fr;
  }

  .test-row .pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .term-row {
    animation: none;
    opacity: 1;
  }

  .cursor {
    animation: none;
  }
}
