/* /presale-next: styles for /presale's own flow elements inside the ICO design's shell (hive-1108-i1 round 3).
   The design's css/styles.css is shipped byte for byte; these rules are /presale's, scoped to the tokens below.
   The wallet dialog and the confirm dialog are HiveUI's (/appjs/ui.js), styled by it. */
:root{--ink2:rgba(240,238,232,.78);--ink3:rgba(240,238,232,.55);--bd:rgba(255,255,255,.08);--bds:rgba(255,255,255,.16);
  --gold-line:rgba(255,205,32,.45);--gold-soft:rgba(255,205,32,.07);--green:#3ecf8e;--red:#ff6b6b;--s2:#16181c;--ink:#f8f7f3}
html[data-theme="light"]{--ink2:rgba(20,20,20,.75);--ink3:rgba(20,20,20,.55);--bd:rgba(0,0,0,.08);--bds:rgba(0,0,0,.18);--ink:#141414}
.currency-toggle .ps-wc-asset.is-on{color:#15140d;background:linear-gradient(130deg,#ffdd44,#ffc008);box-shadow:0 4px 14px rgba(255,192,0,.15)}
.ps-next-unit{margin:6px 2px 0;font-size:12px;color:var(--ink3)}
.ps-next-pending{display:block;margin-top:4px;font-size:12px;color:var(--ink2)}
#ps-cta-wrap{margin-top:16px}
#ps-cta-wrap .primary-cta,#ps-ch-connect{display:flex;justify-content:center;align-items:center;text-decoration:none}
.ps-next-record{position:relative;z-index:2}
.ps-next-record h2{font-size:22px;margin:0 0 14px}
.ps-next-record .card,#panelHistory{text-align:left}
.ps-next-record .ct{font-size:12px;color:var(--ink3);margin-bottom:10px}
.ps-next-record table,#ps-mine-table{width:100%;border-collapse:collapse;font-size:13px}
.ps-next-record th,.ps-next-record td,#ps-mine-table th,#ps-mine-table td{padding:8px 6px;border-bottom:1px solid var(--bd);text-align:left}
.ps-next-record a{color:var(--gold)}
.muted{color:var(--ink3)}
.calc{margin-top:12px;display:flex;justify-content:space-between;font-size:14px;color:var(--ink2)}
.fine{font-size:12px;color:var(--ink3);margin-top:12px}
.tot{display:flex;justify-content:space-between;margin-top:14px;padding-top:12px;border-top:1px solid var(--bds);font-size:14px}
.calc{gap:12px}
.dest{margin-top:14px;border:1px solid var(--gold-line);background:var(--gold-soft);border-radius:12px;padding:14px 16px}
.dest .k{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3)}
.dest .addr{display:flex;align-items:center;gap:10px;margin-top:6px;font-family:"JetBrains Mono",monospace;font-size:13px;word-break:break-all}
.dest .addr button{flex:none;font-family:"JetBrains Mono",monospace;font-size:11px;font-weight:700;color:var(--ink2);background:transparent;border:1px solid var(--bds);border-radius:8px;padding:4px 9px;cursor:pointer}
.dest .row{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:13px;color:var(--ink2)}
.dest .row b{color:var(--ink);font-family:"JetBrains Mono",monospace;font-weight:500;text-align:right;word-break:break-all}
.ps-status,.ps-wstatus{margin-top:12px;font-size:13px;line-height:1.5;color:var(--ink2)}
.ps-status:empty,.ps-wstatus:empty{display:none}
.ps-status.err,.ps-wstatus.err{color:var(--red)}
.ps-status.ok,.ps-wstatus.ok{color:var(--green)}
.mine-note{font-size:13px;color:var(--ink2);padding:6px 0 2px}
.ps-wbar{border:1px solid var(--bds);border-radius:12px;background:#0e0f11;padding:10px 12px;display:flex;align-items:center;gap:11px;margin-bottom:14px}
.ps-wlogo{width:30px;height:30px;border-radius:8px;flex-shrink:0;object-fit:cover;background:var(--s2)}
.ps-wmain{flex:1;min-width:0}
.ps-wname{font-size:13px;font-weight:700;display:flex;align-items:center;gap:7px}
.ps-wdot{width:7px;height:7px;border-radius:50%;background:var(--green);flex:none}
.ps-wlive{font-size:10.5px;color:var(--green);font-weight:600}
.ps-waddr2{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--ink2);background:transparent;border:0;padding:0;cursor:pointer}
.ps-waddr2 .cp{color:var(--ink3);font-size:10px}
.ps-wdis2{font-size:11.5px;font-weight:700;color:var(--ink3);border:1px solid var(--bds);background:transparent;border-radius:8px;padding:6px 10px;cursor:pointer}
.ps-pend{margin-top:12px;border:1px solid var(--gold-line);border-radius:12px;background:var(--gold-soft);padding:13px 14px;display:flex;gap:12px;align-items:flex-start}
.ps-spin{width:18px;height:18px;border:2px solid var(--bds);border-top-color:var(--gold);border-radius:50%;flex:none;animation:ps-spin .8s linear infinite;margin-top:2px}
.ps-pend-t{font-size:13px;font-weight:700}
.ps-pend-b{font-size:12px;color:var(--ink2);line-height:1.55;margin-top:4px}
.ps-pend-ref{font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--ink3);margin-top:7px;word-break:break-all}
.ps-rcpt{margin-top:12px;border:1px solid var(--green);border-radius:12px;padding:14px 15px}
.ps-rcpt-h{display:flex;align-items:center;gap:9px}
.ps-rcheck{width:22px;height:22px;border-radius:50%;background:var(--green);flex-shrink:0;display:grid;place-items:center}
.ps-rcheck::before{content:"\2713";color:#04120b;font-size:12px;font-weight:800}
.ps-rcpt-t{font-size:14px;font-weight:700}
.ps-rrows{margin-top:11px;border-top:1px solid var(--bd)}
.ps-rr{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--bd);font-size:12.5px}
.ps-rr .k{color:var(--ink3)}
.ps-rr .v{font-family:"JetBrains Mono",monospace;font-weight:600;text-align:right}
.ps-rr .v.g{color:var(--green)}
.ps-guard{color:var(--red)}
.dest .dline{margin-top:8px;font-size:13px;color:var(--ink2);word-break:break-all}
.dest .dline:empty{display:none}
.ps-rlink{margin-top:11px;display:flex;gap:8px}
.ps-rbtn{flex:1;text-align:center;font-size:12px;font-weight:700;border-radius:9px;padding:9px;border:1px solid var(--bds);color:var(--ink2);background:transparent;text-decoration:none;cursor:pointer;font-family:inherit}
.ps-rbtn.is-p{border-color:var(--gold-line);color:var(--gold)}
/* hive-1128-w1 F1 (the owner's rulings items 572-574): the wallet dialog (frontend/shared/presale-flows.js openWalletModal).
   Its rules lived only in presale.html's inline <style>; they are carried here as they stand there (deploy/ico-wallet-dialog-css-check.js
   D3). The dialog's frame is HiveUI's (/appjs/ui.js) and is dark in both of this page's themes, so the dialog pins the dark values
   of the tokens its rules read that light theme flips (this sheet's :root values), and defines --field (presale.html's value). */
.hui-box.ps-wm{--field:#0e0f11;--ink:#f8f7f3;--ink2:rgba(240,238,232,.78);--ink3:rgba(240,238,232,.55);--bds:rgba(255,255,255,.16);max-width:420px;border-top:3px solid var(--gold)}
.ps-wm-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.ps-wm-row{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:11px 13px;border:1px solid var(--bds);border-radius:12px;background:var(--field);color:var(--ink);font:600 14px/1.2 Inter,system-ui,sans-serif;text-align:left;text-decoration:none;cursor:pointer}
.ps-wm-row:hover:not([disabled]){border-color:var(--gold-line)}
.ps-wm-row[disabled]{opacity:.5;cursor:not-allowed}
.ps-wm-row.is-off{opacity:.55;font-weight:500}
.ps-wm-row img{width:24px;height:24px;border-radius:6px;flex:none}
.ps-wm-dot{width:24px;height:24px;border-radius:6px;flex:none;border:1px solid var(--bds)}
.ps-wm-name{flex:1 1 auto;min-width:0}
.ps-wm-tag{font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:600;letter-spacing:.04em;color:var(--ink3)}
.ps-wm-sub{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3);margin:16px 0 8px}
.ps-wm-note{font-size:13px;line-height:1.6;color:var(--ink2);margin:0 0 12px}
.ps-wm-status{min-height:1.3em;margin-top:12px;font-size:13px;line-height:1.5;color:var(--ink2)}
.ps-wm-status.is-busy{color:var(--ink)}
.ps-wm-status.is-error{color:var(--red)}
@keyframes ps-spin{to{transform:rotate(360deg)}}
/* C-1 (the owner's rulings items 358 and 369): the hero video and its poster cover the whole window width at every width, edge to
   edge, cropped (cover), never stretched or letterboxed. On phones too: the two unconditional rules below come after styles.css's
   phone contain (same weight, later sheet), so they win there as well. The design's styles.css stays byte for byte (deploy/presale-next-check.js
   N3); these rules override its contain (styles.css:4, :15) and so supersede its note that the video is never scaled (:20). The
   headline and the Contribute card (.hero-content) are not touched. Item 369 Q-3: 1181-1599 keeps the leftward 7% shift by widening
   the box to 107% (no band at the right edge); 761-1180 keeps the full-width 16:9 band at the top with the card below. */
.scene-video{object-fit:cover}
.scene-poster{background-size:cover}
@media (min-width:1181px) and (max-width:1599px){.scene-video-desktop{left:-7%;width:107%}.scene-poster{left:-7%;width:107%;background-position:center center}}
@media (min-width:761px) and (max-width:1180px){.scene-video-desktop,.scene-poster{bottom:auto;height:56.25vw}}
/* hive-1128-w1 (the owner's ruling, rulings item 592): THE BOTTOM OF /ico LINES UP WITH THE CONTENT ABOVE IT. The record
   (.ps-next-record), the link row (.links-inner) and the footer (.footer) take the column the title and the Raised/Contributors
   figures stand in: .hero-shell's side gutter and .hero-content's measure at each width (styles.css :3, :6, :13, :14, :15, :16),
   so their left edge and width are that content's, on desktop, tablet and phone. At 760 px and below the title and the figures
   (.story, at most 640 px, styles.css :6 and :14) are centred in .hero-content (:15), so there the measure is the story's 640
   (re-review 5 L-1). One vertical step spaces the three evenly (the record's top, after the hero, is two steps). Layout only: no
   text, no figure, no script. deploy/ico-bottom-layout-check.js. */
:root{--ps-gutter:clamp(24px,4.4vw,90px);--ps-measure:1820px;--ps-step:28px}
@media (max-width:1180px){:root{--ps-measure:670px}}
@media (max-width:1160px){:root{--ps-gutter:30px}}
@media (max-width:760px){:root{--ps-gutter:19px;--ps-step:22px;--ps-measure:640px}}
@media (max-width:420px){:root{--ps-gutter:15px}}
.ps-next-record,.links-inner,.footer{width:100%;max-width:calc(var(--ps-measure) + 2 * var(--ps-gutter));margin-left:auto;margin-right:auto;padding-left:var(--ps-gutter);padding-right:var(--ps-gutter)}
.ps-next-record{padding-top:calc(2 * var(--ps-step));padding-bottom:var(--ps-step)}
.links-inner,.footer{padding-top:var(--ps-step);padding-bottom:var(--ps-step)}
