/* Gear Vault: a dark room for your gear; violet, like the aperture, marks what you can act on. */
:root {
  color-scheme: dark;
  --bg: #121116;
  --panel: #19181f;
  --panel-2: #212029;
  --line: #2d2b37;
  --text: #ece9e1;
  --muted: #9a96a8;
  --dim: #625e70;
  --sun: #9b7bf0;
  --sun-2: #b9a0ff;
  --sun-ink: #160c2e;
  --red: #e0604f;
  --s-need: #e8796b;
  --s-have: #8e96a6;
  --s-staged: #6fb3e0;
  --s-packed: #f2b04f;
  --s-wearing: #b59cf0;
  --radius: 16px;
  --pad: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabs-h: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(var(--tabs-h) + 24px + var(--safe-b));
}
@media (display-mode: standalone) { html { min-height: calc(100% + env(safe-area-inset-top, 0px)); } }
a { color: var(--sun-2); text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 13px; color: var(--sun); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
button, a, .chip, .it { touch-action: manipulation; }

/* Header */
.top { display: flex; align-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--pad) 10px; max-width: 760px; margin: 0 auto 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(18,17,22,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (display-mode: standalone) { .top { padding-top: calc(26px + env(safe-area-inset-top, 0px)); } }
.brand { color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; margin-right: auto; display: inline-flex; align-items: center; gap: 7px; }
.brand-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1.5px solid var(--sun); box-sizing: border-box; }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.hdr-actions a, .hdr-actions button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--sun); color: var(--sun-2); font-weight: 700; font-size: 17px; line-height: 1; background: none; cursor: pointer; padding: 0; }
.hdr-actions svg { width: 18px; height: 18px; }

.view { max-width: 760px; margin: 0 auto; padding: 4px var(--pad) 0; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty { color: var(--muted); padding: 24px 16px; text-align: center; }
.hint { color: var(--dim); font-size: 13px; }
.err { color: var(--red); font-size: 14px; }
.err:empty { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 500; min-height: 44px; }
.btn:hover { border-color: #403b52; }
.btn.primary { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); font-weight: 600; }
.btn.primary:hover { background: var(--sun-2); }
.btn.danger { color: var(--red); }
.btn.ghost { background: none; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sun-2); font-size: 14px; cursor: pointer; }

/* Tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around; background: rgba(18,17,22,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + var(--safe-b)); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--dim); font-size: 11px; width: 80px; padding: 4px 0; border-radius: 10px; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--sun-2); }
.tabs:empty { display: none; }

/* Forms */
.form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.f, div.f { display: grid; gap: 7px; font-size: 13px; color: var(--muted); align-content: start; }
label.f > span, div.f > span { padding-left: 2px; }
.f input, .f select, .f textarea { -webkit-appearance: none; appearance: none; margin: 0; width: 100%; height: 46px; line-height: 22px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; display: block; }
.f input[type="date"] { display: flex; align-items: center; min-width: 0; }
.f textarea { height: auto; min-height: 80px; padding: 11px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--sun); outline: none; }
.f input::placeholder, .f textarea::placeholder { color: var(--dim); }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e96a6' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { white-space: nowrap; flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 6px; color: var(--muted); font-size: 14px; cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--panel-2); color: var(--text); font-weight: 600; }
.seg button small { color: var(--dim); font-weight: 500; margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 8px 13px; font-size: 14px; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: rgba(155,123,240,.16); border-color: var(--sun); color: var(--text); }
.chip small { color: var(--dim); font-size: 12px; }
.chip.on small { color: var(--sun-2); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--sun); }
.switch input:checked::after { transform: translateX(20px); }
.switch .hint { display: block; }
.switch b { display: block; font-weight: 500; color: var(--text); font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); height: 46px; }
.stepper button { width: 46px; height: 44px; background: none; border: 0; font-size: 22px; color: var(--sun-2); cursor: pointer; }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Page heads */
.page-head { margin: 6px 0 16px; }
.page-head .back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 6px; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.tag svg { width: 12px; height: 12px; }
.when { color: var(--sun-2); font-weight: 600; }

/* Trips list */
.trip { display: block; padding: 16px; margin-bottom: 12px; color: var(--text); }
.trip .t { font-size: 19px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.trip .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 10px; }
.trip .meta b { color: var(--text); font-weight: 600; }
.trip.past { opacity: .7; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; margin-top: 12px; }
.bar span { height: 100%; transition: width .35s ease; }
.bar .need { background: var(--s-need); }
.bar .have { background: transparent; }
.bar .staged { background: var(--s-staged); }
.bar .packed { background: var(--s-packed); }
.bar .wearing { background: var(--s-wearing); }
.bar .done { background: var(--sun); }

/* Bags */
.bags { padding: 12px 14px; margin-bottom: 14px; }
.bags .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bags .head b { font-size: 15px; }
.bagchip { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 12px; padding: 8px 12px; font-size: 14px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.bagchip svg { width: 16px; height: 16px; opacity: .5; }
.bagchip.on { background: rgba(155,123,240,.16); border-color: var(--sun); color: var(--text); }
.bagchip.on svg { opacity: 1; color: var(--sun-2); }

/* Progress + filters */
.prog { margin: 4px 0 14px; }
.prog .line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.prog .line b { color: var(--text); font-size: 17px; }
.prog .bar { margin-top: 8px; }
.prog.done .line b { color: var(--sun-2); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 14px; padding: 0 var(--pad) 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }

/* Item rows */
.group { margin-bottom: 14px; overflow: hidden; }
.ghead2 { display: flex; align-items: center; gap: 10px; padding: 11px 14px 9px; border-bottom: 1px solid var(--line); }
.ghead2 .t { font-weight: 600; }
.ghead2 .n { color: var(--muted); font-size: 13px; margin-left: auto; }
.ghead2 .add { background: none; border: 1px solid var(--line); color: var(--sun-2); border-radius: 50%; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.it { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.it:last-child { border-bottom: 0; }
.it .main { flex: 1; min-width: 0; cursor: pointer; padding: 4px 0; }
.it .name { font-weight: 500; }
.it .name .q { color: var(--muted); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.it .sub { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.it .sub svg { width: 13px; height: 13px; vertical-align: -2px; }
.it .lm { color: var(--s-wearing); display: inline-flex; align-items: center; gap: 3px; }
.it.packed .name, .it.wearing .name, .it.done .name { color: var(--muted); }
.st { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--dim); background: none; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; transition: background .18s, border-color .18s; color: var(--sun-ink); }
.st svg { width: 20px; height: 20px; }
.st.need { border-color: var(--s-need); color: var(--s-need); }
.st.have { border-color: var(--s-have); color: var(--s-have); }
.st.staged { border-color: var(--s-staged); color: var(--s-staged); }
.st.packed { border-color: var(--s-packed); color: var(--s-packed); }
.st.wearing { border-color: var(--s-wearing); color: var(--s-wearing); }
.st.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.stl { font-size: 12.5px; font-weight: 600; }
.stl.need { color: var(--s-need); } .stl.have { color: var(--s-have); } .stl.staged { color: var(--s-staged); } .stl.packed { color: var(--s-packed); } .stl.wearing { color: var(--s-wearing); }
.chk { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--dim); display: grid; place-items: center; flex: none; background: none; cursor: pointer; padding: 0; color: var(--sun-ink); }
.chk svg { width: 22px; height: 22px; opacity: 0; }
.chk.on { background: var(--sun); border-color: var(--sun); }
.chk.on svg { opacity: 1; }
.lib .it { padding-left: 14px; }
.lib .it .chev { color: var(--dim); }

/* One line per item */
.it { padding-top: 4px; padding-bottom: 4px; }
.it .main.line { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; padding: 8px 0; }
.it .main.line .name { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.it .main.line .q { flex: none; margin-left: 0; }
.it .main.line .lm { flex: none; display: inline-flex; }
.it .main.line .lm svg { width: 14px; height: 14px; }
.it .main.line .note { color: var(--dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.it .st, .it .chk { width: 36px; height: 36px; }
.it .st svg { width: 17px; height: 17px; }
.it .chk svg { width: 19px; height: 19px; }
.bagico { width: 30px; height: 30px; display: grid; place-items: center; flex: none; color: var(--muted); }
.bagico svg { width: 20px; height: 20px; }
.it.packed .main.line .name, .it.wearing .main.line .name, .it.done .main.line .name { color: var(--muted); }

/* Quick add */
.quick { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.quick input { flex: 1; min-width: 0; height: 42px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; font-size: 16px; }
.quick input:focus { border-color: var(--sun); outline: none; }

/* Start card / banners */
.start { padding: 18px; text-align: left; }
.start h3 { font-size: 18px; margin-bottom: 4px; }
.start p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.start .chips { margin-bottom: 14px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; }
.banner .t { flex: 1; font-size: 14.5px; }
.banner .t b { display: block; font-size: 15px; }

/* Sheet (edit an item) */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; animation: fade .15s ease; }
@media (min-width: 640px) { .scrim { align-items: center; padding: 20px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; padding: 18px var(--pad) calc(18px + var(--safe-b)); box-shadow: 0 -18px 50px rgba(0,0,0,.45); animation: up .2s ease; }
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); } to { transform: none; } }
.sheet h3 { font-size: 19px; margin-bottom: 14px; }
.sheet .stseg button { font-size: 12.5px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sheet .stseg .dot { width: 10px; height: 10px; border-radius: 50%; }
.confirm { background: rgba(224,96,79,.1); border: 1px solid rgba(224,96,79,.4); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.confirm span { flex: 1; font-size: 14px; }

/* Settings */
.settings .card { padding: 14px 16px; }
.settings .section { margin-top: 26px; }

/* Login + splash */
.login { max-width: 360px; margin: 9vh auto 0; text-align: center; }
.login .mark img { width: 96px; height: 96px; border-radius: 24px; display: block; margin: 0 auto 20px; }
.login h1 { margin-bottom: 6px; }
.login p { color: var(--muted); margin: 0 0 22px; }
.login .form { text-align: left; }
body.auth .top { display: none; }
.pwbar { display: flex; gap: 4px; margin: 0 0 4px; }
.pwbar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.pwlabel { font-size: 12px; color: var(--dim); }
.pwmeter { margin-top: -8px; }
.pwmeter[data-level="1"] .pwbar span:nth-child(1) { background: var(--red); }
.pwmeter[data-level="2"] .pwbar span:nth-child(-n+2) { background: var(--sun); }
.pwmeter[data-level="3"] .pwbar span { background: var(--s-staged); }
body.splash-on .top { display: none; }
body.splash-on { padding-bottom: 0; background: radial-gradient(ellipse at 50% 12%, #24203a 0%, var(--bg) 60%) fixed; }
.splash { max-width: 440px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(48px + env(safe-area-inset-top, 0px)) 8px calc(24px + var(--safe-b)); }
.splash-mark img { width: 84px; height: 84px; border-radius: 22px; display: block; margin: 0 auto; }
.splash-kick { text-align: center; color: var(--sun); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }
.splash h1 { text-align: center; font-size: 34px; font-weight: 700; margin-top: 8px; }
.splash h1 span { color: var(--sun); }
.splash-lead { text-align: center; color: var(--muted); font-size: 16px; margin: 10px 8px 0; }
.splash-list { list-style: none; padding: 0; margin: 26px 0 24px; display: grid; gap: 10px; }
.splash-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; }
.splash-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; flex: none; color: var(--sun-2); }
.splash-ico svg { width: 19px; height: 19px; }
.splash-list b { display: block; font-size: 15.5px; font-weight: 600; }
.splash-list small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.splash-go { margin-top: auto; width: 100%; min-height: 54px; font-size: 17px; font-weight: 700; border-radius: 14px; }
.splash-foot { text-align: center; color: var(--dim); font-size: 13px; margin: 12px 0 0; }

/* Guide */
.lead { font-size: 17px; line-height: 1.5; color: var(--text); margin: -6px 0 18px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.toc a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.2; }
.toc .ico { width: 18px; height: 18px; flex: none; color: var(--sun-2); }
.toc .ico svg { width: 100%; height: 100%; display: block; }
.gsec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin-top: 14px; scroll-margin-top: 90px; }
.ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ghead h3 { font-size: 18px; }
.gico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(155,123,240,.16); color: var(--sun-2); border: 1px solid rgba(155,123,240,.35); }
.gico svg { width: 21px; height: 21px; }
.gico.vtag { font-size: 12px; font-weight: 700; width: auto; padding: 0 10px; }
.gbody p, .changes { margin: 0 0 10px; color: #d2d5dc; line-height: 1.55; }
.gbody b { color: var(--text); }
.changes { padding-left: 20px; }
.changes li { margin-bottom: 5px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 12px; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.step > b { display: block; color: var(--text); margin-bottom: 6px; }
.step ol { margin: 0; padding-left: 20px; color: #d2d5dc; line-height: 1.5; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--sun-2); }
.legend { display: grid; gap: 8px; margin: 4px 0 12px; }
.legend div { display: flex; gap: 10px; align-items: center; color: #d2d5dc; }
.legend .st { width: 30px; height: 30px; cursor: default; }
.legend .st svg { width: 15px; height: 15px; }
.version { color: var(--dim); font-size: 13px; text-align: center; margin: 28px 0 0; }
.version a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 14px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #2c2840; color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

/* Gear */
.total { margin: 2px 0 16px; }
.total b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.total span { color: var(--muted); font-size: 14px; display: block; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { flex: 1; min-width: 0; height: 44px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; }
.search input:focus { border-color: var(--sun); outline: none; }
.g { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); min-height: 52px; }
.g:last-child { border-bottom: 0; }
.g .th { width: 34px; height: 34px; border-radius: 8px; flex: none; background: var(--panel-2) center/cover no-repeat; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.g .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g .th svg { width: 17px; height: 17px; }
.g .main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.g .main .name { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.g .main .mk { color: var(--dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.g .pr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14.5px; flex: none; }
.g.off .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.g .q { color: var(--muted); font-size: 13.5px; }
.chk2 { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--dim); flex: none; display: grid; place-items: center; color: var(--sun-ink); }
.chk2 svg { width: 16px; height: 16px; opacity: 0; }
.g.picked .chk2 { background: var(--sun); border-color: var(--sun); }
.g.picked .chk2 svg { opacity: 1; }
.hero-photo { width: 100%; max-height: 320px; object-fit: contain; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: block; margin-bottom: 14px; }
.facts { padding: 4px 16px; }
.facts .r { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts .r:last-child { border-bottom: 0; }
.facts .r span { color: var(--muted); }
.facts .r b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.file { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file .tag2 { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 6px; }
.file svg { width: 26px; height: 26px; }
.kit { display: block; padding: 14px 16px; margin-bottom: 12px; color: var(--text); }
.kit .t { font-size: 18px; font-weight: 650; }
.kit .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.status-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--s-need); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.viewer { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.viewer .bar2 { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 10px; }
.kithead { color: var(--text); }
.kithead .t { font-size: 17px; }
.kithead .chev { color: var(--dim); font-size: 20px; line-height: 1; }
.kitimg { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--panel-2); }
.kitcard { display: block; overflow: hidden; margin-bottom: 14px; color: var(--text); }
.kitimg.empty { display: grid; place-items: center; color: var(--dim); background: linear-gradient(160deg, #26223a, var(--panel-2)); }
.kitimg.empty svg { width: 44px; height: 44px; }
.kitbody { padding: 12px 16px 14px; }
.kitbody .t { font-size: 19px; font-weight: 650; }
.kitbody .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
