/* Settings › Station iPads (floor.js). Built on the app's own pieces (card, .btn, .ui-dd dropdown, .ui-badge); only what's new is here. */
.floor-card .fl-body { gap: 16px; }
.fl-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fl-top .meta { font-size: 13px; max-width: 70ch; margin: 0; }
.fl-top .btn svg { margin-left: 2px; }

/* tabs */
.fl-tabs { display: flex; gap: 2px; padding: 3px; background: var(--subtle); border: 1px solid var(--line); border-radius: 10px; align-self: flex-start; flex-wrap: wrap; }
.fl-tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.fl-tab:hover { color: var(--text); }
.fl-tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.fl-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.fl-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--line); color: var(--text-2); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.fl-tab.on .fl-n { background: var(--text); color: var(--surface); }
.fl-n.alert, .fl-tab.on .fl-n.alert { background: #D92D20; color: #fff; }
.fl-panel { min-height: 120px; }

/* stations grid */
.fl-grid { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fl-row { display: grid; grid-template-columns: minmax(120px, 1.15fr) minmax(118px, 1fr) 96px 44px 44px 108px 146px;
  align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.fl-row:first-child { border-top: 0; }
.fl-row.fl-head { min-height: 36px; padding-top: 0; padding-bottom: 0; background: var(--subtle); border-radius: 12px 12px 0 0; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fl-row.fl-head [title] { cursor: help; }
.fl-row:not(.fl-head):hover { background: var(--subtle); }
.fl-row:last-child { border-radius: 0 0 12px 12px; }
.fl-row.off { color: var(--muted); }
.fl-station { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fl-station-1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fl-station-1 strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row.off .fl-station-1 strong { font-weight: 500; }
.fl-station-2 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fl-act { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.fl-act .btn svg, .fl-item .btn svg { margin-right: -1px; }
.fl-legend { margin: 0; line-height: 1.6; }
.fl-legend strong { color: var(--text-2); font-weight: 600; }
@media (max-width: 1100px) {
  .fl-row { grid-template-columns: minmax(120px, 1fr) minmax(118px, 1fr) 96px 44px 44px 108px; gap: 10px; }
  .fl-row > .fl-act { grid-column: 1 / -1; justify-content: flex-start; }
  .fl-row.fl-head > :last-child { display: none; }
}

/* "⋯" menu */
.fl-more-btn { width: 30px; padding: 0; font-size: 16px; letter-spacing: 1px; line-height: 1; }
.fl-more-btn.open { background: var(--subtle); border-color: var(--text); }
.fl-menu { min-width: 230px; right: 0; left: auto; padding: 6px; }
.fl-menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; padding: 8px 10px;
  border-radius: 7px; cursor: pointer; }
.fl-menu-item:hover { background: var(--subtle); }
.fl-menu-item.danger { color: #B42318; }
.fl-menu-ask { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.fl-menu-ask .meta { line-height: 1.45; }
.fl-menu-ask .fl-inline { margin-top: 4px; }
[data-theme="dark"] .fl-menu-item.danger { color: #FDA29B; }

/* the dropdown in a table cell: full width of its column */
.fl-dd { width: 100%; }
.fl-dd-btn { width: 100%; justify-content: space-between; height: 32px; }
.fl-dd-btn .ui-dd-v { font-weight: 500; }
.fl-dd-panel { min-width: 220px; animation: none; }   /* the panel is redrawn on every change: no pop each time */
.fl-dd-panel .ui-dd-opt:hover { background: var(--subtle); }
.fl-muted { color: var(--muted); font-weight: 400 !important; }

/* stepper − 2 + */
.fl-step { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.fl-step button { width: 32px; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; cursor: pointer; }
.fl-step button:hover:not(:disabled) { background: var(--subtle); }
.fl-step button:disabled { color: var(--faint); cursor: default; }
.fl-step-v { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  line-height: 30px; }

/* switch */
.fl-switch { width: 38px; height: 22px; border-radius: 11px; border: 0; background: var(--line-strong); position: relative; cursor: pointer; padding: 0; flex: none;
  transition: background .15s; }
.fl-switch span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .25); }
.fl-switch.on { background: var(--text); }
.fl-switch.on span { transform: translateX(16px); }
.fl-switch:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[data-theme="dark"] .fl-switch.on span { background: #1C1C1C; }

/* iPad status dot */
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.fl-dot.on { background: #12B76A; box-shadow: 0 0 0 3px rgba(18, 183, 106, .15); }

/* lists (people, who to ask, iPads, problems) */
.fl-stack { display: flex; flex-direction: column; gap: 12px; }
.fl-stack > .meta { margin: 0; }
.fl-list { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fl-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 52px;
  flex-wrap: wrap; font-size: 13.5px; }
.fl-item:first-child { border-top: 0; }
.fl-item:hover { background: var(--subtle); }
.fl-item.off { color: var(--muted); }
.fl-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.fl-email { color: var(--text-2); }
.fl-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fl-none { margin: 0; padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.fl-badge { height: 20px; font-size: 11px; padding: 0 6px; }
.fl-station-2 .fl-badge { height: 18px; font-size: 10.5px; padding: 0 5px; }
.fl-pad { display: inline-flex; align-items: center; gap: 6px; }       /* the iPad's dot stays with its words when the line wraps */
.fl-badge.muted { background: none; color: var(--muted); }
.fl-badge.warn { background: #FEF3F2; color: #B42318; border-color: #FECDCA; }
.fl-badge.alert { background: #D92D20; color: #fff; border-color: #D92D20; }
[data-theme="dark"] .fl-badge.warn { background: rgba(217, 45, 32, .14); color: #FDA29B; border-color: #912018; }

/* inputs and the add row */
.fl-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--subtle); }
.fl-in { height: 34px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; min-width: 220px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.fl-in::placeholder { color: var(--faint); }
.fl-in:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(16, 24, 40, .08); }
.fl-in.pin { min-width: 0; width: 96px; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.fl-in.small { min-width: 180px; }

/* in-place confirm */
.fl-confirm { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; border: 1px solid #FECDCA; border-radius: 9px; background: #FEF3F2; color: #B42318;
  font-size: 12.5px; font-weight: 600; }
.btn.fl-danger { background: #D92D20; border-color: #D92D20; color: #fff; }
.btn.fl-danger:hover { background: #B42318; }
[data-theme="dark"] .fl-confirm { background: rgba(217, 45, 32, .12); border-color: #912018; color: #FDA29B; }
.fl-confirm.wide { flex-wrap: wrap; row-gap: 8px; padding: 5px 5px 5px 12px; }    /* the longer Delete question wraps above its buttons when narrow */
.fl-confirm.wide > span { flex: 1 1 240px; }
.btn.fl-del { color: #B42318; }
[data-theme="dark"] .btn.fl-del { color: #FDA29B; }

/* button lists */
.fl-reasons { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fl-reasons .meta { font-size: 12.5px; }
.fl-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fl-chip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 11px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13px; font-weight: 500; }
.fl-chip.off { color: var(--faint); text-decoration: line-through; border-style: dashed; }
.fl-chip-x { width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; }
.fl-chip-x:hover { background: var(--subtle); color: var(--text); }
.fl-chip-add { display: inline-flex; align-items: center; height: 30px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 0 2px 0 10px; }
.fl-chip-add input { border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 13px; width: 130px; }
.fl-chip-add button { width: 24px; height: 24px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; }
.fl-chip-add button:hover { background: var(--subtle); color: var(--text); }
.fl-chip-add:focus-within { border-style: solid; border-color: var(--text); }

/* the empty state */
.fl-empty { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 20px; border: 1px dashed var(--line-strong);
  border-radius: 12px; }
.fl-empty .meta { margin: 4px 0 0; }

/* setup code dialog */
.fl-modal { position: fixed; inset: 0; z-index: 60; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fl-modal.enter { animation: fl-fade .12s ease-out; }
@keyframes fl-fade { from { opacity: 0; } to { opacity: 1; } }
.fl-dialog { position: relative; display: flex; gap: 28px; align-items: center; background: var(--surface); color: var(--text); border-radius: 16px; padding: 28px 30px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .35); max-width: 640px; width: 100%; flex-wrap: wrap; }
.fl-dialog-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.fl-dialog h3 { margin: 0; font-size: 20px; }
.fl-code-big { font-size: 38px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.fl-steps { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.fl-expires { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.fl-qr { padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.fl-qr svg { display: block; }
.fl-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.fl-close:hover { background: var(--subtle); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .fl-modal, .fl-switch, .fl-switch span { animation: none; transition: none; } }
