:root {
  --ink: #13241f;
  --muted: #67736f;
  --line: #dfe5e2;
  --paper: #fbfcfb;
  --white: #fff;
  --green: #194d3c;
  --green-2: #2e735b;
  --mint: #dff3e9;
  --tabby: #3bff91;
  --tamara: #ffebe6;
  --danger: #b43d38;
  --shadow: 0 20px 50px rgba(22, 55, 43, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f2f6f3;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #dcefe5 0, transparent 30%), #f2f6f3; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { height: 68px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(19,36,31,.09); background: rgba(251,252,251,.82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--green); font-family: Georgia, serif; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.blueprint-link { color: var(--green); text-decoration: none; font-size: 12px; font-weight: 800; border: 1px solid var(--line); background: rgba(255,255,255,.76); border-radius: 9px; padding: 8px 11px; }
.language-toggle { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--green); background: white; font-size: 12px; font-weight: 850; }
.language-toggle:hover { background: var(--mint); }
.blueprint-link:hover { background: var(--mint); border-color: #c8ddd3; }
.connection { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.connection::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d49a34; box-shadow: 0 0 0 4px #f5ead7; }
.connection.online::before { background: #2b9a69; box-shadow: 0 0 0 4px #dcefe5; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 90px; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: var(--green-2); margin: 0 0 16px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(48px, 6vw, 80px); line-height: .98; letter-spacing: -.045em; }
h1 span { color: var(--green-2); font-style: italic; }
.hero-copy { max-width: 690px; font-size: 18px; line-height: 1.55; color: var(--muted); margin: 25px 0 0; }
.proof-card { border-left: 3px solid var(--green-2); padding: 7px 0 7px 24px; color: var(--muted); line-height: 1.55; }
.proof-label { color: var(--ink); font-weight: 800; margin: 0 0 8px; }
.provider-readiness { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 17px; }
.mode-chip, .status-chip { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; background: #e9efec; }
.mode-chip.ready { background: var(--mint); color: var(--green); }
.workspace-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.panel { background: rgba(255,255,255,.91); border: 1px solid rgba(32,74,58,.12); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 30px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.panel-heading > div:first-child { display: flex; gap: 13px; align-items: baseline; }
.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.panel-heading > p { margin: 4px 0 0; color: var(--muted); max-width: 270px; font-size: 13px; line-height: 1.45; text-align: right; }
.step { font-size: 11px; font-weight: 900; color: var(--green-2); margin: 0; }
.checkout-mode-block { margin-bottom: 20px; padding: 15px; border: 1px solid #cbded5; border-radius: 15px; background: linear-gradient(135deg, #edf8f2, #f8fbf9); }
.checkout-mode-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.checkout-mode-heading span { font-size: 12px; font-weight: 900; color: var(--green); }
.checkout-mode-heading small { color: var(--muted); font-size: 9px; text-align: end; }
.primary-journey-switch { margin: 0; border-color: #c8ddd3; background: rgba(255,255,255,.55); }
.primary-journey-switch .journey-option > span { min-height: 62px; padding: 12px 14px; }
.primary-journey-switch .journey-option strong { font-size: 12px; }
.primary-journey-switch .journey-option small { font-size: 10px; }
.primary-journey-switch .journey-option:has(input:checked) > span { color: var(--green); box-shadow: 0 3px 13px rgba(25,77,60,.14); }
.provider-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.provider-option { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 76px; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 17px; cursor: pointer; transition: .18s ease; overflow: hidden; }
.provider-option:has(input:checked) { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46,115,91,.1); transform: translateY(-1px); }
.provider-option input { position: absolute; opacity: 0; }
.provider-logo { display: flex; align-items: center; min-height: 36px; }
.provider-logo img { display: block; width: auto; height: auto; max-width: 155px; max-height: 34px; object-fit: contain; }
.tabby-option .provider-logo img { max-width: 92px; }
.tamara-option .provider-logo img { max-width: 155px; }
.tamara-coverage { margin: 0 0 22px; padding: 18px; border: 1px solid #f0c8cb; border-radius: 15px; background: linear-gradient(145deg, #fff8f7, #faf8ff); }
.tabby-coverage { margin: 0 0 22px; padding: 18px; border: 1px solid #bfe9cf; border-radius: 15px; background: linear-gradient(145deg, #f3fff7, #f8fbf9); }
.coverage-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.coverage-heading .step { margin-bottom: 3px; color: #9e4f62; }
.tabby-coverage .coverage-heading .step { color: #176641; }
.coverage-heading h3 { margin: 0; font: 500 20px Georgia, serif; }
.coverage-heading a { color: #8b4659; font-size: 10px; font-weight: 800; }
.tamara-widget-preview { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid #e4d9dc; border-radius: 12px; background: white; }
.tabby-widget-preview { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid #cfe3d7; border-radius: 12px; background: white; }
.tamara-widget-preview img { width: 82px; max-height: 27px; object-fit: contain; }
.tabby-widget-preview img { width: 66px; max-height: 30px; object-fit: contain; }
.tamara-widget-preview strong, .tamara-widget-preview small, .tabby-widget-preview strong, .tabby-widget-preview small { display: block; }
.tamara-widget-preview strong { font-size: 11px; }
.tabby-widget-preview strong { font-size: 11px; }
.tamara-widget-preview small { margin-top: 3px; color: #786b70; font-size: 10px; }
.tabby-widget-preview small { margin-top: 3px; color: #52635a; font-size: 10px; }
.tamara-widget-preview button { border: 0; color: #8b4659; background: transparent; font-size: 10px; font-weight: 850; text-decoration: underline; }
.tabby-widget-preview button { border: 0; color: #176641; background: transparent; font-size: 10px; font-weight: 850; text-decoration: underline; }
.tamara-widget-preview p { grid-column: 1 / -1; margin: 3px 0 0; padding-top: 11px; border-top: 1px solid #eee6e8; color: #6d6266; font-size: 10px; line-height: 1.5; }
.tabby-widget-preview p { grid-column: 1 / -1; margin: 3px 0 0; padding-top: 11px; border-top: 1px solid #e0ebe4; color: #53645b; font-size: 10px; line-height: 1.5; }
.tamara-scenario-grid { margin-bottom: 12px; }
.journey-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 4px; border: 1px solid #ead9de; border-radius: 12px; background: rgba(255,255,255,.72); }
.journey-option { position: relative; cursor: pointer; }
.journey-option input { position: absolute; opacity: 0; pointer-events: none; }
.journey-option > span { display: block; min-height: 55px; margin: 0; padding: 10px 12px; border-radius: 9px; color: #6f6267; transition: .16s ease; }
.journey-option strong, .journey-option small { display: block; }
.journey-option strong { color: var(--ink); font-size: 11px; }
.journey-option small { margin-top: 3px; font-size: 9px; font-weight: 500; }
.journey-option:has(input:checked) > span { color: #754654; background: #fff; box-shadow: 0 2px 10px rgba(95,50,65,.12); }
.retail-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; padding: 12px; border: 1px solid #ead9de; border-radius: 12px; background: white; }
.retail-flow > div { min-height: 77px; padding: 9px; border-radius: 9px; background: #fff7f5; }
.retail-flow span { width: 20px; height: 20px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; color: white; background: #9e4f62; font-size: 9px; font-weight: 900; }
.retail-flow strong, .retail-flow small { display: block; }
.retail-flow strong { font-size: 10px; line-height: 1.3; }
.retail-flow small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.retail-flow > b { color: #b48691; font-size: 13px; }
.retail-notice { margin-top: 11px; padding: 12px 13px; border-left: 3px solid #9e4f62; border-radius: 8px; background: #fff4f1; }
.retail-notice strong { display: block; font-size: 11px; }
.retail-notice p { margin: 5px 0 0; color: #695e62; font-size: 9px; line-height: 1.55; }
.retail-notice code { color: #8b4659; }
.tabby-retail-journey .retail-flow { border-color: #cfe3d7; }
.tabby-retail-journey .retail-flow > div { background: #f1fff6; }
.tabby-retail-journey .retail-flow span { background: #176641; }
.tabby-retail-journey .retail-flow > b { color: #69a981; }
.tabby-retail-journey .retail-notice { border-left-color: #176641; background: #effbf4; }
.tabby-retail-journey .retail-notice code { color: #176641; }
.configuration-effect { margin: -2px 0 12px; padding: 9px 11px; display: flex; justify-content: space-between; gap: 14px; border-radius: 9px; color: #516059; background: rgba(255,255,255,.72); font-size: 10px; }
.configuration-effect strong { color: var(--ink); }
.configuration-effect span { text-align: end; }
.eligibility-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; padding: 11px; border: 1px dashed #d8c6cb; border-radius: 11px; background: rgba(255,255,255,.74); }
.eligibility-check span, .eligibility-check small { display: block; }
.eligibility-check span { font-size: 11px; font-weight: 850; }
.eligibility-check small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.eligibility-pass span { color: var(--green); }
.eligibility-fail span { color: var(--danger); }
.advanced-mapping { margin-top: 12px; border-top: 1px solid #eadde0; padding-top: 12px; }
.advanced-mapping summary { cursor: pointer; color: #7b4d5a; font-size: 11px; font-weight: 800; }
.mapping-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.provider-meta { font-size: 9px; font-weight: 900; letter-spacing: .11em; padding: 5px 7px; border-radius: 6px; background: #edf2ef; }
label { display: block; }
label > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin: 0 0 7px; color: #53605c; }
input, select { width: 100%; border: 1px solid #d8e0dc; border-radius: 10px; padding: 11px 12px; background: #fcfdfc; color: var(--ink); outline: none; transition: .15s; }
input:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46,115,91,.1); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 16px 0; }
.field-grid.compact { grid-template-columns: 2fr 1fr; margin-top: 0; }
.input-action { display: flex; }
.input-action input { border-radius: 10px 0 0 10px; }
.input-action button { border: 1px solid #d8e0dc; border-left: 0; border-radius: 0 10px 10px 0; min-width: 44px; color: var(--green); background: #edf5f1; }
.primary, .secondary, .danger, .ghost, .button-link { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #103c2e; }
.wide { width: 100%; justify-content: space-between; margin-top: 8px; padding: 14px 17px; }
.secondary { color: var(--green); background: #e7f1ec; }
.danger { color: #fff; background: var(--danger); }
.ghost { background: transparent; color: var(--green); border: 1px solid var(--line); padding: 8px 12px; font-size: 12px; }
.danger-text { color: var(--danger); }
.webhook-controls { display: grid; gap: 10px; }
.webhook-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.webhook-row strong { display: block; font-size: 13px; text-transform: capitalize; }
.webhook-row small { color: var(--muted); }
.callback-box { margin-top: 18px; background: #f2f6f3; border-radius: 12px; padding: 15px; }
.callback-box p { margin: 0 0 7px; font-size: 11px; font-weight: 800; }
.callback-box code { display: block; word-break: break-all; color: var(--green); font-size: 12px; }
.callback-box .hint { font-weight: 400; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
.architecture { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 5px; margin-top: 24px; font-size: 10px; color: var(--muted); text-align: center; }
.architecture div { border: 1px solid var(--line); padding: 9px 5px; border-radius: 8px; background: #fff; }
.architecture .webhook-node { grid-column: 3 / 6; background: var(--mint); margin-top: 7px; }
.ledger-panel, .event-panel { margin-top: 20px; }
.ledger-heading { align-items: center; }
.ledger-tools { display: flex; align-items: center; justify-content: end; gap: 12px; }
.heading-actions { display: flex !important; gap: 8px !important; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #eef3f0; }
.view-switch button { min-height: 31px; padding: 6px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; cursor: pointer; }
.view-switch button[aria-pressed="true"] { color: white; background: var(--green); box-shadow: 0 2px 7px rgba(21,71,54,.18); }
.technical-view-note { margin: -4px 0 18px; padding: 11px 13px; border-left: 3px solid var(--green-2); color: var(--muted); background: #f2f7f4; font-size: 11px; line-height: 1.55; }
.empty-state { padding: 38px 0 45px; text-align: center; color: var(--muted); }
.empty-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--mint); color: var(--green); font-size: 22px; }
.empty-state h3 { color: var(--ink); margin: 0 0 7px; }
.empty-state p { margin: 0; }
.payments { display: grid; gap: 13px; }
.payment-card { border: 1px solid var(--line); border-radius: 14px; padding: 17px; display: grid; grid-template-columns: 1.25fr .65fr .8fr auto; gap: 18px; align-items: center; }
.payment-main { min-width: 0; }
.payment-main strong { display: block; font-size: 14px; margin-bottom: 5px; }
.payment-main small, .payment-metric small { color: var(--muted); display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.payment-main code { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; display: block; }
.payment-provider { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-bottom: 7px; }
.payment-provider img { display: block; width: auto; height: auto; max-width: 82px; max-height: 22px; object-fit: contain; }
.payment-provider img[data-provider="tabby"] { max-width: 58px; }
.payment-provider span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.payment-metric b { font-size: 15px; }
.status-chip { color: #46514d; white-space: nowrap; }
.status-chip.authorized, .status-chip.approved { color: #705316; background: #fff0c8; }
.status-chip.captured, .status-chip.refunded { color: var(--green); background: var(--mint); }
.status-chip.cancelled, .status-chip.rejected, .status-chip.expired { color: #8f2f2b; background: #fde6e3; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: end; }
.payment-actions button, .payment-actions a { font-size: 11px; border-radius: 8px; padding: 8px 10px; }
.payment-guidance { grid-column: 1 / -1; margin: 0; padding: 10px 12px; display: flex; gap: 8px; color: var(--muted); background: #f4f7f5; border-left: 3px solid #9bada5; border-radius: 0 8px 8px 0; font-size: 11px; line-height: 1.45; }
.payment-guidance strong { color: var(--ink); white-space: nowrap; }
.payment-guidance.rejected, .payment-guidance.expired, .payment-guidance.cancelled { color: #833a35; background: #fff0ed; border-left-color: #d7655d; }
.payment-guidance.approved, .payment-guidance.authorized { color: #685019; background: #fff8e7; border-left-color: #d7aa3e; }
.payment-guidance.captured, .payment-guidance.partially_captured, .payment-guidance.refunded, .payment-guidance.partially_refunded { color: var(--green); background: #ecf7f1; border-left-color: var(--green-2); }
.integration-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.integration-summary span { padding: 5px 8px; border-radius: 7px; color: #6f4652; background: #fff1f2; font-size: 9px; font-weight: 800; text-transform: capitalize; }
.raw-details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.raw-details summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.raw-details pre { overflow: auto; max-height: 240px; background: #13241f; color: #dff3e9; padding: 13px; border-radius: 9px; font-size: 10px; }
.technical-trace { display: none; grid-column: 1 / -1; margin-top: 2px; padding-top: 15px; border-top: 1px solid var(--line); }
.technical-mode .technical-trace { display: block; }
.trace-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.trace-header strong, .trace-header span { display: block; }
.trace-header strong { color: var(--ink); font-size: 13px; }
.trace-header span { margin-top: 3px; color: var(--green-2); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.trace-header > small { max-width: 280px; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: end; }
.trace-flow { margin: 0 0 16px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 1fr); list-style: none; overflow-x: auto; scrollbar-width: thin; }
.trace-flow li { position: relative; min-width: 145px; padding: 0 22px 13px 0; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; }
.trace-flow li::after { content: ""; position: absolute; top: 14px; left: 28px; right: 0; height: 2px; background: #cbd9d2; }
.trace-flow li:last-child::after { display: none; }
.trace-flow li > span { width: 28px; height: 28px; display: grid; place-items: center; z-index: 1; border: 2px solid #cbd9d2; border-radius: 50%; color: var(--green); background: white; font-size: 9px; font-weight: 900; }
.trace-flow li.complete > span { color: white; border-color: var(--green-2); background: var(--green-2); }
.trace-flow li.current > span { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,115,91,.1); }
.trace-flow li div { min-width: 0; z-index: 1; background: white; }
.trace-flow strong, .trace-flow code { display: block; }
.trace-flow strong { overflow: hidden; color: var(--ink); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.trace-flow code { margin-top: 3px; color: var(--muted); font-size: 8px; }
.trace-details { display: grid; gap: 8px; }
.trace-step { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.trace-step summary { min-height: 58px; padding: 10px 13px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.trace-step summary::-webkit-details-marker { display: none; }
.trace-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 900; }
.trace-operation { min-width: 0; }
.trace-operation strong, .trace-operation small { display: block; }
.trace-operation strong { margin-bottom: 4px; font-size: 11px; }
.trace-operation small { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.trace-operation code { color: var(--green-2); }
.trace-result { text-align: end; }
.trace-result small, .trace-result b { display: block; }
.trace-result small { margin-bottom: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.trace-result b { color: var(--green); font-size: 9px; text-transform: uppercase; }
.trace-step-body { padding: 0 13px 13px; }
.trace-decision { margin-bottom: 10px; padding: 10px 11px; display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; border-radius: 8px; background: #eef5f1; }
.trace-decision span { color: var(--green-2); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.trace-decision p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.45; }
.payload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payload-panel { min-width: 0; padding: 11px; border-radius: 9px; background: #13241f; }
.payload-panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.payload-panel header strong { color: #effaf4; font-size: 10px; }
.payload-panel header span { padding: 3px 6px; border-radius: 5px; color: #9ee0bd; background: rgba(158,224,189,.1); font: 800 8px ui-monospace, monospace; text-transform: uppercase; }
.payload-panel > small { display: block; margin: 8px 0 4px; color: #8ba59a; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.payload-panel pre { max-height: 250px; margin: 0; overflow: auto; color: #dff3e9; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.response-panel { background: #17202b; }
.response-panel header span { color: #c8d9f3; background: rgba(200,217,243,.1); }
.response-panel > small { color: #91a4bd; }
.response-panel pre { color: #e2ebf8; }
.trace-source { margin-top: 9px; padding: 9px 2px 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); }
.trace-source span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.trace-source code { overflow: hidden; color: var(--green-2); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; direction: ltr; text-align: left; }
.trace-source a { color: var(--green); font-size: 9px; font-weight: 850; text-decoration: none; }
.trace-source a:hover { text-decoration: underline; }
.events { display: grid; gap: 8px; }
.event-row { display: grid; grid-template-columns: 95px 1fr 135px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 12px; }
.event-row:last-child { border-bottom: 0; }
.event-row code { overflow: hidden; text-overflow: ellipsis; }
.event-state { justify-self: end; }
.muted { color: var(--muted); font-size: 13px; }
.amount-dialog { width: min(420px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 28px 80px rgba(13, 42, 31, .28); color: var(--ink); }
.amount-dialog::backdrop { background: rgba(13, 32, 25, .5); backdrop-filter: blur(3px); }
.amount-dialog form { padding: 28px; }
.amount-dialog h2 { font-family: Georgia, serif; font-weight: 500; font-size: 28px; margin: 0 0 8px; }
.amount-dialog .muted { margin: 0 0 22px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; transform: translateY(130%); opacity: 0; transition: .25s; background: var(--ink); color: white; border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow); font-size: 13px; z-index: 10; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); }
.standalone { display: grid; place-items: center; padding: 28px; }
.standalone main { width: min(560px, 100%); }
.mock-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.mock-card h1 { font-size: 52px; }
.mock-card p { color: var(--muted); line-height: 1.6; }
.mock-card dl { background: #f2f6f3; border-radius: 12px; padding: 14px; }
.mock-card dt { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.mock-card dd { margin: 5px 0 0; word-break: break-all; font-family: monospace; }
.mock-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.button-link { background: var(--green); color: white; }

.checkout-page { display: grid; place-items: center; padding: 30px 18px; background: #eef3f0; }
.checkout-page main { width: min(700px, 100%); }
.webview-page { background: #202522; }
.webview-page main { width: min(430px, 100%); }
.webview-shell { overflow: hidden; border: 7px solid #111613; border-radius: 32px; background: #111613; box-shadow: 0 32px 90px rgba(0,0,0,.34); }
.webview-bar { min-height: 47px; padding: 0 17px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #dfe7e2; background: #111613; font-size: 12px; }
.webview-bar span:last-child { text-align: end; letter-spacing: .12em; }
.webview-bar strong { font-size: 11px; }
.webview-shell .hosted-checkout { border: 0; border-radius: 22px; box-shadow: none; }
.tabby-page { background: radial-gradient(circle at 50% 0, rgba(108,255,147,.2), transparent 36%), #f2f5f3; }
.tamara-page { background: radial-gradient(circle at 20% 0, rgba(255,164,137,.2), transparent 28%), radial-gradient(circle at 85% 15%, rgba(143,184,255,.18), transparent 26%), #f5f3f5; }
.hosted-checkout { overflow: hidden; background: white; border: 1px solid rgba(19,36,31,.12); border-radius: 25px; box-shadow: 0 28px 80px rgba(13,42,31,.13); }
.delivery-shell { overflow: hidden; padding: 0 34px 34px; background: white; border: 1px solid rgba(19,36,31,.12); border-radius: 25px; box-shadow: 0 28px 80px rgba(13,42,31,.13); }
.delivery-header { height: 74px; margin: 0 -34px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.delivery-header img { width: 108px; max-height: 31px; object-fit: contain; }
.delivery-header span { color: var(--muted); font-size: 10px; font-weight: 750; }
.delivery-hero { padding: 32px 0 22px; }
.delivery-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: #8b4659; background: #fff0ec; font-size: 22px; }
.delivery-hero h1 { font-size: 43px; }
.delivery-hero > p:last-child { max-width: 570px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.delivery-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 12px; }
.delivery-channels article { padding: 15px; border: 1px solid #eadde0; border-radius: 12px; background: #fffafa; }
.delivery-channels strong, .delivery-channels code, .delivery-channels small { display: block; }
.delivery-channels strong { margin: 10px 0 5px; font-size: 12px; }
.delivery-channels code { color: #8b4659; font-size: 11px; }
.delivery-channels small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.channel-badge { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: #7c6670; background: #f1e8eb; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.primary-channel { color: #7f3e50; background: #ffe1db; }
.delivery-order { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; }
.delivery-order > div { min-height: 48px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.delivery-order > div:last-child { border-bottom: 0; }
.delivery-order span { color: var(--muted); font-size: 10px; }
.delivery-order strong, .delivery-order code { font-size: 10px; }
.delivery-tech { margin-top: 14px; padding: 14px; border-radius: 11px; background: #f4f5f8; }
.delivery-tech strong, .delivery-tech code { display: block; }
.delivery-tech strong { font-size: 10px; }
.delivery-tech code { margin: 7px 0; color: #66578d; font-size: 10px; }
.delivery-tech p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.delivery-resolved { margin: 0 0 14px; padding: 13px; display: flex; justify-content: space-between; border-radius: 10px; background: #f2f6f3; font-size: 11px; }
.hosted-header { height: 74px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.hosted-header img { display: block; width: auto; max-width: 116px; max-height: 33px; object-fit: contain; }
.provider-tabby .hosted-header img { max-width: 85px; }
.provider-tamara .hosted-header img { width: 105px; height: auto; image-rendering: auto; }
.hosted-header span { color: var(--muted); font-size: 11px; font-weight: 700; }
.checkout-stepper { margin: 0; padding: 18px 28px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; background: #f7f9f8; border-bottom: 1px solid var(--line); }
.checkout-stepper li { position: relative; display: flex; align-items: center; gap: 7px; color: #9aa6a1; font-size: 10px; font-weight: 800; }
.checkout-stepper li:not(:last-child)::after { content: ""; position: absolute; left: 54px; right: 12px; top: 12px; height: 1px; background: #d6dfdb; }
.checkout-stepper li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #7b8983; background: #e6ece9; font-size: 9px; z-index: 1; }
.checkout-stepper li.active { color: var(--ink); }
.checkout-stepper li.active span { color: white; background: var(--green); }
.checkout-stepper li.done { color: var(--green-2); }
.checkout-stepper li.done span { color: var(--green); background: var(--mint); }
.checkout-stepper li.done span::before { content: "✓"; }
.checkout-stepper li.done span { font-size: 0; }
.checkout-stepper li.done:not(:last-child)::after { background: #8ec3ac; }
.hosted-step { padding: 36px; animation: reveal-step .22s ease-out; }
.hosted-step[hidden] { display: none; }
@keyframes reveal-step { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.hosted-kicker { margin: 0 0 11px; color: var(--green-2); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.hosted-step h1 { margin: 0; font: 500 42px/1.05 Georgia, serif; letter-spacing: -.035em; }
.hosted-copy { margin: 15px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hosted-copy code { padding: 2px 5px; color: var(--green); background: #edf4f0; border-radius: 4px; }
.order-summary { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.order-summary > div { min-height: 54px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.order-summary > div:last-child { border-bottom: 0; }
.order-summary span { color: var(--muted); font-size: 11px; }
.order-summary strong { font-size: 12px; }
.order-summary code { color: var(--green); font-size: 10px; }
.session-clock { margin: -8px 0 18px; padding: 11px 13px; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; border-radius: 10px; color: #5e6272; background: #f0f1f5; }
.session-clock span { font-size: 10px; font-weight: 800; }
.session-clock strong { font: 800 13px ui-monospace, monospace; }
.session-clock small { grid-column: 1 / -1; font-size: 9px; line-height: 1.4; }
.provider-cta { width: 100%; min-height: 50px; padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-radius: 11px; color: white; background: var(--green); text-decoration: none; font-size: 13px; font-weight: 850; transition: transform .15s, filter .15s; }
.provider-cta:hover { transform: translateY(-1px); filter: saturate(1.06) brightness(.98); }
.provider-cta:disabled { opacity: .6; cursor: wait; transform: none; }
.provider-tabby .provider-cta { color: #07120c; background: #6cff93; box-shadow: 0 8px 20px rgba(74,223,116,.18); }
.provider-tamara .provider-cta { color: #171213; background: linear-gradient(102deg, #f9b28b 0%, #f28d9b 36%, #b493ef 68%, #8fd4ec 100%); box-shadow: 0 8px 22px rgba(192,131,190,.2); }
.text-action { margin: 15px auto 0; display: block; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.otp-label { margin-bottom: 8px; color: #53605c; font-size: 11px; font-weight: 800; }
.otp-input { margin-bottom: 7px; padding: 15px; border-radius: 11px; font-size: 22px; letter-spacing: .35em; text-align: center; }
.otp-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,61,56,.09); }
.field-error { min-height: 19px; margin: 0 0 10px; color: var(--danger); font-size: 11px; }
.nafath-panel { margin: 0 0 20px; padding: 15px; display: flex; gap: 13px; align-items: center; border: 1px solid #d8e0dc; border-radius: 12px; background: #f8faf9; }
.nafath-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: white; background: #564bb2; font-weight: 900; }
.tabby-card-link .nafath-mark { color: #07120c; background: #6cff93; }
.nafath-panel strong, .nafath-panel small { display: block; }
.nafath-panel strong { margin-bottom: 4px; font-size: 12px; }
.nafath-panel small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 19px; }
.scenario-grid label { position: relative; min-height: 82px; padding: 14px; display: grid; grid-template-columns: 31px 1fr; gap: 11px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.scenario-grid label:has(input:checked) { border-color: var(--green-2); background: #f1f8f4; box-shadow: 0 0 0 3px rgba(46,115,91,.08); }
.provider-tamara .scenario-grid label:has(input:checked) { border-color: #d67a8e; background: #fff5f5; box-shadow: 0 0 0 3px rgba(214,122,142,.09); }
.scenario-grid input { position: absolute; opacity: 0; pointer-events: none; }
.scenario-grid strong, .scenario-grid small { display: block; }
.scenario-grid strong { margin-bottom: 4px; font-size: 11px; }
.scenario-grid small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.scenario-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 900; }
.success-icon { color: var(--green); background: var(--mint); }
.decline-icon { color: #a83e39; background: #fde7e4; }
.cancel-icon { color: #85621d; background: #fff2cf; }
.expire-icon { color: #5e6272; background: #eceef4; }
.result-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 17px; color: var(--green); background: var(--mint); font-size: 27px; font-weight: 900; }
.hosted-step[data-tone="declined"] .result-symbol { color: #a83e39; background: #fde7e4; }
.hosted-step[data-tone="cancelled"] .result-symbol { color: #85621d; background: #fff2cf; }
.hosted-step[data-tone="expired"] .result-symbol { color: #5e6272; background: #eceef4; }
.merchant-effect { margin: 0 0 16px; padding: 15px; background: #f2f6f3; border-radius: 11px; }
.merchant-effect span { display: block; margin-bottom: 6px; color: var(--green-2); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.merchant-effect p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.55; }
.result-details { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 11px; }
.result-details div { padding: 12px 14px; }
.result-details div + div { border-left: 1px solid var(--line); }
.result-details dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.result-details dd { margin: 0; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.link-action { width: fit-content; }
.simulation-note { margin: 15px 0 0; color: #89958f; font-size: 9px; text-align: center; }
.return-page { background: radial-gradient(circle at 50% 0, #dcefe5 0, transparent 40%), #f2f6f3; }
.return-card { padding: 38px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.return-card h1 { font-size: 45px; }
.return-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.return-rule { margin: 22px 0; padding: 15px; background: #f2f6f3; border-radius: 11px; }
.return-rule strong, .return-rule span { display: block; }
.return-rule strong { margin-bottom: 5px; color: var(--green-2); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.return-rule span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.resolved-logo { display: block; width: auto; max-width: 110px; max-height: 35px; margin-bottom: 30px; }
.resolved-checkout > p strong { color: var(--ink); }

html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] .panel-heading h2, html[dir="rtl"] .coverage-heading h3, html[dir="rtl"] .hosted-step h1 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }
html[dir="rtl"] .panel-heading > p { text-align: left; }
html[dir="rtl"] .input-action input { border-radius: 0 10px 10px 0; }
html[dir="rtl"] .input-action button { border-right: 0; border-left: 1px solid #d8e0dc; border-radius: 10px 0 0 10px; }
html[dir="rtl"] .payment-actions { justify-content: start; }
html[dir="rtl"] .payment-guidance { border-right: 3px solid #9bada5; border-left: 0; border-radius: 8px 0 0 8px; }
html[dir="rtl"] .technical-view-note { border-right: 3px solid var(--green-2); border-left: 0; }
html[dir="rtl"] .trace-flow li { padding: 0 0 13px 22px; }
html[dir="rtl"] .trace-flow li::after { right: 28px; left: 0; }
html[dir="rtl"] .checkout-stepper li:not(:last-child)::after { left: 12px; right: 54px; }
html[dir="rtl"] .result-details div + div { border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .scenario-grid label { grid-template-columns: 31px 1fr; }
html[dir="rtl"] .order-summary code { direction: ltr; }

@media (max-width: 900px) {
  .hero, .workspace-grid { grid-template-columns: 1fr; }
  .hero { gap: 30px; }
  .payment-card { grid-template-columns: 1fr 1fr; }
  .payment-actions { grid-column: 1 / -1; justify-content: start; }
  .ledger-heading { align-items: start; }
  .ledger-tools { align-items: end; flex-direction: column; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1240px); padding-top: 40px; }
  .topbar { padding: 0 14px; }
  .connection { font-size: 0; }
  .top-actions { gap: 10px; }
  .blueprint-link { font-size: 11px; padding: 7px 9px; }
  .panel { padding: 20px; border-radius: 16px; }
  .panel-heading { display: block; }
  .panel-heading > p { text-align: left; margin-top: 8px; }
  .provider-picker, .field-grid, .journey-switch { grid-template-columns: 1fr; }
  .retail-flow { grid-template-columns: 1fr; }
  .retail-flow > b { transform: rotate(90deg); text-align: center; }
  .tamara-widget-preview, .tabby-widget-preview { grid-template-columns: 75px 1fr; }
  .tamara-widget-preview button, .tabby-widget-preview button { grid-column: 1 / -1; text-align: left; }
  .eligibility-check { grid-template-columns: 1fr; }
  .field-grid.compact { grid-template-columns: 2fr 1fr; }
  .payment-card { grid-template-columns: 1fr; }
  .payment-actions { grid-column: auto; }
  .event-row { grid-template-columns: 80px 1fr; }
  .event-state { grid-column: 2; justify-self: start; }
  .payment-guidance { display: block; }
  .payment-guidance strong { display: block; margin-bottom: 4px; }
  .ledger-tools { margin-top: 14px; align-items: stretch; }
  .view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .heading-actions { justify-content: end; }
  .trace-header { display: block; }
  .trace-header > small { display: block; margin-top: 8px; text-align: start; }
  .payload-grid { grid-template-columns: 1fr; }
  .trace-step summary { grid-template-columns: 28px 1fr; }
  .trace-result { grid-column: 2; text-align: start; }
  .trace-source { grid-template-columns: 1fr; }
  .checkout-page { padding: 12px; }
  .hosted-checkout { border-radius: 18px; }
  .delivery-shell { padding: 0 20px 20px; border-radius: 18px; }
  .delivery-header { margin: 0 -20px; padding: 0 20px; }
  .delivery-channels { grid-template-columns: 1fr; }
  .hosted-header { height: 64px; padding: 0 19px; }
  .hosted-header span { font-size: 9px; }
  .checkout-stepper { padding: 14px 17px; }
  .checkout-stepper li { font-size: 0; }
  .checkout-stepper li:not(:last-child)::after { left: 31px; right: 7px; }
  .hosted-step { padding: 26px 20px; }
  .hosted-step h1 { font-size: 35px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .order-summary > div { align-items: start; flex-direction: column; gap: 5px; }
}
