:root {
  --paper: #f3f7fa;
  --paper-deep: #e8f0f6;
  --panel: #ffffff;
  --ink: #132238;
  --navy: #0e2847;
  --cobalt: #2457d6;
  --teal: #238c89;
  --copper: #d66b44;
  --muted: #66788d;
  --line: #cad7e4;
  --soft-line: #e3eaf0;
  --success: #23775f;
  --danger: #b34945;
  --tenant-primary: #2457d6;
  --tenant-accent: #26a7a7;
  --display: "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 18px 48px rgba(20, 42, 69, .09);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--body); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tenant-accent) 70%, white); outline-offset: 3px; }

.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 22px 22px; background: var(--navy); color: #eef7ff; display: flex; flex-direction: column; overflow: hidden; }
.sidebar::after { content: ""; position: absolute; inset: auto -36px 34% auto; width: 140px; height: 140px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.rail-brand { position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; min-height: 54px; }
.rail-brand strong, .public-brand strong { display: block; font: 700 18px/1.25 var(--display); letter-spacing: .02em; }
.rail-brand small, .public-brand small { display: block; color: #92abc4; font-size: 11px; margin-top: 4px; letter-spacing: .12em; }
.rail-mark { display: grid; gap: 3px; width: 16px; }
.rail-mark i { display: block; height: 6px; background: rgba(255,255,255,.18); border-radius: 2px; }
.rail-mark i:nth-child(1) { background: var(--tenant-accent); width: 10px; }
.rail-mark i:nth-child(2) { background: #fff; width: 16px; }
.rail-mark i:nth-child(3) { background: var(--copper); width: 7px; }
.rail-mark i:nth-child(4) { width: 12px; }
.side-nav { position: relative; z-index: 1; display: grid; gap: 6px; margin-top: 50px; }
.side-nav a { padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; color: #a9bed1; border: 1px solid transparent; border-radius: 10px; transition: background .2s, color .2s, transform .2s; }
.side-nav a:hover { color: #fff; transform: translateX(2px); }
.side-nav a.active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.09); color: #fff; }
.side-nav a.active::before { content: ""; position: absolute; left: -22px; height: 27px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tenant-accent); }
.side-nav em { font: normal 10px/1 var(--data); color: #6f8ca8; }
.sidebar-foot { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.identity-chip { display: flex; align-items: center; gap: 10px; }
.identity-chip > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: #d8f3ef; font-weight: 800; }
.identity-chip p { margin: 0; font-size: 13px; }
.identity-chip small { display: block; color: #7fa0bd; font: 10px/1.4 var(--data); margin-top: 3px; text-transform: uppercase; }
.text-button { border: 0; color: #89a4bd; background: transparent; padding: 14px 0 0; cursor: pointer; font-size: 12px; }
.main-stage { min-width: 0; }
.mobile-bar { display: none; }
.page-frame { width: min(1280px, calc(100% - 72px)); margin: 0 auto; padding: 52px 0 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.page-head.compact { margin-bottom: 26px; }
.page-head h1 { margin: 3px 0 8px; font: 750 clamp(30px, 4vw, 48px)/1.06 var(--display); letter-spacing: -.035em; }
.page-head p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 670px; }
.eyebrow { margin: 0; color: var(--tenant-primary); font: 700 10px/1.4 var(--data); letter-spacing: .18em; text-transform: uppercase; }
.status-seal { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 999px; padding: 9px 13px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-seal i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(35,119,95,.12); }
.status-seal.warning i { background: var(--copper); box-shadow: 0 0 0 4px rgba(214,107,68,.13); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { position: relative; overflow: hidden; padding: 22px; min-height: 150px; border: 1px solid var(--line); background: rgba(255,255,255,.76); border-radius: 16px; }
.metric::before { content: ""; position: absolute; width: 34px; height: 5px; top: 0; left: 22px; background: var(--tenant-accent); }
.metric.primary { background: var(--navy); color: white; border-color: var(--navy); }
.metric.primary::before { background: var(--tenant-accent); width: 76px; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric.primary span, .metric.primary small { color: #9ab2c9; }
.metric strong { display: block; margin: 22px 0 6px; font: 700 clamp(22px, 2.6vw, 33px)/1 var(--data); letter-spacing: -.04em; }
.metric small { color: var(--muted); font-size: 11px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(20,42,69,.04); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-head h2 { margin: 3px 0 0; font: 700 20px/1.2 var(--display); }
.panel-head p:not(.eyebrow) { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.panel-head > a, .panel-head > span { color: var(--tenant-primary); font-size: 12px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.radar-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--soft-line); }
.radar-row:first-of-type { border-top: 0; }
.radar-row p { margin: 0; display: flex; justify-content: space-between; }
.radar-row p strong { font: 700 16px/1 var(--data); }
.radar-row small { color: var(--muted); }
.dot { width: 7px; height: 28px; border-radius: 99px; background: var(--line); }
.dot.blue { background: var(--tenant-primary); }
.dot.copper { background: var(--copper); }
.audit-list > div, .ledger-list > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--soft-line); }
.ledger-list > div { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto; }
.audit-list > div:first-child, .ledger-list > div:first-child { border-top: 0; }
.audit-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--tenant-accent); }
.audit-list p, .ledger-list p { margin: 0; font-size: 13px; }
.audit-list small, .ledger-list small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.audit-list time, .ledger-list time { font: 10px/1 var(--data); color: var(--muted); }
.empty-state { color: var(--muted); padding: 24px 0; margin: 0; text-align: center; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-head { padding: 24px 24px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { padding: 12px 18px; text-align: left; background: var(--paper-deep); color: var(--muted); font: 700 10px/1 var(--data); letter-spacing: .1em; }
td { padding: 17px 18px; border-top: 1px solid var(--soft-line); font-size: 13px; vertical-align: middle; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.game-tag, .state { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font: 700 10px/1 var(--data); }
.game-tag.darkzone { color: #24557c; background: #e2eff8; }
.game-tag.delta { color: #176d66; background: #ddf2ee; }
.state { color: #51667a; background: #e7eef4; text-transform: uppercase; }
.state.listed, .state.posted, .state.paid, .state.refunded { color: #17664f; background: #dff1e9; }
.state.available, .state.active { color: #17664f; background: #dff1e9; }
.state.review, .state.approved, .state.requested, .state.partially_refunded { color: #8c4e2f; background: #f6e8df; }
.state.rejected, .state.failed, .state.inactive, .state.disabled { color: #933f3d; background: #f6e3e3; }
.form-panel form, .wallet-action form { display: grid; gap: 14px; }
label { color: var(--muted); font-size: 12px; }
input, select { width: 100%; margin-top: 7px; border: 1px solid var(--line); background: #fbfdff; color: var(--ink); border-radius: 10px; min-height: 44px; padding: 10px 12px; }
input:hover, select:hover { border-color: #9db2c7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button, .small-button { border: 0; border-radius: 10px; background: var(--tenant-primary); color: white; min-height: 42px; padding: 11px 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, filter .2s; }
.primary-button:hover, .small-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button.wide { width: 100%; }
.small-button { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 11px; }
.panel-head > .small-button:not(.ghost) { color: white; }
.small-button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.small-button.copper { background: var(--copper); }
.form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.transition-form, .member-form { display: flex; gap: 7px; align-items: center; }
.transition-form select, .member-form select { width: auto; min-width: 92px; min-height: 34px; margin: 0; padding: 6px 8px; font-size: 11px; }
.member-form { min-width: 340px; }
.invitation-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px 22px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 10px; }
.invitation-strip strong { width: 100%; color: var(--ink); font-size: 12px; }
.invitation-strip span { padding: 5px 8px; border-radius: 99px; background: var(--paper-deep); }

.finance-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.finance-lower { align-items: start; margin-bottom: 20px; }
.stack-list { display: grid; gap: 0; }
.stack-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid var(--soft-line); }
.stack-item:first-child { border-top: 0; padding-top: 0; }
.stack-item h3 { margin: 7px 0 4px; font: 700 14px/1.2 var(--display); }
.stack-item p { margin: 0; color: var(--muted); font-size: 11px; }
.inline-actions { display: flex; align-items: center; gap: 7px; }
.refund-form { display: flex; gap: 7px; align-items: end; }
.refund-form input { width: 110px; min-height: 34px; margin: 0; padding: 7px 9px; font-size: 11px; }
.ledger-panel { margin-top: 20px; }
.ledger-list code { color: var(--tenant-primary); font: 700 10px/1 var(--data); }

.flash-stack { position: fixed; z-index: 100; right: 24px; top: 20px; display: grid; gap: 8px; width: min(390px, calc(100vw - 32px)); }
.flash { padding: 13px 15px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: 13px; }
.flash.success { background: var(--success); }
.flash.error { background: var(--danger); }

.login-page { background: #eaf1f6; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); }
.login-thesis { position: relative; overflow: hidden; padding: 44px clamp(34px, 6vw, 94px) 54px; color: white; background: var(--navy); display: flex; flex-direction: column; }
.login-thesis::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.09); right: -180px; bottom: -220px; transform: rotate(32deg); }
.public-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-square { width: 40px; height: 40px; display: grid; place-items: center; background: var(--tenant-accent); color: var(--navy); border-radius: 11px; font-weight: 900; }
.public-brand span:last-child { font-weight: 700; }
.public-brand small { display: block; }
.login-copy { margin: auto 0 38px; max-width: 720px; position: relative; z-index: 1; }
.login-copy .eyebrow { color: #79d4cb; }
.login-copy h1 { margin: 16px 0 20px; font: 780 clamp(46px, 6vw, 78px)/1.04 var(--display); letter-spacing: -.055em; }
.login-copy > p:last-child { color: #aac0d4; font-size: 16px; line-height: 1.8; max-width: 560px; }
.ledger-band { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.ledger-band > div { position: relative; display: grid; gap: 5px; }
.ledger-band i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--tenant-accent); top: -23px; left: 0; box-shadow: 0 0 0 5px rgba(38,167,167,.14); }
.ledger-band span { color: #7f9db8; font-size: 10px; }
.ledger-band strong { font-size: 12px; }
.login-panel { padding: 48px clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.login-card { width: min(420px, 100%); margin: auto; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-heading { margin-bottom: 8px; }
.form-heading p { color: var(--tenant-primary); font: 700 10px/1 var(--data); letter-spacing: .16em; }
.form-heading h2 { font: 750 32px/1 var(--display); margin: 10px 0; }
.form-heading span { color: var(--muted); font-size: 13px; }
.back-link { width: min(420px,100%); margin: 22px auto 0; color: var(--muted); font-size: 12px; }

.realm-page { --tenant-primary: #2b5fd7; --tenant-accent: #4bc5b6; background: #eaf1f6; }
.realm-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(430px, .84fr); }
.realm-thesis { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: 42px clamp(34px, 6vw, 94px) 52px; color: white; background: #102940; }
.realm-thesis::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -180px; top: -150px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.realm-thesis::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.08)); }
.realm-brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; }
.realm-brand .rail-mark { width: 18px; }
.realm-brand strong { display: block; font: 720 18px/1.15 var(--display); }
.realm-brand small { display: block; margin-top: 5px; color: #8fa9bf; font: 9px/1 var(--data); letter-spacing: .14em; }
.realm-copy { position: relative; z-index: 1; max-width: 720px; margin: auto 0 54px; }
.realm-copy .eyebrow { color: #6fd3c7; }
.realm-copy h1 { margin: 17px 0 22px; font: 780 clamp(52px, 6.3vw, 88px)/.96 var(--display); letter-spacing: -.065em; }
.realm-copy > p:last-child { max-width: 590px; margin: 0; color: #a6bdcf; font-size: 15px; line-height: 1.9; }
.realm-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 82px); background: #edf3f7; }
.realm-card { width: min(430px, 100%); margin: auto; padding: 36px; border: 1px solid #cbd8e3; border-radius: 20px; background: white; box-shadow: 0 22px 60px rgba(18,49,75,.1); display: grid; gap: 17px; }
.realm-card h2 { margin: 3px 0 0; color: var(--ink); font: 760 32px/1.08 var(--display); letter-spacing: -.035em; }
.realm-intro { margin: -6px 0 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.realm-kicker { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--cobalt); font: 700 9px/1 var(--data); letter-spacing: .13em; text-transform: uppercase; }
.realm-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--tenant-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tenant-accent) 16%, transparent); }
.realm-switch { display: flex; justify-content: space-between; width: min(430px,100%); margin: 22px auto 0; color: #5e7083; font-size: 12px; }
.realm-switch span { color: var(--cobalt); transition: transform .18s ease; }
.realm-switch:hover span { transform: translateX(3px); }
.realm-secondary-links { display: flex; justify-content: space-between; gap: 18px; width: min(430px,100%); margin: 22px auto 0; }
.realm-secondary-links a { color: #5e7083; font-size: 12px; }
.boundary-register { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.17); }
.boundary-register > div { position: relative; display: grid; gap: 6px; padding: 21px 18px 0 0; color: #728fa6; }
.boundary-register > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.boundary-register > div::before { content: ""; position: absolute; top: -2px; left: 0; width: 38px; height: 3px; background: #587187; }
.boundary-register > div + div::before { left: 24px; }
.boundary-register > div.active::before { width: 78px; background: var(--tenant-accent); }
.boundary-register i { color: #668198; font: normal 9px/1 var(--data); }
.boundary-register span { font-size: 11px; }
.boundary-register strong { color: #e6f0f7; font-size: 13px; }
.realm-merchant-page { --tenant-primary: #1e756c; --tenant-accent: #d7964c; }
.realm-merchant .realm-thesis { background: #173b3a; }
.realm-merchant .realm-thesis::before { width: 520px; height: 220px; right: -210px; top: 140px; border-radius: 50%; transform: rotate(-13deg); }
.realm-merchant .realm-copy .eyebrow { color: #e1a55f; }
.realm-merchant .realm-panel { background: #eef4f1; }
.realm-merchant .realm-card { border-color: #cadbd4; }
.merchant-route-map { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto; align-items: center; gap: 14px; color: #92aea9; font-size: 11px; }
.merchant-route-map i { height: 1px; background: rgba(255,255,255,.23); }
.merchant-route-map strong { color: white; }
.realm-registration .realm-thesis { background: #213638; }
.admission-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.admission-steps li { display: flex; align-items: center; gap: 10px; padding-top: 18px; color: #78918f; font-size: 11px; }
.admission-steps b { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font: 700 9px/1 var(--data); }
.admission-steps li.active { color: white; }
.admission-steps li.active b { border-color: #d7964c; color: #1e3434; background: #d7964c; }

.auth-preview .realm-thesis { background-image: linear-gradient(115deg, rgba(255,255,255,.018), transparent 48%); }
.realm-seal { position: absolute; top: 38px; right: clamp(32px, 5vw, 76px); z-index: 1; display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 10px; min-width: 108px; padding: 12px 0 11px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.realm-seal span, .realm-seal small { color: #718ca4; font: 700 8px/1 var(--data); letter-spacing: .14em; }
.realm-seal strong { grid-row: span 2; color: white; font: 700 30px/.85 var(--data); letter-spacing: -.08em; }
.realm-seal small { align-self: start; margin-top: 5px; }
.review-mode-badge { display: flex; align-items: center; gap: 9px; width: min(430px,100%); margin: 0 auto 14px; color: #607489; font: 700 9px/1 var(--data); letter-spacing: .12em; text-transform: uppercase; }
.review-mode-badge i { width: 7px; height: 7px; border-radius: 50%; background: #d49a52; box-shadow: 0 0 0 4px rgba(212,154,82,.13); }
.auth-preview-card { position: relative; border-radius: 4px 20px 20px 20px; }
.auth-preview-card::after { content: none; }
.preview-fields { display: grid; gap: 15px; }
.preview-action[aria-disabled="true"] { cursor: not-allowed; }
.entry-rule { display: grid; gap: 4px; margin: 0; padding: 13px 14px; border-left: 3px solid var(--tenant-accent); color: var(--muted); background: #f5f8fa; }
.entry-rule strong { color: var(--ink); font-size: 11px; }
.entry-rule span { font-size: 10px; }
.merchant-entry-rule { border-left-color: #d7964c; background: #f8f6f1; }
.merchant-review-badge i { background: #d7964c; box-shadow: 0 0 0 4px rgba(215,150,76,.14); }
.realm-customer-page { --tenant-primary: #275fbd; --tenant-accent: #3bb7a7; }
.realm-customer.realm-shell { grid-template-columns: minmax(420px, .82fr) minmax(680px, 1.18fr); }
.realm-customer .realm-thesis { background: #172d49; }
.realm-customer .realm-thesis::before { width: 470px; height: 470px; top: auto; right: -250px; bottom: -180px; border-radius: 50%; transform: none; }
.realm-customer .realm-copy h1 { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.12; }
.realm-customer .realm-copy .eyebrow { color: #69d5c8; }
.realm-customer .realm-panel { background: #edf2f5; }
.customer-auth-panel { padding: 38px clamp(24px, 4.2vw, 64px); }
.customer-review-badge { width: min(760px,100%); }
.customer-review-badge i { background: var(--tenant-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tenant-accent) 14%, transparent); }
.auth-dual-card { width: min(760px,100%); margin: 0 auto; padding: 24px; border: 1px solid #c7d4df; border-radius: 4px 22px 22px 22px; background: #fff; box-shadow: 0 24px 64px rgba(18,49,75,.1); }
.auth-dual-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 8px 8px 22px; }
.auth-dual-head h2 { margin: 8px 0 0; color: var(--ink); font: 760 32px/1.05 var(--display); letter-spacing: -.035em; }
.auth-dual-head > span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #6d8094; font: 700 9px/1 var(--data); }
.auth-dual-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.auth-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 476px; padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; }
.auth-pane-number { margin: 0 0 22px; color: #718398; font: 700 9px/1 var(--data); letter-spacing: .12em; text-transform: uppercase; }
.auth-pane h3 { margin: 0; color: var(--ink); font: 760 27px/1 var(--display); }
.auth-pane > p:not(.auth-pane-number) { min-height: 42px; margin: 10px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-pane .preview-fields { margin-bottom: 18px; }
.auth-pane .preview-action { margin-top: auto; }
.registration-pane { border-color: color-mix(in srgb, var(--tenant-accent) 32%, #cbd7df); background: color-mix(in srgb, var(--tenant-accent) 6%, white); }
.registration-pane::before { content: "OPEN"; position: absolute; top: 22px; right: 22px; color: var(--tenant-primary); font: 700 8px/1 var(--data); letter-spacing: .14em; }
.compact-fields { gap: 11px; }
.compact-fields input { min-height: 42px; }
.customer-boundary-note { display: flex; justify-content: space-between; gap: 18px; margin: 18px 8px 2px; color: #708296; font-size: 10px; }
.customer-boundary-note strong { color: var(--ink); }

.portal-page { background: var(--navy); color: white; }
.portal-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 100vh; padding-bottom: 60px; }
.portal-nav { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.portal-hero { padding: clamp(70px, 12vw, 145px) 0 90px; }
.portal-hero .eyebrow { color: #78d5cb; }
.portal-hero h1 { margin: 18px 0 24px; max-width: 900px; font: 780 clamp(52px, 9vw, 105px)/.94 var(--display); letter-spacing: -.065em; }
.portal-hero > p:not(.eyebrow) { max-width: 600px; color: #a9bfd2; font-size: 16px; line-height: 1.8; }
.portal-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.portal-actions span { color: #8fa9c1; font: 11px/1 var(--data); }
.portal-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.portal-rail article { padding: 28px 30px 28px 0; border-right: 1px solid rgba(255,255,255,.14); }
.portal-rail article + article { padding-left: 30px; }
.portal-rail article:last-child { border-right: 0; }
.portal-rail i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-style: normal; color: #7dd3ca; }
.portal-rail h2 { margin: 20px 0 9px; font: 700 18px/1.2 var(--display); }
.portal-rail p { margin: 0; color: #8fa8bf; font-size: 12px; line-height: 1.75; }

.platform-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.tenant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.platform-grid .tenant-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tenant-card { position: relative; border: 1px solid var(--line); background: white; border-radius: 16px; padding: 24px; overflow: hidden; }
.tenant-card::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--tenant-primary); }
.tenant-card > span { color: var(--muted); font: 10px/1 var(--data); text-transform: uppercase; }
.tenant-card h2 { margin: 12px 0 8px; }
.tenant-card p { color: var(--muted); font-size: 12px; min-height: 42px; }
.tenant-card div { display: flex; align-items: center; gap: 8px; margin: 24px 0 16px; color: var(--success); font-size: 11px; }
.tenant-card div i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.tenant-card .tenant-plugin { margin: -7px 0 18px; color: #6d7f91; }
.tenant-card .tenant-plugin i { background: #8798a8; }
.tenant-card .tenant-plugin.active, .tenant-card .tenant-plugin.legacy_active { color: #17705c; }
.tenant-card .tenant-plugin.active i, .tenant-card .tenant-plugin.legacy_active i { background: #26a78f; }
.tenant-card .tenant-plugin.expired, .tenant-card .tenant-plugin.suspended { color: #985b32; }
.tenant-card .tenant-plugin.expired i, .tenant-card .tenant-plugin.suspended i { background: #d4834d; }
.tenant-card a { color: var(--tenant-primary); font-size: 12px; font-weight: 700; }
.tenant-card footer { display: flex; justify-content: space-between; gap: 12px; }
.platform-create { position: sticky; top: 24px; }

.platform-admin-shell { --tenant-primary: var(--cobalt); --tenant-accent: var(--teal); }
.platform-admin-rail { background: #102940; }
.platform-scope { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #8eabc2; font: 10px/1.4 var(--data); letter-spacing: .09em; text-transform: uppercase; }
.platform-scope i { width: 7px; height: 7px; border-radius: 50%; background: #52c3b4; box-shadow: 0 0 0 4px rgba(82,195,180,.12); }
.merchant-control-page { width: min(1380px, calc(100% - 72px)); }
.merchant-control-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.merchant-control-head h1 { margin: 4px 0 9px; font: 750 clamp(36px, 4vw, 56px)/.98 var(--display); letter-spacing: -.045em; }
.merchant-control-head > div > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.75; }
.merchant-create-link { min-width: 120px; text-align: center; }
.merchant-register { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; overflow: hidden; border: 1px solid #24445f; border-radius: 18px; background: #102940; box-shadow: 0 20px 48px rgba(16,41,64,.12); }
.merchant-register a { position: relative; min-height: 126px; padding: 22px; color: #dceaf4; border-left: 1px solid rgba(255,255,255,.1); }
.merchant-register a:first-child { border-left: 0; }
.merchant-register a::after { content: ""; position: absolute; inset: auto 20px 0; height: 3px; background: transparent; }
.merchant-register a:hover, .merchant-register a.active { background: rgba(255,255,255,.055); }
.merchant-register a.active::after { background: #52c3b4; }
.merchant-register span, .merchant-register small { display: block; }
.merchant-register span { color: #8eabc2; font-size: 11px; }
.merchant-register strong { display: block; margin: 17px 0 8px; font: 700 30px/1 var(--data); }
.merchant-register small { color: #7896ad; font-size: 10px; }
.merchant-directory { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 12px 38px rgba(20,42,69,.055); }
.merchant-directory-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 26px 28px 20px; }
.merchant-directory-head h2 { margin: 4px 0 0; font: 720 23px/1.2 var(--display); }
.merchant-directory-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.merchant-toolbar { display: grid; grid-template-columns: minmax(240px, 1.8fr) minmax(150px, .75fr) minmax(170px, .85fr) auto auto; align-items: end; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); background: #f7fafc; }
.merchant-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.merchant-toolbar input, .merchant-toolbar select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.merchant-toolbar .small-button { height: 40px; }
.merchant-toolbar .text-link { align-self: center; color: var(--muted); font-size: 11px; white-space: nowrap; }
.merchant-table-wrap { overflow-x: auto; }
.merchant-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.merchant-table th { padding: 13px 18px; color: #728397; background: #fbfcfd; border-bottom: 1px solid var(--soft-line); font: 700 9px/1.3 var(--data); letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.merchant-table th:first-child, .merchant-table td:first-child { padding-left: 28px; }
.merchant-table th:last-child, .merchant-table td:last-child { padding-right: 28px; }
.merchant-table td { padding: 18px; border-bottom: 1px solid var(--soft-line); color: #4d6074; font-size: 11px; vertical-align: middle; }
.merchant-table tbody tr { transition: background .18s ease; }
.merchant-table tbody tr:hover { background: #f8fbfd; }
.merchant-name-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.merchant-monogram { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--merchant-color) 34%, white); border-radius: 11px; color: var(--merchant-color); background: color-mix(in srgb, var(--merchant-color) 8%, white); font-weight: 800; }
.merchant-name-cell strong, .cell-primary { display: block; color: var(--ink); font-size: 12px; }
.merchant-name-cell code { display: block; margin-top: 5px; color: #8291a2; font: 10px/1 var(--data); }
.merchant-lifeline { display: grid; grid-template-columns: repeat(3, 30px); gap: 4px; width: max-content; }
.merchant-lifeline i { height: 6px; border-radius: 999px; background: #cbd5df; }
.merchant-lifeline i.good { background: #2a927c; }
.merchant-lifeline i.waiting { background: #d18a4c; }
.merchant-lifeline i.alert { background: #b95850; }
.merchant-lifeline i.muted { background: #a8b5c1; }
.state-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; color: #216b59; background: #eaf6f1; font-size: 10px; font-weight: 700; white-space: nowrap; }
.state-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-pill.suspended { color: #9c514b; background: #faeeec; }
.cell-primary.warning { color: #a06731; }
.cell-primary.danger { color: var(--danger); }
.cell-note { display: block; margin-top: 5px; color: #8392a2; font-size: 10px; white-space: nowrap; }
.merchant-table time { font: 10px/1 var(--data); white-space: nowrap; }
.merchant-row-action { text-align: right; }
.merchant-row-action a { color: var(--cobalt); font-weight: 700; white-space: nowrap; }
.merchant-row-action a span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.merchant-row-action a:hover span { transform: translateX(3px); }
.merchant-empty { padding: 60px 20px; text-align: center; }
.merchant-empty span { color: var(--ink); font: 700 20px/1.2 var(--display); }
.merchant-empty p { margin: 9px 0 16px; color: var(--muted); }
.merchant-empty a { color: var(--cobalt); font-weight: 700; }
.merchant-directory-foot { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 28px; color: var(--muted); font-size: 10px; }
.merchant-directory-foot nav { display: flex; align-items: center; gap: 14px; }
.merchant-directory-foot a { color: var(--cobalt); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.platform-head { margin-bottom: 24px; }
.release-board { --release-accent: #d98a55; display: grid; grid-template-columns: 230px repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 20px; border: 1px solid #193b5b; border-radius: 18px; color: white; background: var(--navy); box-shadow: 0 22px 60px rgba(14,40,71,.16); }
.release-board.clear { --release-accent: #49c8b8; }
.release-signal { display: grid; align-content: center; min-height: 150px; padding: 26px 28px; background: var(--release-accent); color: var(--navy); }
.release-signal span, .release-register span, .manifest-stamp span { font: 800 9px/1 var(--data); letter-spacing: .14em; }
.release-signal strong { margin: 12px 0 9px; font: 850 40px/.9 var(--display); letter-spacing: -.04em; }
.release-signal small { font: 9px/1.4 var(--data); }
.release-register { display: grid; align-content: center; gap: 10px; min-width: 0; padding: 23px 20px; border-left: 1px solid rgba(255,255,255,.1); }
.release-register span { color: #8ea8bf; }
.release-register strong { color: white; font: 750 23px/1 var(--display); }
.release-register small { color: #7f9ab1; font-size: 9px; line-height: 1.55; }
.renewal-radar { margin-bottom: 26px; }
.radar-list { display: grid; }
.radar-item { display: grid; grid-template-columns: 14px minmax(130px, .7fr) minmax(220px, 1.35fr) 70px auto; align-items: center; gap: 16px; min-height: 72px; padding: 13px 0; border-top: 1px solid var(--soft-line); }
.radar-item > i { width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #7e91a2; box-shadow: 0 0 0 1px #7e91a2; }
.radar-item.renewal_due > i, .radar-item.expired > i { background: #d17a4d; box-shadow: 0 0 0 1px #d17a4d; }
.radar-item.legacy_record > i { background: #a96070; box-shadow: 0 0 0 1px #a96070; }
.radar-item.scheduled > i { background: #547ad8; box-shadow: 0 0 0 1px #547ad8; }
.radar-item div { display: grid; gap: 5px; }
.radar-item div span { color: var(--muted); font: 9px/1 var(--data); text-transform: uppercase; }
.radar-item div strong { font-size: 13px; }
.radar-item p { display: grid; gap: 5px; margin: 0; font-size: 12px; }
.radar-item p small { color: var(--muted); font: 9px/1.45 var(--data); }
.radar-item b { color: #6f4a31; font: 750 12px/1 var(--data); text-align: right; }
.radar-item a { color: var(--tenant-primary); font-size: 11px; font-weight: 750; white-space: nowrap; }
.section-caption { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 34px 0 18px; }
.section-caption h2 { margin: 4px 0 0; font: 730 26px/1.1 var(--display); }
.section-caption > span { color: var(--muted); font: 10px/1.5 var(--data); }

.readiness-shell { width: min(1240px, calc(100% - 48px)); }
.manifest-stamp { --stamp-accent: #d98a55; display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: center; overflow: hidden; margin-bottom: 20px; border: 1px solid #d7b18f; border-radius: 18px; background: #fff8f1; }
.manifest-stamp.clear { --stamp-accent: #39aa97; border-color: #9fd7cd; background: #f0fbf8; }
.manifest-stamp > div { display: grid; align-content: center; min-height: 154px; padding: 28px 32px; color: white; background: var(--stamp-accent); }
.manifest-stamp strong { margin: 12px 0 9px; font: 800 34px/1 var(--display); }
.manifest-stamp small { font: 9px/1 var(--data); }
.manifest-stamp p { max-width: 710px; margin: 0; padding: 28px 34px; color: #684932; font-size: 13px; line-height: 1.75; }
.manifest-stamp.clear p { color: #245f56; }
.manifest-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); gap: 20px; align-items: start; }
.check-manifest code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: #315c83; background: #f4f8fb; font: 9px/1 var(--data); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 14px; border: 1px solid var(--soft-line); border-radius: 12px; background: #f8fbfd; }
.check-item > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--danger); font: 800 12px/1 var(--data); }
.check-item.pass > i { background: var(--success); }
.check-item div { display: grid; gap: 6px; }
.check-item strong { font-size: 12px; }
.check-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.check-item > span { color: var(--danger); font: 800 8px/1 var(--data); }
.check-item.pass > span { color: var(--success); }
.clearance-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.clearance-list li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 16px 0; border-top: 1px dashed var(--line); }
.clearance-list li:first-child { border-top: 0; padding-top: 0; }
.clearance-list li > span { color: #9b6a48; font: 800 10px/1.4 var(--data); }
.clearance-list p { display: grid; gap: 7px; margin: 0; }
.clearance-list strong { font-size: 12px; }
.clearance-list small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.readiness-watch { margin-top: 20px; }
.radar-list.compact .radar-item { grid-template-columns: 14px minmax(150px, .7fr) minmax(220px, 1.3fr) auto; }
.handoff-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--paper-deep); }
.handoff-card { width: min(620px, 100%); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.handoff-card h1 { margin: 12px 0 14px; font: 760 clamp(34px, 7vw, 54px)/1 var(--display); letter-spacing: -.045em; }
.handoff-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.handoff-card form { display: grid; gap: 16px; margin-top: 24px; }
.handoff-card .inline-actions { margin-top: 22px; }
.narrow-shell { width: min(820px, calc(100% - 48px)); }
.settings-panel form { display: grid; gap: 16px; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.import-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.compensation-panel { margin: 20px 0; }
.compensation-form { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr 1.5fr auto; gap: 10px; align-items: end; }
.compensation-form input, .compensation-form select { min-height: 38px; }
.plan-card { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; padding: 18px; border: 1px solid #b9cfdf; border-radius: 14px; background: linear-gradient(135deg, #f7fbfe, #eaf4f7); }
.plan-card span { color: var(--muted); font-size: 11px; }
.plan-card strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--navy); }
.plan-card small { color: var(--tenant-primary); font: 10px/1.4 var(--data); }
.toggle-field { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.toggle-field input { flex: 0 0 auto; width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--tenant-primary); }
.toggle-field span { display: grid; gap: 5px; }
.toggle-field strong { color: var(--ink); }
.toggle-field small { line-height: 1.6; }
.recovery-panel { margin-top: 20px; }
.recovery-panel form { display: grid; gap: 14px; }

.portal-nav-actions { display: flex; gap: 9px; }
.portal-page .small-button.ghost { color: #d6e4ee; border-color: rgba(255,255,255,.22); }
.customer-dashboard { padding-bottom: 80px; }
.customer-thesis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 60px; align-items: end; padding: 70px 0 48px; }
.customer-thesis h1 { margin: 14px 0 20px; font: 760 clamp(42px, 6vw, 74px)/.98 var(--display); letter-spacing: -.055em; }
.customer-thesis > div > p:not(.eyebrow) { max-width: 650px; color: #a9bfd2; line-height: 1.8; }
.ledger-route { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.045); }
.ledger-route span { color: #a9bfd2; font: 10px/1.3 var(--data); white-space: nowrap; }
.ledger-route span.done { color: #86ddd3; }
.ledger-route i { height: 1px; background: linear-gradient(90deg, #2f9f9a, rgba(255,255,255,.16)); }
.portal-metrics .metric { background: rgba(255,255,255,.98); }
.portal-metrics .metric:not(.primary) { color: var(--ink); }
.portal-metrics .metric.primary { background: #081c31; border-color: rgba(255,255,255,.14); }
.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 20px; margin-top: 20px; }
.portal-dashboard-grid.lower-grid { grid-template-columns: 1fr 1fr; }
.portal-dark-panel { padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(7,28,48,.72); box-shadow: 0 22px 50px rgba(0,0,0,.12); }
.portal-dark-panel .panel-head h2, .portal-dark-panel .stack-item h3 { color: white; }
.portal-dark-panel .panel-head > span, .portal-dark-panel .stack-item p, .portal-dark-panel .stack-item small, .portal-dark-panel .form-note { color: #91acc3; }
.portal-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-account-grid article { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.045); }
.portal-account-grid h3 { margin: 16px 0 7px; color: white; font: 700 17px/1.3 var(--display); }
.portal-account-grid p { margin: 0; color: #91acc3; font-size: 11px; }
.portal-account-grid footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.portal-account-grid footer small { color: #7894ac; font: 10px/1 var(--data); }
.portal-form { display: grid; gap: 15px; }
.portal-form label { color: #b4c9da; }
.portal-form input { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.08); color: white; }

.head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.resource-link { color: var(--ink); text-decoration: none; }
.resource-link:hover strong { color: var(--tenant-primary); }
.resource-link small { color: var(--muted); }
.portal-record-link { color: white; text-decoration: none; }
.portal-record-link:hover { color: #86ddd3; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 6px; color: var(--muted); font: 700 9px/1 var(--data); letter-spacing: .16em; text-transform: uppercase; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; flex: 1; background: var(--soft-line); }
.form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.state-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.receipt-state { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: #546a7e; background: #f6f9fb; font: 700 9px/1 var(--data); }
.receipt-state.confirmed, .receipt-state.resolved, .receipt-state.legacy_accepted { color: #17664f; border-color: #b8dfd0; background: #e9f6f1; }
.receipt-state.disputed { color: #984a2c; border-color: #efcbb8; background: #fff1e9; }
.receipt-state.awaiting_customer { color: #765d1b; border-color: #e8d99e; background: #fff9de; }

.detail-page { max-width: 1220px; }
.account-dossier { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.dossier-mark { position: relative; display: grid; align-content: center; min-height: 185px; padding: 34px; color: white; background: var(--navy); }
.dossier-mark::after { content: ""; position: absolute; right: -44px; bottom: -44px; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); }
.dossier-mark span { color: #79d8ce; font: 700 9px/1 var(--data); letter-spacing: .18em; }
.dossier-mark strong { margin: 18px 0 10px; overflow-wrap: anywhere; min-width: 0; font: 760 clamp(25px, 3vw, 38px)/1 var(--display); }
.dossier-mark small { color: #93abc1; font: 10px/1.5 var(--data); }
.dossier-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dossier-facts div { display: grid; align-content: center; gap: 11px; padding: 30px; border-left: 1px solid var(--soft-line); }
.dossier-facts span, .statement-facts span { color: var(--muted); font-size: 11px; }
.dossier-facts strong { font: 700 18px/1.3 var(--display); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .62fr); gap: 20px; align-items: start; }
.sticky-action { position: sticky; top: 28px; }
.sticky-action form { display: grid; gap: 14px; }
.history-panel { min-height: 420px; }
.history-rail { position: relative; padding-left: 9px; }
.history-rail::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 14px; width: 1px; background: linear-gradient(var(--tenant-accent), var(--line)); }
.history-rail article { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 18px; padding: 0 0 28px; }
.history-rail article:last-child { padding-bottom: 0; }
.history-rail article > i { z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 3px solid white; border-radius: 50%; background: var(--tenant-accent); box-shadow: 0 0 0 1px var(--tenant-accent); }
.history-copy { padding: 0 0 23px; border-bottom: 1px solid var(--soft-line); }
.history-rail article:last-child .history-copy { padding-bottom: 0; border-bottom: 0; }
.history-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-title strong { font: 700 15px/1.2 var(--display); }
.history-title span { color: var(--tenant-primary); font: 700 9px/1 var(--data); }
.history-copy p { margin: 9px 0 6px; color: var(--ink); font-size: 13px; }
.history-copy small { color: var(--muted); font-size: 10px; line-height: 1.55; }

.statement-sheet { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.receipt-strip { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 18px; padding: 24px 28px; color: white; background: var(--navy); }
.receipt-strip span { display: grid; gap: 7px; color: #92aac0; font-size: 10px; }
.receipt-strip strong { color: white; font: 700 15px/1.1 var(--display); }
.receipt-strip i { height: 1px; background: linear-gradient(90deg, var(--tenant-accent), rgba(255,255,255,.12)); }
.statement-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statement-facts > div { display: grid; gap: 9px; padding: 26px 28px; border-right: 1px solid var(--soft-line); }
.statement-facts > div:last-child { border-right: 0; }
.statement-facts strong { font: 700 15px/1.35 var(--display); word-break: break-word; }
.statement-facts small { color: var(--muted); font: 10px/1.45 var(--data); }
.statement-description { margin: 0; padding: 18px 28px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; }
.receipt-rail .history-copy p { line-height: 1.6; }
.dispute-note, .resolution-note { margin-bottom: 16px; padding: 15px; border-radius: 12px; }
.dispute-note { color: #7f3e25; background: #fff0e7; border: 1px solid #f2ccb8; }
.resolution-note { color: #1f6156; background: #e9f6f2; border: 1px solid #bfe2d8; }
.dispute-note span, .resolution-note span { font: 700 9px/1 var(--data); letter-spacing: .12em; }
.dispute-note p, .resolution-note p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }

.statement-portal { padding-bottom: 90px; }
.statement-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 68px 0 42px; }
.statement-hero h1 { margin: 14px 0 18px; color: white; font: 760 clamp(42px, 6vw, 72px)/.98 var(--display); letter-spacing: -.055em; }
.statement-hero p:not(.eyebrow) { margin: 0; color: #a9bfd2; }
.dark-sheet { border-color: rgba(255,255,255,.15); background: #f8fbfd; box-shadow: 0 24px 60px rgba(0,0,0,.15); }
.dark-sheet .statement-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dark-sheet .statement-facts strong { color: var(--ink); }
.statement-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .65fr); }
.statement-grid .history-copy { border-color: rgba(255,255,255,.12); }
.statement-grid .history-rail::before { background: linear-gradient(#79d8ce, rgba(255,255,255,.12)); }
.statement-grid .history-rail article > i { border-color: #0a263f; }
.statement-grid .history-copy p, .statement-grid .history-title strong { color: white; }
.statement-grid .history-copy small, .statement-grid .history-title span { color: #8faac1; }
.receipt-action form { display: grid; gap: 14px; }
.receipt-action .resolution-note { color: #b9eee4; border-color: rgba(121,216,206,.28); background: rgba(121,216,206,.08); }
.dispute-form { margin-top: 14px; }
.receipt-action .small-button.ghost { color: #d6e4ee; border-color: rgba(255,255,255,.22); }

.entitlement-shell { width: min(1240px, calc(100% - 48px)); }
.entitlement-pass { --pass-accent: #74879a; position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; margin: 26px 0 20px; border: 1px solid #9eb2c4; border-radius: 20px; color: white; background: var(--navy); box-shadow: 0 22px 60px rgba(17,45,70,.18); }
.entitlement-pass::before, .entitlement-pass::after { content: ""; position: absolute; z-index: 2; left: 178px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.entitlement-pass::before { top: -12px; }
.entitlement-pass::after { bottom: -12px; }
.entitlement-pass.status-active, .entitlement-pass.status-legacy_active { --pass-accent: #3bc0b5; }
.entitlement-pass.status-scheduled { --pass-accent: #6f92ff; }
.entitlement-pass.status-suspended, .entitlement-pass.status-expired { --pass-accent: #e09a62; }
.entitlement-pass.status-revoked { --pass-accent: #c86662; }
.pass-spine { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; min-height: 248px; border-right: 1px dashed rgba(255,255,255,.28); background: var(--pass-accent); color: var(--navy); }
.pass-spine span, .pass-spine small { font: 800 9px/1 var(--data); letter-spacing: .18em; text-transform: uppercase; }
.pass-spine strong { font: 850 62px/.9 var(--display); }
.pass-main { min-width: 0; }
.pass-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-bottom: 1px solid rgba(255,255,255,.13); }
.pass-title p { margin: 0 0 8px; color: #7edbd3; font: 800 9px/1 var(--data); letter-spacing: .18em; }
.pass-title h2 { margin: 0; color: white; font: 760 31px/1 var(--display); }
.entitlement-state { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d7e5ef; font-size: 11px; }
.entitlement-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--pass-accent); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.pass-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pass-facts > div { display: grid; align-content: center; gap: 9px; min-height: 128px; padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.1); }
.pass-facts > div:last-child { border-right: 0; }
.pass-facts span { color: #88a3ba; font-size: 10px; }
.pass-facts strong { color: white; font: 700 14px/1.45 var(--display); word-break: break-word; }
.pass-facts small { color: #7692a9; font: 9px/1.5 var(--data); }
.entitlement-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 20px; align-items: start; }
.contract-form { display: grid; gap: 14px; }
.contract-warning { padding: 15px 17px; border: 1px solid #e4c5a8; border-radius: 12px; color: #704526; background: #fff6ed; }
.contract-warning p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; }
.entitlement-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.entitlement-control-row form { display: grid; align-content: end; gap: 10px; padding: 14px; border: 1px solid var(--soft-line); border-radius: 12px; background: #f8fbfd; }
.small-button.danger { color: white; background: var(--danger); }
.contract-rail { position: relative; display: grid; gap: 0; }
.contract-rail::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 6px; width: 1px; background: linear-gradient(var(--tenant-accent), var(--soft-line)); }
.contract-rail article { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 14px; }
.contract-rail article > i { z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 2px solid white; border-radius: 50%; background: var(--tenant-accent); box-shadow: 0 0 0 1px var(--tenant-accent); }
.contract-rail article > div { display: grid; gap: 8px; padding-bottom: 22px; }
.contract-rail article + article > div { padding-top: 19px; border-top: 1px dashed var(--line); }
.contract-rail header { display: flex; justify-content: space-between; gap: 12px; }
.contract-rail header span { color: var(--tenant-primary); font: 750 9px/1 var(--data); }
.contract-rail p, .contract-rail b, .contract-rail small { margin: 0; }
.contract-rail p { color: var(--ink); font-size: 12px; }
.contract-rail b { color: #24557c; font: 700 10px/1.5 var(--data); }
.contract-rail small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.base-settings, .entitlement-shell .recovery-panel { margin-top: 20px; }

@media (max-width: 1040px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .finance-grid, .platform-grid { grid-template-columns: 1fr; }
  .release-board { grid-template-columns: 210px 1fr 1fr; }
  .release-signal { grid-row: span 2; }
  .manifest-grid { grid-template-columns: 1fr; }
  .form-panel { order: -1; }
  .platform-create { position: static; order: 0; }
  .login-shell { grid-template-columns: 1fr 430px; }
  .login-copy h1 { font-size: 52px; }
  .ledger-band { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .compensation-form { grid-template-columns: 1fr 1fr; }
  .customer-thesis { grid-template-columns: 1fr; gap: 28px; }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .detail-grid, .statement-grid { grid-template-columns: 1fr; }
  .sticky-action { position: static; }
  .statement-facts { grid-template-columns: 1fr 1fr; }
  .entitlement-grid { grid-template-columns: 1fr; }
  .pass-facts { grid-template-columns: 1fr 1fr; }
  .merchant-register { grid-template-columns: repeat(3, 1fr); }
  .merchant-register a:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .merchant-register a:nth-child(5) { border-top: 1px solid rgba(255,255,255,.1); }
  .merchant-toolbar { grid-template-columns: 1fr 1fr; }
  .merchant-search { grid-column: 1 / -1; }
  .realm-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr); }
  .realm-copy h1 { font-size: 56px; }
  .realm-customer.realm-shell { display: block; }
  .realm-customer .realm-thesis { min-height: 58vh; }
  .realm-customer .realm-copy { margin-top: 110px; }
}

@media (max-width: 760px) {
  .flash-stack { position: static; width: min(100% - 28px, 700px); margin: 14px auto 0; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .24s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .mobile-bar { display: flex; position: sticky; z-index: 30; top: 0; justify-content: space-between; align-items: center; height: 58px; padding: 0 18px; color: white; background: var(--navy); }
  .menu-button { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: white; background: transparent; padding: 7px 10px; }
  .page-frame { width: min(100% - 28px, 700px); padding: 28px 0 54px; }
  .page-head { display: grid; gap: 18px; }
  .page-head h1 { font-size: 34px; }
  .metric-grid, .split-grid, .portal-rail, .tenant-grid, .platform-grid .tenant-grid { grid-template-columns: 1fr; }
  .platform-head .head-actions { justify-content: flex-start; }
  .release-board { grid-template-columns: 1fr; }
  .release-signal { grid-row: auto; min-height: 120px; }
  .release-register { min-height: 98px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .radar-item, .radar-list.compact .radar-item { grid-template-columns: 12px 1fr auto; gap: 12px; }
  .radar-item p { grid-column: 2 / -1; }
  .radar-item b { grid-column: 2; grid-row: 3; text-align: left; }
  .radar-item a { grid-column: 3; }
  .section-caption { align-items: flex-start; flex-direction: column; }
  .manifest-stamp { grid-template-columns: 1fr; }
  .manifest-stamp > div { min-height: 128px; }
  .manifest-stamp p { padding: 24px; }
  .check-list { grid-template-columns: 1fr; }
  .metric { min-height: 128px; }
  .stack-item { align-items: flex-start; flex-direction: column; }
  .inline-actions, .refund-form { width: 100%; }
  .transition-form, .member-form { align-items: stretch; flex-direction: column; min-width: 0; }
  .transition-form select, .member-form select { width: 100%; }
  .refund-form input { flex: 1; width: auto; }
  .login-shell { display: block; }
  .login-thesis { min-height: 55vh; padding: 28px 24px 34px; }
  .login-copy { margin: 80px 0 40px; }
  .login-copy h1 { font-size: clamp(40px, 13vw, 60px); }
  .login-panel { padding: 30px 18px 48px; }
  .login-card { padding: 25px; }
  .portal-shell { width: min(100% - 32px, 650px); }
  .portal-hero { padding: 80px 0 70px; }
  .portal-hero h1 { font-size: clamp(48px, 16vw, 76px); }
  .portal-actions { align-items: flex-start; flex-direction: column; }
  .portal-nav { align-items: flex-start; gap: 18px; }
  .portal-nav-actions { align-items: stretch; flex-direction: column; }
  .customer-thesis { padding: 54px 0 32px; }
  .ledger-route { grid-template-columns: 1fr; }
  .ledger-route i { width: 1px; height: 18px; margin-left: 8px; }
  .portal-account-grid, .portal-dashboard-grid.lower-grid { grid-template-columns: 1fr; }
  .account-dossier { grid-template-columns: 1fr; }
  .dossier-facts { grid-template-columns: 1fr; }
  .dossier-facts div { border-top: 1px solid var(--soft-line); border-left: 0; }
  .statement-hero { align-items: flex-start; flex-direction: column; }
  .statement-facts, .dark-sheet .statement-facts { grid-template-columns: 1fr; }
  .statement-facts > div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .receipt-strip { grid-template-columns: 1fr; }
  .receipt-strip i { width: 30px; }
  .compensation-form { grid-template-columns: 1fr; }
  .portal-rail article, .portal-rail article + article { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .form-row { grid-template-columns: 1fr; }
  .ledger-list > div { grid-template-columns: 1fr auto; align-items: start; }
  .ledger-list code { grid-column: 1 / -1; }
  .entitlement-shell { width: min(100% - 28px, 700px); padding-top: 30px; }
  .entitlement-pass { grid-template-columns: 1fr; }
  .entitlement-pass::before, .entitlement-pass::after { display: none; }
  .pass-spine { grid-template-columns: auto auto 1fr; justify-items: start; min-height: 0; padding: 18px 22px; border-right: 0; border-bottom: 1px dashed rgba(255,255,255,.28); }
  .pass-spine strong { font-size: 28px; }
  .pass-spine small { justify-self: end; }
  .pass-title { align-items: flex-start; flex-direction: column; padding: 24px; }
  .pass-facts { grid-template-columns: 1fr; }
  .pass-facts > div { min-height: 0; padding: 20px 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .entitlement-control-row { grid-template-columns: 1fr; }
  .realm-shell { display: block; }
  .realm-thesis { min-height: 54vh; padding: 27px 22px 30px; }
  .realm-copy { margin: 70px 0 42px; }
  .realm-copy h1 { font-size: clamp(44px, 14vw, 64px); }
  .realm-copy > p:last-child { font-size: 13px; }
  .realm-panel { padding: 30px 18px 44px; }
  .realm-card { padding: 27px 23px; }
  .realm-card h2 { font-size: 28px; }
  .realm-seal { top: 26px; right: 22px; min-width: 94px; }
  .boundary-register > div { padding-right: 8px; }
  .boundary-register > div + div { padding-left: 12px; }
  .boundary-register > div + div::before { left: 12px; }
  .merchant-route-map { gap: 8px; }
  .admission-steps span { display: none; }
  .merchant-control-page { width: min(100% - 28px, 700px); padding-top: 28px; }
  .merchant-control-head { align-items: flex-start; flex-direction: column; }
  .merchant-control-head h1 { font-size: 40px; }
  .merchant-create-link { width: 100%; }
  .merchant-register { grid-template-columns: 1fr 1fr; }
  .merchant-register a { min-height: 106px; padding: 18px; border-top: 1px solid rgba(255,255,255,.1); }
  .merchant-register a:nth-child(odd) { border-left: 0; }
  .merchant-register a:first-child, .merchant-register a:nth-child(2) { border-top: 0; }
  .merchant-register a:last-child { grid-column: 1 / -1; }
  .merchant-directory-head { align-items: flex-start; flex-direction: column; padding: 22px 20px 16px; }
  .merchant-directory-head > p { text-align: left; }
  .merchant-toolbar { grid-template-columns: 1fr; padding: 16px 20px; }
  .merchant-search { grid-column: auto; }
  .merchant-toolbar .text-link { padding: 8px 0; }
  .merchant-table { min-width: 0; }
  .merchant-table thead { display: none; }
  .merchant-table, .merchant-table tbody, .merchant-table tr, .merchant-table td { display: block; width: 100%; }
  .merchant-table tr { padding: 18px 20px; border-bottom: 1px solid var(--soft-line); }
  .merchant-table td, .merchant-table th:first-child, .merchant-table td:first-child, .merchant-table th:last-child, .merchant-table td:last-child { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; min-height: 42px; padding: 7px 0; border: 0; text-align: left; }
  .merchant-table td::before { content: attr(data-label); color: #8997a6; font: 700 9px/1 var(--data); letter-spacing: .08em; text-transform: uppercase; }
  .merchant-table td:first-child { display: block; padding-bottom: 13px; }
  .merchant-table td:first-child::before, .merchant-table td:last-child::before { display: none; }
  .merchant-row-action a { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
  .merchant-directory-foot { padding: 0 20px; }
  .realm-customer .realm-thesis { min-height: 54vh; }
  .realm-customer .realm-copy { margin-top: 86px; }
  .customer-auth-panel { padding: 28px 14px 42px; }
  .auth-dual-card { padding: 15px; border-radius: 4px 18px 18px 18px; }
  .auth-dual-head { align-items: flex-start; flex-direction: column; padding: 7px 5px 18px; }
  .auth-dual-head h2 { font-size: 28px; }
  .auth-dual-grid { grid-template-columns: 1fr; }
  .auth-pane { min-height: 0; padding: 23px; }
  .auth-pane > p:not(.auth-pane-number) { min-height: 0; }
  .customer-boundary-note { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Darkzone business forms follow the existing blue / teal merchant system. */
.check-line { display:flex!important; align-items:flex-start; gap:10px; font-size:12px; line-height:1.7; margin:14px 0; }
.check-line input { width:17px!important; min-width:17px; height:17px; margin-top:3px; }
.intake-panel { max-width:820px; margin:0 auto 40px; }
.intake-form { padding:8px; }
.darkzone-fields textarea { width:100%; border:1px solid #ccd7e4; border-radius:10px; padding:12px; font:inherit; resize:vertical; }
.account-specification, .darkzone-statement-create, .business-next, .plugin-catalog { margin-bottom:24px; }
.specification-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.specification-grid dt { color:#63748b; font-size:12px; }
.specification-grid dd { margin:6px 0 0; overflow-wrap:anywhere; }
.account-review-form { display:flex; align-items:end; gap:12px; border-top:1px solid #dde5ed; margin-top:22px; padding-top:20px; }
.account-review-form label { flex:1; }
.edit-disclosure { margin:20px 0; border-top:1px solid #dde5ed; padding-top:16px; }
.edit-disclosure summary { cursor:pointer; font-weight:700; margin-bottom:16px; }
.business-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 20px; }
.business-form .full-width { grid-column:1/-1; }
.business-statement { border-top:1px solid #bdcbdc; padding:24px 28px; color:var(--ink); }
.business-statement p { overflow-wrap:anywhere; }
.business-lines { max-width:620px; }
.business-lines div { display:flex; justify-content:space-between; gap:20px; padding:10px 0; }
.business-lines dd { margin:0; font-variant-numeric:tabular-nums; }
.business-total { border-top:1px solid #bdcbdc; font-weight:800; }
.business-next { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.business-next h2 { margin:4px 0 8px; }
.plugin-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.plugin-cards article { border-left:3px solid #9aaec4; padding:4px 18px; }
.plugin-cards article span { font-size:12px; color:#526780; }
.plugin-cards h3 { margin:8px 0; }
.plugin-cards p { font-size:13px; line-height:1.7; }
@media(max-width:760px) {
  .business-form,.specification-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .business-next,.account-review-form { flex-direction:column; align-items:stretch; }
  .plugin-cards { grid-template-columns:1fr; }
  .customer-auth-panel { min-width:0; }
}
@media(max-width:480px) {
  .business-form,.specification-grid { grid-template-columns:1fr; }
  .intake-panel { padding:16px; }
}
.site-compliance { padding:16px 24px; text-align:center; color:var(--muted); font-size:12px; }
.site-compliance a { color:inherit; text-decoration:none; }
.site-compliance a:hover { text-decoration:underline; }
