/* Founder visual specification, 2026-11-17. Presentation only. */
body.approved-interface {
  --bg: #080604; --panel: #120d07; --text: #f5e8c9; --muted: #b69a69;
  --gold: #e2b670; --line: #94703b; --error: #d98c78; --success: #b7c596;
  --sans: Arial, sans-serif; --serif: Georgia, 'Times New Roman', serif;
  --metal: linear-gradient(110deg,#684019 0%,#b98132 17%,#e2b670 34%,#fff0bd 43%,#c38c3b 51%,#795022 63%,#d7a451 79%,#ffe8a3 90%,#a06b28 100%);
  --ui-x: 20px; --ui-top: max(16px, env(safe-area-inset-top));
  background: #090603; font: 16px/21px var(--sans); font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
body.approved-interface #bg { background: #080604; }
body.approved-interface #bg > * { display: none; }
body.approved-interface #bg .wall { display: none; }
body.approved-interface #bg .halo { display: block; opacity: 1; background: radial-gradient(ellipse at 50% 45%,#75400826,transparent 70%); }
body.approved-interface .top {
  inset: var(--ui-top) max(var(--ui-x), calc((100% - 390px)/2)) auto;
  height: 44px; padding: 0; gap: 0; z-index: 15;
}
body.approved-interface .wordmark { position: absolute; left: 50%; transform: translateX(-50%); padding: 0; display: flex; align-items: center; gap: 8px; color: #e2b670; font: 400 13px/20px var(--serif); letter-spacing: 3px; }
body.approved-interface .wordmark img { display: none; width: 28px; height: 28px; }
body.approved-interface.welcome .wordmark { position: static; transform: none; margin-inline-end: auto; order: -1; }
body.approved-interface.welcome .wordmark img { display: block; }
body.approved-interface #settingsBtn { margin-inline-start: auto; }
body.approved-interface .icon-btn { width: 44px; height: 44px; color: var(--gold); }
body.approved-interface .icon-btn svg { width: 20px; height: 20px; }
body.approved-interface svg [stroke-width] { stroke-width: 1.25; }
body.approved-interface #lockTopSpacer { display: none; }
body.approved-interface :is(#main,.panel) {
  width: 100%; max-width: 430px; margin-inline: auto; left: 0; right: 0;
  padding: calc(var(--ui-top) + 60px) var(--ui-x) max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 35%,#3a210c66,transparent 65%),#090603;
  overflow-y: auto; overflow-x: hidden; scroll-padding-block: 24px;
}
body.approved-interface #main { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
body.approved-interface .panel::before, body.approved-interface .ornament { display: none; }
body.approved-interface .titles { flex: none; width: 100%; gap: 0; }
body.approved-interface :is(.lux-title,.panel-title) { font: 400 22px/26px var(--sans); letter-spacing: -.2px; color: var(--text); background: none; filter: none; padding: 0; }
body.approved-interface.welcome #main { padding-top: calc(var(--ui-top) + 64px); }
body.approved-interface.welcome #welcomeTitle { font: 400 34px/36px Georgia,serif; letter-spacing: -.5px; color: #f4d58a; text-align: center; background: none; filter: none; padding: 0; }
body.approved-interface.welcome #welcomeTitle span { font-weight: 400; }
body.approved-interface.welcome .tagline { margin-top: 12px; font: 400 16px/21px var(--sans); text-align: center; opacity: 1; }
body.approved-interface.welcome #hero { width: 350px; max-width: 100%; height: 340px; background: none; box-shadow: none; border: 0; mask-image: none; -webkit-mask-image: none; margin: 16px auto 0; overflow: visible; border-radius: 0; flex: none; }
body.approved-interface.welcome #hero img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; object-view-box: none; object-position: center; mask-image: none; -webkit-mask-image: none; filter: none; }
body.approved-interface.welcome .below { margin-top: 20px; flex: none; }
body.approved-interface .home-layer { gap: 12px; }
body.approved-interface .welcome-text { display: none; }
body.approved-interface #createBtn { order: 0; }
body.approved-interface #tourBtn { order: 1; height: 44px; min-height: 44px; border: 0; background: none; box-shadow: none; font-size: 13px; padding: 0; }
body.approved-interface #tourBtn .chev { display: none; }
body.approved-interface .privacy-line { order: 2; margin-top: -4px; font: 400 11px/15px var(--sans); color: var(--muted); letter-spacing: .2px; }
body.approved-interface .btn, body.approved-interface .open-btn .ring {
  height: 48px; min-height: 48px; min-width: 0; width: 100%; padding: 0 20px; gap: 8px;
  border: 1px solid #e2b670; border-radius: 24px; color: #fff0cc;
  font: 500 16px/21px var(--sans); letter-spacing: .1px;
  background: #100a05;
  box-shadow: 0 0 8px #e2b67030,inset 0 0 3px #e2b67012;
  transition: transform 140ms ease,filter 140ms ease;
}
body.approved-interface .btn.primary:not(#tourBtn) {
  border-color: #f4d28b; color: #241506;
  background: linear-gradient(180deg,#fff0b8 0%,#eac270 12%,#d5a044 48%,#be8128 78%,#e2b670 100%);
  box-shadow: inset 0 1px 0 #fff7d680,inset 0 -1px 0 #71431166,0 3px 12px #00000040,0 0 20px #dda6491f;
}
body.approved-interface .btn .chev { font-size: 16px; }
body.approved-interface button:active { transform: translateY(1px); filter: brightness(.94); }
body.approved-interface :focus-visible { outline: 2px solid #f4d28b; outline-offset: 3px; }
body.approved-interface button:disabled { opacity: .38; box-shadow: none; }
body.approved-interface #stageWrap { width: min(calc(var(--D) - 36px), 350px); height: min(calc(var(--D) - 36px), 350px); margin: 20px auto 16px; }
body.approved-interface.open #stageWrap { margin-top: 16px; }
body.approved-interface.open #stageWrap .glow { inset: 0; opacity: .12; }
body.approved-interface.open :is(.interior-art,#pile) { object-fit: contain; }
body.approved-interface .below { flex: none; }
body.approved-interface #result[hidden] { display: none !important; }
body.approved-interface .home-actions { display: grid; grid-template-columns: 1fr 88px 1fr; width: 100%; gap: 12px; margin-top: 24px; align-items: center; }
body.approved-interface .side-btn { min-width: 0; padding: 0; gap: 6px; font: 12px/16px var(--sans); }
body.approved-interface .side-btn .tile { width: 44px; height: 44px; border: 1px solid #e2b67038; border-radius: 12px; background: linear-gradient(145deg,#24190d80,#100c078f); box-shadow: inset 0 1px 0 #ffe8ae0d; }
body.approved-interface .side-btn .tile svg { width: 20px; height: 20px; }
body.approved-interface .open-btn { gap: 6px; }
body.approved-interface .open-btn .ring { width: 64px; height: 64px; min-height: 64px; border-radius: 50%; padding: 0; animation: none; }
body.approved-interface .open-btn .ring svg { width: 24px; height: 24px; }
body.approved-interface .open-label { font: 12px/16px var(--sans); }
body.approved-interface #totalLine { font: 400 40px/46px var(--sans); letter-spacing: -1px; background: none; color: #f5d477; filter: none; }
body.approved-interface #total { background: none; color: inherit; }
body.approved-interface #totalLine .unit { font: 400 20px/26px var(--sans); letter-spacing: 0; }
body.approved-interface .message { font: 400 16px/21px var(--sans); }
body.approved-interface :is(.status,.result-note,.small,.cur,.preview,.error) { font: 400 11px/15px var(--sans); color: var(--muted); letter-spacing: .2px; }
body.approved-interface #result { gap: 8px; }
body.approved-interface #result .actions { margin-top: 16px; min-height: 48px; }
body.approved-interface .panel > .panel-top { flex: none; min-height: 44px; padding: 0; width: 100%; margin: 0 auto 24px; grid-template-columns: 44px minmax(0,1fr) 44px; }
body.approved-interface #assetsAdd { border: 0; background: none; box-shadow: none; }
body.approved-interface #assetList { margin: 0; flex: none; display: grid; grid-template-columns: minmax(0,1fr); width: 100%; gap: 8px; overflow: visible; }
body.approved-interface #assetList .asset-row { height: 66px; min-height: 66px; gap: 8px; padding: 0 12px; border: 1px solid #e2b67038; border-radius: 14px; background: linear-gradient(135deg,#e2b6700d,#e2b67003); box-shadow: none; }
body.approved-interface #assetList .meta { min-width: 0; gap: 0; }
body.approved-interface #assetList .tick { font: 400 16px/22px var(--sans); letter-spacing: 0; }
body.approved-interface #assetList .qty { font: 400 13px/18px var(--sans); color: #c5b795; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
body.approved-interface #assetList .pen { width: 18px; height: 18px; margin-inline: auto 12px; color: var(--gold); flex: none; }
body.approved-interface :is(#assetList,#coinSelect) .badge { width: 36px; height: 36px; flex: none; font: 400 24px/1 var(--sans); box-shadow: none; text-shadow: none; }
body.approved-interface .panel-actions { flex: none; width: 100%; padding: 0; margin: 24px auto 0; gap: 12px; }
body.approved-interface #editorForm { flex: none; display: flex; flex-direction: column; width: 100%; gap: 0; margin: 0; overflow: visible; }
body.approved-interface #coinSelect { height: 64px; padding: 14px; gap: 12px; border: 1px solid #94703b; border-radius: 16px; background: linear-gradient(145deg,#24190d80,#100c078f); box-shadow: none; }
body.approved-interface #coinSelectInner { gap: 12px; }
body.approved-interface #coinSelect .badge { width: 36px; height: 36px; }
body.approved-interface #coinSelect .nm { font: 400 16px/22px var(--sans); }
body.approved-interface #coinSelect .nm small { font: inherit; color: inherit; }
body.approved-interface #coinSelect { color: #fff0dc; opacity: 1; }
body.approved-interface #coinSelect:disabled .chev-down { visibility: visible; }
body.approved-interface #coinSelect .chev-down, body.approved-interface #coinSelect .chev-down svg { width: 16px; }
body.approved-interface #editorCur { display: none; }

body.approved-interface .seg { border: 1px solid #e2b67026; background: #100c07; box-shadow: none; }
body.approved-interface .seg button { font: 12px/18px var(--sans); }
body.approved-interface #editor .field-label { margin: 20px 0 8px; padding: 0; color: var(--muted); font: 400 10px/14px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; }
body.approved-interface #qtyInput { height: 64px; min-height: 64px; padding: 0 16px; border: 1px solid #e2b67080; border-radius: 16px; outline: none; background: #0d0906; color: var(--text); font: 400 28px/34px var(--sans); letter-spacing: -.4px; box-shadow: none; scroll-margin-block: 24px; }
body.approved-interface #qtyInput:focus { border-color: #e2b67080; outline: none; box-shadow: none; }
body.approved-interface #qtyInput:focus-visible { outline: none; box-shadow: 0 0 0 2px #e2b67026; }
body.approved-interface #editor :is(.cur,.preview,.error):empty { display: none; }
body.approved-interface #editor .error { margin-top: 6px; }
body.approved-interface #editor .editor-actions { display: grid; gap: 12px; margin-top: 112px; padding: 0; }
body.approved-interface #editor .editor-actions .btn.primary { background: linear-gradient(180deg,#ffe3a0 0%,#e2b670 48%,#b7812e 100%); border: 1px solid #f3cf8a; box-shadow: 0 0 12px #e2b67026; }
body.approved-interface #offer { gap: 0; }
body.approved-interface #offer .offer-body { overflow: visible; flex: none; }
body.approved-interface #offer:has(#payBox:not([hidden])) > :is(.panel-top,.offer-body) { display: none; }
body.approved-interface #offer:has(#payBox:not([hidden])) > .panel-actions { margin-top: 0; }
body.approved-interface #offer:has(#payBox:not([hidden])) .panel-actions > :not(#payBox) { display: none; }
body.approved-interface .pay-box { width: 100%; margin: 0; font: 13px/18px var(--sans); }
body.approved-interface .pay-title { font: 400 21px/28px var(--serif); margin-bottom: 24px; }
body.approved-interface #payDetails { display: flex; flex-direction: column; gap: 16px; }
body.approved-interface #payDetails[hidden] { display: none; }
body.approved-interface .pay-list { order: -2; display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin: 0; }
body.approved-interface .pay-list dt { font: 10px/14px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); opacity: 1; }
body.approved-interface .pay-list dd { margin: 0 0 8px; }
body.approved-interface #payAmountV { font: 400 28px/34px var(--sans); }
body.approved-interface #payNetworkV { padding: 14px 12px; border: 1px solid #e2b67038; border-radius: 12px; background: #120d07; }
body.approved-interface .pay-mono { font: 13px/20px ui-monospace,monospace; overflow-wrap: anywhere; word-break: normal; }
body.approved-interface .pay-list button { min-height: 44px; min-width: 44px; font-size: 11px; }
body.approved-interface #payExact { order: -1; }
body.approved-interface .pay-qr { width: 200px; height: 200px; max-width: none; margin: 0 auto; background: white; box-shadow: none; }
body.approved-interface .pay-qr svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
body.approved-interface #payStatus { padding: 12px; border: 1px solid #e2b67038; border-radius: 12px; color: #c9bb9d; font: 13px/18px var(--sans); margin-bottom: 16px; }
body.approved-interface .pay-input { background: #0d0906; color: var(--text); border: 1px solid #94703b; border-radius: 14px; min-height: 44px; }
@media (hover:hover) { body.approved-interface button:hover { filter: brightness(1.06); } }
@media (max-width:359px) {
 body.approved-interface { --ui-x:16px; }
 body.approved-interface .wordmark { font-size:13px; }
 body.approved-interface.welcome #welcomeTitle { font-size:27px; line-height:31px; }
 body.approved-interface #totalLine .unit { font-size:18px; }
 body.approved-interface .pay-qr { width:184px; height:184px; }
}
@media (min-width:600px) { body.approved-interface { --ui-x:24px; } }
@media (orientation:landscape) and (max-height:500px) {
 body.approved-interface { --ui-top:8px; --ui-x:16px; }
 body.approved-interface #main { max-width:760px; display:grid; grid-template-columns:46fr 54fr; gap:16px; align-content:start; align-items:center; }
 body.approved-interface #main > .titles { grid-column:2; grid-row:1; align-self:end; }
 body.approved-interface #main > #stageWrap { grid-column:1; grid-row:1 / span 2; --D:min(240px, calc(100dvh - 148px)); margin:12px auto 0; align-self:end; }
 body.approved-interface #main > .below { grid-column:2; grid-row:2; align-self:start; }
 body.approved-interface.open #main > .below { grid-row:1 / span 2; align-self:center; }
 body.approved-interface.welcome #main { grid-template-columns:42fr 58fr; padding-top:68px; }
 body.approved-interface.welcome #main > #hero { grid-column:1; grid-row:1 / span 2; margin:0; }
 body.approved-interface.welcome #hero img { max-height:240px; }
 body.approved-interface.welcome #welcomeTitle { font-size:24px; line-height:28px; }
 body.approved-interface.welcome .below { margin-top:4px; }
 body.approved-interface.welcome .home-layer { gap:8px; }
 body.approved-interface .top { left:16px; right:16px; }
 body.approved-interface .home-actions { margin-top:16px; }
 body.approved-interface.demo.with-bar #main { padding-top:calc(60px + var(--bar,72px)); }
}
@media (prefers-reduced-motion:reduce) { body.approved-interface * { transition:none !important; animation:none !important; } }

/* Keep the payment system's complete disclosures, while placing its live status
   after the recipient details and QR. No payment state is inferred in CSS. */
body.approved-interface #payBox:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
body.approved-interface #payBox > .pay-title { order: -4; margin: 0 0 8px; }
body.approved-interface #payDetails:not([hidden]) { display: contents; }
body.approved-interface #payBox .pay-list { order: -3; }
body.approved-interface #payExact { order: -2; }
body.approved-interface #payQr { order: -1; }
body.approved-interface #payStatus { order: 0; margin: 0; }
body.approved-interface #payBox > :is(#payLicenseBox,#payReceiptBox,#payNew,#payClose),
body.approved-interface #payDetails > :is(#payExpiry,.pay-row,.small:not(#payExact)) { order: 1; }
body.approved-interface.open #lockedTitle, body.approved-interface.opening #lockedTitle { display: none; }
body.approved-interface :is(#assetList,#coinSelect) .badge { background: var(--c,#292b2b); }
body.approved-interface #assetList .qty { overflow: visible; }
body.approved-interface .btn svg { width: 16px; height: 16px; }
body.approved-interface #qtyInput::selection { background: #e2b67033; color: inherit; }

/* ChatGPT layered vault 2026-11-17: all art is cropped from one registered 1080x1920 canvas to the square
   (0,311)-(1040,1351); the door and the chamber share the box (185,455)-(930,1193); hinge axis x=146. */
body.approved-interface #stage .frame { inset: 0; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; filter: none; }
body.approved-interface #stage .interior { left: 17.79%; top: 13.85%; width: 71.73%; height: 71.06%; border-radius: 50%; }
body.approved-interface #stage .interior::after { display: none; }
body.approved-interface #stage .interior-art { object-fit: fill; }
body.approved-interface #stage .door { left: 17.79%; top: 13.85%; width: 71.73%; height: 71.06%; transform-origin: -5.23% 50%; }
body.approved-interface #stage .door-face .door-img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; }
body.approved-interface #stage .door-face .wheel { inset: auto; left: 24.80%; top: 23.14%; width: 61.80%; height: 62.38%; }
body.approved-interface #stage .door-back { object-fit: fill; }
body.approved-interface #stage :is(.combo,.bolts) { display: none; }
body.approved-interface #stage .door-open { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; opacity: 0; pointer-events: none; }
body.approved-interface #stage .frame { filter: drop-shadow(0 8px 20px #0009); }
body.approved-interface .pay-list dd:has(> span.pay-mono) { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
body.approved-interface .pay-list dd:has(> span.pay-mono) > button { align-self: flex-start; margin-top: 8px; }
body.approved-interface #stage .wall-relief { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .32; filter: brightness(1.23); -webkit-mask-image: radial-gradient(closest-side,#000 82%,transparent 100%); mask-image: radial-gradient(closest-side,#000 82%,transparent 100%); }
body.approved-interface .open-btn .ring { box-shadow: 0 0 8px #e2b67030,inset 0 0 3px #e2b67012; }
body.approved-interface.welcome #hero img { -webkit-mask-image: linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent),linear-gradient(180deg,transparent,#000 24px,#000 calc(100% - 40px),transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent),linear-gradient(180deg,transparent,#000 24px,#000 calc(100% - 40px),transparent); mask-composite: intersect; }
body.approved-interface.welcome #hero { height: auto; aspect-ratio: 1050 / 1020; }
body.approved-interface #stage .glow { inset: -10%; opacity: .35 !important; -webkit-mask-image: radial-gradient(ellipse,#000 40%,transparent 72%); mask-image: radial-gradient(ellipse,#000 40%,transparent 72%); background: radial-gradient(ellipse at 50% 40%,#60340066,transparent 68%); }
body.approved-interface #assetList .badge { width: 32px; height: 32px; font-size: 20px; }
body.approved-interface #payBox .pay-list button, body.approved-interface #payBox .link.subtle { color: #e2b670; }
body.approved-interface #payStatus { color: #e8ddc2; }
body.approved-interface #payBox :is(.small,.muted,#payExact,#payExpiry) { color: #b99a65; font-size: 12px; line-height: 17px; }
body.approved-interface.welcome #hero { margin-top: -8px; margin-bottom: 24px; }
@media (max-width:359px) { body.approved-interface .status { font-size: 10px; line-height: 14px; padding-inline: 16px; color: #b99a62; } }
body.approved-interface #payBox #payTokenV { font: 13px/20px ui-monospace,monospace; color: var(--text); overflow-wrap: anywhere; }
body.approved-interface #main .status { font-size: 11px; line-height: 16px; color: #b99a63; }
@media (orientation:landscape) and (max-height:420px) { body.approved-interface #main > #stageWrap { --D:220px; margin-top:16px; } body.approved-interface.demo.with-bar #main > #stageWrap { --D:min(220px, calc(100dvh - var(--bar,72px) - 120px)); margin-top:28px; align-self:start; } }
/* #modeSeg (set/add/subtract) visible again — ChatGPT spec 2026-11-17 (selected state = aria-checked in this app) */
body.approved-interface #editor #modeSeg { box-sizing: border-box; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; width: 100%; min-width: 0; height: 40px; margin: 10px 0 0; padding: 3px; border: 1px solid #80683f; border-radius: 12px; background: #100c07; box-shadow: none; }
body.approved-interface #editor #modeSeg[hidden] { display: none; }
body.approved-interface #editor #modeSeg > button { box-sizing: border-box; min-width: 0; height: 32px; min-height: 32px; margin: 0; padding: 0 4px; appearance: none; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b99a62; font: 400 12px/16px Arial,sans-serif; letter-spacing: 0; white-space: nowrap; box-shadow: none; }
body.approved-interface #editor #modeSeg > button[aria-checked="true"] { border-color: #d4ae65; background: #302311; color: #f4d797; }
@media (hover:hover) { body.approved-interface #editor #modeSeg > button:not([aria-checked="true"]):hover { background: #1d160c; color: #e2c48d; filter: none; } }
body.approved-interface #editor #modeSeg > button:active { background: #392a14; color: #f4d797; transform: none; }
body.approved-interface #editor #modeSeg > button:focus-visible { outline: 2px solid #e2b670; outline-offset: -3px; }
@media (max-width:359px) { body.approved-interface #editor #modeSeg > button { padding-inline: 2px; font-size: 11px; } }

/* Polished gold edges — ChatGPT spec 2026-11-17 after founder: «Рамки всех кнопок и сами кнопки нисколько не золотые.
   Добавить блеска и сияние.» (design/founder-target/CHATGPT_GOLD_EDGE_SPEC_2026-11-17.md) */
body.approved-interface {
  --gold-edge: linear-gradient(135deg,#76501d 0%,#c58a32 9%,#fff3c5 19%,#ffe09a 25%,#a46a20 39%,#e9b955 53%,#fff1ba 66%,#bd812b 80%,#78501d 91%,#e9bd68 100%);
  --gold-fill: linear-gradient(180deg,#21160b 0%,#100c07 45%,#0b0906 100%);
}
body.approved-interface :is(.btn,.open-btn .ring,.side-btn .tile,#editor #modeSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar) {
  border: 1px solid transparent; background: var(--gold-fill) padding-box, var(--gold-edge) border-box;
  box-shadow: inset 0 1px 0 #fff0bd66, inset 0 -1px 0 #5c350dcc, 0 0 3px #ffc85a38, 0 0 12px #df921a1f;
}
body.approved-interface .btn { box-shadow: inset 0 1px 0 #fff3c580, inset 0 -1px 0 #623a10cc, 0 0 4px #ffd16b55, 0 0 16px #eea5272e; transition: box-shadow 160ms ease, filter 160ms ease; -webkit-tap-highlight-color: transparent; }
body.approved-interface .btn.primary:not(#tourBtn), body.approved-interface #editor .editor-actions .btn.primary {
  --gold-fill: linear-gradient(180deg,#fff0b7 0%,#f9d57d 8%,#e9b44d 24%,#bd7c24 53%,#d89935 76%,#f0c268 100%);
  border: 1px solid transparent; background: var(--gold-fill) padding-box, var(--gold-edge) border-box; color: #241506; font-weight: 600;
  box-shadow: inset 0 1px 0 #fff8ddcc, inset 0 -1px 0 #764613cc, 0 0 5px #ffd57d66, 0 0 18px #eda22b38;
}
body.approved-interface #tourBtn { border: 0; background: none; box-shadow: none; }
body.approved-interface .open-btn .ring { border-width: 1.5px; box-shadow: inset 0 1px 0 #fff5d199, inset 0 -1px 0 #744515cc, 0 0 5px #ffd47780, 0 0 17px #efa32d40; }
body.approved-interface .side-btn .tile { border-radius: 13px; }
body.approved-interface :is(.side-btn,.open-btn) svg { color: #ffe2a0; }
body.approved-interface #editor #modeSeg { border-radius: 12px; }
body.approved-interface #editor #modeSeg > button { border-radius: 9px; font-size: 13px; line-height: 20px; color: #bfa477; background: transparent; box-shadow: none; border: 1px solid transparent; }
body.approved-interface #editor #modeSeg > button[aria-checked="true"] {
  background: linear-gradient(180deg,#fff0ba 0%,#edc566 12%,#c18a2d 58%,#e5b653 100%) padding-box, var(--gold-edge) border-box;
  color: #291b08; box-shadow: inset 0 1px 0 #fff6d5b3, inset 0 -1px 0 #75451099, 0 0 7px #eaaa3433;
}
body.approved-interface #qtyInput { caret-color: #ffe2a0; }
body.approved-interface #qtyInput::selection { background: #6b4b22; color: #fff4d8; }
body.approved-interface #qtyInput:focus, body.approved-interface #qtyInput:focus-visible { border-color: transparent; box-shadow: inset 0 1px 0 #fff3c580, inset 0 -1px 0 #623a10cc, 0 0 12px #f2b84b40; }
body.approved-interface #assetList .asset-row { box-shadow: inset 0 1px 0 #fff0bd47, inset 0 -1px 0 #58310bcc, 0 0 7px #d9901917; }
@media (hover:hover) and (pointer:fine) {
  body.approved-interface :is(.btn,.side-btn .tile,#editor #modeSeg > button,#coinSelect,#assetList .asset-row):not(:disabled):hover,
  body.approved-interface .open-btn:not(:disabled):hover .ring { filter: brightness(1.10); }
}
body.approved-interface :is(.btn,#editor #modeSeg > button,#coinSelect,#assetList .asset-row):not(:disabled):active,
body.approved-interface .open-btn:not(:disabled):active .ring, body.approved-interface .side-btn:not(:disabled):active .tile {
  filter: brightness(.94); box-shadow: inset 0 2px 5px #00000080, inset 0 1px 0 #ffe5a340, 0 0 5px #ffc65c40;
}
body.approved-interface :is(.btn,.open-btn,.side-btn,#editor #modeSeg > button,#coinSelect,#assetList .asset-row):focus-visible { outline: 2px solid #fff0bd; outline-offset: 3px; }
body.approved-interface :is(.btn,#editor #modeSeg > button,#coinSelect,#qtyInput,#assetList .asset-row):is(:disabled,[aria-disabled="true"]),
body.approved-interface .open-btn:is(:disabled,[aria-disabled="true"]) .ring, body.approved-interface .side-btn:is(:disabled,[aria-disabled="true"]) .tile {
  background: linear-gradient(#15120d,#100e0a) padding-box, linear-gradient(135deg,#665337,#92764a,#55452e) border-box; color: #8e8069; box-shadow: inset 0 1px 0 #c8ac7430; filter: none; opacity: 1;
}
body.approved-interface #coinSelect:disabled { color: #fff0dc; background: var(--gold-fill) padding-box, var(--gold-edge) border-box; box-shadow: inset 0 1px 0 #fff0bd66, inset 0 -1px 0 #5c350dcc, 0 0 3px #ffc85a38, 0 0 12px #df921a1f; }
body.approved-interface #tourBtn { border: 0 !important; background: none !important; box-shadow: none !important; }
body.approved-interface #coinSelect:disabled { color: #fff0dc !important; }
/* ChatGPT review PASS10 fixes */
body.approved-interface #coinSelect, body.approved-interface #coinSelect:disabled { background: var(--gold-fill) padding-box, linear-gradient(135deg,#8c571c 0%,#fff1bd 22%,#c38a2e 48%,#ffe6a0 76%,#805019 100%) border-box !important; border: 1px solid transparent !important; }
body.approved-interface #payBox :is(#payNetworkV,#payStatus) { border: 1px solid transparent; background: var(--gold-fill) padding-box, linear-gradient(135deg,#8c571c 0%,#fff1bd 22%,#c38a2e 48%,#ffe6a0 76%,#805019 100%) border-box; box-shadow: inset 0 1px 0 #fff2c280, 0 0 8px #e9ad3438; }
body.approved-interface .btn.primary:not(#tourBtn), body.approved-interface #editor .editor-actions .btn.primary, body.approved-interface #editor #modeSeg > button[aria-checked="true"] {
  background: linear-gradient(180deg,#fff0b5 0%,#efc463 12%,#bd7b20 52%,#e8b44d 82%,#ffe5a0 100%) padding-box, var(--gold-edge) border-box;
  box-shadow: inset 0 1px 0 #fff7d9, inset 0 -2px 0 #8b571b, 0 0 10px #efb74740;
}
body.approved-interface #qtyInput, body.approved-interface #qtyInput:focus, body.approved-interface #qtyInput:focus-visible { box-shadow: inset 0 1px 0 #fff0bd99, inset 0 -1px 0 #623a10cc, 0 0 4px #ffd16b55, 0 0 12px #f2b84b30; }
/* ChatGPT review PASS11: one shared polished-gold edge recipe for every framed control */
body.approved-interface { --gold-edge2: linear-gradient(135deg,#91601e 0%,#fff2bc 18%,#d99a30 40%,#805016 62%,#ffe7a0 84%,#b77b23); }
body.approved-interface :is(.btn:not(#tourBtn),.open-btn .ring,.side-btn .tile,#editor #modeSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus) {
  border: 1px solid transparent !important;
  background: linear-gradient(#130e07,#090704) padding-box, var(--gold-edge2) border-box !important;
  box-shadow: inset 0 1px 0 #fff0b899, inset 0 -1px 0 #70420d, 0 0 5px #e9aa3c55, 0 0 12px #d28a2026 !important;
}
body.approved-interface .open-btn .ring { border-width: 1.5px !important; }
body.approved-interface :is(.open-btn,.side-btn) svg { stroke: #ffe39a; color: #ffe39a; filter: drop-shadow(0 0 2px #e8ad3a66); }
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"]) {
  border: 1px solid transparent !important;
  background: linear-gradient(180deg,#fff0af 0%,#eebc57 12%,#b77718 52%,#d99a2c 76%,#f4cd73 100%) padding-box, var(--gold-edge2) border-box !important;
  box-shadow: inset 0 1px 0 #fff0b899, inset 0 -1px 0 #70420d, 0 0 5px #e9aa3c55, 0 0 12px #d28a2026 !important;
}
body.approved-interface :is(.btn,.open-btn .ring,.side-btn .tile):active { filter: brightness(.94); }
body.approved-interface :is(.btn:not(#tourBtn),#qtyInput,#editor #modeSeg > button):disabled {
  background: linear-gradient(#15120d,#100e0a) padding-box, linear-gradient(135deg,#665337,#92764a,#55452e) border-box !important; box-shadow: inset 0 1px 0 #c8ac7430 !important; color: #8e8069;
}
/* ChatGPT review PASS12: brighter, higher-contrast polished gold */
body.approved-interface { --gold-edge2: linear-gradient(135deg,#805015 0%,#e2b670 18%,#fff0b5 28%,#ad6b16 45%,#f8d77c 66%,#fff1bd 76%,#986018 100%); }
body.approved-interface :is(.btn:not(#tourBtn),.open-btn .ring,.side-btn .tile,#editor #modeSeg,#demoBar #scenarioSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus) {
  border: 1px solid transparent !important;
  background: linear-gradient(#100c06,#080603) padding-box, var(--gold-edge2) border-box !important;
  box-shadow: inset 0 1px 0 #fff1bb99, inset 0 -1px 0 #693900, 0 0 5px #ffc85a66, 0 0 12px #d68a2033 !important;
}
body.approved-interface .open-btn .ring { border-width: 1.5px !important; }
body.approved-interface :is(.open-btn,.side-btn) svg { stroke: #ffe39a; filter: drop-shadow(0 0 2px #ffc85a88); }
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border: 1px solid transparent !important;
  background: linear-gradient(175deg,#fff0b0 0%,#efc66c 12%,#cc8d20 46%,#aa650c 54%,#e6ad40 82%,#ffe49a 100%) padding-box, var(--gold-edge2) border-box !important;
  box-shadow: inset 0 1px 0 #fff1bb99, inset 0 -1px 0 #693900, 0 0 5px #ffc85a66, 0 0 12px #d68a2033 !important; color: #241506 !important;
}
/* ChatGPT review PASS13: crisper mirror gold, less haze */
body.approved-interface { --gold-edge2: linear-gradient(135deg,#805016 0%,#e2b670 20%,#fff0b5 28%,#b77720 42%,#f4ce79 68%,#805016 84%,#ffe6a0 100%); }
body.approved-interface :is(.btn:not(#tourBtn),.open-btn .ring,.side-btn .tile,#editor #modeSeg,#demoBar #scenarioSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus) {
  background: linear-gradient(#0c0904,#0c0904) padding-box, var(--gold-edge2) border-box !important;
  box-shadow: inset 0 1px 0 #fff0bd80, inset 0 -1px 0 #75440899, 0 0 3px #ffd57980, 0 0 10px #d98b2438 !important;
}
body.approved-interface :is(#coinSelect,#qtyInput,#assetList .asset-row) { box-shadow: inset 0 1px 0 #fff0bd80, inset 0 -1px 0 #75440899, 0 0 6px #d98b2430 !important; }
body.approved-interface :is(#demoBar,#payBox #payNetworkV,#payBox #payStatus) { box-shadow: inset 0 1px 0 #fff0bd80, inset 0 -1px 0 #75440899, 0 0 6px #d98b2428 !important; }
body.approved-interface :is(.open-btn,.side-btn) svg { filter: drop-shadow(0 0 2px #ffd57980); }
body.approved-interface .open-btn .ring { border-width: 1px !important; }
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  background: linear-gradient(175deg,#fff0b5 0%,#edc46e 12%,#c28a2e 48%,#98601b 57%,#e6b657 82%,#ffe3a0 100%) padding-box, linear-gradient(135deg,#fff0b5,#a96b1c 48%,#ffe3a0) border-box !important;
}
/* ChatGPT review PASS14: brighter narrow highlight, more metal contrast, no haze */
body.approved-interface { --gold-edge2: linear-gradient(135deg,#754315 0%,#e2b670 18%,#fff1bc 27%,#a96b21 43%,#704015 58%,#e9bd68 78%,#fff0b5 88%,#94591b 100%); }
body.approved-interface :is(.btn:not(#tourBtn),.open-btn .ring,.side-btn .tile,#editor #modeSeg,#demoBar #scenarioSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus) {
  background: linear-gradient(#0c0905,#0c0905) padding-box, var(--gold-edge2) border-box !important;
}
body.approved-interface .btn:not(#tourBtn) { box-shadow: inset 0 1px 0 #fff0bd66, 0 0 3px #ffc96566, 0 0 9px #d38b2433 !important; }
body.approved-interface :is(.open-btn .ring,.side-btn .tile) { box-shadow: inset 0 1px 0 #fff0bd80, 0 0 4px #ffc96566, 0 0 10px #d38b2426 !important; }
body.approved-interface :is(#editor #modeSeg,#demoBar #scenarioSeg) { box-shadow: inset 0 1px 0 #fff0bd66 !important; }
body.approved-interface :is(#coinSelect,#qtyInput) { box-shadow: inset 0 1px 0 #fff0bd66, 0 0 5px #e2a43c40 !important; }
body.approved-interface #assetList .asset-row { box-shadow: inset 0 1px 0 #fff0bd55, 0 0 5px #e2a43c33 !important; }
body.approved-interface :is(#demoBar,#payBox #payNetworkV,#payBox #payStatus) { box-shadow: inset 0 1px 0 #fff0bd55, 0 0 4px #e2a43c33 !important; }
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border: 1px solid transparent !important;
  background: linear-gradient(175deg,#fff0bb 0%,#e9bd68 13%,#c58a2d 54%,#99601d 76%,#e8b85e 100%) padding-box, linear-gradient(135deg,#fff3c9,#a66b22 48%,#ffe4a0) border-box !important;
}

/* ChatGPT polished-gold frame ART (design/gpt-art/frames2, 3x 9-slices) replaces the CSS gradient edges.
   pill 432x180: shape inset 18 (= 6 css px outset), slice 90 (= 30 css px); rect 240x240: inset 12 (4 px), slice 60 (20 px);
   circle 228x228: inset 18 (6 px), slice 114 (38 px). Glow stays in CSS (art has none). */
body.approved-interface :is(.btn:not(#tourBtn),#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border: 1px solid transparent !important;
  border-image: url(../art/frame-pill-frame.webp) 90 / 30px / 6px stretch !important;
  background: #0c0905 padding-box !important;
  box-shadow: 0 0 10px #e9aa3c40 !important;
}
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border-image: url(../art/frame-pill-fill.webp) 90 fill / 30px / 6px stretch !important;
  background: transparent !important; color: #241506 !important;
  box-shadow: 0 0 12px #efb74750 !important;
}
body.approved-interface :is(.side-btn .tile,#editor #modeSeg,#demoBar #scenarioSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus) {
  border: 1px solid transparent !important;
  border-image: url(../art/frame-rect-frame.webp) 60 / 20px / 4px stretch !important;
  background: #0c0905 padding-box !important;
  box-shadow: 0 0 8px #e9aa3c30 !important;
}
body.approved-interface .open-btn .ring {
  border: 1px solid transparent !important;
  border-image: url(../art/frame-circle-rim.webp) 114 / 38px / 6px stretch !important;
  background: radial-gradient(circle,#0c0905 0 68%,transparent 70%) padding-box !important;
  box-shadow: 0 0 12px #e9aa3c40 !important;
}
body.approved-interface :is(.btn:not(#tourBtn),#qtyInput,#editor #modeSeg > button):disabled { filter: grayscale(.6) brightness(.6); }
/* ChatGPT review PASS16 CSS: tighter glow, 44px pills */
body.approved-interface :is(.btn:not(#tourBtn),.side-btn .tile,#editor #modeSeg,#demoBar #scenarioSeg,#coinSelect,#qtyInput,#assetList .asset-row,#demoBar,#payBox #payNetworkV,#payBox #payStatus,.open-btn .ring) { box-shadow: 0 0 4px #ffd68166, 0 0 12px #d9942829 !important; }
body.approved-interface .btn:not(#tourBtn) { height: 44px; min-height: 44px; }

/* ChatGPT rim spec v2 (design/founder-target/CHATGPT_GOLD_RIM_SPEC_2026-11-17_v2.md), measured from the founder target:
   1px rule dropped. ChatGPT art design/gpt-art/frames6 (3x, no padding, outset 0) via tools/art/gpt-frames.sh -> site/art/rim-*.webp.
   Metal: pills 3px, Удалить/Сохранить 2px, ring 3.5px, tiles/fields/segments 2px, cards/demo bar 1.5px. Glow per spec §3. */
body.approved-interface :is(.btn:not(#tourBtn),#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border-image: url(../art/rim-pill-frame.webp) 66 / 22px / 0 stretch !important;
  box-shadow: 0 0 5px 0 #ffd77a66, 0 0 16px 2px #eba32b38, inset 0 0 6px 0 #ffd77a24 !important;
  transition: filter .12s, box-shadow .12s;
}
body.approved-interface #removeBtn {
  border-image: url(../art/rim-pill-thin.webp) 66 / 22px / 0 stretch !important;
  box-shadow: 0 0 7px 0 #eba32b29 !important;
}
body.approved-interface :is(.btn.primary:not(#tourBtn),#editor .editor-actions .btn.primary,#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border-image: url(../art/rim-save-fill.webp) 66 fill / 22px / 0 stretch !important;
  background: transparent !important; color: #251502 !important;
  box-shadow: 0 0 6px 0 #ffd77a52, 0 0 16px 1px #eba32b33, inset 0 3px 6px 0 #fff4c94d, inset 0 -3px 5px 0 #70400c4d !important;
}
body.approved-interface :is(#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  box-shadow: 0 0 6px 0 #ffd77a52, 0 0 16px 1px #eba32b33, inset 0 2px 4px 0 #fff4c926 !important;
}
body.approved-interface .open-btn .ring {
  border-image: url(../art/rim-circle-rim.webp) 96 / 32px / 0 stretch !important;
  box-shadow: 0 0 7px 1px #ffd77a80, 0 0 22px 3px #eba32b40, inset 0 0 10px 0 #ffd77a30 !important;
}
body.approved-interface .side-btn .tile {
  border-image: url(../art/rim-tile-frame.webp) 36 / 12px / 0 stretch !important;
  box-shadow: 0 0 6px 0 #eba32b30, inset 0 0 4px 0 #ffd77a18 !important;
}
body.approved-interface :is(#coinSelect,#qtyInput,#payBox #payNetworkV,#payBox #payStatus) {
  border-image: url(../art/rim-field-frame.webp) 48 / 16px / 0 stretch !important;
  box-shadow: 0 0 6px 0 #eba32b29, inset 0 0 4px 0 #ffd77a14 !important;
}
body.approved-interface :is(#editor #modeSeg,#demoBar #scenarioSeg) {
  border-image: url(../art/rim-seg-frame.webp) 60 / 20px / 0 stretch !important;
  box-shadow: 0 0 6px 0 #eba32b29, inset 0 0 4px 0 #ffd77a14 !important;
}
body.approved-interface :is(#assetList .asset-row,#demoBar) {
  border-image: url(../art/rim-card-frame.webp) 42 / 14px / 0 stretch !important;
  box-shadow: 0 0 5px 0 #eba32b1f !important;
}
body.approved-interface :is(.btn:not(#tourBtn),.open-btn .ring,.side-btn .tile):active { filter: brightness(.9); }
body.approved-interface :is(.btn:not(#tourBtn),#qtyInput,#editor #modeSeg > button):disabled { filter: none; opacity: .4; box-shadow: none !important; }
/* ChatGPT review PASS18 CSS: stronger glow on cards, demo bar, tiles, fields, segments */
body.approved-interface :is(.side-btn .tile,#coinSelect,#qtyInput,#payBox #payNetworkV,#payBox #payStatus,#editor #modeSeg,#demoBar #scenarioSeg,#assetList .asset-row,#demoBar) { box-shadow: 0 0 4px #ffd77a80, 0 0 12px #f5ad3638, inset 0 0 3px #ffd77a26 !important; }

/* Install guide (ChatGPT spec /var/lib/mira17/ops/design, 2026-11-17): hint card in flow under the price line, same gold field frame */
body.approved-interface .install-card { position: relative; box-sizing: border-box; width: calc(100% - 32px); max-width: 358px; margin: 16px auto max(16px, env(safe-area-inset-bottom)); padding: 12px; text-align: start;
  border: 1px solid transparent; border-image: url(../art/rim-field-frame.webp) 48 / 16px / 0 stretch; background: #0c0905 padding-box; border-radius: 16px; }
body.approved-interface .install-card[hidden] { display: none; }
body.approved-interface .install-title { margin: 0; padding-inline-end: 40px; font: 400 17px/22px var(--serif, Georgia, serif); color: #f2e5c8; }
body.approved-interface .install-x { position: absolute; top: 2px; inset-inline-end: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #e2b670; font-size: 16px; line-height: 44px; cursor: pointer; }
body.approved-interface .install-card .install-body { margin-top: 8px; }
body.approved-interface .install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
body.approved-interface .install-steps li { display: flex; align-items: center; gap: 6px; font: 400 14px/20px var(--sans, Arial, sans-serif); color: #f2e5c8; }
body.approved-interface .install-steps .mark { flex: none; width: 20px; display: inline-flex; justify-content: center; color: #e2b670; }
body.approved-interface .install-steps .share-ico { width: 20px; height: 20px; }
body.approved-interface .install-text { margin: 0; font: 400 14px/20px var(--sans, Arial, sans-serif); color: #f2e5c8; }
body.approved-interface .install-menu { margin: 8px 0 0; font: 400 13px/18px var(--sans, Arial, sans-serif); color: #c4a064; }
body.approved-interface .install-body .install-now { width: 100%; font-weight: 600; }
body.approved-interface #installSheet .install-body { margin-top: 16px; }
body.approved-interface #installSheet .install-steps { gap: 8px; }
body.approved-interface #installSheet :is(.install-steps li,.install-text) { font-size: 15px; line-height: 22px; }
body.approved-interface #installGuideBtn { margin-top: 12px; }
body.approved-interface :is(.install-x,#installGuideBtn,.install-now):active { opacity: .8; }
body.approved-interface :is(.install-x,#installGuideBtn,.install-now):focus-visible { outline: 2px solid #e2b670; outline-offset: 3px; }
/* ChatGPT review INSTALL1: lighter sheet title, room for the close button */
body.approved-interface #installSheetTitle { font-size: 24px; line-height: 28px; font-weight: 500; padding-inline-end: 44px; }
/* ChatGPT review PASS22: selected small segments get their own gold fill art (frames11/seg_fill, 348x108 r54, slice 54) */
body.approved-interface :is(#editor #modeSeg > button[aria-checked="true"],#demoBar #scenarioSeg > button[aria-checked="true"]) {
  border-image: url(../art/rim-seg-fill.webp) 54 fill / 18px / 0 stretch !important;
}
/* checkout network picker (merged from security-luxury): no empty framed status box while choosing the network */
body.approved-interface #payBox #payStatus:empty { display: none !important; }

/* ChatGPT spec v3 (CHATGPT_GOLD_RIM_SPEC_2026-11-17_v3.md): solid bevelled metal instead of wire for the four failing elements.
   Demo bar + asset cards: SVG bezel from js/bezel.js (6 px band, r14/8) under the content. */
body.approved-interface :is(:is(#demoBar,#assetList .asset-row).has-bezel, #bz#bz#bz) { border-image: none !important; border-color: transparent !important; background: transparent !important; isolation: isolate; }
body.approved-interface :is(#assetList .asset-row.has-bezel, #bz#bz#bz) { position: relative; }
body.approved-interface :is(.has-bezel > .gold-bezel, #bz#bz#bz) { position: absolute; left: -1px; top: -1px; z-index: -1; pointer-events: none; }
body.approved-interface :is(#assetList .asset-row.has-bezel, #bz#bz#bz) { box-shadow: 0 0 4px 1px #ffc34d47, 0 0 12px 2px #eca32a24, 0 4px 8px #00000080 !important; }
body.approved-interface :is(#demoBar.has-bezel, #bz#bz#bz) { box-shadow: 0 0 4px 1px #ffc34d47, 0 0 12px 2px #eca32a24, 0 4px 8px #00000080 !important; }
/* Ring and tiles: ChatGPT solid bezel art (design/gpt-art/bezel1), one non-stretched image each, glow per spec v3 */
body.approved-interface :is(.open-btn .ring, #bz#bz#bz) {
  border: 1px solid transparent !important; border-image: none !important;
  background: url(../art/bezel-ring.webp) center / 100% 100% no-repeat border-box, radial-gradient(circle, #171006 0, #080604 70%) border-box !important;
  box-shadow: 0 0 5px 1px #ffc34d66, 0 0 15px 3px #eca32a38, 0 5px 10px #00000099 !important;
}
body.approved-interface :is(.side-btn .tile, #bz#bz#bz) {
  border: 1px solid transparent !important; border-image: none !important;
  background: url(../art/bezel-tile.webp) center / 100% 100% no-repeat border-box, linear-gradient(180deg, #171006, #080604) border-box !important;
  box-shadow: 0 0 4px 1px #ffc34d52, 0 0 10px 2px #eca32a29, 0 3px 7px #00000099 !important;
}
body.approved-interface :is(:is(.open-btn .ring,.side-btn .tile) svg, #bz#bz#bz) { color: #ffe6a0; stroke-width: 1.5; }
body.approved-interface :is(.open-btn:not(:disabled):active .ring, #bz#bz#bz), body.approved-interface :is(.side-btn:not(:disabled):active .tile, #bz#bz#bz) { filter: brightness(.88); }
/* Founder 2026-11-17: scrolled panel content (checkout amount) must not slide under the transparent fixed header —
   an opaque band of the page colour behind the header while a panel is open (fades out below the header) */
body.approved-interface:has(.panel.show) .top::before { content: ''; position: fixed; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
  height: calc(var(--ui-top) + 52px); background: linear-gradient(180deg, #0b0804 0, #0b0804 calc(100% - 10px), #0b080400 100%); }
/* closing, frames 195–210: «Сейф закрыт» fades in while the home actions stay hidden — a new opening is possible from frame 210 */
body.approved-interface.closing-end :is(.home-actions,#status) { visibility: hidden; }

/* ---------- vault screen with the executor clips — ChatGPT spec (gpt-design spec 2026-11-17 ~22:55), implemented literally ----
   One 430 px column (desktop/landscape too). The clip window shows the clip's full width x 0–1080 and the frame rows
   y 410–1420 (only marble margins above/below fall outside; the vault square 958 at (61,434) is inside). No mask, no filter.
   Vertical order: header 44 · 8 · demo 64 (demo only) · 8 · title slot 26 · 8 · clip window · 12 · bottom slot 184.
   Window width = min(column, max(160px, H × 1080/1010)), H = 100dvh − T − B − 354px (demo) / − 282px. */
/* review round 1: page colour = the clip's own dark background, sampled from the window edges (mean of the 25 px source bands
   of the first and last frame of vault_open: rgb(15,11,12)); four edge gradients over the window (8 px, review round 2: 20 px) melt its edge into it */
body.approved-interface:not(.welcome), body.approved-interface:not(.welcome) #bg, body.approved-interface:not(.welcome) #main { background: #0F0B0C; }
body.approved-interface:not(.welcome) {
  --clipT: var(--ui-top); --clipB: max(16px, env(safe-area-inset-bottom)); --clipFixed: 282px;
}
body.approved-interface.demo.with-bar:not(.welcome) { --clipFixed: 334px; }
body.approved-interface:not(.welcome) #main { display: flex !important; flex-direction: column; padding: calc(var(--clipT) + 52px) 20px var(--clipB); max-width: 430px; box-sizing: border-box; overflow: hidden; }
body.approved-interface.demo.with-bar:not(.welcome) #main { padding-top: calc(var(--clipT) + 104px); }
body.approved-interface:not(.welcome) #main > .titles { flex: none; height: 26px; margin: 0; grid-column: auto; grid-row: auto; align-self: stretch; }
body.approved-interface:not(.welcome) #lockedTitle { display: block !important; margin: 0; text-align: center; font: 400 22px/26px Georgia, serif; }
body.approved-interface:is(.open,.opening):not(.welcome) #lockedTitle { visibility: hidden; }
body.approved-interface:not(.welcome) #main > #stageWrap {
  --clipH: calc(100dvh - var(--clipT) - var(--clipB) - var(--clipFixed));
  flex: none; position: relative; overflow: hidden; width: min(100%, max(160px, calc(var(--clipH) * 1.06930693))); height: auto;
  aspect-ratio: 1080 / 1010; margin: 8px auto 0; grid-column: auto; grid-row: auto; align-self: center;
}
body.approved-interface:not(.welcome) #stage { position: absolute; inset: 0; transform: none; perspective: none; }
#clipLayer { position: absolute; inset: 0; pointer-events: none; }
#clipLayer .clip { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; object-position: center top;
  transform: translateY(-21.3541667%); display: block; visibility: hidden; }
#clipLayer .clip.on { visibility: visible; }
body.approved-interface:not(.welcome) #main > .below { flex: none; height: 184px; margin-top: 12px; align-items: start; grid-column: auto; grid-row: auto; align-self: stretch; }
body.approved-interface:not(.welcome) .below > .layer { align-self: start; justify-content: flex-start; }
body.approved-interface:not(.welcome) .home-layer { gap: 0; }
body.approved-interface:not(.welcome) .home-actions { margin-top: 0; height: 108px; grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: center; justify-items: center; }
body.approved-interface:not(.welcome) .side-btn { gap: 4px; font: 12px/16px var(--sans); }
body.approved-interface:not(.welcome) .side-btn .tile { width: 56px; height: 56px; border-radius: 12px; }
body.approved-interface:not(.welcome) .open-btn { gap: 4px; }
body.approved-interface:not(.welcome) .open-btn .ring { width: 88px; height: 88px; }
body.approved-interface:not(.welcome) .open-label { font: 12px/16px var(--sans); }
body.approved-interface:not(.welcome) #main #status { margin-top: 8px; font: 400 13px/16px var(--sans); }
body.approved-interface:not(.welcome) .install-card { margin: 8px auto 0; }
body.approved-interface:not(.welcome) #result { gap: 0; justify-content: flex-start; }
body.approved-interface:not(.welcome) #totalLine { margin: 0; font: 400 40px/48px Georgia, serif; color: #E2B670; letter-spacing: 0; }
body.approved-interface:not(.welcome) #totalLine .unit { font: 400 16px/48px Georgia, serif; }
body.approved-interface:not(.welcome) #result .message { margin: 8px 0 0; font: 400 16px/20px var(--sans); }
body.approved-interface:not(.welcome) #result .actions { margin-top: 12px; min-height: 48px; width: 100%; }
body.approved-interface:not(.welcome) #result .actions .btn { width: 100%; height: 48px; min-height: 48px; border-radius: 24px; }
body.approved-interface:not(.welcome) #stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom, #0F0B0C, rgb(15 11 12 / 0)) top / 100% 20px no-repeat,
    linear-gradient(to top, #0F0B0C, rgb(15 11 12 / 0)) bottom / 100% 20px no-repeat,
    linear-gradient(to right, #0F0B0C, rgb(15 11 12 / 0)) left / 20px 100% no-repeat,
    linear-gradient(to left, #0F0B0C, rgb(15 11 12 / 0)) right / 20px 100% no-repeat; }

/* ---------- vault screen, phone landscape (height ≤ 420 px) — ChatGPT spec addendum (gpt-design spec 2026-11-17 ~23:20), literally ----
   Working area ≤ 820 px centred; header 44 · 8 · demo 398×64 · 8; below: two columns (clip window | 390 px interface) with a 16 px gap,
   both centred vertically; window width = min(100%, H × 1080/1010), H = 100dvh − T − B − 124 (demo) / − 52; right block = title slot 26 ·
   8 · bottom slot 184. Physical positions fixed in every language (ar included). */
@media (orientation: landscape) and (max-height: 420px) {
  body.approved-interface:not(.welcome) { --ui-top: env(safe-area-inset-top, 0px); --clipT: env(safe-area-inset-top, 0px); --clipB: env(safe-area-inset-bottom, 0px); --clipFixed: 52px; }
  body.approved-interface.demo.with-bar:not(.welcome) { --clipFixed: 104px; }
  body.approved-interface:not(.welcome) .top { left: max(16px, calc((100% - 820px) / 2)); right: max(16px, calc((100% - 820px) / 2)); }
  body.approved-interface:not(.welcome) #main, body.approved-interface.demo.with-bar:not(.welcome) #main {
    display: grid !important; direction: ltr; max-width: 820px; height: 100dvh; box-sizing: border-box;
    padding: calc(var(--clipT) + var(--clipFixed)) calc(16px + env(safe-area-inset-right, 0px)) var(--clipB) calc(16px + env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 390px); grid-template-rows: 1fr 26px 8px 184px 1fr; column-gap: 16px; row-gap: 0; align-items: stretch; }
  html[dir=rtl] body.approved-interface:not(.welcome) #main > * { direction: rtl; }
  body.approved-interface:not(.welcome) #main > #stageWrap, body.approved-interface.demo.with-bar:not(.welcome) #main > #stageWrap {
    --clipH: calc(100dvh - var(--clipT) - var(--clipB) - var(--clipFixed));
    grid-column: 1; grid-row: 1 / span 5; align-self: center; justify-self: center; margin: 0;
    width: min(100%, calc(var(--clipH) * 1080 / 1010)); }
  body.approved-interface:not(.welcome) #main > .titles { grid-column: 2; grid-row: 2; height: 26px; align-self: stretch; }
  body.approved-interface:not(.welcome) #lockedTitle { font: 400 20px/26px Georgia, serif; }
  body.approved-interface:not(.welcome) #main > .below { grid-column: 2; grid-row: 4; height: 184px; margin: 0; align-self: stretch; }
  body.approved-interface:not(.welcome) .below > .home-layer { align-self: center; justify-content: center; }
  body.approved-interface:not(.welcome) .home-actions { height: auto; grid-template-columns: 88px 104px 88px; column-gap: 16px; justify-content: center; align-items: center; }
  body.approved-interface:not(.welcome) :is(.side-btn, .open-btn) { gap: 4px; font: 12px/14px var(--sans); }
  body.approved-interface:not(.welcome) .open-label { font: 12px/14px var(--sans); }
  body.approved-interface:not(.welcome) #main #status { margin-top: 8px; font: 400 13px/16px var(--sans); white-space: normal; }
  body.approved-interface:not(.welcome) #result { align-self: center; justify-content: center; height: 152px; }
  body.approved-interface:not(.welcome) #totalLine { gap: 8px; }
  body.approved-interface:not(.welcome) #totalLine .unit { font: 400 14px/18px Georgia, serif; }
  body.approved-interface:not(.welcome) #result .message { margin-top: 4px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
  body.approved-interface:not(.welcome) #result .actions { margin-top: 12px; min-height: 48px; }
  body.approved-interface:not(.welcome) #result .actions .btn { font-size: 16px; line-height: 20px; }
}

/* ---------- welcome screen — ChatGPT spec design/gpt-art/welcome-keeper-20261117/spec.out (variant B), implemented literally ----
   Keeper art keeper_v2_B (1536×2048, 3:4) shown whole: width 100 % of the column, height auto, vertical mask 0%/0 · 18%/1 ·
   94%/1 · 100%/0, no cover/zoom/filter/frame. Title over the empty top of the art; «Создать мой сейф» button, the
   «Посмотреть в действии» link right under it. Subtitle and footer removed. 390×844: header logo 20/24 28px, MIRA17 56/28
   13/20, gear 326/16; title y 78 38/40; art 0/84 390×520; button 20/624 350×48; link 20/680 350×44.
   320×658 (≤ 359 px wide): logo 16/16 24px, MIRA17 48/18 12/20, gear 260/6; title y 64 32/34; art 0/62 320×426.67;
   button 16/502 288×48; link 16/558 288×44. */
body.approved-interface.welcome, body.approved-interface.welcome #bg, body.approved-interface.welcome #main { background: #0B0F1A; }
body.approved-interface.welcome { --kx: 20px; --kTitle: 78px; --kArt: 84px; --kGap: 20px; --kCol: min(100vw, 430px);
  /* the art keeps 3:4 at the column width; on screens too short for it (not covered by the spec) it narrows, centred */
  --kW: min(var(--kCol), calc((100dvh - var(--kArt) - var(--kGap) - 116px) * .75)); }
body.approved-interface.welcome #main { position: fixed; inset: 0; display: block !important; max-width: 430px; margin-inline: auto; padding: 0 !important; overflow: hidden; }
body.approved-interface.welcome #main > .titles { position: absolute; left: 0; right: 0; top: var(--kTitle); z-index: 2; margin: 0; }
body.approved-interface.welcome #welcomeTitle { margin: 0; font: 400 38px/40px Georgia, serif !important; letter-spacing: 0 !important; color: #F4D597 !important; text-align: center; }
body.approved-interface.welcome #welcomeTitle span { display: block; }
body.approved-interface.welcome #main > #hero { position: absolute; top: var(--kArt); left: calc((var(--kCol) - var(--kW)) / 2); width: var(--kW); height: auto !important;
  aspect-ratio: 1536 / 2048 !important; margin: 0 !important; z-index: 1; overflow: visible; }
body.approved-interface.welcome #hero img { display: block; width: 100% !important; height: auto !important; max-height: none !important; object-fit: fill !important; filter: none !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 94%, transparent 100%) !important; -webkit-mask-composite: source-over !important;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 94%, transparent 100%) !important; mask-composite: add !important; }
body.approved-interface.welcome #main > .below { position: absolute; left: var(--kx); right: var(--kx); width: auto; top: calc(var(--kArt) + var(--kW) * 4 / 3 + var(--kGap)); margin: 0 !important; z-index: 2; }
body.approved-interface.welcome .home-layer { display: flex; flex-direction: column; gap: 8px !important; }
body.approved-interface.welcome #createBtn { order: 1; }
body.approved-interface.welcome #tourBtn { order: 2; }
body.approved-interface.welcome :is(#createBtn, #kb#kb#kb#kb) {   /* outranks the shared #bz#bz#bz bezel/rim rules */
  width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/20px var(--sans) !important; color: #F6E5C3 !important; background: #10131D !important; border: 1px solid #E2B670 !important;
  border-image: none !important; border-radius: 24px !important; box-shadow: 0 0 16px #E2B67033 !important; filter: none !important; }
body.approved-interface.welcome #createBtn .chev { color: #E2B670; margin: 0; }
body.approved-interface.welcome :is(#createBtn, #kb#kb#kb#kb):hover { background: #1C1920 !important; }
body.approved-interface.welcome :is(#createBtn, #kb#kb#kb#kb):active { background: #2A211C !important; filter: none !important; }
body.approved-interface.welcome :is(#tourBtn, #kb#kb#kb#kb) {
  width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 0;
  font: 400 13px/18px var(--sans) !important; color: #D6BB8F !important; background: none !important; border: 0 !important; border-image: none !important;
  box-shadow: none !important; filter: none !important; text-decoration: none; }
body.approved-interface.welcome #tourBtn .chev { display: none; }
body.approved-interface.welcome #tourBtn:is(:hover, :active) span { color: #F4D597; text-decoration: underline 1px; text-underline-offset: 3px; }
body.approved-interface.welcome :is(#createBtn, #tourBtn, #settingsBtn):focus-visible { outline: 2px solid #F4D597 !important; outline-offset: 3px !important; }
body.approved-interface.welcome .top { top: var(--ui-top); height: 44px; left: 20px; right: 20px; }
body.approved-interface.welcome .wordmark { gap: 8px; font: 400 13px/20px Georgia, serif !important; letter-spacing: 3px; color: #E2B670; }
body.approved-interface.welcome .wordmark img { width: 28px !important; height: 28px !important; }
body.approved-interface.welcome #settingsBtn { width: 44px; height: 44px; color: #E2B670; }
/* review round 1: the gear drawing itself 18 × 18 px (its path spans 15.1 of the 24-unit viewBox) with a 1.5 px stroke */
body.approved-interface.welcome #settingsBtn svg { width: 28.6px; height: 28.6px; }
body.approved-interface.welcome #settingsBtn svg [stroke-width] { stroke-width: 1.259; }
body.approved-interface.welcome #settingsBtn:is(:hover, :active) { color: #F4D597; }
@media (max-width: 359px) {
  body.approved-interface.welcome { --kx: 16px; --kTitle: 64px; --kArt: 62px; --kGap: 13.333px; }
  body.approved-interface.welcome #welcomeTitle { font: 400 32px/34px Georgia, serif !important; }
  body.approved-interface.welcome .top { top: 6px; left: 16px; right: 16px; }
  body.approved-interface.welcome .wordmark { font: 400 12px/20px Georgia, serif !important; }
  body.approved-interface.welcome .wordmark img { width: 24px !important; height: 24px !important; }
}

/* ---------- demo = the real app on sample data — gpt-design spec 20261118T002540Z (/var/lib/mira17/ops/design), literally ----
   No demo box, tag, caption or ×. Header 44 · 6 · scenario pill 252×44 (no caption, no glow, no gradient) · 10 · title slot.
   The pill and the «Полная версия» link hide while the vault is open (the pill keeps its place). No price caption in the demo.
   Exit = the last row of Settings. Offer = back arrow, title, price card, purchase, key link (no notes, no features). */
#scenarioBar[hidden], #demoFull[hidden], #demoExit[hidden] { display: none !important; }
body.approved-interface.demo.with-bar #scenarioBar { position: fixed; z-index: 8; left: 0; right: 0; top: calc(var(--ui-top) + 50px); height: 44px;
  display: flex; justify-content: center; pointer-events: none; }
body.approved-interface #scenarioBar .scenario-pill { pointer-events: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 252px; height: 44px;
  box-sizing: border-box; margin: 0; padding: 0; border: 1px solid #e2b670; border-radius: 22px; background: #0b0f1a; overflow: hidden; box-shadow: none; }
body.approved-interface #scenarioBar .scenario-pill > button { min-width: 0; height: 42px; margin: 0; padding: 0 4px; border: 0; border-radius: 21px; background: none;
  box-shadow: none; font: 400 12px/16px system-ui, -apple-system, "Segoe UI", sans-serif; color: #e2b670; letter-spacing: 0; white-space: nowrap; }
body.approved-interface #scenarioBar .scenario-pill > button[aria-checked="true"] { background: #322719; color: #f5e6c9; font-weight: 600; }
body.approved-interface #scenarioBar .scenario-pill > button:focus-visible { outline: 2px solid #e2b670; outline-offset: -3px; }
body.approved-interface.demo:is(.open,.opening) #scenarioBar { visibility: hidden; }
body.demo #status { display: none !important; }
body.approved-interface.demo #demoFull { display: block; margin: 4px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none;
  font: 400 13px/18px system-ui, -apple-system, "Segoe UI", sans-serif; color: #e2b670; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.demo .no-demo { display: none !important; }
body.approved-interface #demoExit { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; text-align: center;
  font: 400 14px/20px system-ui, -apple-system, "Segoe UI", sans-serif; color: #e2b670; text-decoration: none; }
body.approved-interface #offer .panel-title { font: 400 26px/30px Georgia, serif; color: #f5e6c9; margin-top: 24px; }
body.approved-interface #offer .offer-body { margin-top: 20px; gap: 0; }
body.approved-interface #offer .price-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px;
  border: 1px solid #e2b670; border-radius: 14px; background: #131722; box-shadow: none; text-align: center; }
body.approved-interface #offer .price-card > span { font: 400 18px/22px Georgia, serif; color: #f5e6c9; }
body.approved-interface #offer .price-card > strong { font: 600 14px/20px system-ui, -apple-system, "Segoe UI", sans-serif; color: #e2b670; text-align: center; }
body.approved-interface #offer #offerBuy { margin-top: 16px; }
body.approved-interface #offer #offerBuyNote:empty { display: none; }
body.approved-interface #offer #offerHaveKey { margin-top: 4px; min-height: 44px; font: 400 13px/18px system-ui, -apple-system, "Segoe UI", sans-serif; color: #e2b670;
  text-decoration: underline; text-decoration-thickness: 1px; }
/* gpt-design review 20261118 round 1 (FAIL: «Отлично!» rim broken at both sides): the rim art is 132 px high = two 66 px corner
   slices, so a 48 px button with 22 px corners left a 4 px empty side band. Corners of half the height close the rim. */
body.approved-interface #main #result .actions .btn { border-image-width: 24px !important; }

/* ---------- Settings: backup section — gpt-design spec 20261118T105545Z, literally ----
   24 px before and after, h4 existing style, 8 px to the first button, two .btn.outline 100 % × 44 px, gap 8 px,
   transparent fill, 1 px #e2b670 hairline; save disabled (existing disabled style) when the vault is empty; hidden in the demo. */
#settings .backup-section { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }   /* + the card gap 12 px (+ next h4 margin 8 px) = 24 px each side (review r1) */
#settings .backup-section h4 { margin: 0; }
#settings .backup-section .btn.outline { width: 100%; height: 44px; min-height: 44px; margin: 0; background: transparent; border: 1px solid #e2b670; }

/* ---------- gpt-design spec 20261119T164317Z, literally: licence-key form, offer legal block, receipt link, settings
   seller + legal links. Service texts stay small and inconspicuous; the offer's title, price card and button stay the heroes. */
/* §1 licence-key form: one column — label 12/16 #b29a70 (4 px to the field), field 100 % × 44, button 100 % × 44 (8 px gap) */
body.approved-interface #keyBox { margin-top: 24px; }
body.approved-interface #keyBox > p.small:first-child { margin: 0 0 4px; font: 12px/16px var(--sans); color: #b29a70; }
body.approved-interface #keyBox .pay-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; margin: 0; }
body.approved-interface #keyBox .pay-input { width: 100%; box-sizing: border-box; height: 44px; min-height: 44px; padding: 0 12px; font: 16px/20px var(--sans);
  background: #0b0f1a; border: 1px solid #e2b670; border-radius: 12px; }
body.approved-interface #keyBox .pay-input:focus { outline: 2px solid #e2b670; outline-offset: 2px; }
body.approved-interface #keyBox #keyActivate { width: 100%; height: 44px; min-height: 44px; margin-top: 8px; }
/* §2 offer (web checkout): card → price line (10) → consent (12) → links (8) → buy (16) → key link (24) */
body.approved-interface #offer.with-legal .panel-actions { margin-top: 10px; gap: 0; }
body.approved-interface #offer.with-legal #offerNote { margin: 0; font: 11px/15px var(--sans); color: #b29a70; text-align: center; }
body.approved-interface #offer.with-legal .offer-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; width: 100%; text-align: left;
  font: 12px/16px var(--sans); color: #b29a70; cursor: pointer; }
body.approved-interface #offer.with-legal .offer-consent input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: #e2b670; }
body.approved-interface #offer.with-legal .offer-legal { margin: 8px 0 0; font: 11px/15px var(--sans); color: #b29a70; text-align: center; }
body.approved-interface #offer.with-legal .offer-legal a, body.approved-interface #settings .settings-legal a { color: #b29a70; text-decoration: underline; white-space: nowrap; }
body.approved-interface #offer.with-legal :is(.offer-consent input, .offer-legal a):focus-visible,
body.approved-interface #settings .settings-legal a:focus-visible { outline: 2px solid #e2b670; outline-offset: 2px; }
body.approved-interface #offer.with-legal #offerBuy { width: 100%; height: 44px; min-height: 44px; margin-top: 16px; }
body.approved-interface #offer.with-legal #offerHaveKey { margin-top: 24px; }
/* §3 receipt after payment: under the note, 8 px, left, small underlined link */
body.approved-interface #paySaveReceipt { display: block; margin-top: 8px; padding: 0; text-align: left; font: 12px/16px var(--sans); color: #b29a70; text-decoration: underline; }
/* §4 settings bottom: version, seller, links — 12 px after "Erase vault data", 11/15 #b29a70, 4 px apart, 20 px below */
/* the settings card already spaces its children 12 px apart: 12 px after "Erase" = no extra margin; 4 px between = -8 px */
body.approved-interface #settings .version { margin-top: 0; }
body.approved-interface #settings :is(.version, .seller-line, .settings-legal) { font: 11px/15px var(--sans); color: #b29a70; text-align: left; overflow-wrap: break-word; }
body.approved-interface #settings :is(.seller-line, .settings-legal) { margin-top: -8px; }
body.approved-interface #settings .settings-legal { margin-bottom: 20px; }
/* gpt-design review 20261119T165735Z (FAIL r1), literally:
   - after payment: key and Copy on one baseline row 8 px apart; note 4 px below; "Save receipt" 8 px below at 12 px;
     the confirmation frame loses its glow: 1 px #e2b670 at 35 % opacity */
body.approved-interface #payLicenseBox > p:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; }
body.approved-interface #payLicenseBox #payKeyNote { margin: 4px 0 0; }
body.approved-interface #payBox:has(#payLicenseBox:not([hidden])) #payStatus {
  border-image: none !important; border: 1px solid #e2b67059 !important; background: transparent !important; box-shadow: none !important; }
/* - licence-key form: field 1 px #e2b670 only (focus: 2 px outline, 2 px offset); Activate: 1 px outline, no glow */
body.approved-interface #keyBox #keyInput { border-image: none !important; box-shadow: none !important; }
body.approved-interface #keyBox #keyActivate { border-image: none !important; border: 1px solid #e2b670 !important; background: transparent !important; box-shadow: none !important; }
/* - waiver checkbox: 16 × 16, fill #0b0f19, 1 px #e2b670; ticked: #e2b670 fill with a #0b0f19 tick */
body.approved-interface #offer.with-legal .offer-consent input { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 16px; height: 16px;
  background: #0b0f19; border: 1px solid #e2b670; border-radius: 2px; cursor: pointer; }
body.approved-interface #offer.with-legal .offer-consent input:checked { background: #e2b670 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3 6.6 11.2 12.5 4.8' fill='none' stroke='%230b0f19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
/* gpt-design review 20261119T170019Z (FAIL r2): Activate kept the shared pill rim (that rule's :is() list reaches
   specificity 2-2-2); the reviewed look is applied with a stronger selector: 1 px #e2b670, no outer/inner shadow or glow */
body.approved-interface #offer #keyBox #keyActivate.btn { border-image: none !important; border: 1px solid #e2b670 !important; background: transparent !important;
  box-shadow: none !important; filter: none !important; }

/* gpt-design spec 20261119T212721Z, literally: receipts of paid orders kept on this device, in the licence-key box —
   4 px under the saved-keys line, one 12/16 #b29a70 underlined link per order, 2 px apart, left-aligned, whole key shown */
body.approved-interface #keyBox #keyMsg { margin-bottom: 0; }
body.approved-interface #keyReceipts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 4px 0 0; padding: 0; }
body.approved-interface #keyReceipts:empty { display: none; }
body.approved-interface #keyReceipts[hidden] { display: none; }
body.approved-interface #keyReceipts > .link.subtle { display: block; box-sizing: border-box; max-width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: #b29a70; font: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: normal;
  text-transform: none; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; white-space: normal;
  word-break: normal; overflow-wrap: anywhere; cursor: pointer; min-height: 0; align-self: flex-start; }   /* the base .link.subtle centres itself */
body.approved-interface #keyReceipts > .link.subtle:hover, body.approved-interface #keyReceipts > .link.subtle:active { color: #e2b670; }
body.approved-interface #keyReceipts > .link.subtle:focus-visible { outline: 1px solid #e2b670; outline-offset: 1px; }

/* gpt-design spec 20261119T221135Z, literally: receipts of paid orders in the Settings sheet (reachable once the licence is
   active; Codex audit r14) — right after the legal line, 4 px below it (the card gap is 12 px, hence -8 px), one 11/15 #b29a70
   underlined link per order, 2 px apart, left-aligned, whole key shown; review 20261119T221234Z: exactly 20 px from the last receipt
   to the card's inner edge (the card's own bottom padding is 20 px, 22 px in the centred desktop card) */
body.approved-interface #settings .settings-legal:has(+ #settingsReceipts:not([hidden]):not(:empty)) { margin-bottom: 0; }
body.approved-interface #settingsReceipts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-width: 0; margin: -8px 0 0; padding: 0; }
@media (min-width: 700px) and (min-height: 560px) { body.approved-interface #settingsReceipts { margin-bottom: -2px; } }
body.approved-interface #settingsReceipts:empty, body.approved-interface #settingsReceipts[hidden] { display: none; }
body.approved-interface #settingsReceipts > .link.subtle { display: block; box-sizing: border-box; width: auto; max-width: 100%; min-width: 0; min-height: 0; height: auto; margin: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #b29a70; font: inherit; font-size: 11px; line-height: 15px; font-weight: 400;
  letter-spacing: normal; text-transform: none; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; white-space: normal;
  word-break: normal; overflow-wrap: anywhere; cursor: pointer; align-self: flex-start; }   /* the base .link.subtle centres itself */
body.approved-interface #settingsReceipts > .link.subtle:hover, body.approved-interface #settingsReceipts > .link.subtle:active { color: #e2b670; }
body.approved-interface #settingsReceipts > .link.subtle:focus-visible { outline: 1px solid #e2b670; outline-offset: 1px; }
