/* Share and earn pages (/share, /p/<token>), from the approved partner sample. Fonts are the site's own (fonts.css). */
:root{
  --bg:#FAFAF7; --surface:#FFFFFF; --text:#1B2140; --muted:#565C78; --line:#E2E2DA;
  --ink:#1B2140; --yellow:#FFC61A; --pink:#F26D85; --blue:#8EC3F0; --sky:#DCEBF9;
  --tile:#ECECE4; --good:#1B7745; --bad:#B92A45; --header:#1B2140; --focus:#3D6FE0;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#11152B; --surface:#1B2140; --text:#FAFAF7; --muted:#AEB4CC; --line:#2F3662;
    --sky:#27315A; --tile:#262D55; --good:#74D6A0; --bad:#F7A0B0; --header:#0B0E20; --focus:#8EC3F0;
  }
}
:root[data-theme="dark"]{
  --bg:#11152B; --surface:#1B2140; --text:#FAFAF7; --muted:#AEB4CC; --line:#2F3662;
  --sky:#27315A; --tile:#262D55; --good:#74D6A0; --bad:#F7A0B0; --header:#0B0E20; --focus:#8EC3F0;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:env(safe-area-inset-top,0px);height:100%}
body{
  margin:0;min-height:100%;background:var(--bg);color:var(--text);
  font-family:'Lexend',Verdana,'Segoe UI',sans-serif;font-size:16px;line-height:1.5;
  -webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;
}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
h1,h2,h3,p,ul,ol{margin:0}
.gs{font-family:'Grandstander','Trebuchet MS','Comic Sans MS',sans-serif}
.seg{display:inline-flex;border:2px solid var(--text);border-radius:10px;overflow:hidden;background:var(--surface)}
.seg button{border:0;background:transparent;padding:8px 12px;font-size:13px;font-weight:500;min-height:40px}
.seg button + button{border-left:2px solid var(--text)}
.seg button[aria-pressed="true"]{background:var(--text);color:var(--bg);font-weight:700}
/* parent-facing pages */
.site{background:var(--yellow);padding:14px 16px;display:flex;justify-content:center}
.site img{display:block;max-width:100%;height:auto}
.page{max-width:520px;margin:0 auto;padding:26px 18px 110px}
.page h1{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:clamp(30px,8.4vw,40px);line-height:1.08;letter-spacing:-.01em}
.page h2{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:22px;line-height:1.15;margin:34px 0 12px}
.lede{font-size:17px;margin-top:12px;color:var(--text)}
.muted{color:var(--muted);font-size:14px}

.tag{width:min(100%,300px);margin:30px auto 30px;border:4px solid #1B2140;border-radius:18px;overflow:hidden;background:#fff;transform:rotate(-2deg);box-shadow:7px 7px 0 var(--yellow)}
.tag .band{background:var(--pink);color:#1B2140;font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:21px;line-height:1;padding:13px 14px 9px;text-align:center}
.tag .field{color:#1B2140;font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:clamp(26px,9vw,40px);line-height:1.1;padding:22px 10px 16px;text-align:center;letter-spacing:.03em;overflow-wrap:anywhere;min-height:86px}
.tag .field.ghost{color:#767A90}
.tag.sm{width:min(100%,240px);margin:22px auto 26px}
.tag.sm .field{font-size:clamp(24px,8vw,32px);min-height:70px;padding:18px 10px 12px}

label.lb{display:block;font-weight:700;margin-bottom:6px}
.in{width:100%;border:2px solid var(--text);border-radius:12px;background:var(--surface);padding:13px 14px;min-height:52px;font-size:17px}
.hint{font-size:14px;color:var(--muted);margin-top:6px;min-height:21px}
.btn{display:block;width:100%;border:2px solid #1B2140;background:var(--yellow);color:#1B2140;border-radius:12px;padding:13px 16px;font-weight:700;font-size:17px;min-height:54px;text-align:center}
.btn.alt{background:var(--surface);color:var(--text);border-color:var(--text)}
.btn.small{font-size:15px;min-height:46px;padding:9px 12px}
.btn + .btn{margin-top:10px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pair .btn + .btn{margin-top:0}
.stack-form > * + *{margin-top:14px}

.gets{list-style:none;padding:0;display:grid;gap:0;border:2px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.gets li{padding:13px 14px 13px 46px;position:relative;border-top:2px solid var(--line)}
.gets li:first-child{border-top:0}
.gets li::before{content:"";position:absolute;left:16px;top:18px;width:16px;height:16px;border-radius:50%;background:var(--yellow);border:3px solid var(--text)}
.gets b{font-weight:700}

.route{list-style:none;margin:0;padding:0;position:relative}
.stop{position:relative;padding:0 0 18px 40px}
.stop::before{content:"";position:absolute;left:2px;top:2px;width:22px;height:22px;border-radius:50%;background:var(--yellow);border:4px solid var(--text)}
.stop:last-child{padding-bottom:0}
.stop:last-child::before{background:var(--text);border-color:var(--yellow)}
.stop:not(:last-child)::after{content:"";position:absolute;left:11px;top:24px;bottom:-2px;width:4px;background:var(--text)}
.stop b{display:block;font-weight:700}
.stop span{color:var(--muted);font-size:15px}

.card{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:16px}
.card + .card{margin-top:12px}
.page .card h2.ch,.card h3{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:19px;line-height:1.2;margin:0 0 8px}
.card p + .pair,.card p + .btn,.card .copyline + .pair,.card .copyline + .btn{margin-top:12px}
.copyline{background:var(--sky);border-radius:10px;padding:11px 12px;font-weight:500;overflow-wrap:anywhere}
.copyline.big{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:24px;letter-spacing:.03em;text-align:center}
.caption{background:var(--bg);border:2px dashed var(--line);border-radius:10px;padding:12px;font-size:15px;overflow-wrap:anywhere}
.qr{display:flex;gap:14px;align-items:center}
.qr .box{flex:none;width:124px;height:124px;background:#fff;border:2px solid #1B2140;border-radius:10px;padding:6px;display:grid;place-items:center;color:#565C78;font-size:12px;text-align:center}
.qr .box svg{display:block;width:100%;height:100%}
.status{display:inline-block;font-size:14px;font-weight:700;border-radius:8px;padding:5px 10px;background:var(--tile)}
.status.ok{background:var(--yellow);color:#1B2140}
.status.wait{background:var(--sky)}
.textlink{background:none;border:0;padding:10px 0;font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:44px}

/* partner stats page */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.tile{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:12px 14px}
.tile .l{font-size:13px;color:var(--muted)}
.tile .v{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:30px;line-height:1.15}
.tile.lead{background:var(--yellow);border-color:#1B2140;color:#1B2140;grid-column:1 / -1}
.tile.lead .l{color:#1B2140}
.tile.lead .v{font-size:40px}
.li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:2px solid var(--line);font-size:15px}
.li:first-child{border-top:0}
.li .m{color:var(--muted);font-size:13px;display:block}
.li .r{flex:none;text-align:right;font-weight:700}
.li .r .m{font-weight:400}

.toast{position:fixed;left:16px;right:16px;bottom:0;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;pointer-events:none;z-index:9}
.toast div{background:#1B2140;color:#FAFAF7;border:2px solid var(--yellow);border-radius:12px;padding:12px 16px;font-size:14px;max-width:420px}
.toast[hidden]{display:none}
/* dashboard additions */
.stop .ct{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:26px;line-height:1.1;margin-right:8px;color:var(--text)}
.stop .nm{font-weight:500;display:block}
.bar{height:10px;background:var(--tile);border-radius:5px;margin:6px 0 0;overflow:hidden}
.bar i{display:block;height:100%;background:var(--yellow);border-radius:5px}
.days{display:flex;align-items:flex-end;gap:4px;height:96px;margin-top:6px}
.days i{flex:1;background:var(--blue);border-radius:4px 4px 0 0;min-height:4px;display:block}
.days i.now{background:var(--yellow);outline:2px solid var(--text);outline-offset:-2px}
.axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:6px}
.h2row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:34px 0 12px}
.h2row h2{margin:0}
.codeline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:2px solid var(--line)}
.codeline b{font-family:'Grandstander','Trebuchet MS',sans-serif;font-weight:900;font-size:22px;letter-spacing:.03em}
.codeline .btn{width:auto;flex:none}
details.more{margin-top:12px;border-top:2px solid var(--line);padding-top:4px}
details.more *,details.more *::before,details.more *::after{box-sizing:border-box}
details.more summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
details.more[open] summary{margin-bottom:8px}
.prog{height:16px;background:var(--tile);border-radius:8px;overflow:hidden;margin:10px 0 6px;display:flex;gap:3px}
.prog i{flex:1;display:block;background:var(--tile)}
.prog i.on{background:var(--yellow)}
.tile.lead .sub{font-size:14px;margin-top:4px}
.tile.lead .in{margin-top:8px;border-color:#1B2140;background:#fff;color:#1B2140}
.tile.lead .btn{margin-top:8px;background:#1B2140;color:#FAFAF7}
.tile.lead .lb{margin-top:12px;font-size:14px}
.tile.lead .textlink{padding:4px 0;min-height:36px;color:#1B2140}
.foot{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px}
.site a{display:block}
.foot a{color:var(--text);font-weight:700;min-height:44px;display:inline-flex;align-items:center}
.note-err{color:var(--bad);font-weight:500}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.faq dt{font-weight:700;margin-top:14px}
.faq dd{margin:4px 0 0;color:var(--muted)}
.pcheck{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin-top:10px}
.pcheck input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:#1B2140}
