:root {
  color-scheme:dark; --bg:#09111c; --surface:#101b29; --faint:#162233;
  --line:#314054; --muted:#adb9c9; --text:#f1eee7; --gold:#edc978;
  --green:#96d9b0; --red:#ffb7a3; --blue:#a5cdec; font:100%/1.45 system-ui,-apple-system,sans-serif;
}
* { box-sizing:border-box }
body { margin:0; background:linear-gradient(125deg,#0b131e,#101b2a 72%,#142235); min-height:100vh; color:var(--text) }
button,input,select,textarea { font:inherit }
button,summary,a { -webkit-tap-highlight-color:transparent }
a { color:var(--gold) }
button,.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:.52rem .91rem; border:1px solid #ab8952; border-radius:5px; background:#1c2839; color:var(--gold); font-weight:650; cursor:pointer; text-decoration:none }
button:hover,.button:hover { background:#2b3848; border-color:var(--gold) }
button.primary { background:var(--gold); color:#232119; border-color:var(--gold) }
button.primary:hover { background:#ffdb8e }
button.quiet { background:transparent; color:var(--muted); border-color:var(--line) }
button:disabled { opacity:.55; cursor:wait }
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid var(--gold); outline-offset:2px }
.mast { display:flex; align-items:center; min-height:78px; gap:clamp(1rem,3vw,3.5rem); padding:0 clamp(1rem,3vw,3.7rem); border-bottom:1px solid var(--line); background:#0a111b }
.brand { display:flex; align-items:center; gap:.75rem; color:var(--gold); text-decoration:none; flex:none }
.brand img { width:clamp(38px,4vw,58px); height:auto; object-fit:contain }
.brand span { display:grid; gap:.12rem }
.brand strong { font-size:clamp(.9rem,1.2vw,1.18rem); letter-spacing:.13em; text-transform:uppercase }
.brand small { color:var(--muted); text-transform:uppercase; letter-spacing:.23em; font-size:.7rem; font-weight:700 }
.mast nav { align-self:stretch; display:flex; align-items:stretch; flex-wrap:wrap; gap:clamp(.2rem,1.1vw,1.35rem) }
.mast nav:empty { display:none }
.mast nav button { background:none; color:var(--muted); border:0; border-radius:0; border-bottom:3px solid transparent; padding:.5rem .2rem; font-size:.93rem }
.mast nav button[aria-current=page] { color:var(--gold); border-color:var(--gold) }
#account { margin-inline-start:auto; display:flex; align-items:center; gap:1rem; font-size:.87rem; color:var(--muted) }
.notices { position:fixed; right:clamp(.8rem,2vw,2rem); bottom:1rem; z-index:4; max-width:min(28rem,90vw) }
.notices:not(:empty) { border:1px solid #675937; border-radius:7px; background:#262920; padding:.8rem 1.1rem; box-shadow:0 4px 22px #0007; color:var(--text) }
main { max-width:1700px; margin:auto; min-height:calc(100vh - 150px); padding:clamp(1.1rem,3vw,3.5rem) clamp(.9rem,3.3vw,4rem) }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(2rem,3.4vw,3.6rem); letter-spacing:-.055em; line-height:1.08 }
h2 { font-size:clamp(1.2rem,1.7vw,1.55rem); letter-spacing:-.03em; line-height:1.2 }
h3 { font-size:1.05rem; line-height:1.25 }
.eyebrow { font-size:.75rem; letter-spacing:.17em; font-weight:750; text-transform:uppercase; color:var(--gold); margin-bottom:.75rem }
.lede { margin-bottom:1.5rem; display:flex; align-items:end; justify-content:space-between; gap:1rem; flex-wrap:wrap }
.layout { display:grid; grid-template-columns:minmax(225px,.72fr) minmax(0,2fr); gap:clamp(.8rem,2vw,2rem); align-items:start }
.box { border:1px solid var(--line); border-radius:10px; padding:clamp(1rem,1.8vw,1.7rem); background:#111c2bdd; box-shadow: 0 8px 24px #02060c17; min-width:0 }
.box+.box,.sub+.sub { margin-top:1rem }
.shelf { padding:0; overflow:hidden }
.shelf-head { padding:1rem 1.25rem }
.shelf-head select { margin-top:.75rem; width:100% }
.list { display:grid; max-height:67vh; overflow-y:auto; scrollbar-color:#6f765e var(--bg) }
.pick { border:0; border-top:1px solid var(--line); border-radius:0; color:var(--text); background:transparent; padding:1rem 1.25rem; justify-content:start; align-items:start; text-align:left; flex-direction:column; gap:.25rem; width:100% }
.pick[aria-current=true] { box-shadow:inset 3px 0 var(--gold); background:#262b2c }
.pick strong,.value,.detail-title { overflow-wrap:anywhere }
.sub { padding-top:1rem; border-top:1px solid var(--line) }
.titleline,.flex,.actions { display:flex; align-items:center; justify-content:space-between; gap:.6rem 1rem; flex-wrap:wrap }
.actions { justify-content:flex-start }
.flow { display:grid; align-content:start; gap:1rem }
.tight { display:grid; align-content:start; gap:.35rem }
.description,.hint,small,.muted { color:var(--muted) }
.hint,small { font-size:.85rem }
.empty { color:var(--muted); padding:1.3rem 0 }
.shelf .empty { padding:1rem 1.25rem }
.tag { display:inline-flex; width:fit-content; align-items:center; background:#2a3442; color:#d8dce1; font-size:.8rem; font-weight:650; padding:.21rem .55rem; border-radius:50px; white-space:normal; word-break:break-word }
.tag[data-tone=gold] { background:#3a3225; color:var(--gold) }
.tag[data-tone=green] { background:#18372c; color:var(--green) }
.tag[data-tone=blue] { background:#1e3349; color:var(--blue) }
.tag[data-tone=red] { background:#432c2b; color:var(--red) }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:.9rem }
label { display:grid; gap:.36rem; color:var(--muted); font-size:.9rem; font-weight:530 }
input,textarea,select { min-width:0; width:100%; border:1px solid #48566a; border-radius:5px; color:var(--text); background:#0c1521; padding:.58rem .68rem }
textarea { resize:vertical; min-height:5rem }
input[type=checkbox] { width:1.1rem; height:1.1rem }
.check { display:flex; align-items:center; gap:.6rem }
.wide { grid-column:1/-1 }
.item { padding:1rem; background:var(--faint); border:1px solid var(--line); border-radius:6px; display:grid; gap:.9rem }
.item-row { display:flex; align-items:center; gap:.8rem; min-width:0; flex-wrap:wrap }
.thumb { width:56px; height:56px; object-fit:contain; background:#080f18; border-radius:5px }
.item-row .tag { margin-left:auto }
.row-form { display:flex; align-items:end; gap:.55rem; flex-wrap:wrap }
.row-form label { flex:1 1 145px }
.row-form button { flex:none }
details { border:1px solid var(--line); border-radius:6px; padding:.65rem .85rem }
summary { cursor:pointer; color:var(--gold); font-weight:630 }
details[open] > summary { margin-bottom:.75rem }
.address { display:grid; gap:.13rem; overflow-wrap:anywhere; color:var(--muted) }
.issue { white-space:pre-line; overflow-wrap:anywhere }
.login { margin:clamp(1rem,8vh,4.2rem) auto 3rem; max-width:480px; background:linear-gradient(145deg,#182435,#101a27) }
.login .brandpic { width:76px; height:76px; object-fit:contain }
.login h1 { font-size:clamp(2rem,5vw,2.6rem) }
.form-error { color:var(--red); overflow-wrap:anywhere }
.form-error:empty { display:none }
footer { padding:1rem clamp(1rem,3.3vw,4rem); color:var(--muted); font-size:.85rem; border-top:1px solid var(--line); background:var(--bg) }
footer span { color:var(--gold); margin:0 .3rem }
@media(max-width:820px) {
  .mast { flex-wrap:wrap; gap:.4rem 1rem; padding-block:.65rem 0 }
  #account { display:contents }
  #account>span { margin-left:auto }
  .mast nav { order:2; width:100% }
  .mast nav button { min-height:44px; margin-inline-end:.7rem }
  .layout { grid-template-columns:1fr }
  .list { max-height:19rem }
  .mast .brand:only-child { margin-bottom:.65rem }
}
@media(max-width:500px) {
  .mast nav { gap:.05rem; justify-content:space-between }
  .mast nav button { margin:0; font-size:.84rem }
  #account>span { display:none }
  #account>button { margin-left:auto }
  .mast { padding-bottom:.3rem }
  .row-form button { width:100% }
}
