/* Maple UI foundation: ink, charcoal, and a muted sage and olive accent. */
:root {
  --bg:#10110f; --panel:#1c1e1b; --surface:#242722; --border:#34382f;
  --text:#f3f4ef; --muted:#a4aa9b; --accent:#b5c982; --purple:#b5c982;
  --green:#afc58b; --danger:#f4a3a3;
  --radius:22px; --radius-sm:14px;
  color-scheme:dark;
}
body { background:var(--bg); line-height:1.6; }
.panel { background:var(--panel); border-color:var(--border); box-shadow:none; }
.subcard { background:var(--surface); border-color:var(--border); }
::selection { background:#b5c982; color:#15180e; }
button { transition:background .18s,border-color .18s,color .18s,box-shadow .18s; }
h1,h2,h3,strong { letter-spacing:-.035em; }
.eyebrow { color:var(--muted); font-size:.6875rem; letter-spacing:.14em; font-weight:650; }
.brand-mark { background:var(--accent); color:#202512; border:0; border-radius:14px; box-shadow:none; }
.brand small { font-size:.6rem; letter-spacing:.13em; }
.button { min-height:42px; padding:10px 17px; background:#292d25; border-color:#42483a; border-radius:50px; font-weight:600; }
.button:hover:not(:disabled) { background:#363c2f; border-color:#727d57; }
.button.primary { background:var(--accent); border-color:var(--accent); color:#1d240c; font-weight:750; box-shadow:none; }
.button.primary:hover:not(:disabled) { background:#c1d491; border-color:#c1d491; }
.button.danger { color:var(--danger); background:#302222; border-color:#5e3a3a; }
.icon-button { background:#252822; border-color:#3b4035; border-radius:50%; width:42px; height:42px; color:#d5d9cf; }
.icon-button:hover { background:#343b2b; color:var(--accent); }
.icon-button svg,.nav-item svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; display:block; }
.sidebar { width:224px; padding:32px 18px; background:#141612; border-color:#2c3027; }
.sidebar .brand { margin:0 0 48px 4px; }
.sidebar nav { gap:7px; }
.nav-item { border:0; border-radius:14px; color:#a4ab9b; padding:12px 15px; gap:13px; }
.nav-item span { display:grid; place-items:center; width:30px; height:30px; }
.nav-item.active { background:#282f1e; color:var(--accent); box-shadow:none; border-color:transparent; }
.nav-item.active b { color:#e6f5c0; }
.nav-item:hover { background:#24291f; }
.sidebar-footer { padding:24px 6px 0; }
.sidebar-footer small,.page-footer { color:#7e8676; }
.workspace { margin-left:224px; }
.topbar { min-height:108px; padding:24px 36px; background:transparent; border-bottom:1px solid #292d24; }
.topbar h1 { font-size:1.65rem; font-weight:750; margin-top:4px; }
.header-actions { gap:10px; }
.content { max-width:1160px; padding:28px 36px; }
.panel { background:var(--panel); border:1px solid #30352b; border-radius:var(--radius); box-shadow:none; padding:24px; margin-bottom:20px; }
.section-title { border-color:#363b30; padding-bottom:16px; margin-bottom:18px; }
.section-title h2 { font-size:1.08rem; font-weight:700; }
.section-title h2:before { width:5px; height:16px; margin-right:10px; background:var(--accent); }
.subcard,.boss-character,.character-card,.activity,.owned-card,.world-group,.google-account-panel { background:var(--surface); border-color:#3a4033; box-shadow:none; }
.subcard,.boss-character,.character-card { border-radius:var(--radius-sm); }
.tabs { background:#10130e; border:1px solid #32392a; border-radius:30px; padding:4px; gap:2px; }
.tabs button { color:#aab29e; padding:6px 14px; border-radius:30px; font-weight:600; }
.tabs button.active { background:var(--accent); color:#1c240d; box-shadow:none; }
.tabs button:hover:not(.active) { color:#eef5e2; background:#2b3223; }
.badge { background:#2c3322; color:#d5e9ac; border-color:#485337; border-radius:7px; }
.badge.success { background:#344021; border-color:#657b40; color:#bdd49c; }
.notice,.demo-banner { background:#242c19; border-color:#46532e; color:#cbd7b4; }
.demo-banner { padding:9px 36px; border-bottom:1px solid #3e492e; }
.demo-banner button { color:var(--accent); }
.empty>span,.empty-inline { color:#a1ad8f; }
.hero { padding:0; background:#21251c; max-height:none; }
.hero:after { background:none; }
.hero-open { min-height:210px; }
.hero-open figure { width:36%; height:210px; position:relative; background:none; }
.hero-open figure:after { content:''; position:absolute; bottom:24px; width:42%; height:7px; background:#0005; border-radius:50%; filter:blur(4px); }
.hero-open figure>img { position:relative; z-index:1; }
.hero-info { padding:42px 24px 22px 0; }
@media(min-width:761px) {
  /* Let the content set the height so the combat row keeps its bottom inset. */
  .hero .hero-open { height:auto; }
  .hero .hero-info { padding:32px 28px 26px 0; }
}
.hero-info h2 { font-size:1.9rem; margin:2px 0 8px; }
.hero-info p { color:#c3c9ba; }
.hero-info .eyebrow { color:#9ba98b; }
.level { background:#343e24; color:#d7efad; border-color:#5e713e; padding:2px 10px; }
.combat { background:#151a11; border:1px solid #465432; border-radius:12px; margin-top:16px; padding:10px 14px; }
.combat span { color:#b8c4a4; font-size:.875rem; }
.combat strong { color:var(--accent); font-size:1.65rem; }
.hero-refresh { color:#aab49d; right:18px; top:13px; }
.hero-refresh button { color:var(--accent); }
.expected span { color:#aeb7a1; }
.expected strong { color:#edf2e5; font-size:1.2rem; font-variant-numeric:tabular-nums; }
.income-panel>.small { margin-top:2px; font-size:.75rem; }
.income-body { gap:26px; margin-top:20px; }
.income-lines>div { border-color:#353c2d; padding:10px 0; }
.income-lines span { color:#b0b8a5; }
.income-lines b { font-weight:600; font-variant-numeric:tabular-nums; }
.income-total { border:1px solid #596a35; background:#2b351c; border-radius:16px; min-height:130px; padding:20px 12px; gap:10px; }
.income-total span { color:#c3d5a5; font-size:.875rem; }
.income-total strong { color:var(--accent); font-size:1.6rem; font-variant-numeric:tabular-nums; }
.boss-character-list { gap:14px; }
.boss-character { padding:16px; background:#242720; border-color:#3c4333; }
.character-summary h3 { background:none; padding:0; color:#eef2e7; font-size:.94rem; font-weight:700; }
.character-summary strong { font-size:1rem; color:#e5ebdc; font-variant-numeric:tabular-nums; }
.character-summary p { font-size:.75rem; color:#a2ae94; }
.boss-register { background:#303a24; color:#d5e9ad; border-color:#51643a; font-size:.75rem; padding:6px 10px; min-height:32px; }
.boss-progress { display:block; width:100%; height:3px; margin:-3px 0 14px; border:0; background:#3c4532; border-radius:5px; overflow:hidden; }
progress::-webkit-progress-bar { background:#3c4532; border-radius:5px; }
progress::-webkit-progress-value { background:var(--accent); border-radius:5px; }
progress::-moz-progress-bar { background:var(--accent); border-radius:5px; }
.portrait { border-color:#69715d; border-radius:9px; background:#32372c; }
.character-card { background:#252921; border-color:#3c4333; border-radius:17px; }
.character-card:hover { background:#2c3323; border-color:#819955; }
.character-card small .world-label,.character-card small .world-label span { color:var(--muted); }
.character-picker button { background:#242b1d; border-color:#48533c; border-radius:15px; }
.selected { border-color:var(--accent)!important; background:#354325!important; }
.party-options .selected { background:var(--accent)!important; color:#1d240c; font-weight:750; }
.boss-tile:hover .portrait { border-color:var(--accent); box-shadow:0 0 0 2px #b5c98228; }
.boss-layout>.monthly-grid:before { background:#465039; }
.boss-check svg { stroke:#c5dda7; filter:drop-shadow(0 1px 3px #000); }
.boss-character>p:last-child { font-size:.6875rem; margin-bottom:0; color:#909b83; }
.character-card { background:#23271f; border-color:#3a4231; padding:16px 10px; }
.character-card:hover { border-color:#8caa50; background:#2b3222; }
.character-card span { color:var(--accent); }
.character-card strong { color:#f0f3e9; }
.detail-hero { border-bottom:1px solid #353d2d; margin-bottom:20px; }
.detail-hero figure { background:radial-gradient(ellipse,#b5c98210,transparent 70%); border-radius:18px; }
.equipment-slot { background:#2a2d27; }
.reserve-ring { background:#181c13ee; color:var(--accent); }
.ring-level { background:#18200de6; color:#ddf5b6; }
.ability-line { background:#262d20; border-color:#465338; }
.character-picker button { background:#24291f; border-color:#3e4734; }
.selected { background:#344321!important; border-color:#a3bc77!important; color:#edf6de; }
.activity { border-radius:14px; }
.activity.done { border-color:#6a8048; }
.settings-row { border-color:#353c2e; padding:20px 0; }
input:not([type=checkbox]):not([type=radio]),select { background:#12160f; border-color:#424d36; border-radius:12px; padding:12px 14px; }
input::placeholder { color:#7c8871; }
input[type=checkbox],input[type=radio] { accent-color:var(--accent); }
pre { background:#11150e; color:#c6d2b8; }
.login-layout { max-width:1120px; margin:5vh auto; border:1px solid #3b4530; border-radius:30px; box-shadow:0 24px 90px #0004; }
.login-art { background:#a1b474; padding:44px; color:#19200d; gap:44px; }
.login-art .brand-mark { background:#1e2912; color:#b5c982; }
.login-art .brand small,.login-art .eyebrow,.login-art .muted { color:#465722; }
.login-art h1 { font-size:clamp(2.6rem,4.5vw,3.7rem); line-height:1.2; letter-spacing:-.065em; font-weight:850; }
.login-art>div>p { color:#39491b; line-height:1.8; }
.login-bosses { gap:12px; margin-top:38px; }
.login-bosses>.portrait { border-color:#7b993e; box-shadow:0 8px 18px #25310f20; border-radius:12px; }
.login-form { background:#1c2118; padding:48px; }
.login-form h2 { font-size:1.65rem; margin-top:18px; }
.login-divider span { background:#1c2118; }
.google-button { color:#252525; background:#f4f6ee; border-color:#f4f6ee; }
.google-button:hover:not(:disabled) { background:#e4ead9; color:#20251b; }
dialog { background:#1d2218; border:1px solid #566244; border-radius:24px; padding:26px; box-shadow:0 28px 100px #0008; }
dialog::backdrop,#boss-config-modal::backdrop { background:#080b06c9; backdrop-filter:blur(7px); }
.modal-header { padding-bottom:16px; border-bottom:1px solid #394330; margin-bottom:18px; }
.modal-header h2 { font-size:1.25rem; }
.owned-card { background:#2a3122; border-color:#48553a; }
.world-group { background:#252c1e; border-color:#465237; }
.world-group>summary { color:#e7efdc; }
.primary-star { color:#a4b28f; }
.primary-star.is-primary { color:#ffd35c; }
.party-options button { background:#293220; border-color:#4b5a3b; border-radius:12px; min-height:46px; }
.selected-boss-grid { background:#151b10; border-color:#465a31; border-radius:16px; }
.selection-count { color:var(--accent); background:#303f20; border-color:#596e3c; }
.selection-count.over-limit { background:#3a2623; color:var(--danger); border-color:#8a5148; }
.selection-icon.is-selected .portrait { border-color:var(--accent); box-shadow:0 0 0 2px #b5c98220; }
.selection-check { background:var(--accent); color:#1b240e; }
.remove-selected { background:#2d3920; border-color:#7a9552; color:#e6f3d1; }
.batch-selection-heading,.batch-footer { background:#1d2218f5; border-color:#465237; }
.batch-boss-editor { background:#28331e; border-color:#5c7540; }
#toast { border-color:#7a9254; background:#27331cf5; color:#e4f2cf; border-radius:16px; }
.loading-bar { background-image:linear-gradient(90deg,transparent,var(--accent),transparent); }
@media(min-width:1450px) { .hero-open,.hero-open figure { min-height:210px; height:210px; } }
@media(max-width:1120px) {
  .sidebar { width:204px; padding:28px 14px; }
  .workspace { margin-left:204px; }
  .content { padding:24px; }
  .topbar { padding:22px 24px; }
}
@media(max-width:760px) {
  .workspace { margin-left:0; padding-bottom:100px; }
  .topbar { min-height:90px; padding:18px 18px 16px; }
  .topbar h1 { font-size:1.45rem; }
  .topbar .eyebrow { font-size:.6rem; }
  .content { padding:18px 14px; }
  .panel { padding:18px 15px; border-radius:20px; margin-bottom:16px; }
  .section-title { margin-bottom:16px; padding-bottom:14px; gap:8px; }
  .section-title h2 { font-size:1rem; }
  .section-title h2:before { margin-right:7px; height:14px; width:4px; }
  .tabs { padding:3px; gap:0; }
  .tabs button { padding:5px 11px; font-size:.75rem; }
  .mobile-nav { left:10px; right:10px; bottom:max(10px,env(safe-area-inset-bottom)); border:1px solid #59644677; background:#dce4c919; border-radius:24px; padding:6px 4px; backdrop-filter:blur(22px); box-shadow:0 8px 30px #0006; }
  .mobile-nav .nav-item { padding:7px 2px; gap:3px; border-radius:17px; min-height:55px; min-width:0; }
  .mobile-nav .nav-item span { width:27px; height:25px; }
  .mobile-nav .nav-item svg { width:21px; height:21px; }
  .mobile-nav .nav-item b { font-size:.6rem; font-weight:550; }
  .mobile-nav .nav-item.active { color:#1d260e; background:var(--accent); }
  .mobile-nav .nav-item.active b { color:#1d260e; }
  .hero { padding:0; }
  .hero-open { min-height:176px; }
  .hero-open figure { height:176px; width:37%; }
  .hero-open figure>img { width:120px; height:120px; }
  .hero-info { padding:35px 13px 18px 0; }
  .hero-info h2 { font-size:1.4rem; margin:0 0 6px; }
  .hero-info p { font-size:.6875rem; gap:5px; }
  .hero-refresh { top:9px; right:12px; font-size:.625rem; }
  .boss-card-header { position:relative; display:block; }
  .boss-card-header .character-summary>div { flex:1; }
  .boss-card-header .character-summary h3 { max-width:calc(100% - 65px); overflow-wrap:anywhere; }
  .boss-card-header .character-summary strong { font-size:clamp(12px,3.5vw,16px); white-space:nowrap; }
  .boss-card-header .character-summary p { font-size:.6875rem; }
  .boss-card-header .boss-register { position:absolute; right:0; top:0; }
  .combat { padding:8px; gap:5px; margin-top:12px; }
  .combat span { font-size:.6875rem; }
  .combat strong { font-size:1.05rem; }
  .expected strong { font-size:1.05rem; }
  .income-body { grid-template-columns:1fr; gap:15px; margin-top:12px; }
  .income-lines>div { padding:9px 0; }
  .income-lines span { font-size:.8125rem; }
  .income-total { flex-direction:row; justify-content:space-between; min-height:0; padding:15px; border-radius:13px; }
  .income-total strong { font-size:1.35rem; }
  .income-total span { font-size:.875rem; }
  .boss-character { padding:13px; }
  .boss-character-list { gap:12px; }
  .boss-register { font-size:.6875rem; min-height:30px; padding:5px 9px; }
  .character-summary h3 { font-size:.875rem; }
  .character-summary strong { font-size:.875rem; }
  .character-summary p { font-size:.6875rem; }
  .character-card { padding:12px 6px; }
  .detail-hero { padding-bottom:18px; }
  .demo-banner { font-size:.6875rem; padding:9px 16px; gap:12px; }
  .demo-banner button { font-size:.6875rem; flex-shrink:0; }
  dialog { padding:22px 17px; border-radius:22px; }
  .modal-header h2 { font-size:1.15rem; }
  .login-layout { border:0; margin:0; border-radius:0; }
  .login-art { padding:27px; min-height:340px; gap:30px; }
  .login-art h1 { font-size:clamp(2.1rem,9vw,2.7rem); }
  .login-art>div>p { font-size:.94rem; }
  .login-bosses { position:static; margin-top:20px; gap:7px; }
  .login-bosses>.portrait { width:32px; border-radius:8px; }
  .login-form { padding:30px 25px 38px; }
  .login-form h2 { font-size:1.5rem; }
}
@media(max-width:360px) {
  .section-title h2 { font-size:.875rem; }
  .section-title .tabs button { padding:5px 8px; }
  .hero-info h2 { font-size:1.2rem; }
  .combat strong { font-size:.875rem; }
  .boss-register { padding:5px 7px; }
}

/* Portrait-led character library: three spacious cards per row. */
.mobile-more { display:none; }
.more-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.more-menu .nav-item { background:#293022; border:1px solid #424e33; min-height:66px; }
.more-menu .nav-item.active { background:#38452a; color:var(--accent); }
@media(max-width:760px) {
  .mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr))!important; padding:6px; }
  .mobile-nav [data-value="schedule"],.mobile-nav [data-value="news"],.mobile-nav [data-value="records"],.mobile-nav [data-value="settings"] { display:none; }
  .mobile-nav .mobile-more { display:flex; }
  .mobile-nav .nav-item { min-height:54px; }
  .mobile-nav .nav-item b { font-size:.6875rem!important; }
  .topbar { padding-top:max(18px,env(safe-area-inset-top)); }
  .content { padding-left:max(14px,env(safe-area-inset-left)); padding-right:max(14px,env(safe-area-inset-right)); }
  dialog { max-height:calc(100dvh - 28px); overscroll-behavior:contain; }
  .hero-refresh button { min-width:34px; min-height:34px; }
  .hunting-entry-header .button,.loot-entry-actions .button { min-height:36px; }
}
@media(max-width:760px) and (hover:none) {
  body:has(input:focus,textarea:focus,select:focus) .mobile-nav { visibility:hidden; }
}
.boss-card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }
.boss-card-footer>p { font-size:.6875rem; color:#909b83; margin:0; }
.loot-button { min-height:30px; padding:5px 10px; font-size:.6875rem; flex:none; }
.loot-entry { padding:15px 0; border-bottom:1px solid var(--border); }
.loot-entry-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.loot-entry-actions>strong { font-size:.94rem; }
#loot-form select { width:100%; }
.detail-toolbar .hero-refresh { position:static; }
.detail-summary-panel .detail-hero { margin:0; padding-bottom:0; border:0; }
.detail-section>h3 { margin:20px 0 10px; }
.detail-section .pet-grid h3,.detail-section .symbol-grid h3 { margin-top:0; }
.experience-progress { display:block; height:16px; border:0; border-radius:30px; overflow:hidden; }
.experience-track-unknown { height:16px; border-radius:30px; background:#353b30; }
.experience-scale { display:flex; justify-content:space-between; color:var(--muted); font-size:.75rem; margin-top:5px; }
.experience-chart-title { margin-top:28px; }
.experience-chart { display:block; width:100%; max-height:280px; }
.chart-bar { fill:var(--accent); }
.experience-chart .chart-bar { fill:#788d5d; opacity:.8; }
.chart-line { stroke:var(--accent); stroke-width:2.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.chart-point { fill:var(--accent); stroke:#1c1e1b; stroke-width:1.5; }
.chart-rate { fill:#d9e8bf; font-size:9px; text-anchor:middle; }
.chart-axis-label { fill:#99a28e; font-size:9px; }
.chart-right-label { text-anchor:end; }
.experience-legend { display:flex; flex-wrap:wrap; gap:15px; font-size:.75rem; color:var(--muted); margin-bottom:8px; }
.experience-legend span { display:flex; align-items:center; gap:6px; }
.legend-line:before { content:''; display:block; width:18px; height:2px; background:var(--accent); }
.legend-bar:before { content:''; display:block; width:10px; height:10px; background:#788d5d; border-radius:2px; }
.chart-axis { stroke:#576149; stroke-width:1; }
.chart-missing { stroke:#879078; stroke-width:2; stroke-dasharray:3 3; }
.chart-value,.chart-date { text-anchor:middle; font-size:11px; fill:#d1d9c4; }
.chart-date { fill:#a4ad98; font-size:12px; }
.calendar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.calendar-toolbar .button { font-size:.75rem; padding:7px 12px; min-height:34px; }
.hunting-calendar { width:100%; max-width:760px; margin-inline:auto; container-type:inline-size; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.calendar-weekdays { text-align:center; color:var(--muted); font-size:.8125rem; font-weight:600; margin-bottom:10px; }
.calendar-weekdays span:first-child { color:#cf858a; }
.calendar-weekdays span:last-child { color:#aab9d0; }
.calendar-day,.calendar-blank { min-width:0; min-height:0; aspect-ratio:1; }
.calendar-day { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:0; border:2px solid transparent; background:#272a25; border-radius:clamp(8px,2.6cqw,18px); text-align:center; font-variant-numeric:tabular-nums; line-height:1.25; }
.calendar-day b { font-size:clamp(12px,3.7cqw,21px); font-weight:650; }
.calendar-day small { display:block; max-width:100%; padding-inline:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(9px,2.65cqw,15px); font-weight:550; color:var(--muted); line-height:1.3; }
.calendar-day.has-income { background:#4c5b39; }
.calendar-day.has-income small { color:#e0e9d1; }
.calendar-day.is-today { border-color:var(--accent); }
.calendar-day.is-today b { color:var(--accent); }
.calendar-day.is-selected { border-color:#e7ecde; }
.calendar-day:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(hover:hover) { .calendar-day:hover { background:#39432f; } }

.shard-estimate { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:var(--muted); padding:12px 0; border-top:1px solid var(--border); }
.shard-estimate strong { color:var(--accent); }
.hunting-entry-values small { display:block; font-size:.6875rem; margin-top:5px; }
@media(max-width:760px) {
  .detail-toolbar { gap:8px; }
  .detail-toolbar .button { font-size:.75rem; padding:7px 12px; }
  .calendar-weekdays,.calendar-days { gap:4px; }
}
.total-income-value { display:block; font-size:clamp(1.8rem,4vw,2.5rem); color:var(--accent); line-height:1.3; margin:6px 0 22px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.total-income-breakdown { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.total-income-breakdown>div { min-width:0; }
.total-income-breakdown span,.hunting-summary span,.hunting-entry-values span { display:block; color:var(--muted); font-size:.8125rem; margin-bottom:5px; }
.total-income-breakdown b { display:block; font-size:.94rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.total-income-panel>.small { font-size:.6875rem; margin-top:18px; }
.hunting-summary,.hunting-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.hunting-summary { margin:10px 0 20px; }
.hunting-summary strong { font-size:1.25rem; color:var(--accent); overflow-wrap:anywhere; }
.meso-field { display:flex; align-items:center; gap:10px; }
.meso-field>span { color:var(--muted); flex:none; font-size:.875rem; }
.hunting-form-actions { display:flex; justify-content:flex-end; gap:10px; }
.hunting-entry { padding:18px 0; border-bottom:1px solid var(--border); }
.hunting-entry:last-child { border-bottom:0; }
.hunting-entry-header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }
.hunting-entry-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.hunting-entry-values b { font-weight:600; font-size:.94rem; overflow-wrap:anywhere; }
@media(max-width:760px) {
  .mobile-nav { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); }
  .mobile-nav .nav-item b { font-size:clamp(8px,2.25vw,9.5px); }
  .total-income-panel .section-title .button { min-height:32px; padding:6px 10px; font-size:.6875rem; }
  .total-income-breakdown { grid-template-columns:1fr; gap:9px; }
  .total-income-breakdown>div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
  .total-income-breakdown span { margin:0; font-size:.8125rem; }
  .total-income-breakdown b { font-size:.875rem; text-align:right; }
  .total-income-value { font-size:1.8rem; margin-bottom:18px; }
  .hunting-form-grid { grid-template-columns:1fr; gap:18px; }
  .hunting-summary { gap:14px; }
  .hunting-summary strong { font-size:1.05rem; }
  .hunting-entry-values b { font-size:.8125rem; }
}
.boss-empty { pointer-events:none; }
@media(max-width:760px) {
}
.boss-empty .portrait { background:#1a1e17; border:1px dashed #4a5340; box-shadow:inset 0 0 0 1px #ffffff02; }
.boss-empty .difficulty { color:#68735d; background:#303729; }
.boss-grid.monthly-only { grid-template-columns:repeat(7,minmax(0,1fr)); }
.character-library { background:transparent; border:0; padding:0; }
.character-library>.section-title { border-bottom:0; margin-bottom:18px; }
.character-library .character-grid { gap:20px; }
.character-library .character-card { position:relative; display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; overflow:hidden; border-radius:22px; text-align:left; background:#252824; border:1px solid #3b4035; }
.character-library .character-card:hover { background:#2c3227; border-color:#899c66; }
.character-library .character-card figure { width:100%; height:auto; aspect-ratio:1.02; display:grid; place-items:center; overflow:hidden; }
.character-library .character-card figure img { width:100%; height:100%; object-fit:contain; transform:scale(2.7); }
.character-card-info { padding:6px 18px 18px; }
.character-library .character-card-info>strong { display:block; font-size:1.1rem; line-height:1.4; overflow-wrap:anywhere; margin-bottom:10px; }
.character-card-meta { display:flex; align-items:center; gap:9px; min-width:0; }
.character-card-world .world-label>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.character-card-meta .world-icon { width:18px!important; height:18px!important; }
.character-library .character-card-level { color:#c6d2af; font-size:.94rem; white-space:nowrap; }
.character-library .character-primary-mark { margin-left:auto; color:#d4bc75; font-size:1.1rem; line-height:1; }
.character-library .character-expand { position:absolute; top:12px; right:12px; z-index:2; display:grid; place-items:center; width:29px; height:29px; border-radius:50%; color:#d9decf; background:#ffffff14; }
.character-expand svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:760px) {
  .character-library .character-grid { gap:12px; }
  .character-library .character-card { border-radius:17px; }
  .character-library .character-card figure { aspect-ratio:.88; }
  .character-library .character-card figure img { transform:scale(2.8); }
  .character-card-info { padding:4px 10px 12px; }
  .character-library .character-card-info>strong { font-size:.875rem; margin-bottom:8px; letter-spacing:-.05em; }
  .character-card-meta { gap:5px; }
  .character-card-meta .world-icon { width:14px!important; height:14px!important; }
  .character-library .character-card-level { font-size:.75rem; }
  .character-library .character-primary-mark { font-size:.8rem; }
  .character-library .character-expand { top:8px; right:8px; width:23px; height:23px; }
  .character-expand svg { width:15px; height:15px; }
}
@media(max-width:360px) {
  .character-library .character-grid { gap:9px; }
  .character-card-info { padding:4px 7px 11px; }
  .character-library .character-card-info>strong { font-size:.8125rem; }
  .character-card-meta { gap:3px; }
  .character-library .character-card-level { font-size:.6875rem; }
}

.boss-character .character-summary .boss-remaining { display:flex; flex-wrap:wrap; gap:0 6px; margin:3px 0 0; color:#a3a5a0; font-size:.6875rem; font-weight:400; line-height:1.5; }
.boss-remaining>span { white-space:nowrap; font-variant-numeric:tabular-nums; }

/* Character collections: compact equipment-style slots and readable grade rows. */
.collection-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.collection-note { font-size:.75rem; color:var(--muted); }
.collection-footer { margin:12px 0 0; }
.collection-toolbar .tabs button,.symbol-toolbar .tabs button { padding:6px 12px; font-size:.75rem; }
.ability-board { padding:7px; background:#30352c; border:1px solid #424a37; border-radius:15px; }
.ability-banner { display:flex; align-items:center; gap:10px; padding:12px 15px; border-radius:10px; color:#f6f8ef; margin-bottom:7px; }
.ability-banner svg { width:16px; height:21px; fill:currentColor; flex-shrink:0; }
.ability-banner strong { font-size:.94rem; font-weight:650; }
.ability-options { display:grid; gap:6px; }
.ability-option { display:flex; align-items:center; justify-content:center; position:relative; padding:10px 12px; border:1px solid #ffffff1a; border-radius:8px; color:#f8f7ee; font-size:.875rem; text-align:center; gap:10px; }
.ability-option-grade { flex-shrink:0; font-size:.625rem; opacity:.75; border:1px solid #ffffff35; border-radius:4px; padding:1px 4px; }
.tone-legendary { background:#52662d; }
.tone-unique { background:#80571f; }
.tone-epic { background:#604b7d; }
.tone-rare { background:#3d607d; }
.tone-unknown { background:#42483d; }
.symbol-toolbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.symbol-toolbar .tabs { flex-shrink:0; }
.symbol-totals { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; max-width:65%; font-size:.8125rem; font-variant-numeric:tabular-nums; }
.symbol-totals>span { white-space:nowrap; }
.symbol-totals b { font-weight:550; color:#d5dec8; font-size:.6875rem; display:inline-block; border:1px solid #47503c; background:#2b3224; border-radius:5px; padding:1px 5px; margin-right:3px; }
.symbol-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.symbol-card { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-width:0; min-height:220px; padding:16px 12px; background:#282d24; border:1px solid #414a36; border-radius:15px; text-align:center; transition:border-color .15s,background .15s; }
.symbol-card:hover { background:#2e3527; border-color:#829762; }
.symbol-card.can-upgrade { border:2px solid var(--accent); padding:15px 11px; }
.symbol-card.is-max { background:linear-gradient(150deg,#303925,#252c20); }
.symbol-region { display:block; min-height:20px; font-size:.75rem; color:#bfcbb0; line-height:1.4; overflow-wrap:anywhere; }
.symbol-card figure { display:grid; place-items:center; width:100%; height:69px; margin:4px 0; }
.symbol-card figure img { width:55px; height:55px; object-fit:contain; image-rendering:pixelated; }
.symbol-level { font-size:1.125rem; line-height:1.4; }
.symbol-growth { width:100%; position:relative; display:block; height:20px; margin:7px 0 0; border-radius:5px; overflow:hidden; background:#424b37; }
.symbol-growth progress { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; border-radius:0; appearance:none; }
.symbol-growth progress::-webkit-progress-bar { background:#424b37; border-radius:0; }
.symbol-growth progress::-webkit-progress-value { background:#71864e; border-radius:0; }
.symbol-growth progress::-moz-progress-bar { background:#71864e; border-radius:0; }
.symbol-growth>span { position:relative; display:block; color:#f4f7ee; font-size:.6875rem; font-weight:650; line-height:20px; font-variant-numeric:tabular-nums; text-shadow:0 1px 2px #0008; }
.symbol-max { color:var(--accent); font-size:.8125rem; line-height:20px; margin:7px 0 0; }
.symbol-next { display:block; margin:7px 0 4px; color:var(--muted); font-size:.6875rem; line-height:1.45; }
.symbol-next.is-ready { color:var(--accent); font-weight:600; }
.symbol-card-stats { display:flex; flex-direction:column; gap:2px; width:100%; margin-top:auto; padding-top:10px; font-size:.75rem; color:#c5cdbb; line-height:1.4; overflow-wrap:anywhere; }
.pet-toolbar .tabs { flex-shrink:0; }
.pet-slot-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; background:#282d24; border:1px solid #414a36; padding:18px; border-radius:15px; }
.pet-slot { min-width:0; }
.pet-slot-heading { display:flex; align-items:center; gap:7px; margin-bottom:8px; font-size:.75rem; min-width:0; }
.pet-slot-heading>span { color:#9da88f; font-size:.6875rem; font-variant-numeric:tabular-nums; }
.pet-slot-heading>strong { font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pet-item-pair,.pet-buff-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.pet-item-tile { display:grid; place-items:center; aspect-ratio:1; padding:5px; border:1px solid #6e7c61; border-radius:9px; background:linear-gradient(145deg,#56614a,#3a4530); min-width:0; width:100%; }
.pet-item-tile img { width:100%; height:100%; max-width:74px; max-height:74px; object-fit:contain; image-rendering:pixelated; }
.pet-item-tile.is-empty { border-style:dashed; border-color:#46503c; background:#22291d; }
.pet-item-placeholder { color:#7f8c71; font-size:.625rem; }
.pet-buff-pair { margin-top:8px; }
.pet-buff { display:flex; flex-direction:column; justify-content:center; gap:3px; min-width:0; min-height:62px; padding:7px 4px; border:1px solid #46523a; border-radius:8px; background:#323d27; text-align:center; }
.pet-buff>span { color:#a7b995; font-size:.5625rem; }
.pet-buff>strong { font-size:.6875rem; font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.pet-buff.is-empty { background:#22291d; border-style:dashed; color:#7e8b71; }
.pet-detail-heading,.symbol-detail-heading { display:flex; align-items:center; gap:18px; margin:8px 0 20px; }
.pet-detail-heading>img,.symbol-detail-heading>img { width:64px; height:64px; object-fit:contain; image-rendering:pixelated; }
.panel-info-list { display:grid; gap:0; margin:12px 0 20px; }
.panel-info-list>div { display:flex; justify-content:space-between; align-items:baseline; gap:15px; border-bottom:1px solid #39412f; padding:10px 0; }
.panel-info-list dt { color:var(--muted); flex-shrink:0; font-size:.8125rem; }
.panel-info-list dd { margin:0; font-size:.875rem; text-align:right; overflow-wrap:anywhere; }
.pet-detail-skills { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 20px; }
.pet-detail-skills>span { background:#303a26; border:1px solid #48563a; padding:5px 9px; font-size:.75rem; border-radius:7px; }
@media(max-width:760px) {
  .collection-toolbar { gap:10px; }
  .ability-toolbar { justify-content:flex-end; }
  .ability-toolbar .collection-note { margin-right:auto; }
  .ability-banner { padding:10px 12px; }
  .ability-banner strong { font-size:.875rem; }
  .ability-option { font-size:.8125rem; padding:9px 7px; gap:6px; }
  .ability-option-grade { font-size:.5625rem; padding:1px 3px; }
  .symbol-toolbar { gap:12px; }
  .symbol-totals { max-width:none; flex:1; flex-direction:column; align-items:flex-start; gap:5px; font-size:.75rem; }
  .symbol-totals b { font-size:.625rem; }
  .symbol-card-grid { gap:9px; }
  .symbol-card { min-height:203px; padding:12px 7px; border-radius:12px; }
  .symbol-card.can-upgrade { padding:11px 6px; }
  .symbol-region { font-size:.625rem; min-height:28px; }
  .symbol-card figure { height:55px; margin:2px 0; }
  .symbol-card figure img { width:44px; height:44px; }
  .symbol-level { font-size:1rem; }
  .symbol-growth>span { font-size:.5625rem; }
  .symbol-next { font-size:.5625rem; }
  .symbol-card-stats { font-size:.625rem; padding-top:8px; }
  .pet-toolbar { gap:9px; }
  .pet-toolbar .tabs button { padding:5px 9px; font-size:.6875rem; }
  .pet-slot-board { gap:10px; padding:12px; }
  .pet-slot-heading { gap:4px; font-size:.625rem; }
  .pet-item-pair,.pet-buff-pair { gap:5px; }
  .pet-item-tile { border-radius:6px; padding:3px; }
  .pet-buff { min-height:57px; padding:5px 3px; }
  .pet-buff>strong { font-size:.5625rem; }
}
@media(max-width:360px) {
  .symbol-toolbar .tabs button { padding:6px 9px; font-size:.6875rem; }
  .pet-slot-board { padding:9px; gap:7px; }
  .pet-slot-heading { flex-wrap:wrap; gap:2px; }
  .pet-slot-heading>strong { flex-basis:100%; }
}

.game-tooltip { min-width:0; }
.game-item-heading { display:flex; align-items:center; gap:20px; padding:8px 0 18px; border-bottom:1px solid #414b3b; margin-bottom:15px; }
.game-item-heading>div { flex:1; min-width:0; }
.game-item-heading strong { display:block; font-size:1.1rem; line-height:1.5; overflow-wrap:anywhere; }
.game-item-heading p { color:#cbd6bf; font-size:.875rem; }
.game-item-image { flex-shrink:0; display:grid; place-items:center; width:106px; height:106px; border:1px solid #77846e; border-radius:12px; background:linear-gradient(140deg,#5c6954,#3a4634); box-shadow:inset 0 0 15px #d9e9c41a; }
.game-item-image a { display:grid; place-items:center; width:100%; height:100%; }
.game-item-image img { width:84px; height:84px; object-fit:contain; image-rendering:pixelated; }
.game-item-image>span { color:var(--muted); font-size:.75rem; }
.game-item-category { display:inline-block; color:#bac8a8; background:#343f2a; border:1px solid #546246; border-radius:20px; font-size:.75rem; padding:2px 10px; margin-bottom:7px; }
.tooltip-stars { display:flex; flex-wrap:wrap; justify-content:center; gap:3px 12px; margin:0 auto 15px; max-width:330px; color:#e9cf75; font-size:1.05rem; letter-spacing:2px; text-shadow:0 0 6px #b58b3740; }
.tooltip-stars>span { white-space:nowrap; }
.item-requirements { margin:0 0 15px; }
.item-option-list { padding:10px 0; border-top:1px solid #414b3b; border-bottom:1px solid #414b3b; }
.item-option-row { display:grid; grid-template-columns:minmax(90px,.8fr) minmax(0,1.4fr); align-items:baseline; gap:12px; margin:5px 0; font-size:.875rem; }
.item-option-row>span { color:#d6ddcc; overflow-wrap:anywhere; }
.item-option-row>div { text-align:right; min-width:0; }
.item-option-row strong { font-weight:550; font-variant-numeric:tabular-nums; }
.option-parts { display:block; font-size:.75rem; color:#9aa88a; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.option-part-base { color:#c8d3bd; }
.option-part-add { color:#d9bf69; }
.option-part-etc { color:#9da7dd; }
.option-part-starforce { color:#79cbb0; }
.option-part-exceptional { color:#d39bcc; }
.item-scroll-count { font-size:.75rem; color:#b5c3a5; padding:8px 0; }
.tooltip-potential { border-top:1px solid #414b3b; padding-top:14px; margin-top:14px; }
.tooltip-potential h3 { font-size:.875rem; }
.tooltip-potential ul { margin:8px 0 0; padding-left:20px; font-size:.875rem; }
.tooltip-potential li { margin:5px 0; overflow-wrap:anywhere; }
.text-legendary { color:#c8de8a; }
.text-unique { color:#e2b969; }
.text-epic { color:#c0a6e5; }
.text-rare { color:#9abfdb; }
.text-unknown { color:#b5bdaa; }
.tooltip-description { white-space:pre-line; line-height:1.7; font-size:.875rem; color:#d2dcc8; margin:16px 0; overflow-wrap:anywhere; }
.tooltip-extra-effect { white-space:pre-line; line-height:1.6; font-size:.8125rem; color:#c8dbaa; border-left:3px solid #8da963; padding:4px 0 4px 12px; margin:18px 0; }
.pet-expiry { font-size:.8125rem; color:#bdc9b0; }
.pet-buff.has-icon { padding:4px; min-height:0; aspect-ratio:1; background:linear-gradient(145deg,#56614a,#3a4530); border-color:#6e7c61; }
.pet-buff.has-icon>span,.pet-buff.has-icon>strong { display:none; }
.pet-buff.has-icon img { width:100%; height:100%; max-width:74px; max-height:74px; object-fit:contain; image-rendering:pixelated; }
.pet-tooltip-buffs { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 20px; }
.pet-tooltip-buffs button { display:flex; align-items:center; gap:10px; padding:8px 11px; border:1px solid #506143; border-radius:10px; background:#303c26; font-size:.8125rem; }
.pet-tooltip-buffs img { width:36px; height:36px; object-fit:contain; image-rendering:pixelated; }
.symbol-upgrade-costs { display:flex; flex-direction:column; width:100%; text-align:left; gap:2px; border-top:1px solid #414b35; padding-top:9px; margin-top:10px; }
.symbol-upgrade-costs>span { color:#aeba9f; font-size:.6875rem; margin-top:3px; }
.symbol-upgrade-costs>strong { font-size:.8125rem; font-weight:550; color:#e1e9d7; line-height:1.45; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.symbol-cost-missing { font-size:.6875rem; color:var(--muted); margin-top:12px; }
.tooltip-costs { border:1px solid #536640; border-radius:12px; background:#2a3520; padding:14px; margin:18px 0; display:grid; gap:12px; }
.tooltip-costs>div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.tooltip-costs span { font-size:.75rem; color:#bccdab; }
.tooltip-costs strong { color:#deedc5; font-size:.9375rem; text-align:right; font-variant-numeric:tabular-nums; }
.tooltip-source-footer { display:flex; justify-content:flex-end; padding-top:10px; }
.tooltip-source-footer .button { min-height:32px; font-size:.6875rem; }
.symbol-cost-sources { display:grid; gap:8px; margin-top:18px; }
.symbol-cost-sources a { color:#d1e5b1; font-size:.8125rem; text-decoration:underline; text-underline-offset:3px; }
/* Game-style tooltips intentionally use the in-game blue-gray surface. */
#modal.game-tooltip-modal { color:#f0f1f4; background:linear-gradient(145deg,#2b3a43f5,#353944fa); border:2px solid #687b89; border-radius:12px; padding:17px 19px; max-width:510px; width:calc(100% - 28px); box-shadow:inset 0 0 0 2px #c7d7e50c,0 15px 60px #0009; }
#modal.game-tooltip-modal::backdrop { background:#06080aca; backdrop-filter:blur(1px); }
.game-tooltip-modal .modal-header { position:relative; justify-content:center; padding:0 27px 12px; margin-bottom:12px; gap:0; border-bottom:1px solid #9eabb94a; box-shadow:0 1px #10151b44; }
.game-tooltip-modal .modal-header h2 { text-align:center; font-size:1.125rem; font-weight:700; line-height:1.45; letter-spacing:-.035em; color:#fff; }
.game-tooltip-modal .modal-header .icon-button { position:absolute; right:-7px; top:-8px; width:27px; height:27px; min-height:0; padding:0; background:#202b3240; border:1px solid #c6d5e52b; border-radius:5px; color:#cbd5dc; font-size:1.1rem; }
.game-tooltip-modal .tooltip-stars { max-width:285px; gap:2px 11px; font-size:.875rem; line-height:1.3; margin:0 auto 9px; color:#ffe16b; text-shadow:0 1px 2px #000b,0 0 4px #ffdc6944; }
.game-tooltip-modal .game-item-heading { gap:14px; padding:0 0 11px; margin-bottom:11px; border-color:#98a9b64a; }
.game-tooltip-modal .game-item-image { width:92px; height:92px; border-radius:5px; background:linear-gradient(145deg,#84949ca6,#72828b70); border:2px solid #bccbd6a8; box-shadow:inset 0 0 0 2px #ffffff19,0 0 8px #b4e2ff21; }
.game-tooltip-modal .game-item-image img { width:80px; height:80px; }
.game-tooltip-modal .game-item-category { color:#d4dae1; background:#94a1b32b; border-color:#aab6c229; border-radius:12px; font-size:.6875rem; padding:1px 9px; }
.game-tooltip-modal .game-item-heading strong { font-size:.9375rem; }
.game-tooltip-modal:has(.tooltip-stars) .game-item-heading strong { display:none; }
.game-tooltip-modal .game-item-heading p { font-size:.875rem; color:#f3f3f5; }
.game-tooltip-modal .panel-info-list { margin:7px 0 11px; }
.game-tooltip-modal .panel-info-list>div { justify-content:flex-start; gap:12px; padding:3px 0; border:0; }
.game-tooltip-modal .panel-info-list dt { color:#c3cbd4; font-size:.8125rem; min-width:89px; }
.game-tooltip-modal .panel-info-list dd { flex:1; text-align:left; color:#f2f3f5; font-size:.875rem; }
.game-tooltip-modal .item-option-list { padding:8px 0; border-color:#99a9b64a; }
.game-tooltip-modal .item-option-row { display:flex; align-items:baseline; justify-content:flex-start; gap:8px; font-size:.8125rem; margin:3px 0; line-height:1.4; }
.game-tooltip-modal .item-option-row>span { flex-shrink:0; color:#f0f1f4; }
.game-tooltip-modal .item-option-row>div { text-align:left; display:flex; flex-wrap:wrap; align-items:baseline; gap:3px; }
.game-tooltip-modal .item-option-row strong { color:#f7f8f9; font-weight:500; }
.game-tooltip-modal .option-parts { display:inline; font-size:inherit; color:#e2e5ea; }
.game-tooltip-modal .option-part-base { color:#f0f1f4; }
.game-tooltip-modal .option-part-add { color:#80dfbc; }
.game-tooltip-modal .option-part-etc { color:#b1a9f2; }
.game-tooltip-modal .option-part-starforce { color:#f2d259; }
.game-tooltip-modal .item-scroll-count { color:#e4e5e9; font-size:.75rem; margin:7px 0; padding:0; }
.game-tooltip-modal .tooltip-potential { border-color:#99a9b64a; margin-top:10px; padding-top:10px; }
.game-tooltip-modal .tooltip-potential h3 { margin:0 0 6px; font-size:.8125rem; }
.game-tooltip-modal .tooltip-potential ul { list-style-type:square; margin:4px 0 0; padding-left:18px; font-size:.8125rem; line-height:1.45; }
.game-tooltip-modal .tooltip-potential li { margin:3px 0; }
.game-tooltip-modal .tooltip-potential li::marker { color:#d6e85d; }
.game-tooltip-modal .text-legendary { color:#d9e960; }
.game-tooltip-modal .text-unique { color:#f0c263; }
.game-tooltip-modal .text-epic { color:#c5a3e9; }
.game-tooltip-modal .text-rare { color:#9acdf0; }
.game-tooltip-modal .tooltip-potential h3:before { display:inline-grid; place-items:center; width:13px; height:14px; margin-right:5px; font-size:10px; font-weight:800; color:#2f373d; border-radius:1px; }
.game-tooltip-modal .text-legendary:before { content:'L'; background:#d9e960; }
.game-tooltip-modal .text-unique:before { content:'U'; background:#f0c263; }
.game-tooltip-modal .text-epic:before { content:'E'; background:#c5a3e9; }
.game-tooltip-modal .text-rare:before { content:'R'; background:#9acdf0; }
.game-tooltip-modal .tooltip-description { color:#f1f1f4; font-size:.8125rem; line-height:1.5; margin:12px 0; }
.game-tooltip-modal .tooltip-extra-effect { color:#e1dfe7; border:0; padding:0; font-size:.8125rem; line-height:1.45; margin:11px 0; }
.game-tooltip-modal .tooltip-costs { border:0; border-top:1px solid #9eabb94a; border-bottom:1px solid #9eabb94a; border-radius:0; background:#1c26301f; padding:9px 0; margin:12px 0; gap:9px; }
.game-tooltip-modal .tooltip-costs>div { flex-direction:row; align-items:baseline; gap:10px; }
.game-tooltip-modal .tooltip-costs span { flex:1; min-width:0; color:#c2cbd4; font-size:.75rem; }
.game-tooltip-modal .tooltip-costs strong { flex:0 1 auto; max-width:58%; color:#fff; font-size:.8125rem; }
.game-tooltip-modal .button { min-height:30px; padding:5px 10px; font-size:.6875rem; color:#dfe6ec; border-color:#75869480; background:#52637366; }
.game-tooltip-modal .modal-footer { margin-top:12px; }
.pet-game-tooltip .pet-game-meta { text-align:center; margin:0 0 4px; }
.pet-game-tooltip .pet-game-meta.same-name strong { display:none; }
.pet-game-tooltip .pet-game-meta strong { display:block; font-size:.75rem; font-weight:500; color:#d4dce6; }
.pet-game-tooltip .pet-game-meta .game-item-category { border:0; background:none; color:#c8a5e9; padding:0; margin:0; font-size:.875rem; }
.pet-game-tooltip .pet-expiry { text-align:center; color:#e7eaf0; font-size:.75rem; margin:4px 0 10px; }
.pet-game-tooltip .game-item-heading { display:block; padding:10px 0; }
.pet-game-tooltip .game-item-heading:after { content:''; display:block; clear:both; }
.pet-game-tooltip .game-item-image { float:left; margin:0 12px 6px 0; }
.pet-game-tooltip .game-item-heading .tooltip-description { margin:0; }
.game-tooltip-modal .pet-tooltip-buffs { margin:8px 0 12px; }
.game-tooltip-modal .pet-tooltip-buffs button { border-color:#7c8b985c; background:#75839724; color:#eef1f6; padding:5px 7px; font-size:.6875rem; }
.game-tooltip-modal .pet-tooltip-buffs img { width:28px; height:28px; }
.game-tooltip-modal .game-tooltip>h3 { font-size:.8125rem; margin:12px 0 6px; color:#e3e8ed; }
.game-tooltip-modal .pet-detail-skills { display:block; margin:6px 0 0; }
.game-tooltip-modal .pet-detail-skills>span { display:inline; color:#f1d064; border:0; background:none; padding:0; font-size:.75rem; line-height:1.55; }
.game-tooltip-modal .pet-detail-skills>span+span:before { content:', '; }

#modal.equipment-tooltip-modal { padding:13px 19px 15px; background:linear-gradient(145deg,#2c3941f7,#323640fc); }
#modal.equipment-tooltip-modal>.modal-header { display:block; padding:0 0 10px; margin:0 0 9px; }
#modal.equipment-tooltip-modal>.modal-header h2 { font-size:1.0625rem; line-height:1.45; }
#modal.equipment-tooltip-modal>.modal-header>.icon-button { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
#modal.equipment-tooltip-modal>.modal-header>.icon-button:focus-visible { clip-path:none; width:25px; height:25px; right:-10px; top:0; }
.equipment-tooltip-modal .equipment-cut-count { margin:4px 0 0; text-align:center; color:#d99a54; font-size:12.5px; line-height:1.4; }
#modal.equipment-tooltip-modal>.equipment-stars { display:grid; width:max-content; max-width:100%; gap:2px; margin:0 auto 6px; }
.equipment-tooltip-modal .equipment-star-row { display:flex; justify-content:center; gap:12px; }
.equipment-tooltip-modal .equipment-star-group { display:flex; gap:2px; }
.equipment-tooltip-modal .equipment-star { display:block; width:12px; font-size:12px; line-height:12px; letter-spacing:0; }
.equipment-tooltip-modal .equipment-star.is-filled { color:#ffe062; text-shadow:0 1px 1px #0008,0 0 3px #ffd85c66; }
.equipment-tooltip-modal .equipment-star.is-empty { color:#25313b; -webkit-text-stroke:.3px #63728155; text-shadow:0 1px 1px #b8c8db30; }
.equipment-tooltip-modal .equipment-image-row { display:flex; justify-content:space-between; align-items:stretch; gap:16px; }
.equipment-tooltip-modal .game-item-image { width:84px; height:84px; }
.equipment-tooltip-modal .game-item-image img { width:80px; height:80px; }
.equipment-combat { display:flex; flex-direction:column; justify-content:space-between; align-items:flex-end; min-width:0; }
.equipment-combat>span:first-child { color:#b7c0c8; font-size:.8125rem; line-height:1.3; }
.equipment-combat>strong { color:#fff; font-size:2rem; font-weight:750; line-height:1.1; }
.equipment-combat .game-item-category { margin:0; font-size:.75rem; padding:0 10px; }
.equipment-required { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; padding:4px 0 5px; font-size:12.5px; line-height:1.45; }
.equipment-required>span { min-width:83px; color:#bfc8d0; }
.equipment-required>strong { color:#f5f6f8; font-weight:500; }
.equipment-required>small { font-size:.6875rem; color:#c8c3dc; margin-left:auto; }
.equipment-tooltip-modal .item-option-list { padding:5px 0 0; border-bottom:0; }
.equipment-tooltip-modal .item-option-row { gap:8px; margin:0; font-size:12.5px; line-height:1.4; }
.equipment-tooltip-modal .item-option-row>div { gap:4px; }
.equipment-tooltip-modal .item-scroll-count { margin:7px 0 5px; font-size:.75rem; line-height:1.4; }
.equipment-tooltip-modal .tooltip-potential { padding-top:8px; margin-top:6px; }
.equipment-tooltip-modal .tooltip-potential h3 { font-size:12.5px; line-height:1.4; margin:0 0 3px; }
.equipment-tooltip-modal .tooltip-potential ul { margin:2px 0 0; padding-left:18px; font-size:12.5px; line-height:1.4; }
.equipment-tooltip-modal .tooltip-potential li { margin:0; }
/* Decorative bullet pattern matches the reference; block grades remain API values. */
.equipment-tooltip-modal .tooltip-potential-main li:last-child::marker,
.equipment-tooltip-modal .tooltip-potential-additional li:nth-child(n+2)::marker { color:#edc65c; }
/* Apply the app palette without changing the reference tooltip geometry. */
#modal.game-tooltip-modal,#modal.equipment-tooltip-modal {
  --tooltip-line:#81956c4a;
  color:var(--text);
  background:linear-gradient(145deg,#252c21f7,#1c2219fc);
  border-color:#61714f;
  box-shadow:inset 0 0 0 2px #deebc70c,0 15px 60px #0009;
}
#modal.game-tooltip-modal::backdrop { background:#080b06ca; }
.game-tooltip-modal .modal-header { border-bottom-color:var(--tooltip-line); box-shadow:0 1px #0d140b44; }
.game-tooltip-modal .modal-header h2,.game-tooltip-modal .game-item-heading strong,
.game-tooltip-modal .item-option-row>span,.game-tooltip-modal .item-option-row strong,
.game-tooltip-modal .option-part-base,.game-tooltip-modal .panel-info-list dd,
.game-tooltip-modal .tooltip-description,.game-tooltip-modal .equipment-combat>strong,
.game-tooltip-modal .equipment-required>strong { color:var(--text); }
.game-tooltip-modal .game-item-image { background:linear-gradient(145deg,#647257a6,#46533d70); border-color:#a6b590a8; box-shadow:inset 0 0 0 2px #e7f0d319,0 0 8px #bdd49c21; }
.game-tooltip-modal .game-item-category { color:#d0dbc0; background:#6b7d4436; border-color:#879a6a40; }
.game-tooltip-modal .game-item-heading,.game-tooltip-modal .item-option-list,
.game-tooltip-modal .tooltip-potential { border-color:var(--tooltip-line); }
.game-tooltip-modal .panel-info-list dt,.game-tooltip-modal .equipment-required>span,
.game-tooltip-modal .equipment-combat>span:first-child { color:var(--muted); }
.game-tooltip-modal .option-parts,.game-tooltip-modal .item-scroll-count { color:#d5ddca; }
.game-tooltip-modal .text-legendary { color:var(--accent); }
.game-tooltip-modal .text-legendary:before { background:var(--accent); color:#202719; }
.game-tooltip-modal .tooltip-potential li::marker { color:var(--accent); }
.game-tooltip-modal .tooltip-extra-effect { color:#d1dfbd; }
.game-tooltip-modal .tooltip-costs { background:#17211130; border-color:var(--tooltip-line); }
.game-tooltip-modal .tooltip-costs span { color:var(--muted); }
.game-tooltip-modal .tooltip-costs strong { color:var(--text); }
.game-tooltip-modal .button { color:#dce6ce; border-color:#778c5c80; background:#3b4a3066; }
.game-tooltip-modal .pet-tooltip-buffs button { color:#ecf1e4; border-color:#7689635c; background:#5e714224; }
.game-tooltip-modal .pet-expiry { color:#dce3d1; }
.game-tooltip-modal .equipment-cut-count { color:#d0ad7a; }
.equipment-tooltip-modal .equipment-star.is-empty { color:#182014; -webkit-text-stroke-color:#6f7e5c55; text-shadow:0 1px 1px #c0cfaa30; }
@media(max-width:360px) {
  .equipment-tooltip-modal .equipment-star-row { gap:8px; }
  .equipment-tooltip-modal .equipment-star-group { gap:1px; }
  .equipment-tooltip-modal .equipment-star { width:11px; font-size:12px; }
  .equipment-tooltip-modal .item-option-row { font-size:.75rem; gap:6px; }
  .equipment-tooltip-modal .tooltip-potential ul { font-size:.75rem; }
}
@media(max-width:760px) {
  .game-item-heading { gap:14px; }
  .game-item-heading strong { font-size:.9375rem; }
  .game-item-image { width:88px; height:88px; }
  .game-item-image img { width:72px; height:72px; }
  .game-item-category { font-size:.625rem; padding:2px 8px; }
  .item-option-row { font-size:.8125rem; gap:8px; }
  .option-parts { font-size:.6875rem; }
  .symbol-upgrade-costs>span { font-size:.5625rem; }
  .symbol-upgrade-costs>strong { font-size:.625rem; }
  .tooltip-costs { padding:12px; }
  .tooltip-costs>div { flex-direction:column; gap:4px; }
  .tooltip-costs strong { align-self:flex-end; }
  .pet-tooltip-buffs button { font-size:.75rem; }
}

/* Boss refresh uses the same timestamp and icon as the home card. */
.boss-refresh.hero-refresh { position:static; margin-left:auto; display:flex; align-items:center; gap:8px; }

/* Compact hunting amount entry, in the shared charcoal and sage palette. */
#modal.hunting-entry-modal { width:min(480px,calc(100% - 28px)); padding:24px; border-radius:24px; background:var(--panel); border:1px solid var(--border); }
.hunting-entry-modal .modal-header { margin-bottom:20px; }
.hunting-entry-modal .modal-header h2 { font-size:1.1rem; }
.hunting-amount-panel { padding:18px 20px; border-radius:18px; background:#2d312a; }
.hunting-amount-panel>label { margin:0; color:var(--muted); font-size:.8125rem; }
.hunting-main-input { display:flex; align-items:baseline; gap:8px; margin:8px 0 4px; }
#hunting-form .hunting-main-input input { width:100%; min-width:0; border:0; background:transparent; box-shadow:none; border-radius:4px; padding:0; text-align:right; color:var(--text); font-size:clamp(24px,6vw,36px); font-weight:650; font-variant-numeric:tabular-nums; }
.hunting-main-input>span { font-size:.75rem; color:var(--muted); flex:none; }
#mesos-readable { display:block; text-align:right; color:var(--accent); font-size:.9375rem; min-height:24px; overflow-wrap:anywhere; }
.hunting-quick-amounts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:12px 0 24px; }
.hunting-quick-amounts button { padding:10px 2px; min-height:40px; border:1px solid var(--border); border-radius:12px; background:#282c25; font-size:.8125rem; font-weight:600; }
.hunting-quick-amounts button:hover { background:#3c4930; }
.hunting-shard-panel { padding:16px; background:#252922; border-radius:16px; }
.hunting-shard-panel h3 { font-size:.875rem; margin:0 0 14px; }
.hunting-shard-panel .hunting-form-grid { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:12px; }
.hunting-shard-panel label { margin:0; min-width:0; color:var(--muted); font-size:.75rem; }
.hunting-shard-panel .meso-field { gap:5px; margin-top:7px; }
.hunting-shard-panel input { min-width:0; padding:9px 8px; text-align:right; font-size:.875rem; font-variant-numeric:tabular-nums; }
.hunting-shard-panel output { display:block; color:var(--accent); margin-top:5px; font-size:.6875rem; overflow-wrap:anywhere; }
.hunting-shard-panel .shard-estimate { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:16px 0 0; padding-top:12px; border-top:1px solid var(--border); font-size:.75rem; }
.hunting-shard-panel .shard-estimate strong { font-size:.8125rem; overflow-wrap:anywhere; text-align:right; }
.hunting-entry-modal .hunting-form-actions { margin-top:22px; display:grid; grid-template-columns:1fr 2fr; }
.hunting-entry-modal .hunting-form-actions .button { min-height:44px; border-radius:14px; }
@media(max-width:360px) { #modal.hunting-entry-modal { padding:18px; } .hunting-amount-panel { padding:14px; } .hunting-quick-amounts { gap:5px; } .hunting-quick-amounts button { font-size:.6875rem; } .hunting-shard-panel { padding:12px; } }

#hunting-form { display:block; margin:0; }
#hunting-form .form-error:empty { display:none; }
.hunting-shard-panel .hunting-form-grid label { display:block; }
/* Shared logo header and high contrast revenue figures. */
.topbar { min-height:78px; padding-block:16px; }
.app-logo { display:flex; align-items:center; gap:9px; padding:0; border:0; background:transparent; text-align:left; }
.app-logo img,.brand-logo { width:36px; height:36px; flex:none; }
.app-logo>span { font-size:1.05rem; font-weight:750; white-space:nowrap; letter-spacing:-.04em; }
.income-total strong,.income-lines b,.expected strong,.total-income-value,.total-income-breakdown b,.hunting-summary strong,.hunting-entry-values b,.boss-character .character-summary strong,.boss-remaining>span,.shard-estimate strong,#mesos-readable,.hunting-shard-panel output,.calendar-day.has-income small { color:#f3f4ef; }
.income-period-controls { display:flex; flex:1; align-items:center; justify-content:space-between; gap:14px; min-width:0; }
.income-period-label { color:var(--muted); font-size:.6875rem; white-space:nowrap; }
.total-income-panel .section-title { flex-wrap:wrap; }
.total-income-panel .section-title h2 { flex:none; }
.total-income-panel .section-title .income-period-controls { margin-left:0; }
.income-period-controls>.tabs { margin-left:auto; flex-shrink:0; }
/* Shallow shard input section. */
.hunting-shard-panel { padding:9px 12px; }
.hunting-shard-panel h3 { display:none; }
.hunting-shard-panel .hunting-form-grid { gap:10px; }
.hunting-shard-panel .hunting-form-grid label { font-size:.6875rem; line-height:1.2; }
.hunting-shard-panel .meso-field { margin-top:4px; gap:4px; }
.hunting-shard-panel .meso-field>span { font-size:.625rem; }
.hunting-shard-panel input { height:30px; min-height:30px; padding:4px 6px; margin:0; font-size:.8125rem; line-height:1.2; }
.hunting-shard-panel output { margin-top:2px; font-size:.625rem; line-height:1.2; }
.hunting-shard-panel .shard-estimate { margin:6px 0 0; padding-top:6px; font-size:.6875rem; line-height:1.2; }
.hunting-shard-panel .shard-estimate strong { font-size:.75rem; }
@media(max-width:760px) {
 .topbar { min-height:72px; padding:12px 16px; padding-top:max(12px,env(safe-area-inset-top)); gap:8px; }
 .app-logo img { width:32px; height:32px; }
 .app-logo>span { font-size:.9375rem; }
 .income-period-controls { gap:7px; }
 .income-period-label { font-size:.5625rem; letter-spacing:-.04em; }
 .total-income-panel .section-title { gap:8px 4px; }
 .total-income-panel .section-title h2 { font-size:.9375rem; }
 .total-income-panel .section-title h2:before { display:none; }
 .total-income-panel .tabs button { padding:5px 8px; font-size:.6875rem; }
 .symbol-card-grid { gap:8px; }
 .symbol-card,.symbol-card.can-upgrade { min-height:0; padding:10px 7px; border-radius:12px; }
 .symbol-card .symbol-region,.symbol-card .symbol-next,.symbol-card .symbol-card-stats { display:none; }
 .symbol-card figure { height:46px; margin:0 0 3px; }
 .symbol-card figure img { width:42px; height:42px; }
 .symbol-level { font-size:1rem; line-height:1.3; }
 .symbol-growth { height:15px; margin-top:4px; border-radius:3px; }
 .symbol-growth>span { font-size:.5625rem; line-height:15px; }
 .symbol-max { margin-top:4px; font-size:.8125rem; }
 .symbol-upgrade-costs { border:0; margin:5px 0 0; padding:0; gap:1px; }
 .symbol-upgrade-costs>span { font-size:.5625rem; margin-top:2px; line-height:1.2; }
 .symbol-upgrade-costs>strong { font-size:.625rem; line-height:1.25; }
 .symbol-card.is-max { justify-content:center; }
}
@media(max-width:360px) {
 .app-logo>span { font-size:.8125rem; }
 .app-logo { gap:6px; }
 .income-period-controls { gap:4px; }
 .income-period-label { font-size:.5rem; }
 .total-income-panel .tabs button { padding:5px 6px; }
 .hunting-shard-panel { padding:8px 10px; }
}

.hunting-shard-panel { padding:6px 10px; }
.hunting-shard-panel input { height:28px; min-height:28px; }

/* Match empty and registered pet buff slots; center icons on desktop too. */
.pet-buff { width:100%; aspect-ratio:1; min-height:0; align-items:center; box-sizing:border-box; }
.pet-buff.has-icon { display:grid; place-items:center; }
.pet-buff.has-icon img { display:block; margin:auto; }
.pet-buff.is-empty { min-height:0; padding:3px; gap:2px; }
.pet-buff.is-empty>span,.pet-buff.is-empty>strong { line-height:1.2; }
.income-heading { display:flex; align-items:center; gap:10px; min-width:0; }
.income-scope { white-space:nowrap; font-size:.6875rem; color:var(--muted); font-weight:400; }
.income-panel .section-title>.tabs { margin-left:auto; flex-shrink:0; }
@media(max-width:760px) {
 .pet-buff { min-height:0; }
 .pet-buff.is-empty>strong { font-size:.5625rem; }
 .ability-board { container-type:inline-size; }
 .ability-option { padding:8px 5px; gap:0; }
 .ability-option-grade { display:none; }
 .ability-option>span:last-child { font-size:clamp(9px,3.6cqw,13px); line-height:1.4; white-space:nowrap; letter-spacing:-.025em; }
 .total-income-panel .section-title h2:before { display:inline-block; }
 .income-heading { gap:5px; }
 .income-scope { font-size:.5625rem; letter-spacing:-.04em; }
 .income-panel .section-title { gap:5px; }
 .income-panel .section-title h2 { font-size:.9375rem; white-space:nowrap; }
 .income-panel .tabs button { padding:5px 7px; font-size:.6875rem; }
}
@media(max-width:360px) {
 .income-heading { gap:4px; }
 .income-scope { font-size:.5rem; }
 .income-panel .section-title h2 { font-size:.8125rem; }
 .income-panel .tabs button { padding:5px 5px; font-size:.625rem; }
 .total-income-panel .section-title { column-gap:3px; }
 .total-income-panel .section-title h2 { font-size:.8125rem; }
 .total-income-panel .section-title h2:before { margin-right:4px; }
}

/* User supplied logo: preserve the complete artwork and embedded wordmark. */
.app-logo img { width:92px; height:92px; object-fit:contain; display:block; }
.topbar { padding-block:4px; min-height:100px; }
.sidebar .brand { justify-content:center; }
.sidebar .brand-logo { width:148px; height:148px; object-fit:contain; display:block; }
.login-art .brand-logo { width:140px; height:140px; object-fit:contain; display:block; }
.loading-logo { width:100px; height:100px; object-fit:contain; }
@media(max-width:760px) {
 .topbar { min-height:86px; padding-top:max(4px,env(safe-area-inset-top)); padding-bottom:4px; }
 .app-logo img { width:78px; height:78px; }
 .login-art .brand-logo { width:112px; height:112px; }
}

/* Keep the app name visible next to the supplied graphic. */
.app-logo { gap:10px; }
.app-logo>span { color:var(--text); font-size:1.125rem; font-weight:750; letter-spacing:-.045em; white-space:nowrap; }
.sidebar .brand { flex-direction:column; align-items:center; gap:4px; text-align:center; }
.sidebar .brand-logo { width:124px; height:124px; }
.sidebar .brand b { font-size:1.05rem; }
.sidebar .brand small { display:block; font-size:.5625rem; letter-spacing:.13em; }
.login-art .brand { gap:16px; }
@media(max-width:760px) {
 .app-logo { gap:8px; }
 .app-logo>span { font-size:1rem; }
 .app-logo img { width:68px; height:68px; }
 .topbar { min-height:78px; }
}
@media(max-width:360px) {
 .app-logo { gap:6px; }
 .app-logo img { width:58px; height:58px; }
 .app-logo>span { font-size:.875rem; }
 .header-actions { gap:6px; }
}

/* Approved concept 4: sage ribbon M with an orange maple leaf. */
.app-logo { gap:10px; }
.app-logo img { width:56px; height:56px; }
.topbar { min-height:76px; padding-block:8px; }
.sidebar .brand { flex-direction:row; justify-content:flex-start; align-items:center; gap:8px; text-align:left; }
.sidebar .brand-logo { width:52px; height:52px; }
.sidebar .brand b { font-size:.9375rem; white-space:nowrap; }
.sidebar .brand small { font-size:.5rem; letter-spacing:.1em; }
.login-art .brand-logo { width:72px; height:72px; }
.loading-logo { width:96px; height:96px; }
@media(max-width:760px) {
 .app-logo img { width:52px; height:52px; }
 .app-logo>span { font-size:1.0625rem; }
 .topbar { min-height:72px; padding-top:max(8px,env(safe-area-inset-top)); padding-bottom:8px; }
 .login-art .brand-logo { width:64px; height:64px; }
}
@media(max-width:360px) {
 .app-logo img { width:44px; height:44px; }
 .app-logo { gap:7px; }
 .app-logo>span { font-size:.9375rem; }
}

.hunting-income-panel .section-title { flex-wrap:wrap; }
.hunting-income-panel .section-title h2 { flex:none; }
.hunting-income-panel .income-period-controls { margin-left:0; }
.hunting-form-actions:has(.danger) { grid-template-columns:auto 1fr 2fr; }
.hunting-saved-records { display:grid; gap:10px; }
.hunting-saved-records .button { display:flex; flex-direction:column; gap:4px; text-align:left; align-items:flex-start; }
.hunting-saved-records .button span { color:var(--muted); font-size:.75rem; }
@media(max-width:760px) {
 .hunting-income-panel .section-title { gap:8px 4px; }
 .hunting-income-panel .section-title h2 { font-size:.9375rem; }
 .hunting-income-panel .tabs button { padding:5px 8px; font-size:.6875rem; }
}
@media(max-width:360px) {
 .hunting-income-panel .section-title { column-gap:3px; }
 .hunting-income-panel .section-title h2 { font-size:.8125rem; }
 .hunting-income-panel .section-title h2:before { margin-right:4px; }
 .hunting-income-panel .tabs button { padding:5px 6px; }
}

.mobile-nav [data-value="characters"] svg,.mobile-nav [data-value="bosses"] svg { width:22px; height:22px; stroke-width:1.8; }

.key-change { margin:24px 0; border:1px solid var(--border); border-radius:14px; background:#22281e; }
.key-change>summary { padding:14px 16px; cursor:pointer; font-size:.9375rem; font-weight:600; }
.key-change-body { padding:0 16px 16px; }
.key-change-body .small { margin-top:0; }
.key-change-body form { margin:16px 0 0; }
.key-onboarding-help { padding:16px; margin:20px 0; background:#28321f; border:1px solid #4a5b38; border-radius:14px; }
.key-onboarding-help h3 { margin:0 0 6px; font-size:.9375rem; }
.key-onboarding-help p { margin:0 0 12px; color:var(--muted); font-size:.8125rem; line-height:1.7; }
.key-onboarding-help .button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; min-height:42px; font-size:.8125rem; }
.onboarding-steps { display:flex; gap:12px; padding:0; margin:0 0 20px; list-style:none; }
.onboarding-steps li { font-size:.75rem; padding-bottom:8px; border-bottom:2px solid var(--border); flex:1; color:var(--muted); }
.onboarding-steps li.current { border-color:var(--accent); color:var(--text); }
.onboarding-steps li.complete { color:#c7d8b0; }
.login-next-step { margin-top:16px; }

.api-key-banner { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 36px; background:#303d1c; border-bottom:1px solid #74894c; color:var(--text); }
.api-key-banner>div { min-width:0; }
.api-key-banner strong { display:block; font-size:.9375rem; margin-bottom:4px; }
.api-key-banner span { display:block; font-size:.8125rem; color:#d6dfc5; line-height:1.7; }
.api-key-banner .button { flex:none; white-space:nowrap; }
@media(max-width:760px) { .api-key-banner { align-items:flex-start; flex-direction:column; gap:12px; padding:16px 18px; } .api-key-banner .button { width:100%; min-height:42px; } }

.hunting-income-panel > .expected { justify-content:flex-end; }

.admin-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}.admin-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.admin-toolbar .button{min-height:36px;padding:7px 12px;font-size:.75rem}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-metrics article{padding:14px;display:flex;flex-direction:column;gap:6px}.admin-metrics span{color:var(--muted);font-size:.75rem}.admin-metrics strong{font-size:1.6rem;color:var(--text)}.admin-section{margin:24px 0}.admin-table>div{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);font-size:.875rem}.admin-table>div>:not(:first-child){text-align:right}.admin-chart{display:flex;gap:12px;overflow-x:auto;padding:14px 0}.admin-chart-column{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:46px;flex:1}.admin-chart-column progress{width:100%;height:8px;accent-color:var(--accent)}.admin-chart-column small{font-size:.65rem;color:var(--muted)}@media(max-width:760px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-metrics article{padding:12px}.admin-metrics strong{font-size:1.3rem}.admin-table>div{font-size:.75rem;gap:8px}}

.admin-chart-column svg{width:24px;height:80px;fill:var(--accent)}.admin-chart-column .admin-bar-track{fill:var(--border)}

.policy-links{display:flex;gap:16px;flex-wrap:wrap;margin:22px 0 8px;font-size:.75rem}.policy-links a{color:var(--muted);text-underline-offset:4px}


.admin-members-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.admin-members{padding:0;list-style:none;margin:12px 0}.admin-members>li{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--border);padding:14px 0}.admin-members>li>div{display:flex;flex-direction:column;gap:5px;min-width:0}.admin-members>li>div:last-child{text-align:right;align-items:flex-end}.admin-members strong{overflow-wrap:anywhere}.admin-member-world{font-size:.8rem}.admin-members small{font-size:.7rem}.admin-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.admin-pagination .button{padding:7px 16px;min-height:36px}@media(max-width:480px){.admin-members>li{gap:8px}.admin-members strong{font-size:.875rem}.admin-members .badge{font-size:.625rem}.admin-members>li>div:last-child{flex-shrink:0}.admin-members-heading>.small{font-size:.7rem}}
