:root {
  --bg: #171514;
  --bg-soft: #211e1c;
  --card: rgba(34, 31, 29, 0.88);
  --card-strong: #2a2623;
  --line: rgba(255, 255, 255, 0.11);
  --text: #fff8ee;
  --muted: #b9aea1;
  --faint: #82776e;
  --cream: #fff1d5;
  --accent: #d6a15d;
  --rose: #d7a2a4;
  --green: #8fd19e;
  --yellow: #ffd36c;
  --red: #ff8a78;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --serif: Georgia, "Times New Roman", serif;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
.admin-app {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.admin-app button,.admin-app input { font: inherit; }

.admin-frame { min-height: 100vh; display: grid; grid-template-columns: 68px minmax(0, 1fr); }
.app-rail { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 16px 10px; border-right: 1px solid var(--line); background: rgba(23,21,20,.96); }
.rail-brand,.rail-link,.rail-avatar { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); color: var(--text); font-weight: 800; }
.rail-brand { color: #251611; background: linear-gradient(145deg,#ffe2ac,#c98654); font: 700 25px var(--serif); }
.rail-link { font-size: 18px; cursor: pointer; }
.rail-link:hover,.rail-link.is-current { border-color: var(--accent); color: var(--cream); background: rgba(214,161,93,.12); }
.rail-spacer { flex: 1; }
.rail-avatar { border-radius: 50%; color: var(--cream); }
.workspace { min-width: 0; }
.workspace-topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px,3vw,42px); border-bottom: 1px solid var(--line); background: rgba(23,21,20,.82); }
.studio-lockup,.topbar-actions { display: flex; align-items: center; gap: 12px; }
.studio-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#ffe2ac,#c98654); color: #251611; font: 700 23px var(--serif); }
.studio-lockup strong,.studio-lockup span:not(.studio-mark) { display: block; }
.studio-lockup strong { font-size: 14px; }
.studio-lockup div span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.demo-account { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.customer-link { color: var(--cream); font-size: 13px; font-weight: 700; }
.customer-link:hover { color: var(--accent); }
.page-content { width: min(1500px,100%); margin: auto; padding: 22px clamp(16px,3vw,42px) 46px; }
.demo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid rgba(255,211,108,.22); border-radius: 12px; background: rgba(255,211,108,.08); color: var(--muted); font-size: 12px; }
.demo-banner strong { color: var(--yellow); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 30px 0 22px; }
.admin-eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font: 600 clamp(32px,4vw,44px)/1 var(--serif); letter-spacing: -.045em; }
.heading-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.heading-buttons,.schedule-actions,.date-controls,.view-switch,.team-filter { display: flex; align-items: center; gap: 8px; }
.button,.icon-button { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--text); background: var(--bg-soft); font-weight: 700; font-size: 12px; cursor: pointer; }
.button:hover,.icon-button:hover { border-color: var(--accent); }
.button-primary { border-color: var(--accent); color: #251611; background: linear-gradient(145deg,#ffe2ac,#c98654); }
.button-primary:hover { filter: brightness(1.06); }
.button-quiet { color: var(--muted); }
.icon-button { width: 38px; padding: 0; font-size: 17px; }
.metric-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.metric-tile { min-height: 106px; display: grid; align-content: center; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.metric-tile span { color: var(--muted); font-size: 12px; }
.metric-tile strong { font-size: 25px; line-height: 1.1; letter-spacing: -.04em; }
.metric-tile small { color: var(--faint); font-size: 11px; }
.metric-attention strong { color: var(--yellow); }
.schedule-panel,.queue-panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(34,31,29,.94); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.schedule-toolbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.date-controls h2 { margin: 0 0 0 8px; font: 600 18px var(--serif); letter-spacing: -.02em; }
.today-button { min-height: 36px; padding-inline: 12px; }
.search-box { width: min(245px,28vw); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: var(--faint); }
.view-switch { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.view-switch button { min-height: 30px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--card-strong); color: var(--cream); }
.team-filter { min-height: 54px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.team-filter > span { margin-right: 5px; color: var(--muted); font-size: 11px; }
.team-filter button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.team-filter button[aria-pressed="true"] { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.staff-dot,.legend-block { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--accent); }
.staff-aira { background: var(--rose); }.staff-bea { background: var(--green); }
.schedule-body { min-height: 420px; overflow: auto; }
.day-grid { min-width: 760px; display: grid; grid-template-columns: 64px repeat(3,minmax(180px,1fr)); }
.time-head,.staff-head { position: sticky; top: 0; z-index: 2; min-height: 54px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: 11px; font-weight: 800; }
.time-head { left: 0; z-index: 3; }
.staff-head { gap: 8px; justify-content: flex-start; padding: 0 14px; color: var(--text); }
.time-axis { position: sticky; left: 0; z-index: 1; display: grid; grid-template-rows: repeat(20,30px); background: var(--bg-soft); }
.time-label { transform: translateY(-8px); padding-right: 9px; color: var(--faint); text-align: right; font-size: 10px; }
.staff-column { position: relative; display: grid; grid-template-rows: repeat(20,30px); border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom,transparent 0,transparent 29px,var(--line) 29px,var(--line) 30px,transparent 30px,transparent 59px,var(--line) 59px,var(--line) 60px); }
.appointment { z-index: 1; min-height: 0; margin: 2px 5px; padding: 6px 8px; overflow: hidden; border: 1px solid rgba(214,161,93,.42); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(214,161,93,.12); color: var(--text); text-align: left; cursor: pointer; }
.appointment:hover { background: rgba(214,161,93,.2); }
.appointment.status-review { border-left-color: var(--yellow); background: rgba(255,211,108,.1); }
.appointment.status-followup { border-left-color: var(--red); background: rgba(255,138,120,.1); }
.appointment-time,.appointment-name,.appointment-service { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment-time { color: var(--cream); font-size: 10px; font-weight: 800; }
.appointment-name { margin-top: 2px; font-size: 11px; font-weight: 800; }
.appointment-service { margin-top: 2px; color: var(--muted); font-size: 10px; }
.week-grid { min-width: 940px; display: grid; grid-template-columns: repeat(7,minmax(130px,1fr)); }
.week-day { min-height: 390px; border-right: 1px solid var(--line); }
.week-day:last-child { border-right: 0; }
.week-day-head { position: sticky; top: 0; z-index: 2; padding: 12px 10px; border-bottom: 1px solid var(--line); background: var(--bg-soft); text-align: center; }
.week-day-head span,.week-day-head strong { display: block; }.week-day-head span { color: var(--muted); font-size: 10px; }.week-day-head strong { margin-top: 4px; font-size: 14px; }
.week-day-list { display: grid; align-content: start; gap: 7px; padding: 8px; }
.week-appointment { display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: rgba(214,161,93,.1); color: var(--text); text-align: left; cursor: pointer; }
.week-appointment.status-review { border-left-color: var(--yellow); }.week-appointment.status-followup { border-left-color: var(--red); }
.week-appointment strong { font-size: 11px; }.week-appointment span { color: var(--muted); font-size: 10px; }
.week-empty { padding: 12px 6px; color: var(--faint); font-size: 10px; }
.schedule-legend { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 8px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }.legend-block { border-radius: 2px; }.legend-confirmed { background: var(--accent); }.legend-review { background: var(--yellow); }.legend-followup { background: var(--red); }.legend-note { margin-left: auto; color: var(--faint); }
.queue-panel { margin-top: 18px; padding: 20px; }
.queue-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.queue-heading h2 { margin: 0; font: 600 23px var(--serif); }.queue-heading p:not(.admin-eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.queue-count { min-width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,211,108,.22); border-radius: 50%; color: var(--yellow); background: rgba(255,211,108,.08); font-size: 12px; font-weight: 800; }
.queue-table-wrap { margin-top: 16px; overflow-x: auto; }.queue-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }.queue-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.queue-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }.queue-table td:first-child { color: var(--text); font-weight: 700; }.queue-table tbody tr:last-child td { border-bottom: 0; }
.table-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(255,211,108,.1); color: var(--yellow); font-size: 10px; }.table-status.status-followup { background: rgba(255,138,120,.1); color: var(--red); }
.table-action { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); color: var(--cream); font-size: 10px; cursor: pointer; }.table-action:hover { border-color: var(--accent); }
.queue-empty { padding: 18px; color: var(--muted); text-align: center; }.payment-safety { display: flex; gap: 8px; margin: 13px 0 0; color: var(--faint); font-size: 10px; }
.booking-dialog,.walkin-dialog { width: min(480px,calc(100% - 28px)); max-height: min(82vh,760px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); color: var(--text); box-shadow: var(--shadow); }
.booking-dialog::backdrop,.walkin-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }.booking-dialog form,.walkin-dialog form { display: flex; justify-content: flex-end; }.dialog-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.detail-title { margin: 4px 0; font: 600 27px var(--serif); }.detail-subtitle { color: var(--muted); font-size: 12px; }.detail-statuses { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }.detail-status { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); font-size: 10px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 16px 0; }.detail-item { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.detail-item span,.detail-item strong { display: block; }.detail-item span { color: var(--faint); font-size: 10px; }.detail-item strong { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }.detail-warning { margin: 14px 0; padding: 12px; border-radius: 10px; background: rgba(255,211,108,.08); color: var(--muted); font-size: 11px; line-height: 1.55; }.detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) { .schedule-toolbar { align-items: flex-start; flex-direction: column; }.schedule-actions { width: 100%; }.search-box { width: min(360px,100%); flex: 1; }.metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { .admin-frame { grid-template-columns: 1fr; }.app-rail { position: static; width: 100%; height: 54px; flex-direction: row; padding: 6px 12px; border-right: 0; border-bottom: 1px solid var(--line); }.rail-brand,.rail-link,.rail-avatar { width: 36px; height: 36px; border-radius: 11px; }.rail-spacer { flex: 1; }.workspace-topbar { height: 60px; padding-inline: 14px; }.topbar-actions { gap: 10px; }.demo-account { display: none; }.page-content { padding: 12px 12px 30px; }.demo-banner { align-items: flex-start; flex-direction: column; gap: 4px; }.page-heading { align-items: flex-start; flex-direction: column; padding: 24px 0 18px; }.heading-buttons { width: 100%; }.heading-buttons .button { flex: 1; }.metric-row { gap: 8px; }.metric-tile { min-height: 92px; padding: 12px; }.metric-tile strong { font-size: 22px; }.schedule-toolbar { padding: 12px; }.date-controls { flex-wrap: wrap; }.date-controls h2 { flex: 1; min-width: 160px; font-size: 15px; }.schedule-actions { flex-wrap: wrap; }.search-box { min-width: 100%; }.team-filter { overflow-x: auto; padding-inline: 12px; }.team-filter > span { flex: 0 0 auto; }.team-filter button { flex: 0 0 auto; }.schedule-legend { flex-wrap: wrap; gap: 8px 12px; padding-inline: 12px; }.legend-note { display: none!important; }.queue-panel { padding: 15px 12px; }.queue-heading h2 { font-size: 21px; }.queue-table { min-width: 700px; }.detail-grid { grid-template-columns: 1fr 1fr; } }

/*
## Changes
- admin.css: add responsive full-page schedule, staff columns, filters, deposit queue, and detail-dialog styling with self-contained existing Takda design tokens.

## Blockers
- Static demo only; no authenticated Sheet API is connected.

## Next step for Claude
- Verify the schedule interaction and visual behavior at desktop and mobile widths before wiring data.
*/
