:root{--bg:#f4f2ec;--surface:#fffdf8;--surface-2:#f7f5ef;--line:#e6e1d6;--line-strong:#d3cbbb;--ink:#1a2624;--text:#38433f;--text-2:#565f5b;--text-3:#656b66;--icon:#959b94;--brand:#244a44;--brand-deep:#16302c;--brand-soft:#e9ece5;--gold:#83642f;--gold-soft:#c2a46d;--gold-tint:#f3ecdd;--paper:var(--bg);--muted:var(--text-3);--teal:var(--brand);--teal-dark:var(--brand-deep);--white:var(--surface);--sidebar:248px;--serif:var(--sans);--sans:'Inter','Segoe UI','Microsoft YaHei','PingFang SC','Noto Sans SC',sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.38}
:focus-visible{outline:2px solid var(--gold-soft);outline-offset:3px}
::selection{background:#e8dcc0}
input::placeholder{color:var(--text-2)}
.sidebar-tools{display:grid;gap:12px;margin-bottom:12px}
.sidebar-brand{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--ink);font-weight:700}
.sidebar-brand img{width:40px;height:40px;flex:none;object-fit:contain}
.sidebar-brand span{min-width:0}
.sidebar-external{display:grid;gap:8px;margin-top:8px}
#moligod-bilibili,#kibo-download{display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px 10px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--brand);font-size:13px;font-weight:700;text-align:center}
#moligod-bilibili:hover,#kibo-download:hover{background:var(--brand-soft)}
.sidebar-search{display:flex;align-items:center;gap:7px;min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--text-2)}
.sidebar-search button{border:0;padding:0 3px;background:transparent;color:var(--text-2);font-size:20px}
.sidebar-search input{flex:1;min-width:0;width:100%;border:0;outline:none;background:transparent;color:var(--ink);font-size:13px}
.sidebar-search kbd{border:1px solid var(--line-strong);border-radius:5px;padding:0 5px;font:12px/18px var(--sans)}
.mobile-menu{display:none;place-items:center;width:44px;height:44px;border:1px solid var(--line-strong);background:var(--surface);border-radius:8px;color:var(--ink);font-size:18px;padding:0}
.layout{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);align-items:start}
.sidebar{height:100vh;height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line);padding:14px 0 0}
.sidebar-scroll{overflow-y:auto;flex:1;padding:0 12px 18px 14px;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable}
.sidebar-scroll:hover{scrollbar-color:var(--line-strong) transparent}
.sidebar-scroll::-webkit-scrollbar{width:6px}
.sidebar-scroll::-webkit-scrollbar-thumb{background:transparent;border-radius:6px}
.sidebar-scroll:hover::-webkit-scrollbar-thumb{background:var(--brand-soft)}
.nav-heading{font-size:12px;font-weight:600;color:var(--text-3);margin:18px 10px 4px}
.nav-link{position:relative;display:flex;align-items:center;gap:11px;height:36px;margin:1px 0;padding:0 10px;border-radius:5px;color:var(--text);font-weight:500;font-size:14px;transition:background .15s,color .15s}
.nav-link:hover{background:var(--surface-2);color:var(--brand)}
.nav-link.active{color:var(--brand);background:var(--brand-soft);font-weight:700}
.nav-link.active:before{content:'';position:absolute;left:-14px;top:8px;bottom:8px;width:3px;background:var(--brand)}
.nav-link small{margin-left:auto;min-width:28px;text-align:right;color:var(--text-3);font-size:12px;font-variant-numeric:tabular-nums}
.nav-link.active small{color:var(--brand)}
.map-nav{margin-top:16px;border:1px dashed var(--line-strong);color:var(--brand)}
.map-nav:hover{border-style:solid}
.main{min-width:0}
.page{max-width:1530px;margin:0 auto;padding:25px 45px 36px}
.breadcrumb{display:flex;gap:10px;align-items:center;color:var(--text-2);font-size:13px;margin-bottom:22px}
.breadcrumb>a:hover{color:var(--brand)}
.loading{padding:100px;text-align:center;color:var(--text-2)}
.error{color:#a46059}
.catalog-page,.detail-page,.about-page{max-width:1400px}
.about-page h1{font:700 32px var(--serif);margin:11px 0;color:var(--ink)}
.about-page h1 span{color:var(--gold);font-size:20px}
.coverage-note{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--brand-soft);border-radius:6px;padding:11px 15px;color:var(--text-2);font-size:13px;line-height:1.6}
.coverage-note>span{font-size:20px;color:var(--icon)}
.coverage-note p{flex:1;margin:0}
.coverage-note a{white-space:nowrap;color:var(--brand)}
.catalog-tools{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:24px 0 12px}
.list-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:5px;max-width:430px;width:100%;height:42px;padding:0 12px;color:var(--text-2)}
.list-search>span{font-size:23px}
.list-search input{border:0;outline:0;width:100%;color:var(--ink);background:transparent;font-size:14px}
.list-search,.sidebar-search{transition:border-color .15s,box-shadow .15s,background .15s}
.list-search:focus-within,.sidebar-search:focus-within{border-color:var(--line-strong);background:var(--surface);box-shadow:0 0 0 3px #c2a46d2e}
.tool-toggles{display:flex;gap:16px;color:var(--text-2);font-size:13px;white-space:nowrap}
.tool-toggles label{display:flex;gap:4px;align-items:center}
.tool-toggles input{accent-color:var(--brand)}
.filter-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:19px 0}
.filter-row>span{font-size:13px;color:var(--text-2);margin-right:8px}
.filter-chip{border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--text-2);font-size:13px;padding:6px 13px;transition:background .15s,border-color .15s,color .15s}
.filter-chip:hover{border-color:var(--line-strong);color:var(--brand)}
.filter-chip.selected{color:#fff;background:var(--brand);border-color:var(--brand)}
.pet-element-filter>span,.pet-stage-filter>span,.enemy-type-filter>span,.enemy-element-filter>span{min-width:52px}
.pet-stage-filter,.enemy-element-filter{padding-top:14px;border-top:1px solid var(--line)}
.category-strip{display:flex;align-items:center;gap:6px;margin:19px 0;min-width:0}
.category-strip-label{flex-shrink:0;font-size:13px;color:var(--text-2);margin-right:8px}
.category-strip-track{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;scroll-behavior:auto;scrollbar-width:thin;padding:2px 0 6px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--fade-l,0),#000 calc(100% - var(--fade-r,0)),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 var(--fade-l,0),#000 calc(100% - var(--fade-r,0)),transparent 100%)}
.category-strip.can-left .category-strip-track{--fade-l:28px}
.category-strip.can-right .category-strip-track{--fade-r:28px}
.category-strip-track .filter-chip{flex-shrink:0;white-space:nowrap}
.category-strip-track .filter-chip small{margin-left:6px;font-size:11px;opacity:.7}
.category-strip-arrow{flex-shrink:0;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text-2);font-size:18px;line-height:1;display:grid;place-items:center;visibility:hidden}
.category-strip-arrow:hover{border-color:var(--line-strong);color:var(--brand)}
.category-strip.can-left .category-strip-arrow[data-category-scroll="-1"],.category-strip.can-right .category-strip-arrow[data-category-scroll="1"]{visibility:visible}
@media(max-width:670px){.category-strip{flex-wrap:wrap}.category-strip-label{width:100%}.category-strip-arrow{display:none}}
.results-line{display:flex;justify-content:space-between;align-items:center;padding:21px 0 13px;border-top:1px solid var(--line);margin-top:20px}
.results-line strong{font-size:14px}
.results-line strong span{color:var(--brand);padding-left:5px}
.results-line small{font-size:12px;color:var(--text-2)}
.entry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.entry-card{position:relative;display:block;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:6px;overflow:hidden;transition:border-color .15s}
.entry-card:hover{border-color:var(--line-strong)}
.entry-image{height:122px;display:flex;align-items:center;justify-content:center;background:var(--surface-2);overflow:hidden}
.entry-image img{display:block;width:100%;height:100%;min-width:0;min-height:0;padding:8px;object-fit:contain;object-position:center}
.section-skill .entry-image,.section-skill .detail-art{background:#536a63}
.entry-image .image-set,.detail-art .image-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px;width:100%;height:100%;padding:6px}
.entry-image .image-set[data-count="2"],.detail-art .image-set[data-count="2"]{grid-template-rows:minmax(0,1fr)}
.entry-image .image-set img,.detail-art .image-set img{display:block;width:100%;height:100%;min-width:0;min-height:0;padding:2px;object-fit:contain}
.entry-flag{position:absolute;top:8px;left:8px;border-radius:3px;background:var(--surface);border:1px solid var(--line);padding:2px 6px;font-size:11px;color:var(--text-2)}
.item-placeholder{font-size:28px;font-weight:700;color:var(--icon)}
.entry-copy{padding:13px}
.entry-name{font:700 15px var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.entry-tags{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}
.tag{font-size:11px;background:var(--brand-soft);color:var(--text-3);border-radius:4px;padding:4px 6px}
.tag.muted{background:var(--surface-2);color:var(--text-3)}
.entry-copy small{font-size:11px;color:var(--text-2)}
.pagination{display:flex;justify-content:center;align-items:center;gap:25px;margin:32px 0;color:var(--text-2);font-size:13px}
.pagination button,.empty-state button{background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:9px 13px;color:var(--brand);transition:background .15s,border-color .15s}
.pagination button:not(:disabled):hover,.empty-state button:hover{background:var(--brand-soft);border-color:var(--line-strong)}
.catalog-continuation{display:flex;justify-content:center;align-items:center;min-height:64px;margin:16px 0;color:var(--text-2);font-size:13px;overflow-anchor:none}
.empty-state{text-align:center;padding:48px 20px;background:var(--surface);border:1px dashed var(--line);border-radius:6px;color:var(--text-2)}
.empty-state>span{display:block;font-size:32px;color:var(--icon)}
.empty-state strong{display:block;color:var(--text-2);margin:12px 0}
.empty-state p{font-size:14px}
.empty-state a{color:var(--brand)}
.back-link{display:inline-block;color:var(--text);font-size:13px;margin:3px 0 19px}
.detail-hero{display:flex;align-items:center;gap:38px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:27px 38px;position:relative;overflow:hidden;min-height:250px}
.detail-art{display:flex;align-items:center;justify-content:center;width:190px;height:190px;border-radius:8px;background:#fffdf88f;box-shadow:inset 0 0 0 1px #ffffffaa;flex-shrink:0}
.detail-art img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;padding:12px}
.data-equipment-link{display:inline-flex;align-items:center;gap:10px}
.data-equipment-link img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.data-skill-icon{display:inline-block;width:32px;height:32px;vertical-align:middle;object-fit:contain;margin-right:9px;padding:4px;border-radius:4px;background:#536a63}
.detail-art .item-placeholder{font-size:65px}
.detail-intro{position:relative;z-index:1;max-width:720px}
.detail-intro h1{font:700 30px var(--serif);margin:10px 0}
.detail-intro>p{color:var(--text-2);font-size:14px;line-height:1.9;white-space:pre-line}
.detail-intro .map-warning{font-size:12px;max-width:600px}
.detail-block{margin-top:25px;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:24px}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:10px}
.facts div{background:var(--surface-2);border-radius:5px;padding:14px}
.facts dt{font-size:12px;color:var(--text-2)}
.facts dd{margin:8px 0 0;font-size:14px;font-weight:700;color:var(--text);overflow-wrap:anywhere}
.detail-hint{font-size:13px;color:var(--text-2);margin:-8px 0 15px;line-height:1.6}
.skill-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.skill-grid div{display:flex;gap:8px;align-items:center;background:var(--surface-2);padding:11px;border-radius:5px;font-size:13px}
.skill-grid div>span{color:var(--icon)}
.skill-grid small{margin-left:auto;color:var(--text-2);font-size:11px}
.chapter{border-top:1px solid var(--line);padding:14px 0}
.chapter summary{cursor:pointer;font-weight:700;list-style:none}
.chapter summary::-webkit-details-marker{display:none}
.chapter summary span{float:right;transition:transform .2s}
.chapter[open] summary span{transform:rotate(180deg)}
.chapter small{display:block;color:var(--text-2);margin-top:13px}
.chapter p{font-size:14px;white-space:pre-line;line-height:2;color:var(--text-2)}
.about-lead{color:var(--text-2);line-height:1.8}
.prose h2{font:700 18px var(--serif);margin:25px 0 10px}
.prose h2:first-child{margin-top:0}
.prose p{color:var(--text-2);line-height:2;font-size:14px}
.prose a{color:var(--brand)}

.btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border-radius:5px;font-size:14px;font-weight:600;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);transition:background .15s,border-color .15s}
.btn:hover{background:var(--surface-2);border-color:var(--text-3)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
.home-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:220px;padding:24px;border-radius:8px;background:var(--brand-deep);color:#f2efe8}
.masthead-copy{min-width:0}
.masthead h1{font-size:22px;line-height:1.4;margin:0 0 8px;font-weight:700;letter-spacing:.01em}
.masthead-intro{margin:0 0 14px;color:#e0e8e0;font-size:12px;line-height:1.65}
.masthead-intro a{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.masthead-stats{display:flex;gap:18px;list-style:none;margin:0;padding:0;font-size:12px;color:#aeb6b0}
.masthead-stats li{flex-shrink:0}
.masthead-stats b{display:block;font-size:20px;color:#fff;font-variant-numeric:tabular-nums;margin-bottom:3px}
.masthead-art{display:block;width:clamp(66px,24%,144px);height:auto;aspect-ratio:1;flex:none;object-fit:contain}
.home-section{margin-top:36px}
.section-bar{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.section-bar h2{margin:0;font-size:19px;font-weight:700;color:var(--ink)}
.section-bar a,.section-bar span{font-size:13px;color:var(--text-2)}
.section-bar a:hover{color:var(--brand)}
.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:14px 10px}
.avatar{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.avatar-img{width:76px;height:76px;border-radius:6px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line);transition:border-color .15s}
.avatar-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.avatar-pet .avatar-img img{object-fit:contain;padding:4px;object-position:center}
.avatar strong{margin-top:7px;font-size:13px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar small{font-size:11px;color:var(--text-3);margin-top:2px;min-height:15px}
.avatar:hover .avatar-img{border-color:var(--brand)}
.avatar:hover strong{color:var(--brand)}
.directory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}
.dir-group h3{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--text-3)}
.dir-group ul{list-style:none;margin:0;padding:0}
.dir-group a{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px dashed var(--line);font-size:14px;color:var(--text)}
.dir-group a:hover{color:var(--brand)}
.dir-group small{color:var(--text-3);font-variant-numeric:tabular-nums}
.map-card{position:relative;display:flex;align-items:center;min-width:0;min-height:220px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.map-card-copy{position:relative;z-index:1;padding:24px;max-width:76%}
.map-card h2{margin:0 0 8px;font-size:20px}
.map-card p{margin:0 0 16px;font-size:13px;line-height:1.8;color:var(--text-2)}
.map-card .btn{font-size:13px;padding:8px 13px}
.map-picture{position:absolute;inset:0;background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 40%,#fffdf800 100%),url('../local_data/map100000-overview.jpg?v=20261125-seo1') center 48%/cover}
.catalog-head{padding:4px 0 6px}
.catalog-head h1,.about-page h1{font-size:28px;font-weight:700;margin:0 0 8px;color:var(--ink)}
.catalog-head p{margin:0;font-size:14px;line-height:1.8;color:var(--text-2);max-width:820px}
.catalog-head a{color:var(--brand);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.coverage-note{margin-top:4px;font-size:13px;line-height:1.7;color:var(--text-2)}
.coverage-note p{margin:0}
.detail-kind{font-size:13px;color:var(--text-3)}
.detail-block h2{font-size:17px;font-weight:700;margin:0 0 16px;color:var(--ink)}
.detail-map-link{margin-top:8px}
.detail-note{margin:20px 2px 0;font-size:12px;color:var(--text-3);line-height:1.7}

@media(max-width:1250px){
  .page{padding-left:30px;padding-right:30px}
  .entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .directory{grid-template-columns:repeat(3,minmax(0,1fr))}
  .masthead h1{font-size:20px}
}

@media(max-width:900px){
  :root{--sidebar:210px}
  .page{padding-left:22px;padding-right:22px}
  .entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .directory{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-overview{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:670px){
  .layout{display:block}
  .mobile-menu{display:grid;position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:12px;z-index:20;box-shadow:0 4px 14px #1c2a2725}
  .sidebar{position:fixed;z-index:19;inset:0 auto 0 0;width:min(250px,calc(100vw - 60px));transform:translateX(-105%);transition:transform .22s}
  .nav-open .sidebar{transform:translateX(0);box-shadow:10px 0 30px #1c2a2730}
  .page{padding:19px 15px 64px}
  .breadcrumb{font-size:12px;margin-bottom:15px}
  .masthead,.map-card{min-height:190px}
  .masthead{padding:18px;gap:10px}
  .masthead h1{font-size:21px}
  .masthead-stats{gap:12px;flex-wrap:wrap}
  .masthead-stats b{font-size:18px}
  .masthead-art{width:clamp(56px,22%,95px)}
  .home-section{margin-top:28px}
  .avatar-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:12px 8px}
  .avatar-img{width:64px;height:64px}
  .directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .map-card-copy{padding:22px 20px;max-width:85%}
  .catalog-head h1,.about-page h1{font-size:24px}
  .catalog-tools{display:block}
  .list-search{max-width:none}
  .tool-toggles{margin-top:14px;flex-wrap:wrap}
  .entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .entry-image{height:115px}
  .detail-hero{padding:20px;gap:15px;align-items:flex-start}
  .detail-art{width:100px;height:100px}
  .detail-intro h1{font-size:23px}
  .detail-intro>p{font-size:13px}
  .detail-block{padding:19px}
  .facts,.skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-line small{display:none}
}

@media(max-width:380px){
  .detail-hero{display:block}
  .detail-art{margin-bottom:15px}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
/* Character skills and equipment */
.hero-skill-row{display:flex;gap:12px;overflow-x:auto;padding:5px 2px 14px;scroll-snap-type:x proximity}
.hero-skill-button{flex:1 0 115px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);scroll-snap-align:start;transition:background .15s,border-color .15s,transform .15s}
.hero-skill-button:hover{background:var(--brand-soft);border-color:var(--brand);transform:translateY(-2px)}
.hero-skill-button:focus-visible,.loadout-item:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hero-skill-art{width:60px;height:60px;display:grid;place-items:center;background:#536a63;color:white;border-radius:12px}
.hero-skill-art img{width:100%;height:100%;padding:8px;object-fit:contain}
.hero-skill-button strong{font-size:14px;text-align:center;line-height:1.5;overflow-wrap:anywhere}
.hero-skill-button small{font-size:11px;color:var(--text-3);margin-top:auto}
.hero-secondary-skills{border-top:1px solid var(--line);margin-top:6px;padding-top:14px}
.hero-secondary-skills>summary{cursor:pointer;color:var(--text-2);font-size:13px}
.hero-secondary-skills>summary span{margin-left:8px;color:var(--text-3)}
.hero-secondary-skills .hero-skill-row{margin-top:12px}
.loadout-plans{display:grid;gap:20px}
.loadout-plan{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.loadout-plan>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.loadout-eyebrow{font-size:10px;letter-spacing:.12em;color:var(--text-3)}
.loadout-plan h3{font-size:17px;margin:4px 0 0;color:var(--brand)}
.loadout-level{font-size:12px;color:var(--text-2);padding:5px 9px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}
.loadout-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:16px}
.loadout-item.data-equipment-link,.loadout-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;background:var(--surface);border:1px solid transparent;border-radius:6px;text-align:center;color:var(--ink);min-width:0;text-decoration:none}
.loadout-item:hover{border-color:var(--line-strong)}
.loadout-item>small{font-size:11px;color:var(--text-3)}
.loadout-art{display:grid;place-items:center;width:70px;height:70px}
.loadout-item .loadout-art img{width:100%;height:100%;object-fit:contain}
.loadout-item strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.loadout-link-label{font-size:10px;color:var(--text-3);margin-top:auto}
.hero-growth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.hero-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.hero-growth-grid .detail-block,.hero-story-grid .detail-block{min-width:0}
.hero-rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hero-rank-grid .data-metric{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:12px}
.skill-dialog{position:fixed;width:min(580px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;padding:30px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #142c3445}
.skill-dialog::backdrop{background:#162c2880;backdrop-filter:blur(4px)}
html:has(.skill-dialog[open]){overflow:hidden}
.skill-dialog-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);font-size:24px;color:var(--text);line-height:1}
.skill-dialog-header{display:flex;align-items:center;gap:16px;padding-right:20px;margin-bottom:24px}
.skill-dialog-header>img{width:64px;height:64px;object-fit:contain;padding:8px;background:#536a63;border-radius:12px}
.skill-dialog-header small{font-size:11px;color:var(--text-3)}
.skill-dialog-header h2{margin:4px 0 0;font-size:24px}
.skill-level-control{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}
.skill-level-control select{padding:7px 24px 7px 10px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface-2);color:var(--ink)}
.skill-effect h3{font-size:13px;margin:20px 0 10px;color:var(--brand)}
.skill-effect p{font-size:14px;white-space:pre-line;line-height:1.9;color:var(--text)}
.skill-dialog-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:16px;margin-top:24px;font-size:12px}
.skill-dialog-footer span{color:var(--text-3)}
@media(max-width:1000px){.hero-growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-growth-grid>.detail-block:last-child{grid-column:1/-1}}
@media(max-width:670px){.hero-skill-button{flex:0 0 104px;padding:14px 8px}.loadout-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}.loadout-grid>.loadout-item:first-child{grid-column:1/-1}.loadout-plan>header{padding:14px}.hero-growth-grid,.hero-story-grid{grid-template-columns:minmax(0,1fr);gap:0}.hero-growth-grid>.detail-block:last-child{grid-column:auto}.skill-dialog{padding:24px 20px}.skill-dialog-header h2{font-size:21px}.skill-dialog-footer{flex-wrap:wrap}}
.hero-profile-facts{display:flex;gap:20px;margin:16px 0 0;font-size:12px}
.hero-profile-facts>div{display:flex;gap:8px;align-items:center}
.hero-profile-facts dt{color:var(--text-3)}
.hero-profile-facts dd{margin:0;font-weight:700;color:var(--brand)}
.boss-reward-group{padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.boss-reward-group+.boss-reward-group{margin-top:16px}
.boss-reward-group>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.boss-reward-group h3{margin:0;font-size:17px;color:var(--brand)}
.boss-reward-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.boss-reward-preview figure{margin:0;padding:12px 8px;background:var(--surface);border-radius:6px;text-align:center;min-width:0}
.boss-reward-preview img{display:block;width:64px;height:64px;object-fit:contain;margin:0 auto 8px}
.boss-reward-preview figcaption{font-size:12px;overflow-wrap:anywhere}
.boss-reward-group .data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
@media(max-width:670px){.boss-reward-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.boss-reward-group .data-list{grid-template-columns:minmax(0,1fr)}}
.rarity-badge{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--line-strong);border-radius:4px;font-size:11px;font-weight:700;line-height:1.5;background:var(--surface)}
.rarity-badge[data-rarity="0"]{background:#edf0f1;color:#56636b;border-color:#b8c1c6}
.rarity-badge[data-rarity="1"]{background:#e8f3ed;color:#27654b;border-color:#9bcbb4}
.rarity-badge[data-rarity="2"]{background:#e9f1fa;color:#365e8c;border-color:#a4bfdf}
.rarity-badge[data-rarity="3"]{background:#f0eafa;color:#72518f;border-color:#c3aedc}
.rarity-badge[data-rarity="4"]{background:#fcf1d8;color:#805d21;border-color:#d6b675}
.handbook-badge{font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:.02em}
.growth-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line)}
.growth-toolbar label{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600}
.growth-toolbar select{min-width:110px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface);color:var(--ink)}
.growth-toolbar>span,.growth-summary span{font-size:12px;color:var(--text-3)}
.growth-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0}
.growth-summary strong{font-size:17px;color:var(--brand)}
.growth-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.growth-stats>div{padding:16px;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;min-width:0}
.growth-stats dt{font-size:12px;color:var(--text-3);margin-bottom:8px}
.growth-stats dd{margin:0;font-size:23px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:670px){.growth-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.growth-stats>div{padding:12px}.growth-stats dd{font-size:21px}}
[data-rarity="0"]{--rarity-background:linear-gradient(145deg,#f0f2f3,#dbe0e3);--rarity-edge:#aab5bc}
[data-rarity="1"]{--rarity-background:linear-gradient(145deg,#edf7f0,#c6e4d2);--rarity-edge:#7bb798}
[data-rarity="2"]{--rarity-background:linear-gradient(145deg,#eef5ff,#c5d9f3);--rarity-edge:#80a7d2}
[data-rarity="3"]{--rarity-background:linear-gradient(145deg,#f5edff,#d7b9ee);--rarity-edge:#ad82cb}
[data-rarity="4"]{--rarity-background:linear-gradient(145deg,#fff7df,#e6c67e);--rarity-edge:#bd9444}
.entry-card[data-rarity]{border-color:var(--rarity-edge)}
.entry-card[data-rarity] .entry-image,.avatar[data-rarity] .avatar-img{background:var(--rarity-background)}
.entry-card[data-rarity] .entry-copy{border-top:3px solid var(--rarity-edge)}
.avatar[data-rarity] .avatar-img{border-bottom:3px solid var(--rarity-edge)}
.detail-hero[data-rarity] .detail-art{background:var(--rarity-background);border:1px solid var(--rarity-edge);border-radius:8px}
.rarity-badge{gap:6px;box-shadow:0 2px 8px #24312a12}
.rarity-badge strong{font-size:13px}
.rarity-badge.entry-flag{z-index:1;padding:5px 8px}
.reward-difficulty-control{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:600;margin-bottom:18px}
.reward-difficulty-control select{min-width:0;max-width:100%;padding:9px 12px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface);color:var(--ink)}
@media(max-width:670px){.reward-difficulty-control{align-items:stretch;flex-direction:column;gap:8px}.reward-difficulty-control select{width:100%}}
.enemy-skill-entry{display:flex;flex:1 0 160px;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2)}
.enemy-skill-entry strong{font-size:15px;color:var(--ink)}
.enemy-skill-entry small{font-size:12px;color:var(--text-3)}
.enemy-skill-entry img{width:40px;height:40px;object-fit:contain}

/* 家园奇波：正式服工种分类，沿用站点配色与导航。 */
.home-source-note{padding:14px 18px;margin:0 0 22px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text-2);font-size:13px;line-height:1.8}
.home-pet-card{display:flex;flex-direction:column;padding:18px;gap:14px;min-width:0}
.home-pet-card-head{display:flex;align-items:center;gap:12px}
.home-pet-card-head img{width:76px;height:76px;object-fit:contain}
.home-pet-card-head small,.home-card-size{color:var(--text-3);font-size:12px}
.home-pet-card .entry-name{margin:4px 0;font-size:18px}
.home-card-jobs{display:grid;gap:6px}
.home-card-jobs>div{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;background:var(--surface);border-radius:6px;font-size:13px}
.home-card-jobs strong{font-variant-numeric:tabular-nums;color:var(--brand)}
.home-card-talents{font-size:12px;line-height:1.7;color:var(--text-2);margin:0}
.home-card-more{margin-top:auto;padding-top:8px;border-top:1px solid var(--line);font-size:12px;color:var(--brand);display:flex;justify-content:space-between}
.home-pet-header{display:flex;gap:24px;align-items:center;margin:24px 0}
.home-pet-header>img{width:136px;height:136px;object-fit:contain}
.home-pet-header h1{margin:8px 0;font-family:var(--serif);font-size:32px}
.home-pet-header p{color:var(--text-2);font-size:14px}
.home-pet-header a{font-size:13px;color:var(--brand)}
.home-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.home-work-grid > .home-work-panel:only-child{grid-column:1 / -1}
.home-work-panel{border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--surface)}
.home-work-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px;flex-wrap:wrap}
.home-work-panel h2{font-size:18px;margin:0}
.home-work-panel>header>span{font-size:12px;color:var(--text-2)}
.home-work-panel h3{font-size:14px;margin:24px 0 12px}
.home-score-label{font-size:13px;display:flex;align-items:center;gap:12px;color:var(--text-2)}
.home-score-label select{padding:8px 10px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;max-width:100%}
.home-work-effects{padding-left:20px;font-size:15px;line-height:1.9;color:var(--brand);margin:14px 0}
.home-buildings{font-size:12px;line-height:1.8;color:var(--text-2)}
.home-talent{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:10px}
.home-talent h4{margin:0 0 10px;font-size:15px}
.home-talent-level{display:flex;gap:12px;align-items:baseline;padding:7px 0;border-top:1px dashed var(--line)}
.home-talent-level>span{color:var(--brand);font-size:12px;min-width:22px;font-weight:700}
.home-talent-level p{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:670px){.home-work-grid{grid-template-columns:1fr}.home-work-panel{padding:16px}.home-pet-header{gap:12px}.home-pet-header>img{width:90px;height:90px}.home-pet-header h1{font-size:26px}.home-job-filters{gap:8px}.home-job-filters .filter-chip{padding:9px 13px}.home-pet-card{padding:12px}.home-pet-card-head{gap:6px}.home-pet-card-head img{width:52px;height:52px}.home-pet-card .entry-name{font-size:16px}}

/* 家园奇波：紧凑工具栏，窄屏横滑，保留完整筛选和数量。 */
.home-pet-page .home-source-note{border:0;background:none;padding:0;margin:8px 0 18px;font-size:12px;color:var(--text-2)}
.home-pet-page .home-source-note summary{cursor:pointer;width:fit-content;min-height:28px;line-height:28px;list-style-position:inside}
.home-pet-page .home-source-note summary span{color:var(--text-3);font-size:11px;margin-left:10px}
.home-pet-page .home-source-note p{margin:8px 0 0;max-width:820px;padding:12px 16px;border-left:2px solid var(--line);line-height:1.8}
.home-pet-page .catalog-tools{margin:0 0 14px}
.home-pet-page .list-search{max-width:420px}
.home-pet-page .home-job-filters{display:flex;align-items:center;gap:4px;max-width:none;margin:0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}
.home-pet-page .home-job-filters .category-strip-label{width:auto;margin-right:12px;font-size:12px}
.home-pet-page .home-job-filters .category-strip-track{gap:6px;padding:0;scrollbar-width:none;min-width:0}
.home-pet-page .home-job-filters .category-strip-track::-webkit-scrollbar{display:none}
.home-pet-page .home-job-filters .filter-chip{display:flex;align-items:center;gap:8px;border-radius:8px;min-height:38px;min-width:0;padding:8px 12px;font-size:13px;line-height:20px;box-shadow:none;background:transparent;border:1px solid transparent;text-align:center}
.home-pet-page .home-job-filters .filter-chip small{margin:0;font-size:11px;font-variant-numeric:tabular-nums;opacity:.7}
.home-pet-page .home-job-filters .filter-chip:hover{border-color:var(--line);background:var(--surface)}
.home-pet-page .home-job-filters .filter-chip.selected{background:var(--brand);border-color:var(--brand);color:white;box-shadow:none}
.home-pet-page .home-job-filters .filter-chip:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.home-pet-page .home-job-filters .category-strip-arrow{width:26px;height:28px;box-shadow:none;border:0;background:transparent}
.home-pet-page .results-line{border-top:0;margin-top:0;padding:18px 0 12px}
.home-pet-page .home-card-talents{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.8}
@media(max-width:670px){
  .home-pet-page .home-source-note{margin:6px 0 14px}
  .home-pet-page .home-job-filters{flex-wrap:nowrap;padding:8px 0;gap:0}
  .home-pet-page .home-job-filters .category-strip-label{width:auto;margin-right:10px;font-size:12px}
  .home-pet-page .home-job-filters .filter-chip{min-height:42px;padding:9px 10px}
  .home-pet-page .home-job-filters .category-strip-track{gap:4px}
  .home-pet-page .results-line{padding:14px 0 10px}
}

/* 家园奇波表格：每只一行，工种评分分列，不改变数据。 */
.home-pet-page .home-table-scroll{max-width:100%;max-height:68vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.home-pet-page .home-table-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.home-pet-page .home-pet-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1048px;font-size:13px;text-align:left}
.home-pet-table caption{text-align:left;padding:10px 14px;font-size:12px;color:var(--text-3);background:var(--surface)}
.home-pet-table .home-col-pet{width:184px}.home-pet-table .home-col-job{width:65px}.home-pet-table .home-col-talent{width:270px}
.home-pet-page .home-pet-table th,.home-pet-page .home-pet-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.home-pet-page .home-pet-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-2,var(--bg));font-size:12px;color:var(--text-2);font-weight:600;white-space:nowrap}
.home-pet-page .home-pet-table tr>:first-child{position:sticky;left:0;z-index:1;background:var(--surface);border-right:1px solid var(--line);padding-left:14px}
.home-pet-page .home-pet-table thead tr>:first-child{z-index:3;background:var(--surface-2,var(--bg))}
.home-pet-page .home-pet-table tr>:nth-child(n+2):nth-child(-n+10){text-align:center}
.home-pet-page .home-pet-table tbody tr:last-child>*{border-bottom:0}
.home-pet-page .home-pet-table tbody tr:hover>*{background:var(--surface-2,var(--bg))}
.home-pet-page .home-pet-table .is-active-job{background:color-mix(in srgb,var(--brand) 7%,var(--surface));color:var(--brand)}
.home-table-name{display:flex;align-items:center;gap:10px;min-height:42px;color:var(--text);text-decoration:none}
.home-table-name img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.home-table-name>span{min-width:0;display:grid;gap:3px}
.home-table-name small{font-size:11px;font-weight:400;color:var(--text-3)}
.home-table-name strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.home-table-name:hover strong,.home-table-detail:hover{text-decoration:underline;text-underline-offset:3px}

.home-table-score{font-size:12px;font-variant-numeric:tabular-nums;color:var(--brand);white-space:nowrap}
.home-table-empty{color:var(--text-3);opacity:.5}
.home-table-talents{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.8;font-size:12px;color:var(--text-2)}
.home-table-detail{color:var(--brand);font-size:12px;white-space:nowrap}
@media(max-width:670px){.home-pet-page .home-table-scroll{max-height:62vh;border-radius:8px}.home-pet-page .home-pet-table{min-width:988px}.home-pet-table .home-col-pet{width:150px}.home-table-name{gap:7px}.home-table-name img{width:30px;height:30px}.home-pet-page .home-pet-table th,.home-pet-page .home-pet-table td{padding:10px 7px}.home-pet-page .home-pet-table tr>:first-child{padding-left:10px}}

/* 表内候选专长：鼠标悬停 / 点击 / 触摸查看三级效果。 */
.home-pet-page .home-table-talent-buttons{font-size:12px;line-height:1.9}
.home-talent-trigger{appearance:none;border:0;padding:3px 2px;background:transparent;color:var(--text-2);font:inherit;line-height:1.7;text-align:left;cursor:pointer;border-radius:3px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;text-decoration-color:var(--line-strong)}
.home-talent-trigger:hover,.home-talent-trigger[aria-expanded="true"]{color:var(--brand);background:var(--surface-2,var(--bg));text-decoration-style:solid}
.home-talent-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.home-talent-separator{margin:0 4px;color:var(--text-3)}
.home-talent-popover{position:fixed;inset:auto;margin:0;padding:18px;width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--text,#152238);box-shadow:0 12px 40px #12223b26;font-family:inherit}
.home-talent-popover::backdrop{background:transparent}
.home-talent-popover>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px}
.home-talent-popover header small{font-size:12px;color:var(--text-3)}
.home-talent-popover h3{margin:4px 0 0;font-size:17px;line-height:1.5}
.home-talent-popover [data-close-home-talent]{border:0;border-radius:6px;background:transparent;color:var(--text-2);font-size:24px;line-height:32px;min-width:36px;min-height:36px;padding:0;cursor:pointer}
.home-talent-popover [data-close-home-talent]:hover{background:var(--surface-2,var(--bg))}
.home-talent-popover .home-talent-level{padding:10px 0}
.home-talent-popover-note{font-size:11px;line-height:1.7;color:var(--text-3);margin:12px 0 0}
@media(max-width:670px){.home-pet-page .home-talent-trigger{min-height:36px;padding:6px 2px}.home-talent-popover [data-close-home-talent]{min-width:44px;min-height:44px}}


/* 精简列表抬头；工种评分排序与候选专长二级筛选。 */
.home-pet-page .catalog-tools{margin-top:8px;margin-bottom:14px}
.home-pet-page .home-table-scroll{margin-top:14px}
.home-pet-page .home-talent-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 0 0}
.home-talent-filters .filter-chip{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.7;padding:6px 11px;border-radius:7px;box-shadow:none}
.home-talent-filters .filter-chip small{font-size:11px;font-variant-numeric:tabular-nums;opacity:.7}
.home-pet-page .home-talent-filters .filter-chip.selected{box-shadow:none;background:var(--brand);border-color:var(--brand);color:white}
.home-pet-page .home-sort-button{appearance:none;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;margin:0;border:0;padding:4px 0;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;min-height:28px}
.home-pet-page .home-sort-button:hover,.home-pet-page .home-sort-button.is-sorted{color:var(--brand)}
.home-sort-icon{font-size:12px;opacity:.45}.is-sorted .home-sort-icon{opacity:1}
.home-sort-button:focus-visible,.home-talent-filters .filter-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
@media(max-width:670px){.home-talent-filters .filter-chip{min-height:38px;padding:7px 10px}.home-pet-page .home-sort-button{min-height:36px}}


/* 表格精修：桌面不横滑、专长自动换行、评分按上限分档着色、工具栏收紧。 */
.home-pet-page .catalog-tools{margin:6px 0 10px}
.home-pet-page .list-search{max-width:360px}
.home-pet-page .home-job-filters{border-top:0;border-bottom:0;padding:0;margin:0}
.home-pet-page .home-job-filters:not(.can-left) [data-category-scroll="-1"],.home-pet-page .home-job-filters:not(.can-right) [data-category-scroll="1"]{display:none}
.home-pet-page .home-job-filters .filter-chip{min-height:34px;padding:6px 12px;border-color:var(--line);background:var(--surface)}
.home-pet-page .home-job-filters .filter-chip.selected{border-color:var(--brand);background:var(--brand)}
.home-pet-page .home-talent-filters{padding-top:10px}
.home-pet-page .home-table-scroll{margin-top:12px;max-height:calc(100vh - 180px);max-height:calc(100dvh - 180px);min-height:360px}
.home-pet-page .home-pet-table{min-width:860px}
.home-pet-table .home-col-pet{width:156px}.home-pet-table .home-col-job{width:58px}.home-pet-table .home-col-talent{width:auto}
.home-pet-page .home-pet-table th,.home-pet-page .home-pet-table td{padding:8px 5px}
.home-pet-page .home-pet-table thead th{padding-top:9px;padding-bottom:9px}
.home-pet-page .home-pet-table tr>:first-child{padding-left:12px}
.home-pet-page .home-pet-table tr>:last-child{padding-left:14px;padding-right:14px}
.home-pet-page .home-table-name{min-height:36px;gap:9px}
.home-pet-page .home-table-name img{width:34px;height:34px}
.home-pet-page .home-table-name>span{gap:1px}
.home-pet-page .home-table-score{display:inline-block;min-width:44px;padding:3px 6px;border-radius:6px;font-size:12px;font-weight:600;line-height:18px;color:var(--brand-deep,var(--brand))}
.home-pet-page .home-table-score[data-tier="1"]{background:color-mix(in srgb,var(--brand) 6%,transparent)}
.home-pet-page .home-table-score[data-tier="2"]{background:color-mix(in srgb,var(--brand) 13%,transparent)}
.home-pet-page .home-table-score[data-tier="3"]{background:color-mix(in srgb,var(--brand) 24%,transparent)}
.home-pet-page .home-table-score[data-tier="4"]{background:var(--brand);color:#fff}
.home-pet-page .home-table-empty{color:var(--line-strong);opacity:1;font-size:16px;line-height:1}
.home-pet-page .home-table-talent-buttons{line-height:1.6}
.home-pet-page .home-talent-trigger{padding:1px 2px}
.home-pet-page .home-talent-separator{margin:0 3px}
/* 搜索框放到面包屑同一行右上角。 */
@media(min-width:671px){
  .home-pet-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);column-gap:20px;align-items:center}
  .home-pet-page>*{grid-column:1/-1}
  .home-pet-page>.breadcrumb{grid-column:1;grid-row:1;margin:0}
  .home-pet-page>.catalog-tools{grid-column:2;grid-row:1;margin:0}
  .home-pet-page>.catalog-tools .list-search{max-width:none;width:100%}
  .home-pet-page>.home-job-filters{margin-top:16px}
}
@media(min-width:1400px){.home-pet-table .home-col-pet{width:190px}.home-pet-table .home-col-job{width:78px}}
/* 纵向滚动条从表头下方开始，不覆盖表头。 */
.home-pet-page .home-pet-table thead th{height:46px;box-sizing:border-box}
.home-pet-page .home-table-scroll{scrollbar-width:auto;scrollbar-color:auto;background:linear-gradient(var(--surface-2,var(--bg)) 47px,var(--surface) 47px)}
.home-pet-page .home-table-scroll::-webkit-scrollbar{width:8px;height:8px}
.home-pet-page .home-table-scroll::-webkit-scrollbar-track{background:transparent}
.home-pet-page .home-table-scroll::-webkit-scrollbar-track:vertical{margin-top:47px;margin-bottom:4px}
.home-pet-page .home-table-scroll::-webkit-scrollbar-track:horizontal{margin-left:var(--home-pet-col,156px);margin-right:4px}
.home-pet-page .home-table-scroll::-webkit-scrollbar-thumb{background:rgba(65,87,103,.2);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.home-pet-page .home-table-scroll:hover::-webkit-scrollbar-thumb{background-color:rgba(65,87,103,.34)}
.home-pet-page .home-table-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}
.home-pet-page .home-table-scroll::-webkit-scrollbar-corner{background:transparent}
@media(min-width:1400px){.home-pet-page .home-table-scroll{--home-pet-col:190px}}
@media(max-width:670px){.home-pet-page .home-table-scroll{--home-pet-col:122px;background:linear-gradient(var(--surface-2,var(--bg)) 55px,var(--surface) 55px)}.home-pet-page .home-pet-table thead th{height:55px}.home-pet-page .home-table-scroll::-webkit-scrollbar-track:vertical{margin-top:55px}}
@media(max-width:670px){
  .home-pet-page .list-search{max-width:none}
  .home-pet-page .home-table-scroll{max-height:calc(100dvh - 225px);min-height:320px}
  .home-pet-page .home-pet-table{min-width:840px}
  .home-pet-table .home-col-pet{width:122px}.home-pet-table .home-col-job{width:52px}.home-pet-table .home-col-talent{width:250px}
  .home-pet-page .home-pet-table th,.home-pet-page .home-pet-table td{padding:7px 4px}
  .home-pet-page .home-pet-table tr>:first-child{padding-left:8px}
  .home-pet-page .home-table-name{gap:6px}
  .home-pet-page .home-table-name img{width:28px;height:28px}
  .home-pet-page .home-table-score{min-width:40px;padding:3px 4px;font-size:11px}
  .home-pet-page .home-talent-trigger{padding:6px 2px}
}

/* 本地侧栏位置及首页三入口：不改变其他导航或资料。 */
#navigation .map-nav{justify-content:center;padding-left:38px;padding-right:38px;text-align:center}
#navigation .map-nav::after{position:absolute;right:12px;top:50%;margin-left:0;transform:translateY(-50%)}
#navigation .map-nav:hover::after{transform:translate(3px,-50%)}
#navigation .map-nav small{position:absolute;right:10px;margin-left:0}
.home-page .home-overview{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.home-shortcuts{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.home-shortcut{--quick-tone:#3569ed;display:flex;align-items:center;gap:16px;padding:14px 20px;min-height:74px;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:0 3px 10px #17233c06;transition:border-color .15s,background .15s}
.home-shortcut[data-feature="homePet"]{--quick-tone:#318475}
.home-shortcut[data-feature="map"]{--quick-tone:#a77727}
.home-shortcut:hover{border-color:var(--quick-tone);background:color-mix(in srgb,var(--quick-tone) 3%,var(--surface))}
.home-shortcut:focus-visible{outline:2px solid var(--quick-tone);outline-offset:3px}
.home-shortcut-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:10px;color:var(--quick-tone);background:color-mix(in srgb,var(--quick-tone) 9%,var(--surface))}
.home-shortcut-icon svg{width:23px;height:23px}
.home-shortcut-copy{display:grid;gap:4px;min-width:0}
.home-shortcut-copy strong{font-size:17px;font-weight:700;line-height:1.4}
.home-shortcut-copy small{font-size:12px;line-height:1.5;color:var(--text-2)}
.home-shortcut-arrow{margin-left:auto;padding-left:12px;font-size:20px;color:var(--text-3)}
@media(max-width:1100px){.home-page .home-overview{grid-template-columns:minmax(0,1fr)}}
@media(max-width:670px){.home-page .home-overview{gap:14px}.home-shortcut{padding:13px 15px;gap:12px;min-height:74px}.home-shortcut-copy strong{font-size:16px}.home-shortcut-icon{width:38px;height:38px}}

/* Preserve original logo artwork while rounding its visible corners. */
.sidebar-brand img{border-radius:8px}
.home-page .masthead-art{border-radius:14%}

/* Home pasture uses the existing sticky Kibo table layout. */
.home-ranch-page .ranch-heading{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.home-pet-page.home-ranch-page{display:block}
.home-ranch-page .ranch-tools{display:flex;width:auto;float:none;margin-top:10px;align-items:center;flex-wrap:wrap;gap:8px 12px}
.home-ranch-page .ranch-tools .list-search{flex:1 1 220px;max-width:380px;min-width:0}
.ranch-tools select{appearance:auto;box-sizing:border-box;min-height:38px;padding:6px 9px;max-width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
.ranch-status{color:var(--text-2);font-size:12px}
.home-ranch-page .ranch-table{min-width:570px}
.home-pet-page.home-ranch-page .ranch-table tr>:not(:first-child){text-align:left;padding-inline:16px}
.home-ranch-page .home-table-scroll{min-height:0}
.ranch-drop{display:inline-flex;align-items:center;gap:7px;border-radius:6px;padding:3px 6px;vertical-align:middle}
.ranch-drop img{height:24px;width:24px;object-fit:contain}
.ranch-drop strong,.ranch-drop small{display:block}
.ranch-drop small{font-size:11px;color:var(--text-2);white-space:nowrap}
.ranch-drop-active{background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--brand)}
@media(max-width:670px){.home-ranch-page .ranch-tools .list-search{flex-basis:100%;max-width:none}.home-pet-page.home-ranch-page .ranch-table tr>:not(:first-child){padding-inline:8px}}
