/* SQUAWK+ DKP — Soft-Res-style layout, recolored to SQUAWK+ cobalt */
:root{
  --bg:#0e1116; --panel:#161b22; --panel2:#1b222c; --line:#273041;
  --text:#e6edf3; --dim:#8b98a9; --accent:#2f6fe0; --accent2:#054A98;
  --pos:#4bd07a; --neg:#e5687a; --mgr:#f1c40f; --adm:#EC5F9E;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font:15px/1.5 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.topbar{display:flex;align-items:center;gap:18px;padding:12px 20px;
  background:linear-gradient(180deg,#121722,#0e1116);border-bottom:1px solid var(--line)}
.brand{font-weight:800;letter-spacing:.5px;font-size:18px;color:var(--text)}
.brand span{color:var(--accent)}
.topbar nav{display:flex;align-items:center;gap:16px;margin-left:auto}
.topbar nav a{color:var(--dim);font-weight:600}
.topbar nav a:hover{color:var(--text);text-decoration:none}
.topbar nav a.mgr{color:var(--mgr)}
.who{color:var(--dim);font-size:13px}
.ghost{opacity:.8}

main{max-width:920px;margin:26px auto;padding:0 18px}
h1{font-size:24px;margin:0 0 4px}
h2{font-size:16px;margin:0 0 10px;color:var(--text)}
.sub{color:var(--dim);margin:0 0 16px}
footer{max-width:920px;margin:40px auto;padding:16px 18px;color:var(--dim);
  border-top:1px solid var(--line);font-size:13px}

table.grid{width:100%;border-collapse:collapse;background:var(--panel);
  border:1px solid var(--line);border-radius:10px;overflow:hidden}
.grid th,.grid td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--line)}
.grid th{background:var(--panel2);color:var(--dim);font-size:12px;text-transform:uppercase;letter-spacing:.4px}
.grid tr:last-child td{border-bottom:0}
.grid tr.mine{background:rgba(47,111,224,.10)}
.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.rank{width:44px;color:var(--dim);text-align:right}
.dim{color:var(--dim);font-size:13px}
.pos{color:var(--pos)} .neg{color:var(--neg)}
.empty{color:var(--dim);text-align:center;padding:22px}

.balance{font-size:52px;font-weight:800;color:var(--accent);margin:6px 0 18px}
.balance span{font-size:16px;color:var(--dim);margin-left:8px;font-weight:600}
.chips{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{background:var(--panel2);border:1px solid var(--line);border-radius:20px;padding:4px 12px;font-size:13px}

.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:16px 18px;margin:0 0 16px}
.lbl{display:block;color:var(--dim);font-size:12px;margin:12px 0 6px}
textarea.code,.code{width:100%;min-height:70px;background:#0b0e13;color:#9fd0ff;
  border:1px solid var(--line);border-radius:8px;padding:10px;font:13px/1.4 ui-monospace,Menlo,monospace;
  resize:vertical;word-break:break-all}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* Everything on a row grows together. Only inputs had flex:1, so a <select> sat at its
   content width and the realm dropdown came out visibly shorter than the boxes either
   side of it. */
.row input{flex:1;min-width:120px}
.row select{flex:1;min-width:140px}
.row .combo{flex:1;min-width:160px}
/* select and textarea too, not just input and button. A <select> left out of this falls
   back to the browser's own 13.3px, which gives it a shorter line box - so the realm
   dropdown rendered 33px tall next to 41px inputs and sat 4px lower than everything
   beside it. */
input,button,select,textarea{font:inherit}
input,select{background:#0b0e13;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px}
button,.btn{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:9px 16px;
  font-weight:700;cursor:pointer;display:inline-block}
button:hover,.btn:hover{background:#3f7cf0;text-decoration:none}
.btn.ghost,.ghost.btn{background:var(--panel2);color:var(--text);border:1px solid var(--line)}
.btn.big{padding:12px 22px;font-size:16px;margin:6px 8px 0 0}
button.small,.small{padding:3px 10px;font-size:12px;font-weight:600}
.grid form{margin:0}

.flash{padding:10px 14px;border-radius:8px;margin:0 0 14px;border:1px solid var(--line)}
.flash.ok{background:rgba(75,208,122,.12);border-color:rgba(75,208,122,.4)}
.flash.error{background:rgba(229,104,122,.12);border-color:rgba(229,104,122,.4)}

.login{max-width:420px;margin:8vh auto;text-align:center;background:var(--panel);
  border:1px solid var(--line);border-radius:16px;padding:40px 28px}
.login h1{font-size:30px}
.login .accent{color:var(--accent)}

.chip-guest{font-size:11px;background:var(--panel2);border:1px solid var(--line);
  color:var(--dim);border-radius:10px;padding:1px 7px;margin-left:6px;vertical-align:middle}
.joinbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 16px}
.joinbar span{display:flex;gap:8px;align-items:center;color:var(--dim)}

/* config warning banner (e.g. Discord role ids not filled in yet) */
.warn{padding:10px 14px;border-radius:8px;margin:0 0 14px;font-size:14px;
  background:rgba(241,196,15,.10);border:1px solid rgba(241,196,15,.45);color:var(--text)}
.warn code{background:rgba(0,0,0,.25);padding:1px 5px;border-radius:4px}

/* current tab: brighter text + an underline bar tucked against the topbar edge */
.topbar nav a.active{color:var(--text);position:relative}
.topbar nav a.active::after{content:"";position:absolute;left:-2px;right:-2px;bottom:-13px;
  height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.topbar nav a.active.mgr{color:var(--mgr)}
.topbar nav a.active.mgr::after{background:var(--mgr)}

/* label row with an action button on the right (e.g. Copy) */
.lblrow{display:flex;align-items:center;gap:12px;margin:10px 0 4px}
.lblrow .lbl{margin:0}
.copybtn{margin-left:auto;padding:5px 14px;font-size:13px;font-weight:600;cursor:pointer;
  color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:7px}
.copybtn:hover{border-color:var(--accent);color:var(--accent)}
/* Copied: filled green, not just green text. The button is small and sits at the end of a
   label row, so a colour change alone is easy to miss - the fill and the tick are what make
   it read as "done" without looking for it. */
.copybtn.ok{color:#0e1116;background:var(--pos);border-color:var(--pos)}
.copybtn.ok:hover{color:#0e1116;background:var(--pos);border-color:var(--pos)}

/* submit throbber */
@keyframes spin{to{transform:rotate(360deg)}}
.spin{display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;
  animation:spin .6s linear infinite}
button.busy,input.busy{opacity:.75;cursor:progress}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2s}}

/* searchable dropdown (combo.js) */
.combo{position:relative;display:inline-block;min-width:220px}
.combo-native{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.combo-input{width:100%}
.combo-list{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);margin:0;padding:4px;
  list-style:none;max-height:260px;overflow-y:auto;background:var(--panel2);
  border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 28px rgba(0,0,0,.45)}
.combo-list li{padding:7px 10px;border-radius:6px;cursor:pointer;font-size:14px}
.combo-list li:hover,.combo-list li.on{background:var(--accent);color:#fff}
.combo-list li.none{color:var(--dim);cursor:default;font-size:13px}
.combo-list li.none:hover{background:none;color:var(--dim)}

/* ---- avatar user menu ---- */
.usermenu{position:relative}
.usertrigger{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;cursor:pointer;
  background:transparent;border:1px solid transparent;border-radius:20px;color:var(--dim);font:inherit;font-weight:600}
.usertrigger:hover{border-color:var(--line);color:var(--text);background:var(--panel)}
.avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;display:block;
  border:1px solid var(--line);background:var(--panel2)}
.avatar-fallback{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--text)}
.usertrigger .uname{font-size:14px}
.caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid currentColor;opacity:.7;transition:transform .15s}
.usertrigger[aria-expanded="true"] .caret{transform:rotate(180deg)}
.usermenu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:190px;padding:6px;
  background:var(--panel2);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 32px rgba(0,0,0,.5)}
.usermenu-head{padding:8px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:6px;
  font-weight:700;color:var(--text);font-size:14px;display:flex;flex-direction:column;gap:3px}
.usermenu-head .tier{font-weight:600;font-size:12px;color:var(--dim);text-transform:lowercase}
.usermenu-head .tier.mgr{color:var(--mgr)}
.usermenu-panel a{display:block;padding:8px 10px;border-radius:7px;color:var(--dim);font-weight:600;font-size:14px}
.usermenu-panel a:hover{background:var(--panel);color:var(--text);text-decoration:none}
.usermenu-panel a.on{color:var(--text)}
.usermenu-panel a.danger:hover{color:var(--neg)}

/* ---- raiders accordion ---- */
tr.raider.has-chars{cursor:pointer}
tr.raider.has-chars:hover{background:var(--panel2)}
tr.raider:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
tr.raider .caret{display:inline-block;margin-right:8px;vertical-align:2px;
  border-top:5px solid currentColor;transform:rotate(-90deg);transition:transform .15s}
tr.raider.open .caret{transform:rotate(0)}
tr.raider .caret.ghosted{opacity:.15}
tr.charrow td{background:var(--panel2);border-top:none;padding-top:4px;padding-bottom:10px}
.charlist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.charlist li{display:flex;align-items:center;gap:7px;font-size:14px}
.charlist .ico{width:20px;height:20px;border-radius:4px;display:block;
  border:1px solid var(--line);background:var(--panel)}
.charlist .ico-none{opacity:.35}
.charlist .cname{font-weight:600}

/* ---- SQUAWK+ brand mark ---- */
.brand{display:flex;align-items:center;gap:10px}
.brandicon{width:28px;height:28px;border-radius:7px;display:block;object-fit:cover;
  border:1px solid var(--line)}
.brandtext .plus{color:var(--accent)}

/* ---- character badge (shared by Raiders + My DKP) ---- */
.charbadge{display:inline-flex;align-items:center;gap:6px}
.charlist.mychars{margin:6px 0 0}

/* icons inside the searchable dropdowns */
.combo-list li{display:flex;align-items:center;gap:8px}
.opt-ico{width:18px;height:18px;border-radius:4px;flex:0 0 auto;border:1px solid var(--line)}
.combo-pre{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:18px;height:18px;
  border-radius:4px;border:1px solid var(--line);z-index:1;pointer-events:none}
.combo-input.has-pre{padding-left:32px;font-weight:600}

/* ---- make every dropdown look like a dropdown ---- */
/* native <select>: replace the OS arrow with one that matches the dark theme */
select{appearance:none;-webkit-appearance:none;-moz-appearance:none;
  padding-right:30px;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b98a9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center}
select:hover{border-color:var(--accent)}

/* combobox: same arrow, drawn on the wrapper so it sits over the text input */
.combo{position:relative}
.combo::after{content:"";position:absolute;right:11px;top:50%;margin-top:-3px;
  width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;
  border-top:6px solid var(--dim);pointer-events:none;z-index:2}
.combo:hover::after{border-top-color:var(--accent)}
.combo-input{padding-right:30px;cursor:pointer}
.combo-input:focus{cursor:text}
.combo-narrow{min-width:150px}

/* last-synced indicator next to the role sync button */
.syncrow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.syncrow form{margin:0}
.syncstate{font-size:13px;color:var(--dim)}
.syncstate.stale{color:var(--mgr)}
.syncstate b{font-weight:700}

/* tier badges mirror the Discord role colours */
.usermenu-head .tier-admin{color:#EC5F9E}
.usermenu-head .tier-manager{color:#F1C40F}
.usermenu-head .tier-member{color:#8257E5}

/* settings form labels */
.fieldlbl{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--dim);font-weight:600}

/* raid detail panel */
.raiddetail{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media (max-width:760px){.raiddetail{grid-template-columns:1fr}}
.raiddetail h4{margin:2px 0 8px;font-size:13px;color:var(--dim);text-transform:uppercase;letter-spacing:.5px}
.sub-grid{margin:0}
.sub-grid th,.sub-grid td{padding:4px 8px;font-size:13px}
.raidname{font-weight:700}

/* Admin tab — GM pink, the same colour the GM role uses in Discord */
.topbar nav a.adm{color:var(--adm)}
.topbar nav a.active.adm{color:var(--adm)}
.topbar nav a.active.adm::after{background:var(--adm)}

/* inline "what the numbers are" note inside an organizer section */
.note{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:9px 12px;
  background:var(--panel2);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:8px;font-size:13px;color:var(--dim);line-height:1.45}
.note-k{flex:0 0 auto;font-size:15px;font-weight:800;color:var(--text);white-space:nowrap}
.note b{color:var(--text);font-weight:700}

/* rewards modifier table */
.modifiers input{max-width:82px}
.modifiers .inline-num{max-width:74px;padding:3px 6px}
.modifiers td{vertical-align:middle}
input:disabled,select:disabled{opacity:.65;cursor:not-allowed;background:#0b0e13}

/* unlink control on a character badge (organizers and above only) */
.unlinkform{display:inline;margin:0}
button.unlink{margin-left:2px;padding:0 5px;font-size:11px;line-height:16px;height:17px;
  color:var(--dim);background:transparent;border:1px solid var(--line);border-radius:4px;cursor:pointer}
button.unlink:hover{color:#fff;background:var(--neg);border-color:var(--neg)}

/* confirmation modal */
.modal-back{position:fixed;inset:0;z-index:200;display:flex;align-items:center;
  justify-content:center;background:rgba(6,9,14,.72);padding:20px}
/* display:flex above beats the browser default [hidden]{display:none}, so restate it */
.modal-back[hidden]{display:none}
body.modal-open{overflow:hidden}
.modal{width:100%;max-width:430px;background:var(--panel);border:1px solid var(--line);
  border-radius:12px;padding:20px;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.modal h3{margin:0 0 10px;font-size:17px;color:var(--text)}
.modal .modal-body{margin:0 0 18px;color:var(--dim);font-size:14px;line-height:1.5;white-space:pre-line}
.modal-actions{display:flex;justify-content:flex-end;gap:10px}
.modal-actions button{padding:8px 16px;border-radius:8px;border:1px solid var(--line);
  background:var(--panel2);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.modal-actions .ghost:hover{border-color:var(--accent);color:var(--accent)}
.modal-actions .danger{background:var(--neg);border-color:var(--neg);color:#fff}
.modal-actions .danger:hover{filter:brightness(1.1)}
.modal-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* test-mode banner */
  color:var(--text);background:rgba(241,196,15,.10);border-bottom:1px solid rgba(241,196,15,.45)}
.chip-test{display:inline-block;padding:0 6px;border-radius:4px;font-size:11px;font-weight:700;
  color:#0e1116;background:var(--mgr);margin-right:6px;vertical-align:1px}

/* inline checkbox + label on a form row */
.checkrow{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:13px;color:var(--dim)}
.checkrow input{width:auto}

/* economy stat tiles */
.stats{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}
.stat{flex:1 1 150px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.stat.big{flex:2 1 260px;border-color:var(--accent)}
.stat .k{display:block;font-size:26px;font-weight:800;color:var(--text);line-height:1.1}
.stat.big .k{font-size:34px;color:var(--accent)}
.stat .l{display:block;margin-top:4px;font-size:13px;color:var(--dim);font-weight:600}
.stat .h{display:block;margin-top:6px;font-size:12px;color:var(--dim);line-height:1.4}

/* vesting progress on My DKP */
.vest{margin:14px 0 18px}
.vest-bar{height:10px;border-radius:6px;background:var(--panel2);
  border:1px solid var(--line);overflow:hidden}
.vest-bar span{display:block;height:100%;background:var(--accent);
  transition:width .3s ease}
.vest-lbl{margin-top:8px;font-size:13px;color:var(--dim)}


/* the one card that ends a phase for everybody */
.card.danger{border-color:#7a3b3b}
.card.danger h2{color:#e5843b}

/* attendance strip on My DKP: one marker per raid week, oldest first */
.weekstrip{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:10px 0 14px}
.weekstrip li{display:flex;flex-direction:column;align-items:center;gap:5px;
  min-width:38px;cursor:default}
.weekstrip .dot{width:22px;height:22px;border-radius:6px;
  border:1px solid var(--line);background:var(--panel2)}
.weekstrip .hit .dot{background:var(--accent);border-color:var(--accent)}
.weekstrip .pre .dot{background:transparent;border-style:dashed;opacity:.45}
.weekstrip .wk{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
.weekstrip .hit .wk{color:var(--text);font-weight:600}

/* "due at your first raid next week", directly under the balance on My DKP */
.coming{margin:-6px 0 22px;padding:14px 16px;border:1px solid var(--line);
  border-left:3px solid var(--accent);border-radius:10px;background:var(--panel)}
.coming-head{font-size:13px;font-weight:700;color:var(--dim);
  text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.coming-rows{display:flex;flex-wrap:wrap;gap:10px 28px}
.coming-row{display:flex;align-items:baseline;gap:10px;flex:1 1 260px}
.coming-row .n{font-size:22px;font-weight:800;color:var(--accent);
  white-space:nowrap;font-variant-numeric:tabular-nums}
.coming-row .w{font-size:13px;color:var(--dim);line-height:1.4}
.coming-note{margin-top:10px;font-size:12px;color:var(--dim);opacity:.8}

/* Long tables scroll inside their own box rather than stretching the page. The header stays
   put while the rows move, so you can still tell what a column is halfway down. */
.scrollbox{max-height:420px;overflow-y:auto;overflow-x:auto;
  border:1px solid var(--line);border-radius:10px;margin:0 0 18px}
.scrollbox > .grid{margin:0;border:0}
.scrollbox thead th{position:sticky;top:0;z-index:1;background:var(--panel2)}
.scrollbox::-webkit-scrollbar{width:10px;height:10px}
.scrollbox::-webkit-scrollbar-thumb{background:var(--line);border-radius:6px}
.scrollbox::-webkit-scrollbar-thumb:hover{background:var(--dim)}
/* the gold-order list is short-lived and rarely long; give it less room */
.card .scrollbox{max-height:300px}

/* A note that is telling you something will NOT happen — same box, amber stripe. */
.note.alert{border-left-color:var(--mgr)}
.note.alert .note-k{color:var(--mgr)}

/* Copy button asking to be pressed, after a snapshot lands with the text pre-selected. */
.copybtn.nudge{border-color:var(--accent);color:var(--accent);animation:nudge 1.4s ease-in-out 3}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}

/* Role and spec as they wrote it when applying — informational, never load-bearing. */
.chip-role{font-size:11px;padding:1px 7px;border-radius:10px;color:var(--dim);
  background:var(--panel2);border:1px solid var(--line);white-space:nowrap;
  max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block;
  vertical-align:middle}

/* ---- Squawk Loot suite bar: DKP / LC / WoW Forever Database, same menu as squawk.team ---- */
.suite{display:flex;align-items:center;gap:14px;padding:6px 20px;background:#0a0d12;border-bottom:1px solid var(--line);
  position:relative;z-index:70}
.suite-brand{display:flex;align-items:baseline;gap:2px;color:var(--text);font:700 16px/1 Georgia,"Palatino Linotype",serif;letter-spacing:.05em}
.suite-brand:hover{text-decoration:none}
.suite-brand i{font-style:normal;color:#f0a63a}
.suite-brand em{font-style:normal;color:#f0a63a;margin-left:4px;letter-spacing:0}
.suite .mm{display:flex;gap:2px;margin-left:auto;align-items:center}
.suite .mi{position:relative}
.suite .mi[hidden],.suite .sub a[hidden]{display:none}
.suite .mt{display:inline-flex;align-items:center;gap:6px;font:600 13.5px/1 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--dim);background:none;border:0;padding:6px 10px;border-radius:7px;cursor:pointer}
.suite .mt svg{width:10px;height:6px;transition:transform .15s}
.suite .mt:hover,.suite .mi.open .mt{color:var(--text);background:var(--panel2)}
.suite .mi.on .mt{color:#1a1408;background:#f0a63a}
.suite .sub{display:none;position:absolute;right:0;top:100%;margin-top:4px;padding:6px;min-width:190px;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.suite .sub::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.suite .mi.open .sub{display:block}
@media (hover:hover){.suite .mi:hover .sub{display:block}.suite .mi:hover .mt svg{transform:rotate(180deg)}}
.suite .sub a{display:block;padding:7px 10px;border-radius:7px;color:var(--text);font-size:14px;font-weight:500}
.suite .sub a:hover{background:var(--panel2);text-decoration:none}
.suite .sub a[aria-current]{color:#f0a63a;font-weight:650}
@media (max-width:640px){.suite{flex-wrap:wrap;padding:6px 12px}.suite .mm{margin-left:0;width:100%}
  .suite .sub{left:0;right:auto}.suite .mi:last-child .sub{left:auto;right:0}}
.suite .mu .uchip{gap:7px;padding:4px 11px 4px 4px;border:1px solid color-mix(in srgb,var(--rc,var(--line)) 70%,transparent);border-radius:999px;color:var(--text)}
.suite .mu .uchip:hover,.suite .mu.open .uchip{background:var(--panel2)}
.suite .mu .uav{width:24px;height:24px;border-radius:50%;display:block;object-fit:cover}
.suite .mu .uav-x{display:grid;place-items:center;background:var(--panel2);font-weight:700;font-size:12px}
.suite .mu .un{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suite .mu .uhead{padding:6px 10px 9px;margin-bottom:4px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.suite .mu .uhead b{flex-basis:100%}
.suite .mu .urole{font-size:12.5px;font-weight:650}
.suite .mu .urank{font-size:12.5px;color:var(--dim)}
.suite .mu .uout:hover{color:var(--neg)}
.suite .mlogin{font-weight:600;font-size:13.5px;padding:5px 14px;border-radius:999px;background:#5865F2;color:#fff;margin-left:4px}
.suite .mlogin:hover{text-decoration:none;filter:brightness(1.08)}
@media (max-width:640px){.suite .mu .un{display:none}.suite .mu .uchip{padding-right:6px}}

/* ---- Admin > Discord setup ---- */
.ds-link{margin:-4px 0 14px}
.card.guide{border-color:var(--accent);position:relative}
.card.guide ol{margin:6px 0 0;padding-left:20px;line-height:1.6}
.guide-x{position:absolute;top:10px;right:12px;background:none;border:0;color:var(--dim);font-size:20px;cursor:pointer}
.hint{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--panel2);color:var(--dim);font-size:12px;cursor:help;vertical-align:middle}
.ds-ranks{display:grid;gap:6px;margin:10px 0}
.ds-row{display:grid;grid-template-columns:64px minmax(160px,1.2fr) minmax(160px,1fr) minmax(170px,.8fr) 36px;column-gap:8px;row-gap:3px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.ds-row.ds-head{color:var(--dim);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.ds-row input,.ds-row select{width:100%;box-sizing:border-box}
.ds-move{display:flex;gap:4px}
.ds-move button{padding:4px 8px}
.ds-adv summary{cursor:pointer;color:var(--dim);margin-top:6px}
.ds-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.ds-grid label,#ds-chans label{display:flex;flex-direction:column;gap:4px}
#ds-chans{display:grid;gap:12px}
#ds-realms{width:100%;box-sizing:border-box;background:#0b0e13;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.ds-save{position:sticky;bottom:0;padding:12px 0 14px;background:var(--panel2);border-top:1px solid var(--line);margin-top:4px}
.ds-under{font-weight:400;color:var(--dim);font-size:12px}
@media (max-width:760px){.ds-row{grid-template-columns:1fr}.ds-row.ds-head{display:none}}
.ds-row .ds-about{grid-column:2 / -1;line-height:1.35;padding-left:2px}
.ds-row:last-child{border-bottom:0}
.ds-del{width:32px;height:32px;padding:0;font-size:18px;line-height:1;border-radius:8px;background:var(--panel2);color:var(--dim);border:1px solid var(--line);cursor:pointer}
.ds-del:hover{color:var(--neg);border-color:var(--neg)}
@media (max-width:760px){.ds-row .ds-about{grid-column:1}}

/* ---- sign-in pages (/auth/...) ---- */
.authpage{max-width:520px;margin:10vh auto 0;text-align:center}
.authpage h1{font-size:30px}
.btn.discord{background:#5865F2;border-color:#5865F2}

/* ---- /start and first-run setup ---- */
.start-hero{text-align:center;padding:30px 0 10px}
.start-hero h1{font-size:34px;line-height:1.2;margin:0 0 12px}
.start-hero .lede{font-size:17px;color:var(--dim);max-width:640px;margin:0 auto 20px}
.start-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:20px 0}
.start-grid .card h2{margin-top:0}
.start-how ol,.su-check{line-height:1.7;padding-left:20px}
.su-step{position:relative;padding-left:58px}
.su-n{position:absolute;left:16px;top:18px;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800}
.su-ranks{display:grid;gap:8px;margin:10px 0}
.su-rank{display:grid;grid-template-columns:1fr minmax(180px,260px);gap:12px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.su-rank small{display:block}
.su-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.su-choice{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--panel2)}
.su-choice:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.su-choice input{align-self:flex-start}
.su-choice span{color:var(--dim);font-size:13.5px}
.su-go{margin:10px 0 20px}
.su-done{border-color:var(--pos)}

/* Admin: expandable sections (Discord setup, DKP, ...) */
details.acc{border:1px solid var(--line);border-radius:12px;background:var(--panel2);margin:0 0 12px}
details.acc>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  padding:14px 18px;border-radius:12px;user-select:none}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary::before{content:"";width:8px;height:8px;border-right:2px solid var(--dim);border-bottom:2px solid var(--dim);
  transform:rotate(-45deg);transition:transform .15s;align-self:center;flex:none}
details.acc[open]>summary::before{transform:rotate(45deg)}
details.acc>summary:hover{background:var(--panel)}
details.acc>summary .acc-t{font-size:18px;font-weight:700;color:var(--text)}
details.acc>summary .acc-d{font-size:13px;color:var(--dim)}
details.acc[open]>summary{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
details.acc>.acc-body{padding:14px 14px 4px}

/* Admin cards: room to breathe between rows, notes, ticks and the Save button */
.acc-body .card{padding:20px 22px;margin-bottom:14px}
.acc-body .card .sub{margin-bottom:14px}
.acc-body .card .row{gap:14px;margin:0 0 14px}
.acc-body .card .note{margin:0 0 16px}
.acc-body .card .checkrow{margin:10px 0}
.acc-body .card form>button,.acc-body .card form>.btn{margin-top:8px}
.acc-body .card form+p,.acc-body .card form+.sub{margin-top:18px}

/* Admin > DKP simulation */
.sim-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-bottom:6px}
.sim-form fieldset{border:1px solid var(--line);border-radius:10px;padding:10px 12px 12px;margin:0;display:grid;gap:8px}
.sim-form fieldset.wide{grid-column:1/-1;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.sim-form legend{font-weight:700;color:var(--text);padding:0 4px;font-size:13px}
.sim-form input{width:100%}
.sim-go{grid-column:1/-1;display:flex;gap:12px;align-items:center}
.sim-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin:6px 0 14px}
.sim-charts figure{margin:0;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel2)}
.sim-charts figcaption{font-weight:700;font-size:13px;margin-bottom:4px}
.sim-svg{width:100%;height:auto;display:block}
.sim-svg .gl{stroke:var(--line);stroke-width:1}
.sim-svg .ax{fill:var(--dim);font-size:10px}
.sim-key{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--dim);margin-top:4px}
.sim-key i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.sim-t td,.sim-t th{white-space:nowrap}
#sim-flags ul{margin:6px 0 0 18px;padding:0}

/* The installation's identity next to the Squawk Loot mark (drawn by suite.js) */
.sq-id{display:inline-flex;align-items:center;gap:7px;margin-left:14px;padding:3px 10px 3px 6px;border:1px solid var(--line);
  border-radius:999px;background:var(--panel);font:600 13px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);white-space:nowrap;min-width:0;letter-spacing:0}
.sq-id .sq-emb{width:22px;height:22px;flex:none;border-radius:50%}
.sq-id b{font-weight:700}
.sq-id .sq-rl{color:var(--dim);font-weight:500}
.sq-id .sq-rl::before{content:"·";margin-right:6px}
@media (max-width:720px){.sq-id .sq-rl{display:none}.sq-id{margin-left:8px}}
.su-choice .sq-emb{width:26px;height:26px;border-radius:50%;flex:none}

/* phone: an open menu spans the screen under the header; the DKP links wrap instead of overflowing */
@media (max-width:640px){
  .suite .sub{position:fixed;left:8px;right:8px;top:var(--subtop,auto);min-width:0}
  .suite .mi:hover .sub{display:none}.suite .mi.open .sub{display:block}
  .topbar{flex-wrap:wrap}
  .topbar nav{flex-wrap:wrap;gap:6px 14px;margin-left:0;max-width:100%}
  .scrollbox{max-width:100%;overflow-x:auto}
}
