/* Final UI audit fixes. Keep this after the component stylesheets. */
html{scroll-padding-block:18px 110px}main{padding-bottom:calc(125px + env(safe-area-inset-bottom))}button,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #d9c483;outline-offset:3px}button[disabled]{cursor:not-allowed}
.home-final .refresh-icon,.army-home #copyReferral,.profile-home #copyMinerId{width:44px;height:44px;min-height:44px;flex-shrink:0}.profile-home #copyMinerId{padding:13px}.home-final .refresh-icon{display:grid;place-items:center}.home-final .refresh-icon svg{position:static;width:18px;height:18px;transform:none}
.quests-page .quest-mission button,.mine-subpage .segments button,.ranks-simple #rankFilters button{min-height:44px!important}.future-adventure>summary,.mission-help>summary,.achievement-detail>summary{min-height:44px;display:flex;align-items:center}.future-adventure>summary{justify-content:space-between;gap:12px}.future-adventure>summary span{font-size:9px;white-space:nowrap}
.mine-subpage .planned-item p,.mine-subpage .planned-item small,.profile-home .language-coverage,.home-final #coreHint{font-size:11px}.home-final .mine-disclaimer,.ranks-simple #rankDisclosure,.army-home #armyDisclosure,.adventure-save-status{font-size:10px;line-height:1.7}.home-final .quick-actions small,.home-final .session-metrics p,.army-home #teamSummary,.profile-home .identity-caption{font-size:11px}.home-final .core-tag,.subpage-kicker,.mission-state,.objective-label,.train-goal-label,.rank-board-label,.army-home #armyMetrics small{font-size:9px}.army-member-status{font-size:9px}.army-member-row>strong{font-size:12px}.profile-home #minerId,.profile-home #profileXpTrack>small,.profile-home .profile-level small{font-size:10px}.profile-home #miningStats .list-row>span{font-size:11px}.profile-home .achievement-detail summary{font-size:12px}.profile-home .achievement-detail p,.profile-home .achievement-detail small{font-size:11px}.mission-best{line-height:1.7}
#playableMission canvas{display:block;max-width:100%;touch-action:none}#playableMission .game-hud{position:static}.garden-countdown{margin-bottom:14px}#playableMission .mission-telemetry{line-height:1.8}.mission-help-button{min-height:44px}.guide-top button{min-width:44px;min-height:44px}.guide-note{font-size:10px}.mission-result>p,.victory-unlock{line-height:1.7}.victory-stats small{font-size:9px}.victory-score>small{font-size:10px}.mission-result,#missionHelpDialog{overscroll-behavior:contain}
html[dir=rtl] .profile-home .profile-level>div+div{border-left:0;border-right:1px solid var(--line)}html[dir=rtl] .miner-id-line,html[dir=rtl] .referral-code-row strong{unicode-bidi:plaintext}html[dir=rtl] .subpage-hero,html[dir=rtl] .rank-command,html[dir=rtl] .army-heading{text-align:start}
html[data-theme=light] .home-final .economy-details,html[data-theme=light] .home-final .economy-details[open],html[data-theme=light] .home-final .effective-rate{background:#edf3e7!important;color:#28442d}html[data-theme=light] .home-final .rate-component strong,html[data-theme=light] .home-final .emission-label strong,html[data-theme=light] .home-final .emission-value strong{color:#335736}html[data-theme=light] .home-final .quick-actions #openQuests{background:#dceede}html[data-theme=light] .home-final .quick-actions #openLedger{background:#f3e8ca}html[data-theme=light] .home-final .adventure-banner{background:linear-gradient(120deg,#e8dff4,#edf2e5)}html[data-theme=light] .home-final .adventure-banner strong{color:#314735}html[data-theme=light] .home-final .adventure-banner>span:not(.chapter-tag){color:#506448}html[data-theme=light] .home-final .roadmap-shortcut{background:#e5edf3;color:#34546b}html[data-theme=light] .army-home .army-member-row>strong{color:#2d4c32}html[data-theme=light] .army-member-status.qualified{color:#23633b}html[data-theme=light] .army-member-status.pending{color:#80631d}html[data-theme=light] .profile-home .identity-caption,html[data-theme=light] .profile-home #minerId,html[data-theme=light] .profile-home #miningStats .list-row>span,html[data-theme=light] .profile-home .achievement-detail p{color:#52684d}html[data-theme=light] .colony-ending{background:linear-gradient(135deg,#e3efd9,#f3f6e9);color:#25442d}html[data-theme=light] .colony-ending>p,html[data-theme=light] .next-chapter p{color:#4a664d}
@media(max-width:370px){.rank-command .eyebrow,.army-home .army-heading .eyebrow{letter-spacing:.7px;font-size:8px}.ranks-simple .rank-command h1{font-size:32px}.ranks-simple #rankFilters button{font-size:10px;gap:4px}.ranks-simple #rankFilters button small{font-size:7px;padding:3px}.home-final .destination-heading>small{display:none}.army-member-row{gap:7px}.army-member-status{font-size:8px;padding:5px}.profile-home #name{font-size:20px}.home-final .core-caption{flex-wrap:wrap}.mission-result{padding:18px}.victory-stats{grid-template-columns:repeat(2,1fr)}.colony-ending{padding:19px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* Light surfaces need darker accents than the luminous dark-theme palette. */
html[data-theme=light] .eyebrow,html[data-theme=light] .subpage-kicker,html[data-theme=light] .chapter-tag,html[data-theme=light] .core-tag{color:#795719!important}
html[data-theme=light] h1 em,html[data-theme=light] .army-bonus strong,html[data-theme=light] .army-bonus-value{color:#866019!important}
html[data-theme=light] .home-final .refresh-icon,html[data-theme=light] #copyReferral,html[data-theme=light] #copyMinerId{background:#dfebe3!important;color:#22563b!important;border-color:#8aa895!important}
html[data-theme=light] button:disabled{opacity:.75;color:#40554b!important;background:#dce5df!important}
html[data-theme=light] #rankFilters small,html[data-theme=light] .army-home #armyMetrics small{color:#52634d!important}

/* Mining core: show the ANIMATED webm, hide the static PNG mascot (user preference).
   mix-blend-mode:screen drops the webm's black background on the dark core so no black box. */
#mineRing .core-mascot,.core-video-playing .core-mascot{display:none!important}
#coreAnimation,.home-final .orbit #coreAnimation,.home-final .orbit video#coreAnimation,.orbit #coreAnimation{display:block!important;position:absolute;inset:13%;width:74%;height:74%;object-fit:contain;border-radius:0;background:transparent!important;mix-blend-mode:screen!important;z-index:4;pointer-events:none;animation:coreBeatSoft 3.2s ease-in-out infinite}
@keyframes coreBeatSoft{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@media(prefers-reduced-motion:reduce){#coreAnimation{animation:none}}

/* Fix: single/few-user leaderboard podium — keep each place a fixed width so one
   user shows centred as #1 instead of a stretched full-width pedestal. */
.rank-podium{gap:14px}
.rank-podium .podium-place{flex:0 1 136px;max-width:150px}

/* Fix: roadmap "A stronger foundation" cards — icon + heading/text alignment.
   mine-pages.css turned these into padded cards, leaving the absolute icon
   overlapping the text. Lay them out as icon | text with a grid instead. */
.roadmap-foundations>div{display:grid;grid-template-columns:24px 1fr;column-gap:12px;align-items:start}
.roadmap-foundations .icon{position:static;left:auto;right:auto;top:auto;width:22px;height:22px;margin-top:1px;grid-row:1 / span 2}
.roadmap-foundations h3{grid-column:2;margin:0 0 5px}
.roadmap-foundations p{grid-column:2}

/* ===== Adventure extensions (audit74): server save, loadout, remix, colony structures) ===== */
/* Daily expedition remix banner */
.expedition-remix{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,#39edaf0f,transparent 70%),var(--card)}
.expedition-remix .remix-tag{font-size:8px;letter-spacing:1px;color:var(--mint);writing-mode:horizontal-tb;flex:0 0 auto}
.expedition-remix .remix-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.expedition-remix .remix-body strong{font-size:14px;color:var(--text)}
.expedition-remix .remix-body small{font-size:11px;color:var(--dim)}

/* Pre-expedition loadout panel */
.loadout-panel{display:flex;flex-direction:column;gap:6px;margin:0 0 18px}
.loadout-panel .loadout-intro{margin:0 0 6px;font-size:11px}
.loadout-group{display:flex;flex-direction:column;gap:4px}
.loadout-group-title{font-size:9px;letter-spacing:1px;color:var(--dim);text-transform:uppercase}
.loadout-panel .loadout-segments{margin:0 0 4px}
.loadout-panel .loadout-note{font-size:11px;min-height:15px}

/* Colony structure tiles (interactive) */
#colonyStructures{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.colony-structure{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:start;min-height:120px;color:var(--text);cursor:pointer}
.colony-structure .building-icon{height:40px;width:40px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(0deg,#39edaf12,transparent);border:1px solid var(--line);color:var(--mint)}
.colony-structure h3{margin:2px 0 0;font-size:14px}
.colony-structure p{margin:0;font-size:11px}
.colony-structure .structure-open{margin-top:auto;font-size:11px;color:var(--mint);font-weight:650}

/* Colony structure dialog */
.colony-dialog{width:min(520px,92vw);max-height:84vh;overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--text);padding:18px}
.colony-dialog::backdrop{background:#02100bcc}
.colony-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.colony-dialog-head h2{margin:0;font-size:18px}
.colony-dialog-close{flex:0 0 auto;min-width:38px;padding:6px 10px}
.colony-dialog-body{display:flex;flex-direction:column;gap:10px}
.colony-dialog-body>p{margin:0}

/* Hangar rows */
.structure-row{display:flex;align-items:center;gap:10px;padding:12px}
.structure-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.structure-info strong{font-size:13px}
.structure-info small{font-size:11px;color:var(--dim)}
.structure-row button{flex:0 0 auto;min-height:38px}
.structure-row.structure-locked{opacity:.6}

/* Archive entries */
.archive-entry{padding:12px}
.archive-entry summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none}
.archive-entry summary strong{font-size:13px}
.archive-entry.archive-locked summary strong{color:var(--dim)}
.archive-entry p{margin:8px 0 0;font-size:12px;line-height:1.5}

/* Army Beacon */
.beacon-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:8px}
.beacon-note{padding:12px}
.beacon-note h3{margin:4px 0 2px;font-size:14px}

/* Hall of Legends */
.hall-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hall-medals{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hall-medal{display:flex;flex-direction:column;gap:3px;padding:12px}
.hall-medal-icon{font-size:20px}
.hall-medal strong{font-size:12px}
.hall-medal small{font-size:10px;color:var(--dim)}
.hall-medal.hall-locked{opacity:.55}
.hall-trophy{text-align:center}

html[data-theme=light] .expedition-remix,html[data-theme=light] .colony-dialog,html[data-theme=light] .colony-structure,html[data-theme=light] .structure-row,html[data-theme=light] .archive-entry,html[data-theme=light] .beacon-note,html[data-theme=light] .hall-medal{background:#f3f8f4!important;color:var(--text)}

@media(prefers-reduced-motion:reduce){.expedition-remix,.colony-structure{transition:none}}

/* ---- Loadout selectors: 2-col chip grid so all options (incl 4 mutations) fit, no cut-off ---- */
.mine-subpage .segments.loadout-segments,.loadout-segments{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0;border:0;margin:0 0 6px;overflow:visible;background:none}
.mine-subpage .segments.loadout-segments button,.loadout-segments button{flex:none;width:auto;min-width:0;border:1px solid var(--line);border-radius:11px;padding:10px 8px;font-size:12.5px;line-height:1.2;white-space:normal;background:var(--panel2,#122018);color:var(--dim)}
.mine-subpage .segments.loadout-segments button[aria-pressed=true],.loadout-segments button[aria-pressed=true]{background:transparent;border-color:var(--mint);color:var(--mint);font-weight:700}
.mine-subpage .segments.loadout-segments>button:last-child:nth-child(odd),.loadout-segments>button:last-child:nth-child(odd){grid-column:1 / -1}
.loadout-panel .loadout-kicker,.loadout-panel>.eyebrow{margin-top:4px}

/* ---- Colony structure cards: even height, roomier, bottom-aligned Open ---- */
#colonyStructures.grid{grid-template-columns:1fr 1fr;gap:10px}
.colony-structure{min-height:148px;padding:15px;gap:7px;justify-content:flex-start}
.colony-structure .building-icon{width:42px;height:42px;margin-bottom:2px}
.colony-structure h3{font-size:14px;line-height:1.2}
.colony-structure p{font-size:11.5px;line-height:1.45;flex:1 1 auto}
.colony-structure .structure-open{margin-top:auto}

/* ---- Daily remix banner: clearer in-theme banner ---- */
#expeditionRemix{background:linear-gradient(120deg,#123a2a,#0c1a14);border:1px solid var(--line)}

/* ============================================================
   PREMIUM POLISH + MOTION LAYER (audit77)
   Goal: carry the Mine page's depth to every page (gold+violet
   accents, gradient panels, soft glow) and add subtle motion.
   Pure surface/motion over existing structure. Reduced-motion safe.
   ============================================================ */
:root{
  --gold:#d8c87a;
  --gold-soft:rgba(198,183,110,.085);
  --violet:#9a8cff;
  --violet-soft:rgba(154,140,255,.12);
}

/* --- Rich panel treatment: gold radial + warm gradient, like the Mine hero --- */
.card,.session-card,.balance-hero,.boost-card,.subpage-hero,.adventure-hero,
.quest-brief,.quest-command,.recruit-card,.achievement-card,.memory-card,
.rank-command,.rank-podium,.loadout-panel,.referral-code-row{
  background-image:
    radial-gradient(135% 85% at 100% 0%, var(--gold-soft), transparent 58%),
    radial-gradient(120% 90% at 0% 100%, var(--violet-soft), transparent 55%),
    linear-gradient(142deg, rgba(33,55,41,.60), rgba(11,27,20,.52));
  border:1px solid rgba(98,122,92,.34);
  box-shadow:0 12px 30px rgba(0,0,0,.30);
}

/* --- Accent typography: eyebrows/labels go warm gold (breaks the green monotony) --- */
.eyebrow,.kicker,.loadout-kicker,.quest-section-caption,.rank-board-label,
.emission-label,.rate-panel-heading{
  color:var(--gold)!important;
  letter-spacing:.14em;
}

/* --- Motion: page entrance (re-runs each time a screen's [hidden] is removed) --- */
@keyframes auFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes auPop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes auGlow{0%,100%{box-shadow:0 0 0 0 rgba(57,237,175,0)}50%{box-shadow:0 0 16px 1px rgba(57,237,175,.30)}}

.mine-home,.ranks-home,.army-home,.profile-home,
.mine-subpage,.adventure-home,.roadmap-home,.colony-ending{
  animation:auFadeUp .42s cubic-bezier(.2,.7,.25,1) both;
}

/* Staggered card reveal inside the visible screen */
section:not([hidden]) .card,
section:not([hidden]) .balance-hero,
section:not([hidden]) .recruit-card,
section:not([hidden]) .achievement-card,
section:not([hidden]) .colony-structure{
  animation:auFadeUp .5s cubic-bezier(.2,.7,.25,1) both;
}
section:not([hidden]) .card:nth-of-type(2){animation-delay:.05s}
section:not([hidden]) .card:nth-of-type(3){animation-delay:.10s}
section:not([hidden]) .card:nth-of-type(4){animation-delay:.15s}
section:not([hidden]) .colony-structure:nth-child(2){animation-delay:.06s}
section:not([hidden]) .colony-structure:nth-child(3){animation-delay:.12s}
section:not([hidden]) .colony-structure:nth-child(4){animation-delay:.18s}

/* --- Tactile feedback: press + hover on interactive surfaces --- */
.card,.list-row,.recruit-card,.achievement-card,.colony-structure,
.quest-command,.memory-card,.segments button,.structure-open,button{
  transition:transform .15s ease, box-shadow .22s ease, border-color .22s ease, background-color .2s ease;
}
.list-row:active,.recruit-card:active,.colony-structure:active,
.achievement-card:active,.quest-command:active,.segments button:active,button:active{
  transform:scale(.98);
}
@media(hover:hover){
  .card:hover,.list-row:hover,.colony-structure:hover,.recruit-card:hover,.achievement-card:hover{
    border-color:rgba(120,146,100,.60);
    box-shadow:0 16px 38px rgba(0,0,0,.36);
  }
}

/* --- Gentle living glow on key accents (nav active + live/core badges) --- */
nav a[aria-current],nav .active,[aria-current="page"]{
  animation:auGlow 3.4s ease-in-out infinite;
  border-radius:16px;
}

/* --- Adventure timeline: active node breathes (reveal + subtle pulse) --- */
@keyframes auRing{0%,100%{box-shadow:0 0 0 0 rgba(57,237,175,.22)}50%{box-shadow:0 0 0 7px rgba(57,237,175,0)}}

/* Respect reduced motion: kill all added motion */
@media(prefers-reduced-motion:reduce){
  .mine-home,.ranks-home,.army-home,.profile-home,.mine-subpage,
  .adventure-home,.roadmap-home,.colony-ending,
  section:not([hidden]) .card,section:not([hidden]) .balance-hero,
  section:not([hidden]) .recruit-card,section:not([hidden]) .achievement-card,
  section:not([hidden]) .colony-structure,
  nav a[aria-current],nav .active,[aria-current="page"]{
    animation:none!important;
  }
  .card,.list-row,.recruit-card,.achievement-card,.colony-structure,
  .quest-command,.memory-card,.segments button,.structure-open,button{
    transition:none!important;
  }
}

/* ===== Survivors strip (Quests page): survival score, season countdown, combo, weekly ===== */
.survivors-strip{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.surv-top{display:flex;justify-content:space-between;align-items:flex-start}
.surv-season{text-align:right}
.surv-eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--gold,#d8c87a);font-weight:700}
.surv-weekly-h{margin-top:6px}
.surv-score{font-size:26px;font-weight:800;color:var(--text,#edf8f2);line-height:1.1}
.surv-count{font-size:14px;font-weight:700;color:var(--mint,#39edaf);margin-top:2px}
.surv-combo,.surv-mission{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 11px;border:1px solid var(--line,#284137);border-radius:11px;
  background:rgba(57,237,175,.07)}
.surv-combo span,.surv-mission span{font-size:12.5px;color:var(--text,#edf8f2);line-height:1.3}
.btn-chip{flex:none;border:1px solid var(--mint,#39edaf);color:var(--mint,#39edaf);background:transparent;
  border-radius:9px;padding:7px 14px;font-size:12px;font-weight:700}
.btn-chip:disabled{opacity:.45;border-color:var(--line,#284137);color:var(--dim,#9fb7ac)}

/* ===== Squad panel (Army screen) ===== */
.squad-panel{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.squad-head{display:flex;justify-content:space-between;align-items:flex-start}
.squad-name{font-size:19px;font-weight:800;color:var(--text,#edf8f2);line-height:1.1}
.squad-sub{font-size:11px;color:var(--dim,#9fb7ac);margin-top:2px}
.squad-score{text-align:right}
.squad-score-v{font-size:22px;font-weight:800;color:var(--mint,#39edaf);line-height:1}
.squad-form{display:flex;gap:8px}
.squad-input{flex:1;min-width:0;background:rgba(57,237,175,.06);border:1px solid var(--line,#284137);
  border-radius:10px;padding:9px 11px;color:var(--text,#edf8f2);font-size:12.5px}
.squad-input::placeholder{color:var(--dim,#9fb7ac)}
.squad-leave{align-self:flex-start;border-color:#5a3a3a;color:#e89a9a}

/* ===== Quests banner rounded (was square → looked cut) + social quest logos ===== */
.quest-command{border-radius:18px!important;overflow:hidden;padding:22px 22px!important}
.quest-mission{position:relative}
.quest-mission .quest-logo{float:left;width:34px;height:34px;margin:1px 12px 4px 0;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(57,237,175,.08);border:1px solid rgba(57,237,175,.28)}
.quest-mission .quest-logo svg{width:19px;height:19px}

/* ===== LIGHT THEME: override the dark card gradient so light mode looks clean ===== */
html[data-theme="light"] .card,
html[data-theme="light"] .session-card,
html[data-theme="light"] .balance-hero,
html[data-theme="light"] .boost-card,
html[data-theme="light"] .subpage-hero,
html[data-theme="light"] .adventure-hero,
html[data-theme="light"] .quest-brief,
html[data-theme="light"] .quest-command,
html[data-theme="light"] .recruit-card,
html[data-theme="light"] .achievement-card,
html[data-theme="light"] .memory-card,
html[data-theme="light"] .rank-command,
html[data-theme="light"] .rank-podium,
html[data-theme="light"] .loadout-panel,
html[data-theme="light"] .referral-code-row{
  background-image:
    radial-gradient(135% 85% at 100% 0%, rgba(154,125,30,.07), transparent 58%),
    linear-gradient(142deg, rgba(255,255,255,.85), rgba(237,244,238,.70));
  border:1px solid rgba(23,60,46,.12);
  box-shadow:0 8px 22px rgba(20,40,30,.05);
}
/* light-theme: subtle tint for strip/squad rows + keep text dark */
html[data-theme="light"] .surv-combo,
html[data-theme="light"] .surv-mission,
html[data-theme="light"] .squad-input,
html[data-theme="light"] .quest-logo{background:rgba(23,149,107,.08)}
html[data-theme="light"] .surv-score,
html[data-theme="light"] .squad-name{color:#16281e}
html[data-theme="light"] .surv-count,
html[data-theme="light"] .squad-score-v{color:#15916a}
html[data-theme="light"] .btn-chip{border-color:#15916a;color:#15916a}

/* brand logo in header + home title subline (inline styles are CSP-blocked, so use CSS) */
.brand.brand-withlogo{display:flex;align-items:center;gap:9px}
.brand.brand-withlogo .brand-logo{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
.mine-intro h1 em.h1-sub{font-size:.52em;letter-spacing:0;line-height:1.1;color:#b5dfbb}

/* ledger rows: category-aware, aligned (source+date left, amount right) */
#ledgerList .ledger-entry.led-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px!important}
#ledgerList .ledger-entry.led-row:before{display:none!important;content:none!important}
.led-left{min-width:0;flex:1}
.led-src{font-size:13px;font-weight:650;color:#edf8f2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.led-at{font-size:10px;color:#9fb7ac;margin-top:3px;letter-spacing:.2px}
.led-amt{font-size:13.5px;font-weight:800;color:#39edaf;white-space:nowrap;flex:0 0 auto}
.led-amt.neg{color:#ff6b6b}

/* Profile: Documents / whitepaper link row */
.doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;color:inherit;padding:4px 0}
.doc-row .setting-label{display:flex;align-items:center;gap:10px}
.doc-row .doc-ext{font-size:12px;font-weight:700;letter-spacing:.4px;color:#39edaf;white-space:nowrap}
.doc-row:active{opacity:.75}

/* Tasks & Bounties screen */
.task-meta{font-size:12px;color:var(--muted,#8aa89b);margin:2px 0 0}
.quest-mission .task-input{width:100%;margin-top:8px;padding:9px 11px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;font:inherit}
.quest-mission textarea.task-input{min-height:60px;resize:vertical}
.task-quiz{margin-top:8px;display:grid;gap:10px}
.task-q-h{font-weight:600;margin:0 0 4px}
.task-opt{display:flex;align-items:center;gap:8px;padding:6px 0;cursor:pointer}
.task-opt input{accent-color:#39edaf}

/* Roadmap tile shares the Ledger (gold) colour */
.mine-home .quick-actions #openFeatureRoadmap,.home-final .quick-actions #openFeatureRoadmap{border-color:#a78b54!important;background:radial-gradient(ellipse at 0 0,var(--gold-soft),transparent 80%),linear-gradient(135deg,#352e20,#242116)!important}
.mine-home .quick-actions #openFeatureRoadmap .tile-icon,.home-final .quick-actions #openFeatureRoadmap .tile-icon{background:var(--gold-soft);border-color:var(--gold-line);color:var(--gold-accent)}
.mine-home .quick-actions #openFeatureRoadmap .tile-arrow,.home-final .quick-actions #openFeatureRoadmap .tile-arrow{color:var(--gold-accent);border-color:#e7be7266;background:#e7be7210}
.mine-home #openFeatureRoadmap .destination-link,.home-final #openFeatureRoadmap .destination-link{background:#e7be72;color:#30220e;border:0}
.mine-home .quick-actions #openFeatureRoadmap:hover,.home-final .quick-actions #openFeatureRoadmap:hover{border-color:var(--gold-accent)!important}
html[data-theme=light] .home-final .quick-actions #openFeatureRoadmap,html[data-theme=light] .mine-home .quick-actions #openFeatureRoadmap{background:linear-gradient(135deg,#f5e7c6,#fff9ef)!important;border-color:#aa8a47!important}

/* Roadmap inner page — list check icons + TGE (airdrop) gold accent */
.roadmap-stage .stage-list{list-style:none;margin:7px 0 0;padding:0;display:grid;gap:9px}
.roadmap-stage .stage-list li{position:relative;padding-left:23px;font-size:12px;line-height:1.55;color:#cbdcd2}
.roadmap-stage .stage-list li::before{content:"";position:absolute;left:4px;top:3px;width:5px;height:9px;border:solid #39edaf;border-width:0 2px 2px 0;transform:rotate(45deg)}
.roadmap-stage.stage-tge .stage-list li::before{border-color:#e7be72}
.roadmap-home .stage-tge .stage-node{border-color:#a8894b!important;background:var(--gold-soft)!important;color:var(--gold-accent)!important}
.roadmap-home .stage-tge .stage-status{color:#e7be72!important}
.roadmap-home .stage-tge h2{color:#fff}

/* Ranks banner: polished gold command card (rounded, padded, trophy-matched) */
.ranks-home .rank-command{border-radius:20px!important;overflow:hidden;padding:22px 24px!important;gap:18px!important;background:radial-gradient(130% 95% at 100% 0%,rgba(216,200,122,.18),transparent 55%),linear-gradient(150deg,#2a2614,#14110c)!important;border:1px solid #8d794a!important;box-shadow:0 10px 26px #00000022}
.ranks-home .rank-command .eyebrow{color:#e2c87e!important}
.ranks-home .rank-command h1{margin:11px 0 7px!important}
.ranks-home .rank-trophy{box-shadow:0 0 26px #d8c87a18}
