@charset "UTF-8";

:root {
  --ink: #17233b;
  --ink-2: #263550;
  --muted: #6f7787;
  --muted-2: #98a0ae;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --line: #e2e4e8;
  --accent: #ed7146;
  --accent-dark: #cb532e;
  --accent-soft: #fff0e9;
  --blue: #527cd9;
  --green: #4c9a82;
  --gold: #c6923c;
  --shadow-sm: 0 4px 16px rgba(23, 35, 59, 0.05);
  --shadow-md: 0 18px 50px rgba(23, 35, 59, 0.11);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(237, 113, 70, 0.36); outline-offset: 3px; }
::selection { color: var(--ink); background: #ffd5c4; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 200; padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 228, 232, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--accent); border-radius: 50%; transform: rotate(-8deg); }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 1.5; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 18px; font-weight: 900; letter-spacing: 0.06em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: clamp(34px, 6vw, 90px); }
.nav-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 25px 16px 23px; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; content: ""; background: var(--accent); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform 0.2s ease; }
.nav-item:hover, .nav-item.active { color: var(--ink); }
.nav-item.active::after { transform: scaleX(1); }
.data-badge { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; background: #d39c45; border-radius: 50%; box-shadow: 0 0 0 3px rgba(211, 156, 69, 0.14); }
.data-badge.ready .status-dot { background: #48a17e; box-shadow: 0 0 0 3px rgba(72, 161, 126, 0.14); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon-button:hover { background: var(--surface-2); }
.mobile-menu { display: none; margin-left: auto; }

.loading-screen, .error-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100dvh - 76px); padding: 40px; text-align: center; }
.loading-screen strong { margin-top: 20px; font-size: 20px; }
.loading-screen span { margin-top: 4px; color: var(--muted); }
.loader-ball { display: grid; place-items: center; width: 64px; height: 64px; color: var(--accent); animation: ball-bounce 1.1s ease-in-out infinite; }
.loader-ball svg { width: 52px; height: 52px; }
@keyframes ball-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(30deg); } }
.error-screen > svg { width: 48px; height: 48px; color: var(--accent); }
.error-screen h1 { margin: 18px 0 4px; }
.error-screen p { margin: 0 0 22px; color: var(--muted); }

.app-view { min-height: 70dvh; animation: view-in 0.35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 520px; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0 0 26px 26px; }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 58px 0 48px clamp(34px, 5vw, 70px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.17em; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 27px; height: 20px; padding: 0 5px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; font-size: 9px; letter-spacing: 0.05em; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(38px, 4.3vw, 60px); font-weight: 900; line-height: 1.18; letter-spacing: -0.055em; }
.hero h1 span { position: relative; z-index: 1; color: var(--accent); }
.hero h1 span::after { position: absolute; right: 0; bottom: -2px; left: 0; z-index: -1; height: 10px; content: ""; background: #ffe1d4; transform: rotate(-1deg); }
.hero-copy > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(23, 35, 59, 0.15); }
.button.primary:hover { background: var(--ink-2); box-shadow: 0 10px 24px rgba(23, 35, 59, 0.22); }
.button.ghost { background: var(--surface); border-color: var(--line); }
.button.ghost:hover, .button.subtle:hover { background: var(--surface-2); }
.button.subtle { color: var(--ink); background: var(--surface); border-color: var(--line); }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 48px); margin: 38px 0 0; }
.hero-stats div { position: relative; }
.hero-stats div + div::before { position: absolute; top: 5px; bottom: 4px; left: clamp(-24px, -2vw, -12px); width: 1px; content: ""; background: var(--line); }
.hero-stats dt { font-size: 25px; font-weight: 900; line-height: 1.1; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; min-height: 520px; overflow: hidden; background: #edf0f4; }
.hero-visual::before { position: absolute; inset: 0; content: ""; opacity: 0.35; background-image: linear-gradient(rgba(23,35,59,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,59,0.08) 1px, transparent 1px); background-size: 36px 36px; }
.hero-visual::after { position: absolute; top: -90px; right: -70px; width: 340px; height: 340px; content: ""; border: 65px solid rgba(237, 113, 70, 0.1); border-radius: 50%; }
.hero-visual > img { position: absolute; right: 4%; bottom: -3%; z-index: 2; width: min(70%, 380px); height: 96%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 22px 20px rgba(23,35,59,0.16)); }
.hero-number { position: absolute; right: 3%; bottom: -14%; color: rgba(255,255,255,0.78); font-family: Impact, sans-serif; font-size: 330px; line-height: 1; }
.court-ring { position: absolute; z-index: 1; border: 1px solid rgba(23,35,59,0.12); border-radius: 50%; }
.ring-one { top: 60px; left: 45px; width: 330px; height: 330px; }
.ring-two { top: 110px; left: 95px; width: 230px; height: 230px; }
.floating-note { position: absolute; bottom: 52px; left: 22px; z-index: 4; width: 194px; padding: 17px; background: rgba(255,255,255,0.93); border: 1px solid rgba(255,255,255,0.8); border-radius: 14px; box-shadow: var(--shadow-md); backdrop-filter: blur(12px); transform: rotate(-3deg); }
.floating-note-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.stars { color: var(--gold); letter-spacing: 0.06em; }
.floating-note > strong { display: block; margin-top: 12px; font-size: 25px; }
.floating-note > p { margin: 0; color: var(--muted); font-size: 10px; }
.floating-effect { margin-top: 12px; padding-top: 10px; color: var(--blue); border-top: 1px solid var(--line); font-size: 13px; font-weight: 900; }
.hero-stamp { position: absolute; top: 28px; right: 26px; z-index: 4; display: grid; place-items: center; width: 64px; height: 64px; color: var(--accent); border: 2px solid var(--accent); border-radius: 50%; font-size: 22px; font-weight: 900; line-height: 0.7; text-align: center; transform: rotate(10deg); }
.hero-stamp small { font-size: 7px; letter-spacing: 0.12em; }

.catalog-section { padding-top: 70px; padding-bottom: 90px; }
.catalog-section.compact { padding-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 9px 0 2px; font-size: 31px; line-height: 1.25; letter-spacing: -0.04em; }
.section-heading p, .page-head p { margin: 0; color: var(--muted); }
.quality-panel { margin-bottom: 22px; padding: 24px; background: var(--ink); border-radius: var(--radius); color: #fff; animation: view-in 0.25s ease; }
.quality-intro h3 { margin: 0; font-size: 18px; }
.quality-intro p { margin: 4px 0 18px; color: #aeb7c8; font-size: 12px; }
.quality-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.quality-card { position: relative; overflow: hidden; padding: 15px 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; }
.quality-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--quality-color); }
.quality-card strong { display: block; font-size: 15px; }
.quality-card span { display: block; margin-top: 6px; color: #fff; font-size: 20px; font-weight: 900; }
.quality-card small { color: #aeb7c8; font-size: 10px; }
.filter-panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 13px; background: var(--paper); border: 1px solid transparent; border-radius: 10px; transition: border 0.2s, background 0.2s; }
.search-box:focus-within { background: #fff; border-color: #b9c1ce; }
.search-box svg { flex: 0 0 auto; width: 18px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; padding: 10px 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: var(--muted-2); }
.key-hint { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; transition: all 0.16s ease; }
.filter-chip:hover { color: var(--ink); border-color: #b9c1ce; }
.filter-chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter-chip .type-dot { width: 6px; height: 6px; background: var(--dot-color, var(--accent)); border-radius: 50%; }
.filter-chip.active .type-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.filter-chip small { opacity: 0.65; font-size: 9px; }
.filter-selects { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.filter-selects > label:not(.check-label) { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
select { min-height: 35px; padding: 6px 30px 6px 10px; color: var(--ink); background-color: #fff; border: 1px solid var(--line); border-radius: 8px; outline: 0; cursor: pointer; }
select:focus { border-color: var(--accent); }
.check-label { display: flex; align-items: center; gap: 7px; min-height: 35px; margin-left: auto; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--accent); }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.result-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.result-toolbar p strong { color: var(--ink); font-size: 14px; }
.star-switch { display: flex; align-items: center; gap: 4px; }
.star-switch > span { margin-right: 7px; color: var(--muted); font-size: 11px; }
.star-switch button { padding: 4px 9px; color: var(--muted); border-radius: 6px; font-size: 11px; font-weight: 800; }
.star-switch button.active { color: var(--accent-dark); background: var(--accent-soft); }
.toolbar-tip { color: var(--muted-2); font-size: 11px; }

.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.note-card { position: relative; display: flex; flex-direction: column; min-height: 202px; overflow: hidden; padding: 18px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease; }
.note-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; content: ""; background: var(--type-color); }
.note-card:hover { z-index: 2; border-color: #ccd1d9; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.note-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: var(--type-color); background: color-mix(in srgb, var(--type-color) 10%, white); border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: 0.05em; }
.entry-id { color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 10px; }
.note-card h3 { margin: 13px 0 3px; overflow: hidden; font-size: 18px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.note-card-desc { display: -webkit-box; min-height: 38px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note-effect { margin-top: auto; padding: 12px 0 0; }
.note-effect-label { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.note-effect-value { display: block; margin-top: 4px; overflow: hidden; color: var(--type-color); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.note-card-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 25px; height: 25px; color: var(--muted-2); background: var(--paper); border-radius: 50%; opacity: 0; transform: translateX(-4px); transition: 0.18s; }
.note-card-arrow svg { width: 13px; }
.note-card:hover .note-card-arrow { opacity: 1; transform: translateX(0); }
.load-more { display: flex; min-width: 210px; margin: 26px auto 0; background: var(--surface); border-color: var(--line); }
.load-more svg { transform: rotate(90deg); }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state > svg { width: 38px; height: 38px; color: var(--muted-2); }
.empty-state h3 { margin: 12px 0 2px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

.page-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 220px; overflow: hidden; padding: 38px clamp(28px, 4vw, 52px); color: #fff; background: var(--ink); border-radius: 0 0 24px 24px; }
.page-head::before { position: absolute; right: 12%; bottom: -170px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(255,255,255,0.09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,0.025), 0 0 0 90px rgba(255,255,255,0.02); }
.page-head .eyebrow { color: #9da9bd; }
.page-head .eyebrow span { color: #ffc0a8; background: rgba(237,113,70,0.16); }
.page-head h1 { margin: 10px 0 5px; font-size: 42px; line-height: 1.2; letter-spacing: -0.04em; }
.page-head p { position: relative; z-index: 1; color: #aeb8c9; }
.page-head-art { position: relative; z-index: 1; display: grid; place-items: center; width: 105px; height: 105px; margin-right: 30px; color: var(--accent); border: 1px solid rgba(255,255,255,0.13); border-radius: 50%; }
.page-head-art svg { width: 48px; height: 48px; stroke-width: 1.3; }
.page-stats { position: relative; z-index: 1; display: flex; gap: 36px; margin: 0 25px 0 0; }
.page-stats div { text-align: center; }
.page-stats dt { font-size: 30px; font-weight: 900; }
.page-stats dd { margin: 0; color: #aeb8c9; font-size: 10px; }
.roster-lineup { position: relative; z-index: 1; display: flex; align-items: flex-end; align-self: flex-end; height: 180px; margin-bottom: -38px; }
.roster-lineup img { width: 92px; height: 165px; margin-left: -24px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25)); }
.roster-lineup img:nth-child(2) { height: 180px; }
.roster-lineup img:nth-child(3) { height: 155px; }

.compat-layout { display: grid; grid-template-columns: 1.45fr 0.75fr; gap: 18px; padding-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.calculator-panel { padding: 25px; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-title h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.4; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.step-label { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px; color: var(--muted); font-size: 11px; }
.text-button:hover { color: var(--accent); }
.text-button svg { width: 14px; height: 14px; }
.core-select-wrap { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 13px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.core-select-wrap img { width: 64px; height: 64px; object-fit: contain; background: #e5e9ef; border-radius: 10px; }
.core-select-wrap label { flex: 1; }
.core-select-wrap label > span, .owner-number { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.core-select-wrap select { width: 100%; font-size: 15px; font-weight: 800; }
.position-tag { padding: 4px 8px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; font-size: 10px; font-weight: 800; }
.owner-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.owner-card { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.owner-card-head { display: flex; align-items: center; gap: 8px; }
.owner-card-head img { width: 38px; height: 38px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.owner-card-head .owner-number { margin: 0; }
.owner-card > select { width: 100%; margin-top: 9px; }
.harmony-select { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.harmony-select select { min-height: 28px; padding: 3px 5px; font-size: 10px; }
.form-note { display: flex; align-items: flex-start; gap: 6px; margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.form-note svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }
.calculator-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.calculator-actions > span { color: var(--muted-2); font-size: 10px; }
.compat-result-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 26px; color: #fff; background: var(--ink); text-align: center; }
.compat-result-panel::after { position: absolute; right: -65px; bottom: -65px; width: 190px; height: 190px; content: ""; border: 30px solid rgba(255,255,255,0.035); border-radius: 50%; }
.rank-ring { --rank-progress: 0deg; position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 4px auto 17px; background: conic-gradient(var(--accent) var(--rank-progress), rgba(255,255,255,0.09) 0); border-radius: 50%; }
.rank-ring::before { position: absolute; inset: 8px; content: ""; background: var(--ink); border-radius: 50%; }
.rank-ring-content { position: relative; z-index: 1; display: flex; flex-direction: column; }
.rank-ring-content strong { font-size: 48px; line-height: 1; }
.rank-ring-content span { margin-top: 7px; color: #aeb8c9; font-size: 10px; }
.compat-result-panel > h2 { margin: 0; font-size: 25px; }
.compat-result-panel > p { margin: 4px 0 18px; color: #aeb8c9; font-size: 11px; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.result-metrics div + div { border-left: 1px solid rgba(255,255,255,0.1); }
.result-metrics strong { display: block; font-size: 20px; }
.result-metrics span { color: #aeb8c9; font-size: 9px; }
.score-breakdown { width: 100%; margin-top: 14px; }
.score-line { display: flex; justify-content: space-between; margin-top: 5px; color: #aeb8c9; font-size: 10px; }
.score-line strong { color: #fff; }
.next-rank { width: 100%; margin-top: 14px; color: #ffc0a8; font-size: 10px; }
.compat-bottom { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 18px; padding-top: 18px; padding-bottom: 90px; }
.relationship-panel, .level-panel { padding: 24px; }
.mini-search { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--paper); border-radius: 8px; }
.mini-search svg { width: 14px; height: 14px; color: var(--muted); }
.mini-search input { width: 115px; background: transparent; border: 0; outline: 0; font-size: 11px; }
.relationship-list { max-height: 380px; margin-top: 16px; overflow: auto; scrollbar-width: thin; }
.relationship-row { display: grid; grid-template-columns: 36px minmax(70px, 0.8fr) 1.2fr 35px 28px; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.relationship-row img { width: 34px; height: 34px; object-fit: contain; background: var(--surface-2); border-radius: 7px; }
.relationship-name { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.relationship-name small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 500; }
.score-bar { height: 5px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.score-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.relationship-score { font-size: 13px; font-weight: 900; text-align: right; }
.relationship-add { display: grid; place-items: center; width: 25px; height: 25px; color: var(--muted); background: var(--paper); border-radius: 50%; font-size: 18px; line-height: 1; }
.relationship-add:hover { color: #fff; background: var(--accent); }
.level-table { margin-top: 15px; }
.level-row { display: grid; grid-template-columns: 38px 1fr 65px 50px; align-items: center; gap: 8px; padding: 8px 7px; border-bottom: 1px solid var(--line); font-size: 11px; }
.level-row.active { color: var(--accent-dark); background: var(--accent-soft); border-radius: 7px; }
.level-row .rank-mini { display: grid; place-items: center; width: 27px; height: 27px; background: var(--surface-2); border-radius: 50%; font-weight: 900; }
.level-row strong { font-size: 12px; }
.level-row span, .level-row small { color: var(--muted); }
.formula-box { margin-top: 18px; padding: 15px; background: var(--paper); border-radius: 10px; }
.formula-box span { display: block; color: var(--muted); font-size: 9px; }
.formula-box strong { display: block; margin: 4px 0; font-size: 11px; }
.formula-box small { color: var(--accent-dark); font-size: 9px; }

.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.equipment-card { position: relative; display: flex; flex-direction: column; min-height: 310px; overflow: hidden; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.equipment-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.equipment-image-wrap { position: relative; display: grid; place-items: center; height: 174px; overflow: hidden; background: linear-gradient(145deg, #eef1f5, #e4e8ee); }
.equipment-image-wrap::before { position: absolute; width: 145px; height: 145px; content: ""; border: 1px solid rgba(23,35,59,0.08); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,0.25); }
.equipment-image-wrap img { position: relative; z-index: 1; width: 145px; height: 145px; object-fit: contain; transition: transform 0.25s ease; }
.equipment-card:hover img { transform: scale(1.06); }
.rarity-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 8px; color: #fff; background: var(--ink); border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: 0.08em; }
.rarity-badge.ssr { color: #553409; background: #f2c66d; }
.rarity-badge.sr { color: #42345d; background: #d4c3ec; }
.rarity-badge.r { color: #284558; background: #bdd9e6; }
.release-badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 7px; color: var(--muted); background: rgba(255,255,255,0.88); border-radius: 5px; font-size: 8px; }
.equipment-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.equipment-training { color: var(--accent-dark); font-size: 9px; font-weight: 900; }
.equipment-card h3 { margin: 4px 0 9px; font-size: 17px; line-height: 1.35; }
.equipment-effect-list { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.equipment-effect-item { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.equipment-effect-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-effect-item strong { flex: 0 0 auto; color: var(--ink); font-size: 10px; }
.card-detail-link { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.card-detail-link svg { width: 13px; height: 13px; }

.character-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.character-card { position: relative; min-height: 292px; overflow: hidden; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.character-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.character-image { position: relative; height: 190px; overflow: hidden; background: linear-gradient(155deg, #e9edf3, #f6f7f8); }
.character-image::after { position: absolute; right: -20px; bottom: -60px; width: 150px; height: 150px; content: ""; border: 25px solid rgba(255,255,255,0.55); border-radius: 50%; }
.character-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 8px rgba(23,35,59,0.1)); transition: transform 0.25s; }
.character-card:hover .character-image img { transform: scale(1.04); }
.character-quality { position: absolute; top: 11px; left: 11px; z-index: 2; }
.character-jersey { position: absolute; right: 10px; bottom: -8px; z-index: 0; color: rgba(23,35,59,0.08); font-family: Impact, sans-serif; font-size: 72px; line-height: 1; }
.character-card-body { padding: 13px 14px 14px; }
.character-card-body h3 { margin: 0; font-size: 16px; }
.character-card-body > p { margin: 1px 0 10px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.character-tags { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.character-tags span { padding: 3px 7px; color: var(--muted); background: var(--paper); border-radius: 5px; font-size: 9px; }
.character-tags strong { color: var(--accent-dark); font-size: 10px; }

.detail-dialog { width: min(920px, calc(100% - 32px)); max-height: min(880px, calc(100dvh - 40px)); padding: 0; overflow: hidden; background: var(--surface); border: 0; border-radius: 20px; box-shadow: 0 30px 100px rgba(10,20,35,0.3); }
.detail-dialog::backdrop { background: rgba(13,23,40,0.65); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; max-height: min(880px, calc(100dvh - 40px)); overflow: auto; }
.dialog-close { position: sticky; top: 14px; z-index: 20; float: right; margin: 14px 14px -54px 0; color: var(--ink); background: rgba(255,255,255,0.9); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.dialog-close:hover { background: #fff; }
.dialog-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; overflow: hidden; padding: 32px; color: #fff; background: var(--ink); }
.dialog-hero::after { position: absolute; top: -100px; right: -50px; width: 300px; height: 300px; content: ""; border: 45px solid rgba(255,255,255,0.035); border-radius: 50%; }
.dialog-hero .type-badge { align-self: flex-start; color: #fff; background: var(--type-color); }
.dialog-hero h2 { position: relative; z-index: 1; margin: 14px 0 3px; font-size: 32px; line-height: 1.25; }
.dialog-hero p { position: relative; z-index: 1; max-width: 660px; margin: 0; color: #b8c1d1; }
.dialog-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; color: #b8c1d1; font-size: 10px; }
.dialog-body { padding: 28px 32px 34px; }
.dialog-section + .dialog-section { margin-top: 26px; }
.dialog-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.dialog-section h3::before { width: 4px; height: 16px; content: ""; background: var(--accent); border-radius: 2px; }
.star-effect-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.star-effect-cell { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.star-effect-cell .stars { font-size: 12px; }
.star-effect-cell strong { display: block; margin-top: 8px; color: var(--type-color); font-size: 13px; line-height: 1.65; }
.condition-list { display: flex; flex-direction: column; gap: 7px; }
.condition-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; color: var(--muted); background: var(--paper); border-radius: 8px; font-family: ui-monospace, "Microsoft YaHei", monospace; font-size: 10px; word-break: break-all; }
.condition-item svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }
.state-description { margin-top: 10px; padding: 12px; color: var(--muted); background: #f3f6fc; border-left: 3px solid var(--blue); border-radius: 6px; font-size: 11px; }
.score-config { color: var(--muted); font-size: 11px; }

.equipment-dialog-hero { display: grid; grid-template-columns: 230px 1fr; min-height: 260px; padding: 0; background: #edf0f4; color: var(--ink); }
.equipment-dialog-image { display: grid; place-items: center; padding: 28px; }
.equipment-dialog-image img { width: 205px; height: 205px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(23,35,59,0.14)); }
.equipment-dialog-copy { position: relative; z-index: 2; align-self: center; padding: 30px 30px 30px 5px; }
.equipment-dialog-copy h2 { margin: 10px 0 4px; font-size: 29px; }
.equipment-dialog-copy > p { margin: 0; color: var(--muted); font-size: 11px; }
.equipment-dialog-copy .dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.dialog-tags span { padding: 4px 8px; color: var(--muted); background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 5px; font-size: 9px; }
.equipment-controls { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; padding: 18px; background: var(--paper); border-radius: 12px; }
.control-group > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.segmented-control { display: flex; gap: 4px; }
.segmented-control button { flex: 1; min-width: 30px; padding: 6px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 800; }
.segmented-control button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.level-control { display: flex; align-items: center; gap: 10px; }
.level-control input { width: 100%; accent-color: var(--accent); }
.level-control output { min-width: 48px; font-size: 13px; font-weight: 900; }
.level-effect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.level-effect-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--paper); border-radius: 8px; }
.level-effect-card span { color: var(--muted); font-size: 10px; }
.level-effect-card strong { font-size: 12px; text-align: right; }
.breakthrough-list, .awake-list, .growth-list { display: flex; flex-direction: column; gap: 8px; }
.breakthrough-item, .awake-item { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid transparent; border-radius: 9px; }
.breakthrough-item.unlocked, .awake-item.unlocked { background: #f4f8f5; border-color: #dceae2; }
.breakthrough-item.locked, .awake-item.locked { opacity: 0.5; }
.breakthrough-item > span, .awake-item > span { color: var(--accent-dark); font-size: 10px; font-weight: 900; }
.breakthrough-item strong, .awake-item strong { display: block; font-size: 11px; }
.breakthrough-item p, .awake-item p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.growth-item { display: grid; grid-template-columns: 1.2fr 0.7fr 0.7fr; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); font-size: 10px; }
.growth-item span { color: var(--muted); }
.growth-item strong:last-child { text-align: right; }

.character-dialog-hero { display: grid; grid-template-columns: 320px 1fr; min-height: 360px; padding: 0; color: var(--ink); background: #edf0f4; }
.character-dialog-image { position: relative; display: grid; place-items: end center; overflow: hidden; }
.character-dialog-image::before { position: absolute; width: 270px; height: 270px; content: ""; background: rgba(255,255,255,0.6); border-radius: 50%; }
.character-dialog-image img { position: relative; z-index: 1; width: 290px; height: 340px; object-fit: contain; object-position: bottom; }
.character-dialog-copy { position: relative; z-index: 1; align-self: center; padding: 35px 35px 35px 5px; }
.character-dialog-copy h2 { margin: 10px 0 0; font-size: 31px; }
.character-en { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.character-title { display: inline-block; margin-top: 12px; padding: 4px 9px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 5px; font-size: 10px; font-weight: 800; }
.character-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.character-info-grid div { padding: 8px 10px; background: rgba(255,255,255,0.65); border-radius: 7px; }
.character-info-grid span { display: block; color: var(--muted); font-size: 8px; }
.character-info-grid strong { font-size: 11px; }
.potential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.potential-item > div { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 10px; }
.potential-item > div span { color: var(--muted); }
.potential-bar { height: 6px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.potential-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.position-suit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.position-suit-item { padding: 10px; text-align: center; background: var(--paper); border-radius: 8px; }
.position-suit-item span { display: block; color: var(--muted); font-size: 9px; }
.position-suit-item strong { font-size: 18px; }
.talent-box { padding: 15px; background: var(--paper); border-radius: 10px; }
.talent-box + .talent-box { margin-top: 8px; }
.talent-box strong { font-size: 12px; }
.talent-box p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.synergy-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.synergy-item strong { font-size: 11px; }
.synergy-item span { margin-left: 8px; color: var(--accent-dark); font-size: 9px; }
.synergy-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

.footer { color: #a7b1c2; background: var(--ink); }
.footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 85px; font-size: 9px; letter-spacing: 0.08em; }
.footer p { margin: 0; letter-spacing: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; padding: 10px 17px; color: #fff; background: var(--ink); border-radius: 9px; box-shadow: var(--shadow-md); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.nav-new { padding: 1px 4px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 3px; font-size: 7px; font-weight: 900; letter-spacing: 0.05em; }
.community-head { background: linear-gradient(120deg, #19333a, #1a2a40 70%); }
.community-head::before { right: 5%; bottom: -190px; width: 420px; height: 420px; border-color: rgba(255,255,255,0.08); }
.community-head-stats { margin-right: 72px; }
.community-section { padding-top: 28px; padding-bottom: 90px; }
.player-pass { position: relative; display: grid; grid-template-columns: 70px minmax(240px, 1fr) minmax(290px, 390px) auto; align-items: center; gap: 18px; padding: 19px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.player-pass.needs-name { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(237,113,70,0.12); animation: pass-shake 0.4s ease; }
@keyframes pass-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.player-avatar { display: grid; place-items: center; width: 64px; height: 64px; color: #8c96a7; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; font-size: 25px; font-weight: 900; }
.player-avatar.has-name { color: #fff; background: linear-gradient(145deg, var(--accent), #d95534); border-color: transparent; }
.player-pass-copy .step-label { font-size: 8px; }
.player-pass-copy h2 { margin: 2px 0 2px; font-size: 19px; line-height: 1.4; }
.player-pass-copy p { max-width: 480px; margin: 0; color: var(--muted); font-size: 10px; }
.player-name-control label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.name-input-row { display: flex; align-items: stretch; gap: 6px; }
.name-input-row input { min-width: 0; flex: 1; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.name-input-row input:focus { background: #fff; border-color: var(--accent); }
.compact-button { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.cloud-state { display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-width: 120px; padding: 7px 10px; color: var(--muted); background: var(--paper); border-radius: 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.cloud-state.syncing .status-dot { background: #d39c45; animation: cloud-pulse 1.1s ease infinite; }
.cloud-state.ready { color: #2d745c; background: #eef8f2; }
.cloud-state.ready .status-dot { background: #48a17e; box-shadow: 0 0 0 3px rgba(72,161,126,0.13); }
.cloud-state.error { color: #a34b42; background: #fff1ee; }
.cloud-state.error .status-dot { background: #c86358; box-shadow: 0 0 0 3px rgba(200,99,88,0.12); }
@keyframes cloud-pulse { 50% { opacity: 0.35; } }
.community-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 44px 2px 20px; }
.community-toolbar h2 { margin: 6px 0 1px; font-size: 31px; letter-spacing: -0.04em; }
.community-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.publish-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.community-filters .text-button { margin-left: auto; min-height: 35px; }
.community-refresh { padding-inline: 7px; }
.cloud-secure-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 9px; }
.cloud-secure-note svg { width: 14px; height: 14px; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.share-card { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 264px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.share-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.share-card-visual { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 264px; background: linear-gradient(155deg, #e9edf3, #dfe4ec); }
.share-card-note .share-card-visual { background: linear-gradient(155deg, #f6e9df, #e7e9ef); }
.share-card-equipment .share-card-visual { background: linear-gradient(155deg, #e7eff0, #dfe5ed); }
.share-card-visual::before { position: absolute; width: 145px; height: 145px; content: ""; border: 1px solid rgba(23,35,59,0.08); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,0.25); }
.share-card-visual img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 264px; padding: 14px 6px 0; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 10px 10px rgba(23,35,59,0.1)); }
.share-card-equipment .share-card-visual img { width: 165px; height: 165px; padding: 0; object-position: center; align-self: center; }
.share-kind-badge { position: absolute; top: 13px; left: 13px; z-index: 3; padding: 4px 8px; color: #fff; background: var(--ink); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: 0.06em; }
.share-card-note .share-kind-badge { background: var(--accent); }
.share-borrow-badge { position: absolute; right: 12px; bottom: 11px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px 7px; color: var(--ink); background: rgba(255,255,255,0.88); border-radius: 5px; font-size: 8px; font-weight: 800; backdrop-filter: blur(6px); }
.share-borrow-badge svg { width: 11px; height: 11px; }
.share-card-body { display: flex; flex-direction: column; min-width: 0; padding: 17px; }
.share-owner-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.share-owner-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 9px; font-size: 12px; font-weight: 900; }
.share-owner-row > div { flex: 1; min-width: 0; line-height: 1.3; }
.share-owner-row strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.share-owner-row div span { color: var(--muted-2); font-size: 8px; }
.player-code-tag { max-width: 95px; overflow: hidden; padding: 3px 6px; color: var(--muted); background: var(--paper); border-radius: 4px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.share-card-body h3 { margin: 13px 0 8px; overflow: hidden; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.share-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.share-factor-tag, .share-equipment-tag { display: inline-flex; align-items: center; gap: 3px; min-width: 0; padding: 3px 7px; color: #74623b; background: #fbf4e2; border-radius: 5px; font-size: 9px; font-weight: 700; }
.share-factor-tag b { color: var(--gold); font-size: 7px; letter-spacing: -0.05em; }
.share-equipment-tag { color: #3d6781; background: #edf5f9; }
.muted-tag { color: var(--muted); background: var(--paper); }
.share-description { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.muted-copy { color: var(--muted-2); }
.share-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; }
.share-card-footer > span { max-width: 60%; overflow: hidden; color: var(--muted-2); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.share-recent-borrow { color: #8b6c3a !important; }
.share-borrow-button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; color: #fff; background: var(--ink); border-radius: 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.share-borrow-button:hover:not(:disabled) { background: var(--accent); }
.share-borrow-button svg { width: 12px; height: 12px; }
.share-borrow-button.disabled, .share-borrow-button:disabled { color: var(--muted-2); background: var(--surface-2); cursor: default; }
.share-card { animation: view-in 0.35s ease both; }
.share-card:nth-child(2n) { animation-delay: 0.04s; }
.share-skeleton { pointer-events: none; }
.skeleton-visual { background: #e9ebef; }
.skeleton-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.skeleton-body span { height: 12px; background: #eef0f3; border-radius: 5px; animation: skeleton-pulse 1.2s ease-in-out infinite; }
.skeleton-body span:nth-child(1) { width: 45%; height: 22px; }
.skeleton-body span:nth-child(2) { width: 80%; }
.skeleton-body span:nth-child(3) { width: 65%; }
@keyframes skeleton-pulse { 50% { opacity: 0.45; } }
.cloud-empty-state { padding: 58px 20px; text-align: center; background: var(--surface); border: 1px dashed #d2d6dc; border-radius: var(--radius); }
.empty-ball { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.empty-ball svg { width: 28px; height: 28px; }
.cloud-empty-state h3 { margin: 14px 0 3px; font-size: 19px; }
.cloud-empty-state p { max-width: 420px; margin: 0 auto 18px; color: var(--muted); font-size: 11px; }
.cloud-error-state .empty-ball { color: #b0584c; background: #fff0ed; }
.community-loading { padding: 40px; text-align: center; color: var(--muted); }
.dialog-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #c4ccda; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.dialog-heading svg { width: 17px; height: 17px; color: #ffc0a8; }
.share-dialog-hero { min-height: 170px; background: linear-gradient(115deg, #23395a, var(--ink)); }
.equipment-share-dialog { background: linear-gradient(115deg, #23454a, #1b2d41); }
.share-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.share-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.share-field.full, .share-form-grid .full { grid-column: 1 / -1; }
.share-field > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.share-field > span b { color: var(--accent); }
.share-field input, .share-field select, .share-field textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; }
.share-field input:focus, .share-field select:focus, .share-field textarea:focus { background: #fff; border-color: var(--accent); }
.share-field textarea { line-height: 1.6; }
.share-factor-fieldset { margin: 18px 0 13px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.share-factor-fieldset legend { padding: 0 7px; color: var(--ink); font-size: 11px; font-weight: 900; }
.share-factor-fieldset legend span { margin-left: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.share-factor-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 64px; align-items: center; gap: 7px; }
.share-factor-row + .share-factor-row { margin-top: 7px; }
.factor-index { display: grid; place-items: center; width: 25px; height: 25px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 50%; font-size: 8px; font-weight: 900; }
.share-factor-row select { min-width: 0; min-height: 35px; padding: 5px 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.share-form-error { margin-top: 13px; padding: 9px 11px; color: #9f4037; background: #fff1ee; border: 1px solid #f2d2cc; border-radius: 7px; font-size: 10px; }
.share-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); }
.share-form-actions .button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.borrow-dialog-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center; min-height: 260px; padding: 28px 32px; background: linear-gradient(145deg, #edf0f4, #f8f9fa); }
.borrow-visual { display: grid; place-items: center; height: 210px; overflow: hidden; background: rgba(255,255,255,0.55); border: 1px solid rgba(23,35,59,0.06); border-radius: 14px; }
.borrow-visual img { width: 100%; height: 100%; object-fit: contain; }
.borrow-copy { min-width: 0; }
.borrow-copy .share-kind-badge { position: static; display: inline-block; }
.borrow-copy h2 { margin: 10px 0 4px; font-size: 28px; line-height: 1.3; }
.borrow-copy > p { margin: 0 0 13px; color: var(--muted); font-size: 10px; }
.borrow-description { padding-top: 11px; color: var(--ink) !important; border-top: 1px solid var(--line); font-size: 11px !important; line-height: 1.7; }
.borrow-contact { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; color: var(--muted); background: rgba(255,255,255,0.7); border-radius: 7px; font-size: 9px; }
.borrow-contact strong { color: var(--ink); font-size: 11px; }
.muted-contact { color: var(--muted-2); }
.borrow-recent-feed { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding: 9px 10px; color: var(--muted); background: rgba(255,255,255,0.7); border-radius: 7px; font-size: 9px; line-height: 1.55; }
.borrow-recent-feed strong { color: var(--ink); font-size: 9px; }
.borrow-recent-feed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.borrow-notice { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 0; padding: 10px; color: var(--muted); background: var(--paper); border-radius: 7px; font-size: 9px; line-height: 1.7; }
.borrow-notice svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }

@media (max-width: 1100px) {
  .main-nav { margin-left: 25px; }
  .nav-item { padding-inline: 11px; }
  .data-badge { display: none; }
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero-copy { padding-left: 38px; }
  .floating-note { left: 10px; width: 170px; }
  .note-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(3, 1fr); }
  .character-grid { grid-template-columns: repeat(4, 1fr); }
  .quality-grid { grid-template-columns: repeat(4, 1fr); }
  .owner-selects { grid-template-columns: 1fr; }
  .owner-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px 12px; }
  .owner-card-head { grid-row: span 2; }
  .owner-card > select { margin: 0; }
  .harmony-select { margin: 0; }
  .roster-lineup img { width: 72px; }
  .player-pass { grid-template-columns: 64px 1fr 320px; gap: 14px; }
  .player-pass .cloud-state { grid-column: 2 / -1; }
  .community-head-stats { margin-right: 24px; }
}

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .topbar { min-height: 66px; padding-inline: 16px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 16px; }
  .mobile-menu { display: grid; }
  .main-nav { position: absolute; top: 66px; right: 12px; left: 12px; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .nav-item { justify-content: flex-start; padding: 11px 13px; border-radius: 7px; }
  .nav-item::after { display: none; }
  .nav-item.active { color: var(--accent-dark); background: var(--accent-soft); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 42px 30px; }
  .hero-visual { min-height: 390px; }
  .hero-visual > img { right: 10%; width: 280px; }
  .hero-number { font-size: 250px; }
  .floating-note { bottom: 35px; left: 30px; }
  .hero-stamp { top: 20px; right: 20px; }
  .section-heading { align-items: flex-start; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head { min-height: 200px; padding: 30px; }
  .page-head h1 { font-size: 36px; }
  .page-head-art { width: 80px; height: 80px; margin-right: 0; }
  .page-stats { gap: 20px; margin-right: 0; }
  .compat-layout, .compat-bottom { grid-template-columns: 1fr; }
  .owner-selects { grid-template-columns: repeat(3, 1fr); }
  .owner-card { display: block; }
  .owner-card > select { margin-top: 9px; }
  .harmony-select { margin-top: 9px; }
  .compat-result-panel { min-height: 400px; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .character-grid { grid-template-columns: repeat(3, 1fr); }
  .roster-lineup { display: none; }
  .equipment-dialog-hero { grid-template-columns: 180px 1fr; }
  .equipment-dialog-image img { width: 160px; height: 160px; }
  .equipment-controls { grid-template-columns: 1fr; }
  .character-dialog-hero { grid-template-columns: 260px 1fr; }
  .character-dialog-image img { width: 250px; }
  .character-dialog-copy { padding-right: 22px; }
  .character-info-grid { grid-template-columns: 1fr; }
  .footer .shell { flex-direction: column; justify-content: center; gap: 3px; padding: 20px 0; text-align: center; }
  .community-head-stats { display: none; }
  .community-section { padding-top: 18px; }
  .player-pass { grid-template-columns: 58px 1fr; gap: 12px; padding: 16px; }
  .player-avatar { width: 54px; height: 54px; border-radius: 14px; }
  .player-pass-copy { align-self: center; }
  .player-name-control { grid-column: 2; }
  .player-pass .cloud-state { grid-column: 2; }
  .community-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; padding-top: 32px; }
  .community-grid { grid-template-columns: 1fr; }
  .share-card { grid-template-columns: 180px minmax(0, 1fr); }
  .borrow-dialog-hero { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 22px; }
  .borrow-visual { height: 180px; }
  .borrow-copy h2 { font-size: 24px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .brand-copy small { display: none; }
  .hero { min-height: auto; border-radius: 0 0 18px 18px; }
  .hero-copy { padding: 34px 22px; }
  .hero h1 { font-size: 37px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions .button { flex: 1; padding-inline: 12px; }
  .hero-stats { justify-content: space-between; gap: 15px; }
  .hero-stats div + div::before { display: none; }
  .hero-visual { min-height: 330px; }
  .hero-visual > img { right: 0; width: 250px; height: 100%; }
  .floating-note { bottom: 22px; left: 15px; width: 153px; padding: 13px; }
  .floating-note > strong { font-size: 21px; }
  .floating-effect { font-size: 11px; }
  .hero-stamp { width: 50px; height: 50px; font-size: 17px; }
  .catalog-section { padding-top: 45px; padding-bottom: 60px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 11px; }
  .section-heading .button { padding: 8px 10px; font-size: 10px; }
  .filter-panel { padding: 13px; }
  .filter-selects { align-items: flex-start; flex-direction: column; }
  .filter-selects > label:not(.check-label) { justify-content: space-between; width: 100%; }
  .check-label { margin-left: 0; }
  .key-hint { display: none; }
  .result-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 0; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 188px; }
  .star-switch { width: 100%; }
  .star-switch > span { margin-right: auto; }
  .page-head { min-height: 190px; padding: 25px 22px; border-radius: 0 0 18px 18px; }
  .page-head h1 { font-size: 33px; }
  .page-head p { max-width: 250px; font-size: 11px; }
  .page-head-art { display: none; }
  .page-stats { gap: 15px; }
  .page-stats dt { font-size: 24px; }
  .page-stats dd { font-size: 8px; }
  .calculator-panel, .relationship-panel, .level-panel { padding: 17px; }
  .core-select-wrap { gap: 10px; padding: 11px; }
  .core-select-wrap img { width: 48px; height: 48px; }
  .position-tag { display: none; }
  .owner-selects { grid-template-columns: 1fr; }
  .owner-card { display: grid; grid-template-columns: 1fr 1fr; }
  .owner-card > select, .harmony-select { margin-top: 0; }
  .calculator-actions { align-items: flex-start; flex-direction: column; }
  .relationship-row { grid-template-columns: 34px minmax(70px, 1fr) 32px 26px; }
  .score-bar { display: none; }
  .mini-search input { width: 82px; }
  .level-row { grid-template-columns: 32px 1fr 58px 40px; padding-inline: 2px; }
  .equipment-grid { gap: 9px; }
  .equipment-card { min-height: 265px; }
  .equipment-image-wrap { height: 135px; }
  .equipment-image-wrap img { width: 115px; height: 115px; }
  .equipment-card-body { padding: 11px; }
  .equipment-card h3 { font-size: 14px; }
  .equipment-effect-item:nth-child(n+3) { display: none; }
  .character-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .character-card { min-height: 250px; }
  .character-image { height: 160px; }
  .character-card-body { padding: 11px; }
  .detail-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  .dialog-shell { max-height: calc(100dvh - 16px); }
  .dialog-hero { min-height: 180px; padding: 25px 20px; }
  .dialog-hero h2 { font-size: 26px; }
  .dialog-body { padding: 22px 18px 28px; }
  .star-effect-table { grid-template-columns: 1fr; }
  .star-effect-cell { padding: 12px; }
  .equipment-dialog-hero { grid-template-columns: 1fr; padding-top: 25px; text-align: center; }
  .equipment-dialog-image { padding: 15px; }
  .equipment-dialog-image img { width: 155px; height: 155px; }
  .equipment-dialog-copy { padding: 0 20px 25px; }
  .equipment-dialog-copy .dialog-tags { justify-content: center; }
  .level-effect-grid { grid-template-columns: 1fr; }
  .growth-item { grid-template-columns: 1.2fr 0.8fr; }
  .growth-item strong:last-child { grid-column: 2; }
  .character-dialog-hero { grid-template-columns: 1fr; padding-top: 20px; text-align: center; }
  .character-dialog-image img { height: 280px; }
  .character-dialog-copy { padding: 20px; }
  .character-info-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .potential-grid { grid-template-columns: 1fr; }
  .position-suit-grid { gap: 5px; }
  .position-suit-item { padding: 8px 3px; }
  .community-section { padding-bottom: 55px; }
  .player-pass { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
  .player-avatar { width: 48px; height: 48px; font-size: 20px; }
  .player-pass-copy h2 { font-size: 17px; }
  .player-pass-copy p { font-size: 9px; }
  .player-name-control { grid-column: 1 / -1; }
  .player-pass .cloud-state { grid-column: 1 / -1; }
  .name-input-row { flex-direction: column; }
  .name-input-row .button { width: 100%; }
  .community-toolbar h2 { font-size: 27px; }
  .publish-actions { width: 100%; }
  .publish-actions .button { flex: 1; padding-inline: 8px; font-size: 10px; }
  .community-filters .text-button { margin-left: 0; }
  .cloud-secure-note { display: none; }
  .community-grid { gap: 10px; }
  .share-card { grid-template-columns: 1fr; min-height: 0; }
  .share-card-visual { min-height: 218px; }
  .share-card-visual img { max-height: 218px; }
  .share-card-equipment .share-card-visual img { width: 145px; height: 145px; }
  .share-card-body { padding: 14px; }
  .share-card-body h3 { font-size: 17px; }
  .share-card-footer { margin-top: 5px; }
  .share-form-grid { grid-template-columns: 1fr; gap: 10px; }
  .share-factor-row { grid-template-columns: 24px minmax(0, 1fr) 58px; gap: 5px; }
  .share-form-actions .button { flex: 1; padding-inline: 10px; }
  .borrow-dialog-hero { grid-template-columns: 1fr; padding: 18px; text-align: center; }
  .borrow-visual { height: 180px; }
  .borrow-copy .share-tag-row { justify-content: center; }
  .borrow-contact { justify-content: center; text-align: left; }
  .borrow-copy h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 因子搜索选择器 ---------- */
.factor-slots { display: grid; gap: 6px; }
.factor-slot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 9px; background: var(--paper); border: 1px dashed var(--line); border-radius: 9px; }
.factor-slot.filled { background: #fff; border-style: solid; box-shadow: var(--shadow-sm); }
.factor-slot-index { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 50%; font-size: 8px; font-weight: 900; }
.factor-slot-hint { color: var(--muted-2); font-size: 9px; }
.factor-slot-body { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.factor-slot-body strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.factor-slot-body span { color: var(--muted); font-size: 8px; }
.factor-slot select { min-height: 28px; padding: 3px 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 9px; }
.factor-slot-remove { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; }
.factor-slot-remove:hover { color: #fff; background: var(--accent); }

.factor-picker { margin-top: 10px; }
.factor-search-row { display: flex; align-items: center; gap: 8px; }
.factor-search-row input { flex: 1; min-width: 0; min-height: 34px; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; outline: 0; }
.factor-search-row input:focus { border-color: var(--accent); }
.factor-result-count { flex: 0 0 auto; color: var(--muted-2); font-size: 8px; }
.factor-type-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.factor-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 9px; font-weight: 700; cursor: pointer; }
.factor-chip em { color: var(--muted-2); font-size: 8px; font-style: normal; }
.factor-chip:hover { border-color: var(--accent); }
.factor-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.factor-chip.active em { color: rgba(255, 255, 255, 0.78); }
.factor-results { display: grid; gap: 4px; max-height: 196px; margin-top: 8px; padding-right: 3px; overflow-y: auto; }
.factor-result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 7px 9px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.factor-result:hover { background: var(--accent-soft); border-color: var(--accent); }
.factor-result.selected { opacity: 0.5; cursor: default; }
.factor-result-type { grid-row: span 2; align-self: center; padding: 3px 6px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 5px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.factor-result strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.factor-result-meta { color: var(--muted-2); font-size: 8px; }
.factor-empty { padding: 14px; color: var(--muted-2); text-align: center; font-size: 9px; }

/* ---------- 角色图片选择器 ---------- */
.character-picker { padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.character-search-row { display: flex; align-items: center; gap: 8px; }
.character-search-row input { flex: 1; min-width: 0; min-height: 34px; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; outline: 0; }
.character-search-row input:focus { border-color: var(--accent); }
.character-picked { flex: 0 0 auto; color: var(--accent-dark); font-size: 9px; font-weight: 800; white-space: nowrap; }
.character-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-height: 214px; margin-top: 8px; padding-right: 2px; overflow-y: auto; }
.character-option { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.character-option img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); border-radius: 6px; }
.character-option span { max-width: 100%; overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.character-option:hover { border-color: var(--accent); }
.character-option.selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.character-empty { grid-column: 1 / -1; padding: 16px; color: var(--muted-2); text-align: center; font-size: 9px; }

/* ---------- 玩家上传图片的展示 ---------- */
.share-card-visual.has-upload img { width: 100%; height: 100%; max-height: 264px; padding: 12px; object-fit: contain; filter: none; }
.share-card-visual.has-upload::before { display: none; }
.borrow-visual.has-upload img { object-fit: contain; }

@media (max-width: 640px) {
  .factor-results { max-height: 168px; }
  .factor-search-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .factor-result-count { text-align: right; }
  .character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 188px; }
  .character-search-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .character-picked { text-align: right; }
  .share-card-visual.has-upload img { max-height: 218px; }
}

/* ---------- 词条档位与星级并排 ---------- */
.tier-chip { padding: 3px 8px; color: var(--type-color); background: color-mix(in srgb, var(--type-color) 12%, white); border: 1px solid color-mix(in srgb, var(--type-color) 26%, white); border-radius: 20px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.note-star-list { display: grid; gap: 2px; margin-top: 8px; }
.note-star-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.note-star-row .stars { color: var(--gold); font-size: 9px; letter-spacing: -1px; }
.note-star-row strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.note-star-row.active { background: color-mix(in srgb, var(--type-color) 9%, white); }
.note-star-row.active strong { color: var(--type-color); font-weight: 900; }

.tier-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.tier-table th, .tier-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tier-table thead th { color: var(--muted-2); font-size: 9px; font-weight: 800; }
.tier-table tbody th { color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.tier-table tbody th em { display: inline-block; margin-left: 4px; padding: 1px 5px; color: #fff; background: var(--accent); border-radius: 4px; font-size: 8px; font-style: normal; }
.tier-table tr.top-tier { background: var(--accent-soft); }
.tier-table tr.top-tier td { color: var(--ink); font-weight: 700; }
.tier-hint { margin: 8px 0 0; color: var(--muted-2); font-size: 9px; }

/* ---------- 天赋与心结 ---------- */
.talent-detail { padding: 0; overflow: hidden; }
.talent-detail summary { display: flex; align-items: center; gap: 7px; padding: 10px 12px; list-style: none; cursor: pointer; }
.talent-detail summary::-webkit-details-marker { display: none; }
.talent-detail summary strong { flex: 1; font-size: 12px; }
.talent-detail summary svg { width: 12px; height: 12px; color: var(--muted-2); transform: rotate(90deg); transition: transform 0.18s; }
.talent-detail[open] summary svg { transform: rotate(-90deg); }
.talent-tag { padding: 2px 7px; color: var(--muted); background: var(--paper); border-radius: 4px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.talent-detail .talent-max { margin: 0; padding: 0 12px 10px; color: var(--ink); font-size: 11px; line-height: 1.7; }
.talent-levels { display: grid; gap: 4px; padding: 0 12px 12px; }
.talent-levels div { display: flex; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.talent-levels span { flex: 0 0 auto; color: var(--muted-2); font-size: 9px; font-weight: 800; }
.talent-skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.talent-skill-tags span { padding: 3px 8px; color: var(--muted); background: var(--paper); border-radius: 5px; font-size: 9px; }
.muted-copy { color: var(--muted-2); }

.knot-list { display: grid; gap: 5px; }
.knot-item { background: var(--paper); border-radius: 8px; }
.knot-item summary { display: flex; align-items: center; gap: 8px; padding: 9px 11px; list-style: none; cursor: pointer; }
.knot-item summary::-webkit-details-marker { display: none; }
.knot-star { color: var(--gold); font-size: 9px; font-weight: 900; }
.knot-item summary strong { flex: 1; font-size: 11px; }
.knot-cond { color: var(--muted-2); font-size: 9px; }
.knot-item p { margin: 0; padding: 0 11px 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }

.release-chip { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 7px; color: #fff; background: rgba(23, 35, 59, 0.72); border-radius: 5px; font-size: 8px; font-weight: 800; }
.quality-note { margin: 10px 0 0; padding: 10px 12px; color: var(--muted); background: var(--paper); border-radius: 8px; font-size: 10px; line-height: 1.7; }

.share-form-actions { position: sticky; bottom: 0; z-index: 3; background: var(--surface); }
.factor-slot.empty select { opacity: 0.4; }
