/* Local personnel-3: compact images, explicit comparisons and touch-safe notes. */
.catalog-terrain-secondary{display:block!important;margin-top:5px;color:#c2b0e0;font-size:12px;white-space:nowrap}
.catalog-source-brief{display:flex;gap:5px;flex-wrap:wrap;max-width:190px;min-width:115px}
.catalog-source-brief a{font-size:11px;line-height:1.5;color:#d4d8bc;text-decoration:none;border-bottom:1px dotted #8d9e9f;white-space:nowrap}
.catalog-source-brief a:hover{color:#fff1bc}.catalog-equipment-table .col-rarity{min-width:65px;color:#a5d4da}.catalog-equipment-table .col-acquisition{min-width:130px;max-width:210px}
.catalog-type-filter{display:flex;gap:12px;align-items:center;font-size:12px;color:#c1d1d8;margin-top:14px}
.catalog-type-filter select{max-width:100%;min-width:180px;background:rgba(17,35,47,.8);border:1px solid #687e8a;color:#e6edf0;padding:8px;font:inherit}
.catalog-name-cell img{width:132px!important;height:68px!important;object-fit:contain;max-width:100%;margin:0 auto 7px}
.equipment-card-visual img{width:min(100%,280px);height:132px;object-fit:contain}.equipment-card-visual{min-height:160px}
.equipment-category .category-art{object-fit:contain}.equipment-category .category-name strong{text-shadow:0 2px 4px #07141c}
.vehicle-defect-grid{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.vehicle-defect{border:1px solid #627884;background:rgba(31,51,64,.55);flex:0 1 210px;min-width:0}.vehicle-defect>summary{display:flex;gap:10px;align-items:center;padding:10px 12px;font-size:13px;cursor:pointer;min-height:44px;list-style:none}.vehicle-defect>summary::-webkit-details-marker{display:none}.vehicle-defect>summary img{width:36px;height:36px;object-fit:contain}.vehicle-defect>summary:after{content:'＋';margin-left:auto;color:#bdcbd3}.vehicle-defect[open]>summary:after{content:'−'}.vehicle-defect[open]{flex-basis:100%;border-color:#b8a56e}.vehicle-defect-body{border-top:1px solid #576f7b;padding:0 14px 12px;font-size:13px;line-height:1.8}.vehicle-defect-body ul{padding-left:20px}
.personnel-simple-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:14px 16px}.personnel-result-count{margin-left:auto;font-size:12px;color:#b5c9d2}
.personnel-combat-table{min-width:1140px}.personnel-combat-table th:first-child,.personnel-combat-table tbody th:first-child{background:inherit!important;color:inherit;box-shadow:none}.personnel-combat-table tbody tr>th{background:transparent!important}
.personnel-combat-table .personnel-table-name{min-width:155px}.personnel-combat-table .personnel-table-name strong{color:#e4e9ec}.personnel-combat-table .personnel-table-name img{width:48px;height:55px}
.personnel-unit-badge{text-align:center;min-width:76px}.personnel-unit-badge img{width:48px;height:48px;object-fit:contain;filter:grayscale(1) brightness(2);opacity:.95}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-agility{color:#e6c877}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-weapon_skill{color:#8fd0a7}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-valour{color:#8abbe4}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-vitality{color:#ee8f91}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-toughness{color:#c39bdc}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-positioning{color:#aca8e5}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .attr-precision{color:#f3b7b5}
#characters-content :is(.personnel-combat-table,.personnel-derived-panel) .growth{color:#eff3f4}
.personnel-combat-table thead th button{color:inherit}.personnel-stars{color:#81d9de!important;white-space:nowrap;text-align:center}.personnel-stars small{display:block;font-size:10px;font-weight:400;margin-top:5px;color:#a3cbd0}.personnel-stars span{letter-spacing:2px}
.personnel-derived-panel dt{color:inherit}.personnel-basis-note{overflow-wrap:anywhere}
.personnel-combat-table tbody tr:nth-child(odd){background:rgba(30,49,62,.52)}.personnel-combat-table tbody tr:nth-child(even){background:rgba(49,66,79,.56)}.personnel-combat-table tbody tr>td,.personnel-combat-table tbody tr>th{background:transparent!important}.personnel-combat-table thead th{background:rgba(18,37,49,.7)}
.personnel-growth{border:1px solid var(--personnel-line);padding:15px;margin:20px 0;background:rgba(23,42,55,.5);min-width:0}.personnel-growth h3{margin:0 0 9px;color:#e6d298;font-size:17px}.personnel-growth>p,.growth-result-note{font-size:12px;color:#c2d2db;line-height:1.8;margin:8px 0}
.growth-controls{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.growth-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#c1d0d8}.growth-controls .growth-check{flex-direction:row;align-items:center;gap:6px}.growth-controls input[type=number]{width:105px}.personnel-growth input[type=number]{background:#152b39;border:1px solid #69818d;color:#e4edf1;padding:7px;font:inherit;font-size:14px}.growth-inputs table input{width:75px;max-width:100%}.growth-inputs>summary,.growth-explanation>summary{cursor:pointer;font-size:13px;color:#d2dce0;padding:7px 0}.personnel-growth table{width:100%;font-size:12px;border-collapse:collapse}.personnel-growth :is(th,td){padding:9px 10px;text-align:left;border-bottom:1px solid #4a606d;vertical-align:top;line-height:1.7}.growth-inputs table{min-width:620px}.growth-inputs th:first-child{min-width:72px}.growth-inputs td:last-child{min-width:230px}.growth-run-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0}.growth-run-bar button{padding:9px 12px;color:#f0dfaf;background:#334d5a;border:1px solid #9f946e;cursor:pointer;font:inherit;font-size:12px}.growth-run-bar button:disabled{opacity:.6;cursor:wait}.growth-run-bar span{font-size:10px;color:#b0c3ce}.growth-results-table{min-width:1100px}.growth-results-table td{font-variant-numeric:tabular-nums}.growth-results-table td strong{font-size:11px;color:#e2d09a;font-weight:400}.growth-explanation{font-size:12px;line-height:1.9;border-top:1px solid var(--personnel-line);margin-top:13px;padding-top:7px}.growth-explanation p{margin:8px 0}
.personnel-skill-targets{padding:20px 30px;border-top:1px solid var(--personnel-line)}.personnel-skill-targets h3{font-size:16px;color:#dfd29f;margin:0 0 12px}.skill-target-drawer{border:1px solid #506977;margin:10px 0;background:rgba(27,47,61,.4);font-size:12px;line-height:1.8}.skill-target-drawer>summary{padding:12px 14px;cursor:pointer;color:#cfdae0}.skill-target-drawer>p{margin:10px 14px}.skill-target-scroll{max-height:460px;overflow:auto;margin:12px}.skill-target-scroll table{min-width:550px;width:100%;border-collapse:collapse;font-size:12px}.skill-target-scroll :is(th,td){text-align:left;padding:9px 10px;vertical-align:top;border-bottom:1px solid #49616f;line-height:1.7}.skill-target-scroll a{color:#d9cc9c;text-decoration:none}.skill-target-scroll small{display:block;color:#acc1cc;font-size:10px}.skill-target-scroll tr:nth-child(even){background:rgba(64,85,98,.2)}.skill-target-scroll th:first-child{min-width:140px}.skill-enemy-reference summary{color:#8fb8cc;cursor:pointer}.skill-enemy-reference code{overflow-wrap:anywhere;font-size:10px}.skill-distance-section{margin-top:22px}.skill-distance-figure{margin:10px 0;padding:12px;border:1px solid #4b6372;background:rgba(15,36,48,.4)}.skill-distance-figure svg{display:block;width:100%;max-width:650px;margin:0 auto}.skill-distance-figure rect{stroke:#647985;fill:#273c49}.skill-distance-figure text{font-size:14px;fill:#c2d2db}.skill-distance-figure .distance-tick{font-size:10px;fill:#aebfc9}.skill-distance-inside rect{fill:#315a4c;stroke:#a2cbb0}.skill-distance-origin rect{fill:#31546f;stroke:#87b9dc}.skill-distance-outside rect{fill:#263540;stroke:#445966}.skill-distance-figure figcaption{font-size:12px;line-height:1.8;color:#c4d3dc}.skill-distance-figure figcaption>*{display:block}.skill-distance-figure figcaption strong{font-weight:500;color:#d8d0a3}.skill-distance-figure figcaption small{font-size:10px;color:#a5bbc7}.skill-distance-dynamic{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-height:65px}.skill-distance-dynamic span{padding:8px 11px;background:#304f60;border:1px solid #597987}.skill-distance-dynamic strong{color:#acd3b8}
/* All notes use one controlled dialog; no dependency on native popover support. */
.tcr-note-source[hidden]{display:none!important}.tcr-note-modal[hidden]{display:none!important}.tcr-note-modal{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,12,20,.75);box-sizing:border-box;overscroll-behavior:contain}.tcr-note-modal-panel{max-width:760px;width:100%;max-height:85vh;display:flex;flex-direction:column;border:1px solid #8d9e9c;background:#1d3342;color:#dce4e8;box-shadow:0 12px 50px #06121a;font-size:14px;line-height:1.8}.tcr-note-modal-panel header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #586d78;flex-shrink:0;gap:15px}.tcr-note-modal-panel h2{margin:0;font-size:17px;color:#e2cf9c}.tcr-note-modal-panel button{cursor:pointer;padding:8px 14px;font:inherit;min-height:42px;border:1px solid #8c9b9f;background:#354e5c;color:#f0e7cf}.tcr-note-modal-content{overflow:auto;overscroll-behavior:contain;padding:16px;min-height:0;overflow-wrap:anywhere}.tcr-note-modal-panel footer{padding:10px 16px;text-align:right;border-top:1px solid #586d78;flex-shrink:0}.tcr-note-modal-content .table-wrap{max-width:100%;overflow:auto}.tcr-note-modal-content table{width:100%;font-size:12px}.tcr-note-modal-content :is(th,td){padding:8px}.tcr-note-mark{min-width:26px;min-height:26px;touch-action:manipulation}
/* Keep the page within the viewport; wide comparisons scroll as whole tables. */
.view,.personnel-profile,.personnel-results,.equipment-subgroup,.equipment-detail-body,.analysis-comparison,.equipment-block{min-width:0}
.catalog-table-wrap,.personnel-table-wrap,.table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;touch-action:pan-x pan-y pinch-zoom}
@media(max-width:760px){
 html{scroll-padding-top:115px}body{overflow-x:hidden}.site-header{position:relative}.site-header nav{overflow-x:auto;flex-wrap:nowrap;max-width:100%;white-space:nowrap}.site-header nav a{flex-shrink:0;padding:12px 10px}.section-navigation{overflow-x:auto;flex-wrap:nowrap;max-width:100%}main{max-width:100%;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box}.page-title{gap:12px;flex-wrap:wrap}.page-title h1{font-size:25px}.page-title>span{max-width:100%;box-sizing:border-box}.catalog-search-row{display:flex;flex-wrap:wrap}.catalog-search-row .catalog-search{flex:1 1 100%;min-width:0}.catalog-search-row label{min-width:0}.catalog-search-row select{max-width:100%}input,select,textarea{font-size:16px!important}.catalog-results-bar{gap:10px;flex-wrap:wrap}.catalog-results-actions{width:100%;justify-content:space-between}.equipment-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.equipment-category{min-height:145px!important}.equipment-category .category-art{max-height:90px}.equipment-category .category-name strong{font-size:17px}.equipment-category .category-caption{font-size:10px}.equipment-category .category-register{font-size:8px}.catalog-card-vitals{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-table-wrap,.personnel-table-wrap{position:relative}.catalog-table-wrap:before,.personnel-table-wrap:before{content:'左右滑动查看全部数据';display:block;position:sticky;left:0;padding:7px 10px;background:#233b4b;color:#b2c8d4;font-size:11px;width:max-content;max-width:100%;box-sizing:border-box}.catalog-equipment-table .catalog-name-column{min-width:125px!important;width:125px!important}.catalog-name-cell a{min-width:105px}.catalog-name-cell img{width:105px!important;height:55px!important}.catalog-name-cell strong{font-size:11px!important;line-height:1.7}.catalog-equipment-table :is(th,td){padding:10px 7px}.catalog-equipment-table thead th:first-child,.catalog-equipment-table tbody th:first-child{position:sticky;left:0;z-index:2;background:#293d4a!important}.catalog-equipment-table tbody .tone-b th:first-child{background:#344852!important}.catalog-equipment-table thead th:first-child{z-index:3}.catalog-column-sort{min-height:40px}.personnel-simple-controls{padding:12px;gap:10px}.personnel-simple-controls .personnel-segments button{min-height:42px;padding:8px 12px}.personnel-result-count{margin-left:0}.personnel-combat-table{min-width:1120px}.personnel-combat-table .personnel-table-name{min-width:120px;gap:8px}.personnel-combat-table th,.personnel-combat-table td{padding:10px 8px}.personnel-combat-table td.personnel-numeric{font-size:14px}.personnel-combat-table .personnel-table-name img{width:35px;height:42px}.personnel-combat-table thead button{font-size:12px;min-height:42px}.personnel-unit-badge img{width:36px;height:36px}.personnel-gallery{grid-template-columns:1fr}.personnel-card-art{height:250px}.personnel-detail-hero{padding:14px}.personnel-portrait-stage{height:330px}.personnel-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.personnel-planner{position:relative;top:auto!important;max-height:none}.personnel-growth{padding:12px;margin:16px 0}.growth-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.growth-controls label,.growth-controls input{min-width:0;max-width:100%}.growth-controls input[type=number]{width:100%;box-sizing:border-box}.growth-check{grid-column:1/-1}.growth-inputs input{min-height:36px}.growth-run-bar button{min-height:44px}.personnel-skill-targets{padding:18px 14px}.skill-target-drawer>summary{min-height:44px;box-sizing:border-box}.skill-target-scroll{margin:8px;max-height:400px}.skill-distance-figure{padding:9px}.skill-distance-figure svg{min-width:290px}.skill-distance-figure{overflow-x:auto}.compare-picker-bar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px}.compare-picker-bar>*{min-width:0!important;max-width:100%;width:100%;box-sizing:border-box}.compare-picker-bar [data-compare-query],.compare-picker-bar [data-compare-add]{grid-column:1/-1}.compare-selection.compact{grid-template-columns:1fr!important}.equipment-mode-body{min-width:0}.mode-operation-layout{grid-template-columns:1fr!important}.mode-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.equipment-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.equipment-mobility .equipment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-defect{flex-basis:calc(50% - 6px)}.vehicle-defect>summary{padding:8px;font-size:12px;gap:6px}.vehicle-defect>summary img{width:28px;height:28px}.tcr-note-modal{padding:12px}.tcr-note-modal-panel{max-height:88vh;max-height:88dvh}.tcr-note-modal-content{padding:12px;font-size:13px}.tcr-note-modal-panel button{min-height:44px}.tcr-note-mark{min-height:32px;min-width:30px}.pet-companion{max-width:110px}.equipment-chart-panel{overflow-x:auto}.equipment-curve-svg{min-width:560px}.chart-distance-control{min-width:0}.equipment-source-grid{grid-template-columns:1fr!important}.plow-scenarios{grid-template-columns:1fr}
}

@media(max-width:760px){.catalog-table-wrap,.personnel-table-wrap{max-height:74vh;max-height:74dvh;overflow:auto}.catalog-table-wrap:before,.personnel-table-wrap:before{position:sticky;top:0;z-index:5}.catalog-equipment-table thead th,.personnel-combat-table thead th{position:sticky;top:30px;z-index:3;background:#203746}.catalog-equipment-table thead th:first-child{z-index:4}.personnel-combat-table tbody tr:nth-child(odd){background:#263b49}.personnel-combat-table tbody tr:nth-child(even){background:#344957}.personnel-combat-table tbody tr>th:first-child{position:sticky;left:0;z-index:2;background:inherit!important}.personnel-combat-table thead th:first-child{left:0;z-index:4;background:#203746!important}}
