
:root{color-scheme:dark;--bg:#080809;--panel:#111214;--line:#34373c;--line2:#50545a;--txt:#f0f1f3;--muted:#a9adb4;--red:#d31722;--green:#2fb874;--yellow:#d9a52d}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--txt);font-family:"Segoe UI",Arial,sans-serif}html{min-height:100%;overscroll-behavior-y:none}body{min-height:100vh;min-height:100dvh;overflow-x:hidden;overscroll-behavior-y:contain}
button,input,textarea{font:inherit}
.brandbar{position:sticky;top:0;z-index:50;background:rgba(8,8,9,.97);border-bottom:1px solid #25272a;padding:8px 12px 7px;backdrop-filter:blur(8px)}
.brandrow{max-width:680px;margin:auto;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}
.crest{width:34px;height:42px;object-fit:contain;justify-self:center}.autsys{width:min(290px,100%);height:auto;justify-self:center;display:block}
.product{text-align:center;font-weight:800;font-size:18px;letter-spacing:.7px;margin-top:-1px}
.app{max-width:680px;margin:auto;padding:18px 14px calc(140px + env(safe-area-inset-bottom,0px))}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:14px}
.hero{text-align:center;padding:24px 18px}.eyebrow{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.8px}
h1,h2,h3,p{margin-top:0}h1{font-size:25px;margin-bottom:7px}h2{font-size:20px;margin-bottom:12px}.small{color:var(--muted);font-size:13px}
.meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px;text-align:left}.meta>div{background:#0d0e10;border:1px solid #292b2f;border-radius:9px;padding:11px}.meta strong{display:block;font-size:14px;margin-top:3px}
.btn{width:100%;border:1px solid #777b82;background:linear-gradient(#25272a,#111214);color:#fff;border-radius:8px;padding:15px 14px;font-weight:800;cursor:pointer;box-shadow:inset 0 0 0 2px #24262a}
.btn:hover{border-color:#d8d9dc}.btn:active{transform:translateY(1px)}.btn.primary{border-color:#8b8e94;background:linear-gradient(#2d2f33,#151618)}.btn.ghost{background:transparent;border-color:#44474c}.btn:disabled{opacity:.4;cursor:not-allowed}
.stack{display:grid;gap:10px}.player{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:10px}
.player-name{font-weight:800;font-size:16px}.player-sub{font-size:12px;color:var(--muted);margin-top:4px}
.tag{font-size:11px;font-weight:800;padding:6px 8px;border-radius:999px;border:1px solid var(--line2);white-space:nowrap}.tag.todo{color:#d8d9dc}.tag.done{color:#8fe2b8;border-color:#286c4d}.tag.absent{color:#ffd17a;border-color:#735d2b}.tag.extra{color:#f0b3b7;border-color:#74363a;margin-left:5px}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:2px 2px 10px}.section-title h2{margin:0}
.inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.status-btn{padding:16px 8px;border:2px solid #555;background:#111;color:#fff;border-radius:9px;font-weight:800}.status-btn.active.present{border-color:var(--green);box-shadow:0 0 0 2px rgba(47,184,116,.2)}.status-btn.active.absent{border-color:var(--yellow);box-shadow:0 0 0 2px rgba(217,165,45,.2)}
.param{padding:14px 0;border-top:1px solid #2c2e32}.param:first-child{border-top:0}.param-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.param-name{font-weight:700}.param-type{font-size:11px;color:var(--muted)}
.vote{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.vote button{padding:10px 0;background:#111;border:1px solid #45484d;border-radius:7px;color:#fff}.vote button.active{border-color:#ddd;background:#2b2d31}
input[type=number],textarea{width:100%;background:#0d0e10;border:1px solid #484b50;color:#fff;border-radius:8px;padding:12px}textarea{min-height:92px;resize:vertical}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.76);display:flex;align-items:flex-end;justify-content:center}.modal{width:min(680px,100%);max-height:78vh;overflow:auto;background:#111214;border:1px solid #50545a;border-radius:16px 16px 0 0;padding:18px}
.choice{display:flex;align-items:center;gap:11px;padding:13px 4px;border-top:1px solid #2c2e32}.choice input{width:20px;height:20px}
.summary-row{padding:13px 0;border-top:1px solid #303237}.summary-row:first-child{border-top:0}.success{text-align:center;padding:34px 18px}.success-mark{width:66px;height:66px;margin:0 auto 16px;border-radius:50%;border:3px solid var(--green);display:grid;place-items:center;font-size:35px;color:#8fe2b8}
.notice{border-left:3px solid var(--red);padding:10px 12px;background:#161012;color:#e6d9da;font-size:13px;margin:12px 0}
@media(max-width:480px){.brandrow{grid-template-columns:34px 1fr 34px}.crest{width:29px;height:36px}.autsys{max-width:230px}.product{font-size:16px}.app{padding:14px 10px calc(180px + env(safe-area-inset-bottom,0px))}.meta{grid-template-columns:1fr}.player{grid-template-columns:1fr}.tag{justify-self:start}}


.player-sticky{
  position:sticky;
  top:var(--brandbar-h,76px);
  z-index:45;
  margin:0 -14px 14px;
  padding:10px 14px 9px;
  background:rgba(8,8,9,.98);
  border-bottom:1px solid #2a2c30;
  box-shadow:0 5px 12px rgba(0,0,0,.35);
}
.player-sticky .eyebrow{margin-bottom:3px}
.player-sticky h1{margin:0;font-size:24px}
@media(max-width:480px){
  .player-sticky{
    margin:0 -10px 12px;
    padding:9px 10px 8px;
  }
  .player-sticky h1{font-size:21px}
}


.param-group h2{position:sticky;top:calc(var(--brandbar-h,76px) + 58px);z-index:30;background:#111214;padding:8px 0;border-bottom:1px solid #303237}
.levels{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.levels button{min-height:42px;padding:8px;background:#101113;border:1px solid #45484d;border-radius:7px;color:#fff;font-size:12px;font-weight:700}
.levels button:first-child{grid-column:1/-1}
.levels button.active{border-color:#e7e7e7;background:#303237;box-shadow:0 0 0 1px #e7e7e7 inset}
.note-details{margin-top:9px}
.note-details summary{cursor:pointer;color:#b7bbc1;font-size:12px;font-weight:700;letter-spacing:.4px;padding:5px 0}
.note-details textarea{margin-top:7px;min-height:74px}
.send-error{border:1px solid #7d3036;background:#1b0d0f;color:#ffd7da;padding:12px;border-radius:9px;margin:12px 0;font-size:13px}
.receipt{margin:18px 0 0;color:#a9adb4;font-size:11px;overflow-wrap:anywhere}
