/* FUTC World Cup — accounts, Free agents, managers' line-up editor, admin page.
   Uses the colour tokens defined in index.html (and admin.html), so both themes just work. */

/* ---------- shared bits ---------- */
.btn[hidden] { display: none; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .ico svg, .btn > svg { width: 16px; height: 16px; display: block; flex: none; }
.btn.armed, .linkish.armed { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }
form[hidden], .form-grid[hidden], .form-gate[hidden], .form-status[hidden], .fa-side:empty { display: none !important; }

.av {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--invert);
  color: var(--on-invert);
  font: 700 11px var(--data);
  letter-spacing: 0.04em;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.lg { width: 58px; height: 58px; font-size: 18px; }

.who-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-txt { display: grid; min-width: 0; line-height: 1.25; }
.who-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.who-name .nm { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag.who-flag { width: 20px; flex: none; border-radius: 2px; font-size: 7px; }
.flag.who-flag img, .flag.acct-flag img, .flag.tag-flag img, .my-apps .flag img { filter: none; opacity: 1; }
.who-line.big .av { width: 46px; height: 46px; font-size: 15px; }
.who-line.big .nm { font: 700 21px/1.1 var(--display); letter-spacing: -0.03em; }

.linkish {
  border: 0;
  background: none;
  padding: 2px 0;
  border-radius: 4px;
  font: 600 11.5px var(--data);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.linkish:hover { color: var(--ink); }
.linkish.armed { padding: 2px 6px; }

.count { align-self: flex-end; font: 600 11px var(--data); letter-spacing: 0.06em; color: var(--muted); }
.count.over { color: var(--ink); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
fieldset.chips { border: 0; margin: 0; padding: 0; min-width: 0; grid-column: 1 / -1; }
fieldset.chips legend { padding: 0; margin-bottom: 9px; font: 600 12px var(--data); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
fieldset.chips .hint { flex-basis: 100%; margin: 2px 0 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--shell);
  font: 600 13px var(--data);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-btn {
  border: 1px solid var(--line);
  background: var(--shell);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 13.5px var(--body);
  color: var(--ink-2);
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- pop-up panels ---------- */
dialog.sheet {
  width: min(560px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--shell);
  color: var(--ink);
  box-shadow: var(--lift);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.35s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
dialog.sheet.narrow { width: min(470px, calc(100% - 24px)); }
dialog.sheet.acct { width: min(660px, calc(100% - 24px)); }
dialog.sheet.composer { width: min(580px, calc(100% - 24px)); }
dialog.sheet.lu-editor { width: min(1140px, calc(100% - 24px)); }
.sheet-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.sheet-head h3 { margin: 4px 0 0; font: 700 26px/1.05 var(--display); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 22px; }
.sheet-lead { margin: 0 0 8px; color: var(--ink-2); }
.fine-list { margin: 12px 0 20px; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.discord-go { width: 100%; }
.discord-go svg { width: 20px; height: 20px; }
.sheet-toast {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--invert);
  color: var(--on-invert);
  font: 500 14px var(--body);
}
.sheet-toast[hidden] { display: none; }
.sheet-toast button { flex: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 8px; padding: 5px 10px; font: 600 12px var(--data); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.sheet-toast button[hidden] { display: none; }

@media (max-width: 720px) {
  dialog.sheet, dialog.sheet.narrow, dialog.sheet.acct, dialog.sheet.composer, dialog.sheet.lu-editor {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto auto 0;
    border-radius: 18px 18px 0 0;
  }
  dialog.sheet.lu-editor { max-height: 96vh; }
  dialog.sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40%); opacity: 0.4; } }
  .sheet-head { padding: 16px 16px 0; }
  .sheet-body { padding: 14px 16px 20px; }
}

/* ---------- header account button ---------- */
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  max-width: 190px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--shell);
  color: var(--ink);
  font: 600 13px var(--data);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s;
}
.acct-btn:hover { border-color: var(--ink); }
.acct-btn .acct-ico { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.acct-btn .acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn.in .acct-name { font: 600 14px var(--body); letter-spacing: 0; text-transform: none; }
.mgr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--shell);
  color: var(--ink);
  font: 600 13px var(--data);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.mgr-link:hover { border-color: var(--ink); }
.mgr-link[hidden] { display: none; }
.mgr-link svg { flex: none; }
@media (max-width: 1100px) {
  .mgr-link { width: 42px; padding: 0; justify-content: center; }
  .mgr-link .mgr-name { display: none; }
}
@media (max-width: 720px) {
  .acct-btn { width: 42px; padding: 0; justify-content: center; }
  .acct-btn .acct-name { display: none; }
}

.demo-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  border: 1px dashed var(--line-strong);
  background: var(--shell);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 11.5px var(--data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--lift);
  cursor: pointer;
}
.demo-users { display: grid; gap: 8px; margin-top: 14px; }
.demo-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--shell);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.demo-user:hover, .demo-user[aria-current] { border-color: var(--ink); }

/* ---------- my account ---------- */
.acct-card { display: flex; gap: 14px; align-items: center; }
.acct-card > div { display: grid; gap: 2px; min-width: 0; }
.acct-card strong { font: 700 22px/1.1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.acct-sec { border-top: 1px solid var(--line); margin-top: 18px; }
.acct-sec > .qc-sub { margin-top: 16px; }
.acct-form { gap: 16px; }
.acct-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-row p { flex: 1; min-width: 200px; margin: 0; color: var(--ink-2); }
.flag.acct-flag { width: 46px; flex: none; }
.req-form { margin-top: 4px; }
.btn.danger:hover { border-color: var(--ink); }

/* ---------- Qualifiers: members on the nation card ---------- */
.qc-live { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qc-live .qc-sub { margin-top: 16px; }
.staff.members li { padding: 7px 10px; }
.staff.members li.vacant { color: var(--muted); font-size: 14px; }

/* ---------- Register + Staff forms ---------- */
.form-gate { display: grid; gap: 10px; justify-items: start; }
.form-gate strong { font: 700 22px/1.1 var(--display); letter-spacing: -0.03em; }
.form-gate p { margin: 0 0 4px; color: var(--muted); max-width: 52ch; }
.form-gate .btn svg { width: 18px; height: 18px; }
.apply-sub + .form-gate, .apply-sub + .form-gate + .form-status { margin-top: 16px; }
.form-status { margin: 0 0 18px; }
.form-who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.form-who strong { color: var(--ink); }
.reg-state { margin: 12px 0 0; font: 600 12px var(--data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.my-apps { margin-top: 20px; }
.my-apps .staff li { background: var(--shell); }
.my-apps .flag { width: 26px; flex: none; }

/* ---------- Free agents ---------- */
#free-agents { scroll-margin-top: 90px; }
.fa-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fa-bar-btns { display: flex; gap: 8px; }
.fa-count { margin: 0; font: 600 12px var(--data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fa { --fa-h: min(78vh, 760px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.fa-stage { display: flex; align-items: center; gap: 12px; }
.fa-feed {
  position: relative;
  width: calc(var(--fa-h) * 0.5625);
  max-width: 100%;
  height: var(--fa-h);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 18px;
  background: #000;
  color: #fff;
  scrollbar-width: none;
}
.fa-feed::-webkit-scrollbar { display: none; }
.fa-feed:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.fa-slide { position: relative; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.fa-media { position: absolute; inset: 0; display: grid; place-items: center; }
.fa-media img, .fa-media video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.fa-media video { cursor: pointer; }
.fa-play {
  position: absolute;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.fa-play .ico svg { width: 30px; height: 30px; margin-left: 4px; }
.fa-slide.playing .fa-play { opacity: 0; transform: scale(0.8); }
.fa-dur { position: absolute; top: 12px; left: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font: 600 12px var(--data); letter-spacing: 0.06em; }
.fa-info {
  position: absolute;
  left: 0;
  right: 66px;
  bottom: 0;
  padding: 70px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.fa-info > * { pointer-events: auto; }
.fa-info .who-line { pointer-events: none; }
.who-line.on-media .nm { color: #fff; }
.who-line.on-media .who-sub { color: rgba(255, 255, 255, 0.72); }
.who-line.on-media .av { background: #fff; color: #000; }
.fa-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font: 600 11px var(--data); letter-spacing: 0.08em; text-transform: uppercase; }
.tag.on { background: #fff; color: #000; }
.flag.tag-flag { width: 16px; border-radius: 2px; }
.fa-cap { margin: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.fa-cap.open { -webkit-line-clamp: unset; display: block; white-space: pre-wrap; }
.fa-time { font: 600 11px var(--data); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.fa-rail { position: absolute; right: 8px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fa-act { display: grid; justify-items: center; gap: 3px; border: 0; background: none; padding: 0; color: #fff; cursor: pointer; }
.fa-act .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); transition: background 0.2s, color 0.2s, transform 0.25s var(--ease); }
.fa-act .ico svg { width: 22px; height: 22px; }
.fa-act:hover .ico { background: rgba(0, 0, 0, 0.7); }
.fa-act:active .ico { transform: scale(0.92); }
.fa-act .n { font: 600 11.5px var(--data); letter-spacing: 0.06em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.fa-act.armed .ico, .fa-signbtn .ico { background: #fff; color: #000; }
.fa-act:disabled { opacity: 0.4; cursor: default; }
.fa-slide :focus-visible { outline-color: #fff; }
.fa-nav { display: flex; flex-direction: column; gap: 10px; }
.fa-nav .fa-act { color: var(--ink); }
.fa-nav .fa-act .ico { background: var(--surface); backdrop-filter: none; border: 1px solid var(--line); }
.fa-nav .fa-act:hover .ico { border-color: var(--ink); background: var(--surface); }
.fa.is-empty { --fa-h: min(60vh, 460px); }
.fa.is-empty .fa-nav { visibility: hidden; }
.fa-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; text-align: center; }
.fa-empty strong { font: 700 26px/1.1 var(--display); letter-spacing: -0.03em; }
.fa-empty p { margin: 0; max-width: 30ch; color: rgba(255, 255, 255, 0.72); }
.fa-empty .btn-gold { background: #fff; color: #000; }
.fa-empty .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.fa-side {
  position: sticky;
  top: 100px;
  max-height: var(--fa-h);
  overflow-y: auto;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
}
.fa-side .qc-sub:first-child { margin-top: 0; }
.fa-detail .fa-bio { margin: 12px 0 0; color: var(--ink-2); }
.fa-dl { display: grid; margin: 14px 0; }
.fa-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.fa-dl dt { font: 600 12px var(--data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fa-dl dd { margin: 0; text-align: right; font-weight: 500; }
.fa-full-cap { margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm { margin-top: 6px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fa-side .cm-list { max-height: 330px; overflow-y: auto; padding-right: 4px; }
.cm-item .who-line .av { width: 28px; height: 28px; }
.cm-body { margin: 4px 0 0 38px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.cm-acts { display: flex; gap: 14px; margin: 4px 0 0 38px; }
.cm-empty { color: var(--muted); font-size: 14px; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.cm-form textarea { min-height: 46px; resize: none; padding: 11px 13px; }
.cm-login { margin-top: 12px; }
/* in the phone panel the comment box stays in view while the comments scroll */
.cm-sheet .cm-form { position: sticky; bottom: -22px; margin: 14px -20px -22px; padding: 12px 20px 18px; background: var(--shell); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .cm-sheet .cm-form { bottom: -20px; margin: 14px -16px -20px; padding: 12px 16px 16px; } }

.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font: 400 15px var(--body);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}
.drop:hover, .drop:focus-within { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop .ico svg { width: 30px; height: 30px; }
.drop strong { font: 700 18px var(--display); letter-spacing: -0.02em; }
.drop .hint { max-width: 44ch; }
.drop.small { padding: 12px; grid-template-columns: auto auto; justify-content: center; align-items: center; }
.drop.small .hint { display: none; }
.drop.small strong::after { content: " (pick another)"; font: 500 13px var(--body); color: var(--muted); }
.comp-preview { margin-top: 12px; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.comp-preview img, .comp-preview video { max-width: 100%; max-height: 42vh; display: block; }
.comp-msg { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.comp-msg.bad { color: var(--ink); font-weight: 600; border-left: 3px solid var(--ink); padding-left: 10px; }
.comp-form { margin-top: 14px; }
.opt-list { display: grid; gap: 8px; }
.opt-list .btn { width: 100%; justify-content: flex-start; }
.report-form { display: grid; gap: 16px; }

@media (max-width: 960px) {
  .fa { --fa-h: min(76svh, 700px); grid-template-columns: 1fr; }
  .fa-stage { justify-content: center; }
  .fa-feed { width: min(100%, calc(var(--fa-h) * 0.75)); }
  .fa-side, .fa-nav { display: none; }
}
@media (max-width: 720px) {
  .fa-feed { width: 100%; border-radius: 16px; }
}

/* ---------- managers' line-up editor ---------- */
.lu-edit { margin-top: 18px; }
.le-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.le-tools .field { min-width: 150px; }
.le-tools select { padding: 10px 12px; }
.le-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.le-state { flex-basis: 100%; font: 600 12px var(--data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.le-help { margin: 10px 0 0; }
.le-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 14px; }
.pitch.le-pitch { width: min(100%, 470px, calc((88vh - 250px) * 0.68)); min-width: min(100%, 280px); }
.le-slot {
  position: absolute;
  width: 18%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.le-slot .dot { --d: clamp(30px, 8.4cqw, 46px); position: relative; width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; background: var(--invert); color: var(--on-invert); font: 700 11px var(--data); letter-spacing: 0.04em; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: transform 0.2s var(--ease); }
.le-slot.gk .dot { background: var(--shell); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 6px 16px rgba(0, 0, 0, 0.12); }
.le-slot.empty .dot { background: var(--shell); color: var(--muted); box-shadow: none; outline: 2px dashed var(--line-strong); outline-offset: -2px; }
.le-slot.sel .dot { outline: 3px solid var(--ink); outline-offset: 3px; transform: scale(1.08); }
.le-slot:hover .dot { transform: scale(1.06); }
.le-slot .nm { max-width: 150%; font: 600 12px/1.2 var(--data); background: var(--shell); color: var(--ink); padding: 3px 8px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.le-slot.empty .nm { color: var(--muted); font-style: italic; font-weight: 500; }
.le-slot .cap { position: absolute; top: -5px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--shell); color: var(--ink); font: 700 10px/16px var(--data); text-align: center; border: 1px solid var(--ink); }
.le-panel .qc-sub:first-child { margin-top: 0; }
.le-bench { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; align-items: center; }
.le-chip { border: 1px solid var(--line); background: var(--shell); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--data); color: var(--ink); cursor: pointer; }
.le-chip:hover { border-color: var(--ink); }
.le-chip.sel { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }
.le-squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 44vh; overflow-y: auto; }
.le-row { display: flex; align-items: center; gap: 8px; padding: 2px 12px 2px 2px; border-radius: 12px; background: var(--surface); }
.le-row.sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.le-row.editing { padding: 8px; }
.le-row.editing .le-add { margin: 0; width: 100%; }
.le-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; border-radius: 10px; }
.le-pick .num { width: 24px; flex: none; font: 700 14px var(--display); color: var(--muted); text-align: center; }
.le-pick .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-pick .pos, .le-pick .where { flex: none; font: 600 11px var(--data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.le-pick .where { min-width: 44px; text-align: right; }
.le-pick .where.on { color: var(--ink); }
.le-pick .tag { background: var(--invert); color: var(--on-invert); }
.le-acts { display: flex; gap: 12px; flex: none; }
.le-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.le-add input[type="text"], .le-add select { width: auto; padding: 9px 11px; font-size: 15px; }
.le-add input.num-in { width: 60px; }
.le-add input[type="text"]:not(.num-in) { flex: 1; min-width: 130px; }
@media (max-width: 880px) {
  .le-grid { grid-template-columns: minmax(0, 1fr); }
  .le-squad { max-height: none; }
  .le-acts { gap: 10px; }
}
