
@font-face{font-family:'DM Sans';src:url('/ambassadors/assets/dm-sans.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/ambassadors/assets/dm-sans-medium.ttf') format('truetype');font-weight:500 800;font-display:swap}
:root{
  --ink:#2d2945;--muted:#625c7c;--line:#e6e2ef;--line-strong:#d8d3e4;
  --ground:#f8f5fc;--surface:#fff;--surface-tint:#f4f0fa;--surface-bright:#ece8f3;
  --teal:#4ecdc4;--teal-ink:#0f7c76;--teal-on:#10403d;--teal-wash:#e4f6f4;
  --purple:#7b68c8;--purple-ink:#5a48a8;--purple-wash:#efebfa;
  --amber-wash:#fbf0d8;--amber-ink:#7a5d22;--rose-wash:#f8e5ee;--rose-ink:#9c3f6f;
  --red-wash:#fae8ed;--red-ink:#9c485d;--red-line:#b8546c;
  --brand:linear-gradient(135deg,#4ecdc4 0%,#5b9bd8 55%,#7b68c8 100%);
  --r-sm:10px;--r-md:14px;--r-lg:18px;--r-pill:999px;
  --shadow-sm:0 1px 2px rgba(45,41,69,.05),0 2px 8px rgba(45,41,69,.04);--shadow-md:0 14px 36px rgba(45,41,69,.10);
  font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--ground);letter-spacing:0
}
*{box-sizing:border-box}
body{margin:0;font-size:.875rem;background:var(--ground);-webkit-font-smoothing:antialiased}
h1,h2,h3,p,dd,td{overflow-wrap:anywhere}
h1{font-size:1.625rem;line-height:1.2;font-weight:600;margin:0 0 8px}
h2{font-size:1.0625rem;line-height:1.3;font-weight:600;margin:0 0 14px}
h3{font-size:.9375rem;line-height:1.35;font-weight:600;margin:0}
p{line-height:1.65;margin:6px 0 16px}
a{color:var(--teal-ink);text-underline-offset:4px}
small,.muted{color:var(--muted);font-size:.75rem;line-height:1.6}
.lead{font-size:1rem;color:var(--muted);margin:0 0 20px}
.eyebrow{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px}
.eyebrow svg{width:14px;height:14px}
svg{width:18px;height:18px;flex-shrink:0}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit;color:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 18px;border:1px solid var(--teal);border-radius:var(--r-sm);background:var(--teal);color:var(--teal-on);font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s}
button:hover,.button:hover{box-shadow:0 4px 14px rgba(78,205,196,.28)}
button.secondary,.button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
button.secondary:hover,.button.secondary:hover{background:var(--surface-tint);box-shadow:none}
button.link{background:none;border-color:transparent;color:var(--teal-ink);padding-inline:8px}
button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:3px solid var(--purple);outline-offset:2px}
label{display:grid;gap:8px;font-size:.8125rem;font-weight:600;margin:0 0 18px;min-width:0}
input,textarea,select{width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);transition:border-color .15s,box-shadow .15s}
input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(78,205,196,.22);outline:none}
/* A native select drawn like the inputs, with a CSS caret (the CSP allows no data: images). */
select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-inline-end:40px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat}
[dir=rtl] select{background-position:15px 50%,20px 50%}
select:invalid{color:var(--muted)}select option{color:var(--ink)}
textarea{resize:vertical;min-height:130px;line-height:1.6}
.hint{font-weight:400;color:var(--muted);font-size:.75rem}
.hint.invalid{color:var(--red-ink);font-weight:500}textarea[aria-invalid="true"]{border-color:var(--red-ink)}
input[type=checkbox]{width:18px;min-height:18px;flex-shrink:0;accent-color:var(--teal-ink);margin-top:3px}
.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.6}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

/* Brand, shell, navigation */
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:1.1875rem;font-weight:600;line-height:1.1;min-width:0}
.brand img{width:34px;height:34px;object-fit:contain;border-radius:9px;flex-shrink:0}
.brand small{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:2px}
.shell{min-height:100dvh;display:grid;--side:248px;grid-template-columns:var(--side) minmax(0,1fr);background:linear-gradient(90deg,var(--surface) 0 calc(var(--side) - 1px),var(--line) calc(var(--side) - 1px) var(--side),transparent var(--side))}
/* Right to left: the sidebar's rule sits on the other side (the overrides below still win for public and in-app pages). */
[dir=rtl] .shell{background:linear-gradient(270deg,var(--surface) 0 calc(var(--side) - 1px),var(--line) calc(var(--side) - 1px) var(--side),transparent var(--side))}
.sidebar{padding:24px 16px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100dvh}
.sidebar .brand{padding:0 8px}
.sidebar nav{display:grid;gap:4px}
.sidebar nav a{display:flex;align-items:center;gap:12px;color:var(--muted);padding:11px 12px;text-decoration:none;font-weight:500;border-radius:var(--r-sm);transition:background .15s,color .15s}
.sidebar nav a:hover{background:var(--surface-tint);color:var(--ink)}
.sidebar nav a[aria-current=page]{color:var(--teal-ink);background:var(--teal-wash);font-weight:600}
.sidebar footer{margin-top:auto;display:flex;gap:14px;padding:0 8px;font-size:.75rem}
.sidebar footer a{color:var(--muted)}
.main{min-width:0}
.topbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:70px;padding:12px 36px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.topbar .eyebrow{margin:0}
.topbar-tools{display:flex;align-items:center;gap:12px;min-width:0}
.content{max-width:1140px;padding:32px 36px 72px;margin:0 auto}
.identity{display:flex;align-items:center;gap:10px;min-width:0}
.identity:empty{display:none}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:600;font-size:.9375rem;flex-shrink:0;overflow:hidden;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line)}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.lg{width:56px;height:56px;font-size:1.3rem}
.who{display:grid;min-width:0;line-height:1.3}
.who strong{font-weight:600;font-size:.8125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;box-shadow:var(--shadow-sm);min-width:0}
.stack>*+*{margin-top:18px}
.columns>section>.card{margin-top:0}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:12px 20px;margin-bottom:24px}
.page-head h1{margin:0}
.page-head p{margin:6px 0 0;color:var(--muted)}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px 16px;margin-bottom:16px}
.card-head h2,.card-head h3{margin:0}
.card-head>div{min-width:0}
.card-head small{display:block;margin-top:4px}
.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:24px;align-items:start}
.disc{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;background:var(--teal-wash);color:var(--teal-ink)}
.disc.live{background:var(--purple-wash);color:var(--purple-ink)}.disc.wait{background:var(--amber-wash);color:var(--amber-ink)}.disc.stop{background:var(--rose-wash);color:var(--rose-ink)}
.status,.chip{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;padding:5px 10px;border-radius:var(--r-pill);background:var(--surface-tint);color:var(--muted);white-space:nowrap}
.status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.status.ok,.chip.ok{background:var(--teal-wash);color:var(--teal-ink)}.status.wait,.status.pending{background:var(--amber-wash);color:var(--amber-ink)}
.status.live,.chip.live{background:var(--purple-wash);color:var(--purple-ink)}.status.stop{background:var(--rose-wash);color:var(--rose-ink)}
.chip svg{width:14px;height:14px}
.notice{display:flex;gap:12px;align-items:flex-start;background:var(--purple-wash);color:#43367f;border-radius:var(--r-md);padding:14px 16px;font-size:.8125rem;line-height:1.6;margin:0}
.notice svg{margin-top:2px}
#message:empty{display:none}
#message{margin:0 0 20px;border-radius:var(--r-md);padding:14px 16px;line-height:1.6}
.error,#message.error{color:var(--red-ink);background:var(--red-wash);border:1px solid #f0cbd6}
.empty{display:grid;justify-items:center;text-align:center;gap:6px;padding:36px 20px;color:var(--muted);line-height:1.6}
.empty .disc{width:52px;height:52px;border-radius:16px;margin-bottom:6px}
.empty h3{color:var(--ink)}.empty p{margin:0;max-width:34ch}
.loading{padding:40px 0;color:var(--muted)}
.empty h1{font-size:1.375rem;color:var(--ink);margin:4px 0 0}.empty .actions{justify-content:center;margin-top:12px}
.narrow-card{max-width:560px;margin:32px auto}.narrow-card.wide{max-width:760px;margin:0 auto}
.person-row{display:flex;align-items:center;gap:14px;min-width:0}.person-row h1{margin:0 0 2px}
.history{margin-top:28px}
.card details.terms{margin:0 0 16px;padding:12px 0 0}
.status-card .trail+p{margin-top:22px}
.status-card .notice{margin-top:4px}
#application-form>.notice{margin:0 0 20px}
/* Idea chips under "What would you like to bring": quiet, each adds a starter sentence. */
.ideas{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 20px}
.ideas .idea{min-height:36px;padding:6px 12px 6px 10px;gap:6px;border-radius:var(--r-pill);border-color:var(--line-strong);background:var(--surface);color:var(--ink);font-size:.8125rem;font-weight:500}
.ideas .idea:hover{background:var(--surface-tint);box-shadow:none}.ideas .idea svg{width:14px;height:14px;color:var(--teal-ink)}
#application-form textarea::placeholder{color:var(--muted);opacity:.8}

/* Overview */
.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;background:linear-gradient(135deg,#e7f7f5 0%,#eef0fb 60%,#f3ecfb 100%);border-color:#dfe9f1}
.hero .person{display:flex;align-items:center;gap:16px;min-width:0}
.hero h1{margin:0 0 6px}
.hero p{margin:0;color:var(--muted)}
.hero .chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 24px}
.metric{display:flex;align-items:center;gap:14px;padding:18px}
.metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.target{display:flex;gap:12px;align-items:flex-start}.target .disc{width:34px;height:34px;border-radius:10px;background:var(--surface)}.target svg{width:16px;height:16px}
.metric>div{min-width:0}
.metric>div>span{display:block;color:var(--muted);font-size:.75rem;line-height:1.4}
.metric strong{display:block;font-size:1.5rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:normal}
.metric strong small{font-size:.75rem;font-weight:600;color:var(--muted);margin-inline-end:3px}
.week .card-head{align-items:center}
.week-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:center}
.ring{position:relative;width:112px;height:112px;display:grid;place-items:center}
.ring svg{position:absolute;inset:0;width:112px;height:112px;transform:rotate(-90deg)}
.ring .track{stroke:var(--surface-bright)}.ring .value{stroke-linecap:round}
.ring .value.done{stroke:var(--teal)}
.ring b{display:block;font-size:1.375rem;font-weight:600;text-align:center;line-height:1}
.ring small{display:block;text-align:center;margin-top:4px;font-size:.6875rem}
.goals{display:grid;gap:14px;min-width:0}
.progress-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:.8125rem;margin-bottom:7px}
.progress-row span{display:flex;align-items:center;gap:6px;min-width:0}
.progress-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.progress-row svg{width:15px;height:15px;color:var(--teal-ink)}
progress{-webkit-appearance:none;appearance:none;display:block;width:100%;height:8px;border:0;border-radius:var(--r-pill);background:var(--surface-bright);overflow:hidden;margin:0}
progress::-webkit-progress-bar{background:var(--surface-bright);border-radius:var(--r-pill)}
progress::-webkit-progress-value{background:linear-gradient(90deg,#4ecdc4,#7b68c8);border-radius:var(--r-pill)}
progress::-moz-progress-bar{background:linear-gradient(90deg,#4ecdc4,#7b68c8);border-radius:var(--r-pill)}
progress.done::-webkit-progress-value{background:var(--teal)}progress.done::-moz-progress-bar{background:var(--teal)}
.week-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:.8125rem;color:var(--muted)}
.week-foot b{color:var(--ink)}
.side-list{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.side-list li{display:flex;gap:12px;align-items:flex-start;font-size:.8125rem;line-height:1.55}
.side-list .disc{width:34px;height:34px;border-radius:10px}
.side-list svg{width:16px;height:16px}

/* Offers */
.offer .reward-line{display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 14px;padding:18px 20px;margin:0 0 18px;border-radius:var(--r-md);background:linear-gradient(135deg,#e7f7f5,#efebfa)}
.amount{font-size:2rem;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.amount small{font-size:.875rem;font-weight:600;color:var(--muted);margin-inline-end:4px}
.meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:.8125rem;margin:0 0 18px}
.meta span{display:inline-flex;align-items:center;gap:6px}
.meta svg{width:15px;height:15px}
.targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 18px}
.target{border:1px solid var(--line);border-radius:var(--r-md);padding:14px;background:var(--surface-tint)}
.target strong{display:block;font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums}
.target span{display:block;color:var(--muted);font-size:.75rem;line-height:1.45;margin-top:2px}
details{border-top:1px solid var(--line);padding-top:12px}
summary{cursor:pointer;font-size:.8125rem;font-weight:600;line-height:1.7;color:var(--ink)}
details p,.terms p{white-space:pre-wrap;font-size:.8125rem;color:var(--muted)}
.offer-form{margin-top:18px;padding:16px;border-radius:var(--r-md);background:var(--amber-wash)}
.offer-form .check{margin:0 0 12px}.offer-form .actions{margin:0}

/* Payouts ledger */
.ledger{width:100%;border-collapse:collapse;text-align:start;font-size:.8125rem}
.ledger th{font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:0 12px 12px;border-bottom:1px solid var(--line)}
.ledger td{padding:16px 12px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:normal}
.ledger tr:last-child td{border-bottom:0}
.ledger .reward-cell{display:flex;align-items:center;gap:12px}
.ledger .reward-cell .disc{width:36px;height:36px;border-radius:10px}
.ledger small{display:block;margin-top:2px}
.ledger .num{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}

/* Application and sign-in */
.trail{list-style:none;margin:20px 0 4px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;counter-reset:step}
.trail li{position:relative;padding-top:28px;font-size:.75rem;color:var(--muted);line-height:1.5}
.trail li::before{content:'';position:absolute;top:0;inset-inline-start:0;width:18px;height:18px;border-radius:50%;background:var(--surface);border:2px solid var(--line-strong)}
.trail li::after{content:'';position:absolute;top:9px;inset-inline:24px 6px;height:2px;background:var(--line)}
.trail li:last-child::after{display:none}
.trail li strong{display:block;color:var(--ink);font-size:.8125rem;font-weight:600}
.trail li.done::before{background:var(--teal);border-color:var(--teal)}.trail li.done::after{background:var(--teal)}
.trail li.current::before{border-color:var(--purple);box-shadow:0 0 0 4px var(--purple-wash)}
.trail li.done.current::before{border-color:var(--teal);box-shadow:0 0 0 4px var(--teal-wash)}
.trail li.declined::before{background:var(--rose-ink);border-color:var(--rose-ink)}
.status-card .card-head{align-items:center}
.facts{display:grid;gap:0;margin:0}
.facts>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.8125rem}
.facts>div:last-child{border-bottom:0}
.facts dt{color:var(--muted)}.facts dd{margin:0;white-space:pre-wrap}
.auth{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,440px);grid-template-rows:auto 1fr;grid-template-areas:"intro form" "points form";gap:0 56px;align-items:start;max-width:1040px;margin:24px auto 0}
.auth .intro{grid-area:intro}.auth .form-card{grid-area:form}.auth .points{grid-area:points}
.auth h1{font-size:2.125rem;line-height:1.15}
.form-card h2{margin-bottom:6px}.form-card>p{margin-top:0}
.form-card form{margin-top:18px}
.form-card button[type=submit],.form-card .actions button:first-child{flex:1 1 auto}
.form-card .signin-switch{display:flex;align-items:center;gap:12px;margin:14px 0 0;color:var(--muted);font-size:.875rem}
.form-card .signin-switch::before,.form-card .signin-switch::after{content:"";flex:1;height:1px;background:var(--line)}
.form-card .signin-switch button.link{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;font-weight:600;border-radius:999px;padding:8px 12px}
.form-card .signin-switch button.link:hover{background:var(--surface-tint)}.form-card .signin-switch svg{width:16px;height:16px}
.form-card .signin-switch[hidden],.form-card .signin-switch button[hidden]{display:none}
.form-card .foot{margin:16px 0 0;font-size:.75rem;color:var(--muted)}
.points{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:18px}
.points li{display:flex;gap:14px;align-items:flex-start}
.points h3{margin-bottom:2px}.points p{margin:0;color:var(--muted);font-size:.8125rem}

/* Public (signed-out) chrome */
.public .shell{display:block}
.public .shell,.native .shell{background:none}
.public .sidebar{position:static;background:var(--surface);height:auto;flex-direction:row;align-items:center;padding:16px 32px;border-right:0;border-bottom:1px solid var(--line)}
.public .sidebar footer{display:none}
.public .content{padding-top:24px}

/* Native (in-app) chrome: the app supplies the header */
.native .sidebar .brand,.native .sidebar footer,.native .topbar{display:none}
.native .shell{display:block}
.native .sidebar{background:var(--surface);position:sticky;top:0;z-index:5;height:auto;padding:8px 16px;flex-direction:row;border-right:0;border-bottom:1px solid var(--line)}
.native .sidebar nav{display:flex;gap:6px;overflow-x:auto}
.native .sidebar nav a{white-space:nowrap}
.native .content{padding-top:20px}

/* Referral landing */
.referral{max-width:600px;margin:0 auto;padding:28px 20px 64px}
.referral>.brand{margin:0 0 28px}
.referral-card{padding:32px}
.referral-card h1{font-size:2.125rem;line-height:1.15}
.referral-card.unavailable{text-align:center;display:grid;justify-items:center}
.referral-card.unavailable .disc{width:56px;height:56px;border-radius:16px;margin-bottom:14px}
.reward{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:var(--r-md);padding:24px;margin:0 0 24px;background:var(--brand);color:#fff}
.reward strong{display:block;font-size:2.5rem;font-weight:600;line-height:1.05}
.reward span{display:block;font-size:.875rem;margin-top:6px;opacity:.92}
.reward b{font-size:1.25rem;padding:8px 16px;border-radius:var(--r-pill);background:rgba(255,255,255,.22)}
.steps{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px}
.steps li{display:flex;gap:14px;align-items:center;line-height:1.5}
.steps li b{display:block;font-size:.75rem;color:var(--muted);font-weight:600}
.code-row{display:flex;gap:10px;align-items:center}
.code-row input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.0625rem;letter-spacing:.06em;background:var(--surface-tint)}
.code-row button{white-space:nowrap;flex-shrink:0}
.stores{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.stores .button{flex:1 1 160px}
.referral .terms{margin-top:16px;padding:18px 24px}
.referral .actions .button{flex:1 1 auto}
#copy-status:empty{display:none}
.terms ul{padding-inline-start:20px;margin:12px 0}.terms li{margin:8px 0;line-height:1.6;font-size:.8125rem;color:var(--muted)}
.referral-page{background:radial-gradient(circle at 15% 0%,#e3f6f4 0,transparent 42%),radial-gradient(circle at 90% 10%,#efe9fb 0,transparent 40%),var(--ground)}

/* Revenue share earnings (2026-10-12): terms, balances, anonymous friends with a month strip, payouts */
.earn-hero+.card{margin-top:18px}
.earn-section{margin-top:28px}
.earn-section>h2,.section-head{margin:0 0 14px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}.section-head h2{margin:0}
.earn-columns{margin-top:28px}.earn-columns>div>.earn-section:first-child{margin-top:0}
.terms-card{border-color:#ddd5f3;background:linear-gradient(180deg,#f6f3fd 0,var(--surface) 160px)}
.terms-card .card-head{margin-bottom:12px}
.terms-lead{margin:0 0 14px;color:var(--muted);font-size:.8125rem}
.terms-scroll{max-height:300px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);padding:2px 18px;margin:0 0 16px}
.terms-scroll p{white-space:pre-wrap;font-size:.8125rem;line-height:1.7;color:var(--ink)}
.terms-card form .check{margin:0}.terms-card form .actions{margin-top:16px}
.earn-hero+.accepted-card{margin-top:18px}
.earn-hero+.switched-note{margin-top:18px}
.accepted-card.fresh{border-color:#bfe9e5;box-shadow:0 0 0 4px var(--teal-wash)}
.accepted-banner{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;padding:12px 14px;border-radius:var(--r-md);background:var(--teal-wash);color:var(--teal-on);font-size:.8125rem;line-height:1.55;font-weight:500}
.accepted-banner svg{margin-top:1px;color:var(--teal-ink)}
.accepted-card h3{margin:0}.accepted-card details{margin-top:16px}.accepted-card .terms-scroll{margin:12px 0 0}
.balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.balance{display:grid;gap:14px;align-content:start;background:linear-gradient(180deg,#eefaf8 0,var(--surface) 130px)}
.balance-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.balance-head small{display:inline-flex;align-items:center;gap:6px}.balance-head small svg{width:14px;height:14px}
.currency{font-size:.6875rem;font-weight:700;letter-spacing:.1em;padding:5px 10px;border-radius:var(--r-pill);background:var(--ink);color:#fff}
.balance-ready>span{display:block;color:var(--muted);font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
.balance-ready .amount{font-size:2.25rem}
.balance-note{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:.8125rem;line-height:1.5;color:var(--muted)}
.balance-note svg{width:16px;height:16px;margin-top:2px}.balance-note.ok{color:var(--teal-ink);font-weight:500}
.balance-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding-top:14px;border-top:1px solid var(--line)}
.balance-split dt{color:var(--muted);font-size:.75rem;line-height:1.4}.balance-split dt small{display:block;font-size:.6875rem;line-height:1.4}
.balance-split dd{margin:4px 0 0;font-weight:600;font-size:1rem;font-variant-numeric:tabular-nums}
.friend .card-head{align-items:center;margin-bottom:14px}
.friend-id{display:flex;align-items:center;gap:12px;min-width:0}
.friend-n{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex-shrink:0;background:var(--brand);color:#fff;font-weight:700;font-size:.9375rem;font-variant-numeric:tabular-nums;box-shadow:0 6px 16px rgba(91,155,216,.25)}
.friend-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.chip.test{background:var(--amber-wash);color:var(--amber-ink)}
.friend.is-test{border-style:dashed;border-color:#e3cf9c}
.friend .meta{margin:0 0 14px}
.friend-wait{display:flex;gap:12px;align-items:center;padding:14px;border-radius:var(--r-md);background:var(--surface-tint);font-size:.8125rem;line-height:1.55}
.friend-wait strong{display:block;font-weight:600}.friend-wait span{color:var(--muted)}.friend-wait .disc{width:36px;height:36px;border-radius:10px}
.strip-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 8px;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.months{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.month{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-content:start;min-width:0;min-height:88px;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.m-name{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:0 4px;font-size:.75rem;font-weight:600}
.m-name small{font-size:.625rem;font-weight:500;line-height:1}
.m-amount{font-size:.9375rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.m-status{display:flex;align-items:flex-start;gap:4px;font-size:.6875rem;font-weight:600;line-height:1.3}
.m-status>span{min-width:0;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
.m-annual{justify-self:start;font-size:.625rem;font-weight:600;padding:1px 6px;border-radius:var(--r-pill);background:rgba(255,255,255,.75);color:var(--muted)}
.t-ok{background:var(--teal-wash);border-color:#bfe9e5}.t-ok .m-status{color:var(--teal-ink)}
.t-wait{background:var(--amber-wash);border-color:#efd9a6}.t-wait .m-status{color:var(--amber-ink)}
.t-live{background:var(--purple-wash);border-color:#d9d1f3}.t-live .m-status{color:var(--purple-ink)}
.t-stop{background:var(--rose-wash);border-color:#efc9da}.t-stop .m-status{color:var(--rose-ink)}
.t-skip{background:var(--surface-tint)}.t-skip .m-status,.t-skip .m-amount{color:var(--muted)}
.t-future{background:none;border-style:dashed;border-color:var(--line-strong);min-height:0;gap:6px}.t-future .m-status,.t-future .m-amount,.t-future .m-name{color:var(--muted)}
.friend-notes{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line);display:grid;gap:8px}
.friend-notes li{display:flex;gap:8px;align-items:flex-start;font-size:.8125rem;line-height:1.5;color:var(--muted)}
.friend-notes svg{width:15px;height:15px;margin-top:2px}
.history-note{display:flex;gap:8px;align-items:center;margin:14px 0 0;font-size:.75rem;color:var(--muted)}.history-note svg{width:15px;height:15px}
.rs-ledger code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;padding:3px 8px;border-radius:6px;background:var(--surface-tint);overflow-wrap:anywhere}
.rs-ledger .ref-label{display:none}
.how h2{margin-bottom:16px}

/* Languages (2026-10-27): owner-authored English terms inside a translated page, and right-to-left pages */
.english-note{margin:10px 0 0;font-size:.75rem;font-style:italic;color:var(--muted)}
[dir=rtl] .lucide-log-out,[dir=rtl] .lucide-send{transform:scaleX(-1)}
[dir=rtl] .eyebrow,[dir=rtl] .ledger th,[dir=rtl] .strip-head,[dir=rtl] .balance-ready>span{letter-spacing:0}
bdi{unicode-bidi:isolate}

/* Tablet and phone */
/* ambfix 2026-10-28: test accounts, missed weeks, refund adjustments, payout details, the no-pass referral note. */
.notice.test-account{background:var(--amber-wash);color:var(--amber-ink);margin:0 0 18px}
.week.not-met{border-color:#efd3df}
.shortfall{display:flex;gap:8px;align-items:flex-start;margin:-4px 0 14px;padding:10px 12px;border-radius:var(--r-sm);background:var(--rose-wash);color:var(--rose-ink);font-size:.8125rem;line-height:1.5}
.shortfall svg{width:16px;height:16px;margin-top:2px;flex:none}
.balance-note.adjustment{color:var(--ink)}.balance-note.adjustment.minus{color:var(--rose-ink)}
.rs-ledger small.adjusted{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:2px}
.payout-details .card-head{margin-bottom:14px}
.pd-summary{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:var(--r-md);background:var(--surface-tint)}
.pd-summary strong{display:block;font-size:.9375rem}.pd-summary small{display:block;color:var(--muted);font-size:.8125rem;margin-top:2px}
.pd-summary>div{min-width:0}.pd-empty{margin:0}
.payout-details>.actions{margin-top:14px}
.pd-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.pd-form .actions{margin-top:4px}
.pd-saved{display:flex;gap:8px;align-items:center;margin:0 0 12px;color:var(--teal-ink);font-weight:500;font-size:.8125rem}
.pd-saved svg{width:16px;height:16px}
.pd-held{display:flex;gap:8px;align-items:center;margin:10px 0 0;color:var(--muted);font-size:.8125rem}.pd-held svg{width:16px;height:16px;flex:none}
.pd-code{margin:4px 0 14px;padding:14px;border-radius:var(--r-md);background:var(--surface-tint)}
.pd-code p{margin:0 0 10px;font-size:.875rem}.pd-code label{margin-bottom:6px}.pd-code input{letter-spacing:.2em;max-width:12ch}
.pd-code button.link{padding-inline:0}
.switched-off .empty{padding:28px 12px}
.referral-card .notice.no-pass{margin:18px 0 16px}
@media(max-width:1080px){.shell{--side:212px}.metric{flex-direction:column;align-items:flex-start;gap:10px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}.columns{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero>.button{justify-self:start}.content{padding:28px 28px 64px}.topbar{padding:12px 28px}}
@media(max-width:860px){.auth{grid-template-columns:1fr;grid-template-areas:"intro" "form" "points";gap:0}.auth .form-card{margin-top:8px}}
@media(max-width:760px){
  body:not(.public):not(.native) .shell{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand bar" "nav nav" "content content";grid-template-rows:auto auto 1fr;align-content:start;background:var(--surface)}
  body:not(.public):not(.native) .sidebar,body:not(.public):not(.native) .main{display:contents}
  body:not(.public):not(.native) .sidebar .brand{grid-area:brand;padding:12px 16px}
  body:not(.public):not(.native) .topbar{grid-area:bar;position:static;border:0;padding:12px 16px 12px 0;min-height:0;background:none;backdrop-filter:none}
  body:not(.public):not(.native) .sidebar nav{grid-area:nav;display:flex;gap:6px;overflow-x:auto;padding:4px 16px 12px;border-bottom:1px solid var(--line);scrollbar-width:none}
  body:not(.public):not(.native) .content{grid-area:content;background:var(--ground);width:100%}
  .sidebar footer,.topbar-title{display:none}
  .sidebar nav a{white-space:nowrap;padding:8px 14px;border-radius:var(--r-pill);border:1px solid var(--line);flex-shrink:0}
  .sidebar nav a[aria-current=page]{border-color:transparent}
  .sidebar nav svg{width:16px;height:16px}
  #logout{width:44px;padding:10px}
  #logout .label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .who{max-width:34vw}
  .content{padding:20px 16px 56px}
  .public .sidebar{padding:14px 16px}
  h1{font-size:1.4375rem}.auth h1,.referral-card h1{font-size:1.75rem}
  .card{padding:20px;border-radius:var(--r-md)}
  .hero{grid-template-columns:1fr}
  .metrics{gap:10px;margin:14px 0 20px}.metric{padding:14px;gap:10px;align-items:flex-start}.metric .disc{width:34px;height:34px;border-radius:10px}.metric strong{font-size:1.125rem;white-space:normal}
  .metrics.three{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics.three>:last-child{grid-column:1/-1}
  .hero .person{align-items:flex-start}.avatar.lg{width:48px;height:48px}.hero h1{font-size:1.3125rem}
  .week-body{grid-template-columns:1fr;justify-items:center}.goals{width:100%}
  .facts>div{grid-template-columns:1fr;gap:2px}
  .trail{grid-template-columns:1fr;gap:0}
  .trail li{padding:0;padding-block-end:18px;padding-inline-start:30px}.trail li::after{top:22px;bottom:2px;inset-inline:8px auto;width:2px;height:auto}
  .referral-card{padding:22px}.reward{padding:20px}.reward strong{font-size:2rem}
}
@media(max-width:900px){
  .ledger thead{display:none}.ledger,.ledger tbody{display:block}
  .ledger tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 0;border-bottom:1px solid var(--line)}
  .ledger tr:last-child{border-bottom:0}
  .ledger td{display:block;padding:0;border:0;min-width:0}
  .ledger td:nth-child(2){text-align:end}.ledger td:nth-child(3){grid-column:1}.ledger td:nth-child(4){text-align:end;color:var(--muted);font-size:.75rem}
}
@media(max-width:360px){.sidebar .brand small{display:none}.hero .person{flex-direction:column}.metrics,.metrics.three{grid-template-columns:1fr}.metrics.three>:last-child{grid-column:auto}.who{max-width:28vw}.code-row{flex-wrap:wrap}.code-row button{flex:1}}
@media(max-width:900px){.rs-ledger td:nth-child(3){grid-column:1/-1;text-align:start;font-size:.75rem;color:var(--muted)}.rs-ledger .ref-label{display:inline;margin-inline-end:8px}}
@media(max-width:760px){.months{grid-template-columns:repeat(4,minmax(0,1fr))}:lang(ta) .months{grid-template-columns:repeat(3,minmax(0,1fr))}.balance-ready .amount{font-size:1.875rem}.friend .card-head{align-items:flex-start}}
@media(max-width:400px){.month{padding:9px 6px}.m-status{font-size:.65rem}.friend .card-head{flex-direction:column}.friend-tags{justify-content:flex-start}}
@media(max-width:340px){.months{grid-template-columns:repeat(3,minmax(0,1fr))}.friend{padding:16px}.month{padding:8px 7px}.m-status{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
