/* Staff screens share the kiosk's monochrome visual language. */
:root {
  font-family: "proxima-nova", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  color-scheme: dark;
  color: #f6f6f4;
  background: #050505;
  --ink: #f6f6f4;
  --paper: #101010;
  --line: #414141;
  --muted: #b0b0b0;
  --accent: #f6f6f4;
  --accent-dark: #f6f6f4;
  --blue: #f6f6f4;
  --green: #f6f6f4;
  --navy: #050505;
  --good: #a6d8bb;
  --success: #a6d8bb;
  --success-bg: #173124;
  --good-bg: #173124;
  --warn: #e8c899;
  --warning: #e8c899;
  --warn-bg: #342616;
  --warning-bg: #342616;
  --danger: #f0a19b;
  --danger-bg: #3a1d1d;
}

body.staff-ui {
  min-height: 100vh;
  background: #050505;
  color: #f6f6f4;
  -webkit-font-smoothing: antialiased;
}

.staff-ui .topbar,
.staff-ui .top {
  background: #050505;
  border-bottom: 1px solid #535353;
  color: #f6f6f4;
  box-shadow: none;
}

.staff-ui .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-ui .brand-logo { display: block; width: 180px; height: auto; flex: none; }
.staff-checkin .brand span { margin-left: 0; }

.staff-ui .brand span,
.staff-ui .account-copy span,
.staff-ui .top nav span { color: #aaa; }

.staff-ui h1,
.staff-ui h2,
.staff-ui h3 { color: #fff; letter-spacing: -.025em; }
.staff-ui h1 { font-weight: 650; }
.staff-ui .workspace-head,
.staff-ui .headline,
.staff-ui .app-head { padding-bottom: 20px; border-bottom: 1px solid #666; }

.staff-ui .staff-status {
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.staff-ui button,
.staff-ui .ghost,
.staff-ui .account-actions a,
.staff-ui .top button {
  border-color: #6a6a6a;
  background: #111;
  color: #f6f6f4;
  box-shadow: none;
}
.staff-ui button:hover:not(:disabled),
.staff-ui .account-actions a:hover { border-color: #fff; background: #222; }
.staff-ui button:disabled { opacity: .42; }
.staff-ui .primary,
.staff-ui button.primary,
.staff-ui .actions .checkin,
.staff-ui .upload-action.ready {
  border: 1px solid #f6f6f4;
  background: linear-gradient(110deg, #f7f7f5, #d8d8d6);
  color: #090909;
  font-weight: 800;
}
.staff-ui .primary:hover:not(:disabled),
.staff-ui button.primary:hover:not(:disabled),
.staff-ui .actions .checkin:hover:not(:disabled),
.staff-ui .upload-action.ready:hover:not(:disabled) {
  background: #fff;
  color: #050505;
}
.staff-ui .login-card .primary,
.staff-ui .login .primary {
  border-radius: 999px;
  min-height: 48px;
}
.staff-ui .ghost,
.staff-ui .refresh,
.staff-ui .secondary { background: transparent; }
.staff-ui .danger,
.staff-ui button.danger,
.staff-ui .actions .danger,
.staff-ui .account-buttons .danger {
  border: 1px solid #895858;
  background: #321c1c;
  color: #ffd4d0;
}

.staff-ui input,
.staff-ui select,
.staff-ui textarea {
  border: 1px solid #666;
  background: #090909;
  color: #f6f6f4;
  box-shadow: none;
}
.staff-ui input::placeholder,
.staff-ui textarea::placeholder { color: #929292; }
.staff-ui input:focus,
.staff-ui select:focus,
.staff-ui textarea:focus,
.staff-ui button:focus-visible,
.staff-ui a:focus-visible {
  border-color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.staff-ui input[type="checkbox"] { accent-color: #f6f6f4; }
.staff-ui .field,
.staff-ui label.field,
.staff-ui .toolbar label { color: #d7d7d7; }
.staff-ui a { color: #f6f6f4; }

.staff-ui .login-card,
.staff-ui .login form,
.staff-ui .card,
.staff-ui .toolbar,
.staff-ui .stat,
.staff-ui .summary article,
.staff-ui .controls,
.staff-ui .table-wrap,
.staff-ui .customer,
.staff-ui .guest-card,
.staff-ui .reservation,
.staff-ui .photo-slot,
.staff-ui dialog {
  border-color: #494949;
  background: #111;
  color: #f6f6f4;
  box-shadow: none;
}
.staff-ui .login-card,
.staff-ui .login form,
.staff-sessions .login {
  border: 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.staff-ui .login-card h1,
.staff-ui .login h1 { text-align: center; font-size: clamp(28px, 5vw, 38px); }
.staff-ui .login-card p,
.staff-ui .login p { text-align: center; }
.staff-ui .card,
.staff-ui .toolbar,
.staff-ui .stat,
.staff-ui .summary article,
.staff-ui .customer,
.staff-ui .guest-card,
.staff-ui .reservation,
.staff-ui .photo-slot { border-radius: 10px; }
.staff-ui dialog { box-shadow: 0 26px 90px rgb(0 0 0 / 72%); }
.staff-ui dialog::backdrop { background: rgb(0 0 0 / 82%); }
.staff-ui .muted,
.staff-ui .app-head p,
.staff-ui .workspace-head p,
.staff-ui .headline p { color: #b0b0b0; }

/* Admin: restrained tables and readable state colors. */
.staff-admin th,
.staff-admin tbody tr:hover,
.staff-admin .processing > div,
.staff-admin .edit-panel,
.staff-admin .account-form,
.staff-admin .thumbnail-card,
.staff-admin .detail,
.staff-admin .download-box { background: #191919; color: #f6f6f4; }
.staff-admin td,
.staff-admin .dialog-head,
.staff-admin .actions { border-color: #414141; }
.staff-admin .studio {
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #313131;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.staff-admin .badge,
.staff-admin .photo-dot { background: #2a2a2a; color: #ddd; }
.staff-admin .badge.good,
.staff-admin .photo-dot.done { background: #173124; color: #bce4ca; }
.staff-admin .badge.warn { background: #342616; color: #f0d2a8; }
.staff-admin .badge.danger,
.staff-admin .photo-dot.fail { background: #3a1d1d; color: #ffc4be; }
.staff-admin .row-action,
.staff-admin .download-box button,
.staff-admin .account-buttons button,
.staff-admin .processing button,
.staff-admin .photo-preview-toggle,
.staff-admin .account-form-actions .neutral,
.staff-admin .actions .neutral { border-color: #666; background: #202020; color: #f6f6f4; }
.staff-admin .destructive-zone { border-color: #895858; background: #251515; }
.staff-admin .destructive-zone button { border-color: #a66d6d; background: #512626; color: #ffe0dc; }
.staff-admin .thumbnail-card img { background: #202020; }
.staff-admin .toast { background: #262626; }
.staff-admin .toast.error { background: #562525; }
.staff-admin .deletion-jobs {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #414141;
  border-radius: 13px;
  background: #111;
}
.staff-admin .deletion-jobs h2 { margin: 0 0 6px; font-size: 16px; }
.staff-admin .deletion-summary { margin: 0; color: #b0b0b0; font-size: 13px; }
.staff-admin .deletion-details { margin-top: 14px; border-top: 1px solid #414141; padding-top: 12px; }
.staff-admin .deletion-details summary { width: fit-content; color: #f6f6f4; font-size: 13px; font-weight: 700; cursor: pointer; }
.staff-admin .deletion-list { margin-top: 10px; }
.staff-admin .deletion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #303030;
  color: #c9c9c9;
  font-size: 12px;
}
.staff-admin .deletion-item span { overflow-wrap: anywhere; }
.staff-admin .deletion-item button { flex: none; }
.staff-admin #account-form .field small { color: #aaa; font-size: 11px; font-weight: 400; }

/* Editor: the portrait area stays dark so uploaded photos lead visually. */
.staff-editor .session-tab,
.staff-editor .guest-card,
.staff-editor .upload-action,
.staff-editor .preview-action { border-color: #666; background: #111; color: #f6f6f4; }
.staff-editor .session-tab.active,
.staff-editor .guest-card.selected {
  border-color: #fff;
  background: #f6f6f4;
  color: #080808;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 15%);
}
.staff-editor .guest-card.selected .guest-meta { color: #545454; }
.staff-editor .guest-card.selected .guest-time { color: #202020; }
.staff-editor .guest-card:hover { border-color: #eee; background: #222; }
.staff-editor .guest-card.selected:hover { background: #fff; }
.staff-editor .section-count,
.staff-editor .badge,
.staff-editor .upload-locked { background: #272727; color: #e5e5e5; }
.staff-editor .badge.complete,
.staff-editor .dropzone.uploaded { border-color: #49745a; background: #173124; color: #bce4ca; }
.staff-editor .dropzone,
.staff-editor .section-empty,
.staff-editor .detail-empty { border-color: #666; background: #0a0a0a; }
.staff-editor .dropzone.drag { border-color: #fff; background: #242424; }
.staff-editor .reservation-head { border-color: #414141; }
.staff-editor .progress { background: #333; }
.staff-editor .progress span { background: #f6f6f4; }
.staff-editor .notice { border: 1px solid #6c573e; background: #241b12; color: #eed2aa; }
.staff-editor .toast { background: #262626; }
.staff-editor .toast.error { background: #562525; }

/* Check-in: selected session and Studio read like the kiosk's chosen slot. */
.staff-checkin .topbar {
  min-height: 72px;
  padding-inline: clamp(24px, 10vw, 130px);
}
.staff-checkin .app {
  width: min(1200px, 100%);
  padding: 36px clamp(24px, 10vw, 130px) 72px;
}
.staff-checkin .app-head { align-items: center; gap: 28px; padding-bottom: 24px; }
.staff-checkin .app-head > div:first-child { min-width: 0; }
.staff-checkin .app-head p { max-width: 58ch; line-height: 1.55; }
.staff-checkin .head-actions { flex: none; }
.staff-checkin .head-actions .primary { min-height: 48px; padding-inline: 20px; }
.staff-checkin .toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 26px 0 18px;
  padding: 18px 20px;
  border-radius: 16px;
}
.staff-checkin .toolbar #search { min-width: 0; }
.staff-checkin .tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.staff-checkin .tab { min-width: 0; }
.staff-checkin .studio-filter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #414141;
}
.staff-checkin .studio-filter > span { align-self: center; }
.staff-checkin .studio-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.staff-checkin .studio-tab { min-width: 0; padding: 8px 10px; white-space: nowrap; }
.staff-checkin .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 22px; border: 1px solid #494949; border-radius: 13px; background: #111; overflow: hidden; }
.staff-checkin .stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 48px; padding: 8px 16px; border: 0; border-right: 1px solid #414141; border-radius: 0; background: transparent; }
.staff-checkin .stat:last-child { border-right: 0; }
.staff-checkin .stat strong { margin-top: 0; font-size: 20px; }
.staff-checkin .reservation-section { margin-top: 4px; }
.staff-checkin .list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.staff-checkin .list-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.staff-checkin .list-head span { color: #aaa; font-size: 12px; }
.staff-checkin .list { gap: 12px; }
.staff-checkin .customer { min-height: 88px; padding: 18px 22px; gap: 16px; }
.staff-checkin .tab,
.staff-checkin .studio-tab,
.staff-checkin .secondary { border-color: #666; background: #111; color: #f6f6f4; }
.staff-checkin .tab.active,
.staff-checkin .studio-tab.active {
  border-color: #fff;
  background: #f6f6f4;
  color: #070707;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 14%);
}
.staff-checkin .customer:hover { border-color: #eee; background: #202020; box-shadow: none; }
.staff-checkin .customer { grid-template-columns: 80px minmax(130px, auto) minmax(0, 1fr) auto; }
.staff-checkin .customer .studio {
  width: auto;
  min-height: 30px;
  height: auto;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.staff-checkin .connection-status {
  margin: 18px 0 0;
  padding: 12px 4px 0;
  border-top: 1px solid #414141;
}
.staff-checkin .connection-status:empty { display: none; }
.staff-checkin .studio,
.staff-checkin .badge,
.staff-checkin .detail-grid div,
.staff-checkin .time-state { background: #242424; color: #f6f6f4; }
.staff-checkin .badge.checked { background: #173124; color: #bce4ca; }
.staff-checkin .badge.cancelled { background: #3a1d1d; color: #ffc4be; }
.staff-checkin .badge.late,
.staff-checkin .time-state.late { background: #342616; color: #f0d2a8; }
.staff-checkin .modal-head { border-color: #414141; }
.staff-checkin .close { color: #fff; }
.staff-checkin video { border: 1px solid #555; }
.staff-checkin .toast { background: #262626; }
.staff-checkin .toast.error { background: #562525; }

/* The session editor is part of the admin experience. */
.staff-sessions .card { border-color: #494949; }
.staff-sessions .warning { border-color: #6c573e; background: #241b12; color: #eed2aa; }
.staff-sessions .summary { border: 1px solid #414141; background: #1b1b1b; }
.staff-sessions .reservation small { color: #aaa; }
.staff-sessions .success { color: #a6d8bb; }
.staff-sessions #test-result a { color: #f6f6f4; }
.staff-sessions button.danger { border-color: #895858; }
.staff-sessions .top a { color: #fff; }

@media (max-width: 900px) {
  .staff-checkin .studio-filter { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 700px) {
  .staff-checkin .app { padding: 26px 20px 56px; }
  .staff-checkin .topbar { padding-inline: 20px; }
  .staff-checkin .app-head { align-items: flex-start; gap: 18px; }
  .staff-checkin .head-actions { width: 100%; }
  .staff-checkin .head-actions .primary { width: 100%; }
  .staff-checkin .toolbar { padding: 16px; }
  .staff-checkin .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .staff-checkin .tab { padding-inline: 2px; font-size: 11px; }
  .staff-checkin .studio-tabs { gap: 4px; }
  .staff-checkin .studio-tab { padding: 6px 2px; white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.15; }
  .staff-checkin .stat { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 2px; }
  .staff-checkin .stat strong { font-size: 18px; }
  .staff-checkin .list-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .staff-checkin .customer { grid-template-columns: 68px minmax(0, 1fr); }
  .staff-checkin .customer .studio { grid-column: 2; justify-self: start; }
  .staff-checkin .customer .person { grid-column: 1 / -1; }
  .staff-checkin .customer .badge { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .staff-ui .brand-logo { width: 140px; }
  .staff-ui .workspace-head,
  .staff-ui .headline,
  .staff-ui .app-head { padding-bottom: 16px; }
}
