/* «الجهاز المشترك» — the names, the pad and the strip (station.js).
   Aloke POS and Aloke Scan on the web; the house purple, Readex Pro. */
.stn-picker, .stn-scrim, .stn-strip {
  --stn-accent: #5B2C91;
  --stn-accent-weak: #F0E9F9;
  --stn-ink: #1A160F;
  --stn-muted: #75705F;
  --stn-surface: #FFFFFF;
  --stn-line: #EAE5DB;
  --stn-danger: #B4433A;
}
@media (prefers-color-scheme: dark) {
  .stn-picker, .stn-scrim, .stn-strip {
    --stn-accent: #9C6BE0;
    --stn-accent-weak: #241834;
    --stn-ink: #F4F0E8;
    --stn-muted: #A9A195;
    --stn-surface: #1B1920;
    --stn-line: #2E2A33;
    --stn-danger: #C6524A;
  }
}
.stn-picker {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  text-align: center;
  font-family: "Readex Pro", "Inter", system-ui, sans-serif;
  color: var(--stn-ink);
}
.stn-place { font-size: 22px; margin: 0 0 6px; }
.stn-sub { color: var(--stn-muted); margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.stn-notice {
  max-width: 640px; margin: 0 auto 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--stn-accent-weak); font-size: 14px;
}
.stn-grid {
  display: grid; gap: 12px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  margin: 8px 0 20px;
}
.stn-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 170px; padding: 18px 12px; border-radius: 18px; border: 1px solid var(--stn-line);
  background: var(--stn-surface); color: inherit; font: inherit; cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 18, 15, 0.06);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.stn-card:active { transform: scale(0.97); }
.stn-card.dim { opacity: 0.72; }
.stn-badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--stn-accent-weak); color: var(--stn-accent); font-size: 22px; font-weight: 700;
}
.stn-card.owner .stn-badge { background: linear-gradient(135deg, #5B2C91, #7B44B8); color: #fff; }
.stn-name { font-size: 17px; font-weight: 600; }
.stn-line { font-size: 13px; color: var(--stn-muted); }
.stn-line.bad { color: var(--stn-danger); }
.stn-settings {
  background: none; border: 0; color: var(--stn-muted); font: inherit; font-size: 13px;
  font-weight: 600; min-height: 44px; padding: 0 16px; cursor: pointer;
}
.stn-by { color: var(--stn-muted); font-size: 11px; font-weight: 600; margin-top: 8px; }

.stn-scrim {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: rgba(20, 18, 15, 0.42); padding: 16px;
  font-family: "Readex Pro", "Inter", system-ui, sans-serif;
}
.stn-pad {
  box-sizing: border-box;
  width: min(420px, 100%); background: var(--stn-surface); color: var(--stn-ink);
  border-radius: 24px; padding: 24px; text-align: center;
  box-shadow: 0 20px 48px rgba(20, 18, 15, 0.22);
}
.stn-pad h2 { margin: 0 0 4px; font-size: 20px; }
.stn-pad.shake { animation: stn-shake 360ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes stn-shake {
  20% { transform: translateX(10px); } 40% { transform: translateX(-10px); }
  60% { transform: translateX(6px); } 80% { transform: translateX(-6px); }
}
@media (prefers-reduced-motion: reduce) { .stn-pad.shake { animation: none; } }
.stn-dots { display: flex; justify-content: center; gap: 12px; margin: 16px 0 8px; }
.stn-dots i {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--stn-muted); opacity: 0.6;
}
.stn-dots i.on { background: var(--stn-accent); border-color: var(--stn-accent); opacity: 1; }
.stn-msg { min-height: 22px; color: var(--stn-danger); font-size: 13px; margin: 0 0 8px; }
.stn-keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 16px; justify-content: center; }
.stn-keys button {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--stn-line);
  background: var(--stn-surface); color: var(--stn-ink); font: inherit; font-size: 26px;
  font-weight: 600; cursor: pointer; transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.stn-keys button:active { transform: scale(0.95); }
.stn-keys button[data-k="⌫"] { border-color: transparent; background: none; font-size: 22px; }
.stn-close, .stn-list button {
  display: block; width: 100%; margin-top: 12px; min-height: 44px; border-radius: 999px;
  border: 0; background: none; color: var(--stn-muted); font: inherit; font-weight: 600; cursor: pointer;
}
.stn-list button { background: var(--stn-accent-weak); color: var(--stn-accent); margin-top: 8px; }

.stn-strip {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 6px 16px; background: var(--stn-surface); color: var(--stn-ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Readex Pro", "Inter", system-ui, sans-serif;
}
.stn-who { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stn-switch {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--stn-accent-weak); color: var(--stn-accent); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
