@font-face{font-family:Manrope;src:url('/assets/Manrope-Regular.8fcc4ecfc597cef3.woff') format('woff');font-weight:400;font-display:swap}
    @font-face{font-family:Manrope;src:url('/assets/Manrope-Medium.4771c8c487f4a538.woff') format('woff');font-weight:500;font-display:swap}
    @font-face{font-family:Manrope;src:url('/assets/Manrope-Bold.a6abfaab0c35a050.woff') format('woff');font-weight:700;font-display:swap}
    @font-face{font-family:Manrope;src:url('/assets/Manrope-ExtraBold.f257eef35174c36f.woff') format('woff');font-weight:800;font-display:swap}
    :root{--font-ui:Manrope,system-ui,sans-serif;--ui-caption-size:10px;--ui-detail-size:11px;--ui-copy-size:12px;--ui-label-size:13px;--blue:#1459dc;--deep:#153b75;--ink:#1c304d;--muted:#697a94;--line:#dce5f3;--pale:#edf4ff;--bg:#f6f8fc;--white:#fff;--soft:#f2f6fd;--radius:20px}
    *{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:112px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-ui);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
    button,input{font:inherit}select,textarea{font-family:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue);text-decoration:none}button{color:inherit}button:disabled{cursor:default}img{max-width:100%}svg{display:block;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #9abefb;outline-offset:4px}[hidden]{display:none!important}
    .shell{width:min(1180px,calc(100% - 64px));margin:auto}.site-header{position:sticky;top:0;z-index:40;background:rgba(246,248,252,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.header-inner{min-height:82px;display:flex;align-items:center;gap:28px}.brand{display:inline-flex;align-items:center;gap:12px;color:var(--blue);font-size:22px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}.brand-mark{width:37px;height:37px;border-radius:12px;background:var(--blue);display:grid;place-items:center;color:#fff;font-size:23px;letter-spacing:-2px;padding-right:2px}.brand-separator{height:25px;width:1px;background:var(--line)}.brand-game{font-weight:700;font-size:13px;color:var(--muted);letter-spacing:1px}.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.channel-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:9px 14px;color:var(--deep);white-space:nowrap}.channel-link:hover{border-color:#aec6ed;background:var(--pale)}
    .search-box{position:relative;width:300px}.search-input-wrap{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 13px;color:var(--muted)}.search-input-wrap:focus-within{border-color:#8eafe8;box-shadow:0 0 0 3px #e8f0ff}.search-input-wrap input{border:0;background:transparent;outline:0!important;min-width:0;width:100%;height:43px;font-size:13px;color:var(--ink)}.search-input-wrap input::placeholder{color:#8291a7}.search-shortcut{font-size:11px;color:#8291a7;border:1px solid var(--line);border-radius:4px;line-height:1.4;padding:0 5px}.search-results{position:absolute;right:0;top:calc(100% + 10px);width:430px;max-height:min(540px,70vh);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 50px #17396b18;padding:10px;z-index:50}.search-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:700;padding:9px 11px 5px}.search-result{border:0;background:#fff;text-align:left;width:100%;padding:11px;border-radius:9px;display:flex;gap:11px;align-items:center;color:var(--ink)}.search-result:hover,.search-result:focus-visible{background:var(--pale)}.search-result strong{font-size:13px;font-weight:700;display:block}.search-result small{font-size:11px;color:var(--muted);display:block}.search-result-icon{color:var(--blue)}.search-empty{font-size:13px;padding:14px;color:var(--muted)}
    .hero{margin-top:28px;padding:38px 46px;display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:18px;align-items:center;position:relative;overflow:hidden;border:1px solid #d7e5fc;border-radius:26px;background:linear-gradient(115deg,#edf4ff,#f8fbff 66%);min-height:330px}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:800;text-transform:uppercase;color:var(--blue);display:flex;align-items:center;gap:8px}.eyebrow-dot{width:5px;height:5px;background:var(--blue);border-radius:50%}.hero h1{margin:12px 0 14px;color:var(--blue);font-weight:800;letter-spacing:-2px;font-size:clamp(34px,4.3vw,53px);line-height:1.12;max-width:680px}.hero-description{max-width:600px;color:var(--muted);font-size:15px;line-height:1.7;margin:0}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.hero-tag{border:1px solid #d2e0f5;background:#ffffffb5;border-radius:8px;padding:4px 10px;font-size:11px;font-weight:700;color:var(--deep);white-space:nowrap}.hero-figure{height:282px;position:relative;z-index:1;align-self:center;margin:-10px 0}.hero-figure img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 14px 12px #10244910)}.hero-circle{position:absolute;border:1px solid #d3e2fc;border-radius:50%;right:-100px;top:-140px;width:390px;height:390px;pointer-events:none}.hero-circle:before,.hero-circle:after{content:"";position:absolute;inset:42px;border:1px solid #d3e2fc;border-radius:50%}.hero-circle:after{inset:84px}.hero-point{position:absolute;width:5px;height:5px;background:#afc9f7;border-radius:50%;right:260px;top:75px}
    .view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 23px}.view-tabs{display:flex;gap:24px;align-items:center}.view-tab{border:0;background:transparent;border-bottom:2px solid transparent;padding:10px 0 13px;font-size:17px;font-weight:700;color:var(--muted)}.view-tab.active{border-color:var(--blue);color:var(--blue)}.tab-count{font-size:10px;vertical-align:middle;background:#e9eef7;color:var(--muted);padding:2px 5px;border-radius:5px;margin-left:5px}.view-tab.active .tab-count{background:#e2ecff;color:var(--blue)}.role-switch{display:inline-flex;border:1px solid var(--line);border-radius:12px;padding:4px;background:#eaf0f8;gap:3px}.role-button{border:0;background:transparent;border-radius:8px;padding:7px 15px;font-size:12px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:7px}.role-button.active{background:#fff;color:var(--blue);box-shadow:0 1px 6px #263f6810}
    .route-topline{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:7px 0 17px}.section-title{font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--deep);margin:0}.gs-form{display:flex;align-items:center;gap:8px}.gs-form label{font-size:12px;color:var(--muted);white-space:nowrap}.gs-form input{border:1px solid var(--line);background:#fff;width:112px;min-width:0;border-radius:9px;padding:7px 10px;outline:0;color:var(--ink);font-size:12px}.button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px 11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:700;line-height:1.45}.button:hover{background:var(--pale);border-color:#b8cbee}.button-primary{background:var(--blue);border-color:var(--blue);color:#fff}.button-primary:hover{background:#084bbf;border-color:#084bbf}.stage-rail{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 20px}.stage-button{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px 12px;text-align:left;position:relative;min-width:0}.stage-button:hover{border-color:#a9c3ee;background:#fbfdff}.stage-button.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 14px #1459dc15}.stage-button small{display:flex;align-items:center;justify-content:space-between;color:#8a99af;font-size:9px;font-weight:800;letter-spacing:1px;margin-bottom:7px}.stage-button.active small{color:#c9dcff}.stage-button strong{font-size:15px;line-height:1.3;font-weight:800;letter-spacing:-.3px;display:block;white-space:nowrap}.stage-button span{font-size:10px;line-height:1.4;margin-top:7px;display:block;color:var(--muted)}.stage-button.active span{color:#d9e6ff}.stage-status-dot{display:block!important;width:6px;height:6px;border-radius:50%;margin:0!important;background:#d7e1ef}.stage-status-dot.finished{background:#4775b8}.stage-button.active .stage-status-dot{background:#92bbff}.stage-button.active .stage-status-dot.finished{background:#abc9fa}
    .stage-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px 32px;scroll-margin-top:110px}.stage-detail{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,.8fr);gap:32px}.stage-heading{font-size:29px;line-height:1.3;letter-spacing:-.8px;margin:6px 0 10px;font-weight:800;color:var(--ink)}.stage-lead{color:var(--muted);font-size:14px;margin:0;max-width:620px;line-height:1.65}.stage-step-count{font-size:10px;letter-spacing:1px;color:var(--blue);font-weight:800;text-transform:uppercase}.task-list{margin-top:25px;display:grid;gap:9px}.task-row{display:flex;align-items:flex-start;gap:13px;padding:13px 14px 13px 0;border-bottom:1px solid #e9eef7;cursor:pointer}.task-row:last-child{border-bottom:0}.task-row input{margin-top:3px}.task-text{display:block;min-width:0}.task-text strong{font-size:14px;font-weight:700;display:block;line-height:1.55}.task-description{display:block;font-size:13px;line-height:1.65;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.task-row.done .task-text strong{color:#6b7e96}.task-row.done{background:#f7faff;border-radius:10px;padding-left:12px}.checkbox{appearance:none;display:block;width:20px;height:20px;flex:0 0 20px;border:1.5px solid #b5c4dc;border-radius:6px;background:#fff;cursor:pointer}.checkbox:checked{background-color:var(--blue);border-color:var(--blue);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.2 3.2L15 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.goal-card{background:var(--pale);border:1px solid #dce8fc;border-radius:15px;padding:24px}.goal-label{font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--blue)}.goal-number{font-size:49px;font-weight:800;line-height:1.25;letter-spacing:-1.5px;color:var(--blue);margin:8px 0 7px}.goal-number span{font-size:13px;letter-spacing:0;font-weight:700;margin-left:6px}.goal-unlock{font-size:13px;color:var(--deep);line-height:1.6}.goal-unlock small{font-size:11px;color:var(--muted);display:block}.stage-metrics{display:grid;gap:9px;margin-top:13px}.metric{border:1px solid var(--line);border-radius:10px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff}.metric-label{font-size:11px;color:var(--muted);line-height:1.45}.metric-value{font-size:13px;font-weight:700;line-height:1.35;text-align:right;color:var(--deep)}.stage-note{margin-top:22px;border-radius:12px;padding:14px 17px;background:#f0f5fd;border:1px solid #dfE8f6;display:flex;gap:11px;align-items:flex-start}.stage-note.warning{background:#fff8eb;border-color:#f3e2c0}.note-icon{color:var(--blue);margin-top:2px}.warning .note-icon{color:#a4772c}.note-title{font-size:12px;font-weight:700;display:block;margin-bottom:3px}.note-description{font-size:12px;color:var(--muted);line-height:1.65;margin:0}.stage-tip{font-size:11px;line-height:1.7;color:var(--muted);margin:17px 2px 0}.stage-footer{margin-top:22px;padding-top:17px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.completion-text{font-size:11px;color:var(--muted)}.completion-text strong{color:var(--deep);font-weight:700}.progress-track{height:4px;width:130px;border-radius:4px;background:#e7eef9;margin-top:6px;overflow:hidden}.progress-fill{height:100%;background:var(--blue);border-radius:4px;transition:width .2s}.next-stage-button{margin-left:auto}.endgame-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px}.dungeon-choice{border:1px solid var(--line);border-radius:16px;background:#fbfdff;padding:23px}.choice-condition{font-size:11px;color:var(--blue);font-weight:700;line-height:1.5;margin-bottom:12px}.dungeon-choice h3{font-size:24px;font-weight:800;letter-spacing:-.5px;margin:0 0 2px}.dungeon-english{font-size:11px;color:var(--muted)}.dungeon-loot{border-top:1px solid var(--line);padding-top:15px;margin:17px 0 8px;font-size:14px;font-weight:700;color:var(--deep)}.dungeon-copy{font-size:12px;line-height:1.65;color:var(--muted);margin:0}
    .activity-intro{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:15px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 30px;margin-bottom:20px;overflow:hidden}.activity-intro h2{font-size:27px;letter-spacing:-.7px;line-height:1.25;font-weight:800;margin:5px 0 8px}.activity-intro p{font-size:13px;line-height:1.7;color:var(--muted);max-width:780px;margin:0}.activity-art{height:118px;width:156px;object-fit:contain;justify-self:end}.intro-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.intro-chip{display:flex;gap:7px;align-items:center;font-size:10px;font-weight:700;color:var(--deep);border:1px solid #e0e8f5;border-radius:7px;padding:4px 8px;background:#f7faff}.intro-chip strong{color:var(--blue);font-weight:800;font-size:11px}.activity-toolbar{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:15px}.period-tabs{display:flex;gap:6px;flex-wrap:wrap}.period-button{background:transparent;border:1px solid transparent;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}.period-button:hover{background:#fff}.period-button.active{background:#fff;border-color:#d5e0f0;color:var(--blue)}.period-count{font-size:10px;font-weight:500;opacity:.7;margin-left:5px}.only-open{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--muted);font-size:11px;cursor:pointer}.only-open input{width:16px;height:16px;flex-basis:16px;border-radius:4px;margin:0}.activity-progress{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);margin:8px 2px 18px}.activity-progress strong{color:var(--deep)}.activity-progress .progress-track{margin:0;width:110px}.activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.activity-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px 22px;min-width:0;scroll-margin-top:125px;transition:border-color .15s,box-shadow .15s}.activity-card.completed{background:#f9fbff}.activity-card.highlight{border-color:var(--blue);box-shadow:0 0 0 3px #d7e6ff}.card-header{display:flex;align-items:flex-start;gap:11px}.card-icon{width:37px;height:37px;border-radius:11px;background:var(--pale);color:var(--blue);display:grid;place-items:center;flex-shrink:0}.card-name-wrap{min-width:0;flex:1}.card-name{font-size:16px;font-weight:800;letter-spacing:-.2px;line-height:1.4;margin:0}.card-sub{font-size:10px;line-height:1.6;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.card-check{padding:7px;margin:-3px -5px 0 0;cursor:pointer;flex-shrink:0}.card-check input{margin:0}.card-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:17px}.card-count{font-size:13px;line-height:1.4;font-weight:800;background:var(--pale);color:var(--blue);border-radius:8px;padding:6px 10px}.card-limit{font-size:9px;letter-spacing:.5px;font-weight:800;line-height:1.5;color:var(--muted);padding:4px 0}.card-limit.server{color:var(--blue)}.card-scope{font-size:10px;line-height:1.5;color:var(--muted);margin:6px 1px 0}.card-description{font-size:13px;line-height:1.75;color:#3e526f;margin:16px 0 13px;min-height:45px;overflow-wrap:anywhere}.reward-line{padding-top:13px;border-top:1px solid #e9eef7;font-size:11px;line-height:1.65;color:var(--deep)}.reward-line small{font-weight:700;font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-right:8px}.card-compare{margin-top:12px;font-size:11px}.card-compare summary{display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-weight:700;cursor:pointer;list-style:none}.card-compare summary:before{content:"+";font-size:15px;line-height:1}.card-compare[open] summary:before{content:"−"}.card-compare summary::-webkit-details-marker{display:none}.card-compare p{background:var(--pale);border-radius:9px;padding:11px 12px;font-size:12px;line-height:1.7;color:var(--deep);margin:9px 0 0}.card-warning{font-size:10px;line-height:1.65;margin-top:13px;background:#fff8ec;border:1px solid #f3e4c7;border-radius:9px;padding:10px 11px;color:#876728}.limits-box{border:1px solid #d4e2f9;background:var(--pale);border-radius:15px;padding:20px 24px;margin-top:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.limits-item strong{display:block;font-size:11px;color:var(--blue);font-weight:800;margin-bottom:5px}.limits-item p{font-size:11px;line-height:1.7;color:var(--deep);margin:0}.empty-state{grid-column:1/-1;border:1px dashed #c6d8f1;border-radius:16px;background:#fff;text-align:center;padding:38px 25px}.empty-state h3{font-size:18px;color:var(--deep);margin:0 0 7px}.empty-state p{font-size:13px;color:var(--muted);margin:0 0 17px}
    .bottom-tools{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0 35px}.storage-note{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.reset-menu{position:relative;font-size:10px;color:var(--muted)}.reset-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;padding:7px}.reset-menu summary::-webkit-details-marker{display:none}.reset-options{position:absolute;right:0;bottom:calc(100% + 6px);z-index:10;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 10px 25px #18345b12;padding:6px;min-width:180px}.reset-options button{display:block;width:100%;text-align:left;border:0;background:#fff;border-radius:6px;padding:9px 10px;font-size:11px}.reset-options button:hover{background:var(--pale);color:var(--blue)}.site-footer{border-top:1px solid var(--line);padding:23px 0 30px;display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:10px;line-height:1.7;color:var(--muted)}.footer-brand{font-size:14px;font-weight:800;color:var(--blue);margin-right:12px}.footer-meta{text-align:right}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);display:flex;gap:17px;align-items:center;z-index:90;background:#1b3152;color:#fff;padding:13px 18px;border-radius:13px;box-shadow:0 8px 28px #18345b25;font-size:12px;max-width:calc(100% - 30px)}.toast button{color:#9cc3ff;border:0;background:transparent;font-size:12px;font-weight:700;padding:3px;white-space:nowrap}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript-note{border:1px solid var(--line);background:#fff;padding:25px;border-radius:16px;margin:20px 0;color:var(--muted)}
    .task-text strong{font-size:15px}.task-description{font-size:14px}.card-description{font-size:14px}.reward-line{font-size:12px}

.seo-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:22px 0 14px;font-size:11px;line-height:1.7;color:var(--muted)}
.seo-breadcrumbs a,.seo-tool-links a,.seo-account-note a{color:var(--accent);text-decoration:none}
.seo-breadcrumbs a:hover,.seo-tool-links a:hover,.seo-account-note a:hover{text-decoration:underline;text-underline-offset:3px}
.section-view .section-heading.tool-heading,
.cabinet .cab-workspace-heading.tool-heading {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  min-block-size: var(--workspace-heading-height, 124px);
  gap: 16px;
  padding: var(--workspace-heading-padding, 26px 0 24px);
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tool-heading-copy{flex:1;min-width:0}
:is(.section-view,.cabinet) .tool-heading-title{font:800 clamp(27px,3vw,34px)/1.25 Manrope,sans-serif;letter-spacing:-1.1px;margin:0;padding:0;color:var(--section-ink,var(--text))}
:is(.section-view,.cabinet) .tool-heading-title>span{color:var(--section-blue,var(--cab-blue,var(--accent)));font-weight:500;white-space:nowrap}
.section-view .tool-heading p.tool-heading-lead{display:block;font-size:12px;line-height:1.75;letter-spacing:0;width:auto;max-width:90ch;margin:10px 0 0;color:var(--section-copy)}
.section-view .tool-heading .fm-heading-actions{flex-shrink:0;margin-top:2px}
.seo-tool-guide{margin:34px 0 26px;background:var(--surface);border:0;border-radius:12px;overflow:hidden}
.seo-guide-heading{position:relative;display:block;list-style:none;cursor:pointer;padding:16px 48px 16px 22px;background:linear-gradient(110deg,var(--section-head-start),var(--section-head-end))}
.seo-guide-heading::-webkit-details-marker{display:none}
.seo-guide-heading::after{content:'';position:absolute;inset-inline-end:22px;top:50%;width:9px;height:9px;border:solid var(--accent);border-width:0 2px 2px 0;transform:translateY(-72%) rotate(45deg)}
.seo-guide[open]>.seo-guide-heading::after{transform:translateY(-26%) rotate(225deg)}
.seo-guide-heading:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.seo-guide-heading h2{font:700 17px/1.35 Manrope,sans-serif;margin:0;color:var(--text)}
.seo-guide-body{padding:24px 26px;font-size:12px;line-height:1.85;color:var(--copy)}
.seo-guide-body>p{max-width:105ch;margin:0 0 18px}.seo-guide-body>h3{font:700 18px/1.4 Manrope,sans-serif;color:var(--text);margin:24px 0 14px}
.seo-guide-body ol{padding-left:22px;margin:0 0 24px;max-width:105ch}.seo-guide-body li{padding:3px 0 6px 5px}
.seo-questions{display:grid;gap:10px}.seo-questions details{padding:15px 18px;background:var(--soft);border:0;border-radius:8px}.seo-questions summary{cursor:pointer;font-weight:700;color:var(--text)}.seo-questions details p{margin:12px 0 0;max-width:105ch}
.seo-guide-body .seo-account-note{font-size:11px;margin:20px 0;color:var(--muted)}
.seo-worked-example{margin:0 0 26px}.seo-worked-example h3{font-size:19px;line-height:1.4;color:var(--text);margin:0 0 12px}.seo-worked-example>p{max-width:105ch;margin:0 0 16px}.seo-example-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 4px;text-align:left;font-size:12px;line-height:1.65}.seo-example-table th,.seo-example-table td{padding:12px 14px;vertical-align:top;overflow-wrap:anywhere;border:0;background:var(--soft)}.seo-example-table thead th{background:var(--selection);color:var(--text);font-weight:700}.seo-example-table tbody th{font-weight:700;color:var(--text)}.seo-example-table tr>:first-child{border-radius:7px 0 0 7px}.seo-example-table tr>:last-child{border-radius:0 7px 7px 0}.seo-worked-example .seo-example-note{font-size:11px;color:var(--muted);margin:12px 0 0}.seo-provenance{margin:24px 0;padding:16px 18px;background:var(--soft);border-radius:8px;font-size:11px;line-height:1.8}.seo-provenance p{margin:0 0 6px}.seo-provenance strong{color:var(--text)}.seo-provenance nav{display:flex;flex-wrap:wrap;gap:6px 18px}.seo-provenance a{color:var(--accent)}
@media(max-width:600px){.seo-example-table{font-size:11px}.seo-example-table th,.seo-example-table td{padding:10px 8px}.seo-example-table tr>:first-child{width:28%}.seo-example-table tr>:nth-child(2){width:32%}.seo-example-table tr>:last-child{width:40%}.seo-worked-example h3{font-size:18px}}
.seo-tool-links,.seo-site-links{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:11px;line-height:1.8}.seo-site-links{margin:22px 0 0}.seo-site-links a{color:var(--muted)}
[data-theme="dark"] :is(.seo-tool-guide,.seo-questions details){border:0;outline:0}
@media(max-width:640px){.section-view .section-heading.tool-heading{gap:14px}.section-view .tool-heading-title{font-size:27px;letter-spacing:-.7px}.section-view .tool-heading p.tool-heading-lead{font-size:12px;line-height:1.7;margin-top:9px}.section-view .fm-heading.tool-heading{flex-wrap:wrap}.fm-heading.tool-heading .tool-heading-copy{flex-basis:100%}.section-view .tool-heading .fm-heading-actions{margin-top:0;margin-left:auto}}
@media(max-width:600px){.seo-guide-heading{padding:15px 42px 15px 16px}.seo-guide-body{padding:20px 16px}.seo-breadcrumbs{margin-top:16px;font-size:10px}.seo-tool-guide{margin-top:26px}.seo-guide-heading h2{font-size:15px}}

/* Compact reader layout. The base stylesheet retains shared controls. */
:root{--blue:#175cd3;--deep:#174899;--ink:#203047;--muted:#69778b;--line:#dee5ef;--bg:#f5f7fa;--pale:#eff5ff;--soft:#f8fafc}
body{font-size:14px}.shell{width:min(1240px,calc(100% - 64px))}
.skip-link{position:fixed;top:10px;left:10px;z-index:100;transform:translateY(-160%);padding:10px 15px;background:var(--blue);color:#fff;border-radius:8px}.skip-link:focus{transform:none}
.header-inner{min-height:74px}.brand{font-size:20px}.brand-mark{width:36px;height:38px;border-radius:10px;font-size:24px}.brand-game{font-size:11px}.channel-link{font-size:11px;border-radius:8px;padding:9px 13px}.search-box{width:320px}.search-input-wrap{border-radius:8px}.search-input-wrap input{height:39px;font-size:11px}.search-result strong{font-size:12px}.search-result small{font-size:10px}
.hero{grid-template-columns:minmax(0,1fr) 295px;min-height:unset;padding:31px 39px;background:linear-gradient(110deg,#fff 45%,#edf4ff);border-radius:21px;gap:24px}
.eyebrow{font-size:9px;letter-spacing:1.3px}.hero h1{font-size:clamp(30px,3.5vw,43px);letter-spacing:-1.5px;margin:13px 0 12px;max-width:630px}.hero-description{font-size:13px;max-width:555px;line-height:1.8}.hero-figure{height:250px;margin:0}.hero-circle{right:-20px;top:-68px;width:320px;height:320px}.hero-point{right:280px;top:53px}.hero-actions{display:flex;align-items:center;gap:22px;margin-top:20px}.hero-link{display:flex;gap:8px;align-items:center;border:0;background:none;color:var(--blue);font-size:11px;font-weight:700;padding:8px 0}.hero-tags{margin-top:18px;gap:7px}.hero-tag{border-radius:6px;font-size:9px;padding:3px 8px;background:#ffffffbd}
.button{font-size:11px;border-radius:8px;padding:9px 13px}.view-toolbar{border-bottom:1px solid var(--line);margin:25px 0 22px;align-items:end}.view-tab{font-size:14px;padding:11px 0 14px;margin-bottom:-1px;font-weight:800}.tab-count{font-size:8px}.role-switch{border:0;border-radius:9px;padding:3px;margin-bottom:9px;background:#eaf0f7}.role-button{font-size:10px;padding:7px 12px;border-radius:7px}
.route-topline{margin:0 0 17px;align-items:end}.section-kicker{font-size:8px;font-weight:800;letter-spacing:1.2px;color:var(--muted);text-transform:uppercase}.section-title{font-size:21px;font-weight:800;letter-spacing:-.6px;margin:3px 0 0;text-transform:none;color:var(--ink)}.route-hint{font-size:10px;color:var(--muted);margin:0 0 3px}
.route-layout{display:grid;grid-template-columns:234px minmax(0,1fr);gap:22px;align-items:start}.route-sidebar{position:sticky;top:96px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;min-width:0}.gs-form{display:block;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:10px}.gs-form label{display:block;font-size:10px;font-weight:700;margin-bottom:8px}.gs-controls{display:flex;gap:6px}.gs-form input{width:100%;min-width:0;background:var(--soft);border-radius:7px;font-size:11px;padding:9px 10px}.gs-form .button{padding:9px 11px}.gs-helper{font-size:9px;color:var(--muted);margin-top:6px}
.route-content{min-width:0}.stage-rail{position:relative}.stage-button .rail-copy{margin:0}.activity-mode-note{font-size:9px!important;margin-top:9px!important}
.hero h1{max-width:none}.activity-art{position:static;opacity:1}.stage-aside{min-width:0}
.stage-rail{display:grid;grid-template-columns:1fr;gap:2px;margin:0}.stage-button{display:flex;align-items:center;gap:10px;width:100%;border:1px solid transparent;border-radius:9px;background:none;padding:10px 8px;text-align:left;min-width:0;box-shadow:none}.stage-button:hover{background:var(--soft);border-color:transparent}.stage-button.active{background:var(--pale);border-color:#d6e5fc;box-shadow:none;color:var(--ink)}.rail-index{display:grid;place-items:center;width:27px;height:27px;background:#f1f4f8;color:#8a9ab0;border-radius:8px;font-size:10px;font-weight:800;flex-shrink:0}.stage-button.active .rail-index{background:var(--blue);color:#fff}.stage-button.finished .rail-index{background:#e8effa;color:#365c97}.stage-button.active.finished .rail-index{background:var(--blue);color:#fff}.rail-copy{min-width:0}.stage-button .rail-copy strong{display:block;font-size:11px;font-weight:800;color:var(--ink);line-height:1.4;white-space:nowrap;letter-spacing:0}.stage-button .rail-copy strong small{display:inline;font-size:8px;color:var(--muted);letter-spacing:0;margin:0 0 0 3px;font-weight:500}.stage-button .rail-copy span{display:block;font-size:9px;color:var(--muted);line-height:1.45;margin-top:3px}.stage-button.active .rail-copy strong,.stage-button.active .rail-copy span{color:var(--blue)}
.stage-panel{padding:27px 29px;border-radius:15px;scroll-margin-top:96px}.stage-detail{grid-template-columns:minmax(0,1fr) 188px;gap:28px}.stage-main{min-width:0}.stage-step-count{font-size:8px;letter-spacing:1px}.stage-heading{font-size:25px;letter-spacing:-.8px;margin:7px 0 11px;line-height:1.25}.stage-lead{font-size:12px;line-height:1.8}.task-list{margin-top:16px;gap:0}.task-row{padding:14px 0;gap:11px}.task-text strong{font-size:12px;line-height:1.65}.task-description{font-size:11px;line-height:1.8;margin-top:3px}.task-row.done{background:transparent;border-radius:0;padding-left:0}.task-row.done .task-text strong{color:#8290a4}.checkbox{width:18px;height:18px;flex-basis:18px;border-radius:5px}
.goal-card{padding:18px;border-radius:12px}.goal-label{font-size:8px;letter-spacing:.8px}.goal-number{font-size:37px;letter-spacing:-1.3px;margin:10px 0;line-height:1.2}.goal-number span{font-size:10px;margin-left:5px}.goal-unlock{font-size:11px;line-height:1.65}.goal-unlock small{font-size:9px;margin-bottom:3px}.stage-metrics{gap:7px;margin-top:11px}.metric{padding:10px 11px;border-radius:8px;gap:9px}.metric-label{font-size:9px;line-height:1.55}.metric-value{font-size:11px;line-height:1.45}
.stage-note{padding:13px 15px;border-radius:10px;gap:11px}.stage-note.warning{background:#fffaef;border-color:#efe3c7}.note-title{font-size:11px}.note-description{font-size:10px;line-height:1.8}.stage-tip{font-size:10px;line-height:1.8;margin-top:14px}.stage-footer{margin-top:22px;padding-top:16px;gap:15px}.completion-text{font-size:10px}.progress-track{width:120px}.endgame-choices{gap:16px}.dungeon-choice{padding:19px;border-radius:12px}.choice-condition{font-size:10px}.dungeon-choice h3{font-size:21px}.dungeon-english{font-size:9px}.dungeon-loot{font-size:12px}.dungeon-copy{font-size:11px;line-height:1.8}
.activity-intro{grid-template-columns:minmax(0,1fr) 130px;gap:15px;padding:23px 28px;border-radius:14px;margin-bottom:16px}.activity-intro h2{font-size:23px;letter-spacing:-.7px;margin:6px 0 10px}.activity-intro p{font-size:12px;line-height:1.8}.activity-art{width:130px;height:104px}.intro-chip-row{margin-top:13px;gap:7px}.intro-chip{font-size:9px;border-radius:6px;padding:4px 7px}.intro-chip strong{font-size:9px}
.routine-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.summary-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 15px}.summary-stat-label{font-size:10px;color:var(--muted);flex:1}.summary-stat strong{font-size:11px;color:var(--deep);white-space:nowrap}.summary-stat .progress-track{margin:0;width:84px}
.activity-toolbar{margin-bottom:14px;gap:18px}.period-tabs{gap:4px}.period-button{font-size:10px;border-radius:7px;padding:7px 9px}.period-count{font-size:9px;margin-left:4px}.only-open{font-size:10px}.only-open .checkbox{width:15px;height:15px;flex-basis:15px}.activity-progress{font-size:10px;margin:0 2px 17px;gap:13px}.activity-progress .progress-track{width:96px}.activity-grid{gap:14px}.activity-card{padding:19px 21px;border-radius:13px;scroll-margin-top:96px}.card-header{gap:10px}.card-icon{width:33px;height:33px;border-radius:9px}.card-name{font-size:14px;letter-spacing:-.25px;line-height:1.45}.card-sub{font-size:9px}.card-count{font-size:11px;padding:5px 8px;border-radius:6px}.card-limit{font-size:8px;text-transform:uppercase}.card-scope{font-size:9px}.card-description{font-size:12px;line-height:1.8;margin:13px 0 14px;min-height:unset}.reward-line{font-size:10px;padding-top:11px}.reward-line small{font-size:8px}.card-compare{margin-top:10px;font-size:10px}.card-compare summary{font-size:10px}.card-compare p{font-size:11px;line-height:1.8}.card-warning{font-size:9px;line-height:1.8;padding:9px 11px}.activity-card.completed .card-name{color:#76879d}
.limits-box{border:0;border-top:1px solid var(--line);border-radius:0;background:none;gap:25px;margin-top:24px;padding:20px 2px 0}.limits-item strong{font-size:10px;color:var(--deep)}.limits-item p{font-size:10px;line-height:1.8;color:var(--muted)}.bottom-tools{font-size:10px;margin:23px 0 29px}.reset-options p{font-size:9px;color:var(--muted);margin:4px 9px 8px}.reset-options button{font-size:11px}.footer-brand{font-size:16px}.site-footer{padding:23px 0 30px}.footer-meta{font-size:9px;line-height:1.9}.toast{font-size:11px;padding:13px 19px;border-radius:10px}.toast button{font-size:11px}
@media(max-width:1050px){.shell{width:calc(100% - 40px)}.route-layout{grid-template-columns:215px minmax(0,1fr);gap:16px}.route-sidebar{padding:12px}.stage-panel{padding:24px}.stage-detail{grid-template-columns:minmax(0,1fr) 157px;gap:20px}.goal-card{padding:15px}.metric{padding:9px}.hero{padding:29px 30px;grid-template-columns:minmax(0,1fr) 245px}.search-box{width:285px}.activity-toolbar{align-items:start;flex-wrap:wrap;gap:9px}}
@media(max-width:800px){.header-inner{min-height:70px}.search-box{width:245px}.hero{padding:27px 25px;grid-template-columns:minmax(0,1fr) 200px;gap:18px}.hero-figure{height:240px}.hero-description{font-size:12px}.route-layout{display:block}.route-sidebar{position:static;margin-bottom:15px;padding:13px}.gs-form{display:flex;align-items:center;gap:12px;padding-bottom:12px;margin-bottom:12px}.gs-form label{margin:0;white-space:nowrap}.gs-controls{width:220px}.gs-helper{margin:0 0 0 auto}.stage-rail{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:154px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:5px;gap:4px}.stage-button{padding:9px 6px}.rail-index{width:25px;height:25px}.route-hint{display:none}.stage-detail{grid-template-columns:minmax(0,1fr) 195px}.activity-grid{gap:12px}.activity-card{padding:17px}.card-name{font-size:13px}.routine-summary{gap:10px}.summary-stat .progress-track{width:65px}.limits-box{gap:18px}}
@media(max-width:640px){html{scroll-padding-top:125px}.shell{width:calc(100% - 28px)}.header-inner{flex-wrap:wrap;gap:11px;min-height:unset;padding:12px 0}.brand{font-size:18px}.brand-mark{width:33px;height:35px;font-size:22px}.brand-separator{height:21px}.brand-game{font-size:10px}.header-actions{display:contents}.channel-link{margin-left:auto;padding:9px}.channel-label{display:none}.search-box{order:2;width:100%;flex-basis:100%}.search-input-wrap input{height:34px}.search-results{width:100%}.hero{grid-template-columns:minmax(0,1fr) 100px;gap:7px;padding:22px 19px;margin-top:17px;border-radius:16px}.hero-copy{width:auto}.eyebrow{font-size:7px;letter-spacing:.8px}.hero h1{font-size:30px;letter-spacing:-1.1px;margin-top:12px}.hero-description{font-size:11px;line-height:1.7}.hero-figure{height:200px;width:130px;margin:0 -25px 0 0;position:relative;right:auto;bottom:auto;opacity:1}.hero-figure img{width:130px;max-width:none;height:200px}.hero-circle{width:190px;height:190px;right:-66px;top:31px}.hero-point{display:none}.hero-actions{gap:11px;flex-wrap:wrap;margin-top:17px}.hero-actions .button{font-size:10px;padding:9px 10px}.hero-link{font-size:10px}.hero-tags{gap:5px;margin-top:15px}.hero-tag{font-size:8px;padding:3px 6px}.view-toolbar{gap:10px;margin:18px 0 20px;flex-wrap:nowrap;align-items:end}.view-tabs{gap:18px}.view-tab{font-size:12px;padding:11px 0 14px}.role-switch{margin-bottom:8px}.role-button{font-size:9px;gap:5px;padding:7px 8px}.role-button svg{width:12px;height:12px}.section-title{font-size:19px}.route-topline{margin-bottom:13px}.route-sidebar{padding:12px}.gs-form{gap:10px}.gs-form label{font-size:10px}.gs-controls{flex:1;width:auto}.gs-form input{padding:8px;font-size:11px}.gs-form .button{padding:8px 10px}.gs-helper{display:none}.stage-rail{grid-auto-columns:147px}.stage-button .rail-copy strong{font-size:11px}.stage-button .rail-copy span{font-size:9px}.stage-panel{padding:20px 18px;scroll-margin-top:129px}.stage-detail{display:block}.stage-heading{font-size:23px;letter-spacing:-.6px}.stage-lead{font-size:12px}.task-text strong{font-size:12px}.task-description{font-size:11px}.stage-aside{margin-top:16px}.goal-card{display:grid;grid-template-columns:1fr auto;column-gap:15px;padding:15px}.goal-label{grid-column:1}.goal-number{grid-column:2;grid-row:1/3;font-size:31px;margin:0;align-self:center}.goal-unlock{grid-column:1;font-size:10px;margin-top:6px}.goal-unlock small{display:none}.stage-metrics{grid-template-columns:1fr 1fr;gap:6px}.metric{display:block;padding:10px}.metric-value{display:block;text-align:left;margin-top:4px}.metric:last-child:nth-child(odd){grid-column:1/-1;display:flex;align-items:center}.stage-note{padding:12px;margin-top:18px}.note-description{font-size:10px}.stage-tip{font-size:10px}.stage-footer{gap:12px;margin-top:18px}.stage-footer .button{font-size:10px;padding:8px 10px}.endgame-choices{grid-template-columns:1fr;gap:12px}.dungeon-choice{padding:17px}.activity-intro{padding:19px 18px;grid-template-columns:minmax(0,1fr) 60px;gap:4px}.activity-intro h2{font-size:21px}.activity-intro p{font-size:11px}.activity-art{width:76px;height:80px;max-width:none;align-self:start;margin-top:23px;margin-right:-9px;display:block}.intro-chip{font-size:8px;padding:3px 6px}.intro-chip-row{gap:5px}.routine-summary{gap:8px;margin-bottom:15px}.summary-stat{gap:6px;padding:11px 10px;flex-wrap:wrap}.summary-stat-label{font-size:9px}.summary-stat strong{font-size:10px}.summary-stat .progress-track{width:100%;flex-basis:100%;height:3px;margin-top:2px}.period-tabs{gap:3px}.period-button{font-size:9px;padding:7px 8px}.period-count{font-size:8px;margin-left:3px}.only-open{font-size:10px;margin-top:2px}.activity-toolbar{gap:10px}.activity-progress{font-size:9px;gap:9px;flex-wrap:wrap}.activity-progress .progress-track{width:67px}.activity-grid{grid-template-columns:1fr;gap:12px}.activity-card{padding:18px;scroll-margin-top:129px}.card-name{font-size:14px}.card-description{font-size:12px}.card-sub{font-size:9px}.limits-box{grid-template-columns:1fr;gap:15px;padding-top:18px;margin-top:20px}.bottom-tools{align-items:start;gap:12px;margin:22px 0;font-size:9px}.storage-note{max-width:180px;line-height:1.8}.reset-menu summary{font-size:9px;white-space:nowrap;line-height:1.8}.site-footer{display:block;padding:20px 0 28px}.footer-meta{text-align:left;font-size:8px;margin-top:15px;line-height:1.9}.toast{font-size:10px;padding:12px 15px;gap:15px;width:max-content}.toast button{font-size:10px}}

@media(max-width:640px){.hero-figure{top:auto}.stage-aside{display:block}.goal-card{height:auto;min-height:0}.activity-intro h2{max-width:none}.activity-art{position:static;opacity:1}.activity-toolbar{display:flex;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

.view-toolbar{margin-bottom:17px}.characters-panel{margin-bottom:25px}.characters-heading{display:flex;gap:16px;align-items:center;margin:0 2px 9px}.characters-heading>span{font-size:9px;font-weight:800;letter-spacing:1.1px;color:var(--deep);text-transform:uppercase}.characters-heading small{font-size:9px;color:var(--muted)}
.character-list{position:relative;display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}.character-item{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 7px;min-width:0;width:228px;max-width:100%;transition:border-color .15s}.character-item.active{border-color:#97b9ef;background:var(--pale);box-shadow:0 0 0 1px #dce9fc}
.character-class{display:grid;place-items:center;background:transparent;border:0;border-radius:7px;padding:3px;flex-shrink:0}.character-class:hover{background:#e1ebfa}.class-emblem{display:grid;place-items:center;width:var(--emblem-size);height:var(--emblem-size);color:var(--muted);border-radius:6px;background:#eff2f6;overflow:hidden}.class-emblem.chosen{background:#203a62}.class-emblem img{display:block;width:100%;height:100%;object-fit:contain;padding:2px}.character-select{display:flex;align-items:center;gap:6px;min-width:0;flex:1;text-align:left;align-self:stretch;padding:4px 3px;border:0;background:none;border-radius:6px}.character-copy{display:block;min-width:0}.character-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;line-height:1.5;max-width:100%}.character-copy small{display:block;font-size:8px;color:var(--muted);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.character-crown{color:var(--blue);align-self:start;margin-top:2px;flex-shrink:0}.character-controls{display:flex;gap:1px;align-items:center;flex-shrink:0}.character-tool{display:grid;place-items:center;border:0;border-radius:5px;background:none;padding:6px;color:#8997ab;flex-shrink:0}.character-tool:hover{color:var(--blue);background:#e2ecfa}.character-delete:hover{color:#ad4848;background:#fae9e9}.add-character{display:grid;place-items:center;min-width:46px;min-height:53px;border:1px dashed #b9cbea;border-radius:10px;background:#eff5ff88;color:var(--blue);padding:10px}.add-character:hover{background:#e4eeff;border-color:var(--blue)}
.activity-filters{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.filter-note{font-size:10px;color:var(--muted);line-height:1.75;margin:-4px 2px 15px}.activity-toolbar{flex-wrap:wrap}.activity-character{font-size:10px;color:var(--muted)}
.character-dialog{border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);padding:25px;width:410px;max-width:calc(100% - 28px);max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 25px 90px #10244035;font-family:Manrope,system-ui,sans-serif}.character-dialog::backdrop{background:#142c4b66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.dialog-heading h2{font-size:20px;line-height:1.25;letter-spacing:-.5px;margin:0;font-weight:800}.dialog-close{display:grid;place-items:center;border:0;background:var(--soft);border-radius:7px;padding:7px;color:var(--muted)}.dialog-close:hover{color:var(--ink);background:#edf2fa}.name-label{font-size:11px;font-weight:700;color:var(--muted);display:block;margin-bottom:8px}.name-input{display:block;width:100%;font-size:14px;border:1px solid #bfcee4;background:var(--soft);color:var(--ink);border-radius:9px;padding:11px 12px}.name-helper{font-size:10px;color:var(--muted);margin:7px 1px 0}.name-error{font-size:11px;color:#a64646;line-height:1.6}.dialog-actions{display:flex;gap:9px;justify-content:end;margin-top:23px}.class-editor-name{font-size:12px;color:var(--muted);margin:-7px 0 18px;overflow-wrap:anywhere}.class-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.class-option{display:flex;align-items:center;gap:9px;text-align:left;min-width:0;border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 10px;font-size:11px;font-weight:700}.class-option.selected{background:var(--pale);border-color:#7eaae9;color:var(--blue)}.class-option:hover{border-color:#93b4e4;background:var(--pale)}.class-option .class-emblem{flex-shrink:0}.class-option>span:not(.class-emblem){flex:1}.class-option>svg{width:12px}.class-editor-footer{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:18px;font-size:9px}.class-clear{font:inherit;border:0;background:none;padding:5px 0;color:var(--muted);text-decoration:underline;cursor:pointer}.class-editor-footer a{font-size:9px}
@media(max-width:800px){.activity-filters{gap:14px}.character-item{width:219px}}
@media(max-width:640px){.characters-panel{margin-bottom:21px}.characters-heading{gap:10px}.characters-heading small{font-size:8px}.character-list{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 7px;scrollbar-width:thin}.character-item{flex:0 0 219px;padding:6px 7px}.character-tool{padding:7px}.character-class{padding:4px}.add-character{flex:0 0 46px}.activity-filters{gap:15px;align-items:center}.activity-filters .only-open{margin:0}.filter-note{font-size:9px;margin:1px 2px 14px}.character-dialog{padding:22px 19px;border-radius:15px}.dialog-heading h2{font-size:19px}.class-option{font-size:10px;padding:11px 8px;gap:7px}.class-editor-footer{font-size:9px}}
.character-dialog .delete-confirmation-text { margin: 17px 0 24px; color: var(--copy); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.character-dialog .button.button-danger { background: #813c49; border-color: transparent; color: #fff; }
.character-dialog .button.button-danger:hover { background: #984b59; }

.brand-game{white-space:nowrap;letter-spacing:.4px}.header-inner{gap:17px}.header-actions{gap:8px}.channel-link{font-size:11px;padding:9px 12px}.youtube-link svg{color:#c43636}.view-toolbar{margin-top:20px}.activity-card.completed{opacity:.68}.task-row.done{opacity:.68}.activity-grid,.task-list{overflow-anchor:none}.is-leaving{pointer-events:none;will-change:opacity}.storage-note{max-width:none}
@media(max-width:1050px){.search-box{width:255px}.header-inner{gap:13px}.channel-label{display:none}.channel-link{padding:10px}.brand-game{font-size:10px}}
@media(max-width:800px){.search-box{width:205px}.brand-separator{display:none}.header-inner{gap:12px}.brand-game{font-size:9px}.channel-link{padding:9px}}
@media(max-width:640px){.header-inner{gap:9px}.brand-game{font-size:8px;letter-spacing:0;margin-right:auto}.header-actions{display:contents}.channel-link{margin-left:0;padding:8px}.search-box{width:100%;order:3}.brand{font-size:17px;gap:9px}.brand-mark{width:31px;height:34px}.characters-heading{align-items:start}.characters-heading small{line-height:1.65;max-width:210px}.storage-note{max-width:205px}}

/* Reader interface: selections and actions have priority over information. */
:root {
  --blue: #205cc6;
  --deep: #214779;
  --ink: #26354b;
  --muted: #64738a;
  --line: #e0e6ef;
  --bg: #f7f9fc;
  --pale: #eef4ff;
  --soft: #f5f7fb;
  --app-header-height: 69px;
}
body { background: var(--bg); }
button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #5488e7; outline-offset: 3px; }
.site-header { background: #ffffffed; border-bottom-color: #e6ebf3; backdrop-filter: blur(14px); }
.header-inner { min-height: 68px; }
.brand { color: #203d66; font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.brand-mark { background: var(--blue); width: 34px; height: 34px; border-radius: 9px; font-size: 23px; }
.brand-game { color: #63748d; }
.search-input-wrap { background: #f8fafd; border-color: #e0e6ef; border-radius: 9px; }
.search-input-wrap input { font-size: 11px; height: 37px; }
.channel-link { border-color: #e1e7ef; border-radius: 8px; font-size: 10px; box-shadow: none; }
.channel-link:hover { background: #f0f5ff; border-color: #bdd0f1; }
.button { border-radius: 8px; font-size: 11px; font-weight: 700; }
.button-primary { background: var(--blue); border-color: var(--blue); box-shadow: none; }
.button-primary:hover { background: #174eac; border-color: #174eac; }
.view-toolbar { margin: 14px 0 17px; border-bottom-color: #e0e6ef; }
.view-tabs { gap: 25px; }
.view-tab { font-size: 13px; line-height: 1.5; padding: 12px 0; min-height: 44px; font-weight: 700; color: #62728b; }
.view-tab.active { color: var(--blue); }
.tab-count { background: #edf1f7; color: #687992; }
.view-tab.active .tab-count { background: #e7efff; color: var(--blue); }
.characters-panel { margin-bottom: 22px; }
.characters-heading { gap: 12px; align-items: center; margin-bottom: 9px; }
.characters-heading > span { font-size: 9px; letter-spacing: .9px; color: #4d6586; }
.characters-heading small { font-size: 9px; color: #687991; }
.character-list-wrap { display: flex; align-items: stretch; gap: 8px; width: max-content; max-width: 100%; }
.character-list { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c3d2e7 transparent; padding: 1px 1px 4px; }
.character-item { flex: 0 0 229px; width: 229px; padding: 7px 8px; border-color: #e0e7f1; border-radius: 9px; box-shadow: none; background: #fff; }
.character-item.active { border-color: #86afe8; background: #edf4ff; box-shadow: inset 3px 0 0 #326bc4; }
.character-copy strong { font-size: 11px; line-height: 1.6; font-weight: 800; color: #344864; }
.character-copy small { color: #677992; font-size: 8px; line-height: 1.6; }
.character-class { border-radius: 6px; padding: 4px; }
.character-tool { color: #70829b; padding: 7px; border-radius: 5px; min-height: 29px; }
.character-tool:hover { background: #e5edfa; }
.character-crown { color: #2a62b2; }
.add-character { flex: 0 0 46px; min-width: 46px; min-height: 51px; margin-bottom: 4px; border: 1px solid #c1d1e8; border-radius: 9px; background: #f1f6ff; color: var(--blue); }
.add-character:hover { background: #e6efff; border-color: #7ca2df; }
.route-layout { grid-template-columns: 223px minmax(0, 1fr); gap: 21px; }
.route-sidebar { top: calc(var(--app-header-height) + 20px); border: 0; border-radius: 0; background: transparent; padding: 1px 2px; }
.gs-form { padding-bottom: 17px; margin-bottom: 10px; border-bottom-color: #dfe6f1; }
.gs-form label { font-size: 10px; font-weight: 700; color: #516783; margin-bottom: 9px; }
.gs-controls { gap: 7px; }
.gs-form input { border-color: #d2deef; background: #fff; border-radius: 7px; font-size: 12px; padding: 10px; }
.gs-form .button { padding: 9px 11px; white-space: nowrap; }
.gs-helper { font-size: 9px; color: #697b96; }
.stage-rail { gap: 4px; }
.stage-button { padding: 11px 8px; border-radius: 8px; gap: 10px; }
.stage-button.active { border-color: #d8e5fa; background: #eaf2ff; }
.stage-button .rail-copy strong { color: #314968; font-size: 11px; }
.stage-button .rail-copy span { color: #677b98; font-size: 9px; line-height: 1.55; }
.stage-button.active .rail-copy strong, .stage-button.active .rail-copy span { color: #245cae; }
.rail-index { font-size: 9px; border-radius: 7px; background: #edf1f7; color: #7486a0; }
.stage-button.active .rail-index { background: var(--blue); color: #fff; }
.stage-panel { padding: 26px 28px; border-color: #e0e7f1; border-radius: 14px; box-shadow: none; scroll-margin-top: calc(var(--app-header-height) + 17px); }
.stage-detail { grid-template-columns: minmax(0, 1fr) 169px; gap: 27px; }
.stage-step-count { color: #53749f; font-size: 8px; letter-spacing: .85px; }
.stage-heading { color: #223a5d; font-size: 24px; font-weight: 800; letter-spacing: -.7px; line-height: 1.25; margin: 8px 0 11px; }
.stage-lead { font-size: 12px; line-height: 1.8; color: #68788f; }
.task-list { margin-top: 16px; }
.task-row { padding: 15px 0; border-bottom-color: #e9eef5; gap: 12px; }
.task-row:hover { background: #f8fbff; }
.task-text strong { color: #354963; font-weight: 700; font-size: 12px; line-height: 1.65; }
.task-description { color: #63738a; font-size: 11px; line-height: 1.85; margin-top: 4px; }
.checkbox { border-color: #acbfd9; border-radius: 5px; }
.checkbox:checked { background-color: var(--blue); border-color: var(--blue); }
.task-row > .checkbox { margin-top: 2px; }
.stage-aside { border-left: 1px solid #e7edf6; padding-left: 20px; }
.goal-card { padding: 0 0 15px; border: 0; border-bottom: 1px solid #e3eaf4; border-radius: 0; background: transparent; }
.goal-label { color: #607897; font-size: 8px; letter-spacing: .7px; }
.goal-number { color: #26476f; font-size: 34px; letter-spacing: -1px; line-height: 1.2; margin: 10px 0 13px; }
.goal-number span { color: #647f9f; font-size: 9px; letter-spacing: 0; }
.goal-unlock { color: #405f85; font-size: 10px; line-height: 1.75; }
.goal-unlock small { color: #697c96; font-size: 8px; margin-bottom: 3px; }
.stage-metrics { margin-top: 2px; gap: 0; }
.metric { background: transparent; border: 0; border-bottom: 1px solid #e9eef5; border-radius: 0; padding: 11px 0; gap: 8px; }
.metric-label { font-size: 9px; line-height: 1.65; color: #65758e; }
.metric-value { color: #3b5d86; font-size: 10px; }
.metric:last-child { border-bottom: 0; }
.stage-note { border-color: #e5ecf7; border-radius: 9px; background: #f3f7ff; padding: 13px 15px; }
.stage-note.warning { background: #fcf8ef; border-color: #eee5d2; }
.note-title { font-size: 11px; color: #405c81; }
.note-description, .stage-tip { color: #64738a; font-size: 10px; line-height: 1.85; }
.stage-footer { border-top-color: #e8edf5; margin-top: 21px; padding-top: 18px; }
.completion-text { font-size: 10px; color: #647997; }
.progress-track { background: #e6edf7; height: 4px; }
.progress-fill { background: var(--blue); }
.dungeon-choice { background: #fbfcfe; border-color: #e2e9f3; border-radius: 11px; }
.dungeon-choice h3 { font-size: 21px; color: #2e517f; }
.dungeon-copy { font-size: 11px; color: #64738a; }
.activity-intro { display: block; padding: 0; margin: 0 0 15px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.activity-intro h2 { font-size: 22px; color: #223a5d; letter-spacing: -.6px; margin: 0 0 8px; }
.activity-intro p { max-width: 820px; margin: 0; font-size: 11px; line-height: 1.8; color: #687990; }
.intro-chip-row { gap: 0; margin-top: 9px; }
.intro-chip { border: 0; border-radius: 0; background: transparent; padding: 0; color: #697d9a; font-size: 9px; }
.intro-chip + .intro-chip::before { content: '·'; margin: 0 10px; color: #a0afc5; }
.intro-chip strong { color: #4c6c98; font-size: 9px; }
.routine-summary { display: flex; flex-wrap: wrap; gap: 14px 27px; margin: 16px 0 6px; }
.summary-stat { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 9px; flex: 0 1 auto; box-shadow: none; }
.summary-stat-label { font-size: 10px; color: #657992; }
.summary-stat strong { color: #3e5d89; font-size: 10px; }
.summary-stat .progress-track { width: 65px; margin: 0; }
.activity-toolbar { position: sticky; top: calc(var(--app-header-height) - 1px); z-index: 20; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 17px; padding: 12px 0; margin: 0 0 14px; background: #f7f9fcf5; backdrop-filter: blur(10px); border-bottom: 1px solid #e0e7f1; }
.activity-context { font-size: 10px; color: #667b97; white-space: nowrap; min-width: 0; }
.activity-context strong { color: #305280; font-weight: 700; display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.period-tabs { gap: 4px; margin-right: auto; }
.period-button { border: 0; border-radius: 6px; background: transparent; padding: 8px 9px; font-size: 10px; color: #607794; }
.period-button.active { background: #e7efff; color: #245bb0; box-shadow: none; }
.period-button:hover:not(.active) { background: #edf2fa; }
.period-count { font-size: 8px; color: #6c85a8; }
.activity-filters { gap: 15px; }
.only-open { color: #5d7290; font-size: 10px; }
.filter-note { color: #64758d; font-size: 10px; margin: -2px 0 13px; }
.activity-progress { font-size: 10px; color: #687d9a; margin: 0 0 17px; }
.activity-progress strong { color: #456790; }
.activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-card { padding: 20px 21px; background: #fff; border-color: #e1e7f0; border-radius: 11px; box-shadow: none; scroll-margin-top: calc(var(--app-header-height) + 130px); }
.activity-card:hover { border-color: #bacde9; box-shadow: none; }
.card-icon { width: 30px; height: 30px; border-radius: 7px; background: #f0f5fd; color: #6689b7; }
.card-icon svg { width: 18px; height: 18px; }
.card-name { font-size: 14px; font-weight: 800; color: #354e70; line-height: 1.5; letter-spacing: -.2px; }
.card-sub { color: #64768f; font-size: 9px; line-height: 1.7; margin-top: 3px; }
.card-check { padding: 6px; margin: -5px -6px 0 0; border-radius: 6px; }
.card-badges { margin-top: 16px; gap: 10px; }
.card-count { border: 0; border-radius: 0; padding: 0; background: transparent; font-size: 12px; color: #335f99; }
.card-limit, .card-limit.server, .card-limit.character, .card-limit.mixed, .card-limit.flexible { background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 8px; letter-spacing: .3px; color: #607797; }
.card-scope { color: #637894; font-size: 9px; margin-top: 6px; }
.card-description { font-size: 12px; color: #61738d; line-height: 1.85; margin: 12px 0 15px; }
.reward-line { font-size: 10px; color: #56769f; border-color: #eaf0f7; line-height: 1.8; }
.reward-line small { font-size: 8px; color: #657b99; }
.card-compare summary { color: #3e70b5; font-size: 10px; }
.card-compare summary:hover { text-decoration: underline; }
.card-compare p { font-size: 11px; line-height: 1.85; color: #61738d; }
.card-warning { font-size: 9px; line-height: 1.8; color: #78674c; background: #faf6ed; }
.activity-card.completed { background: #f9fbfe; opacity: .68; }
.limits-box { margin-top: 25px; border-top-color: #e0e7f1; }
.limits-item p { color: #64758e; font-size: 10px; }
.bottom-tools { margin: 25px 0; }
.storage-note, .footer-meta { color: #64758b; }
.character-dialog { border-radius: 14px; border-color: #dce5f2; }
.class-option { border-radius: 9px; }
@media (max-width: 1050px) {
  .route-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 16px; }
  .stage-panel { padding: 24px; }
  .stage-detail { grid-template-columns: minmax(0, 1fr) 151px; gap: 21px; }
  .stage-aside { padding-left: 15px; }
  .activity-filters { flex-basis: 100%; }
}
@media (max-width: 800px) {
  .route-layout { display: block; }
  .route-sidebar { position: static; padding: 0; margin-bottom: 14px; }
  .gs-form { display: flex; align-items: center; gap: 13px; padding-bottom: 12px; margin-bottom: 10px; }
  .gs-form label { margin: 0; }
  .gs-controls { width: 265px; }
  .gs-helper { margin: 0 0 0 auto; }
  .stage-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 155px; gap: 5px; padding-bottom: 5px; overflow-x: auto; }
  .stage-button { padding: 10px 8px; }
  .stage-detail { grid-template-columns: minmax(0, 1fr) 171px; }
}
@media (max-width: 640px) {
  :root { --app-header-height: 109px; }
  .header-inner { min-height: unset; gap: 9px; padding: 11px 0; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 31px; height: 31px; font-size: 21px; }
  .brand-game { font-size: 8px; }
  .search-input-wrap input { height: 34px; }
  .channel-link { padding: 8px; }
  .view-toolbar { margin: 9px 0 15px; }
  .view-tab { font-size: 12px; min-height: 42px; padding: 11px 0; }
  .characters-panel { margin-bottom: 19px; }
  .characters-heading { gap: 9px; }
  .characters-heading small { font-size: 8px; line-height: 1.6; max-width: none; }
  .character-item { flex-basis: 233px; width: 233px; padding: 6px; }
  .character-class { min-width: 38px; min-height: 38px; padding: 7px; }
  .character-tool { min-width: 33px; min-height: 38px; padding: 8px; }
  .add-character { min-height: 53px; flex-basis: 44px; min-width: 44px; }
  .gs-form { gap: 9px; }
  .gs-form label { font-size: 10px; }
  .gs-controls { width: auto; flex: 1; }
  .gs-form input { padding: 9px; font-size: 11px; }
  .gs-form .button { padding: 9px 10px; font-size: 10px; }
  .gs-helper { display: none; }
  .stage-rail { grid-auto-columns: 148px; }
  .stage-button .rail-copy strong { font-size: 10px; }
  .stage-button .rail-copy span { font-size: 8px; }
  .stage-panel { padding: 20px 18px; border-radius: 11px; }
  .stage-detail { display: block; }
  .stage-heading { font-size: 22px; }
  .task-row { padding: 14px 0; gap: 11px; }
  .task-description { font-size: 11px; }
  .stage-aside { padding: 16px 0 0; border-left: 0; border-top: 1px solid #e5ecf5; margin-top: 17px; }
  .goal-card { display: grid; grid-template-columns: 1fr auto; column-gap: 15px; border-bottom: 0; padding: 0; }
  .goal-label { grid-column: 1; }
  .goal-number { grid-column: 2; grid-row: 1/3; font-size: 31px; margin: 0; align-self: center; }
  .goal-unlock { grid-column: 1; margin-top: 5px; }
  .stage-metrics { grid-template-columns: 1fr 1fr; gap: 0 13px; margin-top: 13px; }
  .metric { padding: 9px 0; }
  .metric:last-child:nth-child(odd) { display: flex; }
  .metric-value { text-align: left; }
  .activity-intro { padding: 0; margin-bottom: 13px; display: block; }
  .activity-intro h2 { font-size: 20px; }
  .activity-intro p { font-size: 10px; line-height: 1.8; }
  .intro-chip-row { gap: 5px 0; margin-top: 8px; }
  .intro-chip, .intro-chip strong { font-size: 8px; }
  .intro-chip + .intro-chip::before { margin: 0 7px; }
  .routine-summary { gap: 9px 18px; margin: 13px 0 3px; }
  .summary-stat { flex-wrap: nowrap; padding: 0; }
  .summary-stat-label, .summary-stat strong { font-size: 9px; }
  .summary-stat .progress-track { display: none; }
  .activity-toolbar { gap: 8px; padding: 9px 0; align-items: center; }
  .activity-context { flex-basis: 100%; font-size: 9px; }
  .activity-context strong { max-width: 230px; }
  .period-tabs { gap: 3px; width: 100%; flex-wrap: wrap; }
  .period-button { padding: 7px 8px; font-size: 9px; }
  .period-count { font-size: 8px; margin-left: 3px; }
  .activity-filters { gap: 17px; }
  .only-open { font-size: 9px; }
  .activity-filters .checkbox { width: 16px; height: 16px; flex-basis: 16px; }
  .activity-progress { font-size: 9px; }
  .filter-note { font-size: 9px; }
  .activity-grid { grid-template-columns: 1fr; gap: 12px; }
  .activity-card { padding: 18px; border-radius: 10px; }
  .card-check { padding: 11px; margin: -10px -10px 0 0; }
  .card-description { font-size: 12px; }
  .stage-footer { gap: 12px; }
  .stage-footer .button { padding: 9px 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* One palette for the full reader: panels, controls and transient surfaces. */
:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #f0f5ff;
  --header: #000000;
  --toolbar: #f7f9fcf5;
  --text: #26354b;
  --copy: #56677f;
  --muted: #5f6e85;
  --quiet: #5c6e88;
  --control-line: #7b8da5;
  --danger: #9f413c;
  --selection: #eaf2ff;
  --selection-line: #86afe8;
  --selection-text: #245bb0;
  --accent: #205cc6;
  --action: #205cc6;
  --action-hover: #174eac;
  --goal: #26476f;
  --note-bg: #eef4ff;
  --note-line: #cbdaf0;
  --warning-bg: color-mix(in srgb, var(--surface-raised) 92%, var(--warning-text));
  --warning-line: color-mix(in srgb, var(--line) 75%, var(--warning-text));
  --warning-text: #76613c;
  --warning-title: #634e29;
  --completed-bg: #f0f3f8;
  --completed-text: #5c6c83;
  --shadow: 0 8px 30px #263b5b06;
  --brand-fill: linear-gradient(145deg, #6688f9, #245bd1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080f1b;
  --surface: #142438;
  --surface-raised: #243b60;
  --surface-hover: #2b4770;
  --header: #000000;
  --toolbar: #101d2e;
  --text: #f3f7fe;
  --ink: var(--text);
  --copy: #c1d0e2;
  --muted: #aebfd5;
  --quiet: #a7bad2;
  --line: #293d58;
  --control-line: #748ca8;
  --danger: #ffaaa6;
  --selection: #244775;
  --selection-line: #80afff;
  --selection-text: #e8f0ff;
  --accent: #8ab9ff;
  --blue: var(--accent);
  --deep: #d6e8fa;
  --pale: #20385f;
  --soft: #101d2d;
  --action: #315c9f;
  --action-hover: #3967ac;
  --goal: #bcd8ff;
  --note-bg: #192f46;
  --note-line: #2c4967;
  --warning-text: #d7c7a6;
  --warning-title: #f0d6a0;
  --completed-bg: #0e1a29;
  --completed-text: #99abc2;
  --shadow: none;
  --brand-fill: #315c9f;
}
html { background: var(--bg); }
body { color: var(--text); background: var(--bg); }
::selection { background: var(--selection); color: var(--text); }
button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline-color: var(--accent); }
a { color: var(--accent); }
.site-header { background: var(--header); border-bottom-color: var(--line); }
.brand { color: var(--text); }
.brand-mark { background: var(--brand-fill); box-shadow: inset 0 1px 0 #ffffff30; }
.brand-game { color: var(--muted); }
.brand-separator { background: var(--line); }
.search-input-wrap { background: var(--bg); border-color: var(--line); color: var(--quiet); }
.search-input-wrap:focus-within { border-color: var(--selection-line); box-shadow: 0 0 0 3px var(--selection); }
.search-input-wrap input { color: var(--text); }
.search-input-wrap input::placeholder { color: var(--quiet); }
.search-shortcut { border-color: var(--line); color: var(--quiet); }
.channel-link, .theme-toggle { background: transparent; border: 1px solid var(--line); color: var(--copy); }
.channel-link:hover, .theme-toggle:hover { background: var(--surface-hover); border-color: var(--control-line); color: var(--text); }
.youtube-link svg { color: var(--copy); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; padding: 0; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }
.search-results, .reset-options, .character-dialog { background: var(--surface-raised); border-color: var(--line); color: var(--text); box-shadow: 0 20px 65px #060b1655; }
.search-result, .reset-options button { background: transparent; color: var(--text); }
.search-result:hover, .search-result:focus-visible, .reset-options button:hover { background: var(--selection); }
.search-label, .search-result small, .search-empty, .reset-options p { color: var(--muted); }
.search-result-icon { color: var(--accent); }
.view-toolbar { border-bottom-color: var(--line); }
.view-tab { color: var(--quiet); }
.view-tab:hover { color: var(--text); }
.view-tab.active { color: var(--text); border-color: var(--accent); }
.tab-count { background: var(--soft); color: var(--quiet); }
.view-tab.active .tab-count { background: var(--selection); color: var(--accent); }
.characters-heading > span { color: var(--copy); }
.characters-heading small { color: var(--quiet); }
.character-list, .stage-rail { scrollbar-color: var(--control-line) transparent; }
.character-item { background: var(--surface); border-color: var(--line); }
.character-item.active { background: var(--selection); border-color: var(--selection-line); box-shadow: inset 3px 0 0 var(--accent); }
.character-copy strong { color: var(--copy); }
.character-item.active .character-copy strong { color: var(--text); }
.character-copy small { color: var(--muted); }
.character-crown { color: var(--accent); }
.character-tool { color: var(--quiet); }
.character-tool:hover, .character-class:hover { color: var(--accent); background: var(--surface-hover); }
.character-delete:hover { color: var(--danger); background: #7e383830; }
.class-emblem { background: var(--soft); color: var(--quiet); }
.class-emblem.chosen { background: #203a62; }
.add-character { background: var(--soft); border-color: var(--control-line); color: var(--accent); }
.add-character:hover { background: var(--selection); border-color: var(--accent); }
.gs-form { border-bottom-color: var(--line); }
.gs-form label { color: var(--copy); }
.gs-helper { color: var(--quiet); }
.gs-form input, .name-input { background: var(--surface); border-color: var(--control-line); color: var(--text); }
.gs-form input::placeholder { color: var(--quiet); }
.button { background: var(--surface-raised); border-color: var(--control-line); color: var(--text); }
.button:hover { background: var(--surface-hover); border-color: var(--selection-line); }
.button-primary, .skip-link { background: var(--action); border-color: var(--action); color: #fff; }
.button-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.stage-button { background: transparent; border-color: transparent; }
.stage-button:hover { background: var(--soft); border-color: transparent; }
.stage-button.active { background: var(--selection); border-color: var(--selection-line); }
.stage-button .rail-copy strong { color: var(--copy); }
.stage-button .rail-copy span, .stage-button .rail-copy strong small { color: var(--quiet); }
.stage-button.active .rail-copy strong, .stage-button.active .rail-copy span { color: var(--selection-text); }
.stage-button.active .rail-copy strong small { color: var(--muted); }
.rail-index { background: var(--soft); color: var(--quiet); }
.stage-button.active .rail-index, .stage-button.active.finished .rail-index { background: var(--action); color: #fff; }
[data-theme="dark"] .stage-button.finished:not(.active) .rail-index { background: #20355b; color: #b0caff; }
.stage-panel { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.stage-step-count { color: var(--accent); letter-spacing: 1.1px; }
.stage-heading { color: var(--text); font-size: 28px; letter-spacing: -.9px; }
.stage-lead { color: var(--muted); }
.task-row { border-bottom-color: var(--line); }
.task-row:hover { background: var(--soft); }
.task-text strong { color: var(--text); }
.task-description { color: var(--copy); }
.checkbox { background-color: var(--bg); border-color: var(--control-line); }
.checkbox:hover { border-color: var(--accent); }
.checkbox:checked { background-color: var(--action); border-color: var(--action); }
.task-row.done { opacity: 1; }
.task-row.done .task-text strong, .task-row.done .task-description { color: var(--completed-text); }
.stage-aside { border-color: var(--line); }
.goal-card { border-bottom-color: var(--line); }
.goal-label { color: var(--muted); }
.goal-number { color: var(--goal); font-size: 44px; letter-spacing: -1.8px; margin: 11px 0 14px; }
.goal-number span { color: var(--muted); }
.goal-unlock { color: var(--text); }
.goal-unlock small { color: var(--quiet); }
.metric { border-bottom-color: var(--line); }
.metric-label { color: var(--quiet); }
.metric-value { color: var(--copy); }
.stage-note { background: var(--note-bg); border-color: var(--note-line); }
.note-icon { color: var(--accent); }
.note-title { color: var(--selection-text); }
.note-description, .stage-tip { color: var(--muted); }
.stage-note.warning, .card-warning { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning-text); }
.warning .note-icon, .warning .note-title { color: var(--warning-title); }
.warning .note-description { color: var(--warning-text); }
.stage-footer { border-top-color: var(--line); }
.completion-text { color: var(--muted); }
.completion-text strong { color: var(--copy); }
.progress-track { background: var(--line); }
.progress-fill { background: var(--accent); }
.dungeon-choice { background: var(--soft); border-color: var(--line); }
.choice-condition { color: var(--accent); }
.dungeon-choice h3, .dungeon-loot { color: var(--text); }
.dungeon-copy { color: var(--copy); }
.activity-intro h2 { color: var(--text); font-size: 26px; letter-spacing: -.8px; }
.activity-intro p { color: var(--muted); }
.intro-chip { color: var(--quiet); }
.intro-chip strong { color: var(--copy); }
.intro-chip + .intro-chip::before { color: var(--quiet); }
.summary-stat-label { color: var(--quiet); }
.summary-stat strong { color: var(--copy); }
.activity-toolbar { background: var(--toolbar); border-bottom-color: var(--line); }
.activity-context { color: var(--muted); }
.activity-context strong { color: var(--text); }
.period-button { color: var(--muted); }
.period-button.active { background: var(--selection); color: var(--selection-text); }
.period-button:hover:not(.active) { background: var(--soft); color: var(--text); }
.period-count { color: var(--quiet); opacity: 1; }
.period-button.active .period-count { color: var(--selection-text); }
.only-open, .filter-note, .activity-progress { color: var(--muted); }
.activity-progress strong { color: var(--copy); }
.activity-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.activity-card:hover { border-color: var(--control-line); box-shadow: var(--shadow); }
.activity-card.highlight { border-color: var(--selection-line); box-shadow: 0 0 0 3px var(--selection); }
.card-icon { background: var(--pale); color: var(--accent); }
.card-name { color: var(--text); }
.card-sub, .card-scope { color: var(--quiet); }
.card-count { color: var(--goal); font-size: 14px; }
.card-limit, .card-limit.server, .card-limit.character, .card-limit.mixed, .card-limit.flexible { color: var(--quiet); }
.card-description, .card-compare p { color: var(--copy); }
.reward-line { color: var(--copy); border-color: var(--line); }
.reward-line small { color: var(--quiet); }
.card-compare summary { color: var(--accent); }
.card-compare p { background: var(--soft); }
.activity-card.completed { opacity: 1; background: var(--completed-bg); box-shadow: none; }
.activity-card.completed .card-name, .activity-card.completed .card-description { color: var(--completed-text); }
.activity-card.completed .card-icon { background: var(--soft); color: var(--quiet); }
.activity-card.completed .card-count { color: var(--completed-text); }
.limits-box { border-top-color: var(--line); }
.limits-item strong { color: var(--copy); }
.limits-item p { color: var(--muted); }
.empty-state, .noscript-note { background: var(--surface); border-color: var(--control-line); }
.empty-state h3 { color: var(--text); }
.empty-state p { color: var(--muted); }
.storage-note, .footer-meta, .reset-menu { color: var(--quiet); }
.site-footer { border-top-color: var(--line); }
.footer-brand { color: var(--text); }
.character-dialog::backdrop { background: #060b16a6; }
.dialog-close { background: var(--soft); color: var(--muted); }
.dialog-close:hover { background: var(--surface-hover); color: var(--text); }
.name-label, .name-helper, .class-editor-name, .class-editor-footer, .class-clear { color: var(--muted); }
.name-error { color: #c34c43; }
[data-theme="dark"] .name-error { color: #ffaaa6; }
.class-option { background: var(--surface); border-color: var(--line); }
.class-option.selected, .class-option:hover { background: var(--selection); border-color: var(--selection-line); color: var(--selection-text); }
.toast { background: var(--surface-raised); border: 1px solid var(--control-line); color: var(--text); box-shadow: 0 12px 40px #060b1655; }
.toast button { color: var(--accent); }
.header-inner { min-height: 76px; }
.brand { gap: 0; line-height: 1; background: #141a25; border-radius: 8px; }
.brand-logo { display: block; width: 74px; height: 58px; object-fit: contain; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); flex-shrink: 0; }
.language-switch button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 5px; background: transparent; color: var(--quiet); font-size: 9px; font-weight: 800; padding: 0; }
.language-switch button.active { background: var(--selection); color: var(--accent); }
.language-switch button:hover:not(.active) { background: var(--soft); color: var(--text); }
.activity-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; flex: 1; min-width: 0; }
.activity-toolbar-actions .activity-context { overflow: hidden; text-overflow: ellipsis; }
.section-reset { flex-shrink: 0; color: var(--copy); }
.section-reset summary { min-height: 32px; padding: 6px 9px; border: 1px solid var(--control-line); border-radius: 6px; font-size: 9px; background: var(--surface); }
.section-reset summary:hover, .section-reset[open] summary { background: var(--surface-hover); color: var(--text); }
.section-reset .reset-options { top: calc(100% + 8px); bottom: auto; width: 270px; max-width: calc(100vw - 28px); padding: 7px; z-index: 60; max-height: 65vh; overflow-y: auto; }
.section-reset .reset-owner { color: var(--copy); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; margin: 5px 9px 9px; }
.section-reset .reset-note { color: var(--muted); font-size: 9px; line-height: 1.8; padding-top: 9px; border-top: 1px solid var(--line); margin: 8px 9px 3px; }
.section-reset .reset-options button { min-height: 34px; font-size: 10px; }
.section-reset .reset-options button.current { background: var(--selection); color: var(--selection-text); }
.section-reset .reset-options button.reset-last { border-top: 1px solid var(--line); border-radius: 0 0 5px 5px; margin-top: 5px; padding-top: 11px; font-weight: 700; }
.stage-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -5px 0 6px; position: relative; z-index: 5; }
.stage-panel-toolbar .stage-step-count { min-width: 0; }
.stage-panel-toolbar .section-reset summary { border-color: var(--line); background: transparent; }
/* Activity hierarchy: reference facts, read-only figures, then controls. */
.activity-overview { margin-bottom: 20px; }
.activity-overview.has-summary { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; align-items: center; }
.activity-overview .activity-intro { margin: 0; min-width: 0; }
.activity-intro > p { max-width: 780px; }
.activity-help { display: flex; align-items: flex-start; gap: 10px; padding-left: 12px; margin-top: 15px; border-left: 2px solid var(--line); color: var(--quiet); }
.activity-help > svg { margin-top: 1px; }
.activity-help-facts { display: flex; flex-wrap: wrap; gap: 11px 25px; margin: 0; }
.activity-help-facts > div { min-width: 0; }
.activity-help-facts dt { font-size: 9px; font-weight: 700; line-height: 1.6; color: var(--copy); }
.activity-help-facts dd { margin: 2px 0 0; font-size: 9px; line-height: 1.6; color: var(--quiet); }
.routine-summary { display: block; margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.summary-caption { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px; color: var(--quiet); margin-bottom: 11px; }
.summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; }
.summary-stat { display: block; padding: 0; margin: 0; min-width: 0; }
.summary-stat-label { font-size: 9px; line-height: 1.6; color: var(--quiet); }
.summary-stat dd { margin: 3px 0 0; }
.summary-stat strong { display: block; color: var(--goal); font-size: 24px; letter-spacing: -.6px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.summary-total { color: var(--quiet); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.summary-stat .progress-track { display: block; width: 100%; height: 3px; margin-top: 8px; }
.summary-stat .progress-fill { background: var(--goal); }
.activity-toolbar { display: block; border-top: 1px solid var(--line); padding: 13px 0; }
.activity-toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.activity-toolbar-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--copy); }
.activity-context { font-size: 9px; color: var(--quiet); }
.activity-context strong { color: var(--copy); max-width: 180px; }
.activity-toolbar-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.period-tabs { margin-right: 0; gap: 6px; }
.period-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 11px; border: 1px solid var(--control-line); border-radius: 7px; background: var(--surface); color: var(--copy); line-height: 1.5; }
.period-button.active { background: var(--action); border-color: var(--action); color: #fff; box-shadow: inset 0 1px 0 #ffffff15; }
.period-count { margin-left: 0; color: var(--quiet); font-size: 9px; font-variant-numeric: tabular-nums; }
.period-button.active .period-count { color: #fff; }
.period-button:hover:not(.active) { background: var(--surface-hover); border-color: var(--accent); color: var(--text); }
.activity-filters { flex-basis: auto; gap: 16px; }
.activity-filters .only-open { min-height: 30px; }
.activity-progress { margin-bottom: 17px; }
.activity-card { scroll-margin-top: calc(var(--app-header-height) + var(--activity-toolbar-height, 130px) + 16px); }
@media (max-width: 1050px) {
  .activity-overview.has-summary { grid-template-columns: minmax(0, 1fr) 214px; gap: 24px; }
  .routine-summary { padding-left: 20px; }
}
@media (max-width: 800px) {
  .search-box { width: 185px; }
  .activity-overview.has-summary { display: block; }
  .routine-summary { display: flex; align-items: center; gap: 24px; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 16px; }
  .summary-caption { margin: 0; }
  .summary-stats { display: flex; gap: 26px; }
  .summary-stat { display: flex; align-items: baseline; gap: 9px; }
  .summary-stat dd { margin: 0; }
  .summary-stat strong { font-size: 17px; }
  .summary-total { font-size: 10px; }
  .summary-stat .progress-track { display: none; }
}
@media (max-width: 640px) {
  .header-inner { gap: 7px; }
  .header-inner { min-height: unset; }
  .brand-logo { width: 55px; height: 44px; }
  .language-switch { padding: 2px; gap: 1px; }
  .language-switch button { width: 27px; height: 28px; font-size: 8px; }
  .brand-game { margin-right: auto; }
  .theme-toggle { width: 34px; height: 34px; }
  .brand-separator { display: none; }
  .search-box { width: 100%; }
  .stage-heading { font-size: 24px; }
  .goal-number { font-size: 35px; margin: 0; }
  .activity-intro h2 { font-size: 23px; }
  .activity-overview { margin-bottom: 16px; }
  .activity-help { padding-left: 9px; gap: 8px; margin-top: 13px; }
  .activity-help > svg { width: 13px; height: 13px; margin-top: 2px; }
  .activity-help-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; }
  .activity-help-facts dt, .activity-help-facts dd { font-size: 9px; }
  .routine-summary { gap: 16px; padding-top: 11px; margin-top: 14px; }
  .summary-caption { font-size: 7px; letter-spacing: .6px; }
  .summary-stats { flex: 1; justify-content: space-between; gap: 12px; }
  .summary-stat { gap: 7px; }
  .summary-stat-label { font-size: 9px; white-space: nowrap; }
  .summary-stat strong { font-size: 15px; }
  .summary-total { font-size: 9px; }
  .activity-toolbar { padding: 11px 0; }
  .activity-toolbar-head { gap: 12px; margin-bottom: 9px; }
  .activity-context { flex-basis: auto; font-size: 9px; }
  .activity-context strong { max-width: 145px; }
  .activity-toolbar-actions { gap: 9px; }
  .activity-toolbar-actions .activity-context strong { max-width: 90px; }
  .section-reset summary { min-height: 34px; font-size: 9px; padding: 7px 8px; }
  .section-reset .reset-options button { min-height: 40px; }
  .stage-panel-toolbar { align-items: center; gap: 10px; margin-top: -3px; }
  .stage-panel-toolbar .stage-step-count { font-size: 7px; letter-spacing: .6px; }
  .activity-toolbar-controls { gap: 10px; }
  .period-tabs { gap: 6px; }
  .period-button { min-height: 44px; padding: 9px 10px; font-size: 10px; }
  .period-count { font-size: 9px; margin-left: 0; }
  .activity-filters { gap: 16px; }
  .activity-filters .only-open { font-size: 9px; min-height: 32px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 5px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand-game { font-size: 7px; }
  .channel-link { padding: 7px; }
  .theme-toggle { width: 32px; height: 32px; }
}

/* Night mode uses filled surfaces for hierarchy, with outlines reserved for
   checkbox affordances and keyboard focus. Keep these rules theme-scoped. */
[data-theme="dark"] :is(.site-header, .view-toolbar, .site-footer) {
  border-color: transparent;
}
[data-theme="dark"] .brand { background: transparent; }
[data-theme="dark"] .language-switch {
  border-color: transparent;
  background: var(--surface-raised);
}
[data-theme="dark"] .language-switch button.active {
  background: var(--selection);
  color: var(--selection-text);
}
[data-theme="dark"] :is(.channel-link, .theme-toggle, .button) {
  border-color: transparent;
  background: var(--surface-raised);
}
[data-theme="dark"] :is(.channel-link, .theme-toggle, .button):hover {
  border-color: transparent;
  background: var(--surface-hover);
}
[data-theme="dark"] .button-primary {
  background: var(--action);
  color: #fff;
}
[data-theme="dark"] .button-primary:hover { background: var(--action-hover); }
[data-theme="dark"] .search-input-wrap {
  border-color: transparent;
  background: var(--bg);
}
[data-theme="dark"] .search-shortcut { border-color: transparent; background: var(--surface); }
[data-theme="dark"] :is(.search-input-wrap, .atlas-search):focus-within {
  border-color: var(--selection-line);
  box-shadow: 0 0 0 2px var(--selection);
}
[data-theme="dark"] .view-tabs { gap: 25px; }
[data-theme="dark"] .view-tab {
  padding: 12px 0;
  border-color: transparent;
  border-radius: 0;
  margin-bottom: -1px;
}
[data-theme="dark"] .view-tab:hover { background: transparent; }
[data-theme="dark"] .view-tab.active {
  background: transparent;
  border-color: var(--accent);
  color: var(--selection-text);
}
[data-theme="dark"] .view-tab.active .tab-count { background: var(--surface); color: var(--accent); }
[data-theme="dark"] :is(.character-item, .add-character) {
  border-color: transparent;
  background: var(--surface);
  box-shadow: none;
}
[data-theme="dark"] .character-item.active {
  border-color: transparent;
  background: var(--selection);
  box-shadow: none;
}
[data-theme="dark"] .add-character:hover { border-color: transparent; background: var(--surface-hover); }
[data-theme="dark"] .class-emblem.chosen { background: var(--pale); }
[data-theme="dark"] .gs-form { border-bottom: 0; }
[data-theme="dark"] :is(.gs-form input, .name-input) {
  border-color: transparent;
  background: var(--surface);
}
[data-theme="dark"] .gs-form input:focus-visible,
[data-theme="dark"] .name-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-theme="dark"] .stage-rail { gap: 6px; }
[data-theme="dark"] .stage-button { background: var(--surface); border-color: transparent; }
[data-theme="dark"] .stage-button:hover { background: var(--surface-hover); border-color: transparent; }
[data-theme="dark"] .stage-button.active { background: var(--selection); border-color: transparent; }
[data-theme="dark"] .rail-index { background: var(--surface-raised); }
[data-theme="dark"] .stage-button.finished:not(.active) .rail-index { background: var(--soft); color: var(--accent); }
[data-theme="dark"] :is(.stage-panel, .activity-card, .dungeon-choice) {
  border-color: transparent;
  box-shadow: none;
  border-radius: 14px;
}
[data-theme="dark"] .task-list { gap: 8px; }
[data-theme="dark"] .task-row,
[data-theme="dark"] .task-row.done {
  padding: 13px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-raised);
}
[data-theme="dark"] .task-row:hover { background: var(--surface-hover); }
[data-theme="dark"] .task-row.done { background: var(--completed-bg); }
[data-theme="dark"] .checkbox { background-color: var(--surface); }
[data-theme="dark"] .checkbox:checked { background-color: var(--action); border-color: var(--action); }
[data-theme="dark"] .stage-aside {
  border: 0;
  border-radius: 11px;
  padding: 16px;
  background: var(--soft);
  align-self: start;
}
[data-theme="dark"] .goal-card { border: 0; }
[data-theme="dark"] .metric { border: 0; padding: 9px 0; }
[data-theme="dark"] .stage-metrics { gap: 2px; }
[data-theme="dark"] :is(.stage-note, .dungeon-choice) { border-color: transparent; }
[data-theme="dark"] :is(.stage-note.warning, .card-warning) { border: 0; }
[data-theme="dark"] .stage-footer { border-top: 0; }
[data-theme="dark"] .progress-track { background: var(--bg); }
[data-theme="dark"] .routine-summary {
  border: 0;
  padding: 15px 17px;
  background: var(--surface);
  border-radius: 11px;
}
[data-theme="dark"] .activity-toolbar {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--surface);
}
[data-theme="dark"] .period-button {
  border-color: transparent;
  background: var(--surface-raised);
  color: var(--copy);
  box-shadow: none;
}
[data-theme="dark"] .period-button.active {
  border-color: transparent;
  background: var(--action);
  color: #fff;
}
[data-theme="dark"] .period-button:hover:not(.active) { border-color: transparent; background: var(--surface-hover); }
[data-theme="dark"] .period-button.active .period-count { color: #fff; }
[data-theme="dark"] .activity-card:hover { border-color: transparent; box-shadow: none; }
[data-theme="dark"] .activity-card.highlight { background: var(--selection); border-color: transparent; box-shadow: none; }
[data-theme="dark"] .card-icon { background: var(--surface-raised); }
[data-theme="dark"] .reward-line {
  border: 0;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 8px;
}
[data-theme="dark"] :is(.section-reset summary, .stage-panel-toolbar .section-reset summary) {
  border-color: transparent;
  background: var(--surface-raised);
}
[data-theme="dark"] .section-reset summary:hover,
[data-theme="dark"] .section-reset[open] summary { background: var(--surface-hover); }
[data-theme="dark"] :is(.search-results, .reset-options, .character-dialog, .toast, .analytics-dialog, .analytics-choice) {
  border-color: transparent;
  background: var(--surface-raised);
  box-shadow: 0 16px 44px #060c1466;
}
[data-theme="dark"] .name-input { background: var(--bg); }
[data-theme="dark"] .class-option { border-color: transparent; background: var(--surface); }
[data-theme="dark"] .class-option:hover,
[data-theme="dark"] .class-option.selected { border-color: transparent; background: var(--selection); }
[data-theme="dark"] .atlas-workspace { border-color: transparent; box-shadow: none; }
[data-theme="dark"] .atlas-sidebar { border-right: 0; }
[data-theme="dark"] :is(.atlas-icon-button, .atlas-select, .atlas-mobile-filters, .atlas-backup button, .atlas-import-label) {
  border-color: transparent;
  background: var(--surface-raised);
}
[data-theme="dark"] .atlas-icon-button:hover { border-color: transparent; background: var(--surface-hover); }
[data-theme="dark"] .atlas-search { border-color: transparent; }
[data-theme="dark"] .atlas-presets button { border-color: transparent; background: var(--surface-raised); }
[data-theme="dark"] .atlas-presets button:hover { border-color: transparent; background: var(--surface-hover); }
[data-theme="dark"] .atlas-presets button[aria-pressed="true"] { border-color: transparent; background: var(--selection); }
[data-theme="dark"] :is(.atlas-map-topline, .atlas-map-bottomline, .atlas-provider) { border-color: transparent; }
[data-theme="dark"] .atlas-loading { border-color: transparent; background: var(--surface-raised); }
[data-theme="dark"] .atlas-spinner { border-top-color: var(--accent); }
[data-theme="dark"] .atlas-apply-wrap button:disabled { border-color: transparent; }
[data-theme="dark"] #atlas-place-form :is(input, textarea),
[data-theme="dark"] .atlas-share-fallback input { border-color: transparent; }
[data-theme="dark"] .analytics-choice button,
[data-theme="dark"] .analytics-dialog button { border-color: transparent; background: var(--surface-hover); }
[data-theme="dark"] .analytics-choice [data-analytics-allow],
[data-theme="dark"] .analytics-dialog [data-analytics-allow] { background: var(--action); color: #fff; }
[data-theme="dark"] .analytics-dialog a { color: var(--accent); }
@media (max-width: 800px) {
  [data-theme="dark"] .routine-summary { padding: 13px 16px; }
}
@media (max-width: 640px) {
  [data-theme="dark"] .view-tabs { gap: 13px; }
  [data-theme="dark"] .view-tab { padding: 11px 0; }
  [data-theme="dark"] .task-row,
  [data-theme="dark"] .task-row.done { padding: 12px; }
  [data-theme="dark"] .stage-aside { padding: 15px; }
  [data-theme="dark"] .activity-toolbar { padding: 12px; }
  [data-theme="dark"] .routine-summary { padding: 12px; }
}

/* The map is the visual focus; controls use the existing guide palette. */
.atlas { --atlas-map-bg: #151c24; margin-top: 30px; min-width: 0; }
.atlas-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.atlas-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .17em; color: var(--goal); margin-bottom: 7px; }
.atlas-heading h2 { font-size: clamp(26px, 3vw, 35px); line-height: 1.25; letter-spacing: -.04em; margin: 0; color: var(--text); }
.atlas-heading p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 9px 0 0; }
.atlas-heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.atlas-owner { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; margin-right: 8px; }
.atlas-owner span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--copy); cursor: pointer; }
.atlas-icon-button:hover { background: var(--surface-hover); border-color: var(--control-line); color: var(--text); }
.atlas button, .atlas input, .atlas select, .atlas textarea { font-family: inherit; }
.atlas [hidden] { display: none !important; }
.atlas-workspace { position: relative; display: grid; grid-template-columns: 282px minmax(0,1fr); height: clamp(610px, 77vh, 820px); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.atlas-sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); }
.atlas-side-top { padding: 17px 17px 0; flex-shrink: 0; }
.atlas-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); padding: 9px 10px; color: var(--quiet); margin-bottom: 16px; }
.atlas-search:focus-within { border-color: var(--selection-line); box-shadow: 0 0 0 2px var(--selection); }
.atlas-search input { min-width: 0; width: 100%; border: 0; padding: 0; outline: none; background: transparent; color: var(--text); font-size: 12px; }
.atlas-search input::placeholder { color: var(--quiet); }
.atlas-search-maps { max-height: 220px; overflow-y: auto; border-bottom: 1px solid var(--line); margin: -8px 0 14px; padding-bottom: 8px; }
.atlas-search-maps button { display: flex; align-items: center; gap: 7px; text-align: left; width: 100%; border: none; background: none; color: var(--copy); padding: 8px 4px; font-size: 11px; cursor: pointer; }
.atlas-search-maps button:hover { color: var(--accent); background: var(--surface-hover); }
.atlas-search-maps button span { flex: 1; }
.atlas-field-label { display: block; color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 7px; text-transform: uppercase; }
.atlas-select { width: 100%; min-width: 0; background: var(--surface-raised); color: var(--text); border: 1px solid var(--control-line); border-radius: 7px; padding: 10px 28px 10px 10px; font-size: 12px; font-weight: 700; text-overflow: ellipsis; cursor: pointer; }
.atlas-select option, .atlas-select optgroup { background: var(--surface); color: var(--text); }
.atlas-goal-label { margin-top: 19px; }
.atlas-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 18px; }
.atlas-presets button { display: flex; align-items: center; gap: 6px; padding: 9px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--copy); background: transparent; font-size: 10px; line-height: 1.35; font-weight: 700; text-align: left; cursor: pointer; min-height: 38px; }
.atlas-presets button:hover { border-color: var(--selection-line); background: var(--surface-hover); }
.atlas-presets button[aria-pressed="true"] { color: var(--selection-text); background: var(--selection); border-color: var(--selection-line); }
.atlas-presets svg { flex-shrink: 0; }
.atlas-side-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); gap: 16px; }
.atlas-side-tabs button { position: relative; border: 0; background: transparent; color: var(--quiet); padding: 0 0 11px; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.atlas-side-tabs button[aria-selected="true"] { color: var(--text); }
.atlas-side-tabs button[aria-selected="true"]::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--goal); }
.atlas-side-tabs button span { color: var(--quiet); font-size: 10px; margin-left: 4px; }
.atlas-layer-panel, .atlas-place-panel { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; }
.atlas-layer-panel { padding: 0 17px; }
.atlas-layer-actions { display: flex; justify-content: space-between; align-items: center; color: var(--quiet); font-size: 10px; padding: 14px 0 10px; }
.atlas-layer-actions button { padding: 4px 0; border: 0; background: none; color: var(--accent); font-size: 10px; cursor: pointer; }
.atlas-matching { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; padding: 10px; margin: 3px 0 10px; border: 1px solid var(--selection-line); border-radius: 6px; background: var(--selection); color: var(--selection-text); font-size: 10px; font-weight: 700; cursor: pointer; }
.atlas-matching:disabled { color: var(--quiet); background: var(--completed-bg); border-color: var(--line); cursor: default; }
.atlas-layer-group { border-bottom: 1px solid var(--line); padding: 3px 0; }
.atlas-layer-group summary { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--copy); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.atlas-layer-group summary::-webkit-details-marker { display: none; }
.atlas-layer-group summary::before { content: "›"; font-size: 15px; line-height: 1; color: var(--quiet); width: 8px; transform: rotate(0); }
.atlas-layer-group[open] summary::before { transform: rotate(90deg); }
.atlas-layer-group summary span { margin-left: auto; font-size: 9px; font-weight: 500; color: var(--quiet); }
.atlas-layer-group > div { padding-bottom: 5px; }
.atlas-layer { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 3px; cursor: pointer; border-radius: 5px; font-size: 11px; color: var(--copy); line-height: 1.5; }
.atlas-layer:hover { background: var(--surface-hover); }
.atlas-layer > span:nth-child(2) { flex: 1; }
.atlas-layer-icon { display: inline-flex; flex-shrink: 0; }
.atlas-color-collect { color: #d99d37; }
.atlas-color-travel { color: #5a84c6; }
.atlas-color-explore { color: #9470d6; }
.atlas-color-combat { color: #dc7782; }
.atlas-color-gather { color: #6389ce; }
.atlas-color-other { color: var(--quiet); }
:root[data-theme="dark"] .atlas-color-collect { color: #e8bd68; }
:root[data-theme="dark"] .atlas-color-travel { color: #a2c5ff; }
:root[data-theme="dark"] .atlas-color-explore { color: #b59ae8; }
:root[data-theme="dark"] .atlas-color-combat { color: #f39aa4; }
:root[data-theme="dark"] .atlas-color-gather { color: #b0caff; }
.atlas-apply-wrap { position: sticky; bottom: 0; padding: 13px 0; background: var(--surface); margin-top: 10px; box-shadow: 0 -8px 14px var(--surface); }
.atlas-apply-wrap button { width: 100%; padding: 11px; min-height: 39px; font-size: 11px; justify-content: center; }
.atlas-apply-wrap button:disabled { background: var(--completed-bg); border: 1px solid var(--line); color: var(--quiet); cursor: default; box-shadow: none; }
.atlas-map-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: 44px minmax(0,1fr)32px auto; background: var(--bg); }
.atlas-map-topline { display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); background: var(--surface); min-width: 0; }
.atlas-map-topline > div { display: flex; align-items: center; gap: 7px; color: var(--copy); min-width: 0; }
.atlas-map-topline strong { font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.atlas-map-topline > span { font-size: 10px; color: var(--quiet); margin-left: auto; white-space: nowrap; }
.atlas-map-stage { position: relative; min-height: 0; background: var(--atlas-map-bg); overflow: hidden; }
#atlas-frame { width: 100%; height: 100%; border: 0; display: block; color-scheme: dark; background: var(--atlas-map-bg); }
.atlas-loading { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; top: 16px; left: 16px; background: #17202dea; color: #e3ebf8; border: 1px solid #52627a; border-radius: 7px; padding: 10px 13px; font-size: 11px; pointer-events: none; }
.atlas-spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #8291a744; border-top-color: #b0caff; animation: atlas-spin 1s linear infinite; }
@keyframes atlas-spin { to { transform: rotate(360deg); } }
.atlas-map-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 9px; }
.atlas-map-bottomline button { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--quiet); font-size: 9px; cursor: pointer; padding: 4px 0; white-space: nowrap; }
.atlas-provider { display: flex; gap: 8px 20px; justify-content: space-between; flex-wrap: wrap; margin: 0; padding: 10px 14px; color: var(--quiet); font-size: 9px; line-height: 1.65; background: var(--surface); border-top: 1px solid var(--line); }
.atlas-provider a { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.atlas-slow { color: var(--warning-text); background: var(--warning-bg); margin: 0; padding: 9px 14px; font-size: 10px; grid-column: 1; }
.atlas-mobile-filters { display: none; border: 1px solid var(--control-line); border-radius: 6px; padding: 6px 10px; color: var(--text); background: var(--surface-raised); font-size: 11px; cursor: pointer; }
.atlas-empty { padding: 16px 0; color: var(--quiet); font-size: 12px; line-height: 1.7; }
.atlas-place-panel { padding: 0 17px 17px; }
.atlas-place-empty { padding-top: 26px; }
.atlas-place-empty > svg { color: var(--goal); margin-bottom: 12px; }
.atlas-place-empty strong { display: block; color: var(--text); font-size: 13px; }
.atlas-place-empty p { margin: 8px 0 0; font-size: 11px; }
.atlas-plan-progress { display: flex; justify-content: space-between; gap: 8px; color: var(--goal); font-size: 10px; padding: 16px 0 11px; }
.atlas-plan-progress span+span { color: var(--quiet); font-size: 9px; }
.atlas-places { list-style: none; padding: 0; margin: 0; }
.atlas-place { display: flex; align-items: flex-start; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.atlas-place > input { margin-top: 16px; flex-shrink: 0; }
.atlas-place-open { display: flex; flex: 1; flex-direction: column; gap: 4px; border: 0; background: transparent; padding: 0; text-align: left; color: var(--text); cursor: pointer; min-width: 0; }
.atlas-place-open small { color: var(--quiet); font-size: 9px; line-height: 1.6; }
.atlas-place-open strong { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.atlas-place-open > span { color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.atlas-place-open:hover strong { color: var(--accent); }
.atlas-place .atlas-icon-button { width: 22px; height: 24px; border: none; color: var(--quiet); margin-top: 11px; }
.atlas-place.is-done .atlas-place-open strong { text-decoration: line-through; color: var(--quiet); }
.atlas-place.is-done .atlas-place-open > span { color: var(--quiet); }
.atlas-place-form-details { margin-top: 16px; }
.atlas-place-form-details > summary { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; padding: 8px 0; }
#atlas-place-form label, .atlas-share-fallback label { display: block; font-size: 10px; color: var(--muted); margin: 12px 0 6px; }
#atlas-place-form input, #atlas-place-form textarea, .atlas-share-fallback input { width: 100%; min-width: 0; padding: 9px; background: var(--bg); border: 1px solid var(--control-line); border-radius: 6px; color: var(--text); font-size: 11px; }
#atlas-place-form textarea { resize: vertical; }
#atlas-place-form p { color: var(--quiet); font-size: 10px; line-height: 1.7; margin: 10px 0; }
#atlas-place-form #atlas-place-error { color: var(--danger); }
#atlas-place-form .button { width: 100%; font-size: 11px; padding: 10px; justify-content: center; }
.atlas-backup { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 10px; }
.atlas-backup summary { cursor: pointer; font-size: 10px; color: var(--quiet); padding: 6px 0; }
.atlas-backup p { color: var(--quiet); font-size: 10px; line-height: 1.7; }
.atlas-backup button, .atlas-import-label { display: inline-block; border: 1px solid var(--control-line); background: transparent; color: var(--copy); padding: 7px 8px; border-radius: 6px; font-size: 10px; cursor: pointer; margin: 4px 5px 0 0; }
.atlas-import-label { position: relative; overflow: hidden; }
.atlas-import-label input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.atlas-import-label:has(input:focus-visible) { background:var(--selection); color:var(--accent); }
.atlas-help { margin: 15px 0 0; color: var(--quiet); font-size: 11px; line-height: 1.8; max-width: 880px; }
.atlas-help summary { cursor: pointer; padding: 4px 0; }
.atlas-help p { margin: 9px 0 0; }
.atlas-share-fallback { margin: -10px 0 20px; max-width: 700px; }
html.atlas-expanded { overflow: hidden; }
.atlas.is-expanded { position: fixed; z-index: 2000; inset: 0; margin: 0; padding: 19px 25px; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; }
.atlas.is-expanded .atlas-heading { margin-bottom: 14px; flex-shrink: 0; }
.atlas.is-expanded .atlas-heading p, .atlas.is-expanded .atlas-eyebrow, .atlas.is-expanded .atlas-help { display: none; }
.atlas.is-expanded .atlas-heading h2 { font-size: 22px; }
.atlas.is-expanded .atlas-workspace { flex: 1; min-height: 460px; height: auto; }
.atlas.is-expanded .atlas-share-fallback { margin: 0 0 12px; }
@media (max-width: 950px) {
  .atlas-workspace { grid-template-columns: 255px minmax(0,1fr); }
  .atlas-map-topline > span { display: none; }
  .atlas-provider { gap: 3px; }
}
@media (max-width: 760px) {
  .atlas { margin-top: 23px; }
  .atlas-heading { align-items: flex-start; gap: 10px; margin-bottom: 17px; }
  .atlas-heading h2 { font-size: 25px; }
  .atlas-heading p { font-size: 11px; max-width: 270px; }
  .atlas-heading-actions { gap: 5px; margin-top: 18px; }
  .atlas-owner { display: none; }
  .atlas-icon-button { width: 32px; height: 32px; }
  .atlas-workspace { display: block; height: 640px; border-radius: 10px; }
  .atlas-map-column { height: 100%; grid-template-rows: 44px minmax(0,1fr)38px auto; }
  .atlas-map-topline { padding: 0 12px; gap: 8px; }
  .atlas-map-topline > div { flex: 1; }
  .atlas-map-topline strong { max-width: none; font-size: 11px; }
  .atlas-mobile-filters { display: block; flex-shrink: 0; min-height: 32px; }
  .atlas-sidebar { display: none; position: absolute; inset: 44px 0 0; z-index: 5; border: 0; }
  .atlas.filters-open .atlas-sidebar { display: flex; }
  .atlas-side-top { padding: 14px 17px 0; }
  .atlas-search { margin-bottom: 12px; }
  .atlas-goal-label { margin-top: 13px; }
  .atlas-presets { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; }
  .atlas-presets button { font-size: 10px; min-height: 40px; }
  .atlas-layer { min-height: 42px; font-size: 12px; }
  .atlas-layer-group summary { font-size: 12px; padding: 12px 0; }
  .atlas-layer-panel { display: flex; flex-direction: column; }
  #atlas-layer-list { flex: 1; }
  .atlas-apply-wrap { flex-shrink: 0; }
  .atlas-map-bottomline { padding: 0 11px; gap: 8px; font-size: 8px; line-height: 1.5; }
  .atlas-map-bottomline button { font-size: 9px; }
  .atlas-provider { padding: 8px 11px; font-size: 8px; gap: 2px; }
  .atlas-provider > span { width: 100%; }
  .atlas-help { font-size: 10px; }
  .atlas.is-expanded { padding: 12px 10px; }
  .atlas.is-expanded .atlas-heading h2 { font-size: 20px; }
  .atlas.is-expanded .atlas-heading-actions { margin-top: 0; }
  .atlas.is-expanded .atlas-workspace { min-height: 400px; }
  .view-tabs { max-width: 100%; gap: 18px; }
  .view-tab { padding-left: 0; padding-right: 0; white-space: nowrap; }
}
@media (max-width: 380px) {
  .view-tabs { gap: 13px; }
  .view-tab { padding-left: 0; padding-right: 0; font-size: 12px; }
  .atlas-heading h2 { font-size: 22px; }
  .atlas-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .atlas-spinner { animation: none; } }

/* Native atlas and drop finder: filled blue surfaces, quiet controls, stable map canvas. */
.fm { --fm-accent: var(--accent); --fm-panel: var(--surface); --fm-stage: #0b1320; margin-top: 34px; }
.fm *, .fm *::before, .fm *::after { box-sizing: border-box; }
.fm button, .fm input, .fm select { font: inherit; }
.fm button { cursor: pointer; }
.fm button:focus-visible, .fm input:focus-visible, .fm select:focus-visible, #fm-canvas:focus-visible { outline: 2px solid var(--goal); outline-offset: 3px; }
.fm [hidden] { display: none !important; }
.fm-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.fm-eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; margin-bottom: 11px; }
.fm-heading h2 { color: var(--text); font-size: clamp(24px, 2.7vw, 35px); letter-spacing: -.045em; line-height: 1.2; margin: 0; }
.fm-heading h2 span { color: var(--goal); font-weight: 500; }
.fm-head-actions, .fm-owner { display: flex; align-items: center; gap: 8px; }
.fm-owner { color: var(--muted); font-size: 11px; margin-right: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; padding: 0; color: var(--copy); background: var(--surface-raised); border: 0; border-radius: 9px; transition: color .2s, background .2s; }
.fm-icon:hover { background: var(--surface-hover); color: var(--goal); }
.fm-workspace { display: grid; grid-template-columns: 304px minmax(0,1fr); position: relative; height: clamp(710px, 82vh, 870px); overflow: hidden; border-radius: 17px; background: var(--fm-panel); box-shadow: 0 16px 60px #0002; }
.fm-sidebar { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--surface); z-index: 4; box-shadow: 8px 0 30px #0001; }
.fm-side-head { padding: 18px 18px 0; flex-shrink: 0; }
.fm-mode { display: grid; grid-template-columns: .85fr 1.15fr; padding: 4px; gap: 4px; background: var(--bg); border-radius: 10px; margin-bottom: 20px; }
.fm-mode button { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 10px 4px; font-size: 11px; font-weight: 800; transition: background .25s, color .25s; min-height: 38px; }
.fm-mode button[aria-pressed="true"] { color: var(--selection-text); background: var(--selection); box-shadow: 0 2px 9px #0002; }
.fm-label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin: 16px 0 8px; }
.fm-region-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fm-region-heading .fm-label { margin: 0; }
.fm-reset-all { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 3px 0 3px 6px; border: 0; background: transparent; color: var(--muted); font-size: 10px !important; font-weight: 600 !important; transition: color .2s; }
.fm-reset-all:hover { color: var(--goal); }
.fm-select { width: 100%; min-width: 0; padding: 11px 25px 11px 11px; color: var(--text); background: var(--surface-raised); border: 0; border-radius: 8px; font-size: 12px !important; text-overflow: ellipsis; cursor: pointer; }
.fm-select option, .fm-select optgroup { color: var(--text); background: var(--surface); }
.fm-farm-controls { position: relative; }
.fm-search { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px; color: var(--muted); background: var(--bg); border-radius: 8px; }
.fm-search:focus-within { box-shadow: 0 0 0 1.5px var(--goal); }
.fm-search input { width: 100%; min-width: 0; color: var(--text); background: none; border: 0; outline: 0; font-size: 12px; padding: 0; }
.fm-search input::-webkit-search-cancel-button { display: none; }
.fm-search input::placeholder { color: var(--quiet); }
.fm-search button { display: grid; place-items: center; border: 0; padding: 2px; background: none; color: var(--quiet); }
.fm-suggestions { position: absolute; z-index: 12; left: -2px; right: -2px; top: 80px; padding: 5px; max-height: 265px; overflow-y: auto; background: var(--surface-raised); border-radius: 9px; box-shadow: 0 12px 38px #0007; }
.fm-suggestions button { display: block; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 6px; color: var(--text); background: none; font-size: 12px; }
.fm-suggestions button small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.fm-suggestions button:hover, .fm-suggestions button[aria-selected="true"] { background: var(--selection); }
.fm-suggestions p { font-size: 11px; color: var(--muted); padding: 6px; }
.fm-item-card { display: flex; align-items: center; gap: 10px; padding: 13px 11px; margin-top: 12px; color: var(--text); background: linear-gradient(120deg, var(--selection), var(--surface-raised)); border-radius: 9px; }
.fm-item-symbol { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; color: var(--goal); background: #8bb7ff12; border-radius: 9px; }
.fm-item-card > div { min-width: 0; flex: 1; }
.fm-item-card small { display: block; font-size: 9px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fm-item-card strong { display: block; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.fm-item-card button { align-self: flex-start; border: 0; background: transparent; color: var(--muted); padding: 0; }
.fm-region-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; max-height: 76px; overflow-y: auto; scrollbar-width: thin; }
.fm-region-chips button { padding: 5px 7px; border: 0; background: var(--surface-raised); color: var(--muted); border-radius: 5px; font-size: 9px; line-height: 1.5; }
.fm-region-chips button[aria-pressed="true"] { color: var(--selection-text); background: var(--selection); }
.fm-region-chips span { color: var(--goal); font-variant-numeric: tabular-nums; margin-left: 3px; }
.fm-popular { padding-top: 13px; }
.fm-popular > span { font-size: 9px; color: var(--quiet); }
.fm-popular > div { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.fm-popular button { color: var(--copy); border: 0; background: var(--surface-raised); border-radius: 6px; padding: 6px 7px; font-size: 9px; line-height: 1.5; }
.fm-popular button:hover { background: var(--selection); color: var(--selection-text); }
.fm-filter-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 10px; margin-top: 17px; }
.fm-filter-grid label > span, .fm-filter-grid > div > span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 7px; }
.fm-filter-grid .fm-select { font-size: 10px !important; padding-left: 8px; min-height: 37px; }
.fm-levels { display: flex; align-items: center; gap: 3px; background: var(--surface-raised); border-radius: 7px; min-height: 37px; padding: 0 3px; color: var(--quiet); }
.fm-levels input { min-width: 0; width: 50%; padding: 7px 1px 7px 5px; background: none; color: var(--text); border: 0; font-size: 10px; -moz-appearance: textfield; }
.fm-levels input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fm-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; padding-top: 12px; padding-bottom: 3px; }
.fm-layers label { display: flex; align-items: center; gap: 6px; position: relative; min-width: 0; min-height: 34px; cursor: pointer; color: var(--muted); font-size: 10px; }
.fm-layers label > svg { width: 13px; flex-shrink: 0; color: var(--goal); }
.fm-layers label > span { flex: 1; }
.fm-layers input { position: absolute; opacity: 0; right: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fm-layers i { width: 22px; height: 13px; border-radius: 8px; background: var(--control-line); flex-shrink: 0; pointer-events: none; transition: background .2s; }
.fm-layers i::after { content: ''; display: block; width: 9px; height: 9px; background: var(--surface); border-radius: 50%; margin: 2px; transition: transform .2s; }
.fm-layers input:checked + i { background: var(--goal); }
.fm-layers input:checked + i::after { transform: translateX(9px); }
.fm-layers input:focus-visible + i { background:var(--selection); color:var(--goal); }
.fm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.fm-tabs button { display: flex; align-items: center; gap: 5px; padding: 0 0 12px; text-align: left; color: var(--quiet); background: none; border: 0; font-size: 11px; font-weight: 800; position: relative; }
.fm-tabs button[aria-selected="true"] { color: var(--text); }
.fm-tabs button[aria-selected="true"]::after { content: ''; height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; background: var(--goal); border-radius: 2px; }
.fm-tabs span { font-size: 9px; font-weight: 500; color: var(--muted); }
.fm-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; padding: 0 10px 12px; }
.fm-results-note { padding: 14px 10px 9px; font-size: 9px; color: var(--quiet); }
.fm-mob { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 12px 9px; color: var(--text); background: transparent; border: 0; border-radius: 9px; transition: background .22s, color .22s; }
.fm-mob:hover { background: var(--surface-raised); }
.fm-mob[aria-pressed="true"] { background: var(--selection); box-shadow: inset 2px 0 var(--goal); }
.fm-mob-symbol { display: grid; place-items: center; width: 32px; height: 34px; flex-shrink: 0; background: var(--surface-raised); color: var(--goal); border-radius: 8px; }
.fm-mob-symbol.fm-named { color: #cbb7ee; background: #b7a4e314; }
.fm-mob-symbol.fm-elite { color: #e0acba; background: #e6a6b214; }
.fm-mob-symbol.fm-species { color: var(--fm-species); }
.fm-species-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--fm-species); box-shadow: 0 0 0 3px #0b142350; }
.fm-mob-copy { flex: 1; min-width: 0; }
.fm-mob-copy strong { display: block; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.fm-mob-copy small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.5; }
.fm-chance { display: block; color: var(--goal); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.fm-mob > svg { color: var(--quiet); flex-shrink: 0; }
.fm-more, .fm-empty button { display: block; width: 100%; background: var(--surface-raised); color: var(--goal); border: 0; border-radius: 7px; font-size: 10px !important; padding: 11px; margin-top: 10px; }
.fm-empty { padding: 30px 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.fm-empty > svg, .fm-empty-symbol { display: block; color: var(--goal); margin-bottom: 15px; }
.fm-empty strong { display: block; font-size: 13px; color: var(--text); }
.fm-empty p { margin: 7px 0 0; font-size: 11px; }
.fm-map-column { display: grid; grid-template-rows: 47px minmax(0,1fr)32px; min-width: 0; min-height: 0; }
.fm-map-bar { display: flex; align-items: center; gap: 12px; padding: 0 17px; min-width: 0; background: var(--surface); }
.fm-map-bar > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm-map-bar strong { color: var(--text); font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--goal); box-shadow: 0 0 12px #a8caff50; flex-shrink: 0; }
.fm-map-bar > span { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 10px; }
.fm-stage { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: var(--fm-stage); isolation: isolate; }
#fm-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#fm-canvas.is-dragging { cursor: grabbing; }
.fm-map-loading { position: absolute; pointer-events: none; top: 16px; left: 16px; padding: 12px 16px; font-size: 11px; border-radius: 8px; background: #142238f2; color: #d6e6ff; box-shadow: 0 4px 20px #0003; }
.fm-map-error { position: absolute; bottom: 18px; left: 16px; right: 58px; max-width: 380px; padding: 13px; border-radius: 8px; color: #e5cee0; background: #2c2035f2; font-size: 11px; line-height: 1.7; }
.fm-map-error button { margin: 7px 0 0; display: block; padding: 6px 9px; color: #e4edff; background: #ffffff13; border-radius: 5px; border: 0; font-size: 11px; }
.fm-map-empty { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); padding: 25px 28px; border-radius: 14px; width: min(300px,85%); background: #0d1b2be8; box-shadow: 0 12px 45px #0003; text-align: center; color: #a9caff; pointer-events: none; }
.fm-map-empty strong { display: block; color: #e6efff; font-size: 15px; margin: 12px 0 8px; }
.fm-map-empty > span { display: block; color: #aabbd4; font-size: 11px; line-height: 1.7; }
.fm-map-tools { display: flex; flex-direction: column; gap: 8px; position: absolute; bottom: 19px; right: 15px; z-index: 2; }
.fm-map-tools .fm-icon { color: var(--text); background: var(--surface); width: 35px; height: 35px; }
.fm-map-tools .fm-icon:hover { background: var(--surface-hover); }
.fm-map-tools > div { background: var(--surface); padding: 2px; border-radius: 9px; }
.fm-map-tools > div .fm-icon { background: transparent; width: 31px; }
.fm-compass { position: absolute; top: 16px; right: 18px; color: #c2d6f88c; text-align: center; font-size: 27px; line-height: 1; pointer-events: none; }
.fm-compass span { font-size: 8px; font-weight: 800; display: block; margin-bottom: 3px; }
.fm-scale { position: absolute; left: 17px; bottom: 18px; padding: 5px 7px; border-radius: 5px; font-size: 9px; color: #a8bfdc; background: #0b1423cc; font-variant-numeric: tabular-nums; pointer-events: none; }
.fm-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; color: var(--quiet); font-size: 9px; background: var(--surface); }
.fm-bottom > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fm-coordinates { white-space: nowrap; font-size: 9px; font-variant-numeric: tabular-nums; }
.fm-detail { position: absolute; top: 16px; right: 16px; z-index: 3; width: 270px; max-width: calc(100% - 32px); max-height: calc(100% - 105px); display: flex; flex-direction: column; overflow: hidden; color: var(--text); background: var(--surface); border-radius: 13px; padding: 22px 17px 15px; box-shadow: 0 12px 50px #0006; }
.fm-detail-copy { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; overscroll-behavior: contain; }
.fm-detail-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; border: 0; color: var(--quiet); background: none; padding: 0; width: 21px; height: 21px; }
.fm-detail-kicker { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.6; }
.fm-detail h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.035em; margin: 10px 18px 10px 0; overflow-wrap: anywhere; }
.fm-detail-zone { display: flex; align-items: flex-start; gap: 5px; font-size: 10px; line-height: 1.7; color: var(--muted); margin: 0 0 19px; }
.fm-detail-zone svg { flex-shrink: 0; margin-top: 2px; }
.fm-conditional { font-size: 9px; color: var(--muted); background: var(--surface-raised); border-radius: 5px; padding: 7px; }
.fm-drop-list > .fm-detail-kicker { margin-bottom: 8px; }
.fm-drop-list button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; width: 100%; text-align: left; font-size: 10px; line-height: 1.6; color: var(--copy); background: transparent; border: 0; border-radius: 6px; }
.fm-drop-list button span { min-width: 0; }
.fm-drop-list button strong { flex-shrink: 0; color: var(--muted); font-size: 9px; font-weight: 700; max-width: 105px; text-align: right; font-variant-numeric: tabular-nums; }
.fm-drop-list button.is-current { background: var(--selection); color: var(--selection-text); }
.fm-drop-list button.is-current strong { color: var(--goal); }
.fm-drop-list button:hover { background: var(--surface-raised); }
.fm-estimate { display: block; color: var(--quiet); font-size: 9px; margin: 10px 7px 14px; }
.fm-extra-drops summary { cursor: pointer; padding: 8px; font-size: 10px; color: var(--muted); }
.fm-detail-actions { display: flex; flex-shrink: 0; gap: 6px; margin-top: 17px; }
.fm-detail-actions button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 9px 7px; flex: 1; background: var(--surface-raised); color: var(--goal); border: 0; border-radius: 7px; font-size: 9px; font-weight: 700; }
.fm-detail-actions button:hover { background: var(--selection); }
.fm-detail-copy h3, .fm-detail-copy .fm-detail-zone { animation: fm-text .28s ease both; }
@keyframes fm-text { from { opacity: .65; } to { opacity: 1; } }
.fm-saved { display: flex; align-items: flex-start; gap: 9px; padding: 14px 5px; }
.fm-saved > input { accent-color: var(--goal); width: 15px; height: 15px; margin: 3px 0 0; flex-shrink: 0; }
.fm-saved > button:not(.fm-remove-place) { flex: 1; min-width: 0; padding: 0; background: none; color: var(--text); border: 0; text-align: left; }
.fm-saved strong { display: block; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.fm-saved small, .fm-saved span { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.fm-saved .is-done strong { text-decoration: line-through; color: var(--quiet); }
.fm-remove-place { background: none; border: 0; color: var(--quiet); padding: 3px 0; }
.fm-backup { display: flex; align-items: center; gap: 8px; margin: 15px 6px; }
.fm-backup button, .fm-backup label { position: relative; display: block; background: var(--surface-raised); color: var(--muted); border: 0; border-radius: 6px; padding: 8px; font-size: 9px; overflow: hidden; cursor: pointer; }
.fm-backup input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fm-backup label:has(input:focus-visible) { background:var(--selection); color:var(--goal); }
.fm-share-fallback { margin-top: 16px; max-width: 700px; }
.fm-share-fallback label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.fm-share-fallback input { width: 100%; padding: 10px; color: var(--text); background: var(--surface); border: 0; border-radius: 7px; font-size: 11px; }
.fm-mobile { display: none; }
.fm.is-expanded { position: fixed; inset: 0; z-index: 2000; margin: 0; padding: 17px 20px; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; }
.fm.is-expanded .fm-workspace { flex: 1; height: auto; min-height: 350px; }
.fm.is-expanded .fm-heading { margin-bottom: 17px; }
.fm.is-expanded .fm-eyebrow { display: none; }
@media (max-width: 1050px) { .fm-workspace { grid-template-columns: 278px minmax(0,1fr); } .fm-side-head { padding-left: 14px; padding-right: 14px; } .fm-heading h2 { font-size: 27px; } .fm-heading h2 span { display: block; font-size: 20px; margin-top: 4px; } .fm-owner { display: none; } .fm-detail { width: 240px; } }
@media (max-width: 760px) {
  .fm { margin-top: 25px; }
  .fm-heading { align-items: center; margin-bottom: 19px; gap: 10px; }
  .fm-eyebrow { font-size: 8px; margin-bottom: 9px; }
  .fm-heading h2 { font-size: 25px; }
  .fm-heading h2 span { font-size: 15px; margin-top: 5px; }
  .fm-head-actions { gap: 5px; }
  .fm-head-actions .fm-icon { width: 31px; height: 33px; border-radius: 8px; }
  .fm-workspace { display: block; height: 750px; border-radius: 12px; }
  .fm-map-column { height: 100%; grid-template-rows: 47px minmax(0,1fr)32px; }
  .fm-sidebar { display: none; position: absolute; inset: 47px 0 0; z-index: 5; }
  .fm.filters-open .fm-sidebar { display: flex; }
  .fm-side-head { padding: 14px 17px 0; }
  .fm-mode { margin-bottom: 15px; }
  .fm-mode button { font-size: 12px; }
  .fm-select { min-height: 41px; }
  .fm-label { margin-top: 13px; }
  .fm-map-bar { padding: 0 10px; gap: 9px; }
  .fm-map-bar > div { flex: 1; }
  .fm-map-bar > span { font-size: 9px; }
  .fm-map-bar strong { font-size: 11px; }
  .fm-mobile { display: block; background: var(--surface-raised); color: var(--goal); border: 0; border-radius: 6px; padding: 8px; font-size: 10px !important; font-weight: 700 !important; white-space: nowrap; min-height: 33px; }
  .fm-filter-grid { margin-top: 12px; }
  .fm-tabs { margin-top: 14px; }
  .fm-suggestions { top: 77px; }
  .fm-results { padding: 0 12px 12px; }
  .fm-mob-copy strong { font-size: 12px; }
  .fm-mob-copy small { font-size: 10px; }
  .fm-chance { font-size: 11px; }
  .fm-mob { min-height: 68px; }
  .fm-layers { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .fm-layers label { min-height: 36px; font-size: 11px; }
  .fm-detail { top: auto; bottom: 16px; left: 12px; right: 59px; width: auto; max-width: none; max-height: 55%; padding: 18px 15px 13px; }
  .fm-detail h3 { font-size: 19px; }
  .fm-drop-list button { font-size: 11px; }
  .fm-detail-actions button { min-height: 37px; font-size: 10px; }
  .fm-map-tools { right: 10px; bottom: 16px; }
  .fm-bottom { padding: 0 9px; font-size: 8px; }
  #fm-coordinates { display: none; }
  .fm.is-expanded { padding: 14px 10px; }
  .fm.is-expanded .fm-heading h2 span { display: none; }
}
@media (max-width: 360px) { .fm-heading h2 { font-size: 23px; } .fm-heading h2 span { font-size: 13px; } .fm-map-bar > span { display: none; } .fm-side-head { padding-left: 13px; padding-right: 13px; } .fm-item-card strong { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .fm *, .fm *::before, .fm *::after { animation: none !important; transition: none !important; } }
.fm-reference-link{display:block;margin:10px 0;color:var(--accent);font-size:11px;line-height:1.6}

.analytics-choice{position:fixed;z-index:95;bottom:18px;left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 28px));display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--surface,#1b2331);color:var(--text,#ecf2ff);border:1px solid #506685;border-radius:12px;box-shadow:0 12px 48px #0005;font-size:13px}.analytics-choice[hidden]{display:none}.analytics-choice p{flex:1;margin:0}.analytics-choice a,.analytics-preferences{color:var(--accent,#93baff)}.analytics-choice button,.analytics-dialog button{border:1px solid #6b84a5;background:transparent;color:inherit;border-radius:7px;padding:8px 12px;cursor:pointer;font:inherit;white-space:nowrap}.analytics-choice [data-analytics-allow],.analytics-dialog [data-analytics-allow]{background:#346be6;border-color:#346be6;color:white}.analytics-preferences{border:0;background:transparent;font:inherit;font-size:12px;padding:8px 0;cursor:pointer}.analytics-dialog{max-width:530px;width:calc(100% - 32px);border:1px solid #6b84a5;border-radius:14px;background:var(--surface,#1b2331);color:var(--text,#ecf2ff);padding:24px;line-height:1.65}.analytics-dialog::backdrop{background:#0009}.analytics-dialog h2{font-size:22px;margin:0 0 14px}.analytics-dialog a{color:#94b8ff}.analytics-dialog footer{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.analytics-dialog button:disabled{opacity:.45;cursor:default}html[data-theme=light] .analytics-choice,html[data-theme=light] .analytics-dialog{background:#fff;color:#1f2d44}@media(max-width:600px){.analytics-choice{flex-wrap:wrap;bottom:10px;gap:8px}.analytics-choice p{flex-basis:100%}.analytics-choice button{flex:1}.analytics-choice a{padding:7px}}
.analytics-choice,.analytics-dialog{border:0;background:var(--surface,#152638)}
.analytics-choice button,.analytics-dialog button{border:0;background:var(--soft,#0e1e31)}
.analytics-choice [data-analytics-allow],.analytics-dialog [data-analytics-allow]{background:var(--accent-strong,#315d9e);color:#fff}
.account-page .analytics-choice{position:static;transform:none;max-width:540px;width:calc(100% - 32px);margin:20px auto 32px;box-shadow:none;flex-wrap:wrap;font-size:11px}
.account-page .analytics-choice p{flex-basis:100%;line-height:1.7}
.account-access>.analytics-preferences{display:block;margin:5px auto 0;font-size:11px}

/* Shared character context sits above navigation. Section titles belong to
   headers; controls and checklist rows belong to the quieter content surface. */
:root {
  --section-head-start: #e7f0ff;
  --section-head-end: #f4f8ff;
  --section-mark: #2673d0;
  --section-watermark: #396aab12;
  --section-headline: #193e72;
  --character-context: #edf2f9;
}
:root[data-theme="dark"] {
  --section-head-start: #243f68;
  --section-head-end: #122441;
  --section-mark: #8ab9ff;
  --section-watermark: #a8cbff14;
  --section-headline: #f5f9ff;
  --character-context: #0e1b2c;
}
.characters-panel {
  margin: 18px 0 16px;
  padding: 13px 16px 10px;
  background: var(--character-context);
  border-radius: 12px;
}
.characters-heading { margin: 0 0 9px; }
.characters-heading > h2 {
  margin: 0;
  color: var(--copy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.character-list-wrap { width: 100%; }
.character-list { flex: 0 1 auto; }
.view-toolbar { margin: 0 0 22px; }
.stage-header {
  position: relative;
  isolation: isolate;
  margin: -27px -29px 24px;
  padding: 23px 29px 23px 33px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(115deg, var(--section-head-start), var(--section-head-end));
}
.stage-header::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 0;
  width: 3px;
  height: 56px;
  background: var(--section-mark);
  box-shadow: 0 0 20px color-mix(in srgb, var(--section-mark) 45%, transparent);
}
.stage-watermark {
  position: absolute;
  z-index: -1;
  right: 24px;
  bottom: -8px;
  color: var(--section-watermark);
  font-size: 112px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -9px;
  pointer-events: none;
}
.stage-header .stage-panel-toolbar { margin: 0 0 12px; }
.stage-header .stage-step-count { color: var(--accent); font-size: 9px; letter-spacing: 1.2px; }
.stage-header .stage-heading {
  max-width: calc(100% - 60px);
  margin: 0 0 10px;
  color: var(--section-headline);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.stage-header .stage-lead { max-width: 680px; font-size: 12px; }
.stage-main .task-list { margin-top: 0; }
.activity-overview,
.atlas-heading {
  position: relative;
  isolation: isolate;
  padding: 24px 27px;
  background: linear-gradient(115deg, var(--section-head-start), var(--section-head-end));
  border-radius: 14px;
}
.activity-overview::before,
.atlas-heading::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 3px;
  height: 43px;
  background: var(--section-mark);
  box-shadow: 0 0 20px color-mix(in srgb, var(--section-mark) 40%, transparent);
}
.activity-overview .activity-intro h2,
.atlas .atlas-heading h2 {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--section-headline);
  letter-spacing: -1px;
}
.activity-overview .activity-help { border: 0; padding-left: 0; margin-top: 13px; }
.activity-overview .routine-summary { background: transparent; padding: 0 0 0 20px; border-radius: 0; }
.activity-overview .summary-caption { font-size: 8px; }
.activity-overview .summary-stat strong { font-size: 27px; color: var(--goal); }
.activity-card .card-header {
  padding: 17px 20px;
  margin: -21px -22px 0;
  background: color-mix(in srgb, var(--section-head-start) 75%, var(--surface));
  border-radius: 14px 14px 0 0;
  align-items: center;
}
.activity-card .card-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; overflow-wrap: anywhere; }
.activity-card .card-sub { margin-top: 4px; }
.activity-card .card-icon { width: 34px; height: 34px; background: transparent; color: var(--accent); }
.activity-card .card-check { align-self: flex-start; margin-top: -3px; }
.activity-card .card-badges { margin-top: 17px; }
.activity-card.completed .card-header { background: var(--soft); }
[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 950px 680px at 14% -80px, color-mix(in srgb, var(--bg) 90%, white), transparent 74%),
    radial-gradient(ellipse 800px 850px at 96% 520px, color-mix(in srgb, var(--bg) 95%, white), transparent 76%),
    var(--bg);
  background-repeat: no-repeat;
}
[data-theme="dark"] .site-header { background: var(--header); }
[data-theme="dark"] .brand-game { color: var(--accent); letter-spacing: 1.3px; }
[data-theme="dark"] .view-tabs { gap: 25px; }
[data-theme="dark"] .view-tab { color: var(--quiet); background: transparent; }
[data-theme="dark"] .view-tab.active { background: transparent; color: var(--text); box-shadow: none; border-bottom-color: var(--accent); }
[data-theme="dark"] .character-item { background: var(--surface); }
[data-theme="dark"] .character-item.active { background: var(--selection); box-shadow: inset 3px 0 0 var(--accent); }
[data-theme="dark"] .add-character { background: var(--surface); }
[data-theme="dark"] .stage-button { background: var(--character-context); }
[data-theme="dark"] .stage-button.active { background: var(--selection); }
[data-theme="dark"] .stage-panel { background: var(--surface); box-shadow: 0 18px 50px #0000001f; }
[data-theme="dark"] .stage-header .stage-panel-toolbar .section-reset summary { background: color-mix(in srgb, var(--soft) 72%, transparent); color: var(--copy); }
[data-theme="dark"] .stage-header .stage-panel-toolbar .section-reset summary:hover { background: var(--selection); }
[data-theme="dark"] .task-row { background: var(--soft); }
[data-theme="dark"] .task-row:hover { background: var(--surface-hover); }
[data-theme="dark"] .task-row.done { background: var(--completed-bg); }
[data-theme="dark"] .goal-number { color: var(--goal); }
[data-theme="dark"] .activity-overview .routine-summary { background: transparent; }
[data-theme="dark"] .activity-toolbar { background: var(--character-context); }
[data-theme="dark"] .period-button { background: var(--surface); }
[data-theme="dark"] .period-button.active { background: var(--action); }
[data-theme="dark"] .activity-card { background: var(--surface); }
[data-theme="dark"] .activity-card.completed { background: var(--completed-bg); }
[data-theme="dark"] .activity-card .reward-line { background: var(--soft); }
[data-theme="dark"] .activity-card.highlight .card-header { background: var(--selection); }
[data-theme="dark"] .atlas { margin-top: 0; }
[data-theme="dark"] .atlas-heading { background: linear-gradient(115deg, var(--section-head-start), var(--section-head-end)); }
@media (max-width: 1050px) {
  .stage-header { margin: -25px -25px 22px; padding: 21px 25px 22px 29px; }
}
@media (max-width: 800px) {
  .activity-overview .routine-summary { border: 0; margin-top: 16px; padding: 0; }
  .activity-overview .summary-stat strong { font-size: 20px; }
  .activity-card .card-header { margin: -18px -18px 0; padding: 16px 17px; }
}
@media (max-width: 640px) {
  .characters-panel { margin-top: 13px; margin-bottom: 12px; padding: 11px 12px 8px; }
  .characters-heading { align-items: baseline; gap: 10px; }
  .characters-heading > h2 { font-size: 9px; letter-spacing: .8px; }
  .characters-heading small { font-size: 8px; }
  .character-item { flex-basis: 218px; }
  .view-toolbar { margin: 0 0 17px; }
  [data-theme="dark"] .view-tabs { width: 100%; gap: 13px; }
  [data-theme="dark"] .view-tab { flex: 1; padding: 11px 0; }
  .stage-header { margin: -21px -19px 19px; padding: 17px 19px 19px 22px; border-radius: 14px 14px 0 0; }
  .stage-header .stage-heading { max-width: 100%; font-size: 27px; letter-spacing: -.8px; }
  .stage-header .stage-lead { font-size: 11px; }
  .stage-header .stage-panel-toolbar { gap: 8px; margin-bottom: 13px; }
  .stage-header .stage-step-count { font-size: 7px; letter-spacing: .7px; }
  .stage-watermark { font-size: 82px; right: 13px; bottom: -5px; letter-spacing: -6px; }
  .stage-header::before { top: 19px; height: 47px; }
  .activity-overview, .atlas-heading { padding: 20px; }
  .activity-overview .activity-intro h2, .atlas .atlas-heading h2 { font-size: 27px; }
  .activity-overview .summary-stat strong { font-size: 20px; }
  .activity-card .card-header { margin: -19px -19px 0; padding: 15px 18px; }
  .activity-card .card-name { font-size: 16px; }
  .activity-card .card-check { margin: -8px -10px 0 0; }
  .atlas .atlas-heading { display: block; }
  .atlas .atlas-heading-actions { justify-content: flex-end; margin-top: 12px; }
}

/* Activity cards: colored chapter headers and accessible completion seals. */
.activity-card {
  --activity-hue: var(--accent);
  --activity-ink: var(--accent);
  --activity-tint: 19%;
  --activity-start: color-mix(in srgb, var(--activity-hue) var(--activity-tint), var(--surface));
  --activity-end: color-mix(in srgb, var(--activity-hue) 4%, var(--surface));
  --activity-pad-x: 21px;
  --activity-pad-y: 20px;
  position: relative;
  padding: var(--activity-pad-y) var(--activity-pad-x);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 5px 24px #16345806;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.activity-card[data-period-tone="weekly"] { --activity-tint: 22%; }
.activity-card[data-period-tone="events"] { --activity-tint: 26%; }
.activity-card[data-period-tone="farm"] { --activity-tint: 14%; }
.activity-card .card-header,
.activity-card.completed .card-header,
[data-theme="dark"] .activity-card.highlight .card-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  gap: 13px;
  min-height: 100px;
  margin: calc(-1 * var(--activity-pad-y)) calc(-1 * var(--activity-pad-x)) 0;
  padding: 19px var(--activity-pad-x);
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(ellipse at 4% 0, color-mix(in srgb, var(--activity-hue) 15%, transparent), transparent 66%),
    linear-gradient(115deg, var(--activity-start), var(--activity-end));
}
.activity-card .card-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--activity-hue), color-mix(in srgb, var(--activity-hue) 20%, transparent) 70%, transparent);
  opacity: .4;
  transition: opacity .3s ease;
}
.activity-card .card-header::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 38px, color-mix(in srgb, var(--activity-hue) 9%, transparent) 39px 40px, transparent 41px 68px);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.activity-card .activity-header-art {
  position: absolute;
  z-index: -1;
  right: 72px;
  top: -17px;
  color: var(--activity-hue);
  opacity: .11;
  transform: rotate(-16deg) scale(1);
  pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.activity-card .activity-header-art > svg { display: block; stroke-width: .9; }
.activity-card .card-icon,
.activity-card.completed .card-icon {
  width: 38px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--activity-hue) 11%, transparent);
  color: var(--activity-ink);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--activity-hue) 19%, transparent);
  transition: background-color .3s ease;
}
.activity-card .card-icon svg { width: 21px; height: 21px; }
.activity-card .card-name { color: var(--text); font-size: 16px; line-height: 1.4; }
.activity-card .card-sub { color: var(--copy); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.activity-card .card-badges { margin-top: 18px; }
.activity-card .card-count { color: var(--activity-ink); }
.activity-card .reward-line { border: 0; border-radius: 9px; padding: 10px 12px; background: var(--soft); }
.activity-card.completed .card-name { color: var(--copy); }
.activity-card.completed .activity-header-art { opacity: .06; }

/* Native inputs keep their semantics; the visible controls are round seals. */
.activity-card .card-check.activity-stamp {
  position: relative;
  flex: 0 0 44px;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -3px 0 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.activity-complete-input,
.activity-filters .activity-filter-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.activity-seal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--activity-ink);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.activity-seal-ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); transition: transform .4s ease; }
.activity-seal-ring .seal-track { stroke: var(--activity-hue); stroke-width: 1; opacity: .22; }
.activity-seal-ring .seal-orbit { stroke: var(--activity-hue); stroke-width: 1.7; stroke-dasharray: 3 7; opacity: .6; transition: opacity .22s ease; }
.activity-seal > svg:not(.activity-seal-ring) { width: 19px; height: 19px; opacity: .55; transition: opacity .22s ease; }
.activity-complete-input:checked + .activity-seal { background: var(--activity-hue); color: #10213b; box-shadow: 0 0 20px color-mix(in srgb, var(--activity-hue) 22%, transparent); }
.activity-complete-input:checked + .activity-seal > svg:not(.activity-seal-ring) { opacity: 1; stroke-width: 2.4; }
.activity-complete-input:checked + .activity-seal .seal-orbit { stroke-dasharray: none; opacity: 1; }
.activity-complete-input:focus-visible + .activity-seal { filter:brightness(1.2); }
.activity-complete-input:active + .activity-seal { transform: scale(.93); }
.activity-complete-input:disabled { cursor: wait; }

/* Filter chips use a small lit indicator instead of a square checkbox. */
.activity-filters { gap: 7px; }
.activity-filters .activity-filter {
  position: relative;
  min-height: 34px;
  padding: 6px 10px;
  gap: 7px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.activity-filter-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--quiet); opacity: .5; transition: background-color .2s ease, box-shadow .2s ease; }
.activity-filter:has(:checked) { background: var(--selection); color: var(--text); }
.activity-filter-input:checked + .activity-filter-indicator { opacity: 1; background: var(--accent); box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 45%, transparent); }
.activity-filter:has(:focus-visible) { color:var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .activity-card:hover { box-shadow: 0 10px 32px #07142c1c; }
  .activity-card:hover .activity-header-art { transform: rotate(-7deg) scale(1.08); opacity: .18; }
  .activity-card:hover .card-header::before { opacity: .9; }
  .activity-card:hover .card-icon { background: color-mix(in srgb, var(--activity-hue) 19%, transparent); }
  .activity-stamp:hover .activity-seal { transform: scale(1.07); background: color-mix(in srgb, var(--activity-hue) 24%, var(--surface)); }
  .activity-stamp:hover .activity-seal-ring { transform: rotate(-54deg); }
  .activity-stamp:hover .activity-seal > svg { opacity: 1; }
  .activity-stamp:hover .activity-complete-input:checked + .activity-seal { background: var(--activity-hue); }
  .activity-filter:hover { color: var(--text); background: var(--surface-hover); }
}
@media (max-width: 640px) {
  .activity-card { --activity-pad-x: 18px; --activity-pad-y: 18px; }
  .activity-card .card-header { padding-block: 16px; gap: 10px; }
  .activity-card .card-name { font-size: 15px; }
  .activity-card .card-icon { width: 32px; height: 38px; border-radius: 9px; }
  .activity-card .card-sub { font-size: 10px; }
  .activity-card .activity-header-art { right: 48px; }
  .activity-filters .activity-filter { min-height: 36px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-card, .activity-card *, .activity-card ::before, .activity-card ::after,
  .activity-filter, .activity-filter-indicator { transition: none !important; animation: none !important; }
  .activity-card:hover .activity-header-art { transform: rotate(-16deg); }
  .activity-stamp:hover .activity-seal, .activity-complete-input:active + .activity-seal { transform: none; }
  .activity-stamp:hover .activity-seal-ring { transform: rotate(-90deg); }
}
.stage-priority{padding:15px 17px;margin:0 0 18px;background:var(--soft);border-radius:10px}.stage-priority strong{font-size:10px;color:var(--accent);text-transform:uppercase;letter-spacing:.8px}.stage-priority p{font-size:13px;color:var(--text);margin:6px 0}.stage-priority small{display:block;font-size:11px;line-height:1.7;color:var(--muted)}
@media(max-width:600px){.stage-priority{padding:13px 14px}}

/* A single persistent character control in the sticky application header. */
:root {
  --header-glow: color-mix(in srgb,var(--accent) 77%,white);
  --header-field-bg: color-mix(in srgb,#0e131b 92%,var(--header-glow));
  --header-field-hover: color-mix(in srgb,var(--header-field-bg) 78%,var(--header-glow));
  --character-trigger-bg: var(--header-field-bg);
  --character-trigger-hover: var(--header-field-hover);
  --character-trigger-text: #f3f7fe;
  --character-trigger-muted: #aebfd5;
}
.character-switcher { position: relative; flex: 0 1 226px; min-width: 150px; max-width: 226px; margin-left: auto; }
.header-actions { margin-left: 0; }
.site-header .character-switcher[hidden]+.header-actions { margin-left: auto; }
.site-header { border-bottom-color: #162238; box-shadow: 0 5px 24px #02081740; }
.site-header .brand { background: transparent; }
.site-header .brand-game { color: #aebfd5; }
.site-header .brand-separator { background: #243147; }
.site-header .theme-toggle { background: var(--header-field-bg); border-color: transparent; color: #c1d0e2; }
.site-header .theme-toggle:hover { background: var(--header-field-hover); color: #f3f7fe; }
.site-header .language-switch { background: var(--header-field-bg); border-color: transparent; }
.site-header .language-switch button { color: #aebfd5; }
.site-header .language-switch button.active { background: var(--action); color: white; }
.site-header .language-switch button:hover:not(.active) { background: var(--header-field-hover); color: #f3f7fe; }
.boosty-icon { display: block; width: 24px; height: 24px; background: currentColor; -webkit-mask: url("data:image/webp;base64,UklGRvQIAABXRUJQVlA4TOgIAAAvK8FKEI8QEYrbRmFj/Ho7IIijqtHA32LhDFq2bcdtIz10RA9w/sNNdSLuu49L9RPRf1iwrcZtnrpJoq9bGhsEGPnzA9ncuO+N0+7d3Meylm+wtoJlkIYG296EhYZsWv+60RBMQ4WbEdMw0dBNe/UbDeVNsc5oGmuHYzVtJsD1r1fF6n8GrAOP9VegWBU41mAaK1y/GacsvKl+eve2jV/BTERj3derYvU/A1a4z75+VazTWQYHN1Nt68OxplfV/xmYF92rt23EXwGrH2/KJ+BCm9nvqv+qXJjaD4H1Rc0I3Ey3jXX+H+j0PN6V0/OLn5m2sbZX5fS8fqWsn58B66uayXhOz7+CMCm/X7wL03ZvinW8KtbypsKkVnhTrP1VxR2UV2VeTD8r1jc1s22bia+KtbwqZWG+KVaH58j7pliXf1Os3TRWN16VeXFz6Itz78m8KGXuOVq5orfV6fnwP9WaveboxcrA6nQI/+rwMntJnhIrh9wG7r9od2u0EsS4mSpYDi+rBtPCpBKcgWW15JiwUjAvxm/PfmqwihX0h9+dhDiH3AbuEbvduAwKk0rIK30je2NYhz8j/dxZ+MxiSphUBX+c7HsWZ0iYVFJwWBtRs9MzA1b3+OOkOCsCq5WsyHStg5PBjEyWl67xm0H+xEgzyOjCY1X09LMz/TCpqusMoLAPk0rK1tqbkGc9JH3yxVtr24inn5eZ2zYUPkxmpB0mtY7MhEkz3CjD9Y/MFJrR3EKhPyEeGWY6PQeQE2/K+RO92hOA7ig7PR+Thpg0MUyq8Ez2HOBYo2pLFL4CXxj0N1LmOPtYK9Y5JVlW7U8+TaiGSXn16spl3Azak8+MRJ2eC4GLwXbLwqSk3nhhIob1/cLDcHaZF/MN2AqwC5P6o99AxBSSrAdm4r4h31kVJtVuSKxAkTWff+6hZuhIS72ycN2gmM4iFyYZqLizRS5MacNiOoJOz2el6WWFSeoPe34Do9GbaXJWml1AvFcfWC0dGXdh13eHpHGFxRgXpnZjN2+LbcMtcFy22DauGxyd2zUaHmd1HR3TU3N6FgBpYkUK+Km932741gwpEMdtfCwhZts4JI1Oyou1HZRmqLf7pXwmbQ0oxFhPSPMUlK6c1S0V6M6I/nWrwIysnJ7dkXUrBVSXDazpVtIKK9YT0kQFg/ICcdzUgkHKhckf8skhqV1J1/1PJlMNthhwVad462nOgDCpqgn8a01wSxE8/9WQfGsCI9b0tLQmBEas7mlpVaDfr6oQ2S9I+qkKiX1JWeXWBfYxGlMZyIdJhfvmOpyW6riDyhZFtbLgpzIE7ubFcpOFV+3CLlMbPB/WE0GKRO0bVbVi5ep8ppZ6JBsj95KyfHyghZAaEFiz6jzyLCGYcZnISfrkuCBJ42E0CAdWaw4nbmxiNCK1dP+72FdSVofyOSHDmrnlOZ7BugJx4sK6+Kl1JWV1JucGUyOr5jXLyrWkLPV5pTKXmRXI5SxMtpWUVeEOeGTCpOjFMjPLuMxnXWsIl9UQtPcNL/GPZbaNBBjjSfaqTsr9K6a3q6Qs6WRi0mVQY81s8pSFmxlrnGz8TTI128ags37bmNk2Mp0sZTIVsXJI2NlQnZ4hLzhIIIRqJ6P2syAVNJUUzTApCnHElUwRemBjbFgjL9tGY5SrM9NKLZcpRVg3VTMEvOZ24FJ+V4IR6pQCrOOCy92LNkbGvFhI9ePi5E/fgbNTAKl7PJwCZHK6nkshFf7jNqWZtEmlyg1aiulhkXUkc1mc2VmojQ1P5vdxeYwx6PdcbLG9ft9a60FpSNBy6MvuKs9EG/BPC7A8oxPpqaA8OquleavEEJ1XuKgIDlUqkXVetWF7cDueyuf26yb2/jPYSPuFPA+vG+uzMbhJLeOkLJXSTuUz0XII2BpxqUxqui/4gkj12Rj8IncZEM9FuipIHaXGEqSh0IGL3nXWokJ00Ti2PIinAhMVtGNnqCaNJc/ksSHlMJR5SIeNfQUQ0lhR40VT2oc1mmgcc7SRHhnjlXOhkLAC+YF9pVHaaAqNd02QwEE6Io9t/0ECBV3BT2yzBm8kfap6+fDGkgdUFtBS7DkTVXVfawbiWPEBVZ1vEgFtNtGixQGBr90sqxsDLMNLlSHWf62q86vv32uXrupegb1UNWQBSrpsZVTXcLsyRSF/uOPSpapX1JJ39fS9qrHuQNEVS/upzwJL00duB02Pjhl1FECvS3vOBLTPI4U+KkH5Ln6MaOVwXav0QD99hJ1QKp31fUzUO2D7r1V1mtVGBpXSMpR+jOV9qUjTaWqXayl6i8/wmBDBqoqLPmm/YGd1lBWOj/BI9ArNioo7fl/HAb9rKZg74+sKTyooBKtWD/jSGsaKKNp+oirpjG59pf/JAV9V35eyDfbq0RVkaNGnsPV2PdIZW0lQI6zGpz1uaJO+BcIVPIJzq9zxSdIR2CVVSyk4vBX3IV8rCmibWyCvM2TosaZ2xzVuKlghbMrEwE3Y+MzXjbztCCNIAu55dvfab4IHtrQbYKNF/X7JKrZPTgEbDQS2jzuRsxpEqLFd5EMAcQG7xQ3skzkjTu7Soz/Q8/tJM2eoC+DhajDZj2KcmNJ+Y49qPhOGlJbG67DLJG1gRRPqjPY5XPBMym4BfRajFzRpaegfGaE3JKA/+areul33LsFZQWjktt3bMKRhvGBHMvCeEawIMtYpbvL7WgA+IAiq+h5JPhRbmBDSMlVL6PIXaKeljx+cVotkbynP+Xw1CUbCOqmVzlr2Vw2mbpu9uZOKwqyB9sbZT31wHdP+9yxBmO/Ivpz5VbtDY7tf9O8DgG/7iLS0EyPOhNsDEds6IF2ef3KMYse9Ecjjabe1sJ9VC3Kw5k4SpDaf1BVCf/CxP0o06fZmuOsp8S0Pjo3iDbuxGaH09ci2nZ9hXLOXIB/jms99f710X+cDh5Ceo/uY2MRfdayvbPJffbzXaDl6Jx9Lm4u5jrn/I8o3c/XPw9joJi6kq7Q+1/6XP8W/60uj13JF70Q+9jeJKZdSWx9jrtnH/DO15pxj9N5KTmyPsR8=") center / contain no-repeat; mask: url("data:image/webp;base64,UklGRvQIAABXRUJQVlA4TOgIAAAvK8FKEI8QEYrbRmFj/Ho7IIijqtHA32LhDFq2bcdtIz10RA9w/sNNdSLuu49L9RPRf1iwrcZtnrpJoq9bGhsEGPnzA9ncuO+N0+7d3Meylm+wtoJlkIYG296EhYZsWv+60RBMQ4WbEdMw0dBNe/UbDeVNsc5oGmuHYzVtJsD1r1fF6n8GrAOP9VegWBU41mAaK1y/GacsvKl+eve2jV/BTERj3derYvU/A1a4z75+VazTWQYHN1Nt68OxplfV/xmYF92rt23EXwGrH2/KJ+BCm9nvqv+qXJjaD4H1Rc0I3Ey3jXX+H+j0PN6V0/OLn5m2sbZX5fS8fqWsn58B66uayXhOz7+CMCm/X7wL03ZvinW8KtbypsKkVnhTrP1VxR2UV2VeTD8r1jc1s22bia+KtbwqZWG+KVaH58j7pliXf1Os3TRWN16VeXFz6Itz78m8KGXuOVq5orfV6fnwP9WaveboxcrA6nQI/+rwMntJnhIrh9wG7r9od2u0EsS4mSpYDi+rBtPCpBKcgWW15JiwUjAvxm/PfmqwihX0h9+dhDiH3AbuEbvduAwKk0rIK30je2NYhz8j/dxZ+MxiSphUBX+c7HsWZ0iYVFJwWBtRs9MzA1b3+OOkOCsCq5WsyHStg5PBjEyWl67xm0H+xEgzyOjCY1X09LMz/TCpqusMoLAPk0rK1tqbkGc9JH3yxVtr24inn5eZ2zYUPkxmpB0mtY7MhEkz3CjD9Y/MFJrR3EKhPyEeGWY6PQeQE2/K+RO92hOA7ig7PR+Thpg0MUyq8Ez2HOBYo2pLFL4CXxj0N1LmOPtYK9Y5JVlW7U8+TaiGSXn16spl3Azak8+MRJ2eC4GLwXbLwqSk3nhhIob1/cLDcHaZF/MN2AqwC5P6o99AxBSSrAdm4r4h31kVJtVuSKxAkTWff+6hZuhIS72ycN2gmM4iFyYZqLizRS5MacNiOoJOz2el6WWFSeoPe34Do9GbaXJWml1AvFcfWC0dGXdh13eHpHGFxRgXpnZjN2+LbcMtcFy22DauGxyd2zUaHmd1HR3TU3N6FgBpYkUK+Km932741gwpEMdtfCwhZts4JI1Oyou1HZRmqLf7pXwmbQ0oxFhPSPMUlK6c1S0V6M6I/nWrwIysnJ7dkXUrBVSXDazpVtIKK9YT0kQFg/ICcdzUgkHKhckf8skhqV1J1/1PJlMNthhwVad462nOgDCpqgn8a01wSxE8/9WQfGsCI9b0tLQmBEas7mlpVaDfr6oQ2S9I+qkKiX1JWeXWBfYxGlMZyIdJhfvmOpyW6riDyhZFtbLgpzIE7ubFcpOFV+3CLlMbPB/WE0GKRO0bVbVi5ep8ppZ6JBsj95KyfHyghZAaEFiz6jzyLCGYcZnISfrkuCBJ42E0CAdWaw4nbmxiNCK1dP+72FdSVofyOSHDmrnlOZ7BugJx4sK6+Kl1JWV1JucGUyOr5jXLyrWkLPV5pTKXmRXI5SxMtpWUVeEOeGTCpOjFMjPLuMxnXWsIl9UQtPcNL/GPZbaNBBjjSfaqTsr9K6a3q6Qs6WRi0mVQY81s8pSFmxlrnGz8TTI128ags37bmNk2Mp0sZTIVsXJI2NlQnZ4hLzhIIIRqJ6P2syAVNJUUzTApCnHElUwRemBjbFgjL9tGY5SrM9NKLZcpRVg3VTMEvOZ24FJ+V4IR6pQCrOOCy92LNkbGvFhI9ePi5E/fgbNTAKl7PJwCZHK6nkshFf7jNqWZtEmlyg1aiulhkXUkc1mc2VmojQ1P5vdxeYwx6PdcbLG9ft9a60FpSNBy6MvuKs9EG/BPC7A8oxPpqaA8OquleavEEJ1XuKgIDlUqkXVetWF7cDueyuf26yb2/jPYSPuFPA+vG+uzMbhJLeOkLJXSTuUz0XII2BpxqUxqui/4gkj12Rj8IncZEM9FuipIHaXGEqSh0IGL3nXWokJ00Ti2PIinAhMVtGNnqCaNJc/ksSHlMJR5SIeNfQUQ0lhR40VT2oc1mmgcc7SRHhnjlXOhkLAC+YF9pVHaaAqNd02QwEE6Io9t/0ECBV3BT2yzBm8kfap6+fDGkgdUFtBS7DkTVXVfawbiWPEBVZ1vEgFtNtGixQGBr90sqxsDLMNLlSHWf62q86vv32uXrupegb1UNWQBSrpsZVTXcLsyRSF/uOPSpapX1JJ39fS9qrHuQNEVS/upzwJL00duB02Pjhl1FECvS3vOBLTPI4U+KkH5Ln6MaOVwXav0QD99hJ1QKp31fUzUO2D7r1V1mtVGBpXSMpR+jOV9qUjTaWqXayl6i8/wmBDBqoqLPmm/YGd1lBWOj/BI9ArNioo7fl/HAb9rKZg74+sKTyooBKtWD/jSGsaKKNp+oirpjG59pf/JAV9V35eyDfbq0RVkaNGnsPV2PdIZW0lQI6zGpz1uaJO+BcIVPIJzq9zxSdIR2CVVSyk4vBX3IV8rCmibWyCvM2TosaZ2xzVuKlghbMrEwE3Y+MzXjbztCCNIAu55dvfab4IHtrQbYKNF/X7JKrZPTgEbDQS2jzuRsxpEqLFd5EMAcQG7xQ3skzkjTu7Soz/Q8/tJM2eoC+DhajDZj2KcmNJ+Y49qPhOGlJbG67DLJG1gRRPqjPY5XPBMym4BfRajFzRpaegfGaE3JKA/+areul33LsFZQWjktt3bMKRhvGBHMvCeEawIMtYpbvL7WgA+IAiq+h5JPhRbmBDSMlVL6PIXaKeljx+cVotkbynP+Xw1CUbCOqmVzlr2Vw2mbpu9uZOKwqyB9sbZT31wHdP+9yxBmO/Ivpz5VbtDY7tf9O8DgG/7iLS0EyPOhNsDEds6IF2ef3KMYse9Ecjjabe1sJ9VC3Kw5k4SpDaf1BVCf/CxP0o06fZmuOsp8S0Pjo3iDbuxGaH09ci2nZ9hXLOXIB/jms99f710X+cDh5Ceo/uY2MRfdayvbPJffbzXaDl6Jx9Lm4u5jrn/I8o3c/XPw9joJi6kq7Q+1/6XP8W/60uj13JF70Q+9jeJKZdSWx9jrtnH/DO15pxj9N5KTmyPsR8=") center / contain no-repeat; }
.character-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: var(--character-trigger-bg);
  color: var(--character-trigger-text);
  text-align: left;
}
.character-trigger:hover, .character-trigger[aria-expanded="true"] { background: var(--character-trigger-hover); }
.character-trigger .class-emblem { flex-shrink: 0; }
.character-trigger-copy { display: block; min-width: 0; flex: 1; }
.character-trigger-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; line-height: 1.55; }
.character-trigger-copy small { display: flex; align-items: baseline; gap: 4px; min-width: 0; color: var(--character-trigger-muted); font-size: 9px; line-height: 1.6; }
.character-trigger-class { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-trigger-gs { flex-shrink: 0; white-space: nowrap; }
.character-trigger-chevron { color: var(--character-trigger-text); transition: transform .16s ease; }
.character-trigger[aria-expanded="true"] .character-trigger-chevron { transform: rotate(180deg); }
.character-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100dvh - var(--app-header-height) - 24px));
  overflow: hidden;
  padding: 7px;
  border-radius: 13px;
  background: var(--surface-raised);
  box-shadow: 0 16px 50px #050b1455;
}
.character-popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 7px 12px 10px; }
.character-popover-heading h2 { margin: 0; color: var(--text); font-size: 14px; line-height: 1.4; font-weight: 800; letter-spacing: -.2px; }
.character-popover-close { display: grid; place-items: center; border: 0; background: transparent; padding: 7px; color: var(--quiet); border-radius: 7px; }
.character-popover-close:hover { background: var(--surface-hover); color: var(--text); }
.character-popover .character-list {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  min-height: 0;
  gap: 6px;
  width: 100%;
  padding: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.character-popover .character-item { flex: 0 0 auto; width: 100%; max-width: none; min-height: 58px; padding: 7px; border: 0; border-radius: 8px; background: var(--surface); }
.character-popover .character-item.active { background: var(--selection); box-shadow: inset 3px 0 0 var(--accent); }
.character-popover .character-copy strong { font-size: 12px; }
.character-popover .character-copy small { font-size: 10px; }
.character-popover .character-class { min-width: 34px; min-height: 36px; }
.character-popover .character-select { min-height: 40px; }
.character-popover .character-tool { min-width: 34px; min-height: 36px; }
.character-popover-footer { padding: 10px 2px 2px; }
.character-popover .add-character { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; margin: 0; padding: 10px; border: 0; border-radius: 8px; background: var(--surface); font-size: 11px; font-weight: 700; }
.character-popover .add-character:hover { background: var(--selection); }
.character-popover .is-locked :is(.character-class,.character-select) { filter: grayscale(1); color: var(--quiet); }
.character-popover .add-character.is-locked { color: var(--quiet); }
.view-toolbar { margin-top: 18px; }
@media (max-width: 1050px) {
  .character-switcher { flex-basis: 226px; }
}
@media (max-width: 800px) {
  .character-switcher { min-width: 140px; }
  .character-trigger { gap: 7px; padding: 7px 9px; }
}
@media (max-width: 760px) {
  .site-header .header-inner { gap: 8px; flex-wrap: wrap; padding: 11px 0; min-height: unset; }
  .site-header .brand { order: 0; }
  .site-header .brand-logo { width: 55px; height: 44px; }
  .site-header .brand-separator { display: none; }
  .site-header .brand-game { display: none; }
  .site-header .character-switcher { position: static; order: 1; flex: 1 1 0; min-width: 0; max-width: none; margin-left: 0; }
  .site-header .language-switch { order: 2; padding: 2px; gap: 1px; }
  .site-header .language-switch button { width: 27px; height: 28px; font-size: 8px; }
  .site-header .theme-toggle { order: 3; width: 34px; height: 34px; }
  .site-header .header-actions { display: flex; align-items: center; order: 2; gap: 8px; flex: 0 0 auto; }
  .character-trigger { min-height: 44px; gap: 6px; padding: 5px 7px; border-radius: 8px; }
  .character-trigger .class-emblem { width: 23px; height: 23px; }
  .character-trigger-copy strong { font-size: 11px; }
  .character-trigger-copy small { font-size: 8px; gap: 3px; }
  .character-trigger-chevron { width: 12px; height: 12px; }
  .character-popover { top: calc(100% + 8px); left: 14px; right: 14px; width: auto; max-width: none; }
  .character-popover .character-item { padding: 6px; }
  .character-popover .character-copy strong { font-size: 12px; }
  .character-popover .character-copy small { font-size: 9px; }
  .character-popover .character-tool, .character-popover .character-class { min-width: 36px; }
  .view-toolbar { margin-top: 12px; }
}
@media (pointer: coarse) {
  .character-popover-close, .character-popover .character-tool, .character-popover .character-class, .character-popover .character-select, .character-popover .add-character { min-height: 44px; }
  .character-popover-close, .character-popover .character-tool, .character-popover .character-class { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .character-trigger-chevron { transition: none; }
}

/* Compact mobile header: one row, with a class-only fallback. */
@media(max-width:760px) {
  .site-header .header-inner { flex-wrap: nowrap; gap: 6px; padding: 8px 0; min-height: 56px; }
  .site-header .brand { flex: 0 0 auto; }
  .site-header .brand-logo { width: 45px; height: 36px; }
  .site-header .character-switcher { flex: 1 1 150px; min-width: 38px; max-width: 180px; margin-left: auto; container: character-nav / inline-size; }
  .site-header .header-actions { flex: 0 0 auto; gap: 4px; }
  .character-trigger { min-height: 38px; height: 38px; padding: 5px; gap: 6px; }
  .character-trigger-copy small, .character-trigger-chevron { display: none; }
  .character-trigger-copy strong { font-size: 11px; }
  .character-trigger .class-emblem { width: 24px; height: 24px; }
  .character-popover { left: auto; right: 14px; width: min(340px,calc(100% - 28px)); max-width: none; }
}
@container character-nav (max-width:80px) {
  .character-trigger-copy { display: none; }
  .character-trigger { justify-content: center; }
}
@media(max-width:520px) {
  .site-header .brand-logo { width: 40px; height: 34px; }
  .site-header .character-switcher { flex-basis: 112px; max-width: 112px; }
  .site-header .header-actions { flex: 0 0 auto; gap: 4px; }
  .site-header .theme-toggle { width: 30px; height: 34px; }
  .site-header .theme-toggle svg { width: 18px; height: 18px; }
  .site-header .language-switch button { width: 23px; height: 28px; }
}

/* Three compositions, one set of accessible interactive wheels. */
.pet-wheels {
  --pw-bg: #0d1828;
  --pw-panel: #142239;
  --pw-panel-hi: #1d3150;
  --pw-ink: #edf4ff;
  --pw-copy: #c3d2e8;
  --pw-muted: #a6bad7;
  --pw-blue: #9fc7ff;
  --pw-line: #345078;
  --pw-node: #1d3455;
  color: var(--pw-ink);
  margin-top: 12px;
  font-size: 12px;
}
[data-theme="light"] .pet-wheels {
  --pw-bg: #eef3fc;
  --pw-panel: #e6eefb;
  --pw-panel-hi: #d6e4f8;
  --pw-ink: #173255;
  --pw-copy: #405b80;
  --pw-muted: #4b6589;
  --pw-blue: #285ea9;
  --pw-line: #a9c0df;
  --pw-node: #dbe7f9;
}
.pet-wheels button, .pet-wheels select { font: inherit; cursor: pointer; }
.pet-wheels button { color: inherit; border: 0; }
.pet-wheels button:focus-visible, .pet-wheels select:focus-visible { outline: 2px solid var(--pw-blue); outline-offset: 4px; }
.pw-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px 0 26px; }
.pw-kicker { display: flex; align-items: center; gap: 10px; color: var(--pw-muted); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.pw-kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--pw-blue); }
.pw-heading h2 { margin: 14px 0 10px; font-size: clamp(27px,3vw,34px); line-height: 1.2; letter-spacing: -1.4px; }
.pw-heading h2>span { margin-left: 12px; font-weight: 500; color: var(--pw-blue); }
.pw-heading p { margin: 0; color: var(--pw-copy); font-size: var(--ui-copy-size); line-height: 1.7; }
.pw-context-facts { display: flex; gap: 23px; flex-shrink: 0; padding-left: 26px; border-left: 1px solid var(--pw-line); }
.pw-context-facts>span { display: grid; gap: 6px; color: var(--pw-muted); font-size: var(--ui-caption-size); white-space: nowrap; }
.pw-context-facts b { font-size: 28px; letter-spacing: -1px; color: var(--pw-ink); line-height: 1; }
.pw-review { display: flex; gap: 8px; margin-bottom: 14px; }
.pw-review button { padding: 8px 12px; border-radius: 7px; background: var(--pw-panel); color: var(--pw-copy); font-size: var(--ui-detail-size); }
.pw-review button[aria-pressed="true"] { color: var(--pw-ink); background: var(--pw-panel-hi); box-shadow: inset 0 -2px var(--pw-blue); }
.pw-class-bar { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 6px; padding: 6px; background: var(--pw-bg); border-radius: 11px; }
.pw-class-bar button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 45px; padding: 7px 8px; border-radius: 7px; background: transparent; color: var(--pw-copy); font-size: 10px; font-weight: 700; }
.pw-class-bar button img { object-fit: contain; width: 25px; height: 25px; }
.pw-class-bar button:hover { background: var(--pw-panel); }
.pw-class-bar button[aria-pressed="true"] { color: var(--pw-ink); background: var(--pw-panel-hi); box-shadow: inset 0 -2px var(--pw-blue); }
.pw-class-context { display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 10px; background: var(--pw-bg); }
.pw-class-context>img { object-fit: contain; flex-shrink: 0; }
.pw-class-context>div { min-width: 0; }
.pw-character small { display: block; color: var(--pw-muted); font-size: var(--ui-caption-size); letter-spacing: 1.3px; margin-bottom: 4px; }
.pw-character strong { display: block; color: var(--pw-ink); font-size: var(--ui-label-size); overflow-wrap: anywhere; }
.pw-character strong>span { color: var(--pw-copy); font-weight: 500; }
.pw-modes { display: flex; gap: 3px; padding: 3px; background: var(--pw-bg); border-radius: 8px; }
.pw-modes button { min-height: 33px; padding: 7px 12px; background: transparent; border-radius: 6px; font-size: var(--ui-copy-size); font-weight: 800; color: var(--pw-copy); }
.pw-modes button[aria-pressed="true"] { background: var(--pw-panel-hi); color: var(--pw-ink); }
.pw-total { display: flex; align-items: baseline; flex:none; gap: 8px; margin-left: auto; font-size: var(--ui-detail-size); color: var(--pw-copy); }
.pw-total strong { font-size: 18px; color: var(--pw-blue); }
.pw-total strong span { font-size: var(--ui-detail-size); font-weight: 500; color: var(--pw-muted); }
.pw-class-note { display: flex; align-items: baseline; gap: 12px; margin: 0 0 17px; font-size: var(--ui-copy-size); line-height: 1.8; color: var(--pw-muted); min-height: 20px; }
.pw-class-note strong { color: var(--pw-copy); white-space: nowrap; }
.pw-orbit-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 18px; }
.pw-display { scroll-margin-top: calc(var(--app-header-height) + 22px); }
.pw-cosmos { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 24px 16px 19px; border-radius: 16px; background: radial-gradient(ellipse at 50% 46%,#254f8d24,transparent 63%),var(--pw-bg); container: pw-stage / inline-size; }
.pw-cosmos::before, .pw-gallery::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(#a5c8ff 0.6px,transparent .9px); background-size: 67px 73px; mask-image: linear-gradient(90deg,transparent,#000,transparent); }
.pw-cosmos-label { display: flex; justify-content: space-between; width: 100%; padding: 0 8px; color: var(--pw-muted); letter-spacing: 1.4px; font-size: var(--ui-caption-size); }
.pw-wheel { --pw-orbit-gutter: 32px; position: relative; width: min(calc(100% - var(--pw-orbit-gutter) * 2),510px); aspect-ratio: 1; flex-shrink: 0; isolation: isolate; margin: calc(var(--pw-orbit-gutter) + 3px) auto; scroll-margin-top: calc(var(--app-header-height) + 24px); }
.pw-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--pw-line); stroke-width: 1; pointer-events: none; }
/* Reserve a separate outer orbit so its arc stays beyond the slot captions. */
.pw-rings-outer { inset: calc(0px - var(--pw-orbit-gutter)); width: calc(100% + var(--pw-orbit-gutter) * 2); height: calc(100% + var(--pw-orbit-gutter) * 2); }
.pw-ring-outer { stroke-opacity: .6; }
.pw-ring-dashes { stroke-dasharray: 1 7; stroke-width: 3; stroke-opacity: .5; }
.pw-ring-track { stroke-width: 1.5; }
.pw-ring-middle { stroke-dasharray: 2 8; stroke-opacity: .55; }
.pw-ring-inner { stroke-opacity: .8; stroke-width: 1.5; }
.pw-rings path { stroke-opacity: .35; }
.pw-rings path.selected { stroke: var(--pw-blue); stroke-opacity: 1; stroke-width: 2; }
/* A shared clock keeps decorative motion continuous through content updates. */
.pw-rings path.pw-orbit-arc { stroke: var(--pw-blue); stroke-opacity: 1; stroke-width: 2.5; stroke-linecap: round; transform-box: view-box; transform-origin: 50% 50%; animation: pw-orbit-turn 32s linear infinite; animation-delay: var(--pw-orbit-delay,0ms); }
.pw-orbital-haze { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(#6b9fff18,transparent 65%); animation: pw-breathe 8s ease-in-out infinite alternate; animation-delay: var(--pw-haze-delay,0ms); }
.pw-core { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: radial-gradient(circle at 50% 35%,var(--pw-panel-hi),var(--pw-bg) 75%); box-shadow: inset 0 0 32px #8ab9ff0c,0 0 50px #2c59a013; pointer-events: none; }
.pw-core-glyph { color: var(--pw-blue); font-size: 37px; line-height: 1; margin: 0 0 7px; text-shadow: 0 0 28px #8ab9ff44; }
.pw-core strong { font-size: 17px; letter-spacing: -.4px; }
.pw-core small { color: var(--pw-muted); letter-spacing: 1.6px; font-size: 9px; margin-top: 5px; text-transform: uppercase; }
.pw-core-progress { font-size: 13px; font-weight: 800; margin-top: 11px; color: var(--pw-blue); }
.pw-core-progress i { font-style: normal; color: var(--pw-muted); font-size: var(--ui-caption-size); font-weight: 400; margin-left: 3px; }
.pw-node { position: absolute; left: var(--nx); top: var(--ny); width: 74px; height: 58px; padding: 0; transform: translate(-50%,-50%); background: transparent; z-index: 2; }
.pw-node-disc { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: auto; border-radius: 50%; background: var(--pw-node); box-shadow: 0 0 0 5px var(--pw-bg),inset 0 0 0 1px #8ab9ff15; color: var(--pw-copy); transition: transform .2s ease,background .2s ease,box-shadow .2s ease; }
.pw-node-disc small { position: absolute; top: -5px; right: -2px; font-size: 9px; letter-spacing: .4px; background: var(--pw-bg); border-radius: 5px; padding: 2px 4px; color: var(--pw-copy); }
.pw-node-caption { display: block; font-size: var(--ui-caption-size); line-height: 1.3; width: 104px; margin: 7px 0 0 -15px; color: var(--pw-muted); white-space: nowrap; }
.pw-node:hover .pw-node-disc { transform: scale(1.08); background: var(--pw-panel-hi); color: var(--pw-ink); }
.pw-node.selected .pw-node-disc, .pw-node.route-pulse .pw-node-disc { background: var(--action); color: #fff; box-shadow: 0 0 0 5px var(--pw-bg),0 0 0 6px var(--accent),0 0 35px color-mix(in srgb,var(--accent) 33%,transparent); }
.pw-node.selected .pw-node-caption { color: var(--pw-blue); font-weight: 800; }
.pw-node.prime:not(.selected) .pw-node-disc { box-shadow: 0 0 0 5px var(--pw-bg),0 0 0 6px #739bdb99; color: var(--pw-blue); }
.pw-node.finished:not(.selected) .pw-node-disc { color: var(--pw-blue); background: var(--pw-panel-hi); }
.pw-node.route-pulse { animation: pw-node-pulse .44s ease; }
.pw-wheel-hint { display: flex; align-items: center; gap: 8px; font-size: var(--ui-detail-size); color: var(--pw-muted); margin-top: 6px; }
.pw-wheel-hint i { width: 4px; height: 4px; background: var(--pw-blue); border-radius: 50%; }
.pw-detail { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px 25px; border-radius: 16px; background: linear-gradient(145deg,var(--pw-panel-hi),var(--pw-panel) 62%); }
.pw-detail-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; width: 100%; color: var(--pw-copy); font-size: var(--ui-caption-size); letter-spacing: .5px; }
.pw-slot-meta { display:flex; flex:1 1 160px; flex-wrap:wrap; align-items:center; gap:6px 10px; min-width:0; }
.pw-detail-top>.pw-modes { margin-left:auto; flex:none; white-space:nowrap; }
.pw-detail-top b { font-weight: 400; margin: 0 3px; opacity: .5; }
.pw-priority { color: var(--pw-blue); font-size: 9px; letter-spacing: .8px; white-space: nowrap; }
.pw-stat-symbol { display: grid; place-items: center; color: var(--pw-blue); background: #729fff15; border-radius: 11px; width: 46px; height: 46px; margin: 26px 0 20px; }
.pw-stat-symbol svg { width: 25px; height: 25px; }
.pw-eyebrow { display: block; color: var(--pw-muted); font-size: var(--ui-caption-size); font-weight: 800; letter-spacing: 1.6px; }
.pw-detail h3 { margin: 9px 0 5px; font-size: 25px; line-height: 1.25; letter-spacing: -.8px; max-width: 330px; }
.pw-stat-english { color: var(--pw-muted); font-size: var(--ui-detail-size); margin: 0; }
.pw-target-value { display: flex; align-items: center; gap: 12px; color: var(--pw-blue); font-size: 44px; letter-spacing: -1.8px; line-height: 1; font-weight: 800; margin: 23px 0 16px; }
.pw-target-value small { color: var(--pw-muted); font-size: var(--ui-caption-size); letter-spacing: 0; font-weight: 500; max-width: 90px; line-height: 1.6; }
.pw-stat-reason { margin: 0 0 19px; font-size: var(--ui-copy-size); line-height: 1.8; color: var(--pw-copy); min-height: 40px; }
.pw-mark { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 43px; border-radius: 8px; background: var(--action); color: #fff !important; font-size: var(--ui-copy-size) !important; font-weight: 700 !important; transition: background .2s ease; }
.pw-mark:hover { background: var(--action-hover); }
.pw-mark.is-marked { background: var(--selection); color: var(--selection-text) !important; }
.pw-alternatives { margin-top: 24px; padding-top: 19px; width: 100%; border-top: 1px solid var(--pw-line); }
.pw-alternatives h4 { margin: 0 0 4px; font-size: var(--ui-label-size); }
.pw-alternatives>p { margin: 0 0 10px; color: var(--pw-muted); font-size: var(--ui-detail-size); line-height: 1.6; }
.pw-alternatives>div { display: flex; gap: 5px; flex-wrap: wrap; }
.pw-alternatives button { padding: 7px 9px; min-height: 33px; border-radius: 6px; background: var(--pw-bg); color: var(--pw-copy); font-size: 9px; }
.pw-alternatives button span { margin-left: 4px; color: var(--pw-blue); }
.pw-alternatives button[aria-pressed="true"] { background: var(--pw-node); color: var(--pw-ink); box-shadow: inset 0 -1px var(--pw-blue); }
.pw-genera { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.pw-genus { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 14px 13px; border-radius: 10px; text-align: left; background: var(--pw-bg); }
.pw-genus:hover { background: var(--pw-panel); }
.pw-genus.active { background: var(--pw-panel-hi); box-shadow: inset 0 -2px var(--pw-blue); }
.pw-genus-glyph { font-size: 24px; line-height: 1; color: var(--pw-blue); width: 28px; text-align: center; }
.pw-genus>span:nth-child(2) { min-width: 0; }
.pw-genus strong { display: block; font-size: var(--ui-copy-size); }
.pw-genus small { display: block; color: var(--pw-muted); font-size: var(--ui-caption-size); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-genus>b { font-size: 12px; margin-left: auto; color: var(--pw-blue); }
.pw-genus>b i { font-style: normal; color: var(--pw-muted); font-size: var(--ui-caption-size); font-weight: 500; }
.pw-roll-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--pw-bg); }
.pw-constellation>.pw-roll-order { grid-column:1/-1; margin-top:0; }
.pw-roll-order h3 { margin: 0; font-size: 13px; letter-spacing: -.2px; }
.pw-order-steps { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; color: var(--pw-copy); font-size: 11px; white-space: nowrap; }
.pw-order-steps b:first-child { color: var(--pw-blue); background: var(--pw-panel-hi); padding: 9px 11px; border-radius: 7px; }
.pw-order-steps>span { color: var(--pw-muted); }
.pw-roll-order>button { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pw-blue); background: var(--pw-panel); border-radius: 7px; padding: 10px 12px; min-height: 38px; }
.pw-roll-order>button svg { width: 14px; height: 14px; }
.pw-notes { margin-top: 15px; color: var(--pw-muted); font-size: 10px; }
.pw-notes summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; cursor: pointer; color: var(--pw-copy); list-style: none; }
.pw-notes summary::-webkit-details-marker { display: none; }
.pw-notes>div { padding: 10px 22px 22px; border-radius: 10px; background: var(--pw-bg); line-height: 1.9; }
.pw-notes a { color: var(--pw-blue); }
.pw-notes ul { padding-left: 17px; }
.pw-notes small { font-size: 9px; }
/* 02 / Five full wheels, laid out as a constellation. */
.pw-constellation { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.pw-star-card { min-width: 0; border-radius: 13px; padding: 13px 6px 8px; background: var(--pw-bg); }
.pw-star-card.active { background: linear-gradient(var(--pw-panel-hi),var(--pw-bg)); box-shadow: inset 0 2px var(--pw-blue); }
.pw-star-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; }
.pw-star-card-head h3 { margin: 0; font-size: 12px; }
.pw-star-card-head small { font-size: 7px; letter-spacing: .8px; color: var(--pw-muted); }
.pw-wheel.compact { width: 100%; margin: 3px auto; }
.pw-wheel.compact .pw-rings-outer { inset: 0; width: 100%; height: 100%; }
.pw-wheel.compact .pw-node { width: 35px; height: 35px; }
.pw-wheel.compact .pw-node-disc { width: 30px; height: 30px; box-shadow: 0 0 0 3px var(--pw-bg); }
.pw-wheel.compact .pw-node-disc svg { width: 12px; height: 12px; }
.pw-wheel.compact .pw-node-disc small { font-size: 6px; padding: 1px 3px; right: -3px; }
.pw-wheel.compact .pw-node-caption { display: none; }
.pw-wheel.compact .pw-node.selected .pw-node-disc { background: var(--action); color: #fff; box-shadow: 0 0 0 3px var(--pw-bg),0 0 0 4px var(--accent),0 0 20px color-mix(in srgb,var(--accent) 33%,transparent); }
.pw-wheel.compact .pw-core-glyph { font-size: 25px; margin-bottom: 2px; }
.pw-wheel.compact .pw-core strong { display: none; }
.pw-wheel.compact .pw-core small { display: none; }
.pw-wheel.compact .pw-core-progress { font-size: 10px; margin-top: 0; }
.pw-wheel.compact .pw-core-progress i { font-size: 7px; }
.pw-star-target { display: flex; align-items: center; gap: 5px; padding: 9px 7px; border-radius: 7px; width: 100%; text-align: left; background: var(--pw-panel); color: var(--pw-copy); font-size: 10px; }
.pw-star-target svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--pw-blue); }
.pw-star-target b { margin-left: auto; color: var(--pw-blue); font-size: 11px; }
.pw-constellation+.pw-detail { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(170px,.85fr) minmax(220px,1.1fr); gap: 10px 30px; margin-top: 15px; padding: 23px 26px; align-items: start; }
.pw-constellation+.pw-detail .pw-detail-top { grid-column: 1/-1; }
.pw-constellation+.pw-detail .pw-eyebrow { grid-row: 2; grid-column: 1; margin-top: 15px; }
.pw-constellation+.pw-detail h3 { grid-column: 1; grid-row: 3; margin: 0; font-size: 24px; }
.pw-constellation+.pw-detail .pw-stat-english { grid-column: 1; grid-row: 4; }
.pw-constellation+.pw-detail .pw-target-value { grid-column: 2; grid-row: 2/4; margin: 16px 0 0; }
.pw-constellation+.pw-detail .pw-stat-reason { grid-column: 1/3; grid-row: 5; margin: 0; min-height: 0; }
.pw-constellation+.pw-detail .pw-mark { grid-column: 3; grid-row: 2/4; margin-top: 8px; }
.pw-constellation+.pw-detail .pw-alternatives { grid-column: 3; grid-row: 4/6; margin: 0; padding-top: 12px; }
.pw-constellation+.pw-detail .pw-alternatives>p { display: none; }
/* 03 / An instrument gallery with the active seal enlarged. */
.pw-gallery { position: relative; border-radius: 15px; overflow: hidden; padding: 20px 20px 15px; background: radial-gradient(ellipse at 50% 45%,#375b9c24,transparent 65%),var(--pw-bg); }
.pw-gallery-caption { display: flex; align-items: baseline; justify-content: center; gap: 15px; position: relative; z-index: 1; }
.pw-gallery-caption>span { font-size: 10px; color: var(--pw-muted); letter-spacing: 1.8px; }
.pw-gallery-caption>strong { font-size: 20px; letter-spacing: -.5px; }
.pw-gallery-caption>small { font-size: 10px; color: var(--pw-muted); }
.pw-gallery-track { display: grid; grid-template-columns: .8fr .9fr 2.5fr .9fr .8fr; align-items: center; gap: 5px; margin-top: 4px; }
.pw-gallery-main { min-width: 0; }
.pw-gallery-main .pw-wheel { width: calc(100% - 64px); max-width: 440px; }
.pw-gallery-side { background: transparent; padding: 0; text-align: center; min-width: 0; color: var(--pw-copy); transform: translateY(15px); opacity: .75; transition: transform .25s,opacity .25s; }
.pw-gallery-side.offset-2 { opacity: .4; transform: scale(.9) translateY(23px); }
.pw-gallery-side:hover { opacity: 1; transform: translateY(7px); }
.pw-gallery-side strong { display: block; font-size: 12px; }
.pw-gallery-side small { display: block; color: var(--pw-muted); font-size: 10px; margin-top: 6px; line-height: 1.7; }
.pw-mini { display: block; width: 100%; height: auto; stroke: var(--pw-line); fill: none; stroke-width: 1; }
.pw-mini path { stroke-opacity: .45; }
.pw-mini circle { fill: var(--pw-panel-hi); stroke: var(--pw-blue); }
.pw-mini circle.pw-mini-orbit { fill: none; stroke: var(--pw-line); }
.pw-mini circle.pw-mini-inner { fill: none; stroke: var(--pw-line); stroke-dasharray: 1 6; }
.pw-mini circle.prime, .pw-mini circle.finished { fill: var(--pw-blue); }
.pw-mini text { fill: var(--pw-blue); stroke: none; font-size: 39px; }
.pw-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 25px; position: relative; }
.pw-gallery-controls>button { background: var(--pw-panel-hi); border-radius: 50%; width: 34px; height: 34px; color: var(--pw-blue); }
.pw-gallery-controls>span { display: flex; gap: 3px; }
.pw-gallery-controls>span button { display: grid; place-items: center; width: 24px; height: 27px; background: transparent; }
.pw-gallery-controls i { width: 4px; height: 4px; border-radius: 50%; background: var(--pw-muted); transition: width .2s; }
.pw-gallery-controls [aria-pressed="true"] i { width: 18px; background: var(--pw-blue); border-radius: 3px; }
.pw-gallery+.pw-detail { margin-top: 15px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(220px,1fr); gap: 5px 25px; }
.pw-gallery+.pw-detail .pw-detail-top { grid-column: 1/-1; }
.pw-gallery+.pw-detail .pw-eyebrow { grid-column: 1; grid-row: 2; margin-top: 18px; }
.pw-gallery+.pw-detail h3 { grid-column: 1; grid-row: 3; margin: 4px 0; font-size: 23px; }
.pw-gallery+.pw-detail .pw-stat-english { grid-column: 1; grid-row: 4; }
.pw-gallery+.pw-detail .pw-target-value { grid-column: 2; grid-row: 2/4; margin: 17px 0 0; }
.pw-gallery+.pw-detail .pw-stat-reason { grid-column: 2; grid-row: 4/7; margin: 5px 0 0; }
.pw-gallery+.pw-detail .pw-mark { grid-column: 3; grid-row: 2/4; margin-top: 17px; }
.pw-gallery+.pw-detail .pw-alternatives { grid-column: 3; grid-row: 4/7; margin-top: 10px; padding-top: 10px; }
.pw-gallery+.pw-detail .pw-alternatives>p { display: none; }
@keyframes pw-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-orbit-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pw-breathe { from { opacity: .55; } to { opacity: 1; } }
@keyframes pw-node-pulse { 50% { scale: 1.12; } }
@media (max-width:1050px) {
  .pw-heading { align-items: flex-start; }
  .pw-heading h2>span { display: block; margin: 6px 0 0; font-size: .8em; }
  .pw-context-facts { gap: 17px; margin-top: 5px; }
  .pw-class-bar button { flex-direction: column; gap: 3px; font-size: 9px; }
  .pw-orbit-layout { grid-template-columns: minmax(0,1.3fr) minmax(270px,1fr); gap: 12px; }
  .pw-detail { padding: 20px; }
  .pw-detail h3 { font-size: 23px; }
  .pw-stat-symbol { margin: 21px 0 17px; }
  .pw-cosmos { padding: 20px 10px; }
  .pw-node-disc { width: 46px; height: 46px; }
  .pw-node-caption { font-size: var(--ui-caption-size); }
  .pw-core strong { font-size: 14px; }
  .pw-core-glyph { font-size: 30px; }
  .pw-core-progress { margin-top: 7px; }
  .pw-core small { letter-spacing: .6px; }
  .pw-genus { padding: 13px 8px; gap: 6px; }
  .pw-genus-glyph { font-size: 19px; width: 20px; }
  .pw-genus strong { font-size: var(--ui-copy-size); }
  .pw-genus small { font-size: var(--ui-caption-size); }
  .pw-roll-order>button { margin-left: auto; }
  .pw-constellation { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pw-constellation .pw-star-card:nth-child(4), .pw-constellation .pw-star-card:nth-child(5) { transform: translateX(50%); }
  .pw-gallery-track { grid-template-columns: .5fr .8fr 2.7fr .8fr .5fr; }
  .pw-gallery-side.offset-2 small { display: none; }
}
@media (max-width:760px) {
  .pw-heading { padding-top: 16px; gap: 10px; }
  .pw-heading h2 { font-size: clamp(27px,3vw,34px); letter-spacing: -1px; }
  .pw-heading p { max-width: 350px; font-size: var(--ui-copy-size); }
  .pw-context-facts>span { min-width: 44px; font-size: var(--ui-caption-size); gap: 4px; }
  .pw-context-facts b { font-size: 22px; }
  .pw-kicker { font-size: 10px; letter-spacing: 1.1px; }
  .pw-class-bar { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .pw-class-bar button { flex-direction: row; font-size: 9px; }
  .pw-class-bar button img { width: 21px; height: 23px; }
  .pw-total { font-size: var(--ui-detail-size); }
  .pw-class-note { align-items: flex-start; gap: 8px; font-size: var(--ui-copy-size); }
  .pw-class-note strong { padding-top: 1px; }
  .pw-orbit-layout { grid-template-columns: 1fr; }
  .pw-cosmos { padding: 18px 12px; }
  .pw-wheel { width: min(calc(100% - var(--pw-orbit-gutter) * 2),470px); }
  .pw-wheel.compact { width: 100%; }
  .pw-node-disc { width: 50px; height: 50px; }
  .pw-node-caption { font-size: var(--ui-caption-size); }
  .pw-core strong { font-size: 16px; }
  .pw-core-glyph { font-size: 33px; }
  .pw-genera { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pw-genus { padding: 13px 10px; }
  .pw-genus strong { font-size: var(--ui-copy-size); }
  .pw-genus small { font-size: var(--ui-caption-size); }
  .pw-roll-order { padding: 14px; }
  .pw-order-steps { gap: 9px; font-size: 11px; flex-basis: 100%; justify-content: space-between; }
  .pw-roll-order>button { margin-left: 0; }
  .pw-constellation { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .pw-constellation .pw-star-card:nth-child(4) { transform: none; }
  .pw-constellation .pw-star-card:nth-child(5) { transform: translateX(50%); }
  .pw-constellation+.pw-detail, .pw-gallery+.pw-detail { display: flex; padding: 22px; gap: 0; }
  .pw-constellation+.pw-detail .pw-eyebrow, .pw-gallery+.pw-detail .pw-eyebrow { margin-top: 24px; }
  .pw-constellation+.pw-detail h3, .pw-gallery+.pw-detail h3 { margin: 9px 0 5px; }
  .pw-constellation+.pw-detail .pw-target-value, .pw-gallery+.pw-detail .pw-target-value { margin: 22px 0 17px; }
  .pw-constellation+.pw-detail .pw-stat-reason, .pw-gallery+.pw-detail .pw-stat-reason { margin: 0 0 20px; }
  .pw-constellation+.pw-detail .pw-mark, .pw-gallery+.pw-detail .pw-mark { margin: 0; }
  .pw-constellation+.pw-detail .pw-alternatives, .pw-gallery+.pw-detail .pw-alternatives { margin-top: 22px; padding-top: 18px; }
  .pw-gallery { padding: 20px 8px 15px; }
  .pw-gallery-track { grid-template-columns: .4fr 2.7fr .4fr; gap: 0; }
  .pw-gallery-side.offset-2 { display: none; }
  .pw-gallery-side { transform: none; }
  .pw-gallery-side strong { font-size: 12px; writing-mode: vertical-rl; margin: 15px auto 0; letter-spacing: 2px; }
  .pw-gallery-side small { display: none; }
  .pw-gallery-side .pw-mini { display: none; }
  .pw-gallery-side { min-height: 100px; border-radius: 30px; background: var(--pw-panel); }
  .pw-gallery-caption { gap: 10px; }
  .pw-gallery-caption>span { font-size: 10px; letter-spacing: 1px; }
  .pw-gallery-caption>strong { font-size: 17px; }
  .pw-gallery .pw-node-caption { display: none; }
  .pw-gallery-main .pw-wheel { width: 100%; margin: 3px auto; }
  .pw-gallery-main .pw-rings-outer { inset: 0; width: 100%; height: 100%; }
}
@container pw-stage (max-width:400px) {
  .pw-wheel { --pw-orbit-gutter: 44px; }
}
@media (max-width:400px) {
  .pw-cosmos .pw-wheel { --pw-orbit-gutter: 24px; }
  .pw-heading h2 { font-size: clamp(27px,3vw,34px); }
  .pw-heading p { max-width: 220px; }
  .pw-review { gap: 4px; }
  .pw-review button { font-size: var(--ui-detail-size); padding: 8px; }
  .pw-class-bar { padding: 4px; gap: 3px; }
  .pw-class-bar button { flex-direction: column; gap: 2px; min-height: 48px; padding: 4px 0; font-size: 8px; }
  .pw-modes button { padding: 7px 9px; }
  .pw-total { gap: 5px; }
  .pw-total strong { font-size: 16px; }
  .pw-cosmos { padding: 16px 5px; }
  .pw-cosmos-label { font-size: var(--ui-caption-size); }
  .pw-node { width: 50px; height: 45px; }
  .pw-node-disc { width: 42px; height: 42px; }
  .pw-node-disc svg { width: 17px; height: 17px; }
  .pw-node-caption { display: none; }
  .pw-core-glyph { font-size: 25px; margin-bottom: 5px; }
  .pw-core strong { font-size: 12px; }
  .pw-core small { font-size: 9px; letter-spacing: .4px; }
  .pw-core-progress { margin-top: 5px; font-size: 10px; }
  .pw-core-progress i { font-size: var(--ui-caption-size); }
  .pw-wheel-hint { font-size: var(--ui-detail-size); }
  .pw-detail { padding: 20px; }
  .pw-genus { padding: 11px 8px; gap: 5px; }
  .pw-genus-glyph { display: none; }
  .pw-genus strong { font-size: var(--ui-copy-size); }
  .pw-genus small { font-size: var(--ui-caption-size); }
  .pw-genus>b { font-size: 12px; }
  .pw-order-steps { gap: 4px; font-size: 11px; }
  .pw-order-steps b:first-child { padding: 8px; }
  .pw-roll-order { padding: 13px; }
  .pw-order-steps { gap:4px; font-size:var(--ui-caption-size); }
  .pw-order-steps b:first-child { padding:6px; }
  .pw-roll-order h3 { font-size: 13px; }
  .pw-star-card { padding: 11px 2px 6px; }
  .pw-star-card-head { padding: 0 6px; }
  .pw-star-card-head h3 { font-size: 12px; }
  .pw-star-card-head small { font-size: 6px; }
  .pw-wheel.compact .pw-node { width: 28px; height: 28px; }
  .pw-wheel.compact .pw-node-disc { width: 23px; height: 23px; }
  .pw-wheel.compact .pw-node-disc svg { width: 10px; height: 10px; }
  .pw-wheel.compact .pw-node-disc small { font-size: 5px; right: -4px; top: -5px; }
  .pw-wheel.compact .pw-core-glyph { font-size: 19px; }
  .pw-wheel.compact .pw-core-progress { font-size: 8px; }
  .pw-star-target { padding: 8px 5px; font-size: 10px; gap: 3px; }
  .pw-star-target svg { display: none; }
  .pw-star-target b { font-size: 10px; }
  .pw-gallery-track { display: block; }
  .pw-gallery-side { display: none; }
  .pw-gallery-main .pw-node-disc { width: 42px; height: 42px; }
  .pw-gallery .pw-core { width: 36%; }
  .pw-gallery .pw-core strong { font-size: 10px; }
  .pw-gallery .pw-core small { display: none; }
}
@media (max-width:480px) {
  .view-tabs { width: 100%; gap: 4px; }
  .view-tabs .view-tab { padding: 10px 8px; font-size: 10px; flex: 1 1 auto; text-align: center; }
  .view-tabs .tab-count { display: none; }
}
@media (pointer:coarse) {
  .pw-node { min-width: 44px; min-height: 44px; }
  .pw-wheel.compact .pw-node { min-width: 28px; min-height: 28px; }
  .pw-class-bar button, .pw-mark, .pw-genus, .pw-alternatives button { min-height: 44px; }
  .pw-gallery-controls>button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .pet-wheels *, .pet-wheels *::before { animation: none !important; transition: none !important; }
}

/* A flexible slot stays a choice; its suggested property is never a required stat. */
.pw-orbit-layout{align-items:start}
.pw-wheel-column{min-width:0}
.pw-node-kind{display:grid;place-items:center;position:absolute;bottom:-2px;left:-1px;width:15px;height:15px;border-radius:50%;font-size:11px;background:var(--pw-bg);color:var(--pw-blue)}
.pw-node.is-flex .pw-node-kind{color:#b8bef2}
.pw-node.is-flex:not(.selected):not(.finished) .pw-node-disc{color:#b4bdec;background:color-mix(in srgb,var(--pw-node) 88%,#55578a)}
[data-theme="light"] .pw-node.is-flex:not(.selected):not(.finished) .pw-node-disc{color:#535d9a}
[data-theme="light"] .pw-node.is-flex .pw-node-kind{color:#535d9a}
.pw-node-caption{overflow:hidden;text-overflow:ellipsis;max-width:104px}
.pw-detail-top .pw-priority{padding:6px 7px;border-radius:5px;background:#8dbbff19;white-space:normal;line-height:1.5;text-align:right}
.pw-detail-top .pw-priority.flexible{color:#b8bef2;background:#a6a6f415}
[data-theme="light"] .pw-detail-top .pw-priority.flexible{color:#535d9a}
.pw-stat-symbol.flexible{color:#b8bef2;background:#a6a6f415}
[data-theme="light"] .pw-stat-symbol.flexible{color:#535d9a}
.pw-flex-intro{font-size:var(--ui-copy-size);line-height:1.9;color:var(--pw-copy);margin:22px 0 2px}
.pw-alternatives{border:0;padding-top:0;margin-top:12px;margin-bottom:20px}
.pw-alternatives>div{display:grid;grid-template-columns:1fr;gap:7px}
.pw-alternatives button.pw-stat-option{display:block;width:100%;padding:11px 12px;text-align:left;min-width:0;border-radius:8px;background:color-mix(in srgb,var(--pw-bg) 77%,transparent);transition:background .2s,box-shadow .2s}
.pw-stat-option .pw-option-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:var(--pw-ink);margin:0;line-height:1.6}
.pw-option-title strong{font-size:var(--ui-label-size);font-weight:700;overflow-wrap:anywhere}
.pw-option-title b{color:var(--pw-blue);font-size:13px;white-space:nowrap;flex-shrink:0}
.pw-option-english{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:3px;font-size:var(--ui-caption-size);line-height:1.7;color:var(--pw-muted)}
.pw-option-english em{font-style:normal;font-size:8px;letter-spacing:.7px;color:var(--pw-blue);background:#8dbbff17;padding:2px 4px;border-radius:3px}
.pw-stat-option .pw-option-condition{display:block;font-size:var(--ui-detail-size);line-height:1.7;color:var(--pw-copy);margin:6px 0 0}
.pw-alternatives .pw-stat-option.core-option{background:#8dbbff0e;box-shadow:inset 2px 0 var(--pw-blue)}
.pw-alternatives .pw-stat-option[aria-pressed="true"]{background:var(--pw-node);box-shadow:inset 2px 0 var(--pw-blue)}
.pw-alternatives .pw-stat-option:hover{background:var(--pw-node)}
.pw-mark{margin-top:auto}
.pw-mark:disabled{cursor:default;background:var(--pw-panel-hi);color:var(--pw-muted)!important}
.pw-design-constellation .pw-detail,.pw-design-gallery .pw-detail{display:flex;gap:0;align-items:flex-start}
.pw-design-constellation .pw-detail .pw-alternatives,.pw-design-gallery .pw-detail .pw-alternatives{margin:18px 0 22px;padding:0}
.pw-design-constellation .pw-detail .pw-alternatives>div,.pw-design-gallery .pw-detail .pw-alternatives>div{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.pw-design-constellation .pw-detail .pw-alternatives>p,.pw-design-gallery .pw-detail .pw-alternatives>p{display:block}
@media(max-width:640px){.pw-stat-option .pw-option-condition{font-size:var(--ui-detail-size)}.pw-option-english{font-size:var(--ui-caption-size)}}
@media(max-width:400px){.pw-node-kind{width:12px;height:12px;font-size:9px}.pw-design-constellation .pw-detail .pw-alternatives>div,.pw-design-gallery .pw-detail .pw-alternatives>div{grid-template-columns:1fr}}

/* Shared guide typography; decorative wheel geometry keeps its original size. */
.pet-wheels{font-family:var(--font-ui)}
.pw-heading p,.pw-class-note,.pw-stat-reason,.pw-flex-intro,.pw-option-condition{line-height:1.65}
.pw-option-title strong{line-height:1.45}
.pw-option-english{line-height:1.5}
.pw-target-value small{max-width:110px}
.pw-context-facts>span{white-space:normal}
.pw-core small{letter-spacing:.6px}
@media(max-width:640px){
  .pw-stat-option .pw-option-condition{font-size:var(--ui-copy-size)}
}
@media(max-width:400px){
  .pw-core strong{font-size:13px}
  .pw-core small{font-size:7px}
  .pw-genera{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Choose a genus first; keep the route below the current character. */
.pet-wheels { overflow-anchor: none; }
.pet-wheels > .pw-genera { margin: 0 0 16px; }
.pw-genus strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-genus > b { flex-shrink: 0; }
.pw-class-context { flex-wrap: wrap; gap: 18px 28px; padding: 13px 16px; }
.pw-character { display: flex; align-items: center; gap: 11px; flex: 1 1 210px; min-width: 0; }
.pw-character > img { object-fit: contain; flex-shrink: 0; }
.pw-character > div { min-width: 0; }
.pw-stat-summary { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; width: 100%; min-width: 0; overflow: hidden; }
.pw-stat-heading { display:flex; align-items:center; gap:14px; width:100%; margin:22px 0 5px; }
.pw-stat-heading > div:last-child { min-width:0; }
.pw-stat-heading .pw-stat-symbol { flex:0 0 auto; margin:0; background:var(--selection); }
.pw-detail .pw-stat-heading .pw-eyebrow { margin:0; }
.pw-detail .pw-stat-heading h3 { margin:4px 0 0; overflow-wrap:anywhere; }
.pw-stat-summary > .pw-stat-reason { width: 100%; }
.pw-node-disc { transition: transform .3s cubic-bezier(.22,1,.36,1), background .35s ease, color .35s ease, box-shadow .35s ease; }
.pw-alternatives button.pw-stat-option { transition: background .35s ease, box-shadow .35s ease; }
@media(max-width:1050px) {
  .pet-wheels > .pw-genera { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .pw-class-context { gap: 15px; padding: 14px; }
}
@media(max-width:640px) {
  .pet-wheels > .pw-genera { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:400px) {
  .pw-class-context { padding: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .pw-node-disc, .pw-alternatives button.pw-stat-option { transition: none; }
}

/* Core is a recommendation label. Only the pressed choice is selected. */
.pw-alternatives .pw-stat-option.core-option { background: color-mix(in srgb,var(--pw-bg) 77%,transparent); box-shadow: none; }
.pw-alternatives .pw-stat-option[aria-pressed="true"] { background: var(--pw-node); box-shadow: inset 2px 0 var(--pw-blue); }
.pw-alternatives .pw-stat-option:not([aria-pressed="true"]):hover { background: color-mix(in srgb,var(--pw-node) 55%,var(--pw-bg)); box-shadow: none; }
.pw-stat-option[aria-pressed="true"] strong::before { content: '✓ '; color: var(--pw-blue); }
.pw-option-core { display: inline-block; margin-top: 5px; padding: 3px 5px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .7px; color: var(--pw-blue); background: #8dbbff17; }
.pw-wheel-column { min-width: 0; }
.pw-owned { margin-top: 12px; border-radius: 12px; background: var(--pw-bg); overflow: hidden; }
.pw-owned > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; list-style: none; cursor: pointer; }
.pw-owned > summary::-webkit-details-marker { display: none; }
.pw-owned > summary > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pw-owned summary svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--pw-blue); }
.pw-owned summary strong { color: var(--pw-ink); font-size: var(--ui-copy-size); }
.pw-owned-count { flex-shrink: 0; color: var(--pw-muted); font-size: var(--ui-detail-size); }
.pw-owned-count i { display: inline-block; margin-left: 10px; font-size: 16px; font-style: normal; transition: transform .25s ease; }
.pw-owned[open] .pw-owned-count i { transform: rotate(180deg); }
.pw-owned-body { padding: 0 20px 18px; }
.pw-owned-body > p { margin: 0 0 14px; color: var(--pw-muted); font-size: var(--ui-detail-size); line-height: 1.6; }
.pw-owned-list { display: grid; gap: 7px; }
.pw-owned-stat { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; background: var(--pw-panel); }
.pw-owned-stat > div { min-width: 0; }
.pw-owned-stat strong { display: block; font-size: var(--ui-copy-size); overflow-wrap: anywhere; }
.pw-owned-stat small { display: block; color: var(--pw-muted); font-size: var(--ui-caption-size); line-height: 1.6; margin-top: 4px; }
.pw-owned-stat > b { flex-shrink: 0; color: var(--pw-blue); font-size: var(--ui-detail-size); }
.pw-owned-empty { color: var(--pw-copy); font-size: var(--ui-copy-size); padding: 9px 0; }
@media(max-width:640px) { .pw-owned > summary { padding: 16px; }.pw-owned-body { padding: 0 16px 16px; } }
@media(prefers-reduced-motion:reduce) { .pw-owned-count i { transition: none; } }

.gear-guide-section {
  --gear-bg:#0d192b;--gear-panel:#15253e;--gear-raised:#1d3455;--gear-ink:#edf4ff;
  --gear-copy:#c3d2e8;--gear-muted:#a6bad7;--gear-blue:#a9ccff;--gear-line:#365278;
  margin-top:12px;color:var(--gear-ink);font-size:12px;
}
[data-theme="light"] .gear-guide-section {
  --gear-bg:#eaf1fc;--gear-panel:#e0eafa;--gear-raised:#d0e1f9;--gear-ink:#193456;
  --gear-copy:#405f86;--gear-muted:#526f95;--gear-blue:#235b9f;--gear-line:#a7bedc;
}
.gear-guide-section button,.gear-guide-section select{font:inherit;cursor:pointer}
.gear-guide-section button{border:0;color:inherit}
.gear-guide-section :is(button,select):focus-visible{outline:2px solid var(--gear-blue);outline-offset:4px}
.gear-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:24px 0 28px}
.gear-kicker{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.8px;color:var(--gear-copy);font-weight:700}
.gear-kicker i{width:4px;height:4px;background:var(--gear-blue);border-radius:50%;box-shadow:0 0 12px #7dafff88}
.gear-kicker>span{color:var(--gear-muted);margin-left:8px}
.gear-heading h2{font-size:clamp(27px,3vw,34px);line-height:1.2;letter-spacing:-1.6px;margin:16px 0 10px}
.gear-heading h2>span{color:var(--gear-blue);font-weight:500}
.gear-heading p{font-size:var(--ui-copy-size);line-height:1.8;color:var(--gear-copy);margin:0}
.gear-context-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%}
.gear-context-count{display:flex;gap:12px;align-items:center}
.gear-context-count>b{font-size:28px;line-height:1;letter-spacing:-1px}
.gear-context-count>span{font-size:var(--ui-detail-size);color:var(--gear-copy);line-height:1.8}
.gear-context-count small{display:block;font-size:var(--ui-caption-size);color:var(--gear-muted);letter-spacing:.5px}
.gear-context{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:13px 16px;margin-bottom:18px;background:var(--gear-bg);border-radius:11px}
.gear-character{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 190px}
.gear-character img{object-fit:contain;flex-shrink:0}
.gear-character small{display:block;font-size:var(--ui-caption-size);color:var(--gear-muted);letter-spacing:1.2px;margin-bottom:4px}
.gear-character strong{font-size:var(--ui-label-size);display:block;overflow-wrap:anywhere}
.gear-character strong>span{font-weight:500;color:var(--gear-copy)}
.gear-roles{display:flex;gap:3px;padding:3px;background:var(--gear-panel);border-radius:8px}
.gear-roles button{min-height:34px;padding:7px 13px;border-radius:6px;font-size:var(--ui-detail-size);font-weight:700;background:transparent;color:var(--gear-copy)}
.gear-roles [aria-pressed="true"]{background:var(--gear-raised);color:var(--gear-ink)}
.gear-class-note{font-size:var(--ui-copy-size);line-height:1.9;min-height:20px;margin:14px 2px 18px;color:var(--gear-copy);max-width:960px}
.gear-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);gap:18px;align-items:start}
.gear-forge{position:sticky;top:calc(var(--app-header-height,80px) + 18px);isolation:isolate;min-width:0;overflow:hidden;padding:23px 20px 19px;border-radius:17px;background:radial-gradient(ellipse at 50% 38%,#355b9225,transparent 63%),var(--gear-bg)}
.gear-forge::before{content:"";position:absolute;z-index:-1;inset:18% 18%;border-radius:50%;background:radial-gradient(#75a8ff20,transparent 68%);animation:gear-glow 6s ease-in-out infinite alternate;animation-delay:var(--gear-motion-time,0ms);pointer-events:none}
.gear-forge::after{content:"";position:absolute;z-index:-1;inset:0;background-image:radial-gradient(#a9ccff3b .65px,transparent .9px);background-size:45px 53px;mask-image:linear-gradient(90deg,transparent,#0008,transparent);pointer-events:none}
.gear-forge-head{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:var(--ui-caption-size);letter-spacing:1.1px;color:var(--gear-muted);padding:0 3px}
.gear-progress{font-size:12px;letter-spacing:0;white-space:nowrap}
.gear-progress b{color:var(--gear-blue);font-size:17px}
.gear-progress small{font-size:var(--ui-caption-size);margin-left:6px}
.gear-loadout{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,.95fr) minmax(0,1fr);gap:13px;align-items:stretch;margin:25px 0 16px}
.gear-slot-rail{display:flex;flex-direction:column;gap:10px;min-width:0;position:relative;z-index:2}
.gear-slot{position:relative;overflow:hidden;display:flex;align-items:center;gap:9px;padding:12px 10px;min-height:70px;min-width:0;width:100%;border-radius:10px;background:var(--gear-panel);text-align:left;transition:background .2s,box-shadow .2s}
.gear-slot:hover{background:var(--surface-hover)}
.gear-slot.selected{background:linear-gradient(125deg,var(--selection),var(--gear-raised));color:var(--gear-ink)}
[data-theme="light"] .gear-slot.selected{box-shadow:inset 3px 0 var(--accent)}
.gear-slot-icon{display:grid;place-items:center;flex-shrink:0;width:31px;height:37px;color:var(--gear-blue)}
.gear-slot-copy{min-width:0;flex:1}
.gear-slot-copy strong{display:block;font-size:var(--ui-copy-size);line-height:1.4;font-weight:700;overflow-wrap:anywhere}
.gear-slot-copy small{display:block;font-size:var(--ui-caption-size);color:var(--gear-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}
.gear-slot.selected .gear-slot-copy small{color:var(--gear-copy)}
.gear-slot-status{position:absolute;right:6px;top:4px;font-size:10px;color:var(--gear-muted);opacity:.5}
.gear-slot.obtained .gear-slot-status{opacity:1;color:var(--gear-blue);background:var(--gear-bg);border-radius:50%;width:17px;height:17px;display:grid;place-items:center}
.gear-center{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center}
.gear-sigil{position:relative;width:100%;max-width:230px;aspect-ratio:240/380;color:var(--gear-blue);margin:auto 0 9px}
.gear-blueprint{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible;stroke:var(--gear-line);stroke-width:1}
.gear-blueprint .gear-guide{stroke-dasharray:2 6;opacity:.4}
.gear-blueprint .gear-diamond{opacity:.42;stroke:var(--gear-blue)}
.gear-armor-edge{stroke:var(--gear-blue);stroke-opacity:.6}
.gear-armor-lines{stroke:var(--gear-blue);stroke-opacity:.35}
.gear-crest-ring{stroke:var(--gear-blue);stroke-opacity:.23;stroke-dasharray:1 5}
.gear-crest{position:absolute;left:50%;top:41%;transform:translate(-50%,-50%);width:43%;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 0 18px #8ebaff55);opacity:.92}
.gear-sigil-label{position:absolute;left:0;right:0;top:76%;text-align:center}
.gear-sigil-label>span{display:block;font-size:9px;letter-spacing:1.4px;color:var(--gear-muted)}
.gear-sigil-label strong{display:block;font-size:14px;margin-top:8px;font-weight:600}
.gear-center>.gear-slot{max-width:178px;margin-top:auto;min-height:66px;background:color-mix(in srgb,var(--gear-panel) 75%,transparent)}
.gear-center>.gear-slot.selected{background:var(--gear-raised)}
.gear-forge-hint{display:flex;justify-content:center;align-items:center;gap:7px;font-size:var(--ui-caption-size);color:var(--gear-muted);line-height:1.8}
.gear-forge-hint i{width:3px;height:3px;border-radius:50%;background:var(--gear-blue)}
.gear-detail{min-width:0;display:flex;flex-direction:column;padding:25px 24px 18px;border-radius:17px;background:linear-gradient(145deg,var(--gear-raised),var(--gear-panel) 58%)}
.gear-detail-head{display:flex;align-items:center;gap:13px;width:100%}
.gear-detail-icon{display:grid;place-items:center;flex-shrink:0;width:47px;height:49px;color:var(--gear-blue);background:#8fbbff12;border-radius:11px}
.gear-detail-head small{display:block;font-size:var(--ui-caption-size);letter-spacing:1.6px;color:var(--gear-muted);margin-bottom:6px}
.gear-detail h3{font-size:27px;line-height:1.2;letter-spacing:-.7px;margin:0}
.gear-detail-mode{font-size:var(--ui-caption-size);color:var(--gear-copy);background:var(--gear-bg);padding:6px 8px;border-radius:5px;margin-left:auto;align-self:flex-start}
.gear-detail-lead{font-size:var(--ui-copy-size);color:var(--gear-copy);margin:23px 0 11px}
.gear-priorities{list-style:none;margin:0 0 17px;padding:0;display:flex;flex-direction:column;gap:7px}
.gear-priority{position:relative;display:flex;gap:12px;padding:12px 13px;border-radius:9px;background:color-mix(in srgb,var(--gear-bg) 54%,transparent)}
.gear-priority.primary{padding:16px 13px;background:linear-gradient(120deg,#739cd22b,#81acff0a);box-shadow:inset 2px 0 var(--gear-blue)}
.gear-priority-index{font-size:10px;color:var(--gear-muted);font-weight:700;line-height:1.8;flex-shrink:0}
.gear-priority.primary .gear-priority-index{color:var(--gear-blue)}
.gear-priority>div{flex:1;min-width:0}
.gear-priority strong{display:block;font-size:var(--ui-label-size);line-height:1.6;color:var(--gear-ink);font-weight:700}
.gear-priority.primary strong{font-size:var(--ui-label-size);letter-spacing:-.2px;font-weight:700}
.gear-priority small{display:block;font-size:var(--ui-caption-size);color:var(--gear-muted);margin-top:2px}
.gear-priority p{font-size:var(--ui-detail-size);line-height:1.8;color:var(--gear-copy);margin:6px 0 0}
.gear-priority-spark{color:var(--gear-blue);flex-shrink:0;margin-top:2px}
.gear-slot-tip{display:flex;align-items:flex-start;gap:9px;margin:auto 0 18px;color:var(--gear-muted)}
.gear-slot-tip>svg{flex-shrink:0;margin-top:3px;color:var(--gear-blue)}
.gear-slot-tip p{font-size:var(--ui-detail-size);line-height:1.9;margin:0}
.gear-slot-tip p>span{display:block;color:var(--gear-copy);margin-top:4px}
.gear-mark{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;border-radius:8px;padding:12px 10px;min-height:43px;background:var(--action);color:#fff!important;font-weight:700!important;font-size:var(--ui-copy-size)!important;transition:background .2s}
.gear-mark:hover{background:var(--action-hover)}
.gear-mark.is-marked{background:var(--selection);color:var(--selection-text)!important}
.gear-mark-owner{font-size:var(--ui-caption-size);color:var(--gear-muted);line-height:1.7;text-align:center;overflow-wrap:anywhere;margin:9px 0 0}
.gear-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.gear-principles article{display:flex;gap:14px;padding:19px 18px;background:var(--gear-bg);border-radius:12px}
.gear-principles article>span{font-size:11px;color:var(--gear-blue);padding-top:1px;font-weight:700}
.gear-principles h3{font-size:var(--ui-label-size);line-height:1.6;margin:0 0 6px}
.gear-principles p{font-size:var(--ui-detail-size);line-height:1.9;color:var(--gear-muted);margin:0}
@keyframes gear-fade{from{opacity:0}to{opacity:1}}
@keyframes gear-glow{from{opacity:.4}to{opacity:1}}
@media(max-width:1050px){
  .gear-layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:12px}
  .gear-forge{padding:20px 14px 18px}.gear-loadout{gap:9px;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr)}
  .gear-slot{padding:11px 8px;gap:6px}.gear-slot-icon{width:26px}.gear-slot-icon svg{width:21px}
  .gear-slot-copy strong{font-size:var(--ui-copy-size);font-weight:700}.gear-slot-copy small{font-size:var(--ui-caption-size)}.gear-detail{padding:23px 19px 18px}
  .gear-detail h3{font-size:24px}.gear-context{gap:13px}.gear-principles article{padding:16px 14px;gap:10px}
}
@media(max-width:980px){
  .gear-layout{grid-template-columns:1fr}.gear-loadout{grid-template-columns:minmax(0,1fr) minmax(160px,1.1fr) minmax(0,1fr);gap:16px}
  .gear-slot{min-height:68px}.gear-slot-copy strong{font-size:var(--ui-copy-size);font-weight:700}.gear-slot-copy small{font-size:var(--ui-caption-size)}
  .gear-forge{position:relative;top:auto;padding:22px}.gear-sigil{max-width:235px}.gear-detail{padding:25px}
  .gear-priorities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .gear-priority{padding:15px}.gear-priority.primary{padding:15px}.gear-priority p{font-size:var(--ui-detail-size)}
  .gear-slot-tip{margin:4px 0 20px}.gear-slot-tip p{font-size:var(--ui-detail-size)}.gear-detail-lead{margin-top:20px}
}
@media(max-width:640px){
  .view-tabs{position:relative;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .view-tabs .view-tab{flex:0 0 auto;padding:11px 0}
  .gear-heading{gap:14px;padding:18px 0 22px}.gear-heading h2{font-size:clamp(27px,3vw,34px);letter-spacing:-1px}
  .gear-heading p{font-size:var(--ui-copy-size);max-width:330px}.gear-kicker{font-size:10px;letter-spacing:1.2px;gap:7px}
  .gear-context-count{gap:8px}
  .gear-context{padding:12px;gap:12px}
  .gear-character{flex-basis:160px}.gear-character strong{font-size:var(--ui-label-size)}.gear-character strong>span{display:block;margin-top:2px}
  .gear-roles button{padding:7px 10px;font-size:var(--ui-detail-size)}.gear-class-note{font-size:var(--ui-copy-size);line-height:1.9;margin-bottom:14px}
  .gear-forge{padding:18px 12px}.gear-loadout{grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr);gap:8px;margin-top:21px}
  .gear-slot-rail{gap:8px}.gear-slot{padding:10px 6px;gap:5px;min-height:65px;flex-direction:column;text-align:center;justify-content:center}
  .gear-slot-icon{height:25px;width:27px}.gear-slot-copy strong{font-size:var(--ui-copy-size);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:700}
  .gear-slot-copy{width:100%;flex:0 1 auto}.gear-slot-copy small{display:none}.gear-slot.selected{box-shadow:inset 0 -2px var(--gear-blue)}
  .gear-sigil{width:150px;max-width:none;aspect-ratio:240/430}.gear-blueprint{opacity:.9}
  .gear-sigil-label>span{font-size:9px;letter-spacing:.8px}.gear-sigil-label strong{font-size:12px}
  .gear-crest{width:46%;top:43%}.gear-sigil-label{top:76%}
  .gear-center>.gear-slot{max-width:100%;min-height:65px}.gear-forge-head{font-size:var(--ui-caption-size);letter-spacing:.8px}
  .gear-progress small{font-size:var(--ui-caption-size)}.gear-forge-hint{font-size:var(--ui-caption-size);text-align:center}
  .gear-detail{padding:22px 18px 17px}.gear-detail h3{font-size:25px}
  .gear-priorities{display:flex}.gear-priority p{font-size:var(--ui-detail-size)}.gear-priority strong{font-size:var(--ui-label-size);font-weight:700}
  .gear-principles{grid-template-columns:1fr;gap:8px}.gear-principles article{padding:16px 18px}
  .gear-principles h3{font-size:var(--ui-label-size)}.gear-principles p{font-size:var(--ui-detail-size)}
}
@media(max-width:400px){
  .gear-heading h2{font-size:clamp(27px,3vw,34px)}.gear-kicker>span{margin-left:3px}
  .gear-loadout{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:7px}
  .gear-sigil{width:128px}.gear-sigil-label>span{font-size:9px;letter-spacing:.4px}.gear-slot-copy strong{font-size:var(--ui-copy-size);font-weight:700}
}
@media(prefers-reduced-motion:reduce){
  .gear-forge::before,.gear-detail{animation:none}.gear-guide-section button{transition:none}
}

/* Core lines and conditional alternatives use different fills and explicit labels. */
.gear-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0 0 17px;font-size:var(--ui-detail-size);color:var(--gear-muted)}
.gear-legend>.flex{margin-left:10px}
.gear-kind{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:5px;font-size:var(--ui-caption-size);font-weight:750;line-height:1.4;letter-spacing:.3px}
.gear-kind.core{background:#8dbbff19;color:var(--gear-blue)}
.gear-kind.flex{background:#a6a6f415;color:#b8bef2}
[data-theme="light"] .gear-kind.flex{color:#535d9a;background:#727abe15}
.gear-list-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:22px 0 9px}
.gear-list-heading>small{color:var(--gear-muted);font-size:var(--ui-caption-size)}
.gear-list-heading.flexible{margin-top:5px}
.gear-priorities{margin-bottom:17px}
.gear-priority.primary{padding:13px 12px}
.gear-priority.primary strong{font-size:var(--ui-label-size);font-weight:700}
.gear-priority-index{display:grid;place-items:start center;padding-top:3px}
.gear-priority.primary p{font-size:var(--ui-detail-size);line-height:1.7;margin-top:4px}
.gear-no-core{color:var(--gear-copy);font-size:var(--ui-copy-size);line-height:1.8;margin:0 0 17px;padding:13px;background:var(--gear-bg);border-radius:8px}
.gear-flex-lead{color:var(--gear-muted);font-size:var(--ui-detail-size);line-height:1.8;margin:0 0 11px}
.gear-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:19px}
.gear-choice{padding:11px 12px;border-radius:8px;background:color-mix(in srgb,var(--gear-bg) 62%,transparent);min-width:0}
.gear-choice strong{font-size:var(--ui-label-size);font-weight:700;line-height:1.6;display:block;color:var(--gear-ink)}
.gear-choice small{display:block;font-size:var(--ui-caption-size);line-height:1.7;color:var(--gear-muted);margin-top:2px}
.gear-choice p{font-size:var(--ui-detail-size);line-height:1.7;color:var(--gear-copy);margin:6px 0 0}
.gear-blueprint .gear-energy-track{stroke:var(--gear-blue);stroke-opacity:.14}
.gear-blueprint .gear-energy-flow{stroke:var(--gear-blue);stroke-width:1.7;stroke-linecap:round;filter:drop-shadow(0 0 4px #8cbbff99)}
.gear-energy-flow ellipse{stroke-dasharray:45 520;animation:gear-energy-stream 12s linear infinite;animation-delay:var(--gear-motion-time,0ms)}
.gear-energy-flow ellipse:nth-child(2){stroke-dasharray:24 575;animation-duration:17s;animation-direction:reverse;opacity:.7}
.gear-blueprint .gear-edge-flow{stroke:#c4dcff;stroke-opacity:.8;stroke-width:1.5;stroke-dasharray:55 660;animation:gear-energy-stream 10s linear infinite;animation-delay:var(--gear-motion-time,0ms)}
.gear-scan-beam{animation:gear-armor-scan 6s linear infinite;animation-delay:var(--gear-motion-time,0ms)}
.gear-motes{fill:var(--gear-blue);stroke:none}
.gear-motes circle{animation:gear-mote 3s ease-in-out infinite alternate;animation-delay:var(--gear-motion-time,0ms)}
.gear-motes circle:nth-child(2){animation-duration:4.3s}.gear-motes circle:nth-child(3){animation-duration:5.2s}
.gear-active-emblem{position:absolute;left:50%;top:61%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#163054;color:#c6ddff;box-shadow:0 0 22px #81b3ff25;animation:gear-fade .35s ease both}
[data-theme="light"] .gear-active-emblem{background:var(--selection);color:var(--accent)}
.gear-slot.selected::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 20%,#c0d9ff1c 45%,transparent 70%);animation:gear-item-glint 4.5s ease infinite;animation-delay:var(--gear-motion-time,0ms)}
.gear-slot.selected .gear-slot-icon{filter:drop-shadow(0 0 6px #9bc6ff65)}
@keyframes gear-energy-stream{to{stroke-dashoffset:-600}}
@keyframes gear-armor-scan{0%{transform:translateY(-85px);opacity:0}12%{opacity:.8}75%{opacity:.8}90%,100%{transform:translateY(290px);opacity:0}}
@keyframes gear-mote{from{opacity:.15}to{opacity:.9}}
@keyframes gear-item-glint{0%,15%{transform:translateX(-110%)}65%,100%{transform:translateX(110%)}}
@media(max-width:640px){.gear-legend{font-size:var(--ui-detail-size);gap:7px}.gear-kind{font-size:var(--ui-caption-size)}.gear-legend>.flex{margin-left:0}.gear-priority.primary{padding:13px 12px}.gear-priority.primary strong{font-size:var(--ui-label-size);font-weight:700}.gear-choice p{font-size:var(--ui-detail-size)}}
@media(max-width:480px){.gear-choices{grid-template-columns:1fr}.gear-choice{padding:11px 13px}.gear-choice small{font-size:var(--ui-caption-size)}.gear-choice strong{font-size:var(--ui-label-size);font-weight:700}.gear-legend{display:grid;grid-template-columns:auto 1fr;justify-items:start}}
@media(prefers-reduced-motion:reduce){.gear-guide-section *,.gear-guide-section *::before,.gear-guide-section *::after{animation:none!important;transition:none!important}.gear-scan-beam,.gear-slot.selected::after{display:none}}

.gear-detail-head > div:not(.gear-modes) { min-width: 0; flex: 1; }
.gear-detail-head h3 { overflow-wrap: anywhere; }
.gear-modes { --gear-mode-to: 0%; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 0; flex: 0 0 104px; align-self: flex-start; margin-left: auto; padding: 3px; border-radius: 8px; background: var(--gear-panel); }
.gear-modes.is-pvp { --gear-mode-to: 100%; }
.gear-modes::before { content: ''; position: absolute; z-index: -1; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 2); border-radius: 6px; background: var(--gear-raised); transform: translateX(var(--gear-mode-to)); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.gear-modes button { min-height: 32px; padding: 6px 10px; border-radius: 6px; background: transparent; color: var(--gear-muted); font-size: var(--ui-detail-size); font-weight: 700; }
.gear-modes button[aria-pressed="true"] { color: var(--gear-ink); }
[data-theme="light"] .gear-modes { box-shadow: inset 0 0 0 1px var(--gear-line); }
[data-theme="light"] .gear-modes::before { background: color-mix(in srgb,var(--gear-raised) 92%,var(--gear-ink)); }
.gear-slot.is-activated::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent,#b4d4ff38,transparent); animation: gear-slot-select .45s cubic-bezier(.22,1,.36,1) both; }
.gear-slot.is-activated .gear-slot-icon { animation: gear-slot-ink .38s ease both; }
.gear-sigil-label > span { text-transform: uppercase; }
@keyframes gear-slot-select { from { opacity: .9; transform: translateX(-100%); } to { opacity: 0; transform: translateX(100%); } }
@keyframes gear-slot-ink { from { opacity: .45; } to { opacity: 1; } }
@media(max-width:640px) {
  .gear-detail-head { display: grid; grid-template-columns: 47px minmax(0,1fr); }
  .gear-modes { grid-column: 1 / -1; justify-self: end; width: 112px; margin-left: 0; }
}
@media(prefers-reduced-motion:reduce) { .gear-modes::before,.gear-slot.is-activated::before,.gear-slot.is-activated .gear-slot-icon { animation: none; } }

/* The same compact text scale as the guide, with room for wrapped labels. */
.gear-guide-section{font-family:var(--font-ui)}
.gear-heading p,.gear-class-note,.gear-priority p,.gear-priority.primary p,.gear-choice p,.gear-slot-tip p,.gear-principles p{line-height:1.65}
.gear-slot-copy strong{white-space:normal;line-height:1.4}
.gear-priority small,.gear-choice small{line-height:1.5}
.gear-sigil-label>span{letter-spacing:.7px}
@media(max-width:640px){
  .gear-slot-copy strong{font-size:11px}
  .gear-sigil-label>span{font-size:8px}
  .gear-choice p,.gear-priority p,.gear-priority.primary p,.gear-slot-tip p{font-size:var(--ui-copy-size)}
}

/* Panel and filled cards stay mounted and opaque; only changed copy fades. */
.gear-detail-copy{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;overflow:hidden;flex-shrink:0}

/* Same surfaces, type and accents as the portal. Dark mode uses fills. */
.armory-surface{margin:0 0 28px;min-width:0}.armory-surface button{font:inherit;cursor:pointer}.armory-surface [hidden],.armory-dialog [hidden]{display:none!important}.armory-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:9px;background:var(--soft);color:var(--text);font-family:inherit;font-size:12px;font-weight:700;padding:12px 17px;cursor:pointer;text-decoration:none}.armory-button.primary{background:var(--action);color:#fff}.armory-button:disabled{opacity:.6;cursor:wait}.armory-inline{display:inline-flex;gap:7px;align-items:center;padding:6px 0;border:0;background:none;color:var(--accent);font:inherit;font-size:11px;cursor:pointer}.armory-invite,.armory-loading{display:flex;align-items:center;gap:19px;padding:25px 28px;border:0;border-radius:14px;background:linear-gradient(115deg,var(--surface),var(--soft));color:var(--text)}.armory-invite-icon{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border-radius:14px;background:var(--selection);color:var(--accent)}.armory-invite small{color:var(--accent);font-size:9px;letter-spacing:1.1px;font-weight:700}.armory-invite h3,.armory-loading h3{font-size:20px;line-height:1.4;margin:6px 0}.armory-invite p,.armory-loading p{font-size:12px;line-height:1.75;margin:0;color:var(--copy);max-width:65ch}.armory-invite>.armory-button{margin-left:auto;flex-shrink:0}.armory-loading{flex-wrap:wrap}.armory-compact{display:flex;align-items:center;gap:12px;padding:15px 18px;border-radius:10px;background:var(--soft);color:var(--accent)}.armory-compact>div{display:grid;gap:5px;flex:1;min-width:0}.armory-compact strong{font-size:12px;color:var(--text)}.armory-compact span{font-size:11px;color:var(--copy)}.armory-compact .armory-button{padding:9px 11px;font-size:11px;background:var(--selection)}
.armory-hero{position:relative;isolation:isolate;overflow:hidden;padding:30px 32px 0;border:0;border-radius:16px;background:linear-gradient(115deg,var(--surface) 20%,var(--selection));color:var(--text)}.armory-hero-art{position:absolute;z-index:-1;inset:0 0 0 auto;width:55%;height:100%;object-fit:cover;object-position:50% 28%;opacity:.28;mask-image:linear-gradient(90deg,transparent,#000 70%);pointer-events:none}.armory-hero-main{display:flex;align-items:center;gap:20px}.armory-avatar{object-fit:cover;border:0;border-radius:17px;background:var(--soft);flex-shrink:0}.armory-tags{display:flex;gap:7px;flex-wrap:wrap}.armory-tags>span{padding:5px 9px;border-radius:6px;background:var(--soft);color:var(--copy);font-size:10px}.armory-hero h3{font-size:34px;line-height:1.25;letter-spacing:-1.1px;margin:9px 0 6px;overflow-wrap:anywhere}.armory-hero-main p{margin:0;color:var(--copy);font-size:11px}.armory-metrics{display:flex;gap:50px;margin:27px 0}.armory-metrics>div{display:grid;gap:5px}.armory-metrics small{font-size:9px;letter-spacing:1px;color:var(--muted)}.armory-metrics strong{font-size:30px;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums}.armory-metrics span{font-size:10px;color:var(--accent)}.armory-hero>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 -32px;padding:13px 32px;background:var(--soft);font-size:10px;color:var(--copy)}.armory-hero>footer>span{display:flex;gap:6px;align-items:center}.armory-hero>footer>div{display:flex;gap:19px}.armory-notice{padding:13px 17px;border-radius:9px;background:var(--soft);font-size:12px;color:var(--copy)}
.armory-gear-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:32px 0 18px}.armory-gear-toolbar h3{font-size:22px;margin:0 0 6px;letter-spacing:-.5px}.armory-gear-toolbar p{font-size:11px;color:var(--copy);margin:0}.armory-options{display:flex;flex-wrap:wrap;gap:9px}.armory-options>div{display:flex;gap:3px;padding:4px;border-radius:8px;background:var(--soft)}.armory-options button{padding:7px 13px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:11px}.armory-options button[aria-pressed="true"]{background:var(--selection);color:var(--text)}.armory-equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:stretch}.armory-item{position:relative;display:flex;flex-direction:column;min-width:0;padding:20px;border:0;border-radius:13px;background:var(--surface);color:var(--text);overflow:hidden}.armory-item>header{display:flex;align-items:center;gap:13px;min-width:0}.armory-item-icon{position:relative;display:grid;place-items:center;width:58px;height:62px;flex-shrink:0;border-radius:11px;background:var(--soft);color:var(--accent)}.armory-item-icon img{object-fit:contain;max-width:100%;height:auto}.armory-item-icon>b{position:absolute;right:-3px;bottom:0;padding:2px 5px;border-radius:5px;background:#b6954f;color:#fff;font-size:10px;line-height:1.5}.armory-item>header>div{min-width:0}.armory-item header small{font-size:9px;color:var(--muted)}.armory-item h3{font-size:13px;line-height:1.55;letter-spacing:-.15px;margin:3px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.armory-item header div>span{font-size:10px;color:var(--copy)}.armory-rolls{margin:22px 0 14px;min-height:128px}.armory-roll{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 0;font-size:11px;color:var(--copy)}.armory-roll>span{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.armory-roll strong{font-size:12px;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}.armory-roll small{font-size:7px;padding:2px 4px;border-radius:3px;background:var(--soft);color:var(--muted);letter-spacing:.4px}.armory-roll.core small{background:var(--selection);color:var(--accent)}.armory-roll.core>span{color:var(--text)}.armory-roll-loading{display:grid;gap:16px;padding:9px 0}.armory-roll-loading i{height:11px;border-radius:4px;background:var(--soft);animation:armory-pulse 1.5s ease-in-out infinite}.armory-roll-loading i:nth-child(2){width:80%;animation-delay:.15s}.armory-roll-loading i:nth-child(3){width:65%;animation-delay:.3s}@keyframes armory-pulse{50%{opacity:.4}}.armory-fit{padding:13px;border-radius:9px;background:var(--soft);margin-top:auto}.armory-fit>div{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--copy)}.armory-fit strong{color:var(--accent);font-size:20px;line-height:1}.armory-fit strong small{font-size:11px;font-weight:500;color:var(--muted)}.armory-fit p{font-size:10px;color:var(--copy);line-height:1.7;margin:8px 0 0}.armory-surface progress{display:block;width:100%;height:5px;border:0;border-radius:9px;margin:11px 0 0;appearance:none;background:var(--surface);overflow:hidden}.armory-surface progress::-webkit-progress-bar{background:var(--surface);border-radius:9px}.armory-surface progress::-webkit-progress-value{background:var(--accent);border-radius:9px}.armory-surface progress::-moz-progress-bar{background:var(--accent);border-radius:9px}.armory-item-more{margin-top:14px;font-size:10px}.armory-item-more summary{display:flex;justify-content:space-between;cursor:pointer;color:var(--muted);padding:5px 0}.armory-item-more>div{display:flex;justify-content:space-between;gap:12px;margin:9px 0;color:var(--copy)}.armory-item-more>small{display:block;color:var(--accent);margin:13px 0}.armory-card-note,.armory-item-error{font-size:11px;line-height:1.7;color:var(--muted)}.armory-footnote{font-size:10px;line-height:1.8;color:var(--muted);margin:16px 0 22px}.armory-stats{margin:18px 0;padding:21px 24px;border-radius:12px;background:var(--surface);color:var(--text)}.armory-stats>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:700;cursor:pointer}.armory-stats>summary>span{font-size:10px;color:var(--muted);font-weight:400}.armory-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:23px 0}.armory-stat-grid>div{display:flex;justify-content:space-between;gap:10px;padding:13px;border-radius:7px;background:var(--soft);font-size:11px;color:var(--copy)}.armory-stat-grid strong{color:var(--text)}.armory-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.armory-board-grid>div{padding:15px;border-radius:8px;background:var(--soft);font-size:12px}.armory-board-grid strong{float:right;color:var(--accent)}.armory-board-grid small{font-size:10px;color:var(--muted)}.armory-skill-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:23px}.armory-skill-grid>div{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;background:var(--soft);font-size:11px}.armory-skill-grid img{border-radius:6px}.armory-skill-grid b{margin-left:auto;color:var(--accent);white-space:nowrap}.armory-priorities{margin:28px 0}.armory-priorities>summary{padding:19px 22px;border-radius:11px;background:var(--surface);color:var(--text);font-size:15px;font-weight:700;cursor:pointer}.armory-priorities>div{margin-top:20px}
.armory-dialog{width:min(650px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:15px;background:var(--surface);color:var(--text);font-family:inherit;overflow-y:auto;box-shadow:0 30px 100px #0008}.armory-dialog::backdrop{background:#050b17be;backdrop-filter:blur(7px)}.armory-dialog-heading{position:relative;padding:28px 30px 22px;background:linear-gradient(110deg,var(--selection),var(--soft))}.armory-dialog-heading>small{font-size:9px;font-weight:700;letter-spacing:1px;color:var(--accent)}.armory-dialog h2{font-size:26px;line-height:1.35;letter-spacing:-.6px;margin:8px 30px 9px 0}.armory-dialog-heading p{font-size:11px;line-height:1.8;color:var(--copy);margin:0}.armory-dialog-close{position:absolute;right:18px;top:19px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:var(--soft);color:var(--copy);cursor:pointer}.armory-dialog-body{padding:24px 30px}.armory-dialog form{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:12px;align-items:end}.armory-dialog label{display:grid;gap:9px;min-width:0;font-size:11px;color:var(--copy)}.armory-dialog input,.armory-dialog select{width:100%;min-width:0;height:43px;padding:0 12px;border:0;border-radius:8px;background:var(--soft);color:var(--text);font:inherit;font-size:12px}.armory-dialog form .armory-button{height:43px;padding:0 15px}.armory-dialog #armory-results{margin-top:24px;font-size:12px;line-height:1.8}.armory-dialog .armory-footnote{display:flex;gap:8px;margin-bottom:0}.armory-dialog .armory-footnote>svg{flex-shrink:0;margin-top:3px}.armory-search-hint{color:var(--copy);margin:0}.armory-search-results{display:grid;gap:9px}.armory-search-results>button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:14px;border:0;border-radius:10px;background:var(--soft);color:var(--text);font:inherit;cursor:pointer}.armory-search-results img{border-radius:10px;object-fit:cover}.armory-search-results>button>span{display:grid;gap:2px}.armory-search-results small{color:var(--copy);font-size:10px}.armory-search-results svg{margin-left:auto;color:var(--accent)}.armory-preview{padding:20px;border-radius:12px;background:var(--soft)}.armory-preview>div{display:flex;gap:15px;align-items:center}.armory-preview small{color:var(--accent);font-size:10px}.armory-preview h3{font-size:23px;margin:2px 0;line-height:1.5}.armory-preview p{font-size:11px;color:var(--copy);margin:2px 0;line-height:1.8}.armory-preview dl{display:flex;gap:30px;margin:23px 0}.armory-preview dt{font-size:10px;color:var(--muted)}.armory-preview dd{font-size:24px;line-height:1.5;margin:0;font-weight:700;letter-spacing:-.7px}.armory-preview>.armory-button{width:100%;margin:16px 0 0}.armory-error{color:#f29a9a!important;font-size:11px;line-height:1.7}.armory-character-link{display:grid;place-items:center;border:0;border-radius:6px;background:var(--soft);color:var(--accent);width:28px;height:28px;cursor:pointer}.armory-cabinet{margin:15px 0 24px}.armory-public-board{margin:0 0 20px}
@media(min-width:1400px){.armory-equipment-grid{gap:18px}.armory-item{padding:23px}}
@media(max-width:1000px){.armory-equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.armory-invite{flex-wrap:wrap}.armory-invite>.armory-button{margin-left:73px}.armory-stat-grid,.armory-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.armory-invite,.armory-loading{padding:21px;gap:13px}.armory-invite-icon{width:42px;height:42px}.armory-invite>div:nth-child(2){flex:1;min-width:190px}.armory-invite h3{font-size:18px}.armory-invite>.armory-button{width:100%;margin:3px 0 0}.armory-hero{padding:23px 20px 0}.armory-hero-main{gap:13px;align-items:flex-start}.armory-avatar{width:64px;height:64px;border-radius:13px}.armory-hero h3{font-size:28px;letter-spacing:-.7px}.armory-tags{gap:5px}.armory-tags>span{font-size:9px;padding:4px 6px}.armory-hero-main p{font-size:10px}.armory-metrics{gap:34px;margin:23px 0}.armory-metrics strong{font-size:26px}.armory-hero>footer{margin:0 -20px;padding:13px 20px;gap:7px}.armory-hero>footer>div{gap:16px}.armory-gear-toolbar{align-items:flex-start;flex-direction:column;margin-top:26px}.armory-gear-toolbar h3{font-size:20px}.armory-equipment-grid{grid-template-columns:1fr;gap:12px}.armory-item{padding:20px}.armory-item h3{font-size:15px}.armory-roll{font-size:12px}.armory-rolls{min-height:90px}.armory-stats{padding:18px}.armory-stats>summary{font-size:12px;flex-wrap:wrap}.armory-stat-grid,.armory-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.armory-skill-grid{grid-template-columns:1fr}.armory-dialog-heading{padding:23px 22px 19px}.armory-dialog h2{font-size:24px}.armory-dialog-body{padding:21px 22px}.armory-dialog form{grid-template-columns:110px minmax(0,1fr)}.armory-dialog form .armory-button{grid-column:1/-1}.armory-preview{padding:16px}.armory-preview dl{gap:20px}.armory-preview dd{font-size:21px}.armory-dialog .armory-avatar{width:58px;height:58px}.armory-compact{padding:12px;gap:9px}.armory-compact strong{font-size:11px}.armory-compact span{font-size:10px}.armory-compact .armory-button{font-size:10px;padding:9px}.armory-hero-art{width:90%;opacity:.19}}
@media(prefers-reduced-motion:reduce){.armory-roll-loading i{animation:none}}


@media(min-width:701px){.armory-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:26px 28px 0}.armory-metrics{align-self:center;margin:0;gap:32px}.armory-hero>footer{grid-column:1/-1;margin:0 -28px;padding:12px 28px}.armory-hero h3{font-size:32px}}

/* Both faces share the same grade surface. */
.armory-item {
  padding: 0;
  min-width: 0;
  overflow: visible;
  isolation: isolate;
  border: 0;
  outline: 0;
  border-radius: 17px;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
  touch-action: pan-y;
}
.armory-card-rotor{position:relative;display:grid;grid-template-columns:minmax(0,1fr);height:100%;min-height:425px;transform-style:preserve-3d;transition:transform .78s cubic-bezier(.2,.75,.2,1);border-radius:inherit}
.armory-item[data-flipped="true"] .armory-card-rotor{transform:rotateY(180deg)}
.armory-card-face {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-area: 1/1;
  min-width: 0;
  padding: 23px;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  color: var(--text);
}
.armory-card-face > * { position: relative; z-index: 1; }
.armory-card-front { transform: translateZ(1px); }
.armory-card-back { transform: rotateY(180deg) translateZ(1px); }
.armory-card-header{display:flex;align-items:center;gap:12px;min-width:0}.armory-card-header>div{flex:1;min-width:0}.armory-card-header>div>small{display:block;font-size:9px;color:var(--muted);letter-spacing:.25px}.armory-card-header>div>span{display:block;font-size:10px;color:var(--copy);line-height:1.5}.armory-card-header h3{font-size:13px;line-height:1.5;margin:4px 0;letter-spacing:-.1px;overflow-wrap:anywhere}.armory-item-icon{width:52px;height:58px;background:rgb(var(--foil-rgb)/.09);border-radius:12px}.armory-item-icon>b{background:color-mix(in srgb,var(--foil-color) 62%,#273747);color:#fff}.armory-item-icon img{width:51px;height:51px;object-fit:contain;filter:drop-shadow(0 4px 8px #0004);transition:transform .4s}
.armory-card-rank{display:grid;place-items:center;align-content:center;gap:3px;width:42px;min-height:49px;flex-shrink:0;align-self:flex-start;border-radius:11px;color:var(--foil-color);background:linear-gradient(145deg,rgb(var(--foil-rgb)/.21),rgb(var(--foil-pair)/.08));font-variant-numeric:tabular-nums}.armory-card-rank>b{font-size:23px;line-height:1.1;font-weight:800;letter-spacing:-1px;text-shadow:0 1px 12px rgb(var(--foil-rgb)/.2)}.armory-card-rank>small{font-size:7px;line-height:1.3;letter-spacing:.3px;color:var(--copy);font-weight:500}.armory-card-rank.bis{color:#e7d2a9;background:linear-gradient(135deg,#a6dce022,#a59be42e,#d6bd8c22);width:48px}.armory-card-rank.bis>b{font-size:19px;letter-spacing:-.7px}.armory-card-rank.bis>small{font-size:6px}.armory-bis-sigil{display:grid;place-items:center;width:48px;height:52px;flex-shrink:0;border-radius:12px;background:linear-gradient(130deg,#9ad4e51a,#bca2e929,#dfc79124);color:#dfd2b3;filter:drop-shadow(0 4px 14px #8ea6ed1a)}
.armory-card-face .armory-rolls{margin:22px 0 17px;min-height:125px}.armory-card-face .armory-roll{padding:8px 0}.armory-card-face .armory-roll.core small{color:var(--foil-color);background:rgb(var(--foil-rgb)/.14)}.armory-card-face .armory-fit{padding:13px 14px;background:color-mix(in srgb,var(--soft) 80%,transparent);border-radius:10px;margin-top:auto}.armory-card-face .armory-fit strong{color:var(--foil-color)}.armory-card-face .armory-fit progress::-webkit-progress-value{background:linear-gradient(90deg,rgb(var(--foil-pair)),var(--foil-color))}.armory-card-face .armory-fit progress::-moz-progress-bar{background:var(--foil-color)}
.armory-card-bottom{margin-top:auto;padding-top:16px}.armory-card-front:has(.armory-fit)>.armory-card-bottom{margin-top:0}.armory-card-bottom .armory-item-more{margin:0 0 12px}.armory-card-bottom .armory-item-more summary{font-size:10px;color:var(--copy)}.armory-card-flip{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:11px 13px;border:0;border-radius:9px;background:rgb(var(--foil-rgb)/.11);color:var(--foil-color);font-size:11px;font-weight:700;cursor:pointer;transition:background .25s,color .25s}.armory-card-flip>span{display:flex;align-items:center;gap:8px}.armory-card-flip>span:last-child{opacity:.6;transition:transform .45s,opacity .3s}.armory-card-flip:hover>span:last-child{transform:rotate(20deg);opacity:1}.armory-card-flip.to-front{background:linear-gradient(110deg,#93b9e61c,#c0a7eb26,#dac3941c);color:var(--text)}
.armory-bis-context{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 12px;font-size:10px;line-height:1.6;color:var(--copy)}.armory-bis-context>span{color:var(--muted)}.armory-bis-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}.armory-bis-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;background:color-mix(in srgb,var(--soft) 55%,transparent);color:var(--copy)}.armory-bis-row.is-owned{background:rgb(var(--foil-rgb)/.13);color:var(--text)}.armory-bis-check{display:grid;place-items:center;flex-shrink:0;width:21px;height:21px;border-radius:50%;background:var(--soft);color:var(--muted)}.armory-bis-check>i{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.5}.armory-bis-row.is-owned .armory-bis-check{background:rgb(var(--foil-rgb)/.15);color:var(--foil-color)}.armory-bis-row>div{flex:1;min-width:0}.armory-bis-row strong{font-size:11px;line-height:1.5;font-weight:700;display:block}.armory-bis-row small{display:block;font-size:9px;line-height:1.5;color:var(--muted);margin-top:2px}.armory-bis-value{font-size:10px;white-space:nowrap;color:var(--muted)}.is-owned>.armory-bis-value{font-weight:700;color:var(--text)}.armory-bis-skills{padding:10px 11px;border-radius:8px;background:var(--soft);font-size:10px;line-height:1.8;color:var(--copy);margin:12px 0 0}.armory-bis-skills>small{display:block;font-size:8px;letter-spacing:.8px;margin-bottom:4px;color:var(--muted)}.armory-bis-note{display:flex;gap:7px;margin:0 0 12px;font-size:9px;line-height:1.7;color:var(--muted)}.armory-bis-note svg{flex-shrink:0;margin-top:2px;color:var(--accent)}.armory-bis-empty{margin:20px 0;font-size:12px;color:var(--copy);line-height:1.9}
@media (hover: hover) and (pointer: fine) {
  .armory-item:hover { z-index: 2; }
  .armory-item:hover .armory-item-icon img { transform: translateY(-2px) scale(1.06); }
  .armory-card-flip:hover { background: rgb(var(--foil-rgb)/.19); }
}
.armory-item:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.armory-card-flip:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[data-theme="light"] .armory-card-rank{color:color-mix(in srgb,var(--foil-color) 55%,#263657)}[data-theme="light"] .armory-card-flip{color:color-mix(in srgb,var(--foil-color) 50%,#21304b)}[data-theme="light"] .armory-bis-row.is-owned .armory-bis-check{color:#227b64}[data-theme="light"] .armory-card-rank.bis,[data-theme="light"] .armory-bis-sigil{color:#796031}
@media(max-width:600px){.armory-card-face{padding:21px}.armory-card-rotor{min-height:410px}.armory-card-header h3{font-size:15px}.armory-card-header>div>span{font-size:11px}.armory-card-header>div>small{font-size:10px}.armory-card-rank{width:45px;min-height:52px}.armory-card-rank>b{font-size:25px}.armory-card-face .armory-roll{font-size:12px}.armory-card-flip{padding:12px 13px;font-size:12px}.armory-bis-row{padding:10px}.armory-bis-row strong{font-size:12px}.armory-bis-value{font-size:11px}.armory-bis-note{font-size:10px}}
.armory-surface .armory-card-flip{font-size:11px;font-weight:700;line-height:1.5}
[data-theme="light"] .armory-card-flip{color:color-mix(in srgb,var(--foil-color) 40%,#21304b)}
@media(max-width:600px){.armory-surface .armory-card-flip{font-size:12px}}

/* Keep the original forge, orbiting class emblem and right-hand detail panel. */
.section-context>.armory-linked-profile{flex:1 1 440px;margin:0;min-width:0}.armory-profile-strip{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;color:var(--text)}.armory-profile-strip>img{width:36px;height:36px;object-fit:cover;border-radius:9px;flex:none}.armory-profile-strip>div:nth-child(2){display:grid;gap:4px}.armory-profile-strip strong{font-size:13px;line-height:1.5}.armory-profile-strip>div>span{font-size:10px;color:var(--muted)}.armory-strip-score{display:grid;gap:2px}.armory-strip-score small{font-size:9px;color:var(--muted)}.armory-strip-score strong{color:var(--goal,var(--accent));font-size:15px}.armory-strip-status{font-size:9px;color:var(--muted)}.armory-strip-actions{display:flex;gap:12px;flex-wrap:wrap}.armory-strip-actions .armory-inline{font-size:10px}.gear-forge:has(.gear-slot-enchant:not([hidden])){--gear-blue:var(--goal,#d9bc77)}.gear-slot-copy strong{display:flex;align-items:center;justify-content:flex-start;gap:6px}.gear-slot-enchant{font-size:10px;line-height:1;padding:4px 5px;border-radius:4px;background:color-mix(in srgb,var(--goal) 12%,transparent);color:var(--goal);font-weight:700}.gear-slot-copy>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.armory-slot-detail{min-width:0}.armory-slot-detail .gear-detail-head{margin-bottom:17px}.armory-slot-surface{margin:0 0 16px;min-width:0;flex:1}.armory-slot-surface .armory-card-face{padding:18px}.armory-slot-surface .armory-card-rotor{min-height:420px}.armory-slot-surface .armory-card-face .armory-rolls{margin:17px 0 12px;min-height:105px}.armory-slot-surface .armory-bis-row small{display:none}.armory-slot-surface .armory-bis-row{padding:9px 10px;min-height:35px}.armory-slot-surface .armory-bis-row strong{font-size:12px}.armory-slot-surface .armory-bis-skills{padding:9px 11px;margin-top:10px}.armory-slot-surface .armory-bis-note{font-size:9px}.armory-slot-surface .armory-item{filter:none}.armory-slot-loading{padding:30px 20px;border-radius:11px;background:var(--soft);color:var(--copy);font-size:12px;line-height:1.8}.armory-slot-picks{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.armory-slot-picks button{padding:8px 11px;border:0;border-radius:7px;background:var(--soft);color:var(--copy);font-size:11px}.armory-slot-picks button[aria-pressed="true"]{background:var(--selection);color:var(--text)}.armory-slot-picks small{margin-left:5px;color:var(--goal);font-size:10px}
.armory-all-items{margin:18px 0 0;border:0;border-radius:13px;background:var(--soft);padding:0 22px}.armory-all-items>summary{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 0;cursor:pointer;color:var(--text);font-size:13px;font-weight:700}.armory-all-items>summary>span{display:flex;align-items:center;gap:10px}.armory-all-items>summary>span:first-child>svg{color:var(--goal)}.armory-all-items>summary small{padding:4px 7px;border-radius:5px;background:var(--selection);font-size:10px;color:var(--copy)}.armory-all-items>summary>span:last-child{font-size:11px;color:var(--muted);font-weight:500}.armory-all-items>summary>span:last-child>svg{transition:transform .3s}.armory-all-items[open]>summary>span:last-child>svg{transform:rotate(90deg)}.armory-all-items>.armory-surface{padding:0 0 22px;margin:0}.armory-all-items .armory-gear-toolbar{margin-top:12px}.armory-all-items .armory-gear-toolbar h3{font-size:20px}
@media (max-width: 600px) { .armory-all-items { margin-block-start: 10px; } }
@media(max-width:700px){.armory-profile-strip{gap:10px 15px}.armory-strip-status{display:none}.armory-strip-actions{flex-basis:100%;gap:16px;padding-left:48px}.section-context>.armory-linked-profile{flex-basis:100%}.armory-slot-surface .armory-card-face{padding:19px}.armory-all-items{padding:0 15px}.armory-all-items>summary>span:last-child{font-size:0}.armory-all-items>summary>span:last-child>svg{width:17px;height:17px}.armory-all-items>summary{font-size:12px}.armory-slot-surface .armory-card-header h3{font-size:14px}}
.gear-forge:has(.gear-slot-enchant:not([hidden])){--goal:#dfbd76;--gear-blue:#dfbd76}.armory-slot-detail .gear-detail-icon{color:#dfbd76;background:#dfbd7614}.armory-slot-detail .gear-mark{background:#8a7448;color:#fff}.armory-slot-detail .gear-mark:hover{background:#9a8150}
[data-theme="light"] .gear-forge:has(.gear-slot-enchant:not([hidden])){--goal:#927137;--gear-blue:#927137}[data-theme="light"] .armory-slot-detail .gear-detail-icon{color:#927137}
/* 60 degrees in Cartesian coordinates points up-right, or 30deg in CSS. */
@property --idle-x { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --idle-y { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --tilt-x { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --tilt-y { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

.armory-item, .gear-slot, .arcana-card, .arcana-dialog-face {
  --foil-rgb: 154 162 173;
  --foil-pair: var(--foil-rgb);
  --foil-color: rgb(var(--foil-rgb));
}
:is(.armory-item[data-rank="BiS"],.gear-slot[data-rank="BiS"],.arcana-card[data-rank="BiS"],.arcana-dialog-face[data-rank="BiS"],.armory-card-back,.arcana-back) {
  --foil-rgb: 240 205 139;
  --foil-pair: var(--foil-rgb);
  --foil-color: rgb(var(--foil-rgb));
}
:is(.armory-item,.gear-slot,.arcana-card,.arcana-dialog-face)[data-rank="S"] { --foil-rgb: 246 197 96; }
:is(.armory-item,.gear-slot,.arcana-card,.arcana-dialog-face)[data-rank="A"] { --foil-rgb: 193 136 244; }
:is(.armory-item,.gear-slot,.arcana-card,.arcana-dialog-face)[data-rank="B"] { --foil-rgb: 91 165 249; }
:is(.armory-item,.gear-slot,.arcana-card,.arcana-dialog-face)[data-rank="C"] { --foil-rgb: 85 206 146; }
:is(.armory-item,.gear-slot,.arcana-card,.arcana-dialog-face)[data-rank="D"] { --foil-rgb: 160 166 174; }

.armory-item {
  --light-direction: 30deg;
  --light-strength: .85;
  --light-fill: .09;
  --light-shoulder: .24;
  --light-peak: .54;
  --light-shift: 0%;
  --light-center: calc(52% + var(--light-shift));
  --card-pitch: calc(var(--idle-x) + var(--tilt-x));
  --card-yaw: calc(var(--idle-y) + var(--tilt-y));
  transform: perspective(1100px) rotateX(var(--card-pitch)) rotateY(var(--card-yaw));
  transition: --tilt-x .34s ease, --tilt-y .34s ease;
  animation: armory-idle-turn 11s ease-in-out var(--idle-delay, 0s) infinite paused;
}
.armory-item[data-in-view="true"] { animation-play-state: running; }
.armory-item:focus-visible, .armory-item:has(:focus-visible) { animation-play-state: paused; }
@media (hover: hover) {
  .armory-item:hover { animation-play-state: paused; }
}
@supports (opacity: calc(.85 + sin(3deg))) {
  .armory-item {
    --light-incidence: calc(sin(var(--card-pitch)) * .866 + sin(var(--card-yaw)) * .5);
    --light-strength: clamp(.72, .85 + var(--light-incidence) * 1.9, .98);
    --light-shift: clamp(-17%, var(--light-incidence) * 275%, 17%);
  }
}
.armory-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 0 4%;
  border-radius: 35%;
  pointer-events: none;
  background: linear-gradient(var(--light-direction), transparent, rgb(var(--foil-rgb)/.5));
  filter: blur(24px);
  opacity: .48;
  transform: translateZ(-24px);
}
.armory-card-face {
  background: linear-gradient(var(--light-direction), rgb(var(--foil-rgb)/.08), rgb(var(--foil-rgb)/.34)),
    var(--gear-panel, var(--surface));
  box-shadow: 0 12px 28px #03091442, 0 0 26px -15px rgb(var(--foil-rgb)/.55);
}
.armory-card-face::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(var(--light-direction), rgb(var(--foil-rgb)/var(--light-fill)) calc(var(--light-center) - 48%),
    rgb(var(--foil-rgb)/var(--light-shoulder)) calc(var(--light-center) - 23%),
    rgb(var(--foil-rgb)/var(--light-peak)) var(--light-center),
    rgb(var(--foil-rgb)/var(--light-shoulder)) calc(var(--light-center) + 21%),
    rgb(var(--foil-rgb)/var(--light-fill)) calc(var(--light-center) + 46%));
  opacity: var(--light-strength);
  mix-blend-mode: screen;
}
.armory-item:is([data-rank="BiS"],[data-flipped="true"])::before {
  background: linear-gradient(var(--light-direction), #78ecd445, #83a9fd65, #d78df465, #ffe09869);
}
:is(.armory-item[data-rank="BiS"] .armory-card-front,.armory-card-back,.arcana-card[data-rank="BiS"] .arcana-front,.arcana-back)::after {
  background: linear-gradient(var(--light-direction), #73edec16 calc(var(--light-center) - 53%),
    #73edec47 calc(var(--light-center) - 35%), #86a7ff70 calc(var(--light-center) - 22%),
    #c498fa8f calc(var(--light-center) - 9%), #fda1ce7d calc(var(--light-center) + 5%),
    #ffdf9d83 calc(var(--light-center) + 19%), #a6f8ba46 calc(var(--light-center) + 33%),
    #a6f8ba1b calc(var(--light-center) + 51%));
}
:is(.armory-card-face,.arcana-face) > .armory-holo-dots {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(var(--light-direction), #a3ffbd 0%, #86f7ff 12%,
    #9d9bff 24%, #ee9aff 36%, #ffa6be 48%, #ffdd8e 60%, #a3ffbd 72%);
  mask-image: radial-gradient(circle, #000 .8px, transparent 1.45px);
  mask-size: 6px 6px;
  opacity: .28;
  mix-blend-mode: screen;
}
.armory-card-header h3,.armory-slot-surface .armory-card-header h3{font-size:16px;line-height:1.4;letter-spacing:-.2px}
.armory-card-header>div>span{margin-top:5px}.armory-card-header>div>small{color:var(--copy)}
.armory-card-rank{min-height:48px;width:44px;background:linear-gradient(150deg,rgb(var(--foil-rgb)/.4),rgb(var(--foil-rgb)/.12));box-shadow:0 5px 18px rgb(var(--foil-rgb)/.13)}
.armory-card-rank>b{font-size:29px;text-shadow:0 0 16px rgb(var(--foil-rgb)/.45)}
.armory-card-face .armory-roll{font-size:12px}.armory-card-face .armory-roll strong{font-size:13px}
.armory-card-face .armory-fit{background:color-mix(in srgb,var(--gear-bg,var(--soft)) 78%,transparent)}
.armory-bis-value{font-size:10px}.armory-bis-row:not(.is-owned) .armory-bis-value{color:var(--copy);background:rgb(var(--foil-pair)/.13);padding:4px 6px;border-radius:5px}
.gear-guide-section .gear-detail.armory-slot-detail {
  padding: 0 15px;
  gap: 16px;
  background: transparent;
  overflow: visible;
}
.armory-slot-surface { display: flex; flex: 1 1 auto; flex-direction: column; gap: 16px; margin: 0; }
.armory-slot-surface > .armory-item { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); }
.armory-slot-surface .armory-card-rotor { height: auto; min-height: 475px; }
.armory-slot-actions { display: flex; align-items: stretch; gap: 8px; }
.armory-slot-actions .armory-slot-picks {
  flex: none; flex-wrap: nowrap; gap: 3px; align-items: stretch; margin: 0; padding: 3px;
  border-radius: 8px; background: var(--gear-panel, var(--surface)); box-shadow: var(--depth-control);
}
.armory-slot-picks button { position: relative; min-width: 34px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.armory-slot-picks button[aria-pressed="true"] { box-shadow: inset 0 -1px var(--accent); }
.armory-slot-picks .armory-pick-check { position: absolute; top: 3px; inset-inline-end: 3px; color: var(--accent); }
.armory-slot-surface .armory-bis-row { min-height: 32px; padding: 5px 9px; }
.armory-bis-row > div { display: flex; align-items: baseline; gap: 0 6px; flex-wrap: wrap; }
.armory-bis-row small, .armory-slot-surface .armory-bis-row small { display: inline; margin: 0; }
@media (min-width: 981px) {
  .gear-layout:has(.armory-slot-detail) { align-items: stretch; }
}
.armory-slot-surface .armory-card-face{padding:24px}.armory-slot-surface .armory-card-face .armory-rolls{margin:23px 0 18px;min-height:135px}
.armory-roll.useful>span{color:var(--text)}
.armory-parameters-body dt small{margin-inline-start:.5em;color:var(--muted)}
.armory-card-face .armory-roll.useful small{color:var(--text);background:color-mix(in srgb,var(--soft) 75%,transparent)}
.armory-parameters-button{
  display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  border:0;border-radius:7px;padding:8px 0;margin:0 0 8px;background:transparent;
  color:var(--copy);text-align:start;
}
.armory-surface .armory-parameters-button{font-size:11px}
.armory-parameters-button:hover{color:var(--text)}
.armory-parameters{width:min(520px,calc(100% - 28px));overflow:hidden}
.armory-parameters[open]{animation:armory-parameters-open .4s cubic-bezier(.22,.61,.36,1) both;transform-origin:center 64%}
@keyframes armory-parameters-open{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
html[data-motion="reduced"] .armory-parameters[open]{animation:none}
@media(prefers-reduced-motion:reduce){.armory-parameters[open]{animation:none}}
.armory-parameters-card.armory-item{padding:0;border-radius:inherit;transform:none;transition:none;animation:none}
.armory-parameters-card .armory-card-face{
  display:flex;flex-direction:column;max-height:calc(100dvh - 40px);
  padding:clamp(16px,3vw,25px);transform:none;
}
.armory-parameters-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.armory-parameters-top h2{margin:0;font-size:13px;font-weight:700;color:var(--text)}
.armory-parameters-top .armory-dialog-close{
  position:static;flex:none;color:var(--text);
  background:rgb(var(--foil-rgb)/.18);
}
.armory-parameters-body{min-height:0;margin-top:20px;overflow:auto;overscroll-behavior:contain}
.armory-parameters-body section + section{margin-top:19px}
.armory-parameters-body h3{color:var(--text);font-size:12px;margin:0 0 8px}
.armory-parameters-body dl{
  margin:0;padding:3px 12px;border-radius:9px;
  background:linear-gradient(var(--light-direction),rgb(var(--foil-rgb)/.08),rgb(var(--foil-rgb)/.18));
  box-shadow:inset 0 0 0 1px rgb(var(--foil-rgb)/.23);
}
.armory-parameters-body dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0}
.armory-parameters-body dl>div+div{border-top:1px solid rgb(var(--foil-rgb)/.27)}
.armory-parameters-body dt{color:var(--text);font-size:12px}
.armory-parameters-body dd{color:var(--text);font-size:12px;margin:0;font-weight:700;font-variant-numeric:tabular-nums}
[data-theme="light"] .armory-parameters-body dl>div+div{
  border-color:color-mix(in srgb,var(--foil-color) 32%,transparent);
}
.character-roster-row{cursor:pointer}
.armory-slot-detail .gear-mark{flex:1;min-width:0;width:auto;margin:0;min-height:44px}
.gear-context-actions .gear-modes{align-self:center;margin-left:0;flex-basis:112px}
.gear-context-actions{gap:12px}.gear-context-count{margin-left:5px}
.gear-slot-title{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gear-slot-enchant{flex:none;white-space:nowrap}
.gear-slot-copy{padding-right:22px}.gear-rank-badge{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:25px;height:29px;flex:none;color:var(--foil-color)}
.gear-rank-badge>svg{position:absolute;inset:0;width:100%;height:100%;fill:currentColor;opacity:.17;filter:drop-shadow(0 0 6px rgb(var(--foil-rgb)/.2))}.gear-rank-badge>b{position:relative;font-size:12px;font-weight:800;letter-spacing:-.5px;text-shadow:0 0 9px rgb(var(--foil-rgb)/.3)}
.gear-slot[data-rank="BiS"] .gear-rank-badge>b { font-size: 9px; letter-spacing: -.2px; }
.armory-card-rank { position: relative; }
.armory-collected-mark {
  position: absolute;
  inset-inline-end: -5px;
  inset-block-end: -5px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid var(--gear-panel, var(--surface));
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--foil-color);
  box-shadow: 0 2px 5px #0003;
}
.armory-collected-mark[hidden] { display: none; }
.gear-rank-badge .armory-collected-mark {
  width: 17px; height: 17px; inset-inline-end: -4px; inset-block-end: -4px;
}
.gear-rank-badge .armory-collected-mark svg { width: 11px; height: 11px; }
[data-theme="light"] .armory-collected-mark {
  color: color-mix(in srgb, var(--foil-color) 50%, #263657);
  box-shadow: var(--depth-control);
}
.gear-guide-section>.gear-layout{padding:0 3px 16px;margin:0 -3px}
.gear-guide-section .armory-slot-detail { position: relative; z-index: 1; }
@keyframes armory-idle-turn {
  0%, 100% { --idle-x: -1.4deg; --idle-y: 2.8deg; }
  25% { --idle-x: 1.9deg; --idle-y: 1.1deg; }
  50% { --idle-x: 1.1deg; --idle-y: -2.8deg; }
  75% { --idle-x: -2deg; --idle-y: -.8deg; }
}
[data-theme="light"] .armory-card-face {
  background: linear-gradient(var(--light-direction), rgb(var(--foil-rgb)/.08), rgb(var(--foil-rgb)/.24)),
    var(--gear-panel, var(--surface));
  box-shadow: var(--depth-panel);
}
[data-theme="light"] .armory-item {
  --light-fill: .065;
  --light-shoulder: .15;
  --light-peak: .33;
}
[data-theme="light"] .armory-card-face::after { mix-blend-mode: normal; }
[data-theme="light"] .armory-holo-dots { opacity: .24; mix-blend-mode: multiply; }
[data-theme="light"] .gear-detail.armory-slot-detail{background:transparent}[data-theme="light"] .gear-rank-badge{color:color-mix(in srgb,var(--foil-color) 58%,#263657)}
@media(max-width:700px){.gear-detail.armory-slot-detail{padding:15px 12px 0}.armory-slot-surface .armory-card-face{padding:22px}.gear-context-count{margin-left:auto}.armory-slot-surface .armory-card-rotor{min-height:450px}.armory-slot-surface .armory-card-header h3{font-size:15px}}
@media(max-width:640px){.gear-slot-copy{padding-right:0}.gear-slot-copy strong{justify-content:center}.gear-rank-badge{width:20px;height:23px;top:7px;right:6px;transform:none}.gear-rank-badge b{font-size:10px}.gear-slot-enchant{font-size:9px;padding:3px}.gear-slot{min-height:87px}.gear-slot-copy>small{font-size:8px}}
@media(max-width:600px){.armory-slot-surface .armory-card-rotor{min-height:440px}.armory-item::before{filter:blur(20px)}.gear-context-count{display:none}}
html[data-motion="reduced"] .armory-item {
  animation: none;
  transform: none;
  transition: none;
  --light-strength: .85;
  --light-shift: 0%;
}
html[data-motion="reduced"] :is(.armory-card-rotor,.armory-item-icon img,.armory-card-flip > span:last-child) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .armory-item { animation: none; transform: none; transition: none; --light-strength: .85; --light-shift: 0%; }
  :is(.armory-card-rotor,.armory-item-icon img,.armory-card-flip > span:last-child) { transition: none; }
}

/* Shared navigation and section shell. All sections share the same palette. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
#app { overflow-anchor: none; }
.view-toolbar {
  position: relative;
  align-items: stretch;
  border: 0;
  padding: 0;
}
.view-toolbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
.view-toolbar .view-tabs {
  position: relative;
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  min-height: 48px;
}
.view-toolbar .view-tab,
[data-theme="dark"] .view-toolbar .view-tab {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--quiet);
  font-size: 14.5px;
  line-height: 1.5;
  transition: color .24s ease;
}
.view-toolbar .view-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--selection);
  opacity: 0;
  transition: opacity .26s ease;
  pointer-events: none;
}
.view-toolbar .view-tab:hover::before { opacity: .35; }
.view-toolbar .view-tab.active,
[data-theme="dark"] .view-toolbar .view-tab.active { color: var(--text); background: transparent; box-shadow: none; }
.view-toolbar .view-tab.active::before { opacity: 1; }
.view-toolbar .view-tabs::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--tab-width, 0px);
  transform: translateX(var(--tab-x, 0px));
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent);
  pointer-events: none;
}
.view-toolbar .view-tabs.has-indicator::after {
  transition: transform .38s cubic-bezier(.22,.72,.18,1), width .38s cubic-bezier(.22,.72,.18,1);
}
.section-view {
  --section-bg: var(--soft);
  --section-panel: var(--surface);
  --section-raised: var(--surface-raised);
  --section-ink: var(--text);
  --section-copy: var(--copy);
  --section-muted: var(--muted);
  --section-blue: var(--accent);
  --section-line: var(--line);
  --section-detail: linear-gradient(145deg,var(--section-raised),var(--section-panel) 60%);
  display: flow-root;
  margin: 0;
  color: var(--section-ink);
}
.section-view.pet-wheels {
  --pw-bg: var(--section-bg); --pw-panel: var(--section-panel); --pw-panel-hi: var(--section-raised);
  --pw-node: var(--section-raised); --pw-ink: var(--section-ink); --pw-copy: var(--section-copy);
  --pw-muted: var(--section-muted); --pw-blue: var(--section-blue); --pw-line: var(--section-line);
}
.section-view.gear-guide-section {
  --gear-bg: var(--section-bg); --gear-panel: var(--section-panel); --gear-raised: var(--section-raised);
  --gear-ink: var(--section-ink); --gear-copy: var(--section-copy); --gear-muted: var(--section-muted);
  --gear-blue: var(--section-blue); --gear-line: var(--section-line);
}
.section-view .section-heading {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
  min-height: 104px;
  padding: 24px 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.section-view .section-heading h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(27px,3vw,34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--section-ink);
}
.section-view .section-heading > div:first-child { min-width: 0; }
.section-view .section-heading h2 > span { display: inline; margin: 0; color: var(--section-blue); font: inherit; font-weight: 500; }
.section-view .pw-heading h2 > span { margin-left: 12px; }
.section-view :is(.pw-context-facts,.gear-context-count) { align-items: center; margin: 0; padding-left: 24px; border-left: 1px solid var(--section-line); }
.section-view :is(.pw-context-facts b,.gear-context-count>b) { font-size: 28px; line-height: 1; letter-spacing: -1px; }
.section-view .section-context {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  min-height: 80px;
  padding: 14px 20px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 11px;
  background: var(--section-bg);
}
.section-view .section-character { display: flex; flex: 1 1 190px; align-items: center; gap: 12px; min-width: 0; }
.section-character > img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.section-character > div { min-width: 0; }
.section-character small { display: block; margin: 0 0 4px; font-size: var(--ui-caption-size); line-height: 1.4; letter-spacing: 1.2px; color: var(--section-muted); }
.section-character strong { display: block; font-size: var(--ui-label-size); line-height: 1.4; color: var(--section-ink); overflow-wrap: anywhere; }
.section-character strong > span { color: var(--section-copy); font-weight: 500; }
.section-character-symbol { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; color: var(--section-blue); }
.section-view :is(.gear-detail,.pw-detail,.fm-detail) { background: var(--section-detail); }
.armory-invite { font: var(--ui-copy-size)/1.6 var(--font-ui); }
.section-class-prompt {
  display: grid;
  grid-template: auto auto 1fr auto / minmax(0, 620px);
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 14px;
  min-block-size: 330px;
  padding: clamp(24px, 5vw, 46px) 20px;
  border-radius: 16px;
  background: var(--section-bg);
  font: var(--ui-copy-size)/1.6 var(--font-ui);
  text-align: center;
}
.section-class-prompt-icon {
  display: grid;
  place-items: center;
  inline-size: clamp(56px, 8vw, 64px);
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--section-raised);
  color: var(--section-blue);
}
.section-class-prompt-icon svg { width: 30px; height: 30px; }
.section-class-prompt h3 {
  margin: 0;
  color: var(--section-ink);
  font: 700 clamp(20px, 2vw, 25px)/1.35 var(--font-ui);
  letter-spacing: -.5px;
}
.section-class-prompt p {
  max-inline-size: 420px;
  margin: 0;
  color: var(--section-copy);
  font: var(--ui-copy-size)/1.8 var(--font-ui);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.section-class-prompt > .section-class-prompt-action {
  min-block-size: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--action);
  color: #fff;
  font: 700 var(--ui-copy-size)/1.4 var(--font-ui);
}
.section-class-prompt > .section-class-prompt-action:hover { background: var(--action-hover); }
@media (max-width: 440px) {
  .section-class-prompt { gap: 12px; }
  .section-class-prompt h3 { min-block-size: 2.7em; }
}
.activity-section .routine-summary { flex: 0 0 auto; display: block; padding: 0 0 0 24px; margin: 0; background: transparent; border: 0; border-left: 1px solid var(--section-line); border-radius: 0; }
.activity-section .summary-caption { display: none; }
.activity-section .summary-stats { gap: 24px; margin: 0; }
.activity-section .summary-stat { padding: 0; background: transparent; }
.activity-section .summary-stat-label { font-size: 10px; line-height: 1.4; }
.activity-section .summary-stat dd { margin-top: 2px; }
.activity-section .summary-stat strong { font-size: 20px; line-height: 1.2; color: var(--section-blue); }
.activity-section .summary-stat .progress-track { margin-top: 4px; }
.activity-section .activity-toolbar { padding: 14px 20px; background: var(--section-bg); border: 0; border-radius: 11px; }
.activity-section .period-button { border-color: transparent; background: var(--section-panel); }
.activity-section .period-button.active { background: var(--section-raised); color: var(--section-ink); border-color: transparent; box-shadow: inset 0 -2px var(--section-blue); }
.activity-section .activity-card { background: var(--section-panel); }
.activity-section .activity-card .card-header,
[data-theme="dark"] .activity-section .activity-card .card-header { background: linear-gradient(115deg,var(--activity-start),var(--activity-end)); }
.activity-section .activity-card .reward-line { background: var(--section-bg); }
.activity-section .activity-card .card-description { color: var(--section-copy); }
.activity-section .activity-card.completed { background: var(--section-panel); }
.section-view .fm-workspace { background: var(--section-panel); }
.section-view .fm-context .fm-head-actions { flex-shrink: 0; }
@media (max-width:640px) {
  .view-toolbar .view-tabs { gap: 2px; min-height: 44px; scrollbar-width: none; }
  .view-toolbar .view-tabs::-webkit-scrollbar { display: none; }
  .view-toolbar .view-tab,
  [data-theme="dark"] .view-toolbar .view-tab { min-height: 44px; font-size: 12px; padding: 12px 10px; }
  .section-view .section-heading { height: 104px; min-height: 104px; padding: 16px 0; gap: 12px; }
  .section-view .section-heading h2 { font-size: 27px; letter-spacing: -.8px; }
  .section-view .pw-heading h2 > span { margin-left: 0; }
  .section-view .section-context { padding: 14px; gap: 14px; }
  .section-view .section-character { flex-basis: 170px; }
  .section-view .gear-context-count { padding-left:12px; }
  .section-view .pw-context-facts { flex:1 1 100%; justify-content:space-between; padding:12px 0 0; border-left:0; border-top:1px solid var(--pw-line); gap:10px; }
  .activity-section .routine-summary { padding-left: 14px; }
  .activity-section .summary-stats { gap: 14px; }
  .activity-section .activity-toolbar { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-toolbar .view-tabs.has-indicator::after,.view-toolbar .view-tab,.view-toolbar .view-tab::before { transition: none; }
}

.progress-section .route-sidebar { background: var(--section-bg); }
.progress-section .stage-panel { background: var(--section-panel); }
.progress-section .stage-header { background: var(--section-detail); }

.activity-section .activity-card { background: color-mix(in srgb,var(--activity-hue) 6%,var(--section-panel)); }
.section-view.fm :is(.fm-workspace,.fm-sidebar,.fm-map-bar,.fm-bottom) { background: var(--section-bg); }
.progress-section .route-sidebar { padding: 20px; }
.progress-section .gs-form { display: block; padding-bottom: 20px; margin-bottom: 16px; }
.progress-section .gs-form label { margin: 0 0 12px; }
.progress-section .gs-controls { width: 100%; gap: 8px; }
.progress-section .gs-controls .button { flex-shrink: 0; white-space: nowrap; }
.progress-context-info { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--section-muted); font-size: var(--ui-detail-size); }
.progress-context-info b { margin-left: 8px; color: var(--section-blue); }
.section-view.fm .fm-drop-list { margin: 0 -8px; padding: 14px 10px; border-radius: 10px; background: linear-gradient(150deg,var(--section-panel),var(--section-bg)); }
.section-view.fm .fm-drop-list button { border-radius: 0; border-bottom: 1px solid color-mix(in srgb,var(--line) 50%,transparent); padding: 11px 8px; }
@media(max-width:640px) {
  .progress-section .route-sidebar { padding: 16px; }
}

/* Map controls: persistent heads and edge-to-edge scrolling bodies. */
.section-view.fm .fm-side-head { background: var(--section-panel); padding-bottom: 0; }
.fm-heading-actions { margin-left: auto; }
.fm-mode { position: relative; isolation: isolate; border: 0; gap: 0; grid-template-columns: 1fr 1fr; }
.fm-mode::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 6px; background: var(--section-raised); box-shadow: none; transition: transform .3s cubic-bezier(.22,.72,.18,1); }
.fm-mode.is-farm::before { transform: translateX(100%); }
.fm-mode button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.fm-tabs { position: relative; gap: 0; }
.fm-tabs button[aria-selected="true"]::after { display: none; }
.fm-tabs::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 50%; height: 2px; background: var(--section-blue); box-shadow: 0 0 9px color-mix(in srgb,var(--accent) 33%,transparent); transition: transform .3s cubic-bezier(.22,.72,.18,1); }
.fm-tabs.is-places::after { transform: translateX(100%); }
.fm-results { overflow-x: hidden; padding-left: 10px; padding-right: 10px; }
.fm-mob-copy strong,.fm-mob-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-view.fm .fm-detail { padding: 0; background: linear-gradient(150deg,var(--section-panel),var(--section-bg)); }
.fm-detail-head { flex: 0 0 auto; padding: 22px 17px 14px; background: var(--section-detail); min-width: 0; }
.fm-detail-head .fm-detail-zone { margin-bottom: 0; }
.fm-detail-close { z-index: 2; }
.fm-detail-copy { flex: 1 1 auto; overflow-x: hidden; padding: 0 0 68px; scrollbar-gutter: stable; }
.section-view.fm .fm-drop-list { margin: 0; padding: 14px 12px 8px; border-radius: 0; background: transparent; min-width: 0; }
.fm-drop-list button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-detail-actions { position: absolute; bottom: 14px; left: 17px; right: 17px; margin: 0; z-index: 2; }
.fm-detail-actions button { box-shadow: 0 3px 12px #0005; }
@media(prefers-reduced-motion:reduce) { .fm-mode::before,.fm-tabs::after { transition: none; } }

/* Light theme depth: quiet controls, raised cards and floating overlays. */
[data-theme="light"] {
  --depth-control: 0 1px 2px #203f6c24, 0 3px 6px #203f6c14;
  --depth-card: 0 2px 4px #203f6c2b, 0 5px 12px #203f6c1a;
  --depth-panel: 0 2px 4px #203f6c30, 0 8px 18px #203f6c22;
  --depth-floating: 0 3px 8px #17365c32, 0 16px 36px #17365c2b;
}
[data-theme="light"] :is(.section-context,.route-sidebar,.activity-toolbar,.armory-invite,.seo-tool-guide,.cab-panel-card,.cab-current-build) {
  box-shadow: var(--depth-card);
}
[data-theme="light"] :is(.stage-panel,.activity-card,.dungeon-choice,.gear-forge,.gear-loadout,.gear-detail:where(:not(.armory-slot-detail)),.pw-cosmos,.pw-detail,.section-class-prompt,.pw-gallery-main,.fm-workspace,.cab-journey) {
  box-shadow: var(--depth-panel);
}
[data-theme="light"] :is(.gear-slot,.gear-choice,.pw-genus,.pw-alternatives button,.goal-card,.metric,.reward-line,.fm-item-card,.fm-saved) {
  box-shadow: var(--depth-control);
}
[data-theme="light"] :is(.button,.period-button,.activity-filter,.fm-icon,.fm-select,.fm-search,.fm-levels input,.fm-more,.fm-detail-actions button,.gs-controls input,.name-input,.gear-mark,.pw-mark,.pw-roll-order>button) {
  box-shadow: var(--depth-control);
}
[data-theme="light"] :is(.character-popover,.character-dialog,.reset-options,.fm-suggestions,.fm-detail,.toast,.analytics-dialog,.analytics-choice) {
  box-shadow: var(--depth-floating);
}
[data-theme="light"] :is(.gear-slot[aria-pressed="true"],.gear-choice[aria-pressed="true"],.pw-genus[aria-pressed="true"],.stage-button.active,.fm-mob[aria-pressed="true"]) {
  box-shadow: inset 2px 0 var(--accent), var(--depth-control);
}
[data-theme="light"] .view-toolbar .view-tab.active::before {
  box-shadow: 0 2px 7px #203f6c0e;
}
[data-theme="light"] .fm-mode::before { box-shadow: var(--depth-control); }
[data-theme="light"] .fm-detail-head { box-shadow: 0 3px 9px #203f6c0c; z-index: 1; }
@media (hover:hover) and (pointer:fine) {
  [data-theme="light"] .activity-section .activity-card:hover { box-shadow: var(--depth-floating); }
  [data-theme="light"] :is(.gear-slot,.gear-choice,.pw-genus,.button,.period-button,.fm-icon):hover { box-shadow: var(--depth-card); }
}

/* Align the region chevron with the clear controls below it. */
#atlas-region {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c3d2e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
[data-theme="light"] #atlas-region {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23405f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Pointer clicks stay quiet; keyboard focus remains visible. */
:where(button,a,input,select,textarea,summary,canvas,[tabindex]):focus:not(:focus-visible) { outline:none!important; }
.fm :is(button,input,select):focus:not(:focus-visible),.fm-search:focus-within:not(:has(:focus-visible)) { outline:none!important; box-shadow:none; }
.fm-search input:focus-visible,.fm-object-search input:focus-visible { outline:none!important; }
.fm-search:has(input:focus-visible),.fm-object-search:has(input:focus-visible) { outline:2px solid var(--goal); outline-offset:2px; }
.fm-object-search { display:flex; align-items:center; gap:8px; margin:10px 18px 4px; padding:8px 10px; border-radius:7px; color:var(--muted); background:var(--section-bg); flex-shrink:0; min-width:0; }
.fm-object-search input { min-width:0; width:100%; border:0; border-radius:0; background:transparent; color:var(--text); font-size:10px; padding:0; box-shadow:none; }
.fm-object-search input::placeholder { color:var(--quiet); }
.fm-object-search input::-webkit-search-cancel-button { display:none; }
.fm-object-search button { display:grid; place-items:center; background:none; border:0; color:var(--quiet); padding:0; }
.fm-object-search>svg { flex-shrink:0; }
.fm-object-search[hidden] { display:none; }
.stage-power { padding:15px; margin-bottom:14px; background:var(--section-bg); border-radius:10px; }
.stage-power>span { display:block; font-size:9px; letter-spacing:1px; font-weight:700; color:var(--section-muted); }
.stage-power>strong { display:block; color:var(--section-blue); font-size:25px; letter-spacing:-.8px; margin-top:7px; }

[data-input-mode="pointer"] :is(button,a,input,select,textarea,summary,canvas,[tabindex]):focus { outline:none!important; }
[data-input-mode="pointer"] :is(.fm-search,.fm-object-search):focus-within { outline:none!important; box-shadow:none!important; }
[data-inertia] { scrollbar-width:none; scroll-behavior:auto; }
[data-inertia]::-webkit-scrollbar { display:none; }
[data-inertia].is-dragging,[data-inertia].is-dragging * { cursor:grabbing; user-select:none; }
@media(min-width:801px) {
  .progress-section .stage-rail {
    grid-auto-rows:minmax(3.5rem,max-content);
    gap:6px;
    max-height:min(31rem,max(12rem,calc(100dvh - 215px)));
    overflow-y:auto;
  }
}

/* A stage change swaps content inside a stable frame, without moving the page. */
.progress-section { --progress-panel-height:clamp(660px,78dvh,760px); }
.progress-section .route-layout { align-items:stretch; overflow-anchor:none; }
.progress-section .route-sidebar { display:flex; flex-direction:column; height:var(--progress-panel-height); padding:0; overflow:hidden; border:0; border-radius:14px; }
.progress-section .gs-form { flex-shrink:0; padding:22px 20px; margin:0; background:var(--section-detail); border-bottom:1px solid var(--section-line); }
.progress-section .gs-controls input { height:40px; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:6px; }
[data-theme="dark"] .progress-section .gs-controls input { border-color:transparent; }
.progress-section .stage-rail { flex:1; min-height:0; max-height:none; padding:14px; overflow-y:auto; align-content:start; }
.progress-section .stage-panel { display:flex; flex-direction:column; height:var(--progress-panel-height); padding:0; overflow:hidden; }
.progress-section .stage-header { flex:0 0 176px; min-height:176px; margin:0; padding:23px 29px; }
.progress-section .stage-heading { font-size:clamp(26px,3vw,40px); line-height:1.14; }
.progress-section .stage-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:24px 29px; }
.progress-section .stage-footer { flex-shrink:0; margin:0; padding:18px 29px; background:var(--section-detail); border-top:1px solid var(--section-line); }
.progress-section .stage-note { margin:22px 0 0; }
.stage-next-steps { margin:0 0 18px; padding:12px; border-radius:11px; background:var(--section-bg); }
.stage-next-steps h3 { margin:0 0 8px; color:var(--section-ink); font-size:13px; font-weight:800; }
.stage-next-steps ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.stage-next-steps li { min-width:0; }
.stage-next-step { display:flex; flex-direction:column; justify-content:space-between; gap:7px; height:100%; padding:9px 10px; border-radius:7px; background:var(--section-panel); color:var(--section-ink); text-decoration:none; transition:background .18s ease; }
.stage-next-step:hover,.stage-next-step:focus-visible { background:var(--section-raised); }
.stage-next-step strong,.stage-next-step small { display:block; line-height:1.55; }
.stage-next-step strong { font-size:12px; }
.stage-next-step small { margin-top:3px; color:var(--section-copy); font-size:11px; }
.stage-next-destination { display:flex; align-items:center; justify-content:space-between; gap:7px; color:var(--section-blue); font-size:10px; white-space:nowrap; }
.stage-next-destination svg { flex:none; }
.character-history,.character-collection { margin:18px 0; border-radius:12px; background:var(--surface); color:var(--text); }
.character-collection { padding:18px; }
.character-collection h2,.db-acquisition h2 { margin:0 0 12px; font-size:17px; line-height:1.35; }
.character-collection-grid,.db-acquisition-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.character-collection-card,.db-acquisition-card { min-width:0; padding:13px; border-radius:9px; background:var(--soft); }
.character-collection-card h3,.db-acquisition-card h3 { margin:0 0 8px; font-size:13px; }
.character-collection-card p,.db-acquisition-card p { margin:0 0 8px; color:var(--copy); font-size:12px; }
.character-collection-item { display:flex; align-items:center; gap:9px; margin:0 0 8px; font-size:13px; }
.character-collection-item img { flex:none; border-radius:6px; object-fit:contain; background:var(--surface); }
.character-collection-item span,.character-collection-card small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.character-collection-card .character-title { display:block; margin:0 0 8px; }
.character-title summary { cursor:pointer; font-size:12px; line-height:1.5; }
.character-title ul { margin:4px 0; padding-inline-start:18px; color:var(--copy); font-size:11px; }
.character-collection-card a,.character-history a,.db-acquisition-card a { color:var(--accent); font-size:11px; text-underline-offset:3px; }
.character-collection-card a:hover,.character-history a:hover,.db-acquisition-card a:hover { text-decoration:underline; }
.character-history>summary { display:flex; align-items:center; gap:9px; padding:13px 17px; min-height:46px; cursor:pointer; font-size:13px; font-weight:750; list-style:none; }
.character-history>summary::-webkit-details-marker { display:none; }
.character-history>summary>svg { color:var(--accent); flex:none; }
.character-history>summary::after { content:''; margin-inline-start:auto; width:7px; height:7px; border:solid var(--accent); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.character-history[open]>summary::after { transform:rotate(225deg); }
.character-history-body { padding:0 17px 15px; }
.character-history-body p { margin:0; color:var(--copy); font-size:12px; }
.character-history-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:8px; }
.character-history figure { min-width:0; margin:0; padding:11px 13px 9px; border-radius:9px; background:var(--soft); }
.character-history figcaption { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 9px; color:var(--copy); font-size:12px; }
.character-history figcaption strong { color:var(--text); font-size:19px; font-variant-numeric:tabular-nums; }
.character-history figcaption small { color:var(--muted); font-size:11px; }
.character-history-plot { display:block; width:100%; height:82px; margin:4px 0; overflow:visible; color:var(--accent); }
.character-history-plot .chart-guide { stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.character-history-plot polyline { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.character-history-plot circle { fill:currentColor; }
.character-history-dates { display:flex; justify-content:space-between; gap:9px; color:var(--muted); font-size:10px; }
.character-history-samples summary { display:list-item; color:var(--accent); font-size:11px; cursor:pointer; }
.character-history-samples table { width:100%; margin-top:7px; text-align:left; font-size:12px; font-variant-numeric:tabular-nums; }
.character-history-samples :is(th,td) { padding:5px 6px; border-bottom:1px solid var(--line); }
.db-acquisition { margin:0 0 18px; scroll-margin-top:100px; }
.db-acquisition-card { background:var(--surface); scroll-margin-top:100px; }
@media(max-width:680px) {
  .character-collection-grid,.db-acquisition-grid { grid-template-columns:1fr; }
  .character-history-body { padding-inline:12px; }
}
@media(max-width:420px) {
  .character-history-charts { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .stage-next-steps ul { grid-template-columns:minmax(0,1fr); gap:5px; }
  .stage-next-step { flex-direction:row; align-items:center; gap:9px; }
  .stage-next-destination span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
.stage-guide-links{margin:20px 0 0;font-size:.8rem}
.stage-guide-links strong{display:block;color:var(--text);font-size:.84rem;margin-bottom:6px}
.stage-guide-links ul{display:flex;flex-wrap:wrap;gap:5px 15px;padding:0;margin:0;list-style:none}
.stage-guide-links a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.stage-guide-links a:hover{color:var(--text)}
.stage-power small { display:block; color:var(--section-muted); font-size:10px; line-height:1.7; margin-top:9px; }
.stage-power>strong { font-size:22px; white-space:nowrap; }
@media(max-width:800px) {
  .progress-section { --progress-panel-height:740px; }
  .progress-section .route-sidebar { height:auto; }
  .progress-section .stage-rail { max-height:200px; }
  .progress-section .stage-header { flex-basis:210px; min-height:210px; padding:20px; }
  .progress-section .stage-body { padding:20px; }
  .progress-section .stage-footer { padding:16px 20px; }
}

.database-section .db-navigation{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 22px}.database-section .db-navigation a{padding:9px 14px;border:0;border-radius:8px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:700}.database-section .db-navigation a[aria-current]{background:var(--selection);color:var(--text)}
.db-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(140px,1fr) minmax(140px,1fr);gap:18px;padding:22px 24px;border:0;border-radius:12px;background:var(--surface)}.db-toolbar label{display:block;margin:0 0 9px;color:var(--copy);font-size:11px}.db-toolbar select,.db-search-input{height:43px;width:100%;border:0;border-radius:8px;color:var(--text);background:var(--soft)}.db-toolbar select{padding:0 12px;font:inherit;font-size:12px}.db-search-input{display:flex;gap:11px;align-items:center;padding:0 13px;color:var(--muted)}.db-search-input input{width:100%;min-width:0;height:100%;border:0;background:none;color:var(--text);font:inherit;font-size:12px}.db-search-input input::placeholder{color:var(--muted)}
.db-kind-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.db-kind-tabs button{border:0;border-radius:8px;background:var(--soft);padding:9px 13px;font-size:11px;font-weight:700;color:var(--muted)}.db-kind-tabs button[aria-pressed="true"]{background:var(--selection);color:var(--text)}.db-kind-tabs small{margin-left:7px;font-size:10px;font-weight:400;color:var(--muted)}.db-result-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:18px 0 14px;font-size:11px;color:var(--muted)}.db-result-bar p{display:flex;gap:14px;margin:0;min-height:20px}.db-result-bar strong{font-weight:500;color:var(--text)}.db-result-bar button{border:0;background:none;color:var(--accent);font-size:11px;padding:5px}
.db-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.db-card{display:flex;align-items:flex-start;gap:15px;min-width:0;padding:20px 22px;border:0;border-radius:12px;background:var(--surface);color:var(--text);transition:background .2s}.db-card:hover{background:var(--surface-hover)}.db-card-icon{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;background:var(--soft);border-radius:10px;color:var(--accent)}.db-card-copy{min-width:0}.db-card-copy>small{display:block;color:var(--muted);font-size:9px;letter-spacing:.6px;text-transform:uppercase}.database-section .db-card h2{font-size:15px;line-height:1.5;margin:5px 0 8px;letter-spacing:-.2px;overflow-wrap:anywhere}.db-card p{font-size:11px;line-height:1.65;color:var(--copy);margin:0 0 8px}.db-card-copy>span{font-size:10px;color:var(--muted)}.db-card-arrow{margin-left:auto;color:var(--accent);font-size:18px}.db-card[hidden]{display:none}.db-more{display:flex;margin:22px auto}.db-empty{padding:35px 25px;border:0;border-radius:12px;background:var(--surface);text-align:center}.db-empty strong{font-size:18px}.db-empty p{font-size:12px;color:var(--copy)}
.db-entry-action{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 23px}.db-entry-action>a{display:inline-flex;align-items:center;padding:10px 17px;border:0;border-radius:8px;background:var(--soft);color:var(--text);font-size:12px;font-weight:700}.db-entry-action>a:first-child{background:var(--action);color:#fff}.database-section .db-lead{font-size:13px;line-height:1.8;color:var(--copy);max-width:100ch;margin:0 0 20px}.db-facts{display:flex;gap:15px;flex-wrap:wrap;margin:0 0 27px}.db-facts>span{padding:16px 20px;background:var(--surface);border:0;border-radius:10px;color:var(--copy);font-size:12px}.db-facts strong{font-size:21px;color:var(--text);margin-left:15px}.database-section>section{margin:28px 0}.database-section>section>h2{font-size:21px;line-height:1.4;margin:0 0 15px}.database-section>section>p{color:var(--copy);font-size:12px;line-height:1.8}.database-section table{width:100%;border-collapse:separate;border-spacing:0 5px;table-layout:fixed;text-align:left;font-size:12px}.database-section th,.database-section td{border:0;vertical-align:top;padding:13px 15px;background:var(--surface);overflow-wrap:anywhere}.database-section th:first-child{width:40%;border-radius:8px 0 0 8px}.database-section td:last-child{border-radius:0 8px 8px 0}.database-section thead th{color:var(--muted);font-size:11px;font-weight:400;background:var(--soft)}.database-section tbody th{font-weight:700;color:var(--text)}.database-section th small{display:block;margin-top:5px;color:var(--muted);font-size:10px;font-weight:400}.database-section .db-drop-table th:first-child{width:70%}.database-section .db-note{font-size:11px;color:var(--muted)}
.database-section .db-provenance{margin:28px 0;padding:17px 20px;background:var(--soft);border:0;border-radius:10px;box-shadow:none;color:var(--muted);font-size:11px;line-height:1.8}.db-provenance>summary{cursor:pointer;font-size:11px;color:var(--accent)}.db-provenance p{margin:12px 0}.db-provenance nav{display:flex;flex-wrap:wrap;gap:12px 20px}.home-database-link{display:inline-flex;align-items:center;gap:12px;padding:11px 16px;background:var(--surface);color:var(--accent);border:0;border-radius:9px;font-size:12px;font-weight:700}.view-tab[aria-busy="true"]{opacity:.6}.fm-heading-actions .fm-database{font-size:11px;padding:9px 13px;white-space:nowrap}
@media(max-width:700px){.db-toolbar{grid-template-columns:1fr 1fr;padding:18px;gap:14px}.db-search-field{grid-column:1/-1}.db-cards{grid-template-columns:1fr}.db-card{padding:17px 18px}.db-card-icon{width:37px;height:37px}.db-kind-tabs button{padding:8px 10px;font-size:10px}.db-kind-tabs small{margin-left:4px}.db-result-bar{font-size:10px}.db-result-bar p{gap:10px}.home-database-link{padding:9px 12px;font-size:11px}.home-section-heading{flex-wrap:wrap}.database-section thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.database-section table,.database-section tbody{display:block}.database-section tr{display:flex;flex-wrap:wrap;gap:8px 15px;padding:15px;margin:8px 0;background:var(--surface);border-radius:9px}.database-section td,.database-section th{padding:0;background:none;font-size:12px}.database-section th:first-child{width:100%;flex-basis:100%}.database-section td[data-label]::before{content:attr(data-label) ': ';color:var(--muted);font-size:10px}.database-section td:last-child{flex-basis:100%;margin-top:5px}}
.db-navigation small{margin-left:7px;color:var(--muted);font-size:10px;font-weight:400}

.view-toolbar[hidden],.character-switcher[hidden],.bottom-tools[hidden],#tool-page-title[hidden] { display:none; }
.portal-home { --home-panel:var(--art-base); --home-muted:var(--art-muted); --home-ink:var(--text); --home-blue:var(--accent); color:var(--home-ink); padding-top:24px; }
.portal-home a { color:inherit; text-decoration:none; }
.home-hero { position:relative; isolation:isolate; overflow:hidden; min-height:570px; border-radius:20px; background:var(--art-base); display:flex; align-items:center; }
/* Inset the artwork and overlap its shade to prevent bright antialiased corner seams. */
.home-hero-art { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; object-position:67% 55%; z-index:-2; opacity:.82; clip-path:inset(1px round 19px); }
.home-hero::before { content:''; position:absolute; inset:-1px; z-index:-1; background:linear-gradient(90deg,var(--art-tint) 5%,color-mix(in srgb,var(--art-tint) 97%,transparent) 27%,color-mix(in srgb,var(--art-tint) 82%,transparent) 46%,color-mix(in srgb,var(--art-tint) 30%,transparent) 73%,transparent),linear-gradient(0deg,color-mix(in srgb,var(--art-base) 60%,transparent),transparent 55%); }
.home-hero-copy { padding:60px 58px; max-width:740px; width:61%; }
.home-eyebrow { display:flex; align-items:center; gap:10px; font-size:10px; line-height:1.5; font-weight:800; letter-spacing:2px; color:var(--home-blue); margin:0 0 26px; }
.home-eyebrow span { opacity:.45; }
.home-hero h1 { font-size:clamp(42px,4.7vw,64px); font-weight:800; letter-spacing:-2.4px; line-height:1.1; margin:0; color:var(--text); text-wrap:balance; }
.home-hero h1 em { font-style:normal; color:var(--accent); }
.home-intro { max-width:430px; font-size:14px; line-height:1.9; color:var(--art-muted); margin:26px 0 30px; }
.home-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.home-actions a { display:inline-flex; align-items:center; justify-content:space-between; gap:22px; min-height:48px; padding:12px 20px; font-size:12px; font-weight:800; border-radius:8px; transition:background .25s,transform .25s; }
.home-actions .home-primary { color:white; background:var(--action); box-shadow:0 6px 24px color-mix(in srgb,var(--action) 17%,transparent); }
.home-actions .home-primary:hover { background:var(--action-hover); transform:translateY(-2px); }
.home-actions .home-secondary { background:color-mix(in srgb,var(--art-tint) 70%,var(--surface)); color:var(--text); }
.home-secondary:hover { background:var(--surface-hover); }
.home-art-caption { position:absolute; bottom:27px; right:30px; font-size:11px; letter-spacing:3px; font-weight:800; color:var(--art-muted); }
.home-art-caption span { display:block; font-size:7px; letter-spacing:1px; text-align:right; margin-top:5px; opacity:.65; }
.home-explore { padding-top:62px; }
.home-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 0 28px; }
.home-section-heading .home-eyebrow { margin-bottom:12px; font-size:9px; }
.home-section-heading h2 { font-size:34px; line-height:1.2; letter-spacing:-1px; margin:0; }
.home-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:18px; }
.home-card { position:relative; isolation:isolate; display:flex; overflow:hidden; border-radius:15px; background:var(--home-panel); min-height:324px; transition:transform .3s,box-shadow .3s; }
.home-card::before { content:""; position:absolute; inset:-1px; z-index:-1; background:linear-gradient(90deg,var(--art-tint) 5%,color-mix(in srgb,var(--art-tint) 91%,transparent) 52%,color-mix(in srgb,var(--art-tint) 43%,transparent)),linear-gradient(0deg,var(--art-base),transparent 87%); }
.home-card:hover { transform:translateY(-3px); box-shadow:0 12px 35px #0002; }
.home-card>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; opacity:.78; clip-path:inset(1px round 14px); transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.home-card:hover>img { transform:scale(1.035); }
.home-card-copy { display:flex; flex-direction:column; align-items:flex-start; width:100%; min-width:0; padding:32px; }
.home-card-label { display:flex; align-items:center; gap:12px; font-size:9px; letter-spacing:1.5px; font-weight:800; color:var(--home-blue); margin-bottom:24px; }
.home-card-label b { font-size:11px; opacity:.55; font-variant-numeric:tabular-nums; }
.home-card h3 { margin:0 0 14px; font-size:27px; line-height:1.22; letter-spacing:-.9px; max-width:330px; }
.home-card p { margin:0; color:var(--home-muted); font-size:12px; line-height:1.9; max-width:330px; }
.home-card-link { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:auto; padding-top:28px; width:100%; font-size:14px; line-height:1.45; font-weight:800; color:var(--home-blue); }
.home-card-link>span:last-child { font-size:20px; transition:transform .25s; }
.home-card:hover .home-card-link>span:last-child { transform:translate(2px,-2px); }
.home-progress { min-height:370px; }
.home-progress p { max-width:340px; }
.home-route-preview { display:flex; align-items:center; gap:12px; margin-top:26px; width:100%; max-width:310px; color:var(--art-muted); font-size:13px; font-weight:700; }
.home-route-preview i { flex:1; height:1px; background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 58%,transparent)); }
.home-route-preview strong { display:flex; align-items:baseline; gap:5px; font-size:25px; color:var(--accent); letter-spacing:-1px; }
.home-route-preview strong span { font-size:9px; letter-spacing:0; opacity:.6; }
.home-activities>img { object-position:70% center; }
.home-routine-preview { width:100%; display:grid; gap:10px; margin-top:24px; }
.home-routine-preview>span { display:flex; align-items:center; gap:12px; font-size:11px; padding:10px 14px; border-radius:8px; background:color-mix(in srgb,var(--surface) 90%,transparent); backdrop-filter:blur(4px); }
.home-routine-preview i { display:grid; place-items:center; width:22px; height:22px; font-size:11px; font-style:normal; color:var(--accent); background:var(--selection); border-radius:50%; }
.home-routine-preview>span+span i { color:var(--accent); background:var(--soft); }
.home-routine-preview b { margin-left:auto; color:var(--home-muted); font-size:9px; opacity:.5; }
.home-pets img { object-position:65% center; }
.home-pets h3,.home-pets p { max-width:285px; }
.home-equipment>img { object-position:70% center; }
.home-equipment p { max-width:300px; }
.home-map { grid-column:1/-1; min-height:290px; }
.home-map>img { object-position:70% 55%; }
.home-map h3 { font-size:34px; }
.home-map p { max-width:445px; }
.home-map .home-card-link { width:280px; }
.home-map-compass { position:absolute; top:32px; right:36px; line-height:2.2; text-align:center; color:var(--art-muted); font-size:12px; }
.home-start { display:flex; gap:22px; align-items:center; padding:30px 32px; margin-top:34px; border-radius:15px; background:linear-gradient(110deg,var(--surface),var(--art-tint)); box-shadow:0 10px 32px #00000014; }
.home-start-symbol { color:var(--home-blue); font-size:40px; }
.home-start h2 { font-size:18px; letter-spacing:-.4px; margin:0 0 9px; }
.home-start p { color:var(--home-muted); font-size:11px; max-width:650px; line-height:1.8; margin:0; }
.home-start>a { display:flex; align-items:center; gap:28px; flex-shrink:0; margin-left:auto; font-size:14px; font-weight:800; color:var(--home-blue); padding:12px 0 12px 20px; }
.home-copyright { color:var(--home-muted); opacity:.6; font-size:9px; padding:12px; margin:0; }
[data-theme="light"] .home-card { box-shadow:var(--depth-card); }
@media(max-width:1000px) { .home-hero-copy { padding:40px; width:66%; } .home-hero h1 { font-size:50px; letter-spacing:-2px; } .home-hero { min-height:530px; } .home-card-copy { padding:27px; } .home-card h3 { font-size:24px; } }
@media(max-width:640px) {
  .portal-home { padding-top:14px; }
  .home-hero { min-height:660px; align-items:flex-end; border-radius:14px; }
  .home-hero-art { width:100%; height:64%; object-position:76% top; clip-path:inset(1px round 13px); }
  .home-hero::before { background:linear-gradient(0deg,var(--art-base) 9%,var(--art-tint) 44%,color-mix(in srgb,var(--art-tint) 63%,transparent) 66%,transparent 93%); }
  .home-hero-copy { padding:300px 24px 30px; width:100%; max-width:none; }
  .home-hero h1 { font-size:clamp(32px,8.8vw,42px); letter-spacing:-1.6px; }
  .home-eyebrow { margin-bottom:17px; font-size:9px; }
  .home-intro { font-size:12px; line-height:1.8; margin:20px 0 23px; max-width:360px; }
  .home-actions { gap:10px; }
  .home-actions a { padding:11px 14px; font-size:11px; gap:13px; }
  .home-art-caption { display:none; }
  .home-explore { padding-top:38px; }
  .home-section-heading { align-items:flex-start; margin-bottom:20px; }
  .home-section-heading h2 { font-size:28px; }
  .home-grid { grid-template-columns:1fr; gap:14px; }
  .home-progress { min-height:350px; }
  .home-card { min-height:300px; }
  .home-card-copy { padding:26px; }
  .home-card h3 { font-size:26px; }
  .home-card p { font-size:12px; }
  .home-card-label { margin-bottom:21px; }
  .home-map { grid-column:auto; }
  .home-map h3 { font-size:29px; }
  .home-map .home-card-link { width:100%; }
  .home-start { flex-wrap:wrap; gap:14px; padding:26px; margin-top:20px; }
  .home-start-symbol { display:none; }
  .home-start>a { margin:0; padding:8px 0 0; }
  .home-copyright { padding:10px 3px; line-height:1.8; }
}
@media(prefers-reduced-motion:reduce) { .home-card,.home-card>img,.home-card-link>span:last-child,.home-actions a { transition:none; transform:none!important; } }

.site-footer {
  display:block; margin:25px 0 24px; padding:clamp(16px,3.3vw,30px);
  border:0; border-radius:14px; color:var(--copy);
  background:radial-gradient(ellipse at 95% 0,color-mix(in srgb,var(--accent) 13%,transparent),transparent 58%),var(--surface);
}
.footer-main,.footer-meta-row { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.footer-brand {
  display:inline-flex; align-items:baseline; margin:0;
  color:var(--text); font-size:25px; font-weight:800; line-height:1; letter-spacing:-.055em;
}
.footer-brand b { color:var(--accent); }
.footer-brand span:last-child { color:var(--quiet); font-size:.72em; margin-left:3px; }
.footer-identity p { margin:8px 0 0; color:var(--quiet); font-size:11px; }
.footer-community { display:flex; gap:7px; flex-wrap:wrap; }
.footer-channel {
  display:inline-flex; align-items:center; gap:7px; min-height:37px; padding:7px 11px; border-radius:7px;
  background:var(--soft); color:var(--text); font-size:11px; font-weight:700;
}
.footer-channel:hover { color:var(--text); background:var(--surface-hover); }
.footer-channel :is(svg,.boosty-icon) { flex:none; width:17px; height:17px; color:var(--accent); }
.footer-meta-row { margin-top:17px; padding-top:10px; border-top:1px solid var(--line); color:var(--quiet); }
.footer-meta-row .analytics-preferences { font-size:11px; }
[data-theme="light"] .footer-channel { border:1px solid var(--line); }
@media(max-width:640px) {
  .footer-main { align-items:flex-start; flex-direction:column; gap:13px; }
  .footer-meta-row { gap:8px; flex-wrap:wrap; }
  .footer-channel { min-height:34px; padding:6px 8px; }
}

.home-news{padding-top:52px}.news-all{display:flex;gap:18px;align-items:center;white-space:nowrap;font-size:13px;font-weight:800;color:var(--home-blue)!important;padding:10px 0}.news-home-grid{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:1fr 1fr;gap:18px}.news-card{display:flex;background:var(--home-panel,#101d31);color:var(--home-ink,var(--text));border-radius:14px;overflow:hidden;min-width:0;text-decoration:none;transition:transform .25s,box-shadow .25s}.news-card:hover{transform:translateY(-3px);box-shadow:0 10px 30px #0002}.news-card-art{position:relative;width:34%;flex:0 0 34%;overflow:hidden;background:#15223b}.news-card-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}.news-card:hover img{transform:scale(1.04)}.news-card-art::after{content:'';position:absolute;inset:-1px;background:linear-gradient(0deg,#0c152bcc,transparent 70%)}.news-category{position:relative;display:inline-block;z-index:1;background:#21456c;color:#cfdef6;padding:5px 8px;font-size:9px;font-weight:800;letter-spacing:.3px;border-radius:4px}.news-card-art>.news-category{position:absolute;left:14px;bottom:14px}.news-events{background:#40365f;color:#e1d6ff}.news-community{background:#2a3b61;color:#d2ddff}.news-card-copy{padding:22px;min-width:0;display:flex;flex-direction:column;flex:1}.news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:10px;color:var(--home-muted,var(--muted));margin-bottom:12px}.news-meta>span:first-child{font-weight:700}.news-card h3{font-size:19px;line-height:1.35;letter-spacing:-.5px;margin:0 0 10px}.news-card p{font-size:12px;line-height:1.8;color:var(--home-muted,var(--muted));margin:0}.news-card-more{font-size:13px;font-weight:800;color:var(--home-blue,var(--accent));display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:auto;padding-top:18px}.news-card-more>span{font-size:19px}.news-featured{grid-row:1/3;display:flex;flex-direction:column}.news-featured .news-card-art{width:100%;flex-basis:auto;height:230px}.news-featured h3{font-size:27px;line-height:1.2}.news-featured .news-card-copy{padding:28px}.news-featured p{font-size:12px}.news-page{padding-block-end:25px}.news-article{padding:42px 0 25px;color:var(--text)}.news-back{display:inline-flex;align-items:center;font-size:12px;font-weight:700;margin-bottom:30px;color:var(--accent)}.news-article h1{font-size:clamp(30px,4.4vw,50px);line-height:1.18;letter-spacing:-1.7px;margin:0 0 18px}.news-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.news-filters button{border:0;border-radius:6px;background:var(--surface);color:var(--copy);padding:10px 14px;font-size:12px;font-weight:700}.news-filters [aria-pressed=true]{background:var(--selection);color:var(--accent)}.news-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.news-archive-grid>div{display:flex;min-width:0}.news-archive-grid .news-card{flex-direction:column;width:100%}.news-archive-grid .news-card-art{width:100%;height:200px;flex-basis:auto}.news-article{max-width:900px;margin:auto}.news-article header{max-width:800px}.news-article-lead{font-size:16px;line-height:1.8;color:var(--copy);margin:0 0 28px}.news-article-image{border-radius:14px;overflow:hidden;height:330px;background:var(--surface)}.news-article-image img{width:100%;height:100%;object-fit:cover}.news-article-body{max-width:750px;margin:30px auto}.news-article-body p{font-size:15px;line-height:1.95;color:var(--copy);margin:0 0 20px}.news-article-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;padding:22px 0;font-size:12px;border-top:1px solid var(--line);color:var(--muted)}.news-article-footer a{font-weight:800}.news-no-results{font-size:13px;color:var(--muted);padding:30px 0}[data-theme=light] .news-card{background:#e5edf9;box-shadow:var(--depth-card)}
@media(max-width:900px){.news-home-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}.news-featured{grid-column:1/-1;grid-row:auto;flex-direction:row}.news-featured .news-card-art{width:45%;flex:0 0 45%;height:auto;min-height:280px}.news-home-grid>.news-card:not(.news-featured){flex-direction:column}.news-home-grid>.news-card:not(.news-featured) .news-card-art{width:100%;height:180px;flex-basis:auto}.news-archive-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.home-news{padding-top:36px}.home-news .home-section-heading{gap:12px;align-items:center}.home-news h2{font-size:25px;max-width:230px}.news-all{font-size:11px;gap:8px}.news-home-grid{display:flex;flex-direction:column;gap:14px}.news-featured{flex-direction:column}.news-featured .news-card-art{width:100%;flex-basis:auto;height:210px;min-height:0}.news-featured .news-card-copy{padding:23px}.news-featured h3{font-size:25px}.news-home-grid>.news-card:not(.news-featured){flex-direction:row}.news-home-grid>.news-card:not(.news-featured) .news-card-art{width:30%;flex:0 0 30%;height:auto}.news-card-copy{padding:19px}.news-card h3{font-size:18px}.news-card-art>.news-category{left:8px;bottom:10px;font-size:8px;padding:5px}.news-archive-grid{grid-template-columns:1fr}.news-article{padding-top:28px}.news-article h1{font-size:34px;letter-spacing:-1px}.news-article-lead{font-size:14px}.news-article-body p{font-size:14px}.news-article-image{height:220px}.news-meta{font-size:9px;gap:8px}.news-card-more{font-size:13px}.news-back{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.news-card,.news-card img{transition:none!important;transform:none!important}}

.news-channel{display:flex;justify-content:flex-end;padding-top:18px;font-size:11px;color:var(--home-muted)}.news-channel a{color:var(--home-blue)!important;font-weight:700}
.news-home-grid{grid-template-rows:auto;align-items:stretch;min-height:516px}.news-featured{grid-row:auto}.news-home-side{position:relative;min-width:0;display:flex;flex-direction:column;gap:0}.news-side-viewport{position:relative;flex:1;min-height:516px;overflow:hidden;border-radius:14px}.news-side-track{position:absolute;inset:0;display:flex;flex-direction:column;gap:var(--news-gap,18px);will-change:transform}.news-track-item{flex:0 0 calc((100% - var(--news-total-gap,18px))/var(--news-visible,2));min-height:0;min-width:0}.news-track-item>.news-card{height:100%}.news-home-grid .news-card:hover{transform:none}.news-carousel-count{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.news-carousel-arrow{position:absolute;left:50%;transform:translateX(-50%);width:124px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--home-blue,var(--accent));opacity:.66;cursor:pointer;transition:opacity .2s;z-index:2}.news-carousel-arrow svg{width:112px;height:32px;display:block;pointer-events:none;overflow:visible}.news-carousel-arrow path{fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.news-carousel-arrow .news-arrow-wing{stroke-opacity:.32;stroke-width:.9}.news-carousel-arrow .news-arrow-frame{fill:currentColor;fill-opacity:.045;stroke-opacity:.32;stroke-width:.8;transition:stroke-opacity .2s,fill-opacity .2s}.news-carousel-arrow .news-arrow-head{stroke-width:1.6;stroke-opacity:.95}.news-carousel-arrow:hover .news-arrow-frame{fill-opacity:.09;stroke-opacity:.65}.news-carousel-arrow:hover svg{filter:drop-shadow(0 0 5px #71a8e83d)}.news-carousel-prev{top:-40px}.news-carousel-next{bottom:-46px}.news-carousel-arrow:hover{opacity:.82}.news-carousel-arrow:focus-visible{opacity:.9;outline:1px solid var(--accent);outline-offset:3px;border-radius:4px}.news-carousel-arrow:disabled{opacity:.16;cursor:default}.news-home-side[data-news-visible="3"] .news-card{flex-direction:row}.news-home-side[data-news-visible="3"] .news-card-art{width:30%;height:auto;flex:0 0 30%}.news-home-side[data-news-visible="3"] .news-card-copy{padding:14px 17px}.news-home-side[data-news-visible="3"] .news-meta{font-size:9px;line-height:1.4;margin-bottom:7px;gap:7px 12px}.news-home-side[data-news-visible="3"] .news-card h3{font-size:16px;line-height:1.35;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.news-home-side[data-news-visible="3"] .news-card p{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.news-home-side[data-news-visible="3"] .news-card-more{font-size:11px;line-height:1.25;padding-top:8px}.news-home-side[data-news-visible="3"] .news-card-more>span{font-size:16px}.home-news .news-channel{padding-top:44px}.news-article-image video{width:100%;height:100%;object-fit:contain;background:#090f19}.news-article-body a{text-decoration:underline;text-underline-offset:3px;color:var(--accent);font-weight:600}.news-sources{display:flex;gap:24px;max-width:750px;margin:0 auto 28px;font-size:12px}.news-sources a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.brand .brand-wordmark{display:inline-flex;align-items:baseline;white-space:nowrap;font-size:24px;line-height:1;letter-spacing:-1.2px;font-weight:800;color:#e9f2ff}.brand .brand-two{color:#7bb6ff;margin:0 1px}.brand .brand-me{color:#a1b0cb;font-size:16px;margin-left:3px;letter-spacing:-.8px}.topbar .brand{background:transparent!important;padding:5px 0;min-height:42px;box-shadow:none!important}.brand .brand-wordmark{filter:none!important}

@media(max-width:900px){.news-home-grid{min-height:0}.news-featured{grid-column:auto;flex-direction:column}.news-featured .news-card-art{width:100%;height:220px;min-height:0;flex-basis:auto}}
@media(max-width:640px){.news-home-grid{display:flex}.news-featured .news-card-art{height:210px}.brand .brand-wordmark{font-size:21px}.brand .brand-me{font-size:13px}.topbar .brand{min-height:36px}.news-sources{gap:20px}}
@media(prefers-reduced-motion:reduce){.news-carousel-arrow{transition:none}}
.news-article-body h2{font-size:clamp(23px,3vw,29px);line-height:1.3;letter-spacing:-.6px;margin:42px 0 18px;color:var(--text);padding-top:16px;border-top:1px solid var(--line)}
.news-article-body h3{font-size:19px;line-height:1.4;margin:28px 0 12px;color:var(--text)}
.news-article-body strong{color:var(--text);font-weight:750}
.news-article-body ul,.news-article-body ol{padding-left:24px;margin:0 0 25px;color:var(--copy);font-size:15px;line-height:1.85}
.news-article-body li{padding-left:6px;margin-bottom:8px}.news-article-body li::marker{color:var(--accent)}
.news-article-body blockquote{margin:26px 0;padding:20px 24px;border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:var(--surface);font-size:16px;line-height:1.8;color:var(--copy)}
.news-article-body figure{margin:30px 0}.news-article-body figure img{display:block;width:100%;height:auto;border-radius:12px}.news-article-body figcaption{font-size:12px;color:var(--muted);line-height:1.6;margin-top:10px}
@media(max-width:640px){.news-article-body h2{margin-top:30px}.news-article-body ul,.news-article-body ol{font-size:14px}.news-article-body blockquote{padding:16px 18px}}

/* Show release-note illustrations in full; keep the sorcerer's face in cards. */
.news-site-update .news-article-image{height:auto}
.news-site-update .news-article-image img{display:block;height:auto}
.news-card-art img[src="/landing/cabinet-sorcerer.webp"]{object-position:82% top}
.news-card.news-spotlight {
  display: grid;
  grid-template-columns: minmax(245px, .85fr) minmax(0, 1.15fr);
  margin-block-end: 24px;
}
.news-spotlight .news-card-art { width: 100%; height: auto; min-height: 210px; }
.news-spotlight .news-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-spotlight .news-card-copy { justify-content: center; }
.news-spotlight h2 { margin: 0 0 8px; font-size: clamp(18px, 2.35vw, 27px); line-height: 1.27; }
@media (max-width: 640px) {
  .news-card.news-spotlight { grid-template-columns: minmax(0, 1fr); }
  .news-spotlight .news-card-art { min-height: 170px; }
}

/* Daevanion shares the portal's section tokens and layered blue palette. */
.dae-section { --dae-aqua:#83cced; --dae-gold:#d9be84; --dae-skill:#9ab6ef; --dae-owned:#48a18c; }
.dae-section button,.dae-section input,.dae-section select { font:inherit; }
.dae-section button { cursor:pointer; }
.dae-section button:disabled { opacity:.4; cursor:default; }
.dae-section :is(button,input,select,summary,[role="button"]):focus-visible { outline:2px solid var(--section-blue); outline-offset:3px; }
.dae-section .dae-context .section-character { flex:0 1 auto; max-width:240px; }
.dae-switch { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr 1fr; border-radius:7px; padding:3px; background:var(--section-panel); }
.dae-switch::before { content:''; position:absolute; z-index:-1; inset:3px auto 3px 3px; width:calc(50% - 3px); background:var(--section-raised); border-radius:5px; transform:translateX(calc(var(--dae-switch-index,0)*100%)); transition:transform .36s cubic-bezier(.22,.72,.18,1); box-shadow:0 2px 8px #0002; }
.dae-switch button { min-width:62px; padding:8px 13px; border:0; border-radius:4px; color:var(--section-muted); background:none; font-size:11px; font-weight:700; transition:color .25s; }
.dae-switch button[aria-pressed="true"] { color:var(--section-ink); }
.dae-context>.dae-view-switch { flex:0 0 min(100%,320px); margin-inline-start:auto; }
.dae-view-switch::before { background:color-mix(in srgb,var(--section-blue) 19%,var(--section-raised)); }
.dae-view-switch button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:7px 8px; font-size:12px; }
.dae-view-switch button:hover { color:var(--section-ink); }
.dae-view-switch button svg { flex:none; }
.dae-route-options { display:grid; gap:8px; margin-bottom:16px; }
.dae-route-options .dae-switch { background:var(--section-bg); }
.dae-route-options .dae-switch button { min-width:0; }
.dae-budget-note { margin:14px 0 0; color:var(--section-muted); font-size:11px; line-height:1.55; }
.dae-layout { display:grid; grid-template-columns:240px minmax(0,1fr) 262px; grid-template-areas:"controls board summary"; gap:16px; align-items:start; }
.dae-controls { grid-area:controls; }
.dae-board-panel { grid-area:board; }
.dae-plan { grid-area:summary; }
.dae-controls,.dae-board-panel,.dae-plan { min-width:0; border:0; border-radius:13px; background:var(--section-bg); }
.dae-controls { padding:23px 20px; }
.dae-controls,.dae-plan { overflow-y:auto; max-height:min(44rem,max(22rem,76dvh)); }
@media(min-width:1151px) {
  .dae-controls,.dae-plan { contain:size; align-self:stretch; min-height:0; max-height:none; }
}
.dae-eyebrow { display:block; color:var(--section-muted); font-size:9px; font-weight:800; letter-spacing:1.6px; line-height:1.5; }
.dae-control-heading,.dae-plan-heading { display:flex; align-items:center; justify-content:space-between; color:var(--section-blue); margin-bottom:22px; }
.dae-budget-label { display:block; font-size:12px; color:var(--section-ink); font-weight:700; margin-bottom:16px; }
.dae-budget-label small { display:block; margin-top:6px; font-size:11px; line-height:1.45; font-weight:500; color:var(--section-muted); }
.dae-counter { display:grid; grid-template-columns:30px minmax(0,1fr) 30px; align-items:center; gap:5px; }
.dae-counter button { display:grid; place-items:center; height:30px; border:0; border-radius:6px; background:var(--section-panel); color:var(--section-blue); font-size:19px; font-weight:400; transition:background .2s,transform .2s; }
.dae-counter button:hover:not(:disabled) { background:var(--section-raised); transform:translateY(-1px); }
.dae-counter input { appearance:textfield; width:100%; min-width:0; padding:0; border:0; background:transparent; text-align:center; font-size:48px; font-weight:500; letter-spacing:-2px; font-variant-numeric:tabular-nums; color:var(--section-ink); line-height:1.3; }
.dae-counter input::-webkit-inner-spin-button { appearance:none; }
.dae-range { display:block; appearance:none; width:100%; height:4px; border:0; padding:0; margin:23px 0 9px; border-radius:3px; background:linear-gradient(to right,var(--section-blue) var(--dae-fill),var(--section-raised) var(--dae-fill)); cursor:pointer; }
.dae-range::-webkit-slider-thumb { appearance:none; width:12px; height:12px; border:3px solid var(--section-blue); background:var(--section-bg); border-radius:50%; box-shadow:0 0 12px #83cced30; }
.dae-range::-moz-range-thumb { width:7px; height:7px; border:3px solid var(--section-blue); background:var(--section-bg); border-radius:50%; }
.dae-range-labels { display:flex; justify-content:space-between; color:var(--section-muted); font-size:9px; font-variant-numeric:tabular-nums; }
.dae-budget-presets { display:flex; gap:5px; margin-top:15px; }
.dae-budget-presets button { flex:1; padding:6px 0; border:0; border-radius:4px; color:var(--section-copy); background:var(--section-panel); font-size:10px; transition:background .2s,color .2s; }
.dae-budget-presets button[aria-pressed="true"],.dae-budget-presets button:hover { background:var(--section-raised); color:var(--section-blue); }
.dae-extra { margin:24px 0 0; padding:16px 0; border-top:1px solid color-mix(in srgb,var(--section-line) 45%,transparent); border-bottom:1px solid color-mix(in srgb,var(--section-line) 45%,transparent); }
.dae-section summary { cursor:pointer; list-style:none; }
.dae-section summary::-webkit-details-marker { display:none; }
.dae-step-details summary { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11px; font-weight:700; color:var(--section-copy); }
.dae-step-details summary>span { font-size:10px; color:var(--section-blue); padding:3px 6px; background:var(--section-panel); border-radius:4px; }
.dae-skill-settings p,.dae-step-details>p { color:var(--section-muted); font-size:10px; line-height:1.8; margin:12px 0; }
.dae-extra-row { display:flex; align-items:center; justify-content:space-between; margin-top:10px; gap:8px; font-size:11px; color:var(--section-copy); }
.dae-extra h3 { margin:0 0 12px; font-size:11px; color:var(--section-ink); }
.dae-counter.dae-counter-small { grid-template-columns:26px 38px 26px; gap:4px; width:auto; margin:0; flex:none; }
.dae-counter-small button { height:28px; font-size:15px; }
.dae-counter-small button:disabled { opacity:.4; }
.dae-counter-small input { height:28px; border-radius:5px; background:var(--section-panel); font-size:12px; letter-spacing:0; }
.dae-level-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:17px 0; color:var(--section-copy); font-size:11px; }
.dae-level-row select { padding:6px 8px; width:58px; border:0; border-radius:5px; color:var(--section-ink); background:var(--section-panel); font-size:12px; }
.dae-skill-settings { padding:15px 0; border-top:1px solid color-mix(in srgb,var(--section-line) 45%,transparent); }
.dae-skill-settings summary { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; font-weight:700; }
.dae-skill-settings summary>span { display:flex; gap:6px; align-items:center; }
.dae-skill-settings summary>b { display:flex; gap:8px; align-items:center; color:var(--section-blue); font-weight:500; font-size:10px; }
.dae-skill-settings summary i { width:5px; height:5px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .25s; }
.dae-skill-settings[open] summary i { transform:rotate(225deg); }
.dae-skills { display:grid; gap:4px; }
.dae-skills label { position:relative; display:flex; align-items:center; gap:8px; padding:7px 5px; cursor:pointer; border-radius:4px; }
.dae-skills label:has(:checked) { background:var(--section-panel); }
.dae-skills input { position:absolute; opacity:0; width:16px; height:16px; margin:0; }
.dae-skills label>span { display:grid; place-items:center; width:15px; height:15px; border-radius:3px; flex-shrink:0; color:transparent; border:1px solid var(--section-line); }
.dae-skills input:checked+span { border-color:var(--section-blue); background:var(--section-raised); color:var(--section-blue); }
.dae-skills input:focus-visible+span { background:var(--selection); border-color:var(--section-blue); }
.dae-skills label>b { font-size:10px; font-weight:500; color:var(--section-copy); line-height:1.5; }
.dae-text-button { display:block; padding:10px 0 0; margin-top:5px; background:none; border:0; color:var(--section-blue); font-size:10px!important; }
.dae-skill-hint { color:var(--section-blue); font-size:10px; line-height:1.5; display:block; }
.dae-reset { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; margin-top:11px; padding:10px 5px; border:0; border-radius:6px; background:var(--section-panel); color:var(--section-muted); font-size:10px!important; transition:background .2s,color .2s; }
.dae-reset:hover { background:var(--section-raised); color:var(--section-ink); }
.dae-board-panel { overflow:hidden; background:linear-gradient(155deg,var(--section-bg),color-mix(in srgb,var(--section-panel) 65%,var(--section-bg))); }
.dae-board-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); padding:0 9px; border-bottom:1px solid color-mix(in srgb,var(--section-line) 40%,transparent); }
.dae-board-tabs button { position:relative; display:block; padding:16px 2px 13px; min-width:0; border:0; border-radius:0; background:none; color:var(--section-muted); text-align:center; transition:background .25s,color .25s; }
.dae-board-tabs button::after { content:''; position:absolute; inset:auto 4px 0; height:2px; background:var(--section-blue); box-shadow:0 0 12px color-mix(in srgb,var(--section-blue) 50%,transparent); transform:scaleX(0); opacity:0; transition:transform .32s ease,opacity .32s; }
.dae-board-tabs button.active::after { transform:scaleX(1); opacity:1; }
.dae-board-tabs button.active { color:var(--section-ink); background:linear-gradient(0deg,color-mix(in srgb,var(--section-raised) 55%,transparent),transparent); }
.dae-board-tabs button:hover { color:var(--section-blue); }
.dae-board-tabs button>span { display:block; font-size:11px; font-weight:700; white-space:nowrap; }
.dae-board-tabs button small { display:block; margin-top:4px; font-size:9px; color:var(--section-muted); font-variant-numeric:tabular-nums; }
.dae-board-tabs button.locked { opacity:.55; }
.dae-board-top { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:72px; padding:14px 20px 6px; }
.dae-board-top .dae-eyebrow { font-size:8px; }
.dae-board-top h3 { display:flex; align-items:baseline; gap:10px; font-size:21px; margin:5px 0 0; font-weight:600; letter-spacing:-.5px; }
.dae-board-top h3>span { flex-shrink:0; color:var(--section-blue); font-size:13px; font-variant-numeric:tabular-nums; }
.dae-board-top h3 small { color:var(--section-muted); font-size:10px; }
.dae-board-actions { display:flex; align-items:center; gap:6px; flex:none; }
.dae-board-actions button { display:flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:8px 10px; background:var(--section-panel); color:var(--section-blue); border:0; border-radius:7px; font-size:11px; font-weight:700; white-space:nowrap; transition:background .2s; }
.dae-board-actions button:hover:not(:disabled) { background:var(--section-raised); }
.dae-board-actions .dae-share-icon { width:36px; padding:0; }
.dae-board-stage { position:relative; margin:4px 8px 0; aspect-ratio:1; }
.dae-grid { display:block; width:100%; height:100%; color:var(--dae-aqua); overflow:visible; }
.dae-frame { fill:none; stroke:var(--section-line); stroke-width:.65; opacity:.22; }
.dae-axis { fill:var(--section-muted); font-size:8px; opacity:.65; font-family:var(--font-ui); }
.dae-edge { stroke:var(--section-line); stroke-width:1; opacity:.28; fill:none; transition:stroke .6s,opacity .6s,stroke-width .4s; }
.dae-edge.is-active { stroke:var(--dae-aqua); stroke-width:2; opacity:.65; }
.dae-edge.is-owned { stroke:var(--dae-owned); opacity:.85; }
.dae-node { cursor:pointer; outline:none; }
.dae-node .dae-symbol { fill:var(--section-panel); stroke:var(--section-line); stroke-width:1; transition:fill .55s,stroke .55s,filter .4s; }
.dae-node .dae-dot { fill:var(--section-muted); opacity:.4; transition:fill .4s,opacity .4s; }
.dae-node .dae-glyph { fill:var(--dae-skill); font-size:9px; font-weight:800; transition:fill .4s; }
.dae-node .dae-glyph-stroke { stroke:var(--dae-gold); fill:none; stroke-width:1.5; }
.dae-node.unique .dae-symbol { stroke:color-mix(in srgb,var(--dae-gold) 65%,var(--section-line)); }
.dae-node.rare .dae-symbol,.dae-node.legend .dae-symbol { stroke:color-mix(in srgb,var(--dae-skill) 60%,var(--section-line)); }
.dae-node .dae-priority-dot { fill:var(--dae-gold); stroke:var(--section-bg); stroke-width:1.5; }
.dae-node.is-active .dae-symbol { fill:var(--dae-aqua); stroke:var(--dae-aqua); filter:drop-shadow(0 0 5px #83cced35); }
.dae-node.is-active .dae-dot { fill:#18334c; opacity:.7; }
.dae-node.is-active .dae-glyph { fill:#173149; }
.dae-node.is-active.is-owned .dae-symbol { fill:var(--dae-owned); stroke:var(--dae-owned); filter:drop-shadow(0 0 6px color-mix(in srgb,var(--dae-owned) 35%,transparent)); }
.dae-node.is-active .dae-glyph-stroke { stroke:#554326; }
.dae-node.start .dae-symbol { fill:var(--dae-gold); stroke:var(--dae-gold); filter:drop-shadow(0 0 8px #d9be8450); }
.dae-node.is-next:not(.is-active) .dae-symbol { stroke:var(--dae-aqua); stroke-dasharray:3 2; }
.dae-grid[data-dae-grid-view="current"] { --dae-comparison:var(--dae-aqua); }
.dae-grid[data-dae-grid-view="route"] { --dae-comparison:var(--dae-owned); }
.dae-compare-mark { fill:none; stroke:var(--dae-comparison); stroke-width:1.4; stroke-dasharray:3 2; opacity:.88; pointer-events:none; vector-effect:non-scaling-stroke; }
.dae-hit { fill:transparent; stroke:transparent; stroke-width:1.5; transition:stroke .25s; }
.dae-node.is-focused .dae-hit,.dae-node:hover .dae-hit { stroke:var(--section-blue); stroke-opacity:.8; }
.dae-node:focus-visible .dae-hit { stroke:var(--section-ink); stroke-width:2; stroke-opacity:1; }
.dae-node:hover .dae-symbol { filter:drop-shadow(0 0 6px #83cced55); }
.dae-node-detail { display:flex; gap:12px; align-items:center; min-height:72px; padding:13px 22px; background:color-mix(in srgb,var(--section-raised) 50%,var(--section-bg)); }
.dae-node-coordinate { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--section-line); color:var(--section-blue); border-radius:5px; font-size:11px; flex-shrink:0; }
.dae-node-detail>div { min-width:0; }
.dae-node-detail strong { display:block; font-size:12px; line-height:1.6; font-weight:700; color:var(--section-ink); }
.dae-node-detail>div>span { display:block; font-size:9px; line-height:1.6; color:var(--section-muted); margin-top:3px; }
.dae-node-detail>b { margin-left:auto; color:var(--section-blue); font-size:14px; font-weight:500; }
.dae-legend { display:flex; justify-content:center; flex-wrap:wrap; padding:13px 14px; gap:10px 15px; }
.dae-legend>span { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--section-copy); }
.dae-legend i { display:block; width:7px; height:7px; border:1px solid var(--section-line); border-radius:2px; }
.dae-legend .chosen { background:var(--dae-aqua); border-color:var(--dae-aqua); }
.dae-legend .owned { background:var(--dae-owned); border-color:var(--dae-owned); }
.dae-legend .compare-route { border-color:var(--dae-aqua); border-style:dashed; }
.dae-legend .compare-current { border-color:var(--dae-owned); border-style:dashed; }
.dae-legend .skill { border-color:var(--dae-skill); border-radius:50%; }
.dae-legend .core { border-color:var(--dae-gold); transform:rotate(45deg); border-radius:1px; }
.dae-legend .future { border-color:var(--dae-aqua); border-style:dashed; }
.dae-locked { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; background:color-mix(in srgb,var(--section-bg) 85%,transparent); backdrop-filter:blur(3px); text-align:center; }
.dae-locked>span { color:var(--section-blue); margin-bottom:20px; }
.dae-locked strong { font-size:16px; }
.dae-locked p { font-size:11px; color:var(--section-copy); }
.dae-plan { padding:23px 20px; }
.dae-plan-total>strong { font-size:35px; letter-spacing:-1px; font-weight:500; line-height:1.3; font-variant-numeric:tabular-nums; }
.dae-plan-total small { font-size:16px; color:var(--section-muted); letter-spacing:0; }
.dae-plan-total>span { display:block; font-size:10px; color:var(--section-copy); line-height:1.8; margin-top:4px; }
.dae-plan-total>span>b { display:block; font-size:9px; font-weight:500; color:var(--section-muted); }
.dae-board-overview { display:grid; gap:14px; margin:16px 0 0; padding:0; list-style:none; }
.dae-board-overview li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 8px; align-items:center; font-size:11px; color:var(--section-copy); }
.dae-board-overview b { color:var(--section-ink); font-variant-numeric:tabular-nums; }
.dae-board-overview progress { grid-column:1/-1; display:block; width:100%; height:4px; border:0; border-radius:4px; overflow:hidden; background:var(--section-raised); color:var(--dae-owned); }
.dae-board-overview progress::-webkit-progress-bar { background:var(--section-raised); }
.dae-board-overview progress::-webkit-progress-value { background:var(--dae-owned); }
.dae-board-overview progress::-moz-progress-bar { background:var(--dae-owned); }
.dae-progress-panel .dae-controls-head { padding-bottom:20px; border-bottom:0; }
.dae-progress-panel .dae-muted { margin:12px 0 0; }
.dae-remainder { font-size:10px; color:var(--section-muted); line-height:1.8; margin-top:15px; }
.dae-remainder b { color:var(--section-blue); }
.dae-benefits { margin-top:23px; padding-top:20px; border-top:1px solid color-mix(in srgb,var(--section-line) 45%,transparent); }
.dae-benefits h4 { display:flex; align-items:center; justify-content:space-between; gap:4px; font-size:12px; font-weight:700; margin:0 0 13px; }
.dae-benefits h4>span { font-size:8px; font-weight:400; color:var(--section-muted); }
.dae-benefits dl { margin:0; }
.dae-benefits dl>div { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:5px 0; font-size:10px; line-height:1.6; }
.dae-benefits dt { color:var(--section-copy); }
.dae-benefits dd { margin:0; color:var(--section-blue); flex-shrink:0; font-weight:700; font-variant-numeric:tabular-nums; }
.dae-skill-gains { display:grid; gap:4px; margin-top:13px; padding-top:12px; border-top:1px dashed color-mix(in srgb,var(--section-line) 50%,transparent); }
.dae-skill-gains>div { display:flex; justify-content:space-between; gap:8px; padding:5px 7px; border-radius:4px; font-size:10px; line-height:1.7; color:var(--section-copy); }
.dae-skill-gains .priority { background:var(--section-panel); color:var(--section-ink); }
.dae-skill-gains b { color:var(--section-blue); font-weight:600; }
.dae-next { position:relative; display:grid; gap:7px; padding:17px 14px; margin:22px -4px 0; border-radius:8px; background:var(--section-panel); }
.dae-next>.dae-eyebrow { font-size:8px; }
.dae-next>strong { font-size:12px; line-height:1.7; font-weight:700; }
.dae-next>span:not(.dae-eyebrow) { color:var(--section-muted); font-size:9px; }
.dae-next>div { display:flex; align-items:center; gap:5px; margin-top:5px; font-size:10px; color:var(--section-blue); }
.dae-step-details { padding-top:20px; margin-top:20px; border-top:1px solid color-mix(in srgb,var(--section-line) 45%,transparent); }
.dae-step-list { padding:0; margin:0; list-style:none; }
.dae-step-list button { width:100%; display:flex; align-items:center; gap:10px; padding:9px 0; border:0; background:none; text-align:left; color:var(--section-copy); }
.dae-step-list button>b { display:grid; place-items:center; min-width:24px; height:24px; border:1px solid var(--section-line); border-radius:50%; color:var(--section-blue); font-size:9px; font-weight:500; }
.dae-step-list strong { font-size:10px; line-height:1.6; font-weight:500; }
.dae-step-list small { display:block; font-size:8px; color:var(--section-muted); line-height:1.7; }
.dae-step-list button:hover strong { color:var(--section-blue); }
.dae-muted { font-size:11px; color:var(--section-muted); line-height:1.8; }
.dae-method { margin:23px 0 0; padding:0 5px; }
.dae-method summary { display:flex; align-items:center; gap:10px; font-size:11px; color:var(--section-muted); }
.dae-method summary::before { content:'+'; font-size:16px; color:var(--section-blue); }
.dae-method[open] summary::before { content:'−'; }
.dae-method p { max-width:900px; font-size:11px; line-height:1.9; color:var(--section-copy); margin:12px 0; }
.dae-method>div { display:flex; flex-wrap:wrap; gap:20px; align-items:center; font-size:10px; margin-top:15px; }
.dae-method a { display:flex; gap:5px; align-items:center; color:var(--section-blue); text-decoration:none; }
.dae-method>div>span { color:var(--section-muted); font-size:9px; }
[data-theme="light"] .dae-section { --dae-aqua:#39749e; --dae-gold:#94723b; --dae-skill:#5b73a7; --dae-owned:#387e6e; }
[data-theme="light"] :is(.dae-controls,.dae-board-panel,.dae-plan) { box-shadow:var(--depth-panel); }
[data-theme="light"] .dae-counter button,[data-theme="light"] .dae-extra input,[data-theme="light"] .dae-play { box-shadow:0 2px 5px #294c7412; }
[data-theme="light"] .dae-node.is-active .dae-dot,[data-theme="light"] .dae-node.is-active .dae-glyph { fill:#f0f6ff; }
[data-theme="light"] .dae-node.is-active .dae-glyph-stroke { stroke:#fff4df; }
.home-daevanion { grid-column:1/-1; min-height:280px; background:radial-gradient(ellipse at 80% 50%,#24476b 0,transparent 60%),linear-gradient(115deg,#101d31,#14263c); }
.home-daevanion .home-card-copy { position:relative; z-index:1; }
.home-daevanion h3 { max-width:410px; font-size:31px; }
.home-daevanion p { max-width:410px; }
.home-daevanion .home-card-link { max-width:300px; }
.home-dae-art { position:absolute; width:450px; height:450px; right:5%; top:50%; transform:translateY(-50%) rotate(-12deg); color:#97c8ed; opacity:.8; mask-image:linear-gradient(90deg,transparent,#000 23%); }
.home-dae-art path { stroke-dasharray:2000; stroke-dashoffset:0; }
.home-daevanion:hover .home-dae-art { transform:translateY(-50%) rotate(-8deg) scale(1.04); transition:transform 1.2s cubic-bezier(.2,.7,.2,1); }
[data-theme="light"] .home-daevanion { color:#edf4ff; --home-blue:#a9ccff; --home-muted:#b7c9e2; }
@media(min-width:1500px) { .dae-layout { grid-template-columns:260px minmax(0,1fr) 285px; gap:20px; } }
@media(max-width:1150px) { .dae-layout { grid-template-columns:210px minmax(0,1fr); grid-template-areas:"controls board" "controls summary"; } .dae-plan .dae-benefits dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 24px; } .dae-board-top h3 { font-size:19px; } .dae-skill-gains { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:4px 15px; } }
@media(max-width:860px) {
  .dae-context>.dae-view-switch { flex-basis:100%; }
}
@media(max-width:760px) {
  .dae-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"board" "controls" "summary"; gap:14px; }
  .dae-control-heading,.dae-budget-label,.dae-counter,.dae-range,.dae-range-labels,.dae-budget-presets { grid-column:1/-1; }
  .dae-control-heading { margin-bottom:15px; }
  .dae-budget-label { text-align:center; margin:0 0 8px; }
  .dae-counter { grid-template-columns:34px minmax(0,1fr) 34px; max-width:250px; width:100%; margin:0 auto; }
  .dae-counter input { font-size:44px; }
  .dae-range { margin-top:17px; }
  .dae-budget-presets button { padding:8px 0; }
  .dae-extra { grid-column:1/-1; margin-top:18px; }
  .dae-level-row { grid-column:1/-1; }
  .dae-skill-settings,.dae-reset { grid-column:1/-1; }
  .dae-board-stage { margin:9px 2px 0; }
  .dae-board-top { padding:12px 12px 5px; }
  .dae-board-tabs { padding:0 4px; }
  .dae-board-tabs button { padding:12px 2px 10px; }
  .dae-board-tabs button>span { font-size:10px; }
  .dae-node-detail { padding:14px 17px; }
  .dae-node-detail strong { font-size:11px; }
  .dae-legend { gap:11px; }
  .dae-plan .dae-benefits dl { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 12px; }
  .dae-plan-total { display:flex; align-items:center; gap:18px; }
  .dae-plan-heading { margin-bottom:12px; }
  .dae-skill-gains { grid-template-columns:1fr; }
  .home-daevanion { min-height:330px; }
  .home-dae-art { width:320px; right:-120px; opacity:.3; }
  .home-daevanion h3 { max-width:260px; font-size:27px; }
  .home-daevanion p { max-width:260px; }
}
@media(max-width:420px) {
  .dae-board-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); padding:3px 4px; }
  .dae-board-tabs button>span { font-size:11px; }
  .dae-board-top h3 { font-size:17px; gap:6px; }
  .dae-board-actions button { gap:4px; min-height:34px; padding:7px 8px; font-size:10px; }
  .dae-board-actions .dae-share-icon { width:34px; }
}
@media(max-width:360px) {
  .dae-view-switch button svg { display:none; }
}
@media(prefers-reduced-motion:reduce) { .dae-section *,.dae-section *::before,.dae-section *::after,.home-daevanion * { transition:none!important; animation:none!important; } }
/* Build context and optional rank targets use the same quiet portal surfaces. */
.dae-rank-help { margin-top:20px; }
.dae-rank-help>strong { font-size:11px; color:var(--section-ink); }
.dae-rank-head,.dae-rank-row { display:grid; grid-template-columns:minmax(0,1fr) 43px 45px; align-items:center; gap:6px; }
.dae-rank-head { margin:10px 0 6px; color:var(--section-muted); font-size:9px; }
.dae-rank-head>span:not(:first-child) { text-align:center; }
.dae-ranks { display:grid; gap:9px; }
.dae-rank-row label { font-size:10px; line-height:1.6; color:var(--section-copy); }
.dae-rank-row input,.dae-rank-row select,.dae-crit-setting select { width:100%; min-width:0; padding:7px 3px; border:0; border-radius:4px; background:var(--section-panel); color:var(--section-ink); font-size:11px; text-align:center; }
.dae-rank-row input { appearance:textfield; }
.dae-rank-row input::-webkit-inner-spin-button { appearance:none; }
.dae-crit-setting { display:grid; gap:8px; margin-top:18px; color:var(--section-copy); font-size:10px; }
.dae-crit-setting select { padding:8px; text-align:left; }
.dae-targets { margin-top:20px; border-top:1px solid var(--section-panel); padding-top:16px; }
.dae-targets summary { display:flex; justify-content:space-between; font-size:11px; color:var(--section-ink); }
.dae-targets summary>span { color:var(--section-blue); }

/* Budget and allocation stay visible; only the lower content scrolls. */
.dae-controls,.dae-plan { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.dae-controls-head,.dae-plan-head { flex-shrink:0; padding:23px 20px 0; background:var(--section-panel); border-bottom:1px solid var(--section-line); }
.dae-plan-head { padding-bottom:20px; }
.dae-controls-body,.dae-plan-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:0 20px 20px; }
.dae-controls-body { display:flex; flex-direction:column; }
.dae-controls-body:has(>.dae-skill-settings[open]) { overflow:hidden; }
.dae-controls-body .dae-skill-settings { flex:0 0 auto; min-height:0; padding:0; border-top:0; }
.dae-controls-body .dae-skill-settings[open] { display:flex; flex-direction:column; flex:1; }
.dae-controls-body .dae-skill-settings[open]::details-content { display:flex; flex-direction:column; flex:1; min-height:0; }
.dae-build-note { flex:1 0 auto; display:flex; align-items:flex-start; gap:9px; margin:14px 0 0; color:var(--section-copy); font-size:11px; line-height:1.55; }
.dae-build-note>svg { flex:none; color:var(--section-blue); }
.dae-skill-settings[open]+.dae-build-note { display:none; }
.dae-controls-body .dae-reset { flex-shrink:0; }
.dae-controls-body .dae-skill-settings>summary,.dae-controls-body .dae-skill-settings>p { flex-shrink:0; padding:15px 20px; margin:0 -20px; background:var(--section-panel); }
.dae-controls-body .dae-skill-settings>p { padding-top:0; border-bottom:1px solid var(--section-line); }
.dae-skill-content { flex:1; min-height:0; overflow-y:auto; padding-top:12px; }
.dae-controls-body .dae-skills { max-height:none; overflow:visible; }
.dae-benefits { margin-top:0; border-top:0; }
.dae-benefits>summary { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; margin:0 0 13px; }
.dae-benefits>summary>span { margin-left:auto; font-size:8px; font-weight:400; color:var(--section-muted); }
.dae-step-details summary>span { margin-left:auto; }
:is(.dae-benefits,.dae-step-details)>summary::after { content:''; width:5px; height:5px; flex-shrink:0; border-right:1px solid currentColor; border-bottom:1px solid currentColor; color:var(--section-blue); transform:rotate(45deg) translateY(-2px); transition:transform .25s; }
:is(.dae-benefits,.dae-step-details)[open]>summary::after { transform:rotate(225deg); }
@media(max-width:1150px) {
  .dae-controls,.dae-plan { height:min(48rem,max(36rem,80dvh)); max-height:none; }
}
@media(max-width:760px) {
  .dae-controls,.dae-plan { gap:0; height:auto; }
  .dae-controls-head,.dae-plan-head { padding:20px; }
  .dae-controls-head .dae-level-row { padding-bottom:0; }
  .dae-controls-body,.dae-plan-body { flex:auto; max-height:25rem; }
  .dae-controls-body .dae-skill-settings { max-height:22rem; }
}
.dae-targets>p { font-size:9px; color:var(--section-muted); line-height:1.8; }
.dae-target-row { padding:8px 0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 6px; font-size:10px; }
.dae-target-row strong { font-weight:500; line-height:1.6; color:var(--section-copy); }
.dae-target-row span { color:var(--section-blue); line-height:1.6; font-variant-numeric:tabular-nums; }
.dae-target-row small { grid-column:1/-1; font-size:9px; line-height:1.7; color:var(--section-muted); }
.dae-target-row.complete small { color:var(--section-blue); }
.dae-stat-glyph { fill:var(--section-muted); font-size:6px; font-weight:700; pointer-events:none; transition:fill .4s; }
.dae-node.is-active .dae-stat-glyph { fill:#18334c; }
[data-theme="light"] .dae-node.is-active .dae-stat-glyph { fill:#f0f6ff; }

/* Shared static surfaces and independent accordion scroll areas. */
.dae-section { --dae-static-fill:linear-gradient(135deg,color-mix(in srgb,var(--section-raised) 35%,var(--section-panel)),var(--section-panel) 85%); }
.dae-controls-head,.dae-plan-head,.dae-controls-body .dae-skill-settings>summary,.dae-controls-body .dae-skill-settings>p { background:var(--dae-static-fill); }
.dae-plan-body { display:flex; flex-direction:column; overflow:hidden; padding:0; }
.dae-plan-body>details { margin:0; padding:0; border:0; flex:0 0 auto; min-height:0; }
.dae-plan-body>details[open] { display:flex; flex-direction:column; flex:1 1 0; }
.dae-plan-body>details[open]::details-content { display:flex; flex-direction:column; flex:1; min-height:0; }
.dae-plan-body>details>summary { flex-shrink:0; min-height:58px; margin:0; padding:17px 20px; background:var(--dae-static-fill); border-bottom:1px solid var(--section-line); }
.dae-benefit-content,.dae-step-content { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:14px 20px 20px; }
.dae-plan-body>details+details>summary { border-top:1px solid var(--section-line); }
.dae-current-plan .dae-benefit-content { scrollbar-width:thin; scrollbar-color:var(--section-line) transparent; }
.dae-progress-panel,.dae-plan-status { contain:none; align-self:start; height:auto; }
.dae-plan-status .dae-muted { margin:0; padding:16px 20px; }
.dae-view-retry { width:auto; align-self:flex-start; margin:0 20px 16px; padding:8px 12px; }
.dae-locked .dae-view-retry { align-self:center; margin:12px 0 0; }
@media(max-width:1150px) { .dae-plan-body { min-height:180px; } }
@media(max-width:1150px) { .dae-current-plan { height:auto; } .dae-current-plan .dae-benefit-content { max-height:25rem; } }

/* Editing priorities gives the skill list the full sidebar height. */
.dae-controls-head { overflow:hidden; max-height:40rem; opacity:1; visibility:visible; transition:max-height .28s ease,padding .28s ease,opacity .18s ease; }
.dae-controls:has(#dae-skill-settings[open]) .dae-controls-head { max-height:0; padding-top:0; padding-bottom:0; border-bottom-width:0; opacity:0; visibility:hidden; }
@media(max-width:760px) {
  .dae-controls:has(#dae-skill-settings[open]) .dae-controls-head { max-height:40rem; padding:20px; border-bottom-width:1px; opacity:1; visibility:visible; }
  .dae-controls-body { max-height:none; }
  .dae-controls-body .dae-skill-content { max-height:19rem; }
  .dae-plan-body { flex:auto; min-height:0; max-height:none; }
  .dae-plan-body>details[open] { flex:0 0 auto; }
  .dae-benefit-content,.dae-step-content { max-height:22rem; }
}
@media(prefers-reduced-motion:reduce) { .dae-controls-head { transition:none; } }
.dae-share-notice{padding:17px 20px;margin:0 0 20px;border:0;border-radius:10px;background:var(--surface);color:var(--text);font-size:12px;line-height:1.7}.dae-share-notice strong{font-size:14px}.dae-share-notice p{margin:8px 0 12px;color:var(--copy)}.dae-share-fallback{margin:0 16px 16px;padding:12px 14px;background:var(--surface);border:0;border-radius:8px;font-size:11px}.dae-share-fallback label{display:block;margin-bottom:8px}.dae-share-fallback input{width:100%;padding:10px 12px;background:var(--soft);color:var(--text);border:0;border-radius:7px;font:inherit}.dae-share-notice .button{white-space:normal;text-align:left}

/* Personal cabinet. The same palette also feeds the existing portal tools. */
:root[data-background="abyss"][data-theme="dark"] { --bg:#0d0c19; }
:root[data-panels="abyss"][data-theme="dark"] { --surface:#19182c; --surface-raised:#24203d; --soft:#141323; --line:#35314f; --toolbar:#151324; --section-head-start:#30234d; --section-head-end:#17152b; }
:root[data-background="aether"][data-theme="dark"] { --bg:#0a151a; }
:root[data-panels="aether"][data-theme="dark"] { --surface:#152a32; --surface-raised:#1b3841; --soft:#102229; --line:#2a4c57; --toolbar:#12272e; --section-head-start:#254958; --section-head-end:#132c34; }
:root[data-background="obsidian"][data-theme="dark"] { --bg:#101113; }
:root[data-panels="obsidian"][data-theme="dark"] { --surface:#1c1e23; --surface-raised:#2b2c32; --soft:#17181c; --line:#3f3b35; --toolbar:#1a1a1e; --section-head-start:#3b332a; --section-head-end:#201e1f; }
:root[data-background="ice"][data-theme="dark"] { --bg:#09151f; }
:root[data-panels="ice"][data-theme="dark"] { --surface:#142c3b; --surface-raised:#1a3c4c; --soft:#102432; --line:#2a4a60; --toolbar:#102533; --section-head-start:#1c4a5b; --section-head-end:#162a40; }
:root[data-background="abyss"][data-theme="light"] { --bg:#f2eff9; }
:root[data-panels="abyss"][data-theme="light"] { --surface:#fcfaff; --surface-raised:#e7dcf7; --toolbar:#f6f0fc; --soft:#eee9f6; --line:#dcd2ed; --section-head-start:#e5dbf3; --section-head-end:#f4f0fa; }
:root[data-background="aether"][data-theme="light"] { --bg:#edf6f5; }
:root[data-panels="aether"][data-theme="light"] { --surface:#fbfefd; --surface-raised:#d9ece9; --toolbar:#edf7f4; --soft:#e5f0ef; --line:#cadfdb; --section-head-start:#d8edeb; --section-head-end:#eff8f5; }
:root[data-background="obsidian"][data-theme="light"] { --bg:#f4f1eb; }
:root[data-panels="obsidian"][data-theme="light"] { --surface:#fffdfa; --surface-raised:#eee5d5; --toolbar:#f7f3eb; --soft:#eee9e0; --line:#dcd2c2; --section-head-start:#e9dfcd; --section-head-end:#f7f2e8; }
:root[data-background="ice"][data-theme="light"] { --bg:#edf4fa; }
:root[data-panels="ice"][data-theme="light"] { --surface:#fbfdff; --surface-raised:#dcecf6; --toolbar:#f0f7fc; --soft:#e4eef6; --line:#cbddea; --section-head-start:#d4e8f4; --section-head-end:#ecf4fc; }
:root[data-accent="violet"],:root[data-skin="abyss"][data-accent="theme"] { --accent:#7752c6; --action:#7250ba; --action-hover:#6040a7; --selection:#7851bd18; --selection-line:#9272cc; --selection-text:#5a329d; --section-mark:#9272cc; }
:root[data-accent="teal"],:root[data-skin="aether"][data-accent="theme"] { --accent:#137b7a; --action:#137b7a; --action-hover:#106867; --selection:#1b8e8b19; --selection-line:#419e99; --selection-text:#146e6c; --section-mark:#419e99; }
:root[data-accent="gold"],:root[data-skin="obsidian"][data-accent="theme"] { --accent:#8b671e; --action:#86631f; --action-hover:#735419; --selection:#b585201a; --selection-line:#ac873e; --selection-text:#795612; --section-mark:#b69753; }
:root[data-theme="dark"][data-accent="violet"],:root[data-theme="dark"][data-skin="abyss"][data-accent="theme"] { --accent:#bda3f2; --selection:#8c69c629; --selection-text:#e7dafa; --selection-line:#8263b7; --action:#70519f; --action-hover:#8262b6; }
:root[data-theme="dark"][data-accent="teal"],:root[data-theme="dark"][data-skin="aether"][data-accent="theme"] { --accent:#84d7d0; --selection:#54b7ad23; --selection-text:#b9ece5; --selection-line:#4a948f; --action:#247b7c; --action-hover:#2c8f90; }
:root[data-theme="dark"][data-accent="gold"],:root[data-theme="dark"][data-skin="obsidian"][data-accent="theme"] { --accent:#dfc17e; --selection:#c7a04e22; --selection-text:#f1dfb5; --selection-line:#a68b53; --action:#846b3b; --action-hover:#9b7d44; }
/* A skin supplies the default accent. An explicit accent choice takes precedence. */
:root[data-skin="ice"][data-accent="theme"] { --accent:#196c89; --action:#196c89; --action-hover:#13586f; --selection:#237b9621; --selection-text:#19576b; --selection-line:#659fb6; }
:root[data-theme="dark"][data-skin="ice"][data-accent="theme"] { --accent:#91d9f2; --action:#256d88; --action-hover:#2a7e9b; --selection:#519ab43b; --selection-text:#cceef9; --selection-line:#659fb6; }
:root[data-skin] {
  --blue:var(--accent); --section-blue:var(--accent); --section-cyan:var(--accent); --goal:var(--accent);
  --surface-hover:color-mix(in srgb,var(--surface-raised) 88%,var(--accent));
  --character-context:var(--soft);
  --completed-bg:var(--soft);
  --note-bg:var(--surface);
  --note-line:var(--line);
  --control-line:color-mix(in srgb,var(--line) 55%,var(--muted));
}
:root {
  --art-tint:var(--surface-raised);
  --art-base:color-mix(in srgb,var(--soft) 55%,var(--surface));
  --art-muted:color-mix(in srgb,var(--text) 72%,var(--muted));
  --theme-swatch:#719fe4;
}
:root[data-skin="abyss"] { --theme-swatch:#b599e4; }
:root[data-skin="aether"] { --theme-swatch:#78bfb7; }
:root[data-skin="obsidian"] { --theme-swatch:#d1b279; }
:root[data-skin="ice"] { --theme-swatch:#81cbe3; }
.cabinet { --cab-card:color-mix(in srgb,var(--surface) 65%,var(--soft)); --cab-raised:color-mix(in srgb,var(--surface-raised) 40%,var(--surface)); --cab-muted:var(--muted); --cab-gold:#e0c48c; padding:34px 0 52px; color:var(--text); font-size:13px; line-height:1.65; }
.cabinet button,.cabinet input,.cabinet select { font:inherit; }
.cabinet a,.cabinet button { -webkit-tap-highlight-color:transparent; }
.cabinet h1,.cabinet h2,.cabinet h3,.cabinet p { margin-top:0; }
.cabinet button:disabled { opacity:.4; cursor:not-allowed; }
.cabinet button,.cabinet a { transition:color .2s,background .2s,border-color .2s,box-shadow .2s,transform .2s; }
.cabinet select:focus-visible,.cabinet textarea:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.cab-breadcrumb { display:flex; align-items:center; gap:10px; font-size:9px; letter-spacing:1.5px; color:var(--quiet); font-weight:700; margin-bottom:17px; }
.cab-breadcrumb button { border:0; padding:0; background:transparent; color:var(--accent); font:inherit; letter-spacing:inherit; }
.cab-breadcrumb button:hover { color:var(--text); }
.cab-breadcrumb>span { opacity:.4; }
.cab-eyebrow { display:block; font-size:8px; line-height:1.6; font-weight:800; letter-spacing:1.4px; color:var(--quiet); }
.cab-badge { display:inline-flex; align-items:center; gap:5px; color:var(--accent); border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); background:color-mix(in srgb,var(--accent) 6%,transparent); padding:3px 8px; border-radius:5px; font-size:8px; letter-spacing:.1px; font-weight:700; line-height:1.6; white-space:nowrap; }
.cab-content { animation:cab-enter .35s ease both; outline-offset:8px; }
.cab-section-heading { display:flex; gap:25px; align-items:center; justify-content:space-between; margin-bottom:24px; }
.cab-section-heading h2 { font-size:25px; font-weight:500; letter-spacing:-.6px; line-height:1.3; margin:7px 0 8px; }
.cab-section-heading p { margin:0; font-size:11px; color:var(--cab-muted); max-width:680px; }
.cab-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:39px; padding:9px 15px; border-radius:7px; border:1px solid var(--line); background:var(--cab-raised); color:var(--text); font-size:11px!important; font-weight:700!important; text-align:center; line-height:1.6; }
.cab-button:hover:not(:disabled) { background:var(--surface-hover); border-color:color-mix(in srgb,var(--accent) 50%,var(--line)); }
.cab-primary { border-color:var(--action); background:var(--action); color:#fff; }
.cab-primary:hover:not(:disabled) { background:var(--action-hover); border-color:var(--action-hover); box-shadow:0 4px 18px color-mix(in srgb,var(--action) 20%,transparent); }
.cab-inline { display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:transparent; color:var(--accent); font-size:10px!important; line-height:1.7; font-weight:700!important; text-align:left; }
.cab-inline:hover { color:var(--text); }
.cab-inline svg { transition:transform .2s; }
.cab-inline:hover>svg:last-child { transform:translateX(2px); }
.cab-icon-button { display:inline-flex; align-items:center; justify-content:center; padding:7px; width:31px; height:31px; flex:0 0 auto; border:1px solid transparent; border-radius:5px; color:var(--quiet); background:transparent; }
.cab-icon-button:hover { background:var(--selection); color:var(--accent); border-color:var(--line); }
.cab-panel-card { background:var(--cab-card); border:1px solid var(--line); border-radius:10px; padding:24px; }
.cab-panel-card h3 { font-size:17px; font-weight:600; letter-spacing:-.25px; line-height:1.4; margin-bottom:10px; }
.cabinet select,.cabinet input:not([type="checkbox"]):not([type="file"]) { min-width:0; max-width:100%; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:6px; min-height:39px; padding:8px 11px; font-size:11px; }
.cabinet select { width:100%; padding-right:25px; }
.cab-card-heading { display:flex; align-items:center; gap:20px; justify-content:space-between; margin-bottom:12px; }
.cab-card-heading h3 { margin:6px 0 0; }
.cab-subtle { color:var(--quiet); font-size:10px; line-height:1.85; }
.cab-compare-check { display:flex; align-items:center; flex:0 0 auto; padding:7px 2px; }
.cab-compare-check input { width:15px; height:15px; accent-color:var(--action); margin:0; cursor:pointer; }
.cab-appearance-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:25px; align-items:start; }
.cab-settings-block h3 { font-size:13px; margin:0 0 13px; font-weight:600; }
.cab-settings-block h3:not(:first-child) { margin-top:25px; }
.cab-choice-group { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--line); background:var(--bg); border-radius:7px; }
.cab-choice-group>button { padding:7px 15px; font-size:10px; color:var(--quiet); border:1px solid transparent; border-radius:4px; background:transparent; line-height:1.6; }
.cab-choice-group>button.active { background:var(--selection); border-color:color-mix(in srgb,var(--accent) 20%,var(--line)); color:var(--text); }
.cab-theme-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cab-theme-choice { min-width:0; padding:0 0 12px; text-align:left; background:transparent; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.cab-theme-choice.active { border-color:var(--accent); box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 15%,transparent); }
.cab-theme-swatch { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:5px; height:75px; padding:22px 12px 9px; border-bottom:1px solid #ffffff10; background:var(--sw-bg,#0f1c30); color:var(--sw-accent,#91baff); }
.cab-theme-swatch::before { content:''; position:absolute; top:11px; left:12px; width:32px; height:3px; background:currentColor; border-radius:1px; opacity:.8; }
.cab-theme-swatch>i { height:24px; border:1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius:3px; background:color-mix(in srgb,currentColor 10%,transparent); }
.cab-theme-swatch>i:nth-child(3) { grid-column:1/-1; height:3px; border:0; background:color-mix(in srgb,currentColor 18%,transparent); width:75%; }
.cab-theme-swatch>b { position:absolute; top:9px; right:9px; }
.cab-swatch-abyss { --sw-bg:#241833; --sw-accent:#c2a4ef; }
.cab-swatch-aether { --sw-bg:#e8f4ee; --sw-accent:#3c8b82; }
.cab-swatch-obsidian { --sw-bg:#1d1d21; --sw-accent:#d8b971; }
.cab-swatch-ice { --sw-bg:#12313c; --sw-accent:#81d8e3; }
.cab-theme-choice>strong { display:block; padding:10px 12px 0; color:var(--text); font-size:11px; }
.cab-theme-choice>small { display:block; padding:2px 12px 0; color:var(--quiet); font-size:8px; }
.cab-accent-group { display:flex; flex-wrap:wrap; gap:12px; }
.cab-accent { --sw-accent:var(--theme-swatch); width:29px; height:29px; border:3px solid var(--cab-card); border-radius:50%; background:var(--sw-accent); display:grid; place-items:center; padding:0; color:#142439; outline:1px solid transparent; }
.cab-accent-theme { background:linear-gradient(135deg,var(--sw-accent) 52%,var(--surface-raised) 53%); }
.cab-accent-blue,.cab-accent-standard { --sw-accent:#719fe4; }
.cab-accent-abyss { --sw-accent:#674c99; }
.cab-accent-aether { --sw-accent:#4e9a90; }
.cab-accent-obsidian { --sw-accent:#8d7a61; }
.cab-accent-ice { --sw-accent:#588ea9; }
.cab-accent-violet { --sw-accent:#b599e4; }
.cab-accent-teal { --sw-accent:#78bfb7; }
.cab-accent-gold { --sw-accent:#d1b279; }
.cab-accent.active { outline-color:var(--sw-accent); }
.cab-setting-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:21px; margin-top:22px; border-top:1px solid var(--line); }
.cab-setting-row h3 { margin:0 0 5px!important; }
.cab-setting-row p { font-size:9px; color:var(--quiet); margin:0; max-width:240px; }
.cab-setting-row .cab-choice-group { flex:0 0 auto; }
.cab-setting-row .cab-choice-group>button { padding:6px 10px; font-size:9px; }
.cab-preview { position:sticky; top:calc(var(--app-header-height,68px) + 20px); }
.cab-preview-label { display:flex; align-items:center; gap:8px; color:var(--quiet); font-size:8px; letter-spacing:1px; font-weight:700; margin:0 0 14px; }
.cab-preview-card { background:radial-gradient(ellipse at 70% 0,color-mix(in srgb,var(--accent) 10%,transparent),transparent 70%),var(--cab-card); border:1px solid var(--line); border-radius:12px; padding:25px; }
.cab-preview-card>.cab-eyebrow { font-size:7px; }
.cab-preview-sigil { display:flex; justify-content:center; color:var(--accent); padding:27px 0 30px; animation:cab-breathe 6s ease-in-out infinite; }
.cab-preview-card h3 { font-size:23px; line-height:1.3; letter-spacing:-.5px; font-weight:500; margin:0 0 12px; }
.cab-preview-card p { font-size:10px; color:var(--quiet); line-height:1.85; margin-bottom:23px; }
.cab-preview-stat { display:flex; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line); gap:8px; }
.cab-preview-stat>span { font-size:9px; color:var(--quiet); }
.cab-preview-stat>b { font-size:20px; font-weight:500; color:var(--accent); }
.cab-preview-stat small { font-size:8px; color:var(--quiet); }
.cab-preview-check { display:flex; gap:7px; color:var(--accent); align-items:center; font-size:9px; margin:15px 0 22px; }
.cab-preview-card>.cab-button { width:100%; font-size:9px!important; }
.cab-preview>.cab-subtle { font-size:9px; margin-top:12px; padding:0 5px; }
.cab-save-bar { position:sticky; z-index:5; bottom:15px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 19px; border:1px solid var(--line); background:var(--surface); border-radius:9px; margin-top:22px; box-shadow:0 -5px 30px #00000012; }
.cab-save-bar>span { color:var(--quiet); font-size:10px; }
.cab-save-bar>div { display:flex; align-items:center; gap:12px; }
.cab-save-bar .cab-inline { margin-right:8px; }
.cab-feature-icon { display:grid; place-items:center; height:46px; width:46px; border:1px solid var(--line); border-radius:9px; background:var(--soft); color:var(--accent); margin-bottom:20px; }
.cab-account-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:35px; }
.cab-settings-block .cab-sigil-editor { margin-bottom:22px; }
.cab-sigil-picker { display:grid; gap:9px; min-width:0; }
.cab-sigil-preview { display:flex; align-items:center; gap:12px; min-width:0; padding:10px 12px; border-radius:11px; background:linear-gradient(105deg,var(--selection),var(--soft) 72%); }
.cab-sigil-preview-glyph { display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:9px; background:var(--surface); color:var(--accent); }
.cab-sigil-preview-copy { min-width:0; }
.cab-sigil-preview-copy small,.cab-sigil-preview-copy strong { display:block; line-height:1.4; }
.cab-sigil-preview-copy small { color:var(--copy); font-size:10px; }
.cab-sigil-preview-copy strong { margin-top:3px; font-size:14px; overflow-wrap:anywhere; }
.cab-sigil-tabs { display:flex; gap:4px; }
.cabinet .cab-sigil-tab { display:flex; align-items:center; gap:6px; min-height:36px; border:0; border-radius:6px; padding:6px 12px; background:none; color:var(--muted); font-size:12px; font-weight:700; }
.cab-sigil-tab>svg { color:var(--accent); flex:none; }
.cab-sigil-tab:hover { color:var(--text); background:var(--surface-hover); }
.cab-sigil-tab[aria-pressed="true"] { color:var(--text); background:linear-gradient(0deg,var(--selection),transparent); }
.cab-sigil-locked { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; margin:0; }
.cab-sigil-locked svg { flex:none; color:var(--accent); }
.cab-avatar-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,74px),1fr)); gap:7px; }
.cabinet .cab-avatar-choice { position:relative; display:grid; justify-items:center; align-content:center; gap:6px; min-width:0; min-height:73px; padding:8px 4px; border:0; border-radius:8px; background:var(--soft); color:var(--copy); }
.cab-avatar-choice .cab-profile-sign { color:var(--accent); }
.cabinet .cab-avatar-choice:hover { background:var(--surface-hover); color:var(--text); }
.cabinet .cab-avatar-choice.active { background:var(--selection); color:var(--text); }
.cab-avatar-choice.is-locked .cab-profile-sign { color:var(--muted); }
.cab-sigil-name { display:block; max-width:100%; overflow-wrap:anywhere; text-align:center; font-size:11px; line-height:1.25; }
.cab-sigil-tick { position:absolute; display:grid; place-items:center; right:5px; top:5px; color:var(--accent); }
.cab-field { display:flex; flex-direction:column; gap:8px; font-size:11px; color:var(--copy); }
.cab-field>span { font-size:10px; color:var(--copy); }
.cab-field small { color:var(--quiet); font-size:9px; }
.cab-field>input,.cab-field>select { width:100%; }
.cab-account-fields { display:grid; grid-template-columns:1fr 1.5fr; gap:20px; margin:24px 0 12px; }
.cab-form-footer { display:flex; align-items:center; justify-content:flex-end; gap:20px; padding-top:20px; margin-top:22px; border-top:1px solid var(--line); }
.cab-account-aside { padding:26px 12px; }
.cab-account-aside>span { display:flex; color:var(--accent); margin-bottom:22px; }
.cab-account-aside h3 { font-weight:500; font-size:20px; line-height:1.4; letter-spacing:-.4px; margin-bottom:13px; }
.cab-account-aside p { color:var(--quiet); font-size:11px; line-height:1.9; margin-bottom:14px; }
.cab-account-aside>.cab-inline { margin-top:14px; }
.cab-data-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.cab-transfer-card { display:flex; flex-direction:column; align-items:flex-start; }
.cab-transfer-card h3 { font-size:22px; font-weight:500; }
.cab-transfer-card p { font-size:11px; color:var(--quiet); line-height:1.9; margin-bottom:20px; max-width:410px; }
.cab-data-counts { display:flex; gap:19px; color:var(--quiet); font-size:9px; padding:0 0 24px; }
.cab-data-counts b { font-size:12px; color:var(--copy); font-weight:600; margin-right:3px; }
.cab-transfer-card>.cab-button { margin-top:auto; }
.cab-import-drop { position:relative; display:flex; align-items:center; justify-content:center; gap:18px; width:100%; min-height:88px; border:1px dashed var(--selection-line); border-radius:8px; background:var(--soft); color:var(--accent); cursor:pointer; margin-top:auto; padding:15px; }
.cab-import-drop:hover { background:var(--selection); }
.cab-import-drop>span { font-size:11px; font-weight:600; }
.cab-import-drop small { display:block; font-size:9px; font-weight:400; color:var(--quiet); margin-top:3px; }
.cab-import-drop>input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.cab-import-drop:has(input:focus-visible) { background:var(--selection); color:var(--accent); }
.cab-snapshots { margin-top:22px; }
.cab-snapshots>.cab-subtle { max-width:800px; margin-bottom:22px; }
.cab-snapshot-list { border-top:1px solid var(--line); }
.cab-snapshot-row { display:flex; align-items:center; gap:15px; padding:16px 0; border-bottom:1px solid var(--line); }
.cab-snapshot-row:last-child { border-bottom:0; padding-bottom:0; }
.cab-snapshot-icon { width:36px; height:36px; border-radius:7px; background:var(--soft); display:grid; place-items:center; color:var(--quiet); flex:0 0 auto; }
.cab-snapshot-row>div:first-of-type { min-width:0; }
.cab-snapshot-row strong,.cab-snapshot-row>div>span { display:block; }
.cab-snapshot-row strong { font-size:11px; font-weight:600; }
.cab-snapshot-row>div>span { font-size:9px; color:var(--quiet); margin-top:2px; }
.cab-snapshot-row>div:last-child { display:flex; gap:10px; align-items:center; margin-left:auto; }
.cab-no-snapshots { display:flex; align-items:center; justify-content:center; gap:16px; padding:25px; background:var(--soft); border-radius:7px; color:var(--quiet); font-size:11px; }
.cab-danger-zone { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:23px 0; margin-top:25px; border-top:1px solid var(--line); }
.cab-danger-zone h3 { font-size:13px; font-weight:600; margin-bottom:6px; }
.cab-danger-zone p { color:var(--quiet); font-size:10px; line-height:1.9; max-width:700px; margin:0; }
.cab-danger { color:var(--danger); border-color:color-mix(in srgb,var(--danger) 30%,var(--line)); background:color-mix(in srgb,var(--danger) 4%,transparent); }
.cab-danger:hover { color:var(--danger); background:color-mix(in srgb,var(--danger) 10%,transparent)!important; border-color:var(--danger)!important; }
.cab-error { padding:12px 15px; font-size:11px; line-height:1.8; color:var(--danger); border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line)); background:color-mix(in srgb,var(--danger) 6%,var(--bg)); border-radius:7px; }
.cab-dialog { background:var(--surface); color:var(--text); padding:25px; border:1px solid var(--line); border-radius:13px; width:min(570px,calc(100% - 32px)); max-height:calc(100dvh - 40px); box-shadow:0 20px 90px #0005; font-size:12px; }
.cab-dialog::backdrop { background:#040b17b8; backdrop-filter:blur(5px); }
.cab-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:25px; margin-bottom:21px; }
.cab-dialog-heading h2 { font-size:22px; line-height:1.35; letter-spacing:-.5px; margin:0; font-weight:500; overflow-wrap:anywhere; }
.cab-dialog-heading>.cab-icon-button { margin-top:-5px; margin-right:-8px; }
.cab-dialog>p { font-size:11px; line-height:1.9; }
.cab-character-delete { margin-right:auto; }
.cab-dialog.cab-sigil-dialog { width:min(580px,calc(100% - 24px)); border:0; padding:clamp(16px,4vw,25px); }
.cab-sigil-dialog .cab-sigil-editor { margin-top:16px; }
.cab-sigil-dialog .cab-dialog-footer { border:0; padding-top:0; margin-top:17px; }
.cab-dialog-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; padding-top:19px; border-top:1px solid var(--line); }
.cab-restore-summary { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin:20px 0; }
.cab-restore-summary>span { display:flex; flex-direction:column; padding:15px; background:var(--soft); border:1px solid var(--line); border-radius:7px; color:var(--quiet); font-size:10px; }
.cab-restore-summary b { font-size:25px; color:var(--text); line-height:1.4; font-weight:500; }
.cab-restore-characters { list-style:none; padding:0; margin:0 0 20px; max-height:180px; overflow:auto; }
.cab-restore-characters>li { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid var(--line); font-size:11px; }
.cab-restore-characters b { font-weight:500; color:var(--quiet); flex:0 0 auto; }
.cab-plan-detail { margin:0 0 20px; }
.cab-plan-detail>div { display:flex; justify-content:space-between; align-items:center; padding:10px 0; gap:20px; border-bottom:1px solid var(--line); font-size:11px; }
.cab-plan-detail dt { color:var(--quiet); }
.cab-plan-detail dd { margin:0; color:var(--accent); font-variant-numeric:tabular-nums; }
.cab-compare-wrap { overflow:auto; }
.cab-compare-table { width:100%; border-collapse:collapse; font-size:11px; }
.cab-compare-table th,.cab-compare-table td { text-align:left; padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.cab-compare-table tbody th { font-weight:400; color:var(--quiet); }
.cab-compare-table thead th { font-size:10px; font-weight:600; overflow-wrap:anywhere; }
.cab-compare-table .different td { background:var(--selection); color:var(--accent); }
.account-entry { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:38px; padding:0 12px; background:var(--header-field-bg); border:0; color:#c1d0e2; font-size:11px; font-weight:700; border-radius:8px; white-space:nowrap; flex:0 0 auto; }
.account-entry:hover { color:#f3f7fe; background:var(--header-field-hover); }
.account-entry.active { color:#f3f7fe; background:color-mix(in srgb,var(--header-field-bg) 59%,var(--action)); }
[data-theme="light"] .account-entry { border:1px solid color-mix(in srgb,var(--header-field-bg) 63%,var(--accent)); }
/* Premium is the intentional glow treatment on the otherwise solid header controls. */
.account-entry.is-premium { box-shadow:inset 0 0 0 1px var(--header-glow),0 0 14px color-mix(in srgb,var(--header-glow) 42%,transparent); }
.cab-entry-avatar { display:grid; place-items:center; position:relative; color:var(--header-glow); }
[data-theme="light"] .cabinet { --cab-gold:#876b34; }
[data-density="compact"] .cab-panel-card { padding:19px; }
[data-density="compact"] .cab-snapshot-row { padding:11px 0; }
[data-density="compact"] .task-row { padding-top:12px; padding-bottom:12px; }
[data-density="compact"] .activity-card { --activity-pad-x:18px; --activity-pad-y:18px; }
@keyframes cab-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@keyframes cab-breathe { 0%,100% { opacity:.8; filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 8%,transparent)); } 50% { opacity:1; filter:drop-shadow(0 0 16px color-mix(in srgb,var(--accent) 27%,transparent)); } }
@media(max-width:1100px) {
  .cab-appearance-layout,.cab-account-layout { grid-template-columns:minmax(0,1fr) 270px; gap:20px; }
  .cab-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cab-setting-row { flex-wrap:wrap; gap:12px; }
}
@media(max-width:760px) {
  .site-header .brand-game,.site-header .brand-separator { display:none; }
  .account-entry { order:3; padding:0; width:34px; height:34px; }
  .account-entry>span:last-child { display:none; }
  .cab-entry-avatar { width:26px; height:26px; }
  .cabinet { padding-top:23px; }
  .cab-breadcrumb { font-size:7px; margin-bottom:13px; }
  .cab-appearance-layout,.cab-account-layout { grid-template-columns:1fr; }
  .cab-theme-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cab-preview { position:static; }
  .cab-preview-card { display:grid; grid-template-columns:1fr 1fr; column-gap:25px; align-items:center; }
  .cab-preview-card>.cab-eyebrow { grid-column:1/-1; }
  .cab-preview-sigil { grid-column:2; grid-row:2/5; padding:20px; }
  .cab-preview-card h3 { grid-column:1; margin:22px 0 10px; }
  .cab-preview-card p { grid-column:1; }
  .cab-preview-stat { grid-column:1; }
  .cab-preview-card .cab-button { grid-column:2; grid-row:5; }
  .cab-account-aside { border:1px dashed var(--line); border-radius:9px; padding:23px; }
  .cab-account-aside>span { margin-bottom:13px; }
}
@media(max-width:560px) {
  .cab-section-heading { align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
  .cab-section-heading h2 { font-size:23px; }
  .cab-section-heading p { font-size:10px; }
  .cab-section-heading>.cab-button { font-size:10px!important; padding:8px 13px; }
  .cab-card-heading { align-items:flex-start; flex-wrap:wrap; gap:14px; }
  .cab-card-heading h3 { font-size:17px; }
  .cab-panel-card { padding:20px; }
  .cab-theme-grid { gap:11px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cab-theme-swatch { height:78px; }
  .cab-theme-choice>small { font-size:9px; }
  .cab-choice-group>button { padding:6px 13px; }
  .cab-preview-card { display:block; }
  .cab-preview-card h3 { margin-top:0; font-size:25px; }
  .cab-preview-sigil { padding:26px; }
  .cab-preview-check { margin:15px 0 22px; }
  .cab-preview-card .cab-button { font-size:11px!important; }
  .cab-save-bar { padding:13px; gap:10px; flex-direction:column; align-items:stretch; bottom:8px; }
  .cab-save-bar>span { font-size:9px; }
  .cab-save-bar>div { display:grid; gap:9px; grid-template-columns:auto auto; }
  .cab-save-bar .cab-inline { grid-column:1/-1; font-size:9px!important; justify-content:flex-start; }
  .cab-save-bar .cab-button { font-size:10px!important; padding:8px 11px; }
  .cab-data-grid { grid-template-columns:1fr; gap:16px; }
  .cab-account-fields { grid-template-columns:1fr; gap:18px; }
  .cab-form-footer { gap:12px; justify-content:space-between; }
  .cab-form-footer>.cab-inline { font-size:9px!important; }
  .cab-form-footer>.cab-button { font-size:10px!important; }
  .cab-snapshot-row { flex-wrap:wrap; gap:11px; }
  .cab-snapshot-row>div:last-child { flex-basis:100%; margin:0 0 0 47px; }
  .cab-snapshot-row>div:last-child>.cab-inline { margin-right:auto; }
  .cab-no-snapshots { justify-content:flex-start; font-size:10px; padding:16px; }
  .cab-danger-zone { flex-direction:column; align-items:flex-start; gap:16px; }
  .cab-dialog { padding:20px; }
  .cab-dialog-heading h2 { font-size:20px; }
  .cab-dialog-footer { flex-wrap:wrap; }
  .cab-dialog-footer>.cab-button { font-size:10px!important; }
  .cab-restore-summary { gap:8px; }
  .cab-restore-summary>span { padding:10px; font-size:8px; }
}
@media(max-width:360px) {
  .cab-choice-group>button { padding:6px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .cabinet *,.account-entry { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
html[data-motion="reduced"],html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }

/* The cabinet shares the portal's solid blue panels, art and type hierarchy. */
.cabinet {
  --cab-card:var(--surface); --cab-raised:var(--surface-raised);
  --cab-line:color-mix(in srgb,var(--line) 65%,transparent);
  --cab-blue:var(--accent); --cab-muted:var(--quiet);
  padding:25px 0 48px; font-size:14px; line-height:1.65;
}
.cabinet .cab-eyebrow { font-size:10px; letter-spacing:1.3px; font-weight:700; color:var(--cab-muted); }
.cabinet .cab-button { min-height:43px; font-size:12px!important; padding:10px 17px; border:0; border-radius:7px; }
.cabinet .cab-primary { background:var(--action); }
.cabinet .cab-inline { font-size:12px!important; font-weight:700!important; gap:10px; }
.cabinet .cab-icon-button { width:36px; height:36px; padding:9px; }
.cabinet .cab-subtle { font-size:12px; line-height:1.8; }
.cabinet .cab-panel-card { border:0; border-radius:13px; padding:25px; background:var(--cab-card); }
.cabinet .cab-card-heading { margin-bottom:15px; }
.cabinet .cab-card-heading h3 { margin:6px 0 0; font-size:22px; font-weight:800; line-height:1.3; letter-spacing:-.6px; }
.cab-character-rail { display:flex; align-items:stretch; gap:12px; margin:0 0 18px; }
.cab-roster { display:flex; flex:1; min-width:0; align-items:stretch; gap:9px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain; padding:3px 3px 4px; }
.cab-roster-item { position:relative; flex:1 0 195px; max-width:280px; display:flex; gap:12px; align-items:center; min-width:0; padding:11px 15px; text-align:left; border:0; border-radius:9px; color:var(--text); background:var(--soft); }
.cab-roster-item.selected { background:var(--surface); box-shadow:inset 3px 0 var(--cab-blue); }
.cab-roster-item:hover { background:var(--surface-hover); }
.cab-roster-item>span:nth-child(2) { min-width:0; }
.cab-roster-item strong { display:block; font-size:13px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.cab-roster-item small { display:block; font-size:10px; line-height:1.4; margin-top:4px; color:var(--cab-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cab-roster-emblem { display:grid; place-items:center; color:var(--cab-blue); flex:0 0 auto; }
.cab-roster-emblem>img { object-fit:contain; }
.cab-roster-crown { margin-left:auto; color:var(--cab-blue); align-self:flex-start; opacity:.7; }
.cab-main-tabs { display:flex; position:relative; isolation:isolate; gap:6px; border-bottom:1px solid var(--cab-line); margin-bottom:25px; }
.cab-main-tab { display:flex; position:relative; align-items:center; gap:10px; padding:13px 18px; border:0; border-radius:0; min-height:49px; background:transparent; color:var(--cab-muted); font-size:14px!important; font-weight:700; }
.cab-main-tab:hover { color:var(--text); background:color-mix(in srgb,var(--accent) 4%,transparent); }
.cab-main-tab.active { color:var(--text); background:linear-gradient(0deg,var(--selection),color-mix(in srgb,var(--selection) 20%,transparent)); }
.cab-main-tab.active>svg { color:var(--cab-blue); }
.cab-main-tab>b { min-width:19px; padding:0 5px; background:var(--soft); color:var(--cab-muted); border-radius:4px; font-size:10px; line-height:1.8; font-weight:700; }
.cab-main-tab.cab-settings-tab { margin-left:auto; font-size:12px!important; font-weight:500; }
.cab-main-tabs::after { content:''; position:absolute; bottom:-1px; left:var(--cab-tab-x,0px); width:var(--cab-tab-width,115px); height:2px; background:var(--cab-blue); box-shadow:0 0 14px color-mix(in srgb,var(--cab-blue) 60%,transparent); transition:left .3s cubic-bezier(.2,.7,.2,1),width .3s; pointer-events:none; }
.cab-content { animation:none; }
.cab-journey { --cab-sigil-center:48%; --cab-sigil-size:250px; --cab-journey-height:350px; display:flex; position:relative; isolation:isolate; overflow:hidden; min-height:var(--cab-journey-height); border-radius:16px; background:var(--art-base); color:var(--text); }
.cab-journey-art { position:absolute; inset:0 0 0 auto; width:68%; height:100%; object-fit:cover; object-position:center 39%; z-index:-3; opacity:.88; mask-image:linear-gradient(90deg,transparent,#000 28%); }
.cab-journey-art.cab-class-art { object-position:75% 17%; }
.cab-journey-shade { position:absolute; z-index:-2; inset:-1px; background:linear-gradient(90deg,var(--art-tint) 5%,color-mix(in srgb,var(--art-tint) 97%,transparent) 31%,color-mix(in srgb,var(--art-tint) 34%,transparent) 61%,color-mix(in srgb,var(--art-tint) 6%,transparent)),linear-gradient(0deg,color-mix(in srgb,var(--art-base) 70%,transparent),transparent 65%); }
.cab-journey::after { content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit; box-shadow:inset 0 0 50px color-mix(in srgb,var(--art-base) 28%,transparent); }
.cab-journey-copy { position:relative; z-index:1; padding:29px 36px 30px; width:calc(var(--cab-sigil-center) - var(--cab-sigil-size) / 2); max-width:760px; }
.cab-journey-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 23px; margin-bottom:16px; }
.cab-journey-meta>span { display:inline-flex; align-items:center; gap:7px; font-size:9px; color:var(--art-muted); font-weight:700; letter-spacing:1px; }
.cab-journey-meta>button { display:flex; align-items:center; gap:6px; border:0; border-radius:6px; background:color-mix(in srgb,var(--accent) 13%,var(--art-tint)); color:var(--text); font-size:10px; padding:5px 9px; }
.cab-journey-meta>button:hover { color:var(--text); background:var(--surface-hover); }
.cab-journey h2 { font-size:39px; line-height:1.15; font-weight:800; letter-spacing:-1.2px; margin:0 0 11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cab-journey-class { display:flex; flex-wrap:wrap; align-items:center; gap:9px; font-size:12px; color:var(--art-muted); margin-bottom:22px; }
.cab-journey-class>img { object-fit:contain; }
.cab-journey-class>span { color:var(--accent); }
.cab-journey-score { display:flex; align-items:center; gap:30px; max-width:390px; }
.cab-journey-score small { display:block; font-size:8px; color:var(--art-muted); font-weight:700; letter-spacing:1px; }
.cab-journey-score strong { display:flex; align-items:baseline; gap:7px; font-size:38px; line-height:1.4; font-weight:700; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.cab-journey-score strong>span { font-size:10px; font-weight:500; letter-spacing:0; color:var(--art-muted); }
.cab-journey-score .cab-journey-target>strong { font-size:30px; color:var(--accent); font-weight:500; }
.cab-score-arrow { color:var(--accent); margin-top:10px; }
.cab-score-track { margin:9px 0 23px; width:min(390px,100%); height:3px; background:color-mix(in srgb,var(--accent) 23%,transparent); border-radius:2px; overflow:hidden; }
.cab-score-track>i { display:block; height:100%; min-width:3px; background:var(--accent); box-shadow:0 0 15px color-mix(in srgb,var(--accent) 44%,transparent); }
.cab-journey-actions { display:flex; align-items:center; gap:20px; }
.cab-score-single { margin-bottom:22px; }
.cab-journey-actions>span { max-width:240px; color:var(--art-muted); font-size:11px; line-height:1.6; }
.cab-journey-sigil { position:absolute; width:var(--cab-sigil-size); height:var(--cab-sigil-size); left:var(--cab-sigil-center); top:50%; transform:translate(-50%,-50%); color:var(--text); filter:drop-shadow(0 0 24px var(--art-base)); }
.cab-progress-ring { position:absolute; inset:0; height:100%; width:100%; transform:rotate(-90deg); }
.cab-ring-track { stroke:color-mix(in srgb,var(--accent) 28%,transparent); stroke-width:1; }
.cab-ring-fill { stroke:var(--accent); stroke-width:2; stroke-linecap:round; filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 45%,transparent)); transition:stroke-dashoffset .4s; }
.cab-sigil-emblem { position:absolute; display:grid; place-items:center; inset:30px 55px 88px; }
.cab-sigil-emblem>img { width:76px; height:79px; object-fit:contain; filter:drop-shadow(0 4px 12px color-mix(in srgb,var(--art-base) 72%,transparent)); }
.cab-sigil-caption { position:absolute; top:155px; left:0; right:0; text-align:center; }
.cab-sigil-caption strong { display:block; font-size:24px; line-height:1.2; font-weight:700; letter-spacing:-.7px; font-variant-numeric:tabular-nums; }
.cab-sigil-caption strong>span { font-size:14px; color:var(--art-muted); font-weight:500; letter-spacing:0; }
.cab-sigil-caption small { display:block; margin-top:7px; font-size:9px; color:var(--art-muted); }
.cab-sigil-orbit { position:absolute; inset:-7px; border:1px dashed color-mix(in srgb,var(--accent) 25%,transparent); border-radius:50%; animation:cab-orbit 90s linear infinite; }
.cab-sigil-orbit::before { content:''; position:absolute; width:4px; height:4px; background:var(--accent); border-radius:50%; left:49%; top:-2px; box-shadow:0 0 15px color-mix(in srgb,var(--accent) 44%,transparent); }
.cab-sigil-orbit-inner { inset:35px; border-style:solid; opacity:.4; animation-direction:reverse; }
.cab-dashboard-grid { display:grid; grid-template-columns:1.18fr 1fr; gap:20px; margin:22px 0 32px; align-items:stretch; }
.cab-section-symbol { color:var(--cab-blue); opacity:.7; }
.cab-next-card { display:flex; flex-direction:column; min-width:0; }
.cab-next-stage { margin:0 0 17px; font-size:12px; color:var(--copy); }
.cab-next-stage>span { color:var(--cab-muted); font-size:11px; }
.cab-next-list { flex:1; margin-bottom:20px; }
.cab-next-step { display:flex; position:relative; align-items:center; gap:13px; padding:15px 0; border-bottom:1px solid var(--cab-line); cursor:pointer; }
.cab-next-step:first-child { padding-top:0; align-items:flex-start; }
.cab-next-step:last-child { border-bottom:0; padding-bottom:0; }
.cab-next-step input { position:absolute; width:100%; height:100%; opacity:0; inset:0; cursor:pointer; margin:0; }
.cab-step-number { display:grid; place-items:center; flex:0 0 auto; width:29px; height:29px; background:var(--cab-raised); border-radius:6px; font-size:10px; color:var(--cab-blue); font-weight:700; margin-top:1px; }
.cab-next-step>span:nth-of-type(2) { flex:1; min-width:0; }
.cab-next-step strong { display:block; font-size:13px; font-weight:700; line-height:1.5; color:var(--text); }
.cab-next-step>span>span { display:block; color:var(--copy); font-size:12px; line-height:1.8; margin-top:5px; }
.cab-next-step>i { display:grid; place-items:center; width:23px; height:23px; border:1px solid var(--cab-line); border-radius:50%; color:var(--cab-muted); flex:0 0 auto; margin-top:2px; transition:background-color .18s,color .18s; }
.cab-next-step:hover>i,.cab-next-step>input:is(:checked,:focus-visible)~i { background:var(--action); border-color:var(--action); color:white; }
.cabinet :is(.cab-next-step,.cab-routine-row)>input:focus-visible~span strong { color:var(--accent); }
.cab-next-card>.cab-inline,.cab-routine-card>.cab-inline { align-self:flex-start; margin-top:3px; }
.cab-routine-card { display:flex; flex-direction:column; }
.cab-routine-top { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:0 0 13px; }
.cab-routine-periods { display:flex; gap:3px; background:var(--soft); border-radius:6px; padding:3px; }
.cab-routine-periods>button { padding:6px 15px; font-size:11px; border:0; background:none; color:var(--cab-muted); border-radius:4px; }
.cab-routine-periods>button[aria-pressed="true"] { background:var(--cab-raised); color:var(--text); }
.cab-routine-top>strong { font-size:22px; line-height:1.2; letter-spacing:-.5px; color:var(--cab-blue); }
.cab-routine-top>strong>span { font-size:15px; font-weight:500; color:var(--cab-muted); }
.cab-routine-top>strong>small { font-size:9px; display:block; font-weight:400; color:var(--cab-muted); text-align:right; margin-top:3px; letter-spacing:0; }
.cab-routine-track { height:3px; border-radius:2px; background:var(--cab-line); margin-bottom:13px; overflow:hidden; }
.cab-routine-track>i { display:block; height:100%; background:var(--cab-blue); }
.cab-routine-list { margin:0 0 19px; flex:1; }
.cab-routine-row { display:flex; position:relative; gap:13px; align-items:center; padding:12px 0; border-bottom:1px solid var(--cab-line); cursor:pointer; }
.cab-routine-row:last-child { border:0; }
.cab-routine-row input { position:absolute; opacity:0; width:100%; height:100%; margin:0; inset:0; cursor:pointer; }
.cab-routine-check { display:grid; place-items:center; flex:0 0 auto; width:25px; height:25px; border:1px solid var(--cab-line); border-radius:50%; color:transparent; transition:background .2s,color .2s; }
.cab-routine-row:hover .cab-routine-check { color:var(--cab-blue); border-color:var(--cab-blue); }
.cab-routine-row.done .cab-routine-check,.cab-routine-row>input:is(:checked,:focus-visible)+.cab-routine-check { color:var(--cab-blue); background:var(--selection); border-color:transparent; }
.cab-routine-row.done strong { color:var(--cab-muted); }
.cabinet :is(.cab-next-step,.cab-routine-row) input:disabled { cursor:wait; }
.cab-routine-row strong { display:block; font-size:13px; line-height:1.4; font-weight:700; color:var(--text); }
.cab-routine-row small { display:block; font-size:10px; color:var(--cab-muted); margin-top:4px; }
.cab-steps-complete { padding:20px 0; display:flex; flex-wrap:wrap; align-items:center; gap:13px; color:var(--cab-blue); }
.cab-steps-complete strong { font-size:14px; }
.cab-steps-complete p { flex-basis:100%; font-size:12px; color:var(--cab-muted); margin:0; }
.cab-tools-section>.cab-section-heading { margin:0 0 20px; }
.cab-tools-section .cab-section-heading h2 { font-size:27px; font-weight:800; margin:7px 0 0; letter-spacing:-.8px; }
.cab-tools-section .cab-section-heading h2>span { font-weight:500; color:var(--cab-blue); }
.cab-tool-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.cab-tool-card { display:flex; position:relative; overflow:hidden; isolation:isolate; min-height:242px; background:var(--art-base); color:var(--text); border-radius:12px; }
.cab-tool-card>img { position:absolute; height:100%; width:100%; inset:0; object-fit:cover; z-index:-3; opacity:.74; transition:transform .7s; }
.cab-tool-card::before { position:absolute; inset:-1px; content:''; background:linear-gradient(90deg,var(--art-tint),color-mix(in srgb,var(--art-tint) 87%,transparent) 48%,color-mix(in srgb,var(--art-tint) 42%,transparent)),linear-gradient(0deg,var(--art-base),transparent 92%); z-index:-1; }
.cab-tool-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px #020c1b24; }
.cab-tool-card:hover>img { transform:scale(1.045); }
.cab-tool-card>div { width:100%; padding:24px; display:flex; flex-direction:column; align-items:flex-start; }
.cab-tool-card .cab-eyebrow { color:var(--art-muted); font-size:8px; text-transform:uppercase; letter-spacing:1.1px; }
.cab-tool-card h3 { font-size:23px; line-height:1.3; letter-spacing:-.6px; font-weight:800; margin:22px 0 13px; max-width:250px; }
.cab-tool-status { display:block; font-size:10px; color:var(--art-muted); }
.cab-tool-open { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; margin-top:auto; padding-top:24px; font-size:12px; font-weight:700; color:var(--accent); }
.cab-tool-wheels>img { object-position:65% center; }
.cab-tool-daevanion>img { object-position:70% center; }
.cab-builds { padding-top:2px; }
.cab-current-build { display:flex; align-items:center; gap:20px; padding:26px; border-radius:13px; background:linear-gradient(120deg,var(--surface),var(--cab-raised)); }
.cab-current-symbol { display:grid; place-items:center; width:59px; height:59px; border-radius:12px; color:var(--cab-blue); background:color-mix(in srgb,var(--bg) 50%,transparent); flex:0 0 auto; }
.cab-current-build>div:nth-child(2) { min-width:0; }
.cab-current-build h2 { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; font-size:23px; line-height:1.4; font-weight:800; letter-spacing:-.5px; margin:6px 0; }
.cab-current-build h2>span { font-size:12px; letter-spacing:0; color:var(--cab-muted); font-weight:500; }
.cab-current-build p { margin:0; color:var(--copy); font-size:12px; }
.cab-current-build>.cab-button { margin-left:auto; flex:0 0 auto; }
.cab-build-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:13px 0 32px; }
.cab-build-tool { display:flex; align-items:center; gap:13px; padding:17px 19px; background:var(--soft); color:var(--copy); border-radius:8px; }
.cab-build-tool:hover { background:var(--surface); }
.cab-build-tool>svg:first-child { color:var(--cab-blue); }
.cab-build-tool>svg:last-child { color:var(--cab-muted); margin-left:auto; width:15px; }
.cab-build-tool>span { font-size:12px; font-weight:700; }
.cab-build-tool small { display:block; font-size:10px; color:var(--cab-muted); margin-top:3px; font-weight:400; }
.cab-build-library-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 19px; }
.cab-build-library-heading h3 { font-size:22px; font-weight:800; line-height:1.3; letter-spacing:-.6px; display:flex; gap:12px; align-items:center; margin:0 0 8px; }
.cab-build-library-heading h3>span { font-size:11px; font-weight:500; letter-spacing:0; padding:2px 7px; border-radius:5px; background:var(--surface); color:var(--cab-muted); }
.cab-build-library-heading p { font-size:12px; color:var(--cab-muted); margin:0; }
.cab-build-search { display:flex; align-items:center; gap:9px; background:var(--soft); border-radius:7px; padding:0 12px; width:240px; flex:0 0 auto; color:var(--cab-muted); }
.cab-build-search>input { background:transparent!important; border:0!important; width:100%; font-size:12px!important; padding:10px 0!important; outline:0!important; }
.cab-build-search:focus-within { background:var(--surface-hover); }
.cab-build-filters { display:flex; gap:6px; margin-bottom:21px; }
.cab-build-filters>button { padding:7px 14px; border:0; border-radius:5px; background:var(--soft); color:var(--cab-muted); font-size:11px; }
.cab-build-filters>button[aria-pressed="true"] { background:var(--selection); color:var(--text); box-shadow:inset 0 -2px var(--cab-blue); }
.cab-build-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.cab-build-card { border-radius:12px; position:relative; min-width:0; padding:23px 24px 0; background:var(--cab-card); overflow:hidden; }
.cab-build-card.is-current { box-shadow:inset 0 2px var(--cab-blue); background:linear-gradient(140deg,var(--cab-raised),var(--cab-card) 70%); }
.cab-build-card-top { display:flex; gap:12px; align-items:center; margin-bottom:22px; min-height:22px; }
.cab-build-mode { font-size:10px; font-weight:800; color:var(--cab-blue); padding:3px 7px; border-radius:4px; background:var(--soft); }
.cab-build-match { display:flex; align-items:center; gap:5px; color:var(--cab-muted); font-size:9px; }
.cab-build-card .cab-compare-check { margin-left:auto; display:flex; gap:6px; padding:3px 0; font-size:9px; color:var(--cab-muted); cursor:pointer; }
.cab-build-card .cab-compare-check>input { width:14px; height:14px; }
.cab-build-title { display:block; width:100%; text-align:left; border:0; padding:0; color:var(--text); background:none; }
.cab-build-title h3 { font-size:22px; font-weight:800; letter-spacing:-.5px; margin:0 0 7px; line-height:1.35; overflow-wrap:anywhere; }
.cab-build-title>span { color:var(--cab-muted); font-size:11px; }
.cab-build-metrics { display:grid; grid-template-columns:1fr 1fr 1fr; margin:24px 0 16px; }
.cab-build-metrics>div { display:flex; flex-direction:column-reverse; }
.cab-build-metrics dd { margin:0 0 5px; font-size:23px; font-weight:500; line-height:1.3; color:var(--text); font-variant-numeric:tabular-nums; letter-spacing:-.8px; }
.cab-build-metrics dt { font-size:9px; color:var(--cab-muted); }
.cab-build-role { display:flex; align-items:center; gap:7px; color:var(--cab-muted); font-size:10px; margin-bottom:17px; }
.cab-build-role>svg { color:var(--cab-blue); }
.cab-build-role>span { margin-left:auto; color:var(--danger); }
.cab-build-card>footer { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--cab-line); padding:10px 0; }
.cab-build-card>footer>div { display:flex; gap:3px; }
.cab-build-card>footer .cab-inline { font-size:11px!important; }
.cab-build-empty { text-align:center; padding:40px 25px 38px; background:var(--cab-card); border-radius:14px; }
.cab-empty-build-art { position:relative; width:150px; height:114px; margin:0 auto 22px; display:grid; place-items:center; color:var(--cab-blue); }
.cab-empty-build-art>i { position:absolute; width:73px; height:93px; border:1px solid var(--cab-line); background:var(--soft); transform:rotate(-17deg); left:12px; border-radius:6px; z-index:0; }
.cab-empty-build-art>i:nth-child(2) { transform:rotate(15deg); left:auto; right:12px; }
.cab-empty-build-art>svg { z-index:1; filter:drop-shadow(0 0 18px color-mix(in srgb,var(--cab-blue) 20%,transparent)); }
.cab-build-empty h3 { font-size:24px; font-weight:800; letter-spacing:-.6px; line-height:1.3; margin-bottom:12px; }
.cab-build-empty p { font-size:13px; color:var(--cab-muted); max-width:470px; margin:0 auto 23px; }
.cab-builds-note { font-size:11px; color:var(--cab-muted); margin:20px 0 0; max-width:950px; line-height:1.8; }
.cab-compare-bar { display:flex; position:sticky; z-index:5; bottom:12px; align-items:center; justify-content:space-between; gap:20px; padding:15px 21px; background:var(--surface-raised); border:1px solid var(--cab-line); border-radius:9px; margin-top:22px; box-shadow:0 8px 30px #020b1633; }
.cab-compare-bar>div { display:flex; align-items:center; gap:18px; }
.cab-compare-bar>div:first-child>svg { color:var(--cab-blue); }
.cab-compare-bar span { font-size:12px; color:var(--copy); }
.cab-compare-bar b { margin-left:12px; color:var(--cab-blue); font-size:14px; }
.cab-settings-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:30px; }
.cab-settings-sidebar { padding:5px 0 0; }
.cab-settings-sidebar>.cab-eyebrow { margin:0 0 17px 13px; }
.cab-settings-sidebar>nav { display:grid; gap:5px; }
.cab-settings-sidebar>nav>button { display:flex; align-items:center; gap:11px; background:none; border:0; border-radius:7px; color:var(--cab-muted); padding:13px; font-size:12px; text-align:left; }
.cab-settings-sidebar>nav>button>svg:last-child { margin-left:auto; opacity:.5; width:13px; }
.cab-settings-sidebar>nav>button.active { background:var(--surface); color:var(--text); }
.cab-settings-sidebar>nav>button.active>svg:first-child { color:var(--cab-blue); }
.cab-settings-sidebar>p { color:var(--cab-muted); font-size:10px; line-height:1.8; padding:0 13px; margin-top:22px; }
.cab-settings-content { min-width:0; }
.cab-settings-content .cab-section-heading { margin-bottom:22px; }
.cab-settings-content .cab-section-heading h2 { font-size:27px; font-weight:800; letter-spacing:-.7px; }
.cab-settings-content .cab-section-heading p { font-size:12px; }
.cab-settings-content .cab-appearance-layout { grid-template-columns:minmax(0,1fr) 245px; gap:20px; }
.cab-settings-content .cab-panel-card h3 { font-size:14px; }
.cab-settings-content .cab-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.cab-settings-content .cab-choice-group>button { font-size:11px; padding:7px 10px; }
.cab-settings-content .cab-setting-row { flex-wrap:wrap; gap:13px; }
.cab-settings-content .cab-setting-row p { font-size:10px; max-width:none; }
.cab-settings-content .cab-theme-choice>strong { font-size:12px; }
.cab-settings-content .cab-theme-choice>small { font-size:9px; }
.cab-settings-content .cab-save-bar .cab-button { font-size:11px!important; }
.cab-settings-content .cab-save-bar>span { font-size:11px; }
.cab-settings-content .cab-save-bar .cab-inline { font-size:10px!important; }
.cab-settings-content .cab-preview-card { padding:22px; }
.cab-settings-content .cab-preview-card h3 { font-size:22px; font-weight:800; }
.cab-settings-content .cab-preview-card p { font-size:11px; }
.cab-settings-content .cab-account-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
.cab-settings-content .cab-account-aside { display:none; }
.cab-settings-content .cab-field>span { font-size:12px; }
.cabinet .cab-field>input,.cabinet .cab-field>select { font-size:13px!important; min-height:44px; }
.cab-settings-content .cab-field>small { font-size:10px; }
.cab-settings-content .cab-account-fields { grid-template-columns:1fr 1.5fr; }
.cab-settings-content .cab-data-grid .cab-panel-card h3 { font-size:21px; font-weight:800; }
.cab-settings-content .cab-transfer-card p { font-size:12px; }
.cab-settings-content .cab-data-counts { font-size:10px; gap:13px; flex-wrap:wrap; }
.cab-settings-content .cab-snapshots h3 { font-size:22px; }
.cab-settings-content .cab-snapshot-row strong { font-size:12px; }
.cab-settings-content .cab-snapshot-row>div>span { font-size:10px; }
.cab-settings-content .cab-snapshot-row>div:last-child { gap:3px; }
.cab-settings-content .cab-danger-zone h3 { font-size:14px; }
.cab-settings-content .cab-danger-zone p { font-size:11px; }
.cab-character-fields { display:grid; grid-template-columns:1.3fr 1fr; gap:18px; margin:20px 0; }
.cab-dialog { font-size:13px; }
.cab-dialog-heading h2 { font-weight:800; }
.cab-dialog .cab-dialog-footer .cab-button { min-height:42px; }
.cab-dialog-wide { width:min(760px,calc(100% - 32px)); }
.cab-build-details>summary { font-size:12px; color:var(--cab-blue); cursor:pointer; padding:11px 0; }
.cab-build-details>.cab-plan-detail { max-height:310px; overflow:auto; padding-right:10px; }
.cab-plan-detail>div { font-size:12px; }
.cab-plan-detail dd { text-align:right; }
.cab-compare-table { font-size:12px; }
.cab-compare-table thead th { font-size:12px; max-width:220px; }
.cab-compare-table thead small { display:block; font-size:10px; font-weight:400; color:var(--cab-muted); margin-top:5px; }
.cab-compare-table th,.cab-compare-table td { padding:12px; }
.cab-compare-table tbody tr>th { min-width:160px; }
.cab-compare-table .different td { color:var(--text); }
[data-density="compact"] .cab-journey-copy { padding-top:24px; padding-bottom:24px; }
[data-density="compact"] .cab-journey { min-height:305px; }
[data-density="compact"] .cab-next-step { padding-top:11px; padding-bottom:11px; }
[data-density="compact"] .cab-routine-row { padding-top:9px; padding-bottom:9px; }
[data-theme="light"] .cabinet { --cab-card:color-mix(in srgb,var(--surface) 55%,var(--soft)); --cab-line:color-mix(in srgb,var(--line) 85%,transparent); }
@keyframes cab-orbit { to { transform:rotate(360deg); } }
@media(max-width:1100px) {
  .cab-journey { --cab-sigil-size:220px; }
  .cab-journey-copy { padding-left:29px; padding-right:25px; }
  .cab-journey-score { gap:12px; }
  .cab-sigil-emblem { inset:25px 45px 75px; }
  .cab-sigil-caption { top:137px; }
  .cab-sigil-caption strong { font-size:22px; }
  .cab-journey-actions { flex-wrap:wrap; gap:10px; }
  .cab-journey-actions>span { font-size:10px; }
  .cab-journey-score { gap:25px; }
  .cab-dashboard-grid { grid-template-columns:1.1fr 1fr; gap:17px; }
  .cab-tool-card>div { padding:22px; }
  .cab-tool-card h3 { font-size:22px; }
  .cab-settings-layout { grid-template-columns:160px minmax(0,1fr); gap:22px; }
  .cab-settings-content .cab-appearance-layout { grid-template-columns:1fr; }
  .cab-settings-content .cab-preview { position:static; }
  .cab-settings-content .cab-preview-card { display:none; }
  .cab-settings-content .cab-preview>.cab-preview-label { display:none; }
  .cab-settings-content .cab-preview>.cab-subtle { font-size:11px; margin:0; }
  .cab-build-card { padding:21px 21px 0; }
  .cab-build-match { font-size:8px; }
  .cab-build-card .cab-compare-check>span { display:none; }
}
@media(max-width:760px) {
  .cab-roster-item { flex-basis:190px; }
  .cab-main-tab { font-size:13px!important; padding:12px 14px; }
  .cab-main-tab.cab-settings-tab { font-size:11px!important; padding-left:12px; padding-right:12px; }
  .cab-journey { display:grid; grid-template-columns:minmax(0,1fr) 150px; align-items:center; gap:0 18px; padding:26px; min-height:0; }
  .cab-journey-copy { display:contents; }
  .cab-journey h2 { grid-column:1; grid-row:2; align-self:end; font-size:35px; }
  .cab-journey-class { grid-column:1; grid-row:3; align-self:start; margin-bottom:0; }
  .cab-journey-meta { grid-column:1 / -1; gap:15px; }
  .cab-journey-meta>span { font-size:8px; }
  .cab-journey-sigil { position:relative; grid-column:2; grid-row:2 / 4; width:150px; height:150px; top:auto; left:auto; transform:none; justify-self:end; }
  .cab-sigil-emblem { inset:24px 35px 61px; }
  .cab-sigil-emblem>img { width:60px; height:62px; }
  .cab-sigil-caption { top:94px; }
  .cab-sigil-caption strong { font-size:19px; }
  .cab-sigil-caption strong>span { font-size:11px; }
  .cab-sigil-caption small { font-size:7px; max-width:100px; margin:4px auto 0; }
  .cab-sigil-orbit-inner { inset:24px; }
  .cab-journey-actions { grid-column:1 / -1; margin:0; flex-wrap:wrap; }
  .cab-journey-actions>span { max-width:220px; }
  .cab-journey-score { grid-column:1 / -1; gap:23px; max-width:300px; margin-top:24px; }
  .cab-journey-score strong { font-size:34px; }
  .cab-journey-score .cab-journey-target>strong { font-size:27px; }
  .cab-score-track { grid-column:1 / -1; width:100%; max-width:none; }
  .cab-dashboard-grid { grid-template-columns:1fr; }
  .cabinet .cab-panel-card { padding:24px; }
  .cabinet .cab-card-heading h3 { font-size:22px; }
  .cab-next-stage { margin-bottom:21px; }
  .cab-next-step>span>span { font-size:13px; }
  .cab-next-step strong,.cab-routine-row strong { font-size:14px; }
  .cab-routine-row { padding:14px 0; }
  .cab-tool-grid { grid-template-columns:1fr; gap:15px; }
  .cab-tool-card { min-height:220px; }
  .cab-tool-card>img { width:75%; left:auto; right:0; object-position:center 48%; }
  .cab-tool-card::before { background:linear-gradient(90deg,var(--art-tint) 5%,color-mix(in srgb,var(--art-tint) 94%,transparent) 28%,color-mix(in srgb,var(--art-tint) 57%,transparent) 70%,color-mix(in srgb,var(--art-tint) 37%,transparent)),linear-gradient(0deg,color-mix(in srgb,var(--art-base) 65%,transparent),transparent); }
  .cab-tool-card>div { padding:25px; }
  .cab-tool-card h3 { max-width:270px; font-size:27px; margin-top:18px; }
  .cab-tool-open { width:min(300px,100%); padding-top:22px; }
  .cab-tools-section .cab-section-heading { gap:16px; }
  .cab-tools-section .cab-section-heading h2 { font-size:25px; }
  .cab-current-build { padding:23px; gap:16px; flex-wrap:wrap; }
  .cab-current-build>div:nth-child(2) { flex:1; }
  .cab-current-build>.cab-button { margin-left:75px; }
  .cab-build-tools { gap:8px; margin-bottom:29px; }
  .cab-build-tool { padding:14px; gap:9px; }
  .cab-build-tool>span { font-size:11px; }
  .cab-build-tool small { font-size:9px; }
  .cab-build-tool>svg:last-child { display:none; }
  .cab-build-library-heading { flex-wrap:wrap; align-items:flex-start; }
  .cab-build-search { width:100%; }
  .cab-build-grid { grid-template-columns:1fr; gap:16px; }
  .cab-build-match { font-size:10px; }
  .cab-build-card .cab-compare-check>span { display:inline; font-size:10px; }
  .cab-build-card { padding:23px 24px 0; }
  .cab-build-title h3 { font-size:23px; }
  .cab-build-metrics dd { font-size:26px; }
  .cab-build-metrics dt { font-size:10px; }
  .cab-build-card>footer { padding:12px 0; }
  .cab-build-card>footer .cab-inline { font-size:12px!important; }
  .cab-settings-layout { grid-template-columns:1fr; gap:22px; }
  .cab-settings-sidebar { padding:0; }
  .cab-settings-sidebar>.cab-eyebrow,.cab-settings-sidebar>p { display:none; }
  .cab-settings-sidebar>nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .cab-settings-sidebar>nav>button { justify-content:center; padding:12px 10px; background:var(--soft); gap:8px; }
  .cab-settings-sidebar>nav>button>svg:last-child { display:none; }
  .cab-settings-content .cab-appearance-layout { gap:5px; }
  .cab-settings-content .cab-theme-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cab-settings-content .cab-account-fields { grid-template-columns:1fr 1.5fr; }
  .cab-settings-content .cab-data-grid { grid-template-columns:1fr; gap:16px; }
  .cab-compare-bar { gap:13px; padding:13px 16px; }
  .cab-compare-bar>div { gap:12px; }
  .cab-compare-bar span { font-size:10px; }
  .cab-compare-bar b { font-size:12px; margin-left:6px; }
}
@media(max-width:520px) {
  .cabinet { padding-top:20px; }
  .cab-roster-item { flex:0 0 179px; padding:11px 13px; gap:10px; }
  .cab-roster-item strong { font-size:12px; }
  .cab-roster-item small { font-size:9px; }
  .cab-character-rail { margin-bottom:16px; gap:8px; }
  .cab-roster { gap:8px; }
  .cab-main-tabs { gap:2px; margin-bottom:20px; }
  .cab-main-tab { padding:11px 11px; gap:8px; font-size:12px!important; }
  .cab-main-tab>svg { width:16px; height:16px; }
  .cab-main-tab.cab-settings-tab { width:41px; padding:10px; justify-content:center; }
  .cab-main-tab.cab-settings-tab>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .cab-main-tab.cab-settings-tab>svg { width:19px; height:19px; }
  .cab-main-tab>b { font-size:9px; min-width:16px; }
  .cab-journey { grid-template-columns:minmax(0,1fr) 112px; gap:0 14px; padding:24px; border-radius:13px; }
  .cab-journey-art { width:100%; height:100%; object-position:60% 30%; opacity:.76; }
  .cab-journey-shade { background:linear-gradient(90deg,color-mix(in srgb,var(--art-tint) 96%,transparent),color-mix(in srgb,var(--art-tint) 22%,transparent)),linear-gradient(0deg,var(--art-base) 2%,color-mix(in srgb,var(--art-tint) 70%,transparent) 35%,color-mix(in srgb,var(--art-tint) 18%,transparent) 73%); }
  .cab-journey-meta { margin-bottom:18px; justify-content:space-between; gap:10px; }
  .cab-journey-meta>span { font-size:8px; }
  .cab-journey-meta>button { font-size:10px; }
  .cab-journey h2 { font-size:33px; max-width:225px; line-height:1.25; margin-bottom:12px; }
  .cab-journey-class { max-width:210px; font-size:11px; margin-bottom:0; gap:7px; }
  .cab-journey-sigil { width:112px; height:112px; }
  .cab-progress-ring { opacity:.85; }
  .cab-sigil-emblem { inset:14px 28px 45px; }
  .cab-sigil-emblem>img { width:44px; height:47px; }
  .cab-sigil-emblem>svg { width:43px; height:43px; }
  .cab-sigil-caption { top:69px; }
  .cab-sigil-caption strong { font-size:17px; }
  .cab-sigil-caption strong>span { font-size:10px; }
  .cab-sigil-caption small { font-size:6px; margin:3px auto 0; max-width:84px; }
  .cab-sigil-orbit { inset:-1px; }
  .cab-sigil-orbit-inner { inset:17px; }
  .cab-journey-score { width:100%; margin-top:24px; gap:22px; max-width:none; }
  .cab-journey-score small { font-size:7px; }
  .cab-journey-score strong { font-size:34px; }
  .cab-journey-score .cab-journey-target>strong { font-size:28px; }
  .cab-score-track { max-width:none; margin-bottom:21px; }
  .cab-journey-actions { margin:0; display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  .cab-journey-actions .cab-button { width:100%; justify-content:space-between; font-size:12px!important; }
  .cab-journey-actions>span { font-size:10px; max-width:none; }
  .cab-dashboard-grid { margin:18px 0 28px; gap:17px; }
  .cabinet .cab-panel-card { padding:22px; }
  .cabinet .cab-eyebrow { font-size:9px; }
  .cabinet .cab-card-heading h3 { font-size:22px; }
  .cab-next-step { gap:11px; }
  .cab-step-number { width:26px; height:26px; font-size:9px; }
  .cab-next-step strong { font-size:13px; }
  .cab-next-step>span>span { font-size:12px; }
  .cab-next-step>i { width:21px; height:21px; }
  .cab-routine-row strong { font-size:13px; }
  .cab-routine-row small { font-size:11px; }
  .cab-tools-section .cab-section-heading { align-items:flex-start; }
  .cab-tools-section .cab-section-heading h2 { font-size:24px; max-width:230px; }
  .cab-tools-section .cab-section-heading>.cab-inline { font-size:11px!important; }
  .cab-tool-card { min-height:220px; }
  .cab-tool-card>div { padding:24px; }
  .cab-tool-card h3 { font-size:26px; max-width:240px; }
  .cab-current-build { padding:22px; gap:14px; }
  .cab-current-symbol { width:43px; height:43px; border-radius:9px; }
  .cab-current-symbol>svg { width:23px; height:23px; }
  .cab-current-build h2 { font-size:23px; gap:8px; flex-direction:column; }
  .cab-current-build h2>span { font-size:11px; }
  .cab-current-build p { font-size:11px; margin-top:9px; }
  .cab-current-build>.cab-button { margin:4px 0 0; width:100%; }
  .cab-build-tools { grid-template-columns:1fr; gap:7px; }
  .cab-build-tool { padding:13px 17px; }
  .cab-build-tool>span { font-size:12px; }
  .cab-build-tool small { font-size:10px; }
  .cab-build-tool>svg:last-child { display:block; }
  .cab-build-library-heading h3 { font-size:23px; }
  .cab-build-library-heading p { font-size:12px; }
  .cab-build-filters>button { padding:8px 12px; font-size:11px; }
  .cab-build-card { padding:21px 21px 0; }
  .cab-build-card-top { gap:9px; }
  .cab-build-mode { font-size:9px; }
  .cab-build-match { font-size:8px; }
  .cab-build-card .cab-compare-check>span { display:none; }
  .cab-build-title h3 { font-size:23px; }
  .cab-build-title>span { font-size:10px; }
  .cab-build-metrics { gap:13px; margin-top:24px; }
  .cab-build-metrics dt { font-size:9px; }
  .cab-build-metrics dd { font-size:24px; }
  .cab-build-card>footer { gap:5px; flex-wrap:wrap; }
  .cab-build-card>footer .cab-inline { font-size:11px!important; }
  .cab-build-card>footer>div { margin-left:auto; }
  .cab-build-card>footer .cab-icon-button { width:31px; padding:7px; }
  .cab-build-empty { padding:35px 22px; }
  .cab-build-empty h3 { font-size:23px; }
  .cab-build-empty p { font-size:12px; }
  .cab-builds-note { font-size:11px; }
  .cab-compare-bar { flex-wrap:wrap; gap:12px; bottom:8px; }
  .cab-compare-bar>div { width:100%; justify-content:space-between; }
  .cab-compare-bar>div:first-child { justify-content:flex-start; }
  .cab-compare-bar>div:last-child>.cab-button { margin-left:auto; font-size:11px!important; }
  .cab-compare-bar span { font-size:11px; }
  .cab-settings-sidebar>nav>button { font-size:11px; padding:11px 7px; gap:6px; }
  .cab-settings-sidebar>nav>button>svg { width:16px; height:16px; }
  .cab-settings-content .cab-section-heading h2 { font-size:25px; }
  .cab-settings-content .cab-section-heading p { font-size:12px; }
  .cab-settings-content .cab-theme-grid { grid-template-columns:1fr 1fr; }
  .cab-settings-content .cab-panel-card { padding:20px; }
  .cab-settings-content .cab-account-fields { grid-template-columns:1fr; gap:17px; }
  .cab-settings-content .cab-setting-row .cab-choice-group>button { font-size:10px; }
  .cab-settings-content .cab-save-bar>span { font-size:10px; }
  .cab-settings-content .cab-save-bar .cab-button { font-size:10px!important; }
  .cab-settings-content .cab-card-heading { gap:14px; }
  .cab-settings-content .cab-snapshot-row>div:last-child { gap:5px; margin-left:0; }
  .cab-settings-content .cab-danger-zone p { font-size:12px; }
  .cab-character-fields { grid-template-columns:1fr; gap:17px; margin:17px 0; }
  .cab-dialog-heading h2 { font-size:21px; }
  .cab-plan-detail>div { font-size:11px; }
  .cab-compare-table th,.cab-compare-table td { padding:10px; }
  .cab-compare-table tbody tr>th { min-width:125px; }
}
@media(max-width:360px) {
  .cab-main-tab { padding:11px 9px; gap:6px; font-size:11px!important; }
  .cab-journey { grid-template-columns:minmax(0,1fr) 100px; padding:22px; }
  .cab-journey h2 { font-size:30px; max-width:175px; }
  .cab-journey-sigil { width:100px; height:100px; }
  .cab-sigil-emblem>img { width:40px; height:43px; }
  .cab-sigil-caption { top:62px; }
  .cab-sigil-caption small { max-width:80px; }
  .cab-sigil-caption strong { font-size:15px; }
  .cab-journey-score { gap:17px; }
  .cab-journey-score strong { font-size:31px; }
  .cab-journey-score .cab-journey-target>strong { font-size:26px; }
  .cab-journey-score small { font-size:6px; }
  .cab-tools-section .cab-section-heading h2 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .cabinet *,.cabinet *::before,.cabinet *::after { animation:none!important; transition:none!important; } }

.cab-compare-toggle { display:flex; align-items:center; gap:9px; color:var(--copy); font-size:12px; margin-bottom:18px; cursor:pointer; }
.cab-compare-toggle input { width:16px; height:16px; accent-color:var(--action); margin:0; }
.cab-compare-identical { padding:17px; background:var(--soft); border-radius:8px; color:var(--cab-muted); }

.cab-tier-preview { flex:0 0 auto; display:grid; gap:4px; }
.cab-tier-preview>span { color:var(--cab-muted); font-size:10px; }
.cab-tier-switch { display:inline-flex; gap:2px; padding:3px; border:0; border-radius:8px; background:var(--soft); color:var(--cab-muted); }
.cab-tier-switch>span { padding:4px 9px; border-radius:5px; font-size:11px; font-weight:700; }
.cab-tier-switch[aria-checked="false"]>span:first-child,.cab-tier-switch[aria-checked="true"]>span:last-child { background:var(--action); color:white; }
.cab-tier-switch:hover { background:color-mix(in srgb,var(--soft) 76%,var(--accent)); }
.cabinet .cab-quota { margin:12px 0 16px; color:var(--cab-muted); font-size:12px; }
.cab-quota strong { margin-left:7px; color:var(--text); font-variant-numeric:tabular-nums; }
.cab-build-limit { padding:3px 7px; border-radius:4px; background:var(--soft); color:var(--cab-muted); font-size:10px; }
.cab-character-background { margin-top:16px; }
.cab-character-activities { margin:0 0 28px; }
.cab-activity-table { overflow-x:auto; }
.cab-character-activities table { width:100%; min-width:570px; border-collapse:collapse; }
.cab-character-activities th,.cab-character-activities td { padding:9px 4px; text-align:center; }
.cab-character-activities th:first-child { width:25%; text-align:left; overflow-wrap:anywhere; }
.cab-activity-name { display:flex; align-items:center; gap:8px; }
.cab-activity-name :is(svg,img) { flex:none; object-fit:contain; color:var(--accent); }
.cab-activity-crown { display:flex; flex:none; opacity:.7; }
.cab-character-activities td { color:var(--copy); font-variant-numeric:tabular-nums; }
.cab-character-activities thead { color:var(--cab-muted); font-size:11px; }
.cab-character-activities tbody tr { border-top:1px solid var(--cab-line); }
.cab-character-activities tbody th { color:var(--text); font-size:13px; }
.cab-activity-count { padding:6px 10px; border:0; border-radius:6px; color:var(--accent); background:var(--soft); white-space:nowrap; font-variant-numeric:tabular-nums; }
.cab-activity-count:hover { background:var(--selection); color:var(--selection-text); }

[data-theme="light"] .cabinet :is(.cab-panel-card,.cab-build-card,.cab-roster-item,.cab-activity-count) { border:1px solid var(--line); }
[data-theme="light"] .cabinet :is(.cab-button,.cab-tier-switch):not(.cab-primary) { border:1px solid var(--line); }
[data-theme="dark"] .cabinet :is(.cab-badge,.cab-icon-button,.cab-choice-group,.cab-choice-group>button,.cab-theme-choice,.cab-theme-swatch>i,.cab-accent,.cab-preview-card,.cab-save-bar,.cab-feature-icon,.cab-avatar-choice,.cab-import-drop,.cab-error,.cab-dialog,.cab-restore-summary>span,.cab-compare-bar) { border:0; }
[data-theme="dark"] .cabinet .cab-theme-choice { background:var(--soft); }
[data-theme="dark"] .cabinet :is(.cab-theme-choice:hover,.cab-theme-choice.active,.cab-roster-item.selected) { background:var(--selection); box-shadow:none; }
[data-theme="dark"] .cabinet :is(.cab-build-card.is-current,.cab-build-filters>button[aria-pressed="true"]) { box-shadow:none; }
[data-theme="dark"] .cabinet .cab-accent.active:not(:focus-visible) { outline-color:transparent; }
.cabinet .cab-accent:focus-visible { outline:2px solid var(--accent); }
[data-theme="dark"] .cabinet :is(.cab-next-step>i,.cab-routine-check) { border:0; background:var(--soft); }
[data-theme="dark"] .cabinet :is(.cab-next-step:hover>i,.cab-next-step>input:is(:checked,:focus-visible)~i,.cab-routine-row.done .cab-routine-check,.cab-routine-row>input:is(:checked,:focus-visible)+.cab-routine-check) { background:var(--selection); }
[data-theme="dark"] .cabinet :is(.cab-field>input,.cab-field>select) { border:0; }
.site-header :is(.character-tool,.character-class,.character-select,.add-character):disabled { cursor:not-allowed; opacity:.62; }

@media(max-width:640px) {
  .cab-tier-switch>span { padding:4px 7px; font-size:10px; }
  .cab-journey-art.cab-class-art { object-position:82% 18%; }
}
@media(max-width:400px) {
}

.cab-roster.is-overflowing { cursor:grab; }
.cab-roster.is-overflowing .cab-roster-item { cursor:inherit; }
.cab-roster-item:focus-visible { outline-offset:-2px; }
.cab-roster-actions { display:flex; flex:none; align-items:stretch; gap:8px; }
.cab-roster-add {
  position:relative; display:grid; place-items:center; align-self:stretch; width:44px;
  border:0; border-radius:8px; background:var(--soft); color:var(--accent);
}
.cab-roster-add:hover { background:var(--surface-hover); }
[data-theme="light"] .cabinet .cab-roster-add { border:1px solid var(--line); }
.cab-add-lock { position:absolute; right:4px; bottom:4px; line-height:0; }
.cab-roster-item.is-locked,.cab-roster-add.is-locked { color:var(--quiet); filter:grayscale(1); }
.cab-roster-item.is-locked .cab-roster-crown { color:var(--quiet); }
.cab-build-card.is-locked .cab-build-title,.cab-build-card.is-locked .cab-build-metrics dd { color:var(--quiet); }
.cab-build-card.is-locked .cab-build-mode,.cab-build-card.is-locked .cab-build-role>svg { filter:grayscale(1); }
.cab-build-limit { display:inline-flex; align-items:center; gap:5px; }
.cab-locked-feature { color:var(--copy); }
.cab-locked-feature .cab-section-symbol { color:var(--quiet); }
.cabinet .cab-locked-control { background:var(--soft); color:var(--muted); }
.cabinet .cab-locked-control:hover { background:var(--surface-hover); color:var(--text); }
.cab-locked-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--quiet); font-size:11px; }
.cab-locked-row strong { display:block; color:var(--text); font-size:13px; }
.cab-theme-choice.is-locked .cab-theme-swatch { filter:grayscale(1); }
.cab-theme-choice.is-locked>strong,.cab-theme-choice.is-locked>small { color:var(--muted); }
.cab-accent.is-locked { background:var(--soft); color:var(--quiet); }
.cab-accent.is-locked:hover { background:var(--surface-hover); }
.cab-profile-sign { display:grid; place-items:center; }
.cab-profile-sign-animated :is(.cab-sigil-spark,.cab-sign-feather,.cab-sign-eye,.cab-sign-flame) { transform-box:fill-box; transform-origin:center; }
.cab-profile-sign-animated .cab-sigil-spark { animation:cab-sign-glint 3.6s ease-in-out infinite; }
.cab-profile-sign-animated .cab-sign-wing { transform-box:view-box; transform-origin:12px 15px; animation:cab-sign-wing 4.8s ease-in-out infinite; }
.cab-sign-wing-left { --wing-angle:-6deg; }
.cab-sign-wing-right { --wing-angle:6deg; }
.cab-profile-sign-animated .cab-sign-orbit { transform-box:view-box; transform-origin:center; animation:cab-sign-orbit 9s linear infinite; }
.cab-profile-sign-animated .cab-sign-trail { animation:cab-sign-trail 3.4s ease-in-out infinite; }
.cab-profile-sign-animated .cab-sign-flame { transform-origin:center bottom; animation:cab-sign-flame 2.8s ease-in-out infinite; }
.cab-profile-sign-animated .cab-sign-feather { animation:cab-sign-feather 5.2s ease-in-out infinite; }
.cab-profile-sign-animated .cab-sign-eye { animation:cab-sign-blink 5s ease-in-out infinite; }
.cab-profile-sign-animated .cab-sign-grain { animation:cab-sign-grain 2.6s ease-in infinite; }
@keyframes cab-sign-glint { 0%,100% { opacity:.58; transform:scale(.83); } 50% { opacity:1; transform:scale(1.24); } }
@keyframes cab-sign-wing { 0%,100% { transform:rotate(0); } 50% { transform:rotate(var(--wing-angle)); } }
@keyframes cab-sign-orbit { to { transform:rotate(360deg); } }
@keyframes cab-sign-trail { 0%,100% { opacity:.58; transform:translate(-1px,1px); } 48% { opacity:1; transform:translate(0); } }
@keyframes cab-sign-flame { 0%,100% { opacity:.62; transform:scale(.82,.78); } 50% { opacity:1; transform:scale(1,1.16); } }
@keyframes cab-sign-feather { 0%,100% { transform:translateY(.4px) rotate(-5deg); } 50% { transform:translateY(-.8px) rotate(5deg); } }
@keyframes cab-sign-blink { 0%,69%,85%,100% { transform:scaleY(1); } 77% { transform:scaleY(.28); } }
@keyframes cab-sign-grain { 0%,16% { opacity:0; transform:translateY(0); } 28% { opacity:1; } 80%,100% { opacity:0; transform:translateY(6px); } }

.cab-premium-banner {
  position:relative; isolation:isolate; overflow:hidden; border-radius:15px;
  margin-bottom:20px; background:var(--art-base);
}
.cab-premium-banner>img { position:absolute; z-index:-2; inset:0 0 0 auto; width:74%; height:100%; object-fit:cover; object-position:77% 24%; opacity:.68; }
.cab-premium-banner::after {
  content:''; position:absolute; z-index:-1; inset:0;
  background:linear-gradient(90deg,var(--art-tint) 24%,color-mix(in srgb,var(--art-tint) 92%,transparent) 47%,color-mix(in srgb,var(--art-tint) 34%,transparent));
}
.cab-premium-copy { padding:clamp(26px,5vw,58px); max-width:640px; }
.cab-premium-kicker { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:10px; font-weight:800; letter-spacing:1.4px; }
.cab-premium-copy h2 { font-size:clamp(28px,4vw,44px); letter-spacing:-.035em; line-height:1.15; margin:13px 0 14px; }
.cab-premium-copy>p { max-width:460px; color:var(--art-muted); margin-bottom:23px; }
.cab-premium-copy .cab-premium-note { font-size:11px; margin:12px 0 0; }
.cab-premium-active { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; color:var(--selection-text); background:var(--selection); border-radius:7px; }
.cab-premium-comparison h3 { font-size:22px; margin-bottom:12px; }
.cab-premium-comparison table { width:100%; border-collapse:collapse; table-layout:fixed; }
.cab-premium-comparison :is(th,td) { padding:12px 8px; text-align:left; border-bottom:1px solid var(--cab-line); overflow-wrap:anywhere; }
.cab-premium-comparison th:first-child { width:42%; }
.cab-premium-comparison thead th:last-child,.cab-premium-comparison td:last-child { color:var(--accent); }
.cab-premium-comparison td,.cab-premium-comparison>p { color:var(--muted); font-size:12px; }
.cab-premium-comparison>p { margin:15px 0 0; }
.cabinet .cab-offer-dialog {
  width:min(460px,calc(100% - 32px)); text-align:center; padding:28px;
  background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--accent) 22%,transparent),transparent 58%),var(--surface);
}
.cab-offer-close { position:absolute; top:10px; right:10px; }
.cab-offer-emblem {
  display:grid; place-items:center; width:64px; height:64px; margin:0 auto 14px;
  border-radius:17px; background:var(--selection); color:var(--accent);
}
.cabinet .cab-offer-dialog h2 { font-size:26px; letter-spacing:-.03em; margin:7px 0 9px; line-height:1.2; }
.cab-offer-dialog p { color:var(--copy); margin:0 0 20px; }
.cab-offer-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; }

@media(max-width:640px) {
  .cab-roster-actions { gap:5px; }
  .cab-roster-add { width:40px; }
  .cab-premium-banner>img { width:100%; }
  .cab-premium-banner::after { background:linear-gradient(90deg,var(--art-tint) 4%,color-mix(in srgb,var(--art-tint) 87%,transparent) 67%,color-mix(in srgb,var(--art-tint) 58%,transparent)); }
  .cab-premium-comparison :is(th,td) { font-size:11px; padding:9px 5px; }
}
@media(max-width:400px) {
  .cab-main-tab { gap:5px; padding-inline:7px; }
  .cab-main-tab>b { display:none; }
}

/* Stable hero geometry across character scores and appearance settings. */
.cabinet .cab-journey { min-height:var(--cab-journey-height); }
@media(min-width:761px) {
  .cab-journey-copy { display:flex; flex-direction:column; }
  .cab-journey-meta,.cab-journey h2,.cab-journey-score,.cab-score-track,.cab-journey-actions { flex-shrink:0; }
  .cab-journey-actions { margin-top:auto; }
}
@media(max-width:760px) {
  .cab-journey { --cab-journey-height:420px; }
}
@media(max-width:520px) {
  .cab-journey { --cab-journey-height:440px; }
}


/* Account surfaces reuse the portal palette, typography and section gradients. */
.account-access{max-width:540px;margin:32px auto;padding-top:0;padding-bottom:0}
.account-page{padding-bottom:0}
.account-page .header-actions{margin-left:auto}
.account-card,.account-dialog{background:var(--surface);color:var(--text);border:0;border-radius:12px;padding:0;box-shadow:none}
.account-card{overflow:hidden}
.account-dialog{width:min(510px,calc(100vw - 32px));max-height:none;overflow:visible}
.account-dialog::backdrop{background:#040b17b8;backdrop-filter:blur(5px)}
.account-form-header{position:relative;padding:25px 28px 23px;background:linear-gradient(105deg,var(--section-head-start),var(--section-head-end))}
.account-form-header .cab-eyebrow{color:var(--accent);font-size:10px;font-weight:700;letter-spacing:1.4px}
.account-form-header h1,.account-form-header h2{font:500 28px/1.2 Manrope,sans-serif;letter-spacing:-.7px;margin:9px 0 0;color:var(--text)}
.account-form-header>button{position:absolute;right:20px;top:19px;border:0;background:var(--soft);color:var(--text);border-radius:6px;padding:4px 8px;cursor:pointer}
.account-form-body{padding:22px 28px 25px}
.account-form-copy{font-size:12px;line-height:1.7;color:var(--copy);margin:0 0 20px}
.account-form-body form{display:grid;gap:15px}
.account-form-body .cab-field{font-size:12px;gap:7px;color:var(--copy)}
.account-form-body .cab-field>input{border:0!important;border-radius:7px;box-shadow:none;outline:0;background:var(--soft);color:var(--text);width:100%;padding:11px 13px;font:13px/1.5 Manrope,sans-serif;transition:background .18s}
.account-form-body .cab-field>input:focus{background:var(--selection)}
.account-form-body .cab-primary{width:100%;justify-content:center;min-height:41px;border:0;font-size:12px!important}
.account-form-body .cab-subtle:empty{display:none}
.account-form-body .cab-subtle{margin:0;font-size:12px;color:var(--accent)}
.account-form-body .account-auth-message{border:0;color:var(--danger);background:color-mix(in srgb,var(--danger) 7%,var(--surface));padding:12px 15px}
.account-social{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.account-consents{display:grid;gap:12px;min-width:0;margin:4px 0 0;padding:16px;background:var(--soft);border:0;border-radius:9px}
.account-consents legend{float:left;width:100%;padding:0;margin:0 0 2px;font-size:11px;font-weight:700;color:var(--text)}
.account-consent{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.7;color:var(--copy);cursor:pointer}
.account-consent input{appearance:none;flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;background:var(--surface);border:0!important;outline:0!important;border-radius:4px;cursor:pointer}
.account-consent input:checked{background-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%23091220' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.account-consent input:focus-visible{box-shadow:none;background-color:var(--selection);filter:brightness(1.2)}
.account-consent a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.account-consents>p{font-size:10px;line-height:1.65;color:var(--muted);margin:0}
.account-social .cab-button{justify-content:center;border:0;background:var(--soft);color:var(--text);min-height:38px;font-size:12px!important}
.account-form-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:19px}
.account-form-actions .cab-inline{font-size:11px!important;cursor:pointer}
.account-access-note{font-size:11px;color:var(--muted);text-align:center;margin-top:20px}
.account-access-note a{color:var(--accent)}
.cabinet .account-settings{margin-bottom:20px;border:0;background:var(--cab-card);padding:0;overflow:hidden}
.account-settings-header{padding:23px 25px 20px;background:linear-gradient(105deg,var(--section-head-start),var(--section-head-end))}
.account-settings-header .cab-eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--accent)}
.cabinet .account-settings-header h3{margin:8px 0 0;font:700 22px/1.3 Manrope,sans-serif;letter-spacing:-.5px}
.account-settings-body{padding:23px 25px}
.account-settings-copy{font-size:12px;line-height:1.7;color:var(--copy);margin:0 0 19px}
.account-methods{display:grid;gap:10px}
.account-method{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;background:var(--soft);border-radius:9px;min-width:0}
.account-method>div:first-child{display:grid;gap:5px;min-width:0}
.account-method strong{font-size:13px;color:var(--text);font-weight:700}
.account-method>div>span:not(.account-connected){font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.account-method-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.account-method .cab-button{background:var(--surface);white-space:nowrap;border:0}
.account-connected{font-size:11px;font-weight:700;color:var(--accent);white-space:nowrap}
.account-mail-note{font-size:11px;margin:14px 0 0}
.account-settings-notice{padding:13px 16px;border-radius:8px;background:var(--soft);color:var(--accent);font-size:12px;line-height:1.7;margin:16px 0 0}
.account-settings-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:22px}
.account-save-status{font-size:11px;color:var(--muted);margin:0}
.account-save-alert{margin:0 0 20px;background:var(--soft);border:0}
.account-save-alert p{font-size:12px;line-height:1.7;color:var(--danger);margin:0 0 12px}
.account-import{position:fixed;z-index:1100;bottom:20px;right:20px;max-width:460px;background:var(--surface);border:0;box-shadow:0 12px 50px #0004}
.account-form-body button:disabled,.account-settings button:disabled{opacity:.4;cursor:not-allowed}
[data-theme="dark"] :is(.account-card,.account-dialog,.account-form-header,.account-form-body,.account-settings,.account-import,.account-method,.account-save-alert){border:0;outline:0}
@media(max-width:600px){.account-access{margin:24px auto 40px;width:calc(100% - 32px)}.account-form-header,.account-settings-header{padding:23px 20px}.account-form-body,.account-settings-body{padding:20px}.account-form-header h1,.account-form-header h2{font-size:26px}.account-import{right:16px;left:16px}.account-method{align-items:flex-start;flex-wrap:wrap;padding:16px}.account-method-actions{gap:10px}}

.site-update-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 28px);border:0;border-radius:13px;padding:0;background:var(--surface);color:var(--text);box-shadow:0 28px 100px #0005;font-family:Manrope,sans-serif}
.site-update-dialog::backdrop{background:#040b17ba;backdrop-filter:blur(6px)}
.site-update-header{position:relative;padding:29px 30px 25px;background:linear-gradient(105deg,var(--section-head-start),var(--section-head-end))}
.site-update-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--accent);padding-right:32px}
.site-update-header h2{font:600 29px/1.25 Manrope,sans-serif;letter-spacing:-.8px;margin:12px 0 0;color:var(--text);max-width:390px}
.site-update-close{position:absolute;right:19px;top:19px;display:grid;place-items:center;width:29px;height:29px;border:0;border-radius:6px;background:var(--soft);color:var(--copy);font:21px/1 Manrope,sans-serif;cursor:pointer}
.site-update-body{padding:24px 30px 29px}
.site-update-body p{margin:0 0 13px;font-size:13px;line-height:1.85;color:var(--copy)}
.site-update-body p:last-child{margin-bottom:0}
.site-update-actions{display:flex;align-items:center;gap:11px;margin-top:24px}
.site-update-actions a,.site-update-actions button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:40px;border:0;border-radius:7px;padding:10px 19px;font:600 12px/1.4 Manrope,sans-serif;text-decoration:none;cursor:pointer}
.site-update-actions .site-update-primary{color:var(--button-text,#fff);background:var(--accent-strong,#315d9e)}
.site-update-actions button{color:var(--text);background:var(--soft)}
.site-update-actions a:hover,.site-update-actions button:hover,.site-update-close:hover{filter:brightness(1.14)}
.site-update-actions a:focus-visible,.site-update-actions button:focus-visible,.site-update-close:focus-visible{background:var(--selection);color:var(--text);text-decoration:underline;text-underline-offset:4px;outline:0}
[data-theme="dark"] .site-update-dialog,[data-theme="dark"] .site-update-header{border:0;outline:0}
@media(max-width:600px){.site-update-header{padding:26px 23px 23px}.site-update-header h2{font-size:27px}.site-update-body{padding:21px 23px 25px}.site-update-body p{font-size:12px}.site-update-actions{gap:9px}.site-update-actions a,.site-update-actions button{padding:10px 16px;gap:14px}}
@media(max-height:480px){.site-update-header{padding-top:18px;padding-bottom:17px}.site-update-header h2{font-size:24px;margin-top:7px}.site-update-body{padding-top:16px;padding-bottom:18px}.site-update-body p{line-height:1.65;margin-bottom:9px}.site-update-actions{margin-top:17px}}
