:root{--ink:#17212b;--muted:#5c6b7a;--primary:#1f4e79;--primary-2:#2f6690;--tint:#e8eef5;--tint-2:#f4f7fa;--paper:#eaf2f9;--line:#c9dcee;--white:#fff;--warn:#c98a2b;--danger:#b3261e;--info:#2f6690;--shadow:0 18px 48px rgba(15,35,55,.1);--radius:18px;--sidebar:268px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Poppins',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.eyebrow{margin:0 0 8px;font-size:.7rem;letter-spacing:.16em;font-weight:800}.accent{color:var(--primary)}.brand{display:flex;align-items:center;gap:10px;font-family:'Poppins',sans-serif;font-size:1.35rem;font-weight:800}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--primary);color:white;font:800 1.2rem 'Poppins',sans-serif}.brand-light .brand-mark{background:white;color:var(--primary)}.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(320px,46%) 1fr;background:white}.auth-story{position:relative;display:flex;flex-direction:column;padding:42px 8vw 36px 6vw;color:white;background:linear-gradient(145deg,#13263c,#1f4e79);overflow:hidden}.auth-story:after{content:"";position:absolute;width:2px;height:64%;background:rgba(255,255,255,.14);right:9vw;top:18%}.story-copy{margin:auto 0;max-width:520px;position:relative;z-index:1}.story-copy h1{font:700 clamp(2.3rem,4.4vw,3.9rem)/1.15 'Poppins',sans-serif;margin:12px 0 22px;letter-spacing:-.01em}.story-copy>p{color:#cfe0ee;font-size:1.05rem;max-width:470px}.story-foot{position:relative;z-index:1;font-size:.78rem;color:#b7cbdc}.auth-panel{display:grid;place-items:center;padding:38px;background:linear-gradient(180deg,#fff,#fbfcfa)}.auth-card{width:min(460px,100%)}.auth-heading h2{font:700 2.1rem/1.1 'Poppins',sans-serif;margin:0 0 8px}.auth-heading>p:last-child{color:var(--muted);margin:0 0 28px}.mobile-auth-brand{display:none}.form-stack{display:grid;gap:15px}.form-stack label{display:grid;gap:7px;font-size:.8rem;font-weight:750;color:var(--ink)}input,select,textarea{width:100%;border:1px solid #ccd6e0;background:white;border-radius:10px;padding:12px 13px;color:var(--ink);outline:none;transition:.2s}textarea{min-height:120px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(11,107,82,.11)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:0;border-radius:10px;padding:11px 16px;font-weight:750}.button.primary{background:var(--primary);color:white}.button.primary:hover{background:#163a5c}.button.secondary{background:var(--tint);color:var(--primary)}.button.danger{background:#fcebed;color:var(--danger)}.button.ghost{border:1px solid currentColor;background:transparent}.button.wide{width:100%}.button.small{padding:8px 11px;font-size:.8rem}.text-button{border:0;background:transparent;color:var(--primary);font-weight:750}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:28px 22px 20px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.community-chip{display:flex;align-items:center;gap:10px;background:var(--tint-2);border:1px solid var(--line);border-radius:12px;padding:11px;margin:30px 0 20px}.community-avatar,.avatar{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:#d7e4f0;color:var(--primary);font-size:.72rem;font-weight:850}.community-chip strong,.community-chip small,.profile-chip strong,.profile-chip small,.top-profile strong,.top-profile small{display:block}.community-chip strong{font-size:.78rem}.community-chip small{font-size:.66rem;color:var(--muted)}.nav-list{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;color:#52626f;font-size:.87rem;font-weight:650;border:0;background:transparent;text-align:left;width:100%}.nav-link:hover,.nav-link.active{background:var(--tint);color:var(--primary)}.nav-icon{width:20px;display:inline-flex;align-items:center;justify-content:center}.sidebar-support{margin-top:auto;padding:16px;border-radius:14px;background:var(--ink);color:white}.sidebar-support p{font-size:.75rem;color:#c3d3e0;margin:5px 0 12px}.sidebar-support .button{width:100%;color:white}.profile-chip{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:0;background:transparent;text-align:left;padding:16px 4px 0}.profile-chip strong{font-size:.78rem}.profile-chip small{font-size:.68rem;color:var(--muted)}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;padding:20px 4vw;background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.topbar h1{margin:0;font:700 1.55rem 'Poppins',sans-serif}.top-actions{display:flex;align-items:center;gap:10px}.icon-button,.top-profile{border:1px solid var(--line);background:white;border-radius:10px;min-height:42px}.icon-button{position:relative;display:grid;place-items:center;min-width:42px;padding:0 10px;color:var(--ink);transition:.15s}.icon-button:hover{background:var(--tint-2);border-color:var(--primary)}.dot{position:absolute;width:7px;height:7px;background:var(--warn);border-radius:50%;right:7px;top:7px}.top-profile{display:flex;align-items:center;gap:9px;padding:4px 9px}.top-profile strong{font-size:.75rem}.top-profile small{color:var(--muted);font-size:.65rem}.mobile-header,.mobile-nav,.mobile-page-bar{display:none}#content{padding:32px 4vw 60px;max-width:1500px;margin:auto;outline:none}#content>section{margin-top:20px}#content>section:first-child{margin-top:0}.hero{display:grid;grid-template-columns:1.6fr .75fr;gap:18px;background:linear-gradient(120deg,#163a5c,#1f4e79);color:white;border-radius:var(--radius);padding:34px 38px;overflow:hidden}.hero h2{font:700 clamp(1.8rem,3vw,2.8rem)/1.05 'Poppins',sans-serif;margin:7px 0 12px;max-width:650px}.hero p{color:#cfe0ee;max-width:620px}.hero-actions{display:flex;gap:10px;margin-top:22px}.hero .button.primary{background:white;color:var(--primary)}.hero .button.ghost{color:white}.hero-orbit{position:relative;min-height:150px;display:grid;place-items:center}.hero-orbit svg{width:100%;max-width:210px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.metric-card{background:white;border:1px solid var(--line);padding:18px;border-radius:14px}.metric-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--tint);color:var(--primary);margin-bottom:16px}.metric-icon.tone-a{background:#e8eef5;color:#1f4e79}.metric-icon.tone-b{background:#e3f0ec;color:#127a5c}.metric-icon.tone-c{background:#f6ecdc;color:#a8701f}.metric-icon.tone-d{background:#eee8f5;color:#5b3fa0}.metric-icon.tone-danger{background:#fbe9e8;color:#b3261e}.metric-card strong{display:block;font:700 1.8rem 'Poppins',sans-serif}.metric-card span{color:var(--muted);font-size:.76rem}.content-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.75fr);gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.panel-head h2,.section-head h2{font:700 1.25rem 'Poppins',sans-serif;margin:0}.panel-head p,.section-head p{margin:4px 0 0;color:var(--muted);font-size:.78rem}.link-button{border:0;background:transparent;color:var(--primary);font-size:.78rem;font-weight:800}.opportunity-list,.activity-list{display:grid}.opportunity{display:grid;grid-template-columns:auto 1fr auto;gap:13px;padding:15px 0;border-top:1px solid var(--line);align-items:center}.opportunity:first-child{border-top:0}.type-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--tint-2);color:var(--primary)}.opportunity h3{margin:0 0 4px;font-size:.9rem}.opportunity p{margin:0;color:var(--muted);font-size:.72rem}.tag,.status-tag{display:inline-flex;align-items:center;border-radius:99px;padding:5px 9px;font-size:.65rem;font-weight:800;text-transform:capitalize}.tag{background:var(--tint);color:var(--primary)}.status-tag.approved,.status-tag.verified,.status-tag.accepted{background:#e3f4ec;color:#087050}.status-tag.pending_review,.status-tag.pending,.status-tag.submitted,.status-tag.reviewing{background:#fff3d8;color:#966312}.status-tag.rejected,.status-tag.declined,.status-tag.banned{background:#fce8e9;color:var(--danger)}.status-tag.withdrawn{background:#e9edf1;color:#5c6b78}.announcement{padding:13px 0;border-top:1px solid var(--line)}.announcement:first-of-type{border-top:0}.announcement strong{font-size:.85rem}.announcement p{font-size:.73rem;color:var(--muted);margin:4px 0}.announcement small{font-size:.66rem;color:var(--primary)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:22px}.toolbar{display:flex;gap:9px;flex-wrap:wrap}.toolbar input,.toolbar select{min-width:160px;padding:10px}.search-box{min-width:min(360px,100%)!important}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.advert-card{display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:15px;padding:19px;min-height:245px}.advert-card-top{display:flex;align-items:center;justify-content:space-between}.advert-card h3{font:700 1.12rem 'Poppins',sans-serif;margin:18px 0 8px}.advert-card p{color:var(--muted);font-size:.78rem}.advert-card .advert-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:.68rem;color:#55636f;margin-top:auto;padding:14px 0}.advert-card-actions{display:flex;gap:8px}.advert-card-actions .button{flex:1}.empty-state{text-align:center;padding:50px 20px;border:1px dashed #c2d0dc;border-radius:var(--radius);background:rgba(255,255,255,.6)}.empty-state .empty-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 6px;border-radius:50%;background:var(--tint);color:var(--primary)}.empty-icon .icon{width:26px;height:26px}.empty-state h3{font:700 1.3rem 'Poppins',sans-serif;margin:10px 0}.empty-state p{color:var(--muted);font-size:.82rem}.split-page{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(0,1.28fr);gap:20px}.sticky-panel{position:sticky;top:130px;align-self:start}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:.76rem}.data-table th{text-align:left;color:var(--muted);font-size:.65rem;text-transform:uppercase;letter-spacing:.08em}.data-table th,.data-table td{padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:top}.data-table td strong{display:block}.inline-actions{display:flex;gap:6px;flex-wrap:wrap}.tabs{display:flex;gap:6px;margin-bottom:18px;overflow:auto}.tab{border:1px solid var(--line);background:white;border-radius:99px;padding:8px 12px;white-space:nowrap;color:var(--muted);font-weight:700;font-size:.76rem}.tab.active{background:var(--ink);color:white;border-color:var(--ink)}.profile-grid{display:grid;grid-template-columns:260px 1fr;gap:20px}.profile-summary{text-align:center}.avatar.large{width:76px;height:76px;font-size:1.1rem;margin:4px auto 14px}.profile-summary h2{font:700 1.35rem 'Poppins',sans-serif;margin:0}.profile-summary p{color:var(--muted);font-size:.78rem}.settings-row{display:block;padding:14px 0;border-top:1px solid var(--line)}.settings-row strong{display:block;font-size:.82rem}.settings-row small{display:block;color:var(--muted);font-size:.72rem;margin-top:3px}.settings-row .toggle,.settings-row>input[type=checkbox]{display:block;margin-top:10px;width:42px}.settings-row.consent-row{display:flex;align-items:flex-start;gap:10px}.settings-row.consent-row strong,.settings-row.consent-row small{display:inline}
.toggle{width:42px;height:24px;border:0;background:#aab4bd;border-radius:99px;padding:3px}.toggle:after{content:"";display:block;width:18px;height:18px;background:white;border-radius:50%;transition:.2s}.toggle.on{background:var(--primary)}.toggle.on:after{transform:translateX(18px)}.toast{position:fixed;z-index:100;right:24px;bottom:24px;max-width:360px;padding:13px 17px;border-radius:10px;background:var(--ink);color:white;box-shadow:var(--shadow);transform:translateY(20px);opacity:0;pointer-events:none;transition:.25s;font-size:.82rem}.toast.show{opacity:1;transform:none}.toast.error{background:#8b2630}.modal{border:0;padding:0;border-radius:18px;width:min(600px,calc(100% - 28px));box-shadow:0 30px 90px rgba(5,40,31,.25)}.modal::backdrop{background:rgba(10,31,26,.55);backdrop-filter:blur(2px)}.modal-card{padding:24px}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.modal-head h2{font:700 1.45rem 'Poppins',sans-serif;margin:0}.modal .loading{display:grid;place-items:center;min-height:260px;color:var(--muted)}.loading:before{content:"";width:24px;height:24px;border:3px solid var(--line);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;margin-right:10px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.card-grid{grid-template-columns:repeat(2,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-orbit{display:none}}
@media(max-width:800px){body{background:#f5f7f9}.auth-screen{display:block;background:white}.auth-story{display:none}.auth-panel{min-height:100vh;padding:28px 20px;align-content:center}.mobile-auth-brand{display:flex;align-items:center;gap:9px;margin-bottom:46px}.auth-heading h2{font-size:1.8rem}.sidebar,.topbar{display:none}.workspace{margin:0}.mobile-header{height:66px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:white;border-bottom:1px solid var(--line)}.mobile-header .brand{font-size:1.1rem}.small-avatar{width:34px;height:34px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:30;inset:auto 0 0;background:white;border-top:1px solid var(--line);padding:7px 7px calc(7px + env(safe-area-inset-bottom))}.mobile-nav .nav-link{display:grid;justify-items:center;gap:2px;padding:4px 2px;font-size:.59rem;background:transparent;text-align:center;line-height:1.2}.mobile-nav .nav-link.active{color:var(--primary)}.mobile-page-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 2px;background:var(--paper)}.mobile-page-bar h2{margin:0;font:700 1.1rem 'Poppins',sans-serif;flex:1;min-width:0}.mobile-page-bar .help-video-button{margin-left:0;flex:0 0 auto}#content{padding:18px 16px 92px}.hero{padding:25px 20px;border-radius:15px}.hero h2{font-size:1.75rem}.hero-actions{flex-wrap:wrap}.metric-grid{grid-template-columns:repeat(2,1fr);gap:10px}.metric-card{padding:14px}.metric-card strong{font-size:1.45rem}.content-grid,.split-page,.profile-grid{grid-template-columns:1fr}.sticky-panel{position:static}.card-grid{grid-template-columns:1fr}.panel{padding:17px;border-radius:14px}.section-head{display:block}.section-head .toolbar{margin-top:15px}.toolbar>*{flex:1}.search-box{width:100%}.opportunity{grid-template-columns:auto 1fr}.opportunity>.button,.opportunity>.tag{grid-column:2}.field-row{grid-template-columns:1fr}.toast{left:15px;right:15px;bottom:82px}.top-actions{display:none}.modal-card{padding:19px}}
@media(max-width:390px){.metric-grid{grid-template-columns:1fr 1fr}.hero-actions .button{width:100%}.advert-card{min-height:220px}}
.icon{width:18px;height:18px;flex:0 0 auto;display:inline-block;vertical-align:middle}.metric-icon .icon{width:20px;height:20px}.nav-icon .icon{width:18px;height:18px}.type-icon .icon{width:21px;height:21px}.icon-button .icon{width:19px;height:19px}.button .icon{width:16px;height:16px}
body{font-family:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.brand,.story-copy h1,.auth-heading h2,.topbar h1,.panel-head h2,.section-head h2,.hero h2,.advert-card h3,.empty-state h3,.modal-head h2,.profile-summary h2,.data-table th{font-family:'Poppins',sans-serif}
.panel,.metric-card,.advert-card,.sidebar{box-shadow:0 1px 2px rgba(15,35,55,.04)}
.panel,.advert-card{transition:box-shadow .18s,border-color .18s}
.metric-card{transition:box-shadow .18s,transform .18s}
.metric-card:hover{box-shadow:0 8px 24px rgba(15,35,55,.08);transform:translateY(-1px)}
.advert-card:hover{box-shadow:0 10px 28px rgba(15,35,55,.09);border-color:#c7d5e2}
.button{transition:.15s;font-family:'Inter',sans-serif}
.button.primary{box-shadow:0 1px 2px rgba(15,35,55,.08)}
.button.primary:hover{box-shadow:0 6px 16px rgba(31,78,121,.28);transform:translateY(-1px)}
.button.secondary:hover{background:#dfe9f2}
.button.ghost:hover{background:rgba(255,255,255,.12)}
.nav-link{transition:.15s}
.opportunity,.announcement{transition:background .15s}
.hero{background:linear-gradient(135deg,#163a5c,#1f4e79 60%,#2f6690)}
.topbar{box-shadow:0 1px 0 rgba(15,35,55,.03)}
.data-table tbody tr:hover{background:var(--tint-2)}

/* --- Sprint 2 additions: statuses, low-data media, T&Cs, surveys, schedule, help video --- */
.status-tag.under_review,.status-tag.proposed{background:#fff3d8;color:#966312}
.status-tag.waitlisted,.status-tag.confirmed{background:#e3eefc;color:#1f4e79}
.status-tag.successful,.status-tag.completed,.status-tag.retained{background:#e3f4ec;color:#087050}
.status-tag.unsuccessful,.status-tag.cancelled,.status-tag.deleted{background:#fce8e9;color:var(--danger)}
.status-tag.researcher{background:#eee8f5;color:#5b3fa0}

.advert-card-media{margin:-19px -19px 14px;border-radius:15px 15px 0 0;overflow:hidden;max-height:150px}
.advert-card-media img{width:100%;height:150px;object-fit:cover;display:block}
.lazy-media{width:100%;border-radius:10px;display:block}
.image-zoom-trigger{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;overflow:hidden;border-radius:10px;text-align:inherit}
.image-zoom-trigger:focus-visible{outline:3px solid rgba(31,78,121,.35);outline-offset:2px}
.advert-card-media .image-zoom-trigger{height:150px;border-radius:0}
.image-lightbox{position:relative;border:0;padding:0;background:transparent;max-width:96vw;max-height:94vh;overflow:visible}
.image-lightbox::backdrop{background:rgba(5,15,25,.88);backdrop-filter:blur(3px)}
.image-lightbox img{display:block;max-width:94vw;max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:12px;background:#0b1f1a;box-shadow:0 24px 70px rgba(0,0,0,.45)}
.image-lightbox-close{position:absolute;z-index:2;top:10px;right:10px;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(10,20,30,.78);color:white;cursor:pointer}
.image-lightbox-close:hover{background:rgba(10,20,30,.95)}
.media-placeholder{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:150px;border:1px dashed #c2d0dc;border-radius:10px;background:var(--tint-2);color:var(--primary);font-size:.78rem;font-weight:700}
.media-placeholder.wide{height:220px}
.media-placeholder .icon{width:20px;height:20px}

.help-video-button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:white;border-radius:99px;padding:6px 12px;font-size:.68rem;font-weight:750;color:var(--primary);vertical-align:middle;margin-left:10px}
.help-video-button .icon{width:15px;height:15px}
.video-frame{position:relative;width:100%;padding-top:56.25%;border-radius:12px;overflow:hidden;background:#0b1f1a}
.video-frame iframe,.video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain;background:#0b1f1a}

.terms-scroll{max-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--tint-2);font-size:.8rem;line-height:1.55;color:#2c363f}
.terms-scroll p{margin:0 0 12px}
.consent-row{flex-direction:row;align-items:flex-start;gap:10px;border-top:2px solid var(--line);padding:14px 0 10px;margin-top:14px}
.consent-row+.consent-row{border-top:0;padding-top:0;margin-top:0}
.consent-row input{margin-top:3px}
.consent-row span{font-size:.78rem;color:#3b4650}

.survey-question-row{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px;display:grid;gap:10px}
.survey-fieldset{border:1px solid var(--line);border-radius:10px;padding:12px;margin:0}
.survey-fieldset legend{font-weight:750;font-size:.8rem;padding:0 6px}
.choice-label{display:flex;align-items:center;gap:8px;font-weight:500;padding:5px 0}
.choice-label input{width:auto}
/* .form-stack label{display:grid} (in the base stylesheet) beats the plain
   .choice-label{display:flex} rule above on specificity, which stacked each
   checkbox above its option text instead of beside it. This wins. */
.form-stack .choice-label{display:flex;align-items:center}

.modal-actions-top{display:flex;justify-content:flex-end;margin-bottom:10px}
.hint-text{font-size:.7rem;color:var(--muted);margin:2px 0 0}
.announcement.unread{position:relative;background:var(--tint-2);border-radius:10px;padding-left:12px}
.announcement.unread:before{content:"";position:absolute;left:0;top:16px;width:6px;height:6px;border-radius:50%;background:var(--primary)}
[data-notif-link]{cursor:pointer}

/* --- Language dropdown (replaces the old cycle-through button) --- */
.language-select{border:1px solid var(--line);background:white;border-radius:10px;min-height:42px;min-width:96px;padding:8px 12px;font-size:.75rem;font-weight:700;color:var(--ink);cursor:pointer;transition:.15s}
.language-select:hover{background-color:var(--tint-2);border-color:var(--primary)}
.language-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(11,107,82,.11)}

/* --- Income slider --- */
.slider-field{display:grid;gap:8px}
.slider-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:.8rem;font-weight:750;color:var(--ink)}
#income-slider{width:100%;padding:0;accent-color:var(--primary);height:6px}
.slider-value{text-align:right;font-size:.78rem;font-weight:750;color:var(--primary);border:0;background:transparent;padding:0}

/* --- Blue sidebar/topbar instead of plain white --- */
.sidebar{background:linear-gradient(175deg,#1f4e79,#163a5c);border-right:0;color:white}
.sidebar .brand{color:white}
.sidebar .brand-mark{background:white;color:var(--primary)}
.sidebar .community-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16)}
.sidebar .community-chip strong{color:white}
.sidebar .community-chip small{color:#cfe0ee}
.sidebar .community-avatar{background:rgba(255,255,255,.85)}
.sidebar .nav-link{color:#cfe0ee}
.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.14);color:white}
.sidebar .sidebar-support{background:rgba(255,255,255,.1)}
.sidebar .sidebar-support .button.ghost{border-color:rgba(255,255,255,.5)}
.sidebar .profile-chip{border-top:1px solid rgba(255,255,255,.16);margin-top:6px}
.sidebar .profile-chip strong{color:white}
.sidebar .profile-chip small{color:#cfe0ee}
.sidebar .profile-chip>span:last-child{color:#cfe0ee}
.topbar{background:linear-gradient(100deg,#1f4e79,#245e8f);border-bottom:0;color:white}
.topbar .eyebrow{color:#cfe0ee}
.topbar h1{color:white}
.top-profile strong{color:var(--ink)}
.top-profile small{color:var(--muted)}
.mobile-header{background:linear-gradient(100deg,#1f4e79,#245e8f);border-bottom:0}
.mobile-header .brand{color:white}
.mobile-header .brand-mark{background:white;color:var(--primary)}
.mobile-header-actions{display:flex;align-items:center;gap:8px}
.language-select.mobile{min-height:36px;min-width:64px;padding:6px 8px;font-size:.68rem}
.mobile-header-actions .icon-button{min-width:36px;min-height:36px}
.mobile-header-actions .icon-button[data-route="profile"]{background:transparent;border:0;padding:0;min-width:auto}

/* --- Blue-hue frame instead of a flat white page: a soft blue backdrop
   (--paper/--line above) plus a visible blue border around the main
   content area, so white panels/cards read as sitting inside a frame. --- */
.workspace{border:8px solid var(--line);border-left:0;box-sizing:border-box}
.auth-panel{border:8px solid var(--line);border-left:0;box-sizing:border-box}
@media(max-width:800px){.workspace{border:0}.auth-panel{border:0}}

/* --- Cover image/video drag-and-drop upload (replaces the URL text field) --- */
.dropzone{border:2px dashed #a9c3dc;border-radius:14px;background:var(--tint-2);padding:26px 16px;text-align:center;cursor:pointer;transition:.15s;outline:none}
.dropzone:hover,.dropzone:focus-visible{border-color:var(--primary);background:var(--tint)}
.dropzone.dragover{border-color:var(--primary);background:var(--tint);box-shadow:0 0 0 3px rgba(11,107,82,.12)}
.dropzone-empty{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);pointer-events:none}
.dropzone-empty .icon{width:30px;height:30px;color:var(--primary)}
.dropzone-empty p{margin:2px 0 0;font-size:.82rem;color:var(--ink)}
.dropzone-empty small{font-size:.68rem}
.dropzone-empty .link-button{pointer-events:auto;text-decoration:underline}
.dropzone-preview{display:flex;flex-direction:column;align-items:center;gap:10px}
.dropzone-preview img,.dropzone-preview video{max-width:100%;max-height:220px;border-radius:10px;display:block}
.dropzone-uploading{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem}
.dropzone-uploading .icon{width:18px;height:18px;animation:spin 1s linear infinite}

/* --- Persistent, always-reachable sign-out button in the topbar/mobile
   header (not just on the Profile page), so an error rendering any single
   page can never trap someone signed in. --- */
.signout-control{color:var(--danger)}
.signout-control:hover{background:#fcebed;border-color:var(--danger)}

/* --- Blue sidebar & topbar (previously plain white) --- */
.sidebar{background:linear-gradient(165deg,#13263c,#1f4e79);border-right:0;color:white}
.sidebar .brand{color:white}
.sidebar .community-chip{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.sidebar .community-chip strong{color:white}
.sidebar .community-chip small{color:#cfe0ee}
.sidebar .nav-link{color:#cfe0ee}
.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.16);color:white}
.sidebar .sidebar-support{background:rgba(0,0,0,.2)}
.sidebar .profile-chip{color:white}
.sidebar .profile-chip strong{color:white}
.sidebar .profile-chip small{color:#b7cbdc}
.sidebar .profile-chip>span:last-child{color:#cfe0ee}

.topbar,.mobile-header{background:linear-gradient(100deg,#163a5c,#1f4e79);border-bottom:0}
.topbar h1{color:white}
.topbar .eyebrow.accent,.mobile-header .eyebrow.accent{color:#bcd6ea}
.topbar .language-select,.topbar .icon-button,.topbar .top-profile,
.mobile-header-actions .language-select,.mobile-header-actions .icon-button{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.3);color:white}
.topbar .language-select option,.mobile-header-actions .language-select option{color:var(--ink);background:white}
.mobile-header-actions .icon-button[data-route="profile"]{background:transparent;border-color:transparent}
.topbar .icon-button:hover,.mobile-header-actions .icon-button:hover{background:rgba(255,255,255,.24);border-color:rgba(255,255,255,.35)}
.topbar .signout-control,.mobile-header-actions .signout-control{color:#ffd7d2}
.topbar .top-profile strong{color:white}
.topbar .top-profile small{color:#cfe0ee}
.mobile-header .brand{color:white}

/* --- Profile picture upload (drag-and-drop avatar) --- */
.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.avatar-uploading{display:grid;place-items:center}
.avatar-uploading .icon{width:16px;height:16px;animation:spin 1s linear infinite}
.avatar-upload{display:inline-flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;border-radius:14px;padding:6px;outline:none}
.avatar-upload:hover .avatar.large,.avatar-upload:focus-visible .avatar.large{box-shadow:0 0 0 3px rgba(31,78,121,.18)}
.avatar-upload.dragover .avatar.large{box-shadow:0 0 0 3px var(--primary)}
.avatar-upload-hint{display:inline-flex;align-items:center;gap:5px;font-size:.66rem;font-weight:750;color:var(--primary)}
.avatar-upload-hint .icon{width:13px;height:13px}

/* --- Income slider: range labels shown along the track --- */
.slider-scale{display:flex;justify-content:space-between;gap:2px;margin-top:2px}
.slider-scale span{flex:1;text-align:center;font-size:.6rem;color:var(--muted);font-weight:650}
.slider-scale span:first-child{text-align:left}
.slider-scale span:last-child{text-align:right}
