/* Retrod One PMS + Daksh Voice AI */
:root {
  /* Retrod PMS tokens (from the product UI): deep green primary on a slate palette */
  --brand: #005B41; --brand-600: #004A35; --brand-50: #ECFDF5; --brand-100: #D1FAE5;
  --daksh: #005B41; --daksh-600: #004A35; --daksh-50: #ECFDF5; --daksh-100: #A7F3D0;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --line: #E2E8F0; --line-2: #F1F5F9;
  --bg: #F8FAFC; --card: #FFFFFF;
  --success: #059669; --success-50: #ECFDF5; --warning: #D97706; --warning-50: #FFFBEB;
  --danger: #E11D48; --danger-50: #FFF1F2; --info: #2563EB; --info-50: #EFF6FF;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .14);
  --sidebar: 268px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
b, strong, th { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }

/* Shell ------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { padding: 20px 20px 14px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-2); }
.sidebar .brand img { height: 26px; width: auto; align-self: flex-start; }
.sidebar .brand .hotel { font-size: 12px; color: var(--muted); }
.nav { padding: 10px 12px 20px; flex: 1; }
.nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; margin-bottom: 1px; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand); }
.nav a.daksh.active { background: var(--daksh-50); color: var(--daksh-600); }
.nav a .pill { margin-left: auto; }
.nav .daksh-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--daksh); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-size: 12px; }
.sidebar .foot { padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px 0 36px; background: var(--bg); font: inherit; }
.topbar .search [data-lucide] { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); position: relative; }
.icon-btn:hover { border-color: var(--brand-100); color: var(--brand); }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
.ask-daksh { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--daksh-50); color: var(--daksh-600); font-weight: 600; border: 1px solid var(--daksh-100); }
.ask-daksh .orb-mini { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9DB0FF, var(--daksh) 60%, #2E43C9); display: grid; place-items: center; color: #fff; }
.ask-daksh .orb-mini [data-lucide] { width: 14px; height: 14px; }
.user-pill { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.user-pill .who { line-height: 1.2; }
.user-pill .who span { display: block; font-size: 11.5px; color: var(--muted); }

.content { padding: 26px 28px 48px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.crumb a:hover { color: var(--brand); }

/* Components -------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.card-h h3 { font-size: 15px; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-h .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 0 18px 18px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.mt { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.tile.daksh { background: var(--daksh-50); color: var(--daksh-600); }
.tile.success { background: var(--success-50); color: var(--success); }
.tile.warning { background: var(--warning-50); color: var(--warning); }
.tile.danger { background: var(--danger-50); color: var(--danger); }
.tile.info { background: var(--info-50); color: var(--info); }

.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #d9ccd3; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.daksh { background: var(--daksh); border-color: var(--daksh); color: #fff; }
.btn.daksh:hover { background: var(--daksh-600); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn [data-lucide] { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.success { background: var(--success-50); color: var(--success); }
.badge.warning { background: var(--warning-50); color: var(--warning); }
.badge.danger { background: var(--danger-50); color: var(--danger); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge.accent { background: var(--brand-50); color: var(--brand); }
.badge.daksh { background: var(--daksh-50); color: var(--daksh-600); }
.badge.muted { background: var(--line-2); color: var(--muted); }
.pill { font-size: 11px; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FCFAFB; white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #FDFBFC; }
table.t tfoot td { font-weight: 600; background: #FCFAFB; border-top: 1px solid var(--line); padding: 11px 14px; }
table.t .num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-link { color: var(--brand); font-weight: 500; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.tabs a .badge { height: 20px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); }
.f input, .f select, .f textarea, .input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; width: 100%; font-size: 14px; }
.f textarea { height: auto; padding: 10px 12px; min-height: 90px; }
.f input:focus, .f select:focus, .f textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.f .help, .helptext { font-size: 12px; color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input, .filters select { height: 36px; width: auto; min-width: 150px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: #fff; }
.errorlist { color: var(--danger); margin: 0; padding: 0; list-style: none; font-size: 12.5px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.flash.success { background: var(--success-50); color: var(--success); }
.flash.error { background: var(--danger-50); color: var(--danger); }
.flash.info { background: var(--info-50); color: var(--info); }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-2); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 500; }
.list-row .meta { color: var(--muted); font-size: 12.5px; }
.bar { height: 8px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.chart-box { position: relative; height: 240px; }
details.action { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
details.action summary { cursor: pointer; padding: 10px 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; list-style: none; }
details.action summary::-webkit-details-marker { display: none; }
details.action[open] summary { border-bottom: 1px solid var(--line-2); }
details.action .body { padding: 14px; display: grid; gap: 10px; }

/* Rooms ------------------------------------------------------------------- */
.floor { margin-bottom: 18px; }
.floor h4 { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.room { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 3px; min-height: 92px; border-left-width: 4px; transition: transform .12s, box-shadow .12s; }
.room:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.room .no { font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.room .ty { font-size: 11.5px; color: var(--muted); }
.room .gu { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.room.occupied { border-left-color: var(--info); }
.room.vacant.clean, .room.vacant.inspected { border-left-color: var(--success); }
.room.vacant.dirty, .room.vacant.cleaning { border-left-color: var(--warning); }
.room.out_of_order { border-left-color: var(--danger); background: #FFFAFA; }
.hk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hk-dot.clean, .hk-dot.inspected { background: var(--success); }
.hk-dot.dirty { background: var(--warning); }
.hk-dot.cleaning { background: var(--info); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tape { overflow-x: auto; }
.tape table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.tape th, .tape td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: 0; height: 34px; min-width: 64px; }
.tape th { background: #FCFAFB; font-weight: 500; color: var(--muted); padding: 6px; text-align: center; }
.tape th.today { color: var(--brand); background: var(--brand-50); }
.tape td.rm { position: sticky; left: 0; background: #fff; z-index: 1; padding: 0 10px; min-width: 110px; white-space: nowrap; }
.tape .bk { margin: 3px; height: 26px; border-radius: 7px; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tape .bk.checked_in { background: var(--info-50); color: var(--info); border: 1px solid #cfe0fb; }
.tape .bk.confirmed { background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.tape .bk.checked_out { background: var(--line-2); color: var(--muted); }
.tape td.ooo { background: repeating-linear-gradient(45deg, #fff, #fff 5px, #fbecec 5px, #fbecec 10px); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kanban .col { background: #F3EFF1; border-radius: 12px; padding: 10px; min-height: 200px; }
.kanban .col h4 { font-size: 13px; padding: 4px 6px 10px; display: flex; justify-content: space-between; }
.kanban .item { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); }
.kanban .item .top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.kanban .item form { display: flex; gap: 6px; margin-top: 8px; }
.kanban .item select { height: 30px; border: 1px solid var(--line); border-radius: 8px; flex: 1; font-size: 12.5px; }

/* Login ------------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .panel { background: radial-gradient(1200px 600px at -10% 120%, #E0337F 0%, transparent 55%), linear-gradient(150deg, #8C0D4C 0%, #B81264 48%, #6B0A3A 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth .panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.auth .panel > * { position: relative; }
.auth .logo-chip { background: #FFF9F6; border-radius: 12px; padding: 10px 14px; align-self: flex-start; }
.auth .logo-chip img { height: 26px; display: block; }
.auth .panel h1 { font-size: 40px; line-height: 1.12; margin-top: auto; max-width: 520px; letter-spacing: -.02em; }
.auth .panel p.lead { opacity: .85; max-width: 480px; font-size: 16px; }
.auth .feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; max-width: 560px; }
.auth .feat div { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.auth .form-side { display: grid; place-items: center; padding: 40px; }
.auth .form-card { width: 100%; max-width: 400px; }
.auth .form-card h2 { font-size: 26px; }
.auth .demo { margin-top: 22px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.auth .demo code { color: var(--ink); background: var(--line-2); padding: 1px 5px; border-radius: 5px; }

/* Notifications toast ------------------------------------------------------ */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.toast { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 12px 14px; width: 320px; display: flex; gap: 10px; animation: rise .3s ease; }
.toast .title { font-weight: 600; font-size: 13.5px; }
.toast .meta { color: var(--muted); font-size: 12.5px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== DAKSH VOICE WORKSPACE ============================ */
.daksh-ws { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; height: calc(100vh - 64px - 26px - 48px - 70px); min-height: 620px; }
.daksh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.daksh-head .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--daksh); color: #fff; display: grid; place-items: center; font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.daksh-head h1 { font-size: 22px; }
.daksh-head p { margin: 2px 0 0; color: var(--muted); }
.daksh-head .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
.panel .ph { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.panel .ph .end { margin-left: auto; }
.panel .pb { padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 0; }

.history .msg { margin-bottom: 14px; }
.history .msg .who { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; }
.history .msg .bubble { padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.history .msg.user .bubble { background: var(--line-2); }
.history .msg.ai .bubble { background: var(--daksh-50); color: #1C2B6B; }
.history .msg.sys .bubble { background: #fff; border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }
.history .empty-h { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 10px; }

.stage { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 50% -10%, #EEF1FF 0%, #fff 60%); }
.stage .pb { display: flex; flex-direction: column; align-items: center; padding: 22px 26px; }
.state-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.state-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state-chip[data-state=listening] { background: var(--daksh-50); color: var(--daksh-600); }
.state-chip[data-state=listening] i { background: var(--daksh); animation: pulse 1s infinite; }
.state-chip[data-state=processing], .state-chip[data-state=executing] { background: #F3EEFF; color: #6B46C1; }
.state-chip[data-state=processing] i, .state-chip[data-state=executing] i { background: #7C5CDB; animation: pulse .7s infinite; }
.state-chip[data-state=speaking] { background: var(--success-50); color: var(--success); }
.state-chip[data-state=speaking] i { background: var(--success); animation: pulse 1.2s infinite; }
.state-chip[data-state=confirmation] { background: var(--warning-50); color: var(--warning); }
.state-chip[data-state=confirmation] i { background: var(--warning); }
.state-chip[data-state=completed] { background: var(--success-50); color: var(--success); }
.state-chip[data-state=completed] i { background: var(--success); }
.state-chip[data-state=error] { background: var(--danger-50); color: var(--danger); }
.state-chip[data-state=error] i { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

.orb-wrap { position: relative; width: 230px; height: 230px; margin: 22px auto 8px; display: grid; place-items: center; }
.orb-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mic-btn { position: relative; z-index: 2; width: 108px; height: 108px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #A9B8FF 0%, #5271FF 45%, #2B3FC4 100%); box-shadow: 0 18px 40px rgba(82, 113, 255, .38), inset 0 -6px 18px rgba(0,0,0,.18), inset 0 6px 14px rgba(255,255,255,.3); transition: transform .18s ease, box-shadow .18s; }
.mic-btn:hover { transform: scale(1.03); }
.mic-btn:active { transform: scale(.97); }
.mic-btn:focus-visible { outline: 3px solid var(--daksh-100); outline-offset: 6px; }
.mic-btn [data-lucide] { width: 38px; height: 38px; stroke-width: 1.6; }
.mic-btn.listening { background: radial-gradient(circle at 35% 28%, #FF9CC8 0%, #E0337F 45%, #9E0F56 100%); box-shadow: 0 18px 44px rgba(184, 18, 100, .4); }
.mic-btn.live::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(224, 51, 127, .35); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.mic-btn.busy { background: radial-gradient(circle at 35% 28%, #C9B8FF, #7C5CDB 50%, #4C2FA8); }
.mic-hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mic-hint kbd { font: inherit; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; }
/* Items in the stage column must never shrink into each other; the panel scrolls instead. */
.stage .pb > *, .tablet .gstage > * { flex-shrink: 0; }
.live-text { min-height: 54px; max-height: calc(1.4em * 3); overflow-y: auto; scrollbar-width: none; font-size: 19px; text-align: center; color: var(--ink);
  margin: 18px 0 4px; max-width: 560px; width: 100%; line-height: 1.4; overflow-wrap: anywhere; transition: font-size .15s ease; }
.live-text::-webkit-scrollbar { display: none; }
.live-text.long { font-size: 16px; }
.live-text.longer { font-size: 14.5px; }
.live-text .interim { color: var(--muted); }
.ai-text { font-size: 15.5px; color: #24346F; background: #fff; border: 1px solid var(--daksh-100); border-radius: 14px; padding: 14px 16px; max-width: 580px; width: 100%; line-height: 1.5; display: none; }
.ai-text.show { display: block; animation: rise .25s ease; }
.ai-text .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--daksh-600); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ai-text.err { border-color: #F3C6CA; color: var(--danger); }
.stage-controls { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; max-width: 620px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); font-family: inherit; }
.chip:hover { border-color: var(--daksh-100); color: var(--daksh-600); background: var(--daksh-50); }
.type-box { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; width: 100%; max-width: 580px; }
.type-box input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.type-box input:focus { outline: none; border-color: var(--daksh); box-shadow: 0 0 0 3px var(--daksh-50); }

.confirm-card { width: 100%; max-width: 580px; border: 1px solid #F0D9A8; background: linear-gradient(180deg, #FFFBF2, #fff); border-radius: 14px; padding: 16px; margin-top: 14px; animation: rise .25s ease; }
.confirm-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.confirm-card .top .tile { background: var(--warning-50); color: var(--warning); width: 36px; height: 36px; }
.confirm-card h4 { font-size: 15px; }
.confirm-card .sum { color: var(--ink-2); font-size: 13.5px; }
.confirm-card .dl { margin: 12px 0; grid-template-columns: 130px 1fr; font-size: 13px; }
.confirm-card .warn { background: var(--warning-50); color: #8A5A10; border-radius: 9px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 8px; }
.confirm-card .btns { display: flex; gap: 8px; align-items: center; }
.confirm-card .btns .timer { margin-left: auto; font-size: 12px; color: var(--muted); }
.confirm-card.done { border-color: #BFE6D3; background: linear-gradient(180deg, #F3FBF7, #fff); }
.confirm-card.cancelled { opacity: .6; }

.workspace .pb { background: #FBFAFB; }
.ws-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.ws-empty .tile { margin: 0 auto 12px; width: 52px; height: 52px; }
.rc { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; animation: rise .3s ease; overflow: hidden; }
.rc .rch { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.rc .rch .tile { width: 34px; height: 34px; border-radius: 9px; }
.rc .rch .tile [data-lucide] { width: 16px; height: 16px; }
.rc .rch h4 { font-size: 14px; }
.rc .rch .sub { font-size: 12px; color: var(--muted); }
.rc .rch .end { margin-left: auto; }
.rc .rcb { padding: 0 14px 14px; }
.rc .rcb.flush { padding: 0; }
.rc table.t { font-size: 12.5px; }
.rc table.t th { font-size: 11px; padding: 8px 12px; }
.rc table.t td { padding: 8px 12px; }
.rc .link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-2); color: var(--brand); font-weight: 500; font-size: 13px; }
.rc .kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); }
.rc .kgrid > div { background: #fff; padding: 12px 14px; }
.rc .kgrid .l { font-size: 11.5px; color: var(--muted); }
.rc .kgrid .v { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rc .kgrid .v.accent { color: var(--brand); }
.rc .kgrid .v.danger { color: var(--danger); }
.rc .kgrid .v.warning { color: var(--warning); }
.rc .kgrid .h { font-size: 11.5px; color: var(--muted); }
.rc .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.rc .rgrid .room { min-height: 64px; padding: 8px 10px; }
.rc .info-item { padding: 10px 0; border-top: 1px solid var(--line-2); }
.rc .info-item:first-child { border-top: 0; padding-top: 0; }
.rc .info-item .t1 { font-weight: 600; }
.rc .info-item .m { font-size: 12px; color: var(--daksh-600); margin-top: 2px; }

/* Guest tablet --------------------------------------------------------------- */
.tablet { min-height: 100vh; background: radial-gradient(900px 600px at 80% -10%, rgba(82,113,255,.35), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(184,18,100,.35), transparent 60%), #120B10; color: #F6EEF2; display: flex; flex-direction: column; }
.tablet header { display: flex; align-items: center; gap: 14px; padding: 22px 34px; }
.tablet header .mark { width: 40px; height: 40px; border-radius: 11px; background: var(--daksh); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-size: 24px; }
.tablet header .hn { font-weight: 600; }
.tablet header .hs { font-size: 12.5px; opacity: .7; }
.tablet header .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tablet .gbtn { height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font: inherit; font-weight: 500; }
.tablet .gbtn:hover { background: rgba(255,255,255,.12); }
.tablet .gbody { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 26px; padding: 0 34px 30px; }
.tablet .gstage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tablet .welcome { font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.tablet .welcome-sub { opacity: .7; margin-top: 6px; }
.tablet .live-text { color: #fff; }
.tablet .live-text .interim { color: rgba(255,255,255,.55); }
.tablet .ai-text { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.tablet .ai-text .lbl { color: #AEBBFF; }
.tablet .state-chip { background: rgba(255,255,255,.1); color: #fff; }
.tablet .mic-hint { color: rgba(255,255,255,.6); }
.tablet .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.tablet .chip:hover { background: rgba(82,113,255,.25); }
.tablet .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; width: 100%; max-width: 640px; }
.tablet .quick button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #fff; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 12.5px; }
.tablet .quick button:hover { background: rgba(255,255,255,.12); }
.tablet .side { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 120px); overflow: hidden; }
.tablet .side .pb { overflow-y: auto; }
.tablet .confirm-card { color: var(--ink); }
.tablet .type-box input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }

.guest-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.guest-login .box { width: 100%; max-width: 420px; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 20px; padding: 32px; }

/* Booking engine ------------------------------------------------------------ */
.be { background: #FFF9F6; min-height: 100vh; }
.be header { background: #fff; border-bottom: 1px solid var(--line); }
.be header .in { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 14px; }
.be header .hn { font-weight: 600; font-size: 18px; }
.be .hero { background: linear-gradient(135deg, #2A0F1D, #6B0A3A 55%, #B81264); color: #fff; }
.be .hero .in { max-width: 1120px; margin: 0 auto; padding: 46px 24px 70px; }
.be .hero h1 { font-size: 36px; font-weight: 500; letter-spacing: -.02em; }
.be .hero p { opacity: .8; }
.be .searchbar { max-width: 1120px; margin: -38px auto 0; padding: 0 24px; position: relative; }
.be .searchbar form { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 12px; align-items: end; }
.be .wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; }
.offer { display: grid; grid-template-columns: 260px 1fr 220px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.offer .ph-img { background: linear-gradient(135deg, var(--c1, #E9D5DF), var(--c2, #B81264)); position: relative; min-height: 190px; }
.offer .ph-img span { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 600; font-size: 13px; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; }
.offer .body { padding: 18px 20px; }
.offer .body h3 { font-size: 19px; }
.offer .amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.offer .price { padding: 18px 20px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.offer .price .amt { font-size: 24px; font-weight: 600; }

/* Print --------------------------------------------------------------------- */
@media print {
  .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; }
  body { background: #fff; }
}

@media (max-width: 1280px) {
  .daksh-ws { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; }
  .daksh-ws .history-panel { display: none; }
  .g6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .g2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .daksh-ws { grid-template-columns: 1fr; }
  .daksh-ws .panel { min-height: 420px; }
  .auth { grid-template-columns: 1fr; }
  .auth .panel { display: none; }
  .tablet .gbody { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr; }
  .be .searchbar form { grid-template-columns: 1fr 1fr; }
}
