/* Pixel-test environment — QT-16609.
   Three skins on one sheet: [data-app=console] start screen, [data-app=hotel]
   the pretend hotel, [data-app=pay] the pretend payment provider. The rig strip
   is shared. No external assets except Google Fonts (loaded per page). */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: inherit; }

:root {
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --host-a: #2dd4bf; --host-b: #a78bfa; --host-c: #60a5fa;
  --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b;
}

body { font-family: var(--sans); line-height: 1.55; padding-bottom: 64px; }

/* ============================== CONSOLE (start screen) ====================
   One focused column: paste → pick variant → dates → route → start.
   Quiet surfaces, sentence case, a single accent. */
[data-app="console"] { background: #0f1115; color: #e2e7ee; }
[data-app="console"] .wrap { max-width: 660px; margin: 0 auto; padding: 52px 24px 90px; }

.mast { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.mast .mark { width: 27px; height: 27px; border-radius: 8px; background: #1c2431; display: grid; place-items: center; flex: none; }
.mast h1 { font: 600 19px/1 var(--sans); letter-spacing: -0.01em; color: #f2f5f9; }
.mast .ticket { margin-left: auto; font: 500 11px var(--mono); color: #6c7787; }
.console-sub { color: #98a2b2; font-size: 13.5px; margin: 0 0 24px 38px; }

.env-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 28px 38px; font: 500 11px var(--mono); }
.env-strip .lbl { color: #5b6675; margin-right: 3px; }
.env-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #262b36; border-radius: 999px; padding: 3px 10px; color: #98a2b2; cursor: default; }
.env-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #4b5563; }
.env-chip.ok .dot { background: var(--ok); }
.env-chip.bad { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.env-chip.bad .dot { background: var(--bad); }
.env-issues { margin: -20px 0 28px 38px; font-size: 12px; color: #c98a8a; line-height: 1.6; }

.block { background: #14171d; border: 1px solid #232833; border-radius: 12px; padding: 18px 20px 20px; margin-bottom: 14px; }
.block-title { display: block; font-size: 13px; font-weight: 600; color: #cdd5df; margin-bottom: 11px; }

.linkbox { width: 100%; background: #0d0f13; color: #e6ebf1; border: 1px solid #2a3140; border-radius: 9px; padding: 11px 13px; font: 400 12.5px/1.55 var(--mono); min-height: 66px; resize: vertical; }
.linkbox::placeholder { color: #556072; }
.linkbox:focus { outline: none; border-color: #3b82f6; }
.parse { margin-top: 11px; border-radius: 9px; padding: 11px 13px; font-size: 13px; border: 1px solid transparent; display: none; line-height: 1.55; }
.parse.show { display: block; }
.parse.ok { background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.28); }
.parse.none { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.28); }
.parse.hint { background: rgba(96, 165, 250, 0.07); border-color: rgba(96, 165, 250, 0.28); }
.parse b { color: #f2f5f9; font-weight: 600; }
.parse code { font: 500 12px var(--mono); background: #0d0f13; border-radius: 4px; padding: 1px 6px; word-break: break-all; }
.parse .sub { display: block; margin-top: 5px; color: #93a0b1; font-size: 12px; }

.variant-list { border: 1px solid #232833; border-radius: 10px; overflow: hidden; }
.variant { display: flex; width: 100%; text-align: left; align-items: center; gap: 12px; padding: 11px 14px; background: transparent; border: 0; border-bottom: 1px solid #1d222b; color: #cdd5df; }
.variant:last-child { border-bottom: 0; }
.variant:hover { background: #181d25; }
.variant .radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #3b4452; flex: none; position: relative; }
.variant[aria-pressed="true"] .radio { border-color: #3b82f6; }
.variant[aria-pressed="true"] .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #3b82f6; }
.variant .v-name { font-weight: 600; font-size: 13.5px; color: #e6ebf1; white-space: nowrap; }
.variant .v-how { flex: 1; font-size: 12px; color: #79879a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant .v-suggest { flex: none; font: 600 10px var(--mono); color: #93c5fd; background: rgba(59, 130, 246, 0.14); border-radius: 4px; padding: 2px 8px; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; }
.field label { display: block; font-size: 11.5px; color: #79879a; margin-bottom: 5px; }
.field input { width: 100%; background: #0d0f13; color: #e6ebf1; border: 1px solid #2a3140; border-radius: 8px; padding: 8px 11px; font-size: 13.5px; }
.field input:focus { outline: none; border-color: #3b82f6; }

.rt-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.rt-row .host-chip { align-self: center; }
.rt-host { font: 600 12px var(--mono); word-break: break-all; }
.rt-host.a { color: var(--host-a); } .rt-host.b { color: var(--host-b); } .rt-host.c { color: var(--host-c); }
.rt-role { font-size: 12px; color: #79879a; }
.rt-hop { font: 500 11px var(--mono); color: #5b6675; padding: 1px 0 1px 5px; }

.start-btn { width: 100%; background: #2563eb; color: #fff; border: 0; border-radius: 10px; padding: 13px; font-weight: 600; font-size: 14.5px; }
.start-btn:hover { background: #1f56d4; }
.start-note { margin-top: 10px; font-size: 12px; color: #6c7787; text-align: center; }

/* ============================== HOTEL ===================================== */
[data-app="hotel"] { background: #f8f4ed; color: #26201773; color: #2b241a; }
[data-app="hotel"] .wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px 60px; }
.hotel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; border-bottom: 1px solid #e4dccc; margin-bottom: 26px; }
.hotel-brand { font: 600 24px/1 var(--serif); letter-spacing: 0.01em; color: #1f3d33; }
.hotel-brand .stars { color: #b98a3d; font-size: 15px; letter-spacing: 3px; margin-left: 8px; }
.hotel-brand small { display: block; font: 500 11px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #8d8371; margin-top: 5px; }
.test-ribbon { font: 700 10.5px var(--mono); letter-spacing: 0.12em; color: #8a4b0f; background: #f5e3c8; border: 1px solid #e4c896; padding: 4px 10px; border-radius: 6px; }

.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 34px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: none; text-align: center; padding: 0 14px; color: #a29a89; }
.step .s-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.step .s-host { font: 500 10px var(--mono); margin-top: 2px; opacity: 0.85; }
.step.done { color: #1f5c4d; }
.step.now { color: #14281f; }
.step.now .s-name { border-bottom: 2px solid #b98a3d; padding-bottom: 2px; }
.hop { flex: none; font: 600 9.5px var(--mono); color: #fff; border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.hop.sub { background: #7c6fd0; }
.hop.dom { background: #3f7fd6; }
.hop.plain { background: #cfc7b4; color: #7a715e; padding: 3px 5px; }

.hotel-title { font: 600 34px/1.15 var(--serif); color: #1c1710; margin-bottom: 6px; letter-spacing: -0.01em; }
.hotel-sub { color: #7a715e; margin-bottom: 28px; font-size: 15px; }

.rooms { display: grid; gap: 18px; }
.room { display: grid; grid-template-columns: 260px 1fr auto; gap: 20px; background: #fffdf8; border: 1px solid #e8e0d0; border-radius: 14px; padding: 16px; align-items: center; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }
.room-art { border-radius: 10px; overflow: hidden; height: 150px; }
.room-art svg { width: 100%; height: 100%; }
.room h3 { font: 600 20px var(--serif); color: #221c12; margin-bottom: 3px; }
.room .rate { color: #1f5c4d; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.room p { color: #7a715e; font-size: 13.5px; }
.room-side { text-align: right; min-width: 150px; }
.room-side .price { font: 600 24px var(--serif); color: #1c1710; }
.room-side .per { font-size: 11.5px; color: #a29a89; margin-bottom: 12px; }

.btn { display: inline-block; background: #1f5c4d; color: #fff; border: 0; border-radius: 9px; padding: 11px 22px; font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; }
.btn:hover { background: #17493d; }
.btn.gold { background: #b98a3d; } .btn.gold:hover { background: #a4782f; }
.btn.ghost { background: transparent; color: #1f5c4d; border: 1.5px solid #1f5c4d; }
.btn.big { padding: 14px 28px; font-size: 15px; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.card { background: #fffdf8; border: 1px solid #e8e0d0; border-radius: 14px; padding: 22px; }
.card h3 { font: 600 19px var(--serif); color: #221c12; margin-bottom: 16px; }

.extra { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px dashed #e8e0d0; }
.extra:last-of-type { border-bottom: 0; }
.extra input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1f5c4d; }
.extra .x-label { flex: 1; font-size: 14.5px; }
.extra .x-price { font-weight: 600; color: #1c1710; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: #574f3f; }
.summary-row.total { border-top: 1.5px solid #e0d7c3; margin-top: 8px; padding-top: 12px; font-weight: 700; color: #1c1710; font-size: 16px; }
.summary-note { font-size: 12px; color: #a29a89; margin-top: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 12px; font-weight: 600; color: #574f3f; margin-bottom: 5px; }
.f input { width: 100%; border: 1px solid #d9d0bc; background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #221c12; }
.f input:focus { outline: 2px solid #1f5c4d33; border-color: #1f5c4d; }
.inert-note { font-size: 11.5px; color: #a29a89; margin-top: 4px; }

.secure-banner { display: flex; gap: 10px; align-items: center; background: #eef3ee; border: 1px solid #d5e2d5; color: #2f5540; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 22px; }

/* ============================== PAYMENT PROVIDER ========================== */
[data-app="pay"] { background: #f2f5fa; color: #1c2433; }
[data-app="pay"] .wrap { max-width: 920px; margin: 0 auto; padding: 0 24px 60px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #dde4ee; margin-bottom: 30px; }
.pay-brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--sans); letter-spacing: -0.02em; color: #10265c; }
.pay-brand .pb-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #2458e6, #16bdf0); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.pay-secure { font-size: 12px; color: #5c6b84; display: flex; align-items: center; gap: 6px; }
.cfb-note { background: #fff7e8; border: 1px solid #ecd9ae; color: #7a5a1c; border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 22px; }
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 780px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { background: #fff; border: 1px solid #dde4ee; border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(16, 38, 92, 0.06); }
.pay-card h3 { font-size: 16px; font-weight: 700; color: #10265c; margin-bottom: 16px; }
.pay-card .f label { color: #44506a; }
.pay-card .f input { border-color: #ccd6e6; background: #fbfcfe; }
.merchant { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #f6f9ff; border: 1px solid #dbe6fb; border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; }
.merchant b { color: #10265c; }
.ret-methods { margin: 18px 0 6px; }
.ret { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid #dde4ee; border-radius: 10px; margin-bottom: 9px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ret:has(input:checked) { border-color: #2458e6; background: #f4f8ff; }
.ret input { margin-top: 3px; accent-color: #2458e6; }
.ret .r-name { font-weight: 600; font-size: 13.5px; color: #16233c; }
.ret .r-desc { font-size: 12px; color: #5c6b84; margin-top: 1px; }
.pay-btn { width: 100%; background: #2458e6; color: #fff; border: 0; border-radius: 10px; padding: 14px; font-weight: 700; font-size: 15px; margin-top: 14px; }
.pay-btn:hover { background: #1c48c6; }
.pay-btn:disabled { background: #9fb4e0; cursor: wait; }
.pay-note { font-size: 11.5px; color: #8593ab; text-align: center; margin-top: 10px; }

.frame-overlay { position: fixed; inset: 0; background: rgba(13, 20, 36, 0.62); display: none; place-items: center; z-index: 60; padding: 24px; }
.frame-overlay.show { display: grid; }
.frame-box { background: #fff; border-radius: 14px; width: min(960px, 96vw); height: min(84vh, 780px); display: flex; flex-direction: column; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #10265c; color: #cdd9f3; font: 500 12px var(--mono); }
.frame-bar .close { margin-left: auto; background: none; border: 0; color: #cdd9f3; font-size: 18px; }
.frame-box iframe { flex: 1; border: 0; width: 100%; }

/* ============================== CONFIRMATION REPORT ======================= */
.confirm-hero { text-align: center; padding: 34px 20px 10px; }
.confirm-hero .big-check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #1f5c4d; color: #fff; display: grid; place-items: center; font-size: 30px; }
.confirm-hero h1 { font: 600 32px var(--serif); color: #1c1710; }
.confirm-hero p { color: #7a715e; margin-top: 6px; }
.confirm-hero .ref { font: 600 13px var(--mono); background: #fffdf8; border: 1px solid #e8e0d0; border-radius: 8px; display: inline-block; padding: 6px 14px; margin-top: 14px; }

.report { background: #10151c; border: 1px solid #27313d; border-radius: 14px; color: #cfd8e0; padding: 22px; margin-top: 30px; }
.report h3 { font: 600 12.5px var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: #8b98a5; margin-bottom: 4px; }
.report .r-sub { font-size: 12.5px; color: #6b7885; margin-bottom: 16px; }
.verdict { border-radius: 10px; padding: 14px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; border: 1px solid transparent; }
.verdict.ok { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.4); color: #6ee7a0; }
.verdict.bad { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.verdict.warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.verdict small { display: block; font-weight: 400; margin-top: 4px; opacity: 0.85; }

.beacon { border: 1px solid #27313d; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.beacon-head { display: flex; gap: 10px; align-items: center; padding: 9px 13px; background: #161d26; font: 500 12px var(--mono); flex-wrap: wrap; }
.beacon-head .b-method { color: #7cb9ff; font-weight: 700; }
.beacon-head .b-path { color: #e5ecf2; word-break: break-all; }
.beacon-head .b-via { color: #6b7885; }
.beacon-head .b-status { margin-left: auto; color: #9aa7b4; }
.beacon-head .b-status.ok { color: #6ee7a0; }
.beacon table { width: 100%; border-collapse: collapse; font: 400 12px var(--mono); }
.beacon td { padding: 5px 13px; border-top: 1px solid #1c242e; vertical-align: top; word-break: break-all; }
.beacon td.k { color: #8b98a5; width: 190px; white-space: nowrap; }
.beacon tr.hot td { background: rgba(37, 99, 235, 0.1); }
.beacon tr.hot td.k { color: #7cb9ff; font-weight: 700; }
.beacon .empty-val { color: #fca5a5; font-style: italic; }
.no-beacons { color: #9aa7b4; font-size: 13.5px; padding: 10px 2px; }

.journey { margin-top: 22px; }
.journey table { width: 100%; border-collapse: collapse; font-size: 13px; }
.journey th { text-align: left; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: #6b7885; padding: 6px 10px; border-bottom: 1px solid #27313d; }
.journey td { padding: 8px 10px; border-bottom: 1px solid #1c242e; }
.journey .j-src.u, .journey .j-src.s, .journey .j-src.k { color: #6ee7a0; }
.journey .j-src.x { color: #fca5a5; }
.host-chip { display: inline-block; font: 700 10px var(--mono); border-radius: 4px; padding: 1px 7px; color: #0d1117; }
.host-chip.a { background: var(--host-a); } .host-chip.b { background: var(--host-b); } .host-chip.c { background: var(--host-c); }

.findings { margin-top: 18px; font-size: 12.5px; color: #9aa7b4; }
.findings li { margin: 5px 0 5px 18px; }

/* ============================== RIG STRIP ================================= */
.rig { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0d1117; border-top: 1px solid #232c37; font: 500 12px var(--mono); color: #9aa7b4; }
.rig-inner { display: flex; align-items: center; gap: 14px; padding: 9px 16px; overflow-x: auto; white-space: nowrap; }
.rig-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #0d1117; background: #8b98a5; border-radius: 4px; padding: 2px 7px; flex: none; }
.rig-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; flex: none; }
.rig-state.ok { color: #6ee7a0; } .rig-state.bad { color: #fca5a5; }
.rig-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.rig-detail { color: #6b7885; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }
.rig-flow { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.rig-step { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 9.5px; font-weight: 700; color: #0d1117; opacity: 0.35; }
.rig-step.host-a { background: var(--host-a); } .rig-step.host-b { background: var(--host-b); } .rig-step.host-c { background: var(--host-c); }
.rig-step.now { opacity: 1; outline: 2px solid #e5ecf2; outline-offset: 1px; }
.rig-sep { width: 10px; height: 1px; background: #39424d; }
.rig-spacer { flex: 1; }
.rig-meta { color: #6b7885; flex: none; }
.rig-host { font-weight: 700; flex: none; }
.rig-host.host-a { color: var(--host-a); } .rig-host.host-b { color: var(--host-b); } .rig-host.host-c { color: var(--host-c); }
.rig a { color: #7cb9ff; text-decoration: none; flex: none; }
.rig a:hover { text-decoration: underline; }
