.design-content { grid-template-rows: auto auto minmax(0, 1fr); }
.named-waitlist-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--signal) 4%, var(--surface-solid)); }
.named-waitlist-bar > span { color: var(--muted); font-size: .8rem; }
.waitlist-navigation, .transmitter-waitlists { position: relative; }
.waitlist-single-name { display: block; max-width: min(250px, 60vw); overflow: hidden; color: var(--ink); font-size: .9rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.live-waitlist-page:not(.status-board-page) .live-waitlist-header { gap: 20px; }
.live-header-waitlist { display: flex; flex: 1 1 auto; justify-content: center; min-width: 0; }
.live-header-waitlist > .waitlist-navigation { min-width: 0; max-width: 100%; }
.live-header-waitlist .waitlist-single-name { max-width: 250px; }
.live-header-waitlist .waitlist-switch-trigger { box-sizing: border-box; }
.live-waitlist-page:not(.status-board-page) .live-header-actions { flex-shrink: 0; }
.live-waitlist-list-name { display: none; }
.status-board-page .live-waitlist-list-name { display: block; color: var(--muted); font-size: .75rem; }
.waitlist-switch-trigger, .waitlist-assignment-trigger { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface-solid); box-shadow: none; text-align: left; }
.waitlist-switch-trigger:hover, .waitlist-assignment-trigger:hover { border-color: var(--signal); color: var(--ink); background: color-mix(in srgb, var(--signal) 7%, var(--surface-solid)); transform: none; }
.waitlist-switch-icon, .waitlist-choice-symbol { display: inline-grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--signal); background: var(--signal-soft); }
.waitlist-switch-copy { display: grid; gap: 3px; min-width: 0; }
.waitlist-switch-copy small { color: var(--muted); font-size: .63rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.waitlist-switch-copy strong { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.waitlist-switch-trigger > app-icon:last-child { color: var(--muted); margin-left: 12px; }
.waitlist-switch-panel, .waitlist-assignment-panel { position: absolute; z-index: 1800; top: calc(100% + 10px); left: 0; width: min(390px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface-solid); box-shadow: 0 22px 65px rgb(0 0 0 / 22%); text-align: left; }
.waitlist-switch-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow-y: auto; }
.waitlist-switch-panel > * { flex-shrink: 0; }
.waitlist-switch-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.waitlist-switch-panel h2 { margin: 5px 0 0; color: var(--ink); font-size: 1.65rem; letter-spacing: -.04em; }
.waitlist-switch-panel p, .waitlist-assignment-panel p, .waitlist-lan-section > p { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.waitlist-switch-panel header p { margin: 0; }
.waitlist-icon-button { display: inline-grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; box-shadow: none; }
.waitlist-switch-panel > .waitlist-choice-list { flex-shrink: 1; }
.waitlist-choice-list { display: grid; grid-auto-rows: max-content; gap: 8px; min-height: 84px; max-height: min(240px, 30dvh); padding: 4px; overflow-y: auto; overscroll-behavior: contain; }
.waitlist-choice-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); background: transparent; box-shadow: none; text-align: left; }
.waitlist-choice-list button:hover, .waitlist-choice-list button.selected { border-color: color-mix(in srgb, var(--signal) 38%, var(--line)); background: var(--signal-soft); transform: none; }
.waitlist-choice-list button > span:nth-child(2) { flex: 1; min-width: 0; }
.waitlist-choice-list strong { display: block; overflow-wrap: anywhere; font-size: .9rem; font-weight: 600; }
.waitlist-choice-list small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.waitlist-choice-list button > app-icon { color: var(--signal); }
.waitlist-switch-panel > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.waitlist-new-button, .waitlist-rename-button { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: transparent; box-shadow: none; font-size: .75rem; }
.waitlist-new-button { color: var(--ink); background: var(--signal-soft); }
.waitlist-new-button:hover:not(:disabled), .waitlist-rename-button:hover:not(:disabled) { color: var(--ink); background: var(--signal-soft); border-color: var(--signal); transform: none; }
.waitlist-name-form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 12px; min-width: 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.waitlist-name-form label { display: grid; gap: 8px; color: var(--ink); font-size: .8rem; }
.waitlist-name-form input[type="text"] { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.waitlist-start-options { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.waitlist-start-options legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: .8rem; }
.waitlist-start-options label { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.waitlist-start-options label:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); }
.waitlist-start-options input { flex: 0 0 17px; width: 17px; height: 17px; min-height: 17px; margin: 1px 0 0; accent-color: var(--signal); }
.waitlist-start-options span { display: grid; gap: 2px; min-width: 0; }
.waitlist-start-options strong, .waitlist-start-options small { display: block; overflow-wrap: anywhere; }
.waitlist-start-options strong { line-height: 1.25; }
.waitlist-start-options small { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.waitlist-name-form p { margin: 0; }
.waitlist-name-actions, .waitlist-assignment-panel footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.waitlist-name-form button, .waitlist-assignment-panel footer button { min-height: 38px; padding: 8px 13px; border-radius: 10px; font-size: .76rem; }
.waitlist-name-form button:first-child, .waitlist-assignment-panel footer button:first-child { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.waitlist-inline-error { color: #d84a4a !important; }
.waitlist-draft-note { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.waitlist-drawer-scrim { position: fixed; z-index: 1998; inset: 0; width: 100%; height: 100dvh; padding: 0; border: 0; border-radius: 0; background: rgb(0 0 0 / 45%); backdrop-filter: blur(5px); box-shadow: none; cursor: default; }
.waitlist-drawer-scrim:hover { background: rgb(0 0 0 / 45%); transform: none; }
.is-drawer .waitlist-switch-panel { position: fixed; z-index: 1999; inset: 0 auto 0 0; width: min(400px, calc(100vw - 24px)); height: 100dvh; max-height: 100dvh; padding: 28px 22px; border-radius: 0 24px 24px 0; overflow-y: auto; animation: waitlist-slide-in .22s ease-out; }
.is-drawer .waitlist-choice-list { max-height: none; }
.waitlist-assignment-trigger { gap: 8px; min-height: 38px; min-width: 150px; padding: 7px 10px; border-radius: 10px; font-size: .75rem; font-weight: 600; }
.waitlist-assignment-trigger > span { flex: 1; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waitlist-assignment-panel { left: auto; right: 0; width: 300px; padding: 18px; border-radius: 16px; }
.waitlist-assignment-panel header { display: grid; gap: 5px; }
.waitlist-assignment-panel header small { color: var(--muted); font-size: .67rem; }
.waitlist-assignment-panel label { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 9px; color: var(--ink); border-radius: 9px; font-size: .8rem; cursor: pointer; }
.waitlist-assignment-panel label:hover { background: var(--signal-soft); }
.waitlist-assignment-panel input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--signal); }
.waitlist-assignment-panel label small { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; }
.waitlist-assignment-all { background: var(--signal-soft); }
.waitlist-assignment-options { display: grid; max-height: 240px; overflow-y: auto; padding: 6px 0; margin: 8px 0 12px; border-block: 1px solid var(--line); }
.waitlist-assignment-warning { color: var(--signal) !important; }
.users-table-wrap:has(.waitlist-assignment-panel) { overflow: visible; }
.waitlist-lan-section { margin: 32px 0 60px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); }
.waitlist-lan-section h2 { margin: 4px 0; font-size: 1.15rem; }
.waitlist-lan-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.waitlist-lan-row > div { flex: 1; min-width: 0; }
.waitlist-lan-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
@keyframes waitlist-slide-in { from { transform: translateX(-100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 760px) {
  .named-waitlist-bar { flex-wrap: wrap; padding: 12px; }
  .named-waitlist-bar > span { display: none; }
  .is-drawer .waitlist-switch-trigger { padding: 5px 10px; min-height: 40px; gap: 8px; }
  .live-waitlist-page:not(.status-board-page) .live-waitlist-header { flex-wrap: wrap; gap: 10px; }
  .live-waitlist-page:not(.status-board-page) .live-waitlist-header-brand,
  .live-header-waitlist,
  .live-waitlist-page:not(.status-board-page) .live-header-actions { flex-basis: 100%; }
  .live-waitlist-list-name { display: block; flex-basis: 100%; color: var(--muted); font-size: .7rem; }
  .transmitters-table td:nth-child(7)::before { content: "Waitlists"; }
  .transmitters-table td:nth-child(8)::before { content: "Status"; }
  .transmitters-table td:nth-child(9)::before { content: "Actions"; }
  .waitlist-assignment-panel { position: fixed; z-index: 2200; top: 50%; left: 50%; width: min(330px, calc(100vw - 24px)); max-height: 85dvh; overflow-y: auto; transform: translate(-50%, -50%); }
  .waitlist-lan-row { flex-wrap: wrap; }
  .waitlist-lan-row > transmitter-waitlists { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .is-drawer .waitlist-switch-panel { animation: none; } }
