@font-face{font-family:Gilroy;src:url('fonts/GilroyRegular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Gilroy;src:url('fonts/GilroySemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Gilroy;src:url('fonts/GilroyBold.woff2') format('woff2');font-weight:700;font-display:swap}
.dreamly-affiliate{--ink:#0d1534;--muted:#657087;--violet:#7c6af2;--hover:#654fe6;--line:#e8e9f1;--pale:#f4f2ff;--green:#23745c;margin:0;background:#fafafb;color:var(--ink);font-family:Gilroy,system-ui,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
.dreamly-affiliate *{box-sizing:border-box}.dreamly-affiliate a{color:inherit;text-decoration:none}.dreamly-affiliate button,.dreamly-affiliate input,.dreamly-affiliate select{font:inherit}.dreamly-affiliate button,.dreamly-affiliate a,.dreamly-affiliate input,.dreamly-affiliate select{touch-action:manipulation}.dreamly-affiliate button{cursor:pointer}.dreamly-affiliate button:disabled,.dreamly-affiliate [aria-disabled=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.dreamly-affiliate :focus-visible:not(input):not(select):not(textarea){outline:3px solid #a997ff;outline-offset:4px}.dreamly-affiliate h1,.dreamly-affiliate h2,.dreamly-affiliate h3,.dreamly-affiliate p{margin-top:0}.dreamly-affiliate h1{font-weight:700;letter-spacing:-.045em;line-height:1.08}.dreamly-affiliate h2{font-size:23px;line-height:1.2;letter-spacing:-.025em}.dreamly-affiliate h3{font-size:17px;line-height:1.3}.dreamly-affiliate svg{flex-shrink:0}.dreamly-affiliate .da-wrap{max-width:1200px;margin:auto;padding:0 32px}.dreamly-affiliate .da-header{border-bottom:1px solid var(--line);background:#fff}.dreamly-affiliate .da-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.dreamly-affiliate .da-brand{display:inline-flex;gap:10px;align-items:center;font-size:28px;letter-spacing:-1px;font-weight:700}.dreamly-affiliate .da-brand svg{width:34px;height:34px}.dreamly-affiliate .da-nav{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:600}.dreamly-affiliate .da-nav a:hover{color:var(--violet)}.dreamly-affiliate .da-btn{border:1px solid transparent;border-radius:13px;background:var(--violet);color:#fff;font-weight:600;padding:14px 21px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.2;text-align:center;transition:background .16s}.dreamly-affiliate .da-btn:hover{background:var(--hover)}.dreamly-affiliate .da-btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.dreamly-affiliate .da-btn.secondary:hover{background:var(--pale)}.dreamly-affiliate .da-btn.small{padding:10px 14px;min-height:40px;font-size:14px}.dreamly-affiliate .da-btn.text{background:none;color:var(--muted);padding:8px;min-height:40px}.dreamly-affiliate .da-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--violet);display:flex;align-items:center;gap:8px;margin-bottom:22px}.dreamly-affiliate .da-eyebrow:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.dreamly-affiliate .da-hero{display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:76px;padding-top:88px;padding-bottom:86px}.dreamly-affiliate .da-hero h1{font-size:clamp(40px,4.7vw,64px);max-width:650px;margin-bottom:24px}.dreamly-affiliate .da-hero p{font-size:18px;color:var(--muted);max-width:530px;margin-bottom:30px}.dreamly-affiliate .da-hero .da-fine{font-size:13px;margin:18px 0 0}.dreamly-affiliate .da-orbit{aspect-ratio:1/1;position:relative;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle,#eee8ff 0%,#f6f3ff 48%,transparent 69%)}.dreamly-affiliate .da-orbit:before,.dreamly-affiliate .da-orbit:after{content:'';position:absolute;inset:10%;border:1px solid #dcd4fc;border-radius:50%;transform:rotate(-22deg) scaleX(1.12)}.dreamly-affiliate .da-orbit:after{inset:0;transform:rotate(28deg) scaleX(.88);border-style:dashed;opacity:.6}.dreamly-affiliate .da-rate-card{z-index:1;background:#fff;border:1px solid #eee9fa;box-shadow:0 20px 80px #5b458216;transform:rotate(-6deg);border-radius:28px;width:280px;padding:28px;position:relative}.dreamly-affiliate .da-rate-card .da-brand{font-size:20px;letter-spacing:-.5px}.dreamly-affiliate .da-rate-card .da-brand svg{width:25px;height:25px}.dreamly-affiliate .da-big-rate{font-size:90px;line-height:1.12;letter-spacing:-7px;font-weight:600;margin-top:30px;color:var(--violet)}.dreamly-affiliate .da-rate-card p{font-size:13px;margin:14px 0 0;max-width:220px}.dreamly-affiliate .da-spark{position:absolute;color:var(--violet);font-size:42px;right:10px;top:14px;z-index:2}.dreamly-affiliate .da-spark.two{font-size:23px;left:5px;top:auto;bottom:30px}.dreamly-affiliate .da-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:44px 0 60px;border-top:1px solid var(--line)}.dreamly-affiliate .da-step-num{display:block;font-size:13px;font-weight:700;color:var(--violet);margin-bottom:17px}.dreamly-affiliate .da-steps p{color:var(--muted);font-size:15px;max-width:280px;margin:0}.dreamly-affiliate .da-terms{border:1px solid #e6e0ff;background:var(--pale);padding:36px;border-radius:22px;margin-bottom:56px}.dreamly-affiliate .da-terms p{color:#5f5878;font-size:15px;max-width:920px;margin-bottom:14px}.dreamly-affiliate .da-terms p:last-child{margin-bottom:0}.dreamly-affiliate .da-footer{border-top:1px solid var(--line);padding:25px 0;color:var(--muted);font-size:13px}.dreamly-affiliate .da-footer-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.dreamly-affiliate .da-demo{background:#efe9ff;color:#5941ad;font-size:12px;font-weight:700;text-align:center;padding:9px 16px;border-bottom:1px solid #dacef7}.dreamly-affiliate .da-main{padding-top:44px;padding-bottom:70px;min-height:65vh}.dreamly-affiliate .da-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:34px}.dreamly-affiliate .da-title-row h1{font-size:38px;margin-bottom:10px}.dreamly-affiliate .da-title-row p{color:var(--muted);font-size:15px;margin:0}.dreamly-affiliate .da-pill{display:inline-flex;align-items:center;gap:6px;border-radius:100px;padding:5px 11px;font-size:12px;font-weight:600;background:#edf6f2;color:var(--green);white-space:nowrap}.dreamly-affiliate .da-pill.muted{background:#f1eff7;color:#6e6680}.dreamly-affiliate .da-pill.warn{background:#fff4e1;color:#8e6416}.dreamly-affiliate .da-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:30px;overflow-x:auto}.dreamly-affiliate .da-tab{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-weight:600;padding:0 0 16px;white-space:nowrap}.dreamly-affiliate .da-tab.active{color:var(--violet);border-color:var(--violet)}.dreamly-affiliate .da-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.dreamly-affiliate .da-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;min-width:0}.dreamly-affiliate .da-metric-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px}.dreamly-affiliate .da-metric-top svg{color:#aaa1d9}.dreamly-affiliate .da-metric-value{font-size:36px;letter-spacing:-1.5px;font-weight:600;margin-top:20px;line-height:1}.dreamly-affiliate .da-grid-two{display:grid;grid-template-columns:1.45fr 1fr;gap:24px;margin-bottom:24px}.dreamly-affiliate .da-card-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:18px}.dreamly-affiliate .da-card-head h2{margin:0;font-size:19px}.dreamly-affiliate .da-card p{font-size:14px;color:var(--muted)}.dreamly-affiliate .da-link-box{display:flex;gap:10px;padding:8px;background:#f8f7fc;border:1px solid #edeaf6;border-radius:12px;margin-top:22px;align-items:center}.dreamly-affiliate .da-link-box input{width:100%;min-width:0;background:none;border:0;color:var(--muted);font-size:13px;padding:8px}.dreamly-affiliate .da-link-box .da-btn{white-space:nowrap}.dreamly-affiliate .da-conditions{display:grid;gap:14px;margin:0}.dreamly-affiliate .da-conditions div{display:flex;justify-content:space-between;gap:15px;font-size:13px}.dreamly-affiliate .da-conditions dt{color:var(--muted)}.dreamly-affiliate .da-conditions dd{margin:0;text-align:right;font-weight:600}.dreamly-affiliate .da-balance{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:20px 0;border-top:1px solid var(--line)}.dreamly-affiliate .da-balance-label{font-size:12px;color:var(--muted);min-height:36px}.dreamly-affiliate .da-balance-value{font-size:24px;font-weight:600;letter-spacing:-.7px;margin-top:8px}.dreamly-affiliate .da-fine{font-size:12px!important;line-height:1.6;color:var(--muted)}.dreamly-affiliate .da-note{border:1px solid #e6e0f9;background:#f7f5ff;color:#635582;padding:15px 17px;border-radius:12px;font-size:14px;margin:16px 0}.dreamly-affiliate .da-alert{background:#fff0f0;border:1px solid #f2d0d0;color:#954545;padding:15px 17px;border-radius:12px;font-size:14px;margin-bottom:20px}.dreamly-affiliate .da-toast{position:fixed;z-index:10;bottom:24px;left:50%;transform:translateX(-50%);border-radius:13px;box-shadow:0 6px 25px #1112;background:var(--ink);color:#fff;padding:15px 22px;max-width:calc(100vw - 32px);font-size:14px}.dreamly-affiliate .da-auth{max-width:510px;margin:62px auto 80px;padding:38px;background:#fff;border:1px solid var(--line);border-radius:24px}.dreamly-affiliate .da-auth h1{font-size:34px;margin:18px 0}.dreamly-affiliate .da-auth>p{color:var(--muted)}.dreamly-affiliate .da-auth-buttons{display:grid;gap:12px;margin-top:26px}.dreamly-affiliate .da-auth-buttons .da-btn{width:100%}.dreamly-affiliate .da-field{display:grid;gap:8px;margin-bottom:20px;font-size:14px;font-weight:600}.dreamly-affiliate .da-field input,.dreamly-affiliate .da-field select{min-width:0;width:100%;border:1px solid #dfe2ec;background:#fff;border-radius:11px;padding:12px;color:var(--ink)}.dreamly-affiliate .da-check{display:flex;gap:11px;align-items:flex-start;margin:18px 0 23px;font-size:14px;color:var(--muted)}.dreamly-affiliate .da-check input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:var(--violet)}.dreamly-affiliate .da-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.dreamly-affiliate .da-form-grid .wide{grid-column:1/-1}.dreamly-affiliate .da-table-wrap{overflow:auto}.dreamly-affiliate table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}.dreamly-affiliate th{text-align:left;padding:12px 15px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:600}.dreamly-affiliate td{padding:17px 15px;border-bottom:1px solid #f1f1f7}.dreamly-affiliate th:first-child,.dreamly-affiliate td:first-child{padding-left:0}.dreamly-affiliate th:last-child,.dreamly-affiliate td:last-child{text-align:right;padding-right:0}.dreamly-affiliate tr:last-child td{border-bottom:0}.dreamly-affiliate .da-empty{text-align:center;padding:35px 12px;color:var(--muted);font-size:14px}.dreamly-affiliate .da-section{margin-bottom:25px}.dreamly-affiliate details{background:#fff;border:1px solid var(--line);border-radius:15px;margin-bottom:14px;padding:20px}.dreamly-affiliate summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.dreamly-affiliate details[open]>summary{margin-bottom:25px}.dreamly-affiliate .da-admin-row{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:15px}.dreamly-affiliate .da-admin-row code{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.dreamly-affiliate .da-admin-actions{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.dreamly-affiliate .da-referral{max-width:600px;margin:50px auto 65px;text-align:center}.dreamly-affiliate .da-referral h1{font-size:44px;margin-top:28px}.dreamly-affiliate .da-referral .da-brand{font-size:34px}.dreamly-affiliate .da-referral>p{color:var(--muted)}.dreamly-affiliate .da-referral .da-auth-buttons{max-width:410px;margin-left:auto;margin-right:auto}.dreamly-affiliate .da-code{display:inline-block;font-family:monospace;letter-spacing:2px;padding:12px 17px;background:var(--pale);border-radius:10px;overflow-wrap:anywhere;max-width:100%}.dreamly-affiliate .da-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.dreamly-affiliate .da-spinner{display:block;margin:80px auto 22px;width:30px;height:30px;border:3px solid #e9e3ff;border-top-color:var(--violet);border-radius:50%;animation:da-spin .8s linear infinite}.dreamly-affiliate .da-loading{text-align:center;color:var(--muted);min-height:400px}@keyframes da-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.dreamly-affiliate *{animation:none!important;transition:none!important}}
@media(max-width:900px){.dreamly-affiliate .da-hero{gap:25px;padding-top:60px}.dreamly-affiliate .da-hero h1{font-size:47px}.dreamly-affiliate .da-rate-card{width:235px;padding:22px}.dreamly-affiliate .da-big-rate{font-size:74px}.dreamly-affiliate .da-grid-two{grid-template-columns:1fr 1fr}.dreamly-affiliate .da-nav{gap:14px}.dreamly-affiliate .da-nav .da-home-link{display:none}.dreamly-affiliate .da-link-box{flex-wrap:wrap}.dreamly-affiliate .da-link-box .da-btn{width:100%}.dreamly-affiliate .da-balance{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.dreamly-affiliate .da-wrap{padding:0 20px}.dreamly-affiliate .da-header-inner{min-height:74px;gap:10px}.dreamly-affiliate .da-brand{font-size:25px}.dreamly-affiliate .da-brand svg{width:29px;height:29px}.dreamly-affiliate .da-nav{gap:9px}.dreamly-affiliate .da-nav .da-signin-link{display:none}.dreamly-affiliate .da-hero{display:flex;flex-direction:column;gap:30px;padding-top:48px;padding-bottom:44px;align-items:stretch}.dreamly-affiliate .da-hero h1{font-size:43px;max-width:450px}.dreamly-affiliate .da-hero p{font-size:16px}.dreamly-affiliate .da-hero .da-btn{width:100%}.dreamly-affiliate .da-orbit{max-width:300px;width:100%;margin:auto;aspect-ratio:1.05/1}.dreamly-affiliate .da-rate-card{width:215px;padding:20px;border-radius:22px}.dreamly-affiliate .da-big-rate{font-size:65px;letter-spacing:-4px;margin-top:12px}.dreamly-affiliate .da-rate-card p{font-size:12px;margin:10px 0 0}.dreamly-affiliate .da-steps{grid-template-columns:1fr;gap:28px;padding:30px 0 38px}.dreamly-affiliate .da-steps p{max-width:none}.dreamly-affiliate .da-step-num{margin-bottom:8px}.dreamly-affiliate .da-steps h3{margin-bottom:8px}.dreamly-affiliate .da-terms{padding:24px;margin-bottom:35px}.dreamly-affiliate .da-main{padding-top:32px;padding-bottom:40px}.dreamly-affiliate .da-title-row{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:25px}.dreamly-affiliate .da-title-row h1{font-size:30px;overflow-wrap:anywhere}.dreamly-affiliate .da-metrics{grid-template-columns:1fr;gap:12px}.dreamly-affiliate .da-metrics .da-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px}.dreamly-affiliate .da-metric-top{font-size:14px}.dreamly-affiliate .da-metric-top svg{display:none}.dreamly-affiliate .da-metric-value{font-size:28px;margin:0}.dreamly-affiliate .da-grid-two{grid-template-columns:1fr;gap:16px}.dreamly-affiliate .da-card{padding:21px;border-radius:15px}.dreamly-affiliate .da-card-head{flex-wrap:wrap;gap:10px}.dreamly-affiliate .da-balance{gap:20px 12px}.dreamly-affiliate .da-balance-value{font-size:21px}.dreamly-affiliate .da-auth{padding:25px;margin-top:35px}.dreamly-affiliate .da-auth h1{font-size:30px}.dreamly-affiliate .da-form-grid{grid-template-columns:1fr}.dreamly-affiliate .da-form-grid .wide{grid-column:auto}.dreamly-affiliate .da-tabs{gap:23px;font-size:14px}.dreamly-affiliate .da-referral h1{font-size:37px}.dreamly-affiliate .da-admin-row{align-items:flex-start;flex-direction:column}.dreamly-affiliate .da-demo{font-size:10px}.dreamly-affiliate .da-fine{overflow-wrap:anywhere}}

/* Put the ambassador's payable commissions first. */
.dreamly-affiliate .da-dashboard .da-card,.dreamly-affiliate .da-dashboard .da-link-box,.dreamly-affiliate .da-dashboard .da-note{border:0}
.dreamly-affiliate .da-earnings{margin-bottom:24px;background:#fff}
.dreamly-affiliate .da-earnings .da-balance{grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));align-items:start;border-top:0}
.dreamly-affiliate .da-earnings .da-balance-value{font-size:28px;overflow-wrap:anywhere}
.dreamly-affiliate .da-earnings .da-balance-primary .da-balance-label{color:var(--violet);font-weight:600}
.dreamly-affiliate .da-earnings .da-balance-primary .da-balance-value{font-size:46px;line-height:1.1;color:var(--violet);font-weight:700;letter-spacing:-1.5px}
@media(max-width:900px){.dreamly-affiliate .da-earnings .da-balance{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dreamly-affiliate .da-earnings .da-balance-value{font-size:24px}.dreamly-affiliate .da-earnings .da-balance-primary .da-balance-value{font-size:36px;letter-spacing:-1px}}

/* Public affiliate landing: colors, Gilroy type and white pill CTA from the homepage.
   The route class keeps all dashboard, login and download styles independent. */
.dreamly-affiliate.da-landing {
    --violet: #8b62ff;
    --violet-light: #b79dff;
    --muted: #a6a8c8;
    --line: #41466f;
    --pale: #292c51;
    background: #0d1534;
    color: #fff;
    color-scheme: dark;
}
.dreamly-affiliate.da-landing .da-wrap { width: min(1240px, calc(100% - 88px)); max-width: none; padding-inline: 0; }
.dreamly-affiliate.da-landing .da-header { background: transparent; border: 0; }
.dreamly-affiliate.da-landing .da-header-inner { min-height: 104px; }
.dreamly-affiliate.da-landing .da-home-logo { display: block; width: 132px; height: auto; }
.dreamly-affiliate.da-landing .da-nav { gap: 24px; }
.dreamly-affiliate.da-landing .da-nav a:hover { color: var(--violet-light); }
.dreamly-affiliate.da-landing .da-btn,
.dreamly-affiliate.da-landing .da-signin-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 999px; background: #fff; color: #0d1534; font-weight: 700; transition: opacity 160ms ease; }
.dreamly-affiliate.da-landing .da-signin-link { min-height: 42px; padding: 10px 20px; }
.dreamly-affiliate.da-landing .da-btn:hover,
.dreamly-affiliate.da-landing .da-nav .da-signin-link:hover { background: #fff; color: #0d1534; opacity: .8; }
.dreamly-affiliate.da-landing .da-eyebrow { display: block; margin: 0 0 24px; color: var(--violet-light); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.dreamly-affiliate.da-landing .da-eyebrow::before { content: none; }
.dreamly-affiliate.da-landing .da-steps { gap: 24px; padding: 16px 0 80px; border: 0; }
.dreamly-affiliate.da-landing .da-steps article { min-width: 0; padding: 34px; border-radius: 34px; background: #1d1f3d; }
.dreamly-affiliate.da-landing .da-step-num { margin-bottom: 24px; color: var(--violet-light); font-size: 14px; }
.dreamly-affiliate.da-landing .da-steps h3 { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.dreamly-affiliate.da-landing .da-steps p { max-width: none; color: #c7c9df; font-size: 16px; line-height: 1.55; }
.dreamly-affiliate.da-landing .da-terms { margin: 0 auto 80px; padding: 56px; border: 0; border-radius: 34px; background: #1d1f3d; }
.dreamly-affiliate.da-landing .da-terms h2 { overflow-wrap: anywhere; margin-bottom: 28px; color: #fff; font-size: clamp(2.3rem, 3.7vw, 3.8rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.dreamly-affiliate.da-landing .da-terms p { color: #c7c9df; line-height: 1.65; }
.dreamly-affiliate.da-landing .da-terms strong { color: var(--violet-light); font-size: 18px; font-weight: 600; }
.dreamly-affiliate.da-landing .da-terms .da-fine { color: var(--muted); }
.dreamly-affiliate.da-landing .da-footer { border: 0; padding: 0 0 32px; color: var(--muted); }
@media (max-width: 900px) {
    .dreamly-affiliate.da-landing .da-steps { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
    .dreamly-affiliate.da-landing .da-steps article { padding: 28px; }
    .dreamly-affiliate.da-landing .da-steps h3 { margin-bottom: 14px; }
    .dreamly-affiliate.da-landing .da-step-num { margin-bottom: 18px; }
}
@media (max-width: 620px) {
    .dreamly-affiliate.da-landing .da-wrap { width: calc(100% - 44px); }
    .dreamly-affiliate.da-landing .da-header-inner { min-height: 88px; gap: 16px; }
    .dreamly-affiliate.da-landing .da-home-logo { width: 112px; }
    .dreamly-affiliate.da-landing .da-nav { gap: 12px; }
    .dreamly-affiliate.da-landing .da-signin-link { display: none; }
    .dreamly-affiliate.da-landing .da-eyebrow { font-size: .72rem; }
    .dreamly-affiliate.da-landing .da-steps article { border-radius: 28px; }
    .dreamly-affiliate.da-landing .da-terms { padding: 28px; margin-bottom: 44px; border-radius: 28px; }
    .dreamly-affiliate.da-landing .da-terms h2 { font-size: 36px; }
}

/* Signed-out portal uses the public homepage design; account screens remain light. */
.dreamly-affiliate.da-public-auth .da-auth { width: 100%; max-width: 510px; margin: 42px auto 74px; padding: 40px; border: 0; border-radius: 28px; background: #1d1f3d; }
.dreamly-affiliate.da-public-auth .da-login h1 { margin: 0 0 28px; color: #fff; font-size: 32px; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; text-align: center; }
.dreamly-affiliate.da-public-auth .da-auth-buttons { margin-top: 0; gap: 12px; }
.dreamly-affiliate.da-public-auth .da-auth-buttons .da-btn { min-height: 54px; width: 100%; border: 0; background: #fff; color: #0d1534; font-size: 15px; }
.dreamly-affiliate.da-public-auth .da-auth-buttons .da-btn:hover { background: #eeeef7; }
.dreamly-affiliate.da-public-auth .da-footer { padding: 22px 0 30px; }
.dreamly-affiliate.da-public-auth .da-note { border: 0; background: #292c51; color: #c7c9df; }
@media (max-width: 620px) {
    .dreamly-affiliate.da-public-auth .da-auth { margin: 24px auto 40px; padding: 28px; border-radius: 24px; }
    .dreamly-affiliate.da-public-auth .da-login h1 { font-size: 29px; }
}

/* Account confirmation from the mobile app belongs to the dark sign-in flow. */
.dreamly-affiliate.da-public-auth .da-web-session { width: calc(100% - 44px); }
.dreamly-affiliate.da-public-auth .da-web-session h1 { margin: 0 0 24px; color: #fff; font-size: 32px; line-height: 1.12; }
.dreamly-affiliate.da-public-auth .da-web-session > p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.dreamly-affiliate.da-public-auth .da-web-session strong { color: #fff; }
.dreamly-affiliate.da-public-auth .da-web-session .da-auth-buttons { margin-top: 28px; }
.dreamly-affiliate.da-public-auth .da-web-session .da-btn-primary { background: var(--violet); color: #fff; }
.dreamly-affiliate.da-public-auth .da-web-session .da-btn-primary:hover { background: #7d58e6; color: #fff; }
.dreamly-affiliate.da-public-auth .da-web-session .da-btn.secondary { background: #292c51; color: #fff; }
.dreamly-affiliate.da-public-auth .da-web-session .da-btn.secondary:hover { background: #333860; color: #fff; }

/* Recognizable provider logos; accessible button names stay in the translated text. */
.dreamly-affiliate .da-provider-logo { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.dreamly-affiliate .da-provider-logo-apple { width: 24px; height: 24px; flex-basis: 24px; }

/* The original Dreamly artwork, with a dark presentation of the white wordmark. */
.dreamly-affiliate .da-brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.dreamly-affiliate .da-brand-icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; }
.dreamly-affiliate .da-brand-wordmark { display: block; width: 116px; height: auto; filter: brightness(0); transform: translateY(4px); }

/* Light partner workspace: separate surfaces with space, not outlines. */
.dreamly-affiliate.da-light { --ink: #181a31; --muted: #7b8094; --violet: #8b62ff; --hover: #7d58e6; --pale: #f0edfc; background: #f6f7fb; color: var(--ink); color-scheme: light; }
.dreamly-affiliate:is(.da-light, .da-public-auth) #dreamly-affiliate-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.dreamly-affiliate:is(.da-light, .da-public-auth) #dreamly-affiliate-app > main { width: 100%; margin-block: 0; }
.dreamly-affiliate:is(.da-light, .da-public-auth) #dreamly-affiliate-app > .da-footer { margin-top: auto; }
.dreamly-affiliate.da-light :focus-visible { outline-color: var(--violet); }
.dreamly-affiliate.da-light input[type="checkbox"] { accent-color: var(--violet); }
.dreamly-affiliate.da-light .da-wrap { max-width: 1320px; }
.dreamly-affiliate.da-light :is(.da-header, .da-footer, .da-card, .da-auth, .da-note, .da-alert, .da-link-box, .da-language, details, .da-btn, .da-admin-actions, .da-tabs, .da-balance) { border: 0; }
.dreamly-affiliate.da-light .da-header { background: transparent; }
.dreamly-affiliate.da-light .da-header-inner { min-height: 100px; }
.dreamly-affiliate.da-light .da-nav { color: #555d72; font-size: 13px; gap: 24px; }
.dreamly-affiliate.da-light .da-footer { padding: 22px 0 30px; color: var(--muted); }
.dreamly-affiliate.da-light .da-btn { min-height: 44px; border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; }
.dreamly-affiliate.da-light .da-btn-primary { background: var(--violet); color: #fff; }
.dreamly-affiliate.da-light .da-btn-primary:hover { background: var(--hover); }
.dreamly-affiliate.da-light .da-btn.small { min-height: 40px; padding: 10px 14px; font-size: 13px; }
.dreamly-affiliate.da-light .da-btn.secondary { background: #f1f3f8; color: var(--ink); }
.dreamly-affiliate.da-light .da-btn.secondary:hover { background: #eae7f6; }
.dreamly-affiliate.da-light .da-auth { max-width: 510px; margin: 42px auto 74px; padding: 40px; border-radius: 28px; box-shadow: 0 12px 48px rgba(30, 34, 65, .035); }
.dreamly-affiliate.da-light .da-auth h1 { margin: 28px 0 18px; font-size: 32px; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.dreamly-affiliate.da-light .da-login h1 { margin-top: 0; text-align: center; }
.dreamly-affiliate.da-light .da-auth > p { font-size: 15px; line-height: 1.65; }
.dreamly-affiliate.da-light .da-auth-buttons { gap: 12px; margin-top: 28px; }
.dreamly-affiliate.da-light .da-auth-buttons .da-btn { min-height: 54px; font-size: 15px; }
.dreamly-affiliate.da-light .da-auth-buttons .da-btn.secondary { background: #f4f5f9; }
.dreamly-affiliate.da-light .da-auth-buttons .da-btn.secondary:hover { background: #edebf7; }
.dreamly-affiliate.da-light .da-note { background: #f4f1fd; color: #76668f; border-radius: 16px; }
.dreamly-affiliate.da-light .da-alert { border-radius: 16px; }
.dreamly-affiliate.da-light .da-field { color: #555d72; font-size: 13px; gap: 9px; }
.dreamly-affiliate.da-light .da-field input,
.dreamly-affiliate.da-light .da-field select { min-height: 48px; padding: 13px 15px; border: 0; border-radius: 13px; background: #f5f6fa; color: var(--ink); }
.dreamly-affiliate.da-light .da-account-form select[name="country"] {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23555d72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}
.dreamly-affiliate :is(input, select, textarea):focus { outline: none; box-shadow: none; }
.dreamly-affiliate.da-light .da-field input[readonly] { color: var(--muted); }
.dreamly-affiliate.da-light .da-check { color: #70778c; font-size: 13px; line-height: 1.6; }
.dreamly-affiliate.da-light .da-card { border-radius: 24px; padding: 28px; }
.dreamly-affiliate.da-light .da-card h2 { color: var(--ink); font-size: 19px; font-weight: 600; }
.dreamly-affiliate .da-account-form { display: flex; flex-direction: column; gap: 32px; }
.dreamly-affiliate .da-account-form .da-settings-section { min-width: 0; }
.dreamly-affiliate .da-account-form .da-settings-section + .da-settings-section { margin-top: 16px; }
.dreamly-affiliate .da-account-form .da-settings-section h2 { margin-bottom: 16px; }
.dreamly-affiliate .da-account-form .da-field:last-of-type { margin-bottom: 0; }
.dreamly-affiliate .da-account-form .da-field:last-of-type + .da-fine { margin-top: 16px; }
.dreamly-affiliate .da-account-form .da-form-actions { display: flex; justify-content: flex-start; }
.dreamly-affiliate.da-light .da-link-box { background: #f5f6fa; padding: 10px; border-radius: 14px; }
.dreamly-affiliate.da-light .da-pill { padding: 6px 12px; font-size: 11px; font-weight: 600; }
.dreamly-affiliate.da-light .da-pill.warn { background: #fff4e4; color: #9b763c; }
.dreamly-affiliate.da-light .da-pill.muted { background: #eeeef6; }

.dreamly-affiliate.da-workspace .da-main { padding-top: 18px; padding-bottom: 40px; }
.dreamly-affiliate .da-workspace-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: start; gap: 32px; min-height: 70vh; }
.dreamly-affiliate .da-workspace-content { min-width: 0; }
.dreamly-affiliate .da-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; min-height: 430px; padding: 26px 14px 18px; background: #fff; border-radius: 24px; }
.dreamly-affiliate .da-sidebar-label { margin: 0 14px 20px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: normal; }
.dreamly-affiliate .da-side-nav { display: grid; gap: 7px; }
.dreamly-affiliate .da-side-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 13px; background: transparent; color: #81879b; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; }
.dreamly-affiliate .da-side-link svg { flex: 0 0 20px; }
.dreamly-affiliate .da-side-link span { min-width: 0; }
.dreamly-affiliate .da-side-link:hover { background: #f7f6fc; color: var(--hover); }
.dreamly-affiliate .da-side-link.active { background: #eee9ff; color: var(--violet); }
.dreamly-affiliate .da-sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 46px; }
.dreamly-affiliate.da-workspace .da-title-row { min-height: 64px; margin-bottom: 28px; align-items: center; }
.dreamly-affiliate.da-workspace .da-title-row h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
.dreamly-affiliate.da-workspace .da-title-row p { margin-top: 9px; max-width: 620px; font-size: 14px; line-height: 1.55; }
.dreamly-affiliate .da-earnings { padding: 30px; }
.dreamly-affiliate .da-earnings .da-balance { padding-top: 10px; gap: 20px; }
.dreamly-affiliate .da-earnings .da-balance-label { min-height: 28px; }
.dreamly-affiliate .da-earnings .da-balance-primary .da-balance-value { font-size: 44px; }
.dreamly-affiliate .da-metric-top svg { box-sizing: content-box; padding: 10px; border-radius: 12px; background: #f1ecfe; color: var(--violet); }
.dreamly-affiliate .da-metrics .da-card:nth-child(2) .da-metric-top svg { background: #eaf7fa; color: #6dafbc; }
.dreamly-affiliate .da-metrics .da-card:nth-child(3) .da-metric-top svg { background: #fff1f4; color: #d49caf; }
.dreamly-affiliate .da-metric-value { margin-top: 18px; font-size: 32px; font-weight: 600; }
.dreamly-affiliate.da-light table { border-collapse: separate; border-spacing: 0 7px; }
.dreamly-affiliate.da-light :is(th, td) { border: 0; }
.dreamly-affiliate.da-light th { padding-top: 5px; padding-bottom: 5px; color: #999daf; }
.dreamly-affiliate.da-light td { background: #f7f8fb; }
.dreamly-affiliate.da-light td:first-child { border-radius: 12px 0 0 12px; padding-left: 14px; }
.dreamly-affiliate.da-light td:last-child { border-radius: 0 12px 12px 0; padding-right: 14px; }
.dreamly-affiliate .da-panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.dreamly-affiliate .da-panel-heading h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.dreamly-affiliate .da-panel-symbol { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: #ece7ff; color: var(--violet); }
.dreamly-affiliate.da-light details { padding: 23px; margin-bottom: 16px; border-radius: 22px; }
.dreamly-affiliate.da-light details[open] > summary { margin-bottom: 26px; }
.dreamly-affiliate .da-partner-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; }
.dreamly-affiliate .da-partner-summary::-webkit-details-marker { display: none; }
.dreamly-affiliate .da-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dreamly-affiliate .da-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; background: #eee9fb; color: var(--violet); font-size: 18px; font-weight: 600; }
.dreamly-affiliate .da-partner:nth-of-type(even) .da-avatar { background: #e9f4f5; color: #71a3ac; }
.dreamly-affiliate .da-person-name { display: grid; gap: 4px; min-width: 0; }
.dreamly-affiliate .da-person-name strong { font-size: 15px; font-weight: 600; }
.dreamly-affiliate .da-person-name small { color: #969bac; font-size: 12px; font-weight: 400; text-transform: uppercase; }
.dreamly-affiliate .da-partner-status { display: flex; align-items: center; gap: 22px; }
.dreamly-affiliate .da-expand { color: #989cad; font-size: 21px; font-weight: 400; transition: transform .16s; }
.dreamly-affiliate details[open] .da-expand { transform: rotate(45deg); }
.dreamly-affiliate .da-admin .da-empty { min-height: 210px; display: grid; place-items: center; padding: 44px 28px; background: #fff; border-radius: 24px; }
.dreamly-affiliate .da-admin .da-admin-actions { padding: 22px; margin-top: 20px; border-radius: 18px; background: #f7f8fb; }
.dreamly-affiliate .da-admin .da-admin-actions .da-field input { background: #fff; }

@media (max-width: 1100px) {
    .dreamly-affiliate .da-workspace-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
    .dreamly-affiliate .da-dashboard .da-grid-two { grid-template-columns: 1fr; }
    .dreamly-affiliate .da-dashboard .da-metrics { gap: 14px; }
    .dreamly-affiliate .da-dashboard .da-metrics .da-card { padding: 20px; }
    .dreamly-affiliate .da-metric-top { align-items: start; font-size: 13px; }
    .dreamly-affiliate .da-metric-top svg { padding: 7px; }
}
@media (max-width: 820px) {
    .dreamly-affiliate .da-workspace-layout { grid-template-columns: 1fr; gap: 24px; }
    .dreamly-affiliate .da-sidebar { position: static; min-height: 0; padding: 12px; border-radius: 20px; }
    .dreamly-affiliate .da-sidebar-label { display: none; }
    .dreamly-affiliate .da-side-nav { display: flex; gap: 6px; }
    .dreamly-affiliate .da-side-nav .da-side-link { flex: 1; justify-content: center; flex-direction: column; gap: 7px; min-width: 0; padding: 12px 6px; text-align: center; font-size: 12px; }
    .dreamly-affiliate .da-sidebar-bottom { display: flex; justify-content: space-between; padding-top: 8px; }
    .dreamly-affiliate .da-sidebar-bottom .da-side-link { width: auto; min-height: 36px; font-size: 12px; }
    .dreamly-affiliate .da-sidebar-bottom .da-side-link svg { width: 16px; height: 16px; flex-basis: 16px; }
    .dreamly-affiliate.da-workspace .da-title-row { min-height: 0; margin-bottom: 26px; }
    .dreamly-affiliate.da-workspace .da-title-row h1 { font-size: 28px; }
}
@media (max-width: 640px) {
    .dreamly-affiliate.da-light .da-header-inner { min-height: 84px; }
    .dreamly-affiliate .da-brand { gap: 8px; }
    .dreamly-affiliate .da-brand-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
    .dreamly-affiliate .da-brand-wordmark { width: 100px; }
    .dreamly-affiliate.da-light .da-auth { margin: 24px auto 40px; padding: 28px; border-radius: 24px; }
    .dreamly-affiliate.da-light .da-auth h1 { font-size: 29px; }
    .dreamly-affiliate.da-light .da-card { padding: 24px; border-radius: 22px; }
    .dreamly-affiliate.da-workspace .da-main { padding-top: 6px; }
    .dreamly-affiliate .da-side-nav .da-side-link { overflow-wrap: anywhere; }
    .dreamly-affiliate .da-earnings .da-balance-primary .da-balance-value { font-size: 36px; }
    .dreamly-affiliate.da-light details { padding: 20px; }
    .dreamly-affiliate .da-partner-summary { gap: 12px; }
    .dreamly-affiliate .da-partner-status { gap: 10px; }
    .dreamly-affiliate .da-person { gap: 10px; }
    .dreamly-affiliate .da-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .dreamly-affiliate .da-admin .da-admin-actions { padding: 16px; }
}

/* Kitiz-style language flags, shared by all public and signed-in affiliate headers. */
.dreamly-affiliate details.da-language-switcher{position:relative;z-index:30;flex-shrink:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
.dreamly-affiliate details.da-language-switcher>summary{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:38px;padding:4px 5px;margin:0;list-style:none;cursor:pointer;border-radius:6px;background:transparent}
.dreamly-affiliate details.da-language-switcher[open]>summary{margin:0}
.dreamly-affiliate .da-language-switcher>summary::-webkit-details-marker{display:none}
.dreamly-affiliate .da-language-switcher>summary::marker{content:''}
.dreamly-affiliate .da-language-options{position:absolute;z-index:30;top:calc(100% + 12px);right:0;display:grid;grid-template-columns:repeat(2,46px);gap:4px;width:max-content;padding:8px;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(24,26,49,.08),0 2px 6px rgba(24,26,49,.04)}
.dreamly-affiliate .da-language-switcher:not([open])>.da-language-options{display:none}
.dreamly-affiliate .da-language-switcher[open]>.da-language-options{animation:da-language-appear 160ms ease}
.dreamly-affiliate .da-language-options a{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:34px;padding:4px;border-radius:7px;background:transparent;transform:none}
.dreamly-affiliate .da-language-options a:hover,.dreamly-affiliate .da-language-options a:focus-visible{background:#f3efff;transform:none}
.dreamly-affiliate:is(.da-landing,.da-download) .da-language-options{background:#1d1f3d}
.dreamly-affiliate:is(.da-landing,.da-download) .da-language-options a:hover,
.dreamly-affiliate:is(.da-landing,.da-download) .da-language-options a:focus-visible{background:rgba(255,255,255,.06)}
.dreamly-affiliate .da-language-flag{display:block;width:22px;height:15px;border-radius:3px;object-fit:cover;outline:1px solid rgba(28,61,42,.14);outline-offset:-1px}
@keyframes da-language-appear{from{opacity:0}to{opacity:1}}
@media(max-width:640px){.dreamly-affiliate details.da-language-switcher>summary{min-width:44px;min-height:44px}.dreamly-affiliate .da-language-options a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.dreamly-affiliate .da-language-switcher[open]>.da-language-options{animation:none}}

.dreamly-affiliate .da-terms-link{text-decoration:underline;text-underline-offset:3px}

/* Programme reward: fixed EUR ceiling, localized formatting. */
.dreamly-affiliate.da-landing .da-terms a { text-decoration: underline; text-underline-offset: 3px; }

.dreamly-affiliate.da-light.da-workspace h2 { font-weight: 800; }

/* Admin-only, read-only Sandbox. No payout controls share this view. */
.dreamly-affiliate .da-environment-switch { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 5px; margin: 0 0 26px auto; border-radius: 14px; background: #eaeaf3; }
.dreamly-affiliate .da-environment-switch button { min-height: 40px; padding: 10px 19px; border: 0; border-radius: 10px; background: transparent; color: #71778e; font-size: 13px; font-weight: 600; transition: background .16s, color .16s; }
.dreamly-affiliate .da-environment-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 9px #20213b0b; }
.dreamly-affiliate .da-environment-switch button[data-admin-environment="sandbox"][aria-pressed="true"] { background: var(--violet); color: #fff; }
.dreamly-affiliate .da-sandbox-heading h2 { margin-bottom: 18px; font-weight: 800; }
.dreamly-affiliate .da-sandbox-notice { padding: 22px 24px; margin-bottom: 24px; border-radius: 20px; background: #eee9ff; }
.dreamly-affiliate .da-sandbox-notice .da-pill { background: #ded3ff; color: #6042b6; }
.dreamly-affiliate .da-sandbox-notice p { margin: 12px 0 0; max-width: 760px; color: #655b82; font-size: 14px; line-height: 1.7; }
.dreamly-affiliate .da-sandbox-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.dreamly-affiliate .da-sandbox-controls .da-field { flex: 1 1 260px; margin: 0; }
.dreamly-affiliate .da-sandbox-controls .da-btn { min-height: 48px; }
.dreamly-affiliate .da-sandbox-metrics .da-metric-value { font-size: clamp(25px, 2.6vw, 34px); }
.dreamly-affiliate .da-sandbox-metrics .da-card:last-child { background: #eee9ff; }
.dreamly-affiliate .da-sandbox-metrics .da-card:last-child .da-metric-value { color: #6842d2; }
.dreamly-affiliate .da-sandbox-loading { padding: 50px 24px; text-align: center; color: var(--muted); }
.dreamly-affiliate .da-sandbox-events h2 { font-size: 20px; margin-bottom: 10px; }
.dreamly-affiliate .da-sandbox-events table { min-width: 620px; white-space: normal; font-size: 13px; }
.dreamly-affiliate .da-sandbox-events th { vertical-align: bottom; }
.dreamly-affiliate .da-sandbox-events td { vertical-align: top; }
.dreamly-affiliate .da-sandbox-events td:first-child { width: 29%; }
.dreamly-affiliate .da-sandbox-events td:nth-child(2), .dreamly-affiliate .da-sandbox-events td:last-child { white-space: nowrap; }
.dreamly-affiliate .da-sandbox-events td strong { font-weight: 600; }
.dreamly-affiliate .da-sandbox-events td small { display: block; color: var(--muted); margin-top: 5px; }
.dreamly-affiliate .da-sandbox-events td code { display: block; font-size: 10px; color: #81879b; margin-top: 6px; overflow-wrap: anywhere; }
.dreamly-affiliate .da-sandbox-events td p { margin: 10px 0 0; font-size: 12px; line-height: 1.6; }
.dreamly-affiliate .da-sandbox-pagination { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .dreamly-affiliate .da-environment-switch { margin-left: 0; width: 100%; }
    .dreamly-affiliate .da-environment-switch button { flex: 1; }
    .dreamly-affiliate .da-sandbox-notice { padding: 20px; }
    .dreamly-affiliate .da-sandbox-controls .da-field { flex-basis: 100%; }
    .dreamly-affiliate .da-sandbox-controls .da-btn { flex: 1 1 auto; }
    .dreamly-affiliate .da-sandbox-metrics .da-metric-value { font-size: 26px; }
}
.dreamly-affiliate.da-light .da-sandbox-controls select {
    appearance: none; -webkit-appearance: none; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555d72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
@media (max-width: 640px) {
    .dreamly-affiliate .da-sandbox-events .da-table-wrap { overflow: visible; }
    .dreamly-affiliate .da-sandbox-events table,
    .dreamly-affiliate .da-sandbox-events tbody { display: block; width: 100%; min-width: 0; }
    .dreamly-affiliate .da-sandbox-events thead { display: none; }
    .dreamly-affiliate .da-sandbox-events tr { display: block; padding: 18px; margin-top: 14px; border-radius: 16px; background: #f7f8fb; }
    .dreamly-affiliate .da-sandbox-events td,
    .dreamly-affiliate .da-sandbox-events td:first-child,
    .dreamly-affiliate .da-sandbox-events td:last-child { display: block; width: auto; padding: 0; border-radius: 0; background: transparent; text-align: left; white-space: normal; overflow-wrap: anywhere; }
    .dreamly-affiliate .da-sandbox-events td + td { margin-top: 18px; }
    .dreamly-affiliate .da-sandbox-events td::before { content: attr(data-label); display: block; margin-bottom: 7px; color: #858a9d; font-size: 11px; font-weight: 600; }
    .dreamly-affiliate .da-sandbox-events td p { margin-top: 8px; }
    .dreamly-affiliate .da-sandbox-events td:last-child { color: #6842d2; font-size: 18px; font-weight: 600; }
}
/* Match the home hero's spacing; the affiliate header stays in document flow. */
.dreamly-affiliate.da-landing:not(.da-public-auth) .da-header-inner { width: min(1240px, calc(100% - 88px)); min-height: 104px; }
.dreamly-affiliate.da-landing .da-hero { --hero-header-height: 104px; display: grid; width: min(1240px, calc(100vw - 88px)); margin-inline: auto; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(40px, 4vw, 64px); min-height: calc(100svh - var(--hero-header-height)); padding: calc(clamp(128px, 9vw, 164px) - var(--hero-header-height)) 0 clamp(76px, 6vw, 108px); }
.dreamly-affiliate.da-landing .da-landing-copy { width: 100%; min-width: 0; margin: 0; padding: 0; container-type: inline-size; transform: translateX(-8px); text-align: left; align-self: center; }
.dreamly-affiliate.da-landing .da-hero .da-eyebrow { display: block; margin: 0 0 24px; padding: 0; color: var(--violet-light); font-size: .78rem; font-weight: 700; line-height: normal; letter-spacing: .12em; }
.dreamly-affiliate.da-landing .da-hero .da-eyebrow::before { content: none; }
.dreamly-affiliate.da-landing .da-hero h1 { max-width: 680px; margin: 0; font-size: clamp(3.8rem, 14cqi, 5.35rem); font-weight: 600; line-height: .96; letter-spacing: -.045em; overflow-wrap: break-word; }
.dreamly-affiliate.da-landing .da-hero h1 em { display: inline-block; max-width: 100%; margin-top: 0; color: var(--violet-light); font-style: normal; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.dreamly-affiliate.da-landing .da-hero .da-landing-intro { max-width: 570px; margin: 30px 0 0; color: #c7c9df; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.55; }
.dreamly-affiliate.da-landing .da-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.dreamly-affiliate.da-landing .da-hero-actions .da-btn { min-height: 56px; min-width: 212px; padding: 14px 20px 14px 26px; font-size: 14px; }
.dreamly-affiliate.da-landing .da-hero-actions .da-fine { margin: 0; padding-inline: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dreamly-affiliate.da-landing .da-hero-actions .da-fine a { text-decoration: underline; text-decoration-color: rgba(199, 201, 223, .35); text-underline-offset: 5px; transition: color 160ms ease; }
.dreamly-affiliate.da-landing .da-hero-actions .da-fine a:hover { color: #fff; }
.dreamly-affiliate.da-landing .da-hero-preview { position: relative; isolation: isolate; width: 100%; min-width: 0; min-height: clamp(640px, 46vw, 750px); align-self: center; }
.dreamly-affiliate.da-landing .da-hero-phone { position: absolute; top: 50%; right: 4%; width: min(58%, 375px); padding: 0; border: 0; background: none; box-shadow: none; transform: translateY(-50%) rotate(2deg); transform-origin: 50% 85%; }
.dreamly-affiliate.da-landing .da-hero-phone img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1688; border-radius: 42px; }
.dreamly-affiliate.da-landing .da-commission-card { position: absolute; z-index: 1; left: 10%; top: 58px; display: flex; flex-direction: column; width: 296px; margin: 0; padding: 26px 28px 28px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 23px; background: #fff; color: #23223b; box-shadow: 0 22px 58px rgba(0, 0, 0, .24), 0 3px 12px rgba(0, 0, 0, .06); transform: rotate(-2deg); transition: none; }
.dreamly-affiliate.da-landing .da-commission-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #000; font-size: 17px; font-weight: 600; }
.dreamly-affiliate.da-landing .da-commission-icon { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 10px; background: #f1ecff; color: #8055ed; }
.dreamly-affiliate.da-landing .da-commission-reward { min-width: 0; margin-top: 12px; }
.dreamly-affiliate.da-landing .da-reward-label { display: block; margin: 0 0 4px; color: #69677d; font-size: 12px; font-weight: 600; line-height: 1.3; }
.dreamly-affiliate.da-landing .da-commission-rate { display: block; margin: 0 0 10px; color: #7952e8; font-size: 54px; font-weight: 700; line-height: 1.05; letter-spacing: -.055em; white-space: nowrap; }
.dreamly-affiliate.da-landing .da-commission-card p { display: block; max-width: 24ch; margin: 0; color: #69677d; font-size: 13px; font-weight: 500; line-height: 1.45; }
@media (max-width: 1348px) {
  .dreamly-affiliate.da-landing:not(.da-public-auth) .da-header-inner { width: min(1160px, calc(100% - 40px)); }
  .dreamly-affiliate.da-landing .da-hero { width: min(1240px, calc(100vw - 144px)); grid-template-columns: 1fr; gap: 70px; min-height: auto; padding: calc(150px - var(--hero-header-height)) 0 90px; }
  .dreamly-affiliate.da-landing .da-landing-copy { max-width: 760px; margin-inline: auto; padding-bottom: 24px; container-type: normal; transform: none; text-align: center; }
  .dreamly-affiliate.da-landing .da-hero h1 { margin-inline: auto; font-size: clamp(4rem, 5.8vw, 6.15rem); }
  .dreamly-affiliate.da-landing .da-hero .da-landing-intro { margin-inline: auto; }
  .dreamly-affiliate.da-landing .da-hero-actions { justify-content: center; }
  .dreamly-affiliate.da-landing .da-hero-preview { width: min(100%, 680px); min-height: 805px; margin-inline: auto; }
}
@media (max-width: 1100px) {
  .dreamly-affiliate.da-landing .da-hero { width: min(1240px, calc(100vw - 88px)); }
}
@media (max-width: 900px) {
  .dreamly-affiliate.da-landing:not(.da-public-auth) .da-header-inner { min-height: 86px; }
  .dreamly-affiliate.da-landing .da-hero { --hero-header-height: 86px; }
}
@media (max-width: 780px) {
  .dreamly-affiliate.da-landing .da-hero { gap: 50px; padding-top: calc(132px - var(--hero-header-height)); padding-bottom: 70px; }
  .dreamly-affiliate.da-landing .da-hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.6rem); }
  .dreamly-affiliate.da-landing .da-hero-preview { min-height: 0; aspect-ratio: 4 / 5; }
  .dreamly-affiliate.da-landing .da-hero-phone { top: 0; width: 58%; transform: rotate(2deg); }
  .dreamly-affiliate.da-landing .da-commission-card { top: 30px; left: 6%; width: 270px; }
}
@media (max-width: 620px) {
  .dreamly-affiliate.da-landing:not(.da-public-auth) .da-header-inner { width: calc(100% - 30px); }
}
@media (max-width: 520px) {
  .dreamly-affiliate.da-landing .da-hero { width: min(1240px, calc(100vw - 44px)); }
  .dreamly-affiliate.da-landing .da-landing-copy { padding-bottom: 0; text-align: left; }
  .dreamly-affiliate.da-landing .da-hero .da-eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .dreamly-affiliate.da-landing .da-hero h1, .dreamly-affiliate.da-landing .da-hero h1 em { max-width: 100%; }
  .dreamly-affiliate.da-landing .da-hero h1 em { display: block; }
  .dreamly-affiliate.da-landing .da-hero-actions { flex-direction: column; align-items: stretch; }
  .dreamly-affiliate.da-landing .da-hero-actions .da-btn { width: 100%; min-width: 0; }
  .dreamly-affiliate.da-landing .da-hero-actions .da-fine { text-align: center; padding: 0; }
  .dreamly-affiliate.da-landing .da-hero-preview { width: min(86vw, 340px); aspect-ratio: 780 / 1688; }
  .dreamly-affiliate.da-landing .da-hero-phone { right: 0; width: 100%; }
  .dreamly-affiliate.da-landing .da-hero-phone img { border-radius: 42px; }
  .dreamly-affiliate.da-landing .da-commission-card { top: 10px; left: 0; width: 244px; padding: 20px 22px; border-radius: 20px; }
  .dreamly-affiliate.da-landing .da-commission-rate { font-size: 46px; }
}

/* Larger type and breathing room in the ambassador dashboard. */
.dreamly-affiliate .da-dashboard .da-card,
.dreamly-affiliate .da-dashboard .da-metrics .da-card { padding: 32px; }
.dreamly-affiliate .da-dashboard .da-card h2 { font-size: 22px; line-height: 1.35; }
.dreamly-affiliate .da-dashboard .da-card-head { margin-bottom: 24px; gap: 18px; }
.dreamly-affiliate .da-dashboard .da-card p,
.dreamly-affiliate .da-dashboard .da-metric-top,
.dreamly-affiliate .da-dashboard .da-empty { font-size: 16px; line-height: 1.65; }
.dreamly-affiliate .da-dashboard .da-metrics { gap: 24px; margin-bottom: 32px; }
.dreamly-affiliate .da-dashboard .da-metric-value { font-size: 36px; margin-top: 24px; }
.dreamly-affiliate .da-dashboard .da-grid-two { gap: 28px; margin-bottom: 32px; }
.dreamly-affiliate .da-dashboard .da-conditions { gap: 17px; }
.dreamly-affiliate .da-dashboard .da-conditions div { font-size: 16px; line-height: 1.55; gap: 20px; }
.dreamly-affiliate .da-dashboard .da-conditions dt,
.dreamly-affiliate .da-dashboard .da-conditions dd { min-width: 0; overflow-wrap: anywhere; }
.dreamly-affiliate .da-dashboard .da-btn,
.dreamly-affiliate .da-dashboard .da-btn.small { font-size: 16px; min-height: 48px; padding: 14px 20px; }
.dreamly-affiliate .da-dashboard .da-link-box { padding: 12px; gap: 14px; margin-top: 28px; }
.dreamly-affiliate .da-dashboard .da-link-box input { font-size: 15px; padding: 10px; }
.dreamly-affiliate .da-dashboard .da-pill { font-size: 13px; padding: 8px 14px; }
.dreamly-affiliate .da-dashboard .da-fine { font-size: 14px !important; line-height: 1.75; }
.dreamly-affiliate .da-dashboard .da-balance { gap: 28px; padding-block: 20px; }
.dreamly-affiliate .da-dashboard .da-balance-label { font-size: 15px; line-height: 1.55; min-height: 40px; }
.dreamly-affiliate .da-dashboard .da-balance-value { font-size: 28px; margin-top: 12px; }
.dreamly-affiliate .da-dashboard .da-sidebar { padding: 30px 16px 24px; }
.dreamly-affiliate .da-dashboard .da-sidebar-label { font-size: 15px; margin-bottom: 26px; }
.dreamly-affiliate .da-dashboard .da-side-nav { gap: 12px; }
.dreamly-affiliate .da-dashboard .da-side-link { font-size: 15px; min-height: 54px; padding: 14px; }
.dreamly-affiliate .da-dashboard .da-field { font-size: 16px; line-height: 1.55; gap: 12px; margin-bottom: 26px; }
.dreamly-affiliate .da-dashboard .da-field input,
.dreamly-affiliate .da-dashboard .da-field select { font-size: 16px; min-height: 54px; padding-block: 15px; }
.dreamly-affiliate .da-dashboard .da-settings-section h2 { margin-bottom: 22px; }
.dreamly-affiliate .da-dashboard .da-account-form { gap: 36px; }
.dreamly-affiliate .da-dashboard .da-section { margin-bottom: 32px; }
.dreamly-affiliate .da-dashboard table { font-size: 16px; }
.dreamly-affiliate .da-dashboard th { font-size: 14px; padding-block: 12px; }
.dreamly-affiliate .da-dashboard td { padding-block: 20px; }
@media (max-width: 820px) {
    .dreamly-affiliate .da-dashboard { grid-template-columns: minmax(0, 1fr); }
    .dreamly-affiliate .da-dashboard .da-sidebar { padding: 16px; min-width: 0; }
    .dreamly-affiliate .da-dashboard .da-sidebar-bottom { flex-wrap: wrap; gap: 8px; }
    .dreamly-affiliate .da-dashboard .da-side-nav { gap: 8px; }
    .dreamly-affiliate .da-dashboard .da-side-nav .da-side-link { font-size: 14px; padding: 14px 6px; gap: 10px; }
    .dreamly-affiliate .da-dashboard .da-sidebar-bottom .da-side-link { font-size: 14px; }
}
@media (max-width: 640px) {
    .dreamly-affiliate .da-dashboard .da-card,
    .dreamly-affiliate .da-dashboard .da-metrics .da-card { padding: 26px; }
    .dreamly-affiliate .da-dashboard .da-card h2 { font-size: 21px; }
    .dreamly-affiliate .da-dashboard .da-metrics { gap: 16px; margin-bottom: 26px; }
    .dreamly-affiliate .da-dashboard .da-metric-value { font-size: 32px; margin-top: 0; }
    .dreamly-affiliate .da-dashboard .da-grid-two { gap: 24px; margin-bottom: 26px; }
    .dreamly-affiliate .da-dashboard .da-conditions div { gap: 16px; }
    .dreamly-affiliate .da-dashboard .da-balance { gap: 24px 16px; }
    .dreamly-affiliate .da-dashboard .da-balance-value { font-size: 26px; }
}

/* Improve readability of secondary dashboard copy with the bundled semi-bold face. */
.dreamly-affiliate .da-dashboard { --muted: #646b80; }
.dreamly-affiliate .da-dashboard .da-card p,
.dreamly-affiliate .da-dashboard .da-metric-top,
.dreamly-affiliate .da-dashboard .da-conditions dt,
.dreamly-affiliate .da-dashboard .da-balance-label,
.dreamly-affiliate .da-dashboard .da-empty,
.dreamly-affiliate .da-dashboard .da-link-box input,
.dreamly-affiliate .da-dashboard .da-fine { font-weight: 600; }
.dreamly-affiliate .da-dashboard th,
.dreamly-affiliate .da-dashboard .da-side-link:not(.active):not(:hover) { color: var(--muted); }

/* Account sign out sits beside the Profile heading. */
.dreamly-affiliate .da-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dreamly-affiliate .da-account-form .da-profile-heading h2 { margin: 0; }
.dreamly-affiliate .da-account-signout { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: #646b80; cursor: pointer; }
.dreamly-affiliate .da-account-signout:hover { background: #eee9ff; color: var(--hover); }
.dreamly-affiliate .da-account-signout:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.dreamly-affiliate .da-account-signout:disabled { opacity: .5; cursor: default; }

/* Keep details open during its exit animation, then remove it from navigation. */
.dreamly-affiliate .da-language-switcher[open].da-language-closing > .da-language-options { animation: da-language-disappear 160ms ease forwards; pointer-events: none; }
@keyframes da-language-disappear { from { opacity: 1; } to { opacity: 0; } }
@media(prefers-reduced-motion: reduce) { .dreamly-affiliate .da-language-switcher[open].da-language-closing > .da-language-options { animation: none; } }

/* Phone dashboard typography: add 2px to each existing text size. */
@media (max-width: 640px) {
    .dreamly-affiliate:has(.da-dashboard) { font-size: 18px; }
    .dreamly-affiliate:has(.da-dashboard) .da-nav { font-size: 15px; }
    .dreamly-affiliate:has(.da-dashboard) .da-footer { font-size: 15px; }
    .dreamly-affiliate:has(.da-dashboard) .da-toast { font-size: 16px; }
    .dreamly-affiliate .da-dashboard .da-card h2 { font-size: 23px; }
    .dreamly-affiliate .da-dashboard h3 { font-size: 19px; }
    .dreamly-affiliate .da-dashboard .da-title-row h1 { font-size: 30px; }
    .dreamly-affiliate .da-dashboard .da-title-row p { font-size: 16px; }
    .dreamly-affiliate .da-dashboard .da-card p,
    .dreamly-affiliate .da-dashboard .da-metric-top,
    .dreamly-affiliate .da-dashboard .da-empty,
    .dreamly-affiliate .da-dashboard .da-conditions div,
    .dreamly-affiliate .da-dashboard .da-btn,
    .dreamly-affiliate .da-dashboard .da-btn.small,
    .dreamly-affiliate .da-dashboard .da-field,
    .dreamly-affiliate .da-dashboard .da-field input,
    .dreamly-affiliate .da-dashboard .da-field select,
    .dreamly-affiliate .da-dashboard table { font-size: 18px; }
    .dreamly-affiliate .da-dashboard .da-metric-value { font-size: 34px; }
    .dreamly-affiliate .da-dashboard .da-link-box input { font-size: 17px; }
    .dreamly-affiliate .da-dashboard .da-pill { font-size: 15px; }
    .dreamly-affiliate .da-dashboard .da-fine { font-size: 16px !important; }
    .dreamly-affiliate .da-dashboard .da-balance-label,
    .dreamly-affiliate .da-dashboard .da-sidebar-label { font-size: 17px; }
    .dreamly-affiliate .da-dashboard .da-balance-value { font-size: 28px; }
    .dreamly-affiliate .da-dashboard .da-balance-primary .da-balance-value { font-size: 38px; }
    .dreamly-affiliate .da-dashboard .da-side-nav .da-side-link,
    .dreamly-affiliate .da-dashboard .da-sidebar-bottom .da-side-link,
    .dreamly-affiliate .da-dashboard th,
    .dreamly-affiliate .da-dashboard .da-note,
    .dreamly-affiliate .da-dashboard .da-alert { font-size: 16px; }
    .dreamly-affiliate .da-dashboard .da-check { font-size: 15px; }
}

@media (max-width: 640px) {
    .dreamly-affiliate .da-dashboard .da-conditions div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Per-partner controls retain existing earnings and expose reversible archiving. */
.dreamly-affiliate .da-partner-filters { display: flex; gap: 8px; margin-bottom: 24px; }
.dreamly-affiliate .da-partner-filters button { padding: 12px 20px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #646b80; font-size: 15px; font-weight: 600; }
.dreamly-affiliate .da-partner-filters button.active { background: #eee9ff; color: var(--violet); }
.dreamly-affiliate .da-partner form[data-form="policy"] .da-field { font-size: 16px; line-height: 1.5; gap: 12px; }
.dreamly-affiliate .da-commission-input { display: flex; align-items: center; max-width: 240px; border-radius: 13px; background: #f5f6fa; padding-right: 18px; font-size: 18px; }
.dreamly-affiliate .da-commission-input input { font-size: 18px; min-height: 52px; }
.dreamly-affiliate .da-partner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #eeedf5; }
.dreamly-affiliate .da-partner .da-btn { font-size: 15px; }
.dreamly-affiliate .da-btn.da-btn-danger { background: #fff0f0; color: #a53845; }
.dreamly-affiliate .da-btn.da-btn-danger:hover { background: #ffe1e4; }
.dreamly-affiliate .da-partner-confirm { padding: 20px; margin-top: 20px; border-radius: 16px; background: #fff5f5; color: #853742; font-size: 15px; line-height: 1.6; }
.dreamly-affiliate .da-partner-confirm .da-partner-actions { margin-top: 16px; padding-top: 0; border: 0; }
.dreamly-affiliate .da-partner-confirm p { margin-bottom: 0; }
.dreamly-affiliate .da-partner-payout-note { margin-top: 24px; margin-bottom: 0; }
@media (max-width: 640px) { .dreamly-affiliate .da-partner-actions .da-btn { width: 100%; } }

.dreamly-affiliate .da-partner .da-fine { font-size: 14px !important; font-weight: 600; color: #646b80; }
.dreamly-affiliate .da-partner h3 { font-size: 20px; }

/* Account approval holds earnings independently from referral-link availability. */
.dreamly-affiliate .da-partner-filters { flex-wrap: wrap; }
.dreamly-affiliate .da-partner-approval { margin: 0 0 28px; padding: 24px; border-radius: 18px; background: #f4f0ff; }
.dreamly-affiliate .da-partner-approval p { margin: 0 0 18px; color: #646b80; line-height: 1.6; }
@media (max-width: 640px) {
    .dreamly-affiliate .da-partner-filters { gap: 6px; }
    .dreamly-affiliate .da-partner-filters button { padding: 12px 14px; font-size: 16px; }
    .dreamly-affiliate .da-partner-approval { padding: 20px; }
    .dreamly-affiliate .da-partner-approval .da-btn { width: 100%; font-size: 17px; }
}

/* Keep the admin environment selector between the brand and header navigation. */
.dreamly-affiliate .da-admin-header > .da-environment-switch { margin: 0 auto; flex-shrink: 0; }
@media (max-width: 900px) {
    .dreamly-affiliate .da-admin-header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
    .dreamly-affiliate .da-admin-header > .da-nav { margin-left: auto; }
    .dreamly-affiliate .da-admin-header > .da-environment-switch { order: 3; width: 100%; margin: 8px 0 0; }
    .dreamly-affiliate .da-admin-header > .da-environment-switch button { flex: 1; }
}

/* Give admin navigation labels 32px more horizontal room on desktop. */
@media (min-width: 821px) {
    .dreamly-affiliate .da-admin.da-workspace-layout { grid-template-columns: 222px minmax(0, 1fr); }
}
@media (min-width: 1101px) {
    .dreamly-affiliate .da-admin.da-workspace-layout { grid-template-columns: 248px minmax(0, 1fr); }
}

/* A quiet, compact environment control in the admin header. */
.dreamly-affiliate .da-admin-header > .da-environment-switch { padding: 3px; gap: 2px; border-radius: 10px; background: #eeeef5; }
.dreamly-affiliate .da-admin-header > .da-environment-switch button { min-height: 28px; padding: 5px 12px; font-size: 12px; line-height: 18px; border-radius: 7px; }
.dreamly-affiliate .da-admin-header > .da-environment-switch button[aria-pressed="true"] { box-shadow: none; }
@media (max-width: 900px) {
    .dreamly-affiliate .da-admin-header { display: grid; grid-template-columns: 1fr auto; }
    .dreamly-affiliate .da-admin-header > .da-environment-switch { grid-column: 1 / -1; justify-self: center; width: fit-content; margin: 4px 0 0; }
    .dreamly-affiliate .da-admin-header > .da-environment-switch button { flex: none; }
}

.dreamly-affiliate .da-review-empty { color: #646b80; font-weight: 600; margin: 0 0 24px; }

/* Remembered dashboard theme; the underlying layout is shared with light mode. */
.dreamly-affiliate .da-header .da-theme-switch { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: inherit; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .dreamly-affiliate .da-header .da-theme-label { display: none; } }
.dreamly-affiliate .da-theme-track { position: relative; flex: 0 0 34px; width: 34px; height: 20px; margin-left: auto; border-radius: 20px; background: #c8cbd7; }
.dreamly-affiliate .da-theme-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.dreamly-affiliate .da-theme-switch[aria-checked="true"] .da-theme-track { background: #8b62ff; }
.dreamly-affiliate .da-theme-switch[aria-checked="true"] .da-theme-track::after { transform: translateX(14px); }
html.da-dashboard-dark .dreamly-affiliate.da-light { --ink: #f4f2ff; --muted: #b5b4cd; --violet: #b49aff; --hover: #c9b6ff; --pale: #30274c; --line: #34344f; background: #0d1534; color: var(--ink); color-scheme: dark; }
html.da-dashboard-dark .dreamly-affiliate .da-dashboard { --muted: #b5b4cd; }
html.da-dashboard-dark .dreamly-affiliate :is(.da-sidebar, .da-card, .da-auth, .da-language-options) { background: #1d1f3d; }
html.da-dashboard-dark .dreamly-affiliate .da-brand-wordmark { filter: brightness(0) invert(1); }
html.da-dashboard-dark .dreamly-affiliate :is(.da-nav, .da-field, .da-account-signout, .da-side-link, .da-check) { color: var(--muted); }
html.da-dashboard-dark .dreamly-affiliate :is(.da-side-link:hover, .da-side-link.active, .da-account-signout:hover) { background: #342b54; color: var(--violet); }
html.da-dashboard-dark .dreamly-affiliate :is(.da-field input, .da-field select, .da-link-box, td, .da-btn.secondary) { background-color: #282b49; color: var(--ink); }
html.da-dashboard-dark .dreamly-affiliate .da-btn.secondary:hover { background: #353657; }
html.da-dashboard-dark .dreamly-affiliate .da-btn-primary { background: #8b62ff; color: #fff; }
html.da-dashboard-dark .dreamly-affiliate .da-btn-primary:hover { background: #9b78ff; }
html.da-dashboard-dark .dreamly-affiliate .da-account-form select[name="country"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23b5b4cd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html.da-dashboard-dark .dreamly-affiliate .da-note { background: #30274c; color: #d0c1ee; }
html.da-dashboard-dark .dreamly-affiliate .da-alert { background: #462c3e; color: #ffc3c3; }
html.da-dashboard-dark .dreamly-affiliate .da-pill { background: #203e3c; color: #9be0ba; }
html.da-dashboard-dark .dreamly-affiliate .da-pill.warn { background: #443a2e; color: #f2ce8d; }
html.da-dashboard-dark .dreamly-affiliate .da-pill.muted { background: #32334e; color: var(--muted); }
html.da-dashboard-dark .dreamly-affiliate .da-metric-top svg { background: #342b54; color: #b49aff; }
html.da-dashboard-dark .dreamly-affiliate .da-metrics .da-card:nth-child(2) .da-metric-top svg { background: #203e48; color: #8bcbd6; }
html.da-dashboard-dark .dreamly-affiliate .da-metrics .da-card:nth-child(3) .da-metric-top svg { background: #432f49; color: #e6aac7; }
html.da-dashboard-dark .dreamly-affiliate .da-language-options a:is(:hover, :focus-visible) { background: #343452; }
.dreamly-affiliate .da-theme-track { flex-basis: 30px; width: 30px; }
.dreamly-affiliate .da-theme-switch[aria-checked="true"] .da-theme-track::after { transform: translateX(10px); }

/* Selected dashboard tabs use the primary action color in both themes. */
.dreamly-affiliate .da-dashboard .da-side-link.active,
html.da-dashboard-dark .dreamly-affiliate .da-dashboard .da-side-link.active { background: #8b62ff; color: #fff; }

/* Use the same gentle, offset floating rhythm as the homepage hero. */
@media (min-width: 781px) and (prefers-reduced-motion: no-preference) {
    .dreamly-affiliate.da-landing .da-hero-phone { animation: da-float-phone 8.5s ease-in-out -2.2s infinite; will-change: transform; }
    .dreamly-affiliate.da-landing .da-commission-card { animation: da-float-commission 7.5s ease-in-out infinite; transform-origin: 50% 85%; will-change: transform; }
}
@keyframes da-float-phone {
    0%, 100% { transform: translate3d(0, -50%, 0) rotate(2deg); }
    50% { transform: translate3d(0, calc(-50% + 5px), 0) rotate(2.15deg); }
}
@keyframes da-float-commission {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(0, -6px, 0) rotate(-1.8deg); }
}

/* Keep the landing summary short; the full terms remain one click away. */
.dreamly-affiliate.da-landing .da-terms-summary { display: grid; gap: 18px; margin: 0 0 30px; padding: 0; list-style: none; }
.dreamly-affiliate.da-landing .da-terms-summary li { display: flex; align-items: flex-start; gap: 14px; color: #c7c9df; font-size: 18px; line-height: 1.55; }
.dreamly-affiliate.da-landing .da-terms-summary svg { margin-top: 3px; color: var(--violet-light); }
.dreamly-affiliate.da-landing .da-terms-full { display: inline-block; color: var(--violet-light); font-size: 16px; font-weight: 600; line-height: 1.6; text-underline-offset: 4px; }
@media (max-width: 520px) { .dreamly-affiliate.da-landing .da-terms-summary li { font-size: 16px; gap: 12px; } }

/* Give the landing steps and short terms a visual link to the app. */
.dreamly-affiliate.da-landing .da-terms-illustrated { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 46px; }
.dreamly-affiliate.da-landing .da-terms-copy { min-width: 0; }
.dreamly-affiliate.da-landing .da-referral-visual { position: relative; width: 310px; height: 340px; isolation: isolate; }
.dreamly-affiliate.da-landing .da-referral-visual::before { content: ''; position: absolute; inset: 40px 0; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, #9265ff24, #9265ff00 70%); }
.dreamly-affiliate.da-landing .da-referral-orbit { position: absolute; inset: 28px 12px; border: 1px solid #b49aff30; border-radius: 50%; transform: rotate(-25deg); }
.dreamly-affiliate.da-landing .da-referral-orbit-inner { inset: 62px 46px; border-style: dashed; border-color: #b49aff24; }
.dreamly-affiliate.da-landing .da-referral-moon { position: absolute; left: 99px; top: 114px; width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 20px 44px #090b2538; transform: rotate(-8deg); }
.dreamly-affiliate.da-landing .da-referral-node { position: absolute; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid #b49aff40; border-radius: 23px; background: #30294d; color: #c2aaff; box-shadow: 0 14px 28px #090b2524; }
.dreamly-affiliate.da-landing .da-referral-node-link { top: 8px; left: 73px; transform: rotate(-9deg); }
.dreamly-affiliate.da-landing .da-referral-node-customer { top: 129px; right: -1px; transform: rotate(9deg); }
.dreamly-affiliate.da-landing .da-referral-node-wallet { bottom: 13px; left: 34px; transform: rotate(-7deg); }
.dreamly-affiliate.da-landing .da-referral-star { position: absolute; line-height: 1; color: #c1a6ff; }
.dreamly-affiliate.da-landing .da-referral-star-one { top: 62px; right: 26px; font-size: 25px; }
.dreamly-affiliate.da-landing .da-referral-star-two { bottom: 36px; right: 57px; font-size: 17px; color: #ffc58c; }
@media (max-width: 1080px) and (min-width: 901px) {
    .dreamly-affiliate.da-landing .da-terms-illustrated { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
    .dreamly-affiliate.da-landing .da-referral-visual { transform: scale(.83); transform-origin: left center; }
}
@media (max-width: 900px) {
    .dreamly-affiliate.da-landing .da-terms-illustrated { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .dreamly-affiliate.da-landing .da-referral-visual { justify-self: center; height: 340px; margin: -20px 0 -35px; transform: scale(.82); }
}
@media (max-width: 520px) {
    .dreamly-affiliate.da-landing .da-referral-visual { width: 310px; max-width: none; justify-self: center; margin: -44px -32px -52px; transform: scale(.68); }
}

/* Keep the three steps simple, with prominent violet numbers. */
.dreamly-affiliate.da-landing .da-step-num { color: var(--violet-light); font-size: 32px; font-weight: 600; line-height: 1; }

/* Small accent below each step number. */
.dreamly-affiliate.da-landing .da-step-num::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 12px; border-radius: 2px; background: currentColor; }

/* Admin shares the dashboard theme and control sizing, with its compact tables. */
.dreamly-affiliate .da-admin .da-sidebar { padding: 30px 16px 24px; }
.dreamly-affiliate .da-admin .da-sidebar-label { font-size: 15px; margin-bottom: 26px; }
.dreamly-affiliate .da-admin .da-side-nav { gap: 12px; }
.dreamly-affiliate .da-admin .da-side-link { font-size: 15px; min-height: 54px; padding: 14px; }
.dreamly-affiliate .da-admin .da-btn,
.dreamly-affiliate .da-admin .da-btn.small { font-size: 16px; min-height: 48px; padding: 14px 20px; }
.dreamly-affiliate .da-admin .da-field { font-size: 16px; line-height: 1.55; gap: 12px; margin-bottom: 26px; }
.dreamly-affiliate .da-admin .da-field :is(input, select) { font-size: 16px; min-height: 54px; padding-block: 15px; }
.dreamly-affiliate .da-admin .da-sandbox-controls .da-field { margin-bottom: 0; }
.dreamly-affiliate .da-admin :is(.da-card, details) { border-radius: 24px; }
.dreamly-affiliate .da-admin .da-side-link.active,
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-side-link.active,
.dreamly-affiliate .da-admin .da-partner-filters button.active,
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-partner-filters button.active { background: #8b62ff; color: #fff; }
html.da-dashboard-dark .dreamly-affiliate .da-admin :is(details, .da-empty) { background: #1d1f3d; }
html.da-dashboard-dark .dreamly-affiliate .da-admin :is(.da-admin-actions, .da-commission-input) { background: #282b49; color: var(--ink); }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-admin-actions .da-field input { background: #353654; color: var(--ink); }
html.da-dashboard-dark .dreamly-affiliate .da-admin :is(.da-partner .da-fine, .da-review-empty, .da-partner-approval p, .da-partner-filters button, .da-person-name small, .da-expand) { color: var(--muted); }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-partner-actions { border-color: var(--line); }
html.da-dashboard-dark .dreamly-affiliate .da-admin :is(.da-partner-approval, .da-avatar, .da-panel-symbol, .da-sandbox-notice) { background: #30274c; color: #c9b6ff; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-partner:nth-of-type(even) .da-avatar { background: #203e48; color: #8bcbd6; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-partner-confirm { background: #462c3e; color: #ffc3c3; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-btn.da-btn-danger { background: #462c3e; color: #ffc3c3; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-btn.da-btn-danger:hover { background: #583248; }
html.da-dashboard-dark .dreamly-affiliate .da-admin-header > .da-environment-switch { background: #282b49; }
html.da-dashboard-dark .dreamly-affiliate .da-environment-switch button { color: var(--muted); }
html.da-dashboard-dark .dreamly-affiliate .da-environment-switch button[aria-pressed="true"] { background: #8b62ff; color: #fff; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-notice :is(p, .da-pill) { color: #d0c1ee; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-notice .da-pill { background: #44345f; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-metrics .da-card:last-child { background: #30274c; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-metrics .da-card:last-child .da-metric-value { color: #c9b6ff; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-events td code { color: var(--muted); }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-controls select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23b5b4cd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 640px) {
    .dreamly-affiliate .da-admin .da-btn,
    .dreamly-affiliate .da-admin .da-btn.small { font-size: 18px; }
    .dreamly-affiliate .da-admin .da-field,
    .dreamly-affiliate .da-admin .da-field :is(input, select) { font-size: 18px; }
    .dreamly-affiliate .da-admin .da-side-link { font-size: 16px; }
    html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-events tr { background: #282b49; }
    html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-events td { background: transparent; }
    html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-events td::before { color: var(--muted); }
    html.da-dashboard-dark .dreamly-affiliate .da-admin .da-sandbox-events td:last-child { color: #c9b6ff; }
}

html.da-dashboard-dark .dreamly-affiliate .da-admin .da-btn:not(.secondary):not(.text):not(.da-btn-danger) { background: #8b62ff; color: #fff; }
html.da-dashboard-dark .dreamly-affiliate .da-admin .da-btn:not(.secondary):not(.text):not(.da-btn-danger):hover { background: #9b78ff; }

/* Match the homepage wordmark placement at every breakpoint. */
.dreamly-affiliate.da-landing:not(.da-public-auth) .da-header-inner > a[aria-label="Dreamly"] { transform: translateX(-8px); }
@media (max-width: 370px) {
    .dreamly-affiliate.da-landing:not(.da-public-auth) .da-home-logo { width: 96px; }
}

/* Public, server-rendered programme details and accessible FAQ. */
.dreamly-affiliate.da-landing .da-landing-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 48px; margin: 0 0 64px; }
.dreamly-affiliate.da-landing :is(.da-landing-about, .da-landing-faq, .da-landing-signup) h2,
.dreamly-affiliate.da-landing .da-landing-steps-heading { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.dreamly-affiliate.da-landing .da-landing-about p { margin-bottom: 14px; color: #c7c9df; font-size: 18px; line-height: 1.65; }
.dreamly-affiliate.da-landing .da-landing-about a { color: var(--violet-light); text-decoration: underline; text-underline-offset: 4px; }
.dreamly-affiliate.da-landing .da-landing-steps-heading { margin-bottom: 20px; }
.dreamly-affiliate.da-landing .da-landing-faq { max-width: 940px; margin: 0 auto 64px; }
.dreamly-affiliate.da-landing .da-landing-faq h2 { margin-bottom: 28px; }
.dreamly-affiliate.da-landing .da-landing-faq details { margin: 0 0 12px; padding: 0; border: 0; border-radius: 18px; background: #1d1f3d; }
.dreamly-affiliate.da-landing .da-landing-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.dreamly-affiliate.da-landing .da-landing-faq summary::-webkit-details-marker { display: none; }
.dreamly-affiliate.da-landing .da-landing-faq summary::after { content: '+'; flex-shrink: 0; color: var(--violet-light); font-size: 26px; font-weight: 400; }
.dreamly-affiliate.da-landing .da-landing-faq details[open] summary::after { content: '−'; }
.dreamly-affiliate.da-landing .da-landing-faq details p { margin: 0; padding: 0 28px 24px; color: #c7c9df; font-size: 16px; line-height: 1.7; }
.dreamly-affiliate.da-landing .da-landing-faq details a { text-decoration: underline; text-underline-offset: 3px; }
.dreamly-affiliate.da-landing .da-landing-signup { margin: 0 0 72px; padding: 48px 32px; border-radius: 32px; background: #1d1f3d; text-align: center; }
.dreamly-affiliate.da-landing .da-landing-signup h2 { margin-bottom: 16px; }
.dreamly-affiliate.da-landing .da-landing-signup p { max-width: 620px; margin-inline: auto; color: #c7c9df; line-height: 1.65; }
.dreamly-affiliate.da-landing .da-landing-signup .da-hero-actions { justify-content: center; margin-top: 24px; }
.dreamly-affiliate.da-landing .da-landing-signup .da-fine { margin-top: 20px; font-size: 13px; }
@media (max-width: 780px) {
    .dreamly-affiliate.da-landing .da-landing-about { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 40px; }
    .dreamly-affiliate.da-landing .da-landing-about p { font-size: 16px; }
    .dreamly-affiliate.da-landing .da-landing-faq { margin-bottom: 40px; }
    .dreamly-affiliate.da-landing .da-landing-faq summary { padding: 20px; font-size: 17px; }
    .dreamly-affiliate.da-landing .da-landing-faq details p { padding: 0 20px 20px; }
    .dreamly-affiliate.da-landing .da-landing-signup { margin-bottom: 44px; padding: 32px 24px; border-radius: 28px; }
}
