:root {
  --bg: #eef5fc;
  --bg2: #e3eef9;
  --panel: #ffffff;
  --panel2: #f6faff;
  --ink: #1b2a3c;
  --ink2: #4b5d72;
  --ink3: #8195ab;
  --line: #d7e3f0;
  --brand: #128afa;
  --brand2: #0b6fd0;
  --brand-soft: #dcefff;
  --gold: #f4b400;
  --good: #1f9d63;
  --warn: #d98a00;
  --bad: #d64545;
  --explosion: #d6463a;
  --pierce: #c08a00;
  --mystic: #2479d1;
  --sonic: #9446c7;
  --normal: #7d8a99;
  --composite: #2a9d8f;
  --shadow: 0 1px 2px rgba(20, 50, 90, .06), 0 4px 16px rgba(20, 50, 90, .07);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1520; --bg2: #121c2a; --panel: #162231; --panel2: #1b293a; --ink: #e6eef8; --ink2: #a9bacd; --ink3: #6f849b;
    --line: #26364a; --brand: #3ea2ff; --brand2: #6bb8ff; --brand-soft: #173450; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1520; --bg2: #121c2a; --panel: #162231; --panel2: #1b293a; --ink: #e6eef8; --ink2: #a9bacd; --ink3: #6f849b;
  --line: #26364a; --brand: #3ea2ff; --brand2: #6bb8ff; --brand-soft: #173450; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Outfit', 'Noto Sans TC', system-ui, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% -10%, var(--brand-soft), transparent 40%), linear-gradient(transparent 0 0);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.tw { font-family: 'Noto Sans TC', sans-serif; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 24px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand b { color: var(--brand); font-weight: 800; }
.halo { width: 28px; height: 28px; color: var(--brand); }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 14px; border-radius: 999px; color: var(--ink2); font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--bg2); color: var(--ink); }
.tabs a.active { background: var(--brand); color: #fff; }
.lock { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.lock.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }

main { max-width: 1320px; margin: 0 auto; padding: 22px 24px 80px; }
.loading { padding: 80px; text-align: center; color: var(--ink3); }

/* ---------- generic ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--ink2); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.panel h3 { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
.btn { border: 1px solid var(--line); background: var(--panel); padding: 7px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip.Explosion, .chip.LightArmor { background: color-mix(in srgb, var(--explosion) 15%, transparent); color: var(--explosion); }
.chip.Pierce, .chip.HeavyArmor { background: color-mix(in srgb, var(--pierce) 17%, transparent); color: var(--pierce); }
.chip.Mystic, .chip.Unarmed { background: color-mix(in srgb, var(--mystic) 15%, transparent); color: var(--mystic); }
.chip.Sonic, .chip.ElasticArmor { background: color-mix(in srgb, var(--sonic) 15%, transparent); color: var(--sonic); }
.chip.CompositeArmor { background: color-mix(in srgb, var(--composite) 15%, transparent); color: var(--composite); }
.chip.tier-S { background: #ffe9a8; color: #8a5a00; }
.chip.tier-A { background: #dcefff; color: #0b6fd0; }
.chip.tier-B { background: #e6f4ea; color: #1f7a4d; }
.chip.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.chip.warn { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.chip.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
input[type=text], input[type=search], input[type=number], input[type=password], select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink3); font-weight: 600; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink3); }
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 10px 14px; border-radius: 8px; color: var(--ink); }
.callout.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--ink2); font-weight: 500; }
.seg button.on { background: var(--brand); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 24px; font-weight: 700; }
.stat .k { font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- roster cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card.unowned { opacity: .5; filter: grayscale(.7); }
.card.unowned:hover { opacity: .9; filter: none; }
.card .art { position: relative; aspect-ratio: 1 / 1.05; background: linear-gradient(160deg, var(--bg2), var(--panel2)); overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .lv { position: absolute; left: 8px; bottom: 8px; background: rgba(10, 25, 45, .78); color: #fff; font-weight: 700; font-size: 13px; padding: 1px 8px; border-radius: 8px; }
.card .squad { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: #fff; letter-spacing: .04em; }
.squad.Striker { background: #d6463a; }
.squad.Special { background: #2479d1; }
.card .core { position: absolute; left: 8px; top: 8px; background: var(--gold); color: #3d2a00; border-radius: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; }
.card .body { padding: 8px 10px 10px; }
.card .name { font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { color: var(--gold); letter-spacing: -1px; font-size: 13px; }
.stars .ue { color: #4fb3ff; }
.typebar { display: flex; height: 4px; }
.typebar span { flex: 1; }
.bg-Explosion { background: var(--explosion); } .bg-Pierce { background: var(--pierce); } .bg-Mystic { background: var(--mystic); } .bg-Sonic { background: var(--sonic); }
.bg-LightArmor { background: var(--explosion); } .bg-HeavyArmor { background: var(--pierce); } .bg-Unarmed { background: var(--mystic); } .bg-ElasticArmor { background: var(--sonic); } .bg-CompositeArmor { background: var(--composite); }
.skills-mini { display: flex; gap: 4px; margin-top: 6px; }
.skills-mini span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; background: var(--bg2); border-radius: 6px; padding: 2px 0; color: var(--ink2); }
.skills-mini span.max { background: color-mix(in srgb, var(--gold) 30%, transparent); color: #8a5a00; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 35, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--bg); z-index: 50; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer .hero { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 20px; background: linear-gradient(135deg, var(--brand-soft), var(--panel)); border-bottom: 1px solid var(--line); }
.drawer .hero img.portrait { width: 220px; height: 248px; object-fit: cover; object-position: top; border-radius: 12px; background: var(--panel2); }
.drawer .hero h2 { margin: 0; font-size: 26px; }
.drawer .close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--panel); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; box-shadow: var(--shadow); }
.drawer .content { padding: 18px 20px 60px; display: flex; flex-direction: column; gap: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin-top: 10px; }
.kv dt { color: var(--ink3); }
.kv dd { margin: 0; }
.terrain { display: flex; gap: 8px; margin-top: 10px; }
.terrain div { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; min-width: 64px; }
.terrain b { display: block; font-size: 18px; }
.terrain small { color: var(--ink3); font-size: 11px; }
.mood-SS, .mood-S { color: var(--good); } .mood-A { color: #4a9a36; } .mood-B { color: var(--ink2); } .mood-C, .mood-D { color: var(--bad); }

.editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.field { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); font-weight: 600; margin-bottom: 4px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 700; line-height: 1; }
.stepper button:hover { border-color: var(--brand); color: var(--brand); }
.stepper input { width: 52px; text-align: center; padding: 4px; font-weight: 700; }
.stepper .max { font-size: 12px; color: var(--ink3); }
.starpick { display: flex; gap: 2px; font-size: 20px; cursor: pointer; user-select: none; }
.starpick span { color: var(--line); transition: color .1s, transform .1s; }
.starpick span.on { color: var(--gold); }
.starpick span.ue.on { color: #4fb3ff; }
.starpick span:hover { transform: scale(1.15); }

.skill { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.skill:last-child { border-bottom: 0; }
.skill img { width: 44px; height: 44px; border-radius: 10px; background: #2e4a6b; padding: 4px; }
.skill .t { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.skill .t b { font-size: 15px; }
.skill p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
.buff { font-weight: 600; }
.buff.b { color: var(--good); } .buff.d { color: var(--bad); } .buff.c { color: var(--warn); } .buff.s { color: var(--mystic); }
.param { font-weight: 700; color: var(--brand); }

.gift-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gift { position: relative; width: 58px; text-align: center; font-size: 10px; color: var(--ink3); }
.gift img { width: 52px; height: 52px; margin: 0 auto; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.gift .tier { position: absolute; top: -4px; right: 0; font-size: 14px; }
.mat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mat { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 3px 8px 3px 3px; font-size: 13px; }
.mat img { width: 32px; height: 32px; }
.mat.short { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.mat b { font-weight: 700; }

/* ---------- lists ---------- */
.plist { display: flex; flex-direction: column; gap: 10px; }
.pitem { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.pitem:hover { border-color: var(--brand); }
.pitem img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--bg2); }
.pitem .why { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.pitem .next { font-size: 13px; text-align: right; }
.rank { font-weight: 800; color: var(--brand); font-size: 18px; min-width: 26px; text-align: center; }

.team { display: grid; grid-template-columns: repeat(6, minmax(0, 118px)); gap: 8px; }
.team .slot { background: var(--panel2); border: 1px dashed var(--line); border-radius: 12px; padding: 6px; text-align: center; min-height: 120px; cursor: pointer; }
.team .slot.filled { border-style: solid; }
.team .slot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: var(--bg2); }
.team .slot .n { font-size: 12px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .slot .b { font-size: 12px; font-weight: 700; color: var(--good); }
.team .slot.sp { background: color-mix(in srgb, var(--mystic) 6%, var(--panel2)); }
.team-label { display: grid; grid-template-columns: 4fr 2fr; max-width: 748px; gap: 8px; font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.bonus-total { font-size: 28px; font-weight: 800; color: var(--good); }
.boss { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.boss img { width: 180px; height: 180px; object-fit: contain; background: radial-gradient(circle, var(--brand-soft), transparent 70%); border-radius: 14px; }
.boss-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.boss-pick button { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 4px; cursor: pointer; flex: 0 0 auto; text-align: center; width: 84px; }
.boss-pick button.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.boss-pick img { width: 74px; height: 60px; object-fit: contain; margin: 0 auto; }
.boss-pick span { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.invitem { display: grid; grid-template-columns: 40px 1fr 74px; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 4px; }
.invitem img { width: 40px; height: 40px; }
.invitem .nm { font-size: 12.5px; line-height: 1.2; }
.invitem .need { font-size: 11.5px; }
.invitem input { width: 74px; padding: 4px 6px; text-align: right; }
.invitem.short { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: color-mix(in srgb, var(--bad) 5%, var(--panel2)); }
.invitem.ok { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
details.group { margin-bottom: 10px; }
details.group summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

.log li { margin-bottom: 4px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--panel); padding: 9px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 720px) {
  .topbar { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .tabs { order: 3; flex-basis: 100%; }
  main { padding: 16px 16px 60px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .drawer .hero { grid-template-columns: 1fr; }
  .drawer .hero img.portrait { width: 100%; height: 260px; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .team-label { display: none; }
  .boss { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .pitem { grid-template-columns: 44px 1fr; }
  .pitem .next { grid-column: 1 / -1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.cur-icon { width: 44px; height: 44px; object-fit: contain; }
.panel td img { width: 48px; height: 48px; object-fit: contain; }

/* ---------- motion ---------- */
main.enter > * { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
main.enter > *:nth-child(2) { animation-delay: .03s; }
main.enter > *:nth-child(3) { animation-delay: .06s; }
main.enter > *:nth-child(4) { animation-delay: .09s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
img { background-color: transparent; }
.card .art img, .pitem img, .team .slot img { transition: opacity .25s; }

/* ---------- home ---------- */
.welcome {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 20px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(120deg, #0b6fd0 0%, #128afa 55%, #49b8ff 100%);
  box-shadow: 0 10px 30px rgba(18, 138, 250, .25); position: relative; overflow: hidden;
}
.welcome::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 18px solid rgba(255,255,255,.12); }
.welcome h1 { margin: 2px 0 4px; font-size: 30px; }
.welcome .muted { color: rgba(255,255,255,.85); margin: 0; }
.eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.welcome-stats { display: flex; gap: 10px; position: relative; z-index: 1; }
.welcome-stats div { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 8px 16px; text-align: center; min-width: 92px; backdrop-filter: blur(4px); }
.welcome-stats b { display: block; font-size: 22px; }
.welcome-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.live-card {
  display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; color: var(--ink); transition: transform .15s, border-color .15s;
}
a.live-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.live-card h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.25; }
.live-top { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.pill.live { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.event-logo { width: 100%; max-height: 120px; object-fit: contain; margin: 6px 0; }
.boss-mini img { width: 100%; height: 130px; object-fit: contain; background: radial-gradient(circle, var(--brand-soft), transparent 70%); }
.mini-team { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mini-team img { width: 36px; height: 36px; border-radius: 9px; background: var(--bg2); }
.mini-team .bonus { margin-left: auto; color: var(--good); font-size: 18px; }
.go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); font-size: 14px; }
.banner { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.banner:last-child { border-bottom: 0; }
.banner-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 10px; cursor: pointer; }
.banner-row:hover { background: var(--panel2); }
.banner-row img { width: 44px; height: 44px; border-radius: 10px; background: var(--bg2); }
.progress { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #49b8ff); border-radius: 99px; transition: width .3s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; cursor: pointer; border-radius: 8px; font-size: 14px; }
.checklist li label:hover { background: var(--panel2); }
.checklist input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 1px; flex: none; }
.checklist input:checked + span { color: var(--ink3); text-decoration: line-through; }
.cov { display: grid; grid-template-columns: 100px 1fr 110px; gap: 10px; align-items: center; margin: 8px 0; }
.cov-bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.cov-bar span { display: block; height: 100%; border-radius: 99px; }

/* ---------- guide ---------- */
.type-pairs { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.pair { display: flex; align-items: center; gap: 10px; }
.pair .chip { font-size: 13px; padding: 4px 12px; min-width: 110px; justify-content: center; }
.pair .arrow { color: var(--ink3); font-size: 13px; font-weight: 600; }
.moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0; }
.moods div { text-align: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; }
.moods b { display: block; font-size: 20px; }
.moods span { font-size: 11px; color: var(--ink3); }
.roadmap { margin: 0; padding-left: 22px; }
.roadmap li { margin-bottom: 8px; }
@media (max-width: 720px) {
  .welcome { padding: 20px; }
  .welcome h1 { font-size: 24px; }
  .welcome-stats div { min-width: 0; padding: 6px 10px; }
  .cov { grid-template-columns: 90px 1fr; }
  .cov > .small { grid-column: 2; }
}
.panel.highlight { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--good) 6%, var(--panel)), var(--panel) 50%); }
.cur-totals { gap: 12px; }
.cur-totals b { color: var(--good); font-size: 16px; margin-left: -4px; }
.cur-sm { width: 28px; height: 28px; object-fit: contain; }
.section-h { margin: 8px 0 -4px; font-size: 17px; font-weight: 600; }
.team .slot .small.muted { margin-top: 2px; }
.panel .team { margin-top: 12px; }
.upload { border-style: dashed; border-width: 1.5px; background: var(--panel2); }
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upload-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.up-list { display: flex; flex-direction: column; gap: 6px; }
.up-list:not(:empty) { margin-top: 12px; }
.up-item { display: grid; grid-template-columns: 1fr 160px 70px; gap: 10px; align-items: center; font-size: 13px; }
.up-item .progress { margin: 0; }
.up-item.done .progress span { background: var(--good); }
.up-item.fail .progress span { background: var(--bad); }
