:root {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
:root[data-text-size="large"] { font-size:18px; }
:root[data-text-size="larger"] { font-size:20px; }
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
button, input, select, textarea { font:inherit; }
button, summary, select { cursor:pointer; }
:is(button,input,select,textarea):disabled { cursor:not-allowed; opacity:.6; }
[aria-busy="true"] button:disabled { cursor:progress; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
p { margin:0 0 1rem; }
h1,h2,h3 { margin:0; line-height:1.16; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
main:focus { outline:none; }
.icon { width:1.2em; height:1.2em; flex:none; vertical-align:middle; }
.wide { width:min(var(--width),calc(100% - 80px)); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:20; padding:12px; background:var(--accent); color:var(--accent-text); }
.skip-link:focus { top:12px; }
.site-header { position:sticky; top:0; z-index:5; background:var(--surface); border-bottom:1px solid var(--border); }
.header-inner { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand-mark { display:inline-flex; align-items:center; gap:11px; flex:none; }
.brand-symbol { width:39px; height:39px; display:grid; place-items:center; border-radius:var(--radius); background:var(--accent); color:var(--accent-text); }
.brand-symbol .icon { fill:currentColor; stroke-width:1.4; width:23px; height:23px; }
.brand-name { font-size:1.18rem; font-weight:830; letter-spacing:.04em; white-space:nowrap; }
.brand-name small { display:block; font-size:.65rem; color:var(--muted); font-weight:650; letter-spacing:.04em; line-height:1; margin-top:3px; }
.desktop-nav { display:flex; gap:clamp(16px,3vw,41px); align-self:stretch; align-items:stretch; }
.desktop-nav a { display:grid; place-items:center; color:var(--muted); font-size:.91rem; font-weight:670; position:relative; white-space:nowrap; }
.desktop-nav a:hover, .desktop-nav .active { color:var(--text); }
.desktop-nav .active::after { content:""; position:absolute; bottom:0; inset-inline:0; height:2px; background:var(--accent); border-radius:3px 3px 0 0; }
.header-actions { display:flex; align-items:center; gap:8px; flex:none; }
.icon-button { display:inline-grid; place-items:center; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:var(--radius); width:var(--tap); height:var(--tap); flex:none; position:relative; }
.icon-button:hover { color:var(--text); background:var(--surface-2); border-color:var(--border); }
.attention-anchor { position:relative; }
.attention-dot { position:absolute; z-index:1; top:5px; right:5px; width:8px; height:8px; border:1px solid var(--bg); border-radius:50%; background:var(--notification); pointer-events:none; }
.attention-dot[hidden] { display:none; }
.notification-button .attention-dot { top:7px; right:8px; }
.nav-caption > .attention-dot { top:-3px; right:-9px; }
.nav-icon { display:grid; place-items:center; }
.nav-icon > .attention-dot { top:-2px; right:-5px; }
.button { min-height:var(--tap); padding:var(--space-2) var(--space-4); display:inline-flex; align-items:center; justify-content:center; gap:8px; color:var(--text); border:1px solid var(--border); border-radius:var(--radius-small); background:var(--surface-2); font-size:var(--type-label); font-weight:var(--weight-strong); text-align:center; white-space:normal; transition:background .15s,border-color .15s; }
.button:hover { border-color:var(--muted); }
.button.primary { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }
.button.primary:hover { filter:brightness(.94); }
.button.secondary { background:transparent; }
.button.secondary:hover, .button.secondary.on { background:var(--surface-2); }
.button.danger { color:var(--danger); border-color:currentColor; background:transparent; }
.sign-in { margin-left:5px; gap:0; }
.account-button { color:var(--text); border:0; padding:0 0 0 4px; min-height:44px; min-width:44px; background:transparent; display:flex; gap:9px; align-items:center; font-size:.9rem; font-weight:750; }
.account-button > span:last-child { overflow:hidden; text-overflow:ellipsis; max-width:140px; white-space:nowrap; }
.avatar { display:grid; place-items:center; height:34px; width:34px; flex:none; border-radius:50%; background:var(--accent-low); color:var(--success); font-weight:800; }
.large-avatar { height:52px; width:52px; font-size:1.25rem; }
.site-main { min-height:65vh; }
.page-content { padding-block:var(--space-6) var(--space-12); }
.page-loading { margin:80px auto; text-align:center; color:var(--muted); }
.site-footer { border-top:1px solid var(--border); color:var(--muted); font-size:.83rem; padding:23px 0; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 25px; }
.footer-inner > span:first-child { font-weight:790; color:var(--text); }
.footer-inner div { display:flex; gap:15px; }
.footer-inner a:hover { color:var(--text); }
.bottom-nav { display:none; }

.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-block:13px 29px; }
.stat { position:relative; display:flex; align-items:center; gap:13px; min-height:83px; padding:13px 17px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
.stat-icon { flex:none; display:grid; place-items:center; width:41px; height:41px; border-radius:11px; color:var(--muted); background:var(--surface-2); }
.stat-icon .icon { width:20px; height:20px; }
.accent-icon { color:var(--success); background:var(--accent-low); }
.stat div > span { color:var(--muted); font-size:.85rem; display:block; }
.stat strong { display:block; margin-top:3px; font-size:clamp(1.28rem,2.3vw,1.9rem); letter-spacing:-.04em; font-variant-numeric:tabular-nums; line-height:1.15; }
.stat small { font-size:.74rem; font-weight:550; color:var(--muted); }
.metric-note { color:var(--dim); font-size:.68rem; position:absolute; top:9px; right:11px; }

.page-heading h1 { font-size:var(--type-title); line-height:1.2; letter-spacing:-.025em; }
.page-heading p { color:var(--muted); margin:var(--space-2) 0 0; }
.text-link { color:var(--brand-text); font-weight:var(--weight-strong); font-size:var(--type-label); display:inline-flex; align-items:center; min-height:var(--tap); }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
body:has(.market-content) { background:radial-gradient(ellipse at 30% 48%,var(--market-haze),transparent 58%),linear-gradient(106deg,var(--market-blue),var(--market-lilac)); }
body:has(.market-content) :is(.site-header,.bottom-nav) { background:var(--glass-chrome); border-color:var(--glass-rim); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); }
.market-content { max-width:1000px; padding-block-start:var(--space-8); }
.browse-controls { display:grid; gap:var(--space-3); }
.browse-search { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,360px); align-items:center; gap:var(--space-5); padding:var(--space-6); border:1px solid var(--glass-rim); border-radius:var(--radius-dialog); background:var(--glass-panel); box-shadow:var(--glass-shadow); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.browse-search::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none; background-image:linear-gradient(var(--explore-grid) 1px,transparent 1px),linear-gradient(90deg,var(--explore-grid) 1px,transparent 1px); background-size:24px 24px; mask-image:linear-gradient(90deg,transparent 20%,#000 100%); }
.browse-controls h1 { font-size:clamp(1.75rem, 1.5rem + 1vw, 2.25rem); letter-spacing:-.035em; }
.category-list { display:flex; gap:var(--space-1); overflow-x:auto; scrollbar-width:none; }
.category { min-height:var(--tap); min-width:44px; flex:none; padding:var(--space-2) var(--space-3); background:transparent; color:var(--muted); border:1px solid transparent; border-radius:var(--radius-pill); font-size:var(--type-label); font-weight:600; }
.category:hover { color:var(--text); background:var(--surface-2); }
.category:focus-visible { outline-offset:-3px; }
.category[aria-pressed="true"] { border-color:var(--brand); color:var(--accent-text); background:var(--brand); font-weight:var(--weight-strong); }
.category[aria-pressed="true"]:focus-visible { outline-color:var(--accent-text); }
.search-box { display:flex; align-items:center; gap:var(--space-2); min-width:0; min-height:max(48px,var(--tap)); padding-inline:var(--space-4); border:1px solid var(--control-border); border-radius:var(--radius-pill); background:var(--glass-control); color:var(--muted); }
.search-box:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
.search-box input { border:0; outline:none; width:100%; min-width:0; background:transparent; color:var(--text); }
.search-box input:focus-visible { outline:none; }
.search-box input::placeholder { color:var(--muted); }
.listing-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:var(--space-2) var(--space-4); padding-block:var(--space-5) var(--space-3); }
.listing-heading h2 { font-size:var(--type-subtitle); line-height:1.3; }
.listing-heading p { color:var(--muted); font-size:var(--type-small); margin:var(--space-1) 0 0; }
.market-controls { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-2); }
.market-sort { position:relative; max-width:100%; color:var(--muted); }
.market-sort .input { appearance:none; border-color:var(--glass-rim); border-radius:var(--radius-pill); background:var(--glass-chrome); color:var(--muted); font-size:var(--type-label); font-weight:650; padding-inline:var(--space-3) var(--space-8); }
.market-sort .icon { position:absolute; inset-inline-end:var(--space-2); inset-block-start:50%; transform:translateY(-50%) rotate(90deg); pointer-events:none; }
.task-list { display:grid; gap:var(--space-2); }
.task-row { display:flex; align-items:center; gap:var(--space-2); padding-inline:var(--space-4); min-width:0; border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface); box-shadow:var(--shadow-panel); }
.market-content .task-row { border-color:var(--glass-rim); background:var(--glass-panel); box-shadow:var(--glass-shadow); }
@media (hover:hover) {
  .task-row:hover { border-color:var(--control-border); }
  .market-content .task-row:hover { background:var(--glass-chrome); }
}
.task-row-link { min-width:0; flex:1; display:grid; grid-template-columns:60px minmax(0,1fr) minmax(16rem,1.25fr) max-content; grid-template-areas:"cover title facts reward"; align-items:center; gap:var(--space-4); padding-block:var(--space-4); }
.task-row-link:focus-visible { outline-offset:2px; border-radius:var(--radius-small); }
.task-cover { grid-area:cover; position:relative; width:100%; aspect-ratio:1; border-radius:var(--radius); overflow:hidden; background:var(--surface-2); }
.task-art { position:relative; background:var(--surface-2); overflow:hidden; }
.task-cover > .task-art { position:absolute; inset:0; }
.sheet-art { position:absolute; width:300%; left:var(--art-column); top:50%; transform:translateY(var(--art-row-offset)); background-size:100% 100%; background-repeat:no-repeat; }
.sheet-one { aspect-ratio:3/2; background-image:url('/assets/campaigns.png'); }
.sheet-two { aspect-ratio:1; background-image:url('/assets/campaigns-extra.png'); }
.placeholder-art { display:grid; place-items:center; color:var(--brand-text); background:var(--accent-low); }
.placeholder-art .icon { width:24px; height:24px; }
.task-art img { width:100%; height:100%; object-fit:cover; }
.task-identity { grid-area:title; min-width:0; }
.task-identity h2 { font-size:1.0625rem; line-height:1.35; overflow-wrap:anywhere; }
.task-byline { color:var(--muted); font-size:var(--type-small); margin:var(--space-1) 0 0; overflow-wrap:anywhere; }
.card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-1); color:var(--muted); font-size:var(--type-small); }
.card-meta span + span::before { content:"·"; margin-right:var(--space-1); }
.task-facts { grid-area:facts; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-2); margin:0; }
.task-facts dt,.task-reward span { color:var(--muted); font-size:var(--type-small); }
.task-facts dd { margin:var(--space-1) 0 0; font-size:var(--type-label); font-weight:600; overflow-wrap:anywhere; }
.task-facts dd,.task-reward strong { font-variant-numeric:tabular-nums; }
.task-facts .task-slots { font-weight:var(--weight-strong); }
.task-slots span { color:var(--muted); font-weight:500; font-size:var(--type-small); }
.task-reward { grid-area:reward; display:grid; gap:var(--space-1); min-width:0; text-align:right; }
.task-reward strong { color:var(--brand-text); font-weight:var(--weight-strong); font-size:1.25rem; line-height:1.2; overflow-wrap:anywhere; }
.task-save[aria-pressed="true"] { color:var(--brand-text); background:var(--accent-low); }
.task-save[aria-pressed="true"] .icon { fill:var(--accent-low); }
.home-shortcuts { display:flex; flex-wrap:wrap; gap:var(--space-1) var(--space-5); padding-block:var(--space-2); }

.page-heading { margin:14px 0 22px; }
.panel { padding:var(--space-4); border:1px solid var(--border); border-radius:var(--radius-panel); background:var(--surface); min-width:0; }
.panel h2 { margin-bottom:var(--space-3); font-size:var(--type-subtitle); }
.muted { color:var(--muted); }
.highlight { color:var(--success); }
.eyeline { color:var(--muted); font-size:.84rem; font-weight:710; }
.back-link { display:inline-flex; align-items:center; gap:7px; color:var(--muted); margin:4px 0 16px; }
.back-link:hover { color:var(--text); }
.detail-top { display:grid; grid-template-columns:minmax(0,1fr) clamp(64px,16vw,120px); align-items:start; gap:var(--space-4); padding:var(--space-4) 0; border-block-end:1px solid var(--border); }
.detail-top .task-art { aspect-ratio:1; border-radius:var(--radius); }
.detail-title { min-width:0; }
.campaign-logo { width:30px; height:30px; object-fit:cover; border:1px solid var(--border); border-radius:8px; }
.detail-title h1 { font-size:var(--type-title); margin:var(--space-2) 0; overflow-wrap:anywhere; }
.detail-title .row-actions:not(:empty) { margin-top:var(--space-3); }
.detail-title p { margin:0; color:var(--muted); white-space:pre-wrap; }
.detail-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(270px,1fr); grid-template-areas:"rules summary"; gap:var(--space-4); margin-top:var(--space-4); align-items:start; }
.detail-main { grid-area:rules; display:grid; gap:var(--space-4); min-width:0; }
.detail-summary { grid-area:summary; border:1px solid var(--border); border-radius:var(--radius); }
.detail-summary h2 { margin-top:var(--space-1); color:var(--brand-text); font-size:var(--type-amount); font-variant-numeric:tabular-nums; }
.detail-summary dd small { display:block; color:var(--muted); }
.rules { margin:0 0 13px; }
.rules > div { display:grid; grid-template-columns:minmax(135px,1fr) 2.5fr; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.rules > div:last-child { border:0; }
.rules dt { color:var(--muted); font-weight:630; font-size:.86rem; }
.rules dt .icon { margin-right:5px; }
.rules dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.detail-summary .rules > div { grid-template-columns:1fr 1fr; }
.detail-summary dd { text-align:right; }
.notice { padding:10px 12px; margin:10px 0 15px; border-left:2px solid var(--success); border-radius:0 8px 8px 0; background:var(--surface-2); color:var(--muted); font-size:.88rem; }
.closed-button { opacity:.75; }
.row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.plain-button { display:inline-block; color:var(--muted); background:transparent; border:0; padding:8px 0; font-size:.88rem; font-weight:620; }
.plain-button:hover { color:var(--text); text-decoration:underline; text-underline-offset:3px; }
.empty { display:grid; justify-items:center; align-content:center; gap:8px; padding:44px 20px; text-align:center; border-block:1px solid var(--border); background:var(--surface); }
.empty > .icon { width:29px; height:29px; color:var(--success); margin-bottom:4px; }
.empty p { color:var(--muted); margin:0 0 5px; }
.empty.standalone { min-height:300px; }
.empty.standalone h1 { font-size:clamp(1.3rem,3vw,2rem); }
.activity-list { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--space-2); }
.activity-header { display:flex; flex-wrap:wrap; gap:10px; align-items:start; justify-content:space-between; }
.activity-header h2 { margin:2px 0 8px; }
.activity-card > p { color:var(--muted); font-size:.87rem; }
.activity-counts { display:flex; flex-wrap:wrap; gap:5px 12px; color:var(--muted); font-size:.84rem; margin:-.4rem 0 1rem; }
.activity-card details { margin:0 0 12px; color:var(--muted); }
.status { display:inline-flex; padding:4px 8px; min-height:25px; align-items:center; border-radius:7px; color:var(--muted); border:1px solid var(--border); background:var(--surface-2); font-size:.76rem; font-weight:750; }
.status-paid, .status-awarded, .status-qualified, .status-published, .status-open { color:var(--success); background:var(--accent-low); }
.status-rejected, .status-below_threshold, .status-not_selected { color:var(--danger); background:var(--danger-bg); }
.status-submitted, .status-supplement, .status-reviewing, .status-reserved { color:var(--warning); background:var(--warning-bg); }
.income-stats { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:15px; }
.stat.income-stat-link { padding-inline-end:36px; }
.income-stat-link:hover { border-color:var(--success); }
.income-stat-link .icon { position:absolute; inset-inline-end:10px; color:var(--success); }
.income-stat-link small { display:block; margin-top:5px; }
.stat.pending-income-total { padding:0 0 12px; margin-bottom:13px; min-height:0; border:0; border-bottom:1px solid var(--border); border-radius:0; }
.personal-panel { margin-top:15px; max-width:850px; }
.notice-row { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--border); }
.notice-row:last-child { border:0; }
.notice-row > div { flex:1; min-width:0; }
.notice-row p, .notice-row small { margin:2px 0 0; color:var(--muted); font-size:.86rem; }
.legal { max-width:840px; }
.legal p { color:var(--muted); }
.legal a { text-decoration:underline; text-underline-offset:3px; color:var(--success); }

.form-panel { max-width:760px; }
.profile-top { display:flex; align-items:center; gap:13px; margin-bottom:19px; }
.profile-top p, .account-info p { margin:0; color:var(--muted); }
.account-page { max-width:var(--reading-width); margin-inline:auto; }
.account-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.account-heading h1 { font-size:var(--type-title); letter-spacing:-.025em; overflow-wrap:anywhere; }
.page-content.profile-content { padding-top:12px; }
.profile-heading { margin-bottom:10px; }
.payout-details dd { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.payout-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 16px; padding:12px 0; }
.payout-row + .payout-row { border-top:1px solid var(--border); }
.payout-row > div:last-child { display:grid; justify-items:start; gap:5px; }
.payout-row p,.payout-row small { color:var(--muted); margin:0; overflow-wrap:anywhere; }
.account-menu { min-width:44px; height:44px; background:var(--surface); border-color:var(--border); color:var(--text); }
.account-menu .icon { width:22px; height:22px; }
.profile-identity-copy { min-width:0; }
.profile-identity h2 { margin:1px 0 3px; font-size:clamp(1.42rem,5vw,2.1rem); letter-spacing:-.055em; overflow-wrap:anywhere; }
.profile-identity p { color:var(--muted); margin:0 0 12px; overflow-wrap:anywhere; }
.profile-identity .profile-bio { color:var(--text); white-space:pre-wrap; }
.profile-avatar { width:clamp(56px,15vw,88px); height:clamp(56px,15vw,88px); border-radius:30%; font-size:1.7rem; border:1px solid var(--border); }
.profile-balance { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; margin-block:var(--space-4); padding:var(--space-4); border:1px solid transparent; border-radius:var(--radius-panel); background:var(--accent-low); color:var(--brand-text); }
.profile-balance-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:var(--radius); background:var(--surface); color:var(--brand-text); }
.profile-balance strong { display:block; font-size:clamp(1.44rem,6vw,2rem); line-height:1.14; color:var(--brand-text); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.profile-balance small { display:block; font-size:.72rem; color:var(--muted); margin-top:4px; }
.profile-balance-link { display:flex; align-items:center; gap:3px; font-size:.78rem; }
.profile-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.profile-stat:last-child:nth-child(odd) { grid-column:1/-1; }
.profile-stat { display:block; min-width:0; border:1px solid var(--border); border-radius:14px; padding:12px 14px; background:var(--surface); }
.profile-stat:hover { border-color:var(--success); }
.profile-stat-label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.84rem; }
.profile-stat-label .icon { color:var(--success); }
.profile-stat strong { display:block; font-size:1.37rem; line-height:1.14; margin-top:6px; overflow-wrap:anywhere; }
.profile-stat small { color:var(--muted); font-size:.73rem; }
.settings-list,.inbox-list { overflow:hidden; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:var(--space-3); }
.settings-row { min-height:55px; display:grid; grid-template-columns:35px 1fr auto; align-items:center; gap:12px; padding:7px 13px; }
button.settings-row { width:100%; border:0; background:transparent; color:inherit; text-align:left; }
button.settings-row:disabled { cursor:default; }
.settings-row + .settings-row,.inbox-row + .inbox-row { border-top:1px solid var(--border); }
.settings-row:hover,.inbox-row:hover { background:var(--surface-2); }
.settings-row small { display:block; font-size:.78rem; color:var(--muted); }
.settings-glyph { width:35px; height:35px; display:grid; place-items:center; border-radius:10px; background:var(--accent-low); color:var(--success); }
.settings-row > .icon { color:var(--muted); }
.settings-signout { margin-top:21px; }
.settings-form { padding:16px; margin-bottom:13px; }
.settings-form .settings-form { padding:0; margin:0; }
.settings-form h2,.settings-group h2 { font-size:1.08rem; margin:0 0 12px; }
.settings-form .text-link { color:var(--success); }
.permissions-list { margin-bottom:15px; }
.inbox-row { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:72px; padding:10px 13px; }
.inbox-row.unread { background:color-mix(in srgb,var(--accent-low),var(--surface) 68%); }
.inbox-badge { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--accent-low); color:var(--success); }
.inbox-badge-wallet { background:var(--accent-low); color:var(--brand-text); }
.inbox-badge-system { background:var(--surface-2); color:var(--muted); }
.inbox-copy { min-width:0; display:grid; gap:2px; }
.inbox-copy strong,.inbox-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inbox-copy small,.inbox-meta { color:var(--muted); font-size:.76rem; }
.inbox-meta { display:grid; justify-items:end; gap:5px; white-space:nowrap; }
.inbox-row .attention-dot { top:9px; right:8px; }
.inbox-empty { padding:18px; margin:0; }
.notification-settings { padding:0; }
.notification-settings input[type="checkbox"] { accent-color:var(--success); width:19px; height:19px; }
.message-head { display:flex; align-items:center; gap:13px; margin:5px 0 15px; }
.message-head h1 { font-size:1.35rem; }
.message-head p,.support-thread p,.support-thread small { margin:4px 0 0; color:var(--muted); font-size:.81rem; }
.message-bubble { width:fit-content; max-width:90%; padding:12px 15px; margin:7px 0 13px; border:1px solid var(--border); border-radius:5px 15px 15px 15px; background:var(--surface); color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.message-bubble.own-message { margin-left:auto; margin-right:0; border-radius:15px 5px 15px 15px; background:var(--accent-low); }
.support-thread { margin-bottom:14px; padding:12px; border:1px solid var(--border); border-radius:13px; }
.support-thread > p { text-align:right; }
.rules-summary p:last-of-type { margin-bottom:12px; }
.account-info { margin-bottom:16px; }
.field { display:flex; flex-direction:column; min-width:0; gap:6px; font-size:.89rem; font-weight:680; margin-bottom:13px; }
.field small { color:var(--muted); font-size:.77rem; font-weight:510; }
.input { min-width:0; width:100%; min-height:var(--tap); padding:var(--space-2) var(--space-3); border:1px solid var(--control-border); border-radius:var(--radius-small); background:var(--surface); color:var(--text); font-weight:500; }
textarea.input { resize:vertical; }
.input::placeholder { color:var(--dim); }
select.input { padding-inline-end:var(--space-3); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.check-field { display:flex; gap:7px; align-items:center; color:var(--muted); font-size:.86rem; margin:4px 0 14px; }
.check-field input { accent-color:var(--accent); }
.modal { width:min(490px,calc(100vw - 24px)); max-height:calc(100dvh - 34px); overflow:auto; padding:22px; border:1px solid var(--border); border-radius:var(--radius-dialog); background:var(--surface); color:var(--text); }
.modal::backdrop { background:#000a; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.dialog-head h2 { font-size:1.37rem; }
.dialog-form > .button.primary { min-width:110px; }
.dialog-form a { color:var(--success); text-decoration:underline; text-underline-offset:3px; }
.form-error { margin:6px 0 0; color:var(--danger); font-size:.84rem; }
.form-error:empty { display:none; }
.auth-choice { margin-top:10px; }
.demo-login { margin-top:11px; padding-top:13px; border-top:1px solid var(--border); }
.demo-login h3 { font-size:1rem; }
.demo-login p { color:var(--muted); font-size:.84rem; margin:4px 0 8px; }
.demo-login .demo-error { color:var(--danger); }
.demo-login > div { display:flex; flex-wrap:wrap; gap:7px; }
.submit-instructions { color:var(--muted); font-size:.9rem; }
.submit-instructions strong { color:var(--text); }
.ownership-proof .row-actions { align-items:end; }
.ownership-proof .field { margin:0; width:min(100%,14rem); }
.proof-optional { margin:0 0 10px; color:var(--muted); font-size:.85rem; }
.proof-optional[open] > summary { margin-bottom:7px; }
.proof-link-field { margin-bottom:0; }
.proof-link-feedback { margin:5px 0 12px; color:var(--muted); font-size:.84rem; }
.proof-link-feedback p { margin:0; }
.proof-link-feedback [data-status="error"] { color:var(--danger); }
.proof-link-feedback [data-status="success"] { color:var(--success); }
.proof-form > .primary { margin-top:2px; }
.campaign-photos { margin-top:16px; }
.photo-strip { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:12px 2px 3px; }
.photo-strip a { flex:0 0 min(80%,430px); scroll-snap-align:start; }
.photo-strip img { width:100%; aspect-ratio:4/3; object-fit:contain; border-radius:10px; background:var(--bg); }
.audience-chart { margin:0 0 16px; }
.audience-chart > div { display:grid; grid-template-columns: minmax(85px,auto) minmax(70px,1fr) 3em; gap:8px; align-items:center; max-width:620px; }
.audience-chart meter { width:100%; accent-color:var(--success); }
.toast { display:none; position:fixed; z-index:12; right:18px; bottom:18px; max-width:min(370px,calc(100vw - 36px)); padding:11px 14px; border:1px solid var(--success); border-radius:10px; background:var(--surface-2); color:var(--text); font-size:.9rem; }
.toast.shown { display:block; }
.toast[data-type="error"] { border-color:var(--danger); }

.wallet-banner,.wallet-panel { display:flex; flex-wrap:wrap; align-items:center; gap:10px 17px; padding:12px 16px; }
.wallet-banner { margin-top:13px; border:1px solid var(--border); border-radius:var(--radius); background:var(--accent-low); }
.wallet-banner .icon { color:var(--success); width:24px; height:24px; }
.wallet-banner > div,.wallet-panel > div:first-child { flex:1; }
.wallet-banner strong,.wallet-panel strong,.ranking-total strong { display:block; font-size:clamp(1.65rem,5vw,2.45rem); color:var(--success); line-height:1.15; }
.wallet-panel p { margin:5px 0 0; }
.notice-link { border-radius:7px; padding-inline:7px; }
.notice-link:hover { background:var(--surface-2); }
.notice-link > span:last-child { flex:none; color:var(--success); font-size:.8rem; }
.role-buttons { display:flex; flex-wrap:wrap; gap:7px; }
.role-buttons button { display:grid; justify-items:start; gap:1px; padding:6px 10px; }
.role-buttons small { color:var(--muted); font-weight:500; }
.choose-role { margin-bottom:11px; padding-block:13px; }
.choose-role .role-buttons { margin-top:8px; }
.settings-panel { margin-top:12px; }
.settings-panel h3 { margin:0 0 5px; }
.theme-choices [aria-pressed="true"] { background:var(--accent-low); border-color:var(--success); color:var(--success); }
.personal-signout { display:flex; justify-content:flex-end; padding-top:14px; }
.invite-code { display:inline-block; padding:8px 12px; background:var(--accent-low); border-radius:9px; overflow-wrap:anywhere; font-size:1rem; user-select:all; }
.invite-code[hidden] { display:none; }
.ranking-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.ranking-list { padding-left:21px; margin-bottom:0; }
.ranking-list li { padding:6px 0; border-bottom:1px solid var(--border); }
.ranking-list li strong { float:right; }
.trend-chart svg { width:100%; max-height:220px; display:block; }
.trend-caption { display:flex; justify-content:space-between; color:var(--muted); font-size:.8rem; }
.trend-legend { display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-4); margin-block:var(--space-3); font-size:var(--type-label); }
.trend-legend span { display:inline-flex; align-items:center; gap:var(--space-2); }
.trend-legend span::before { content:""; width:var(--space-5); border-top:2px solid var(--brand); }
.trend-legend .trend-reported::before { border-top:2px dashed var(--dim); }
.preview-label { color:var(--muted); font-size:.82rem; font-weight:690; }
.detail-summary .slots-strong { color:var(--brand-text); font-size:1.125rem; font-weight:var(--weight-strong); }
.profile-stats { display:block; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-panel); box-shadow:var(--shadow-panel); }
.profile-stat { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) auto; gap:var(--space-1) var(--space-4); min-height:var(--tap); padding:var(--space-3); border:0; border-radius:0; }
.profile-stat:first-child { border-start-start-radius:inherit; border-start-end-radius:inherit; }
.profile-stat:last-child { border-end-start-radius:inherit; border-end-end-radius:inherit; }
.profile-stat + .profile-stat { border-top:1px solid var(--border); }
.profile-stat:hover,.profile-balance:hover { background:var(--surface-2); }
.profile-stat strong { margin:0; font-size:1rem; text-align:right; font-variant-numeric:tabular-nums; }
.profile-stat small { grid-column:2; text-align:right; }
.profile-stat-label { color:var(--text); }
.profile-stat-label .icon { color:var(--muted); }
.profile-identity { display:flex; justify-content:space-between; align-items:start; gap:var(--space-4); background:transparent; border:0; border-bottom:1px solid var(--border); padding:var(--space-2) 0 var(--space-5); }
.profile-avatar { border-radius:50%; width:64px; height:64px; }
.choose-role { margin:var(--space-4) 0 0; }
.wallet-panel { background:var(--accent-low); border-color:transparent; }
.wallet-panel strong,.ranking-total strong { font-size:var(--type-amount); color:var(--brand-text); font-variant-numeric:tabular-nums; }

@media (max-width:980px) {
  .wide { width:calc(100% - 48px); }
  .desktop-nav { gap:var(--space-4); }
  .account-button { justify-content:center; padding:0; }
  .account-button > span:last-child { display:none; }
  .task-row-link { grid-template-columns:48px minmax(0,1fr) minmax(13.5rem,1.25fr) max-content; gap:var(--space-3); }
}
@media (max-width:820px) {
  .wide { width:calc(100% - 32px); }
  .header-inner { min-height:60px; gap:var(--space-2); }
  .desktop-nav { display:none; }
  .sign-in span { display:none; }
  .sign-in { margin-left:0; padding-inline:var(--space-2); }
  .brand-mark { gap:var(--space-2); }
  .brand-symbol { width:32px; height:32px; }
  .page-content { padding-block:var(--space-4) var(--space-8); }
  .site-footer { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  .bottom-nav { position:fixed; display:flex; bottom:0; inset-inline:0; z-index:5; min-height:64px; padding:0 var(--space-1) env(safe-area-inset-bottom); border-top:1px solid var(--border); background:var(--surface); }
  .bottom-nav a { display:flex; flex-direction:column; flex:1; min-width:0; min-height:var(--tap); align-items:center; justify-content:center; gap:var(--space-1); color:var(--muted); font-size:var(--type-small); font-weight:600; }
  .bottom-nav .icon { width:20px; height:20px; }
  .bottom-nav .active { color:var(--brand-text); font-weight:var(--weight-strong); }
  .bottom-nav .active .nav-icon { background:var(--accent-low); border-radius:var(--radius-pill); }
  .bottom-nav .nav-icon { padding:var(--space-1) var(--space-2); }
  body:has(.market-content) .bottom-nav { border-radius:var(--radius-dialog) var(--radius-dialog) 0 0; box-shadow:0 -4px 18px rgba(60,48,111,.08); }
  .market-content { padding-block-start:var(--space-5); }
  .browse-search { grid-template-columns:minmax(0,1fr); gap:var(--space-3); padding:var(--space-4); }
  .detail-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"summary" "rules"; }
  .activity-list,.ranking-columns { grid-template-columns:minmax(0,1fr); }
  .toast { bottom:calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width:680px) {
  .task-row { position:relative; padding-inline:var(--space-3); }
  .task-row-link { grid-template-columns:var(--task-cover-size,56px) minmax(0,1fr); grid-template-areas:"cover title" "cover reward" "facts facts"; align-items:start; gap:var(--space-1) var(--space-3); }
  .task-row:has(.task-save) .task-row-link { grid-template-columns:var(--task-cover-size,56px) minmax(0,1fr) var(--tap); grid-template-areas:"cover title ." "cover reward ." "facts facts facts"; }
  .task-facts { grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr); margin-top:var(--space-2); }
  .task-facts > :nth-child(2) { text-align:center; }
  .task-facts > :last-child { text-align:right; }
  .task-reward { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 var(--space-2); text-align:start; }
  .task-reward strong { font-size:1.125rem; }
  .task-save { position:absolute; inset-block-start:var(--space-2); inset-inline-end:var(--space-2); }
  .task-facts dd { font-size:var(--type-small); }
  .task-facts .task-slots { font-size:1rem; line-height:1.25; }
}
@media (max-width:420px) {
  .header-inner,.header-actions { gap:var(--space-1); }
  .header-actions .icon-button { width:44px; height:44px; }
  .header-actions .role-switch { padding-inline:4px; font-size:.75rem; }
  .brand-mark { gap:var(--space-1); }
  .brand-name { font-size:1rem; }
}
@media (max-width:380px) {
  .wide { width:calc(100% - 24px); }
  .brand-name small { display:none; }
  .rules > div,.form-grid { grid-template-columns:minmax(0,1fr); }
  .task-row { --task-cover-size:48px; }
  .bottom-nav a { font-size:.72rem; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
@media (prefers-reduced-transparency:reduce) {
  body:has(.market-content) { --glass-panel:var(--surface); --glass-chrome:var(--surface); --glass-control:var(--surface); --glass-rim:var(--border); }
  body:has(.market-content) :is(.site-header,.bottom-nav),.browse-search { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
