@charset "UTF-8";
:root {
  color-scheme:light;
  --bg:#f5f5f7;
  --surface:#fff;
  --text:#1d1d1f;
  --secondary:#66666d;
  --line:#e8e8ed;
  --blue:#0069d9;
  --green:#246844;
  --red:#ae3b37;
  --radius:18px;
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Noto Sans JP",sans-serif;
  font-synthesis:none;
  color:var(--text);
  background:var(--bg);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button,summary {
  cursor:pointer;
}
button {
  color:inherit;
  border:0;
  background:none;
}
a {
  color:var(--blue);
  text-decoration:none;
}
button:disabled {
  opacity:.45;
  cursor:default;
}
svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}
button {
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #79b7fb;
  outline-offset:3px;
}
input,select {
  color:var(--text);
}
[hidden] {
  display:none!important;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link {
  position:fixed;
  left:16px;
  top:-60px;
  background:var(--surface);
  padding:12px;
  z-index:20;
}
.skip-link:focus {
  top:10px;
}
.muted {
  color:var(--secondary);
}
.app-header {
  height:64px;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:rgba(250,250,252,.92);
  backdrop-filter:blur(20px);
  position:sticky;
  top:0;
  z-index:10;
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--text);
  font-weight:700;
  font-size:17px;
  letter-spacing:-.5px;
}
.brand-mark {
  height:32px;
  width:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--text);
  color:white;
}
.brand-mark svg {
  width:21px;
  height:21px;
}
.brand-tail {
  font-weight:500;
  color:var(--secondary);
  margin-left:-4px;
}
.star-label {
  font-size:10px;
  letter-spacing:.3px;
  color:var(--secondary);
  border:1px solid #d8d8df;
  border-radius:5px;
  padding:2px 5px;
  margin-left:3px;
}
.header-actions {
  display:flex;
  gap:16px;
  align-items:center;
  color:var(--secondary);
}
#updated {
  font-size:11px;
}
.icon-button {
  width:36px;
  height:36px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.icon-button:hover {
  background:#eaeaf0;
}
.icon-button svg {
  width:19px;
  height:19px;
}
.app-shell {
  max-width:1600px;
  margin:auto;
  display:grid;
  grid-template-columns:188px minmax(0,1fr);
}
.sidebar {
  position:sticky;
  top:64px;
  height:calc(100dvh - 64px);
  padding:34px 16px 24px 22px;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
}
.nav-heading {
  font-size:11px;
  font-weight:600;
  color:var(--secondary);
  padding:0 13px 13px;
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:11px;
  border-radius:10px;
  padding:12px;
  font-size:13px;
  text-align:left;
  min-height:44px;
  white-space:nowrap;
}
.nav-item svg {
  width:19px;
  height:19px;
  color:#77777f;
}
.nav-item .nav-count {
  margin-left:auto;
  font-size:11px;
  color:#74747b;
  font-variant-numeric:tabular-nums;
}
.nav-item.active {
  background:#e4edf9;
  color:#005dbb;
  font-weight:600;
}
.nav-item.active svg,.nav-item.active .nav-count {
  color:#005dbb;
}
.nav-item:hover:not(.active) {
  background:#eaeaef;
}
.sidebar-foot {
  margin-top:auto;
  font-size:10px;
  color:#73737b;
  padding:12px;
}
.nav-item.all {
  margin-top:13px;
  border-top:1px solid var(--line);
  border-radius:0 0 10px 10px;
}
main {
  width:100%;
  max-width:1190px;
  margin:0 auto;
  padding:36px 42px 56px;
  min-width:0;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}
.page-heading h1 {
  font-size:34px;
  letter-spacing:-1.6px;
  font-weight:700;
  line-height:1.2;
  margin:0 0 9px;
}
.page-heading p {
  font-size:12px;
  margin:0;
  color:var(--secondary);
  font-variant-numeric:tabular-nums;
  min-height:17px;
}
.heading-glyph {
  background:#e9e9ee;
  border:1px solid #e2e2e8;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:19px;
  color:#7b7b83;
}
.heading-glyph svg {
  width:32px;
  height:32px;
  stroke-width:1.3;
}
.workspace-controls {
  display:flex;
  gap:18px;
  align-items:center;
  margin-bottom:20px;
}
.search-box {
  position:relative;
  display:flex;
  align-items:center;
  height:44px;
  flex:1;
  min-width:160px;
  background:#eaeaee;
  border:1px solid transparent;
  border-radius:11px;
  gap:9px;
  padding:0 13px;
  transition:border-color .15s,background .15s;
}
.search-box:focus-within {
  background:white;
  border-color:#86baff;
  box-shadow:0 0 0 3px #0071e312;
}
.search-box svg {
  width:17px;
  height:17px;
  color:#73737d;
}
.search-box input {
  width:100%;
  min-width:0;
  background:none;
  border:0;
  outline:none;
  font-size:13px;
  height:100%;
  padding:0;
}
.search-box input:focus-visible {
  outline:none;
}
.search-box input::placeholder {
  color:#73737b;
}
.search-box kbd {
  font-size:11px;
  color:#85858c;
  border:1px solid #cccbd3;
  padding:1px 5px;
  border-radius:4px;
}
.level-control {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.segmented {
  padding:3px;
  background:#e8e8ec;
  border-radius:10px;
  display:flex;
}
.segmented button {
  padding:8px 13px;
  font-size:12px;
  border-radius:7px;
  min-height:34px;
  color:#62626a;
}
.segmented button.active {
  background:white;
  color:var(--text);
  box-shadow:0 1px 4px #00000014;
  font-weight:600;
}
.custom-level {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  color:var(--secondary);
}
.custom-level input {
  width:43px;
  border:1px solid #dcdce3;
  border-radius:8px;
  background:#fff;
  text-align:center;
  padding:8px 2px;
  height:39px;
  font-size:12px;
  appearance:textfield;
  -moz-appearance:textfield;
}
.custom-level input::-webkit-inner-spin-button {
  appearance:none;
}
.family-navigation {
  margin-bottom:21px;
}
#families {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.family-chip {
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid #dedee5;
  background:transparent;
  border-radius:9px;
  min-height:36px;
  font-size:11px;
  line-height:1.3;
  color:#585862;
}
.family-chip b {
  font-size:10px;
  font-weight:500;
  color:#6d6d76;
  font-variant-numeric:tabular-nums;
}
.family-chip.active {
  background:var(--text);
  border-color:var(--text);
  color:white;
}
.family-chip.active b {
  color:#d5d5dc;
}
.family-chip .compact-marker {
  background:transparent;
  padding:0;
}
.family-chip.active .own-marker {
  color:#fff;
}
.family-chip:hover:not(.active) {
  border-color:#b1b1bd;
  background:#ededf1;
}
.list-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 13px;
  min-height:36px;
}
.view-options,.sort-options {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.merge-toggle {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:11px;
  color:#52525b;
  cursor:pointer;
  min-height:36px;
  white-space:nowrap;
}
input[type=checkbox] {
  width:14px;
  height:14px;
  margin:0;
  accent-color:var(--blue);
  cursor:pointer;
}
.quiet-button {
  font-size:11px;
  color:#62626a;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border-radius:8px;
  min-height:34px;
  padding:6px 8px;
  white-space:nowrap;
}
.quiet-button svg {
  width:15px;
  height:15px;
}
.quiet-button[aria-pressed=true] {
  color:var(--blue);
  background:#e5efff;
}
.quiet-button:hover {
  background:#e9e9ef;
}
#owned-count {
  font-size:10px;
}
#sort-select {
  max-width:142px;
  border:0;
  background:none;
  font-size:11px;
  padding:7px 18px 7px 4px;
  min-height:34px;
  cursor:pointer;
}
.sort-options {
  gap:3px;
}
.display-settings {
  position:relative;
}
.display-settings summary {
  list-style:none;
}
.display-settings summary::-webkit-details-marker {
  display:none;
}
.display-settings[open] summary {
  background:#e8e8ef;
}
.settings-popover {
  position:absolute;
  right:0;
  top:43px;
  z-index:12;
  width:268px;
  padding:18px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:14px;
  box-shadow:0 10px 40px #0000001a;
  font-size:12px;
}
.settings-popover>label {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}
.settings-popover .context-label {
  display:block;
  margin:0;
  color:var(--secondary);
}
.context-label select {
  display:block;
  margin-top:8px;
  width:100%;
  padding:9px 8px;
  border:1px solid #dbdbe3;
  border-radius:7px;
  font-size:11px;
  background:var(--surface);
}
.active-filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 12px;
  font-size:11px;
}
.filter-tag {
  display:flex;
  gap:6px;
  align-items:center;
  padding:5px 9px;
  border-radius:6px;
  background:#e5effc;
  color:#005abb;
}
.filter-tag svg {
  width:12px;
  height:12px;
}
.family-section {
  margin-bottom:23px;
  scroll-margin-top:82px;
}
.family-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 3px;
  margin-bottom:10px;
}
.family-heading h2 {
  font-size:13px;
  letter-spacing:-.2px;
  font-weight:600;
  margin:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}
.family-heading h2 svg {
  height:15px;
  width:15px;
  color:#707079;
}
.family-heading h2 .own-marker svg {
  height:10px;
  width:10px;
  color:inherit;
}
.family-heading .family-count {
  color:#6d6d76;
  font-size:10px;
  font-weight:400;
  white-space:nowrap;
}
.table-surface {
  background:var(--surface);
  border-radius:var(--radius);
  border:1px solid #e2e2e9;
  overflow:hidden;
  box-shadow:0 2px 4px #00000002;
}
.table-scroll {
  overflow-x:auto;
}
.gear-table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.gear-table th {
  font-size:10px;
  color:#787880;
  font-weight:500;
  white-space:nowrap;
  padding:0;
  background:#fbfbfd;
  border-bottom:1px solid var(--line);
  text-align:right;
}
.gear-table th.name-heading {
  text-align:left;
  width:46%;
  min-width:230px;
}
.gear-table .sort-button {
  width:100%;
  min-height:38px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
  padding:9px 18px 9px 9px;
  font-size:10px;
  color:#64646d;
}
.gear-table .name-heading .sort-button {
  justify-content:flex-start;
  padding-left:22px;
}
.sort-arrow {
  font-size:11px;
  opacity:.4;
}
.sorted-head .sort-arrow {
  opacity:1;
  color:var(--blue);
}
.sorted-head .sort-button {
  color:var(--blue);
}
.group-row td {
  padding:17px 18px 17px 8px;
  text-align:right;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  font-size:15px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.group-row:last-child td {
  border-bottom:0;
}
.group-row .identity-cell {
  text-align:left;
  white-space:normal;
  padding:12px 12px 12px 20px;
}
.group-row.reference-row {
  background:#f0f6ff;
}
.group-row.reference-row .identity-cell {
  box-shadow:inset 3px 0 var(--blue);
}
.group-row:hover {
  background:#fafafd;
}
.group-row.reference-row:hover {
  background:#ecf3ff;
}
.group-row.owned-row {
  background:#f8fbff;
}
.group-row.owned-row .identity-cell {
  box-shadow:inset 2px 0 #8abcfc;
}
.group-row.owned-row:hover {
  background:#f2f7ff;
}
.group-row.owned-row.reference-row {
  background:#f0f6ff;
}
.group-row.owned-row.reference-row .identity-cell {
  box-shadow:inset 3px 0 var(--blue);
}
.gear-identity {
  display:flex;
  gap:13px;
  align-items:center;
  min-height:34px;
}
.tier-badge {
  height:26px;
  width:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#f0f0f4;
  color:#6d6d76;
  font-size:11px;
  font-weight:600;
  flex-shrink:0;
}
.tier-badge.top-tier {
  color:var(--green);
  background:#edf5ef;
}
.tier-badge.no-tier {
  color:#aaaab2;
}
.tier-badge svg {
  width:14px;
  height:14px;
}
.gear-text {
  min-width:0;
  flex:1;
}
.gear-title {
  display:flex;
  align-items:center;
  gap:7px;
}
.gear-title .gear-name {
  flex:1;
  min-width:0;
  min-height:30px;
}
.gear-title .owned-button {
  height:30px;
}
.group-toggle,.gear-name {
  font-size:12px;
  font-weight:500;
  line-height:1.5;
  text-align:left;
  padding:2px 0;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  gap:5px;
  max-width:100%;
  overflow-wrap:anywhere;
}
.group-toggle:hover,.gear-name:hover {
  color:var(--blue);
}
.group-toggle svg {
  width:12px;
  height:12px;
  color:#73737d;
  transition:transform .18s;
  flex-shrink:0;
}
.group-toggle[aria-expanded=true] svg {
  transform:rotate(90deg);
}
.gear-meta {
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
  color:#73737d;
  font-size:9px;
  line-height:1.7;
  margin-top:1px;
}
.same-count {
  color:#6b6b75;
}
.gear-meta .group-toggle {
  flex:none;
  font-size:10px;
  font-weight:400;
  padding:0;
  min-height:24px;
}
.gear-meta .group-toggle svg {
  width:10px;
  height:10px;
}
.owned-position {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  color:#3271ac;
  font-size:11px;
  line-height:1.7;
  margin-top:2px;
}
.owned-position span + span::before {
  content:'·';
  margin-right:6px;
  color:#8ca9c4;
}
.owned-names {
  display:flex;
  flex-wrap:wrap;
  gap:3px 8px;
  margin-top:4px;
}
.owned-names button {
  font-size:11px;
  line-height:1.6;
  color:#3271ac;
  text-align:left;
  overflow-wrap:anywhere;
  padding:1px 0;
}
.owned-names button:hover {
  text-decoration:underline;
}
.owned-names .group-toggle svg {
  width:10px;
  height:10px;
}
.selected-badge {
  background:#d9eaff;
  color:#005cb9;
  border-radius:4px;
  padding:1px 5px;
  font-size:9px;
  white-space:nowrap;
  font-weight:600;
}
.own-marker {
  color:#0067cc;
  background:#eaf3ff;
  border-radius:5px;
  padding:1px 5px;
  font-size:10px;
  font-weight:500;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.own-marker svg {
  width:10px;
  height:10px;
  fill:currentColor;
  stroke:none;
}
.stat-value {
  font-weight:550;
  letter-spacing:-.4px;
  display:inline-flex;
  align-items:baseline;
  gap:1px;
  line-height:1.35;
}
.number-unit {
  font-size:10px;
  color:#6d6d76;
  font-weight:400;
  margin-left:2px;
}
.estimate-mark {
  font-size:9px;
  color:#73737d;
  font-weight:400;
  margin-right:3px;
}
.negative-value {
  color:var(--red);
}
.missing, .absent-effect {
  font-size:10px;
  color:#73737d;
}
.mobile-stat-label {
  display:none;
}
.member-row td {
  padding:0;
  background:#f9f9fc;
  border-bottom:1px solid var(--line);
}
.member-panel {
  padding:10px 20px 14px 59px;
}
.member-caption {
  font-size:10px;
  color:#6d6d76;
  margin:0 0 8px;
}
.member-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px 18px;
  list-style:none;
  padding:0;
  margin:0;
}
.member-list li {
  display:flex;
  align-items:center;
  gap:6px;
  border-radius:6px;
  min-width:0;
}
.member-list li.is-reference {
  background:#e7f0ff;
}
.member-list li.is-owned {
  background:#edf5ff;
}
.member-list .gear-name {
  font-size:11px;
  min-height:38px;
  flex:1;
}
.member-list .gear-name span {
  color:#93939c;
  font-size:10px;
  margin-left:auto;
  padding-right:4px;
  font-weight:400;
  white-space:nowrap;
}
.member-list .gear-name:hover span {
  color:var(--blue);
}
.member-list li.is-owned .gear-name span {
  color:#0067cc;
  font-weight:500;
}
.owned-button {
  width:30px;
  height:36px;
  flex-shrink:0;
  color:#878791;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
}
.owned-button svg {
  height:14px;
  width:14px;
}
.owned-button:hover {
  background:#eaf3ff;
  color:var(--blue);
}
.owned-button[aria-pressed=true] {
  color:var(--blue);
  background:#eaf3ff;
}
.owned-button[aria-pressed=true] svg {
  fill:currentColor;
  stroke:currentColor;
}
.reference-panel {
  background:#fff;
  border:1px solid #d7e4f7;
  border-radius:var(--radius);
  padding:19px 22px;
  margin-bottom:20px;
  box-shadow:0 3px 12px #2761a206;
}
.reference-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.eyebrow {
  font-size:10px;
  color:#5e7eaa;
  letter-spacing:.3px;
  margin-bottom:6px;
  display:block;
}
.reference-panel h2 {
  font-size:17px;
  font-weight:600;
  letter-spacing:-.4px;
  margin:0;
  line-height:1.4;
}
.reference-owned-label {
  display:inline-block;
  vertical-align:middle;
  margin-left:9px;
  font-size:10px;
  font-weight:500;
  color:#0067cc;
  background:#eaf3ff;
  border-radius:5px;
  padding:2px 6px;
}
.reference-actions {
  display:flex;
  gap:4px;
  align-items:center;
  margin-top:-4px;
}
.reference-body {
  display:flex;
  gap:26px;
  align-items:center;
  margin-top:17px;
}
.position-block {
  flex-shrink:0;
  border-right:1px solid var(--line);
  padding-right:24px;
  min-width:86px;
}
.position-block .position-number {
  font-size:26px;
  letter-spacing:-1px;
  font-weight:600;
  line-height:1.1;
}
.position-number small {
  font-size:12px;
  color:var(--secondary);
  font-weight:400;
  letter-spacing:0;
  margin-left:4px;
}
.position-label {
  font-size:10px;
  color:var(--secondary);
  display:block;
  margin-top:6px;
  white-space:nowrap;
}
.rank-list {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.rank-metric {
  padding:0;
  text-align:left;
  border-radius:5px;
  min-width:58px;
}
.rank-metric:hover {
  color:var(--blue);
}
.rank-label {
  font-size:10px;
  color:var(--secondary);
  display:block;
  margin-bottom:2px;
}
.rank-metric .stat-value {
  font-size:18px;
}
.rank-position {
  font-size:10px;
  color:var(--secondary);
  display:block;
  margin-top:4px;
}
.rank-position strong {
  color:var(--text);
  font-weight:500;
}
.reference-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--secondary);
}
.reference-bottom .reference-cta {
  display:flex;
  align-items:center;
  gap:12px;
}
.text-button {
  font-size:11px;
  color:var(--blue);
  padding:6px 0;
  min-height:30px;
}
.text-button:hover {
  text-decoration:underline;
}
.superior-button {
  font-size:11px;
  color:var(--blue);
  border-radius:7px;
  background:#eaf3ff;
  padding:8px 11px;
  min-height:33px;
  white-space:nowrap;
}
.superior-button[aria-pressed=true] {
  background:var(--blue);
  color:white;
}
.reference-note {
  color:#787882;
  font-size:10px;
}
.catalog-footer {
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  font-size:10px;
  color:#6d6d76;
  margin-top:24px;
  padding:0 3px;
}
.catalog-footer .text-button {
  margin-left:auto;
  font-size:10px;
}
.empty-state {
  text-align:center;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:52px 20px;
}
.empty-state svg {
  width:28px;
  height:28px;
  color:#878791;
}
.empty-state h2 {
  font-size:15px;
  font-weight:500;
  margin:14px 0 8px;
}
.empty-state p {
  font-size:12px;
  color:var(--secondary);
  line-height:1.8;
  margin:0 0 14px;
}
.empty-actions {
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
}
.pill-button {
  font-size:12px;
  color:var(--blue);
  background:#edf4ff;
  padding:10px 16px;
  border-radius:9px;
  min-height:40px;
}
dialog {
  border:1px solid #dfdfe6;
  border-radius:22px;
  background:white;
  color:var(--text);
  padding:28px;
  box-shadow:0 20px 100px #00000024;
  width:min(650px,calc(100vw - 32px));
  max-height:85dvh;
  overflow-y:auto;
}
dialog::backdrop {
  background:#10101955;
  backdrop-filter:blur(4px);
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.dialog-heading h2 {
  font-size:20px;
  font-weight:600;
  letter-spacing:-.5px;
  margin:0;
}
.info-dialog p {
  font-size:12px;
  line-height:1.9;
  color:#5c5c67;
}
.info-dialog #sources {
  font-size:11px;
  line-height:1.8;
  list-style:none;
  margin:20px 0 0;
  padding:0;
}
.info-dialog #sources li {
  padding:8px 0;
  border-top:1px solid var(--line);
}
#sources small {
  display:block;
  color:#85858f;
  font-size:10px;
}
.detail-dialog {
  width:min(720px,calc(100vw - 32px));
}
.detail-name {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:18px;
}
.detail-name .heading-glyph {
  width:46px;
  height:46px;
  border-radius:13px;
}
.detail-name .heading-glyph svg {
  width:25px;
  height:25px;
}
.detail-name h2 {
  font-size:20px;
  margin:0;
  letter-spacing:-.5px;
}
.detail-name .eyebrow {
  color:var(--secondary);
  margin-bottom:4px;
}
.anchor-scroll {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:12px;
  margin:18px 0;
}
.anchor-table {
  border-collapse:collapse;
  width:100%;
  text-align:right;
  font-size:12px;
  white-space:nowrap;
}
.anchor-table th {
  font-size:10px;
  font-weight:500;
  background:#f8f8fb;
  color:#676772;
}
.anchor-table th,.anchor-table td {
  padding:13px 12px;
  border-bottom:1px solid var(--line);
}
.anchor-table tr:last-child>* {
  border-bottom:0;
}
.anchor-table th:first-child {
  text-align:left;
  position:sticky;
  left:0;
}
.anchor-table td .stat-value {
  font-size:14px;
}
.detail-summary {
  font-size:12px;
  color:var(--secondary);
  line-height:1.8;
}
.detail-source {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:20px;
  font-size:11px;
}
.method-details {
  font-size:11px;
  line-height:1.7;
  color:#6c6c76;
  padding-top:16px;
  margin-top:17px;
  border-top:1px solid var(--line);
}
.method-details summary {
  font-size:12px;
  color:#444450;
  padding:4px 0;
}
.method-details ul {
  list-style:none;
  padding:0;
  margin-bottom:0;
}
.method-details li {
  padding:8px 0;
}
.method-details li b {
  display:block;
  color:#393944;
}
.method-details small {
  display:block;
  font-size:10px;
}
.skill-note {
  font-size:11px;
  line-height:1.8;
  color:#696972;
  white-space:pre-line;
}
.detail-actions {
  display:flex;
  gap:12px;
  align-items:center;
}
.detail-actions .pill-button {
  margin-right:auto;
}

@media(min-width:1400px){main {
  padding-left:58px;
  padding-right:58px;
}
}
@media(max-width:1050px){.app-shell {
  display:block;
}
.app-header {
  padding:0 24px;
  height:56px;
}
.sidebar {
  position:sticky;
  top:56px;
  height:auto;
  border-right:0;
  border-bottom:1px solid var(--line);
  padding:8px 20px;
  background:rgba(245,245,247,.96);
  backdrop-filter:blur(15px);
  z-index:9;
}
.nav-heading,.sidebar-foot {
  display:none;
}
.sidebar nav {
  flex-direction:row;
  overflow-x:auto;
  gap:3px;
  scrollbar-width:none;
}
.sidebar nav::-webkit-scrollbar {
  display:none;
}
.nav-item {
  padding:9px 12px;
  gap:7px;
  font-size:11px;
  min-height:36px;
  flex-shrink:0;
}
.nav-item .nav-count {
  font-size:9px;
  margin-left:2px;
}
.nav-item svg {
  width:16px;
  height:16px;
}
.nav-item.all {
  margin:0;
  border:0;
  border-radius:10px;
  order:8;
}
main {
  padding:27px 28px 44px;
  max-width:1000px;
}
.family-section {
  scroll-margin-top:132px;
}
.page-heading h1 {
  font-size:30px;
}
.page-heading {
  margin-bottom:21px;
}
.heading-glyph {
  width:52px;
  height:52px;
  border-radius:16px;
}
.heading-glyph svg {
  width:28px;
  height:28px;
}
.gear-table th.name-heading {
  width:45%;
}
.workspace-controls {
  gap:12px;
}
.segmented button {
  padding:8px 10px;
}
.family-chip {
  padding:8px 10px;
}
.rank-list {
  gap:15px;
}
}
@media(max-width:700px){.app-header {
  padding:0 20px;
}
.header-actions {
  gap:6px;
}
#updated {
  font-size:10px;
}
.sidebar {
  padding:7px 12px;
}
.nav-item .nav-count {
  display:none;
}
.nav-item {
  padding:9px 11px;
}
main {
  padding:25px 22px 40px;
}
.page-heading {
  margin-bottom:20px;
}
.page-heading h1 {
  font-size:28px;
}
.page-heading p {
  font-size:11px;
}
.heading-glyph {
  width:46px;
  height:46px;
  border-radius:14px;
}
.workspace-controls {
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:17px;
}
.search-box {
  flex-basis:100%;
}
.level-control {
  width:100%;
  justify-content:space-between;
}
.segmented {
  flex:1;
  max-width:270px;
}
.segmented button {
  flex:1;
}
.custom-level {
  margin-left:10px;
}
.family-navigation {
  margin-bottom:16px;
}
.family-chip {
  font-size:10px;
  gap:7px;
  min-height:33px;
  padding:8px 10px;
}
#families {
  gap:6px;
}
.list-toolbar {
  gap:8px;
}
.view-options {
  gap:5px;
}
.merge-toggle {
  font-size:10px;
  gap:5px;
}
.quiet-button {
  font-size:10px;
  padding:6px;
}
.sort-options .icon-button {
  width:28px;
  height:32px;
}
#sort-select {
  font-size:10px;
  max-width:124px;
  padding-right:8px;
}
.family-heading h2 {
  font-size:12px;
}
.family-count {
  font-size:9px!important;
}
.gear-table th.name-heading {
  width:45%;
}
.gear-table .sort-button {
  padding-right:13px;
  font-size:9px;
}
.gear-table .name-heading .sort-button {
  padding-left:16px;
}
.group-row .identity-cell {
  padding-left:15px;
}
.group-row td {
  padding-right:13px;
  font-size:14px;
}
.gear-identity {
  gap:9px;
}
.group-toggle,.gear-name {
  font-size:11px;
}
.gear-meta {
  font-size:9px;
  gap:5px;
}
.tier-badge {
  width:23px;
  height:23px;
  border-radius:7px;
  font-size:10px;
}
.member-panel {
  padding:10px 14px 12px 16px;
}
.member-list {
  gap:2px 14px;
}
.reference-panel {
  padding:17px;
  margin-bottom:18px;
}
.reference-panel h2 {
  font-size:15px;
}
.reference-body {
  gap:17px;
}
.position-block {
  padding-right:16px;
  min-width:75px;
}
.position-number {
  font-size:24px!important;
}
.rank-list {
  gap:14px;
}
.rank-metric .stat-value {
  font-size:16px;
}
.reference-bottom {
  align-items:flex-start;
  gap:8px;
}
.reference-note {
  max-width:140px;
  font-size:9px;
}
.reference-cta {
  gap:9px!important;
}
.reference-cta .text-button {
  font-size:10px;
}
.superior-button {
  font-size:10px;
  padding:8px 9px;
}
.catalog-footer {
  gap:11px;
  font-size:9px;
}
}
@media(max-width:520px){.app-header {
  height:53px;
  padding:0 16px;
}
.brand {
  font-size:15px;
  gap:7px;
}
.brand-mark {
  width:28px;
  height:28px;
  border-radius:8px;
}
.brand-mark svg {
  width:18px;
  height:18px;
}
.brand-tail {
  font-size:13px;
}
.star-label {
  font-size:9px;
}
#updated {
  display:none;
}
.sidebar {
  top:53px;
  padding:6px 10px;
}
.nav-item {
  padding:8px 10px;
  gap:6px;
  font-size:10px;
}
.nav-item svg {
  width:15px;
  height:15px;
}
main {
  padding:23px 16px 35px;
}
.page-heading h1 {
  font-size:27px;
}
.page-heading {
  margin-bottom:19px;
}
.workspace-controls {
  gap:10px;
}
.search-box {
  height:42px;
}
.search-box input {
  font-size:12px;
}
.family-navigation {
  margin-bottom:15px;
}
.family-chip {
  font-size:10px;
  padding:7px 9px;
  border-radius:8px;
  min-height:32px;
}
.family-chip b {
  font-size:9px;
}
.view-options {
  gap:1px;
}
.merge-toggle {
  font-size:9px;
  gap:5px;
}
.merge-toggle input {
  width:13px;
  height:13px;
}
.quiet-button {
  gap:3px;
  font-size:9px;
  padding:5px;
}
.quiet-button svg {
  width:13px;
  height:13px;
}
#owned-count {
  font-size:9px;
}
#sort-select {
  font-size:9px;
  max-width:99px;
}
.sort-options .icon-button {
  width:26px;
}
.sort-options svg {
  width:17px;
  height:17px;
}
.list-toolbar {
  gap:3px;
  margin-top:12px;
  margin-bottom:10px;
}
.gear-table {
  table-layout:auto;
  display:block;
}
.gear-table thead {
  display:none;
}
.gear-table tbody {
  display:block;
}
.group-row {
  display:flex;
  flex-wrap:wrap;
  position:relative;
  padding:13px 16px 14px 18px;
  border-bottom:1px solid var(--line);
  gap:11px 0;
}
.group-row:last-child {
  border-bottom:0;
}
.group-row td {
  border:0;
  padding:0;
  text-align:left;
  display:block;
}
.group-row .identity-cell {
  width:100%;
  padding:0;
  box-shadow:none!important;
}
.group-row.reference-row {
  box-shadow:inset 3px 0 var(--blue);
}
.group-row.owned-row {
  box-shadow:inset 2px 0 #8abcfc;
}
.group-row.owned-row.reference-row {
  box-shadow:inset 3px 0 var(--blue);
}
.gear-identity {
  gap:10px;
  min-height:0;
  align-items:flex-start;
}
.gear-text {
  display:block;
  flex:1;
}
.group-toggle,.gear-name {
  font-size:12px;
  flex:1;
  min-height:23px;
  padding:0;
  line-height:1.5;
}
.group-toggle svg {
  width:12px;
}
.gear-meta {
  margin:0;
  flex-shrink:0;
  font-size:9px;
}
.same-count {
  white-space:nowrap;
}
.tier-badge {
  width:23px;
  height:23px;
  flex-shrink:0;
}
.group-row .stat-cell {
  flex:1 0 22%;
  min-width:0;
  padding-left:12px;
  white-space:normal;
}
.group-row .stat-cell:nth-of-type(2) {
  padding-left:33px;
}
.mobile-stat-label {
  display:block;
  font-size:9px;
  color:#73737d;
  margin-bottom:3px;
}
.group-row .stat-value {
  font-size:17px;
  font-weight:550;
}
.group-row.many-stats .stat-cell {
  flex:0 0 33.33%;
}
.group-row.many-stats .stat-cell:nth-of-type(3n+2) {
  padding-left:33px;
}
.group-row.many-stats .stat-cell:not(:nth-of-type(3n+2)) {
  padding-left:12px;
}
.group-row .number-unit {
  font-size:10px;
}
.group-row .estimate-mark {
  font-size:9px;
}
.member-row {
  display:block;
}
.member-row td {
  display:block;
  border:0;
}
.member-panel {
  padding:13px 13px 13px 18px;
  border-bottom:1px solid var(--line);
}
.member-list {
  grid-template-columns:1fr;
  gap:0;
}
.member-list .gear-name {
  font-size:11px;
  min-height:40px;
}
.owned-button {
  width:34px;
  height:40px;
}
.gear-title .owned-button {
  width:40px;
  height:40px;
}
.member-caption {
  font-size:9px;
  margin-bottom:5px;
}
.family-heading {
  padding:0 2px;
}
.family-heading h2 {
  font-size:11px;
  gap:6px;
}
.family-section {
  margin-bottom:19px;
  scroll-margin-top:120px;
}
.family-heading .family-count {
  font-size:9px;
}
.table-surface {
  border-radius:15px;
}
.reference-body {
  align-items:flex-start;
  gap:16px;
}
.position-block {
  padding-right:14px;
  min-width:69px;
  padding-top:3px;
}
.rank-list {
  gap:11px 14px;
  flex:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.rank-metric {
  min-width:0;
}
.rank-metric .stat-value {
  font-size:16px;
}
.rank-label,.rank-position,.position-label {
  font-size:9px;
}
.position-number small {
  font-size:10px;
}
.reference-top {
  gap:7px;
}
.reference-panel h2 {
  font-size:14px;
}
.reference-actions .icon-button {
  width:29px;
}
.reference-bottom {
  flex-wrap:wrap;
  gap:7px;
  padding-top:10px;
  margin-top:13px;
}
.reference-note {
  max-width:none;
  flex-basis:100%;
}
.reference-cta {
  width:100%;
  justify-content:space-between;
}
.reference-panel {
  padding:15px;
}
.eyebrow {
  font-size:9px;
}
.settings-popover {
  width:250px;
}
.catalog-footer {
  padding:0 1px;
  font-size:9px;
  gap:10px;
}
.catalog-footer .text-button {
  font-size:9px;
}
.catalog-footer #legend {
  margin-left:auto;
}
.catalog-footer #ranking-help {
  margin-left:0;
  flex-basis:100%;
  text-align:left;
  padding:0;
  min-height:22px;
}
.empty-state {
  padding:35px 16px;
}
dialog {
  padding:22px 19px;
  border-radius:19px;
  max-height:88dvh;
}
.detail-name h2 {
  font-size:16px;
}
.detail-name {
  gap:11px;
}
.anchor-table th,.anchor-table td {
  padding:12px 10px;
}
.anchor-table td .stat-value {
  font-size:13px;
}
.detail-actions {
  gap:8px;
}
.dialog-heading h2 {
  font-size:18px;
}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after {
  scroll-behavior:auto!important;
  transition:none!important;
}
}.gear-table {
  min-width:var(--table-min,0);
}
.more-families {
  position:relative;
}
.more-families summary {
  list-style:none;
}
.more-families summary::-webkit-details-marker {
  display:none;
}
.more-families summary > svg {
  width:11px;
  height:11px;
  transform:rotate(90deg);
}
.more-family-menu {
  position:absolute;
  top:43px;
  left:0;
  width:310px;
  max-height:320px;
  overflow-y:auto;
  padding:10px;
  background:#fff;
  z-index:8;
  border:1px solid var(--line);
  border-radius:13px;
  box-shadow:0 8px 32px #00000015;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.more-family-menu .family-chip {
  border:0;
  text-align:left;
  justify-content:space-between;
}
.more-family-menu .family-chip:hover {
  background:#f1f1f6;
}
.more-family-menu .family-chip b {
  flex-shrink:0;
}
@media(max-width:520px){.gear-table {
  min-width:0;
}
.more-family-menu {
  width:280px;
  position:fixed;
  left:16px;
  right:16px;
  top:auto;
  margin-top:8px;
  max-height:45dvh;
}
}
/* Keep the comparison legible in the narrow desktop panel. */
@media(min-width:521px) and (max-width:700px){.workspace-controls {
  flex-wrap:nowrap;
}
.search-box {
  flex-basis:auto;
}
.level-control {
  width:auto;
  justify-content:flex-start;
}
.segmented {
  flex:none;
  max-width:none;
}
.custom-level {
  margin-left:0;
}
.group-toggle,.gear-name {
  font-size:12px;
}
.group-row td {
  font-size:16px;
}
.gear-meta {
  font-size:10px;
}
.family-chip {
  font-size:11px;
}
.family-heading h2 {
  font-size:13px;
}
}.loading-surface {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}
.loading-surface div {
  height:40px;
  border-radius:8px;
  background:#f0f0f4;
  margin:10px 0;
  animation:loading-pulse 1.4s ease-in-out infinite alternate;
}
.loading-surface div:nth-child(2) {
  width:85%;
}
.loading-surface div:nth-child(3) {
  width:70%;
}
@keyframes loading-pulse{to {
  opacity:.45;
}
}@media(prefers-reduced-motion:reduce){.loading-surface div {
  animation:none;
}
}

/* Main controls remain readable on phones; only secondary metadata is smaller. */
@media(max-width:520px) {
  .list-toolbar { flex-wrap:wrap; gap:5px; }
  .view-options { gap:3px; }
  .merge-toggle { font-size:11px; }
  .quiet-button { font-size:11px; }
  #owned-count { font-size:10px; }
  #sort-select { font-size:11px; max-width:104px; }
  .sort-options { margin-left:auto; }
  .family-chip { font-size:11px; }
  .group-toggle,.gear-name { font-size:13px; }
}
@media(min-width:701px) {
  .group-toggle,.gear-name { font-size:13px; }
  .gear-table .sort-button { font-size:11px; }
}


/* Keep weapon bonuses alongside the primary numbers without wide empty columns. */
.compact-table th.name-heading { width:38%; }
.compact-table .bonus-heading { width:28%; text-align:left; padding:10px 12px; }
.compact-table .bonus-cell { text-align:left; white-space:normal; padding:12px; }
.bonus-list { display:flex; flex-wrap:wrap; gap:5px; }
.bonus-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; background:#f1f3f7; border:0; border-radius:6px; font-size:10px; color:#5a5d66; line-height:1.4; }
.bonus-chip:hover { background:#e5ecf7; color:var(--blue); }
.bonus-chip .stat-value { font-size:11px; font-weight:550; }
.bonus-chip .number-unit { font-size:9px; }
.bonus-chip.negative-bonus { background:#fff1ee; }
.bonus-chip .estimate-mark { font-size:8px; }
@media(max-width:520px) {
  .compact-table .group-row .bonus-cell { flex:0 0 100%; padding:0 0 0 33px; }
  .group-row .bonus-chip .stat-value { font-size:11px; }
  .group-row .bonus-chip .number-unit { font-size:9px; }
}
.layout-control { margin-top:18px; width:fit-content; }
.layout-control button { min-width:96px; font-size:11px; }
.row-family { display:block; width:fit-content; color:var(--blue); font-size:10px; line-height:1.5; padding:0; margin:3px 0; text-align:left; }
.row-family:hover { text-decoration:underline; }
@media(max-width:520px) {
  .layout-control { margin-top:14px; }
  .layout-control button { min-height:32px; }
}
