/* Alunsina Hotel HMS: light "sky, sand and sea" theme */
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --tint: rgba(20, 45, 90, .04);
  --tint-2: rgba(20, 45, 90, .07);
  --line: #e4e9f1;
  --line-2: #d3dbe7;
  --text: #15233f;
  --muted: #5b6b86;
  --dim: #8794ab;
  --navy: #14325a;
  --gold: #e0a23e;
  --gold-2: #a8690f;
  --gold-soft: #fdf3e0;
  --gold-ink: #2b1a02;
  --teal: #0f9e98;
  --teal-soft: #e0f6f4;
  --violet: #6b5bd6;
  --violet-soft: #eeebff;
  --rose: #e0506b;
  --rose-soft: #fde9ed;
  --green: #1f9d68;
  --green-soft: #e2f6ec;
  --amber: #c27c12;
  --amber-soft: #fdf0d9;
  --blue: #2c7be5;
  --blue-soft: #e6f0fd;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 40, 80, .05), 0 8px 28px rgba(20, 40, 80, .08);
  --shadow-lg: 0 20px 60px rgba(20, 40, 80, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 14px/1.5 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 520px at 92% -8%, rgba(15, 158, 152, .10), transparent 60%),
    radial-gradient(900px 520px at -8% 6%, rgba(224, 162, 62, .12), transparent 60%),
    linear-gradient(180deg, #f8fafd, var(--bg));
  background-attachment: fixed;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); }
p { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 162, 62, .2); }
input[readonly] { background: var(--surface-2); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--gold); }
::selection { background: rgba(224, 162, 62, .3); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.warn-text { color: var(--amber); font-weight: 600; }
.gold-text { color: var(--gold-2); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.gold-text .ico, .gold-text .ico svg { width: 14px; height: 14px; }
.r { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- surfaces ---------- */
.glass {
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); box-shadow: var(--shadow);
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-2);
  background: #fff; color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap; text-decoration: none !important;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: #bfcadb; }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.gold {
  background: linear-gradient(135deg, #f6cf7c, var(--gold) 60%, #d18c25); border-color: transparent; color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(224, 162, 62, .35);
}
.btn.primary:hover, .btn.gold:hover { filter: brightness(1.04); box-shadow: 0 8px 24px rgba(224, 162, 62, .45); }
.btn.glass-btn { background: rgba(255, 255, 255, .75); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--rose); border-color: #f2b9c4; }
.btn.danger:hover { background: var(--rose-soft); }
.btn.teal { background: var(--teal-soft); border-color: #9fdcd8; color: #0b6f6b; }
.btn.rose { background: var(--rose-soft); border-color: #f2b9c4; color: #b02a46; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled, .side-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; padding: 0; flex: none; color: var(--text); transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.big { width: 42px; height: 42px; }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.ghost:hover { background: var(--tint-2); }
.ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico svg circle[r="1.6"] { fill: currentColor; }
kbd { font: 600 10.5px var(--font); padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; transition: grid-template-columns .25s ease; }
.shell.collapsed { grid-template-columns: 76px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; overflow: hidden; z-index: 40;
  background: linear-gradient(180deg, #ffffff, #fbf8f2); border-right: 1px solid var(--line);
}
.sidebar::after { content: ''; position: absolute; inset: auto -50px -70px auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(15, 158, 152, .10), transparent 70%); pointer-events: none; }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: var(--text); text-decoration: none !important; white-space: nowrap; }
.sb-brand b { display: block; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.sb-brand small { display: block; font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-2); }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.sb-group { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); padding: 16px 12px 6px; white-space: nowrap; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0; border-radius: 11px; color: #3c4b66; text-decoration: none; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
.sb-nav a .ico { color: var(--dim); }
.sb-nav a:hover { background: var(--tint); color: var(--navy); }
.sb-nav a.active { background: linear-gradient(90deg, var(--gold-soft), rgba(253, 243, 224, .3)); color: var(--gold-2); font-weight: 600; }
.sb-nav a.active .ico { color: var(--gold); }
.sb-nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.sb-user-txt { flex: 1; min-width: 0; }
.sb-user b { display: block; font-size: 13.5px; }
.sb-user small { color: var(--muted); font-size: 11.5px; }
.shell.collapsed .sb-brand span, .shell.collapsed .sb-nav a span, .shell.collapsed .sb-user-txt, .shell.collapsed .sb-user .icon-btn { display: none; }
.shell.collapsed .sb-nav a { justify-content: center; }
.shell.collapsed .sb-group { height: 10px; padding: 0; font-size: 0; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 26px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.tb-greet { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tb-greet b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
#clock { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill-glass { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--line-2); background: #fff; color: var(--text); white-space: nowrap; text-decoration: none !important; }
.pill-glass b { color: var(--gold-2); }
.pill-glass .ico, .pill-glass .ico svg { width: 15px; height: 15px; }
.pill-glass.ok { border-color: #a6dfc4; background: var(--green-soft); color: #136b46; }
.pill-glass.warn { border-color: #f0cf96; background: var(--amber-soft); color: #8a5608; }
.view { padding: 26px 30px 70px; max-width: 1480px; width: 100%; margin: 0 auto; animation: viewIn .35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.scrim { position: fixed; inset: 0; background: rgba(15, 30, 60, .35); z-index: 35; display: none; backdrop-filter: blur(2px); }
.scrim.open { display: block; }
.dropdown { position: relative; }
.menu-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); animation: popIn .15s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-pop.right { left: auto; right: 0; }
.menu-pop.open { display: block; }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--text); text-decoration: none; }
.menu-pop a .ico { color: var(--dim); }
.menu-pop a:hover { background: var(--gold-soft); color: var(--gold-2); }
.menu-pop a:hover .ico { color: var(--gold); }
.pop-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); padding: 6px 11px; font-weight: 700; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; }
.page-sub { color: var(--muted); margin-top: 4px; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 12px; color: var(--dim); letter-spacing: .4px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2); }
.sec { font-size: 16px; font-weight: 700; margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; color: var(--navy); }
.sec small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.pill { font-size: 12px; padding: 5px 11px; border-radius: 99px; }
.pill.warn { background: var(--amber-soft); color: #8a5608; border: 1px solid #f0cf96; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px !important; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px; color: var(--muted); text-align: center; }
.empty-state .ico, .empty-state .ico svg { width: 30px; height: 30px; opacity: .5; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.row-between input { flex: 1; min-width: 160px; }
.note-bar { background: var(--blue-soft); border: 1px solid #c4dbfa; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }

/* ---------- avatar ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: 13px; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 65% 58%), hsl(calc(var(--h) + 45) 60% 44%)); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(20, 40, 80, .15);
}
.avatar.xs { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.xl { width: 78px; height: 78px; font-size: 26px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(224, 162, 62, .45), 0 10px 26px rgba(20, 40, 80, .2); }

/* ---------- login: sunny seascape (Resto Plus uses a sunset) ---------- */
.sky { position: relative; min-height: 100vh; overflow: hidden; background: linear-gradient(180deg, #7cc4f2 0%, #a8daf7 38%, #d9effa 62%, #ffe9c9 80%, #ffd7a8 100%); }
.sky.dusk { background: linear-gradient(180deg, #ffb6a0 0%, #ffcfa1 35%, #ffe2b8 60%, #fff0d6 80%, #ffd3a0 100%); }
.stars, .shooting { display: none; }
.moon { position: absolute; top: 9%; right: 41%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffdf2, #ffe08a 55%, #ffc24d); box-shadow: 0 0 70px 26px rgba(255, 214, 110, .55), 0 0 200px 90px rgba(255, 230, 160, .35); animation: floaty 9s ease-in-out infinite; }
.moon span { display: none; }
.sky.dusk .moon { background: radial-gradient(circle at 40% 40%, #fff6e0, #ffb36b 60%, #ff8a5c); box-shadow: 0 0 80px 30px rgba(255, 150, 90, .5); top: auto; bottom: 150px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.sky::before, .sky::after { content: ''; position: absolute; height: 46px; border-radius: 99px; background: rgba(255, 255, 255, .9); box-shadow: 40px -18px 0 6px rgba(255, 255, 255, .9), 90px 0 0 -2px rgba(255, 255, 255, .9); animation: cloud 60s linear infinite; }
.sky::before { width: 140px; top: 14%; left: -260px; }
.sky::after { width: 110px; top: 27%; left: -260px; animation-duration: 85s; animation-delay: -40s; opacity: .8; }
@keyframes cloud { to { transform: translateX(calc(100vw + 520px)); } }
.horizon { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 300px; }
.horizon .hill { fill: #8cc7a4; }
.sky.dusk .horizon .hill { fill: #d99a7c; }
.horizon .tower { fill: #f7f3ea; stroke: #d9cdb6; stroke-width: 1.5; }
.horizon .lw { fill: #7cc4f2; opacity: .85; }
.sky.dusk .horizon .lw { fill: #ffd27a; }
.horizon .palm path { fill: none; stroke: #3f7d5a; stroke-width: 4; stroke-linecap: round; }
.sky.dusk .horizon .palm path { stroke: #7b4a3a; }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; overflow: hidden; background: linear-gradient(180deg, #4fb6d8, #1f8fb6); }
.sky.dusk .sea { background: linear-gradient(180deg, #e9a07e, #b86e6a); }
.wave { position: absolute; left: 0; width: 200%; height: 100%; animation: drift 18s linear infinite; }
.wave path { fill: rgba(255, 255, 255, .28); }
.wave.w2 { animation-duration: 26s; animation-direction: reverse; top: 14px; }
.wave.w2 path { fill: rgba(140, 230, 225, .3); }
.wave.w3 { animation-duration: 34s; top: 30px; }
.wave.w3 path { fill: rgba(255, 240, 200, .25); }
@keyframes drift { to { transform: translateX(-50%); } }
.login-wrap { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 420px; align-items: center; gap: 60px; max-width: 1180px; margin: 0 auto; padding: 40px 32px 170px; }
.login-story h1 { font-family: var(--serif); font-size: 76px; line-height: 1; margin: 14px 0 18px; color: var(--navy); }
.login-story h1 em { display: block; font-style: italic; font-size: 34px; font-weight: 600; color: var(--gold-2); margin-top: 8px; }
.login-story p { font-size: 17px; color: #2d4466; max-width: 470px; }
.story-stats { display: flex; gap: 30px; margin-top: 30px; }
.story-stats b { display: block; font-size: 30px; font-family: var(--serif); color: var(--navy); }
.story-stats span { font-size: 12px; color: #3d5577; text-transform: uppercase; letter-spacing: 1.4px; }
.login-card { padding: 30px; display: flex; flex-direction: column; gap: 15px; background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-lg); }
.login-card.warm { background: rgba(255, 250, 242, .9); }
.lc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.lc-head b { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.lc-head span { color: var(--muted); font-size: 13px; }
.login-note { font-size: 12px; color: var(--muted); text-align: center; }
.login-alt { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- dashboard ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px; margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 0%, #fff8ec 55%, #e7f7f6 100%); }
.hero::before { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .45), transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--teal)); opacity: .6; }
.hero > * { position: relative; }
.hero h1 { font-family: var(--serif); font-size: 36px; margin: 8px 0; }
.hero p { color: var(--muted); max-width: 640px; }
.hero p b { color: var(--gold-2); }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero.slim { padding: 22px 28px; }
.hero.slim h1 { font-size: 28px; }
.hero-stat { text-align: center; padding: 14px 22px; border-left: 1px solid var(--line); }
.hero-stat b { display: block; font-family: var(--serif); font-size: 46px; color: var(--gold-2); line-height: 1; }
.hero-stat span { font-size: 12px; color: var(--muted); }
.ring { position: relative; flex: none; width: 170px; height: 170px; }
.ring.sm { width: 92px; height: 92px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #eef1f6; stroke-width: 10; }
.ring-fg { fill: none; stroke: url(#rg); stroke-width: 10; stroke-linecap: round; animation: ringIn 1.2s cubic-bezier(.2, .8, .2, 1); }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--navy); }
.ring-label span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ring.sm .ring-label b { font-size: 20px; }
.ring.sm .ring-label span { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tone) 13%, white); color: var(--tone); }
.kpi-ico .ico, .kpi-ico .ico svg { width: 22px; height: 22px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--navy); }
.kpi small { color: var(--dim); font-size: 11.5px; }
.tone-teal { --tone: var(--teal); } .tone-violet { --tone: var(--violet); } .tone-rose { --tone: var(--rose); }
.tone-green { --tone: var(--green); } .tone-gold { --tone: #d18c25; } .tone-blue { --tone: var(--blue); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ico { color: var(--gold); }
.card-head > a { font-size: 12.5px; }
.facade-card { padding: 20px 22px 10px; margin-bottom: 18px; overflow: hidden; background: linear-gradient(180deg, #bfe3f8 0%, #dff1fb 55%, #fff3df 100%); border-color: #cfe3f1; }
.facade-card .muted { color: #3d5577; }
.facade { overflow-x: auto; }
.facade svg { display: block; width: 100%; min-width: 720px; height: auto; }
.facade .lobby { fill: #f4ede0; stroke: #d8ccb4; }
.facade .door-glow { fill: #8fd3e8; }
.facade .canopy { fill: #e0a23e; }
.facade .sign-sm { fill: #8a5608; font: 700 8px var(--font); letter-spacing: 3px; }
.facade .lobby-win { fill: #b7e1f3; stroke: #9cc8dc; }
.facade .fl-body { fill: url(#bldg); stroke: #d3dbe7; }
.facade .fl-ledge { fill: #d9cdb6; }
.facade .fl-lbl { fill: #5b6b86; font: 700 11px var(--font); }
.facade .roof { fill: #14325a; }
.facade .sign { fill: #f6cf7c; font: 700 15px var(--serif); letter-spacing: 6px; }
.facade .mast { fill: #8794ab; }
.facade .beacon { fill: #e0506b; animation: beacon 2s ease-in-out infinite; }
@keyframes beacon { 50% { opacity: .25; } }
.facade .ground { fill: #e9d9b8; }
.facade .palm-f path { fill: none; stroke: #3f7d5a; stroke-width: 4; stroke-linecap: round; }
.win { cursor: pointer; outline: none; }
.win .pane { fill: #bfe2f5; stroke: #8cb9d3; transition: fill .3s; }
.win .mullion { stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.win text { fill: #5b6b86; font: 600 8px var(--font); }
.win.OC .pane { fill: #ffc85a; stroke: #d89422; }
.win.OC .mullion { stroke: rgba(160, 100, 20, .35); }
.win.OC text { fill: #8a5608; font-weight: 800; }
.win.VD .pane { fill: #f5d3a3; stroke: #c27c12; }
.win.RS .pane { stroke: var(--teal); stroke-width: 2.2; stroke-dasharray: 3 2; }
.win.mine .pane { stroke: #14325a; stroke-width: 2.5; }
.win:hover .pane, .win:focus .pane { stroke: #14325a; stroke-width: 2.5; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend.spaced { margin: 6px 0 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-2); }
.lg.OC::before { background: #ffc85a; border-color: #d89422; }
.lg.VC::before { background: #bfe2f5; border-color: #8cb9d3; }
.lg.VD::before { background: #f5d3a3; border-color: var(--amber); }
.lg.RS::before { border: 2px dashed var(--teal); }
.lg.mine::before { border: 2px solid var(--navy); }
.lg.bar-res::before { background: #f6c66a; } .lg.bar-conf::before { background: #7fb3f2; }
.lg.bar-in::before { background: #4fc79a; } .lg.bar-out::before { background: #c3cbd8; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.OC { background: var(--gold); } .dot.VC { background: var(--green); } .dot.VD { background: var(--amber); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; }
.panel { padding: 18px; min-width: 0; background: #fff; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.mini-row:hover { background: var(--surface-2); }
.mr-txt { flex: 1; min-width: 0; }
.mr-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-txt small { color: var(--muted); font-size: 12px; }
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.feed-row:hover { background: var(--surface-2); }
.feed-row > div { flex: 1; min-width: 0; }
.feed-row b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row small { color: var(--dim); font-size: 11.5px; }
.feed-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.feed-dot .ico, .feed-dot .ico svg { width: 16px; height: 16px; }
.feed-dot.charge { background: var(--gold-soft); color: #c27c12; }
.feed-dot.payment { background: var(--green-soft); color: var(--green); }
.feed-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-amt.payment { color: var(--green); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.type-card { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; }
.tc-body b { font-size: 17px; font-family: var(--serif); color: var(--navy); }
.tc-body > span { display: block; font-size: 12px; color: var(--muted); }
.tc-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tc-stats span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- room rack ---------- */
.floor { display: flex; gap: 16px; padding: 14px 16px; margin-bottom: 12px; align-items: flex-start; background: #fff; }
.floor-lbl { width: 64px; flex: none; text-align: center; padding-top: 4px; }
.floor-lbl b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-2); line-height: 1; }
.floor-lbl span { font-size: 11px; color: var(--dim); }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; flex: 1; }
.room {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 10px; border-radius: 12px; cursor: pointer; min-height: 74px;
  border: 1px solid #cfe5f1; background: #eef8fd; color: var(--text); transition: transform .15s, box-shadow .15s;
}
.room:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rm-top { display: flex; align-items: center; justify-content: space-between; }
.rm-top b { font-size: 17px; color: var(--navy); }
.rm-top .ico { color: var(--dim); }
.rm-type { font-size: 11px; color: var(--muted); }
.room small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.room.OC { background: linear-gradient(145deg, #fff1cf, #ffe2a3); border-color: #f0c26b; }
.room.OC small { color: #8a5608; font-weight: 600; }
.room.OC .ico { color: #c27c12; }
.room.VD { background: var(--amber-soft); border-color: #efc884; }
.room.RS { border: 2px dashed var(--teal); }
.room.mine { box-shadow: 0 0 0 2px var(--navy); }

/* ---------- reservation chart ---------- */
.chart-wrap { overflow-x: auto; padding: 0; background: #fff; }
.chart { min-width: 980px; }
.ch-head, .ch-row { display: grid; grid-template-columns: 120px 1fr; }
.ch-head { position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--line-2); border-radius: var(--radius) var(--radius) 0 0; }
.ch-corner { padding: 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); font-weight: 700; display: flex; align-items: flex-end; }
.ch-days, .ch-track { display: grid; grid-template-columns: repeat(var(--days), 1fr); }
.ch-day { text-align: center; padding: 8px 2px; border-left: 1px solid var(--line); line-height: 1.15; }
.ch-day span, .ch-day small { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; }
.ch-day b { font-size: 17px; color: var(--navy); }
.ch-day.wknd { background: #f6f4ff; }
.ch-day.today { background: var(--gold-soft); box-shadow: inset 0 -3px 0 var(--gold); }
.ch-day.today b { color: var(--gold-2); }
.ch-row { border-bottom: 1px solid var(--line); }
.ch-row:hover { background: #fbfcfe; }
.ch-room { display: flex; align-items: center; gap: 8px; padding: 7px 14px; }
.ch-room b { font-size: 14px; color: var(--navy); }
.ch-room span { font-size: 11px; color: var(--dim); flex: 1; }
.ch-room.mine b { color: var(--gold-2); }
.ch-track { position: relative; min-height: 42px; }
.ch-cell { border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; }
.ch-cell:hover { background: var(--gold-soft); }
.ch-cell.today { background: rgba(253, 243, 224, .55); }
.ch-bar {
  position: absolute; top: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 9px; overflow: hidden;
  font-size: 12px; font-weight: 600; color: #15233f; text-decoration: none !important; white-space: nowrap; box-shadow: 0 3px 10px rgba(20, 40, 80, .15); transition: transform .15s, filter .15s; z-index: 2;
}
.ch-bar span { overflow: hidden; text-overflow: ellipsis; }
.ch-bar:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bar-res { background: linear-gradient(90deg, #f6c66a, #fbe0a8); }
.bar-conf { background: linear-gradient(90deg, #7fb3f2, #b9d6fa); }
.bar-in { background: linear-gradient(90deg, #4fc79a, #9be3c4); }
.bar-out { background: linear-gradient(90deg, #c3cbd8, #dfe4ec); color: #4a5872; }

/* ---------- lists & tables ---------- */
.list-layout { display: grid; grid-template-columns: 1fr 190px; gap: 16px; align-items: start; }
.list-card { overflow: hidden; padding: 0; background: #fff; }
.list-tools { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; border-radius: 9px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.seg button:hover { color: var(--text); background: #fff; }
.seg button.on { background: #fff; color: var(--gold-2); font-weight: 700; box-shadow: 0 1px 4px rgba(20, 40, 80, .12); }
.seg button em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--tint-2); }
.seg button.on em { background: var(--gold-soft); }
.seg .ico, .seg .ico svg { width: 16px; height: 16px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .ico { position: absolute; left: 12px; top: 11px; color: var(--dim); }
.search input { padding-left: 38px; }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.grid td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tbody tr { transition: background .12s; }
.grid tbody tr:hover { background: #fafbfd; }
.grid tr.sel, .grid tr.sel:hover { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.grid tfoot td { font-weight: 700; background: var(--surface-2); }
.grid.compact td, .grid.compact th { padding: 6px 10px; font-size: 12.5px; }
.grid td.me { background: var(--gold-soft); color: var(--gold-2); font-weight: 700; }
.grid th.chk, .grid td.chk { width: 40px; }
.grid .sub { display: block; color: var(--dim); font-size: 11.5px; }
.grid tr.flash { animation: flash 1.4s ease; }
@keyframes flash { from { background: #ffe6b3; } to { background: transparent; } }
.who { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; vertical-align: middle; font-family: var(--font); letter-spacing: .2px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-res { background: var(--amber-soft); color: #9a6008; }
.b-conf { background: var(--blue-soft); color: #1d5fb8; }
.b-in { background: var(--green-soft); color: #137a4f; }
.b-out { background: #eef1f5; color: #5b6b86; }
.b-cxl { background: var(--rose-soft); color: #b02a46; }
.side-actions { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 86px; }
.side-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; color: var(--text);
  background: #fff; box-shadow: var(--shadow); transition: border-color .15s, transform .12s, box-shadow .15s;
}
.side-btn .ico { color: var(--gold); }
.side-btn:not(:disabled):hover { border-color: var(--gold); color: var(--gold-2); transform: translateX(-2px); }
.side-btn.big { padding: 16px 14px; }
.side-btn.big .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); }
.side-actions .dropdown .menu-pop { min-width: 220px; }
.hint { font-size: 12px; color: var(--dim); margin: 2px; }
.bal-box { border-radius: 14px; padding: 16px; background: linear-gradient(135deg, #fff4dc, #e3f6f4); border: 1px solid #f0d49c; }
.bal-box span { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); display: block; }
.bal-box b { display: block; font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 4px 0; }
.bal-box small { font-size: 12px; color: var(--muted); }

/* ---------- folio ---------- */
.guest-hero { display: flex; align-items: center; gap: 22px; padding: 24px 26px; margin-bottom: 14px; position: relative; overflow: hidden; background: linear-gradient(115deg, #ffffff 30%, #fff7e8 75%, #eaf8f7); }
.guest-hero::before { content: ''; position: absolute; left: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .35), transparent 65%); pointer-events: none; }
.guest-hero > * { position: relative; }
.gh-main { flex: 1; min-width: 0; }
.gh-main h1 { font-family: var(--serif); font-size: 30px; margin: 4px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gh-main > p { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gh-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 80, .05); }
.gh-chips .ico, .gh-chips .ico svg { width: 14px; height: 14px; color: var(--gold); }
.stay-bar { position: relative; height: 22px; margin-top: 12px; border-radius: 99px; background: #eef1f6; overflow: hidden; max-width: 460px; }
.stay-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8fe0d6, #ffd27a); border-radius: 99px; transition: width .8s; }
.stay-bar span { position: relative; font-size: 11.5px; font-weight: 700; padding-left: 12px; line-height: 22px; color: var(--navy); }
.gh-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 260px; }
.gh-bal div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.gh-bal span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.gh-bal b { font-size: 16px; font-variant-numeric: tabular-nums; }
.gh-bal b.due { color: #b46c08; }
.gh-bal .tot { grid-column: span 2; background: linear-gradient(135deg, #fff1d2, #fffaf0); border-color: #f0d49c; }
.gh-bal .tot b { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.guest-hero.compact { padding: 16px 20px; }
.guest-hero.compact .avatar.xl { width: 58px; height: 58px; font-size: 20px; }
.guest-hero.compact h1 { font-size: 22px; }
.guest-hero.compact .gh-bal { display: none; }
.stepper { display: flex; align-items: center; padding: 14px 20px; margin-bottom: 14px; overflow-x: auto; background: #fff; }
.stepper.cancelled { color: var(--rose); gap: 8px; }
.step-i { display: flex; align-items: center; gap: 10px; flex: none; opacity: .55; }
.step-i b { display: block; font-size: 13px; color: var(--navy); }
.step-i small { color: var(--dim); font-size: 11.5px; }
.dotc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid var(--line-2); flex: none; background: #fff; color: var(--muted); }
.dotc .ico, .dotc .ico svg { width: 15px; height: 15px; }
.step-i.done { opacity: 1; }
.step-i.done .dotc { background: var(--teal); border-color: var(--teal); color: #fff; }
.step-i.now { opacity: 1; }
.step-i.now .dotc { background: linear-gradient(135deg, #f6cf7c, var(--gold)); border-color: transparent; color: var(--gold-ink); box-shadow: 0 0 0 5px rgba(224, 162, 62, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(224, 162, 62, .08); } }
.step-line { flex: 1; min-width: 24px; height: 2px; margin: 0 14px; background: var(--line-2); }
.card-tabs { padding: 0; overflow: visible; background: #fff; }
.tabs { display: flex; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 13px 16px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.tab.on .ico { color: var(--gold); }
.tab small { font-weight: 400; }
.tick { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; }
.tab-body { padding: 22px; animation: viewIn .25s ease; }
.subtabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.subtabs button { border: 1px solid var(--line-2); background: #fff; padding: 8px 14px; border-radius: 99px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.subtabs button.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 16px; }
.form-grid.tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.fld.span2 { grid-column: span 2; }
.form-sec { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold-2); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; padding: 8px 0; }
.inline { display: flex; gap: 8px; }
.rate-preview { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; background: var(--gold-soft); border: 1px solid #f0d49c; border-radius: 12px; font-size: 13px; }
.rate-preview b { color: var(--gold-2); }
input.cell { padding: 6px 9px; min-width: 120px; }
.bi-layout, .ins-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.bi-form, .ins-form { display: flex; flex-direction: column; gap: 12px; }
.pick-list { border: 1px solid var(--line-2); border-radius: 12px; max-height: 270px; overflow-y: auto; background: #fff; }
.pick-list.tall { max-height: 360px; }
.pl-group { position: sticky; top: 0; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-2); padding: 8px 12px 6px; background: #fdf8ef; border-bottom: 1px solid var(--line); }
.pick-list button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 9px 13px; cursor: pointer; color: var(--text); transition: background .12s; }
.pick-list button span { font-size: 10.5px; color: var(--dim); font-weight: 600; letter-spacing: .5px; }
.pick-list button small { color: var(--muted); }
.pick-list button:hover { background: var(--surface-2); }
.pick-list button.on { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); font-weight: 600; }
.pick-list button.on span, .pick-list button.on small { color: var(--gold-2); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; max-height: 400px; overflow-y: auto; }
.pick { border: 1px solid #cfe5f1; border-radius: 12px; padding: 10px; cursor: pointer; background: #eef8fd; text-align: left; display: flex; flex-direction: column; color: var(--text); transition: transform .12s; }
.pick:hover { transform: translateY(-2px); }
.pick b { font-size: 16px; color: var(--navy); }
.pick small { font-size: 11px; color: var(--muted); }
.pick.VD { background: var(--amber-soft); border-color: #efc884; }
.pick.OC { background: #f1f3f7; border-color: var(--line-2); }
.pick.mine { box-shadow: 0 0 0 2px var(--navy); }
.pick.on { background: linear-gradient(135deg, #f6cf7c, var(--gold)); border-color: transparent; }
.pick.on b, .pick.on small { color: var(--gold-ink); }
.pick:disabled { opacity: .45; cursor: not-allowed; }
.isense { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; background: #fff; border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 280px; }
.isense.open { display: block; animation: popIn .15s ease; }
.is-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-2); padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fdf8ef; }
.isense button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 12px; text-align: left; cursor: pointer; color: var(--text); }
.isense button:hover { background: var(--gold-soft); }
.isense button span b { display: block; font-size: 13px; }
.isense button span small { color: var(--muted); font-size: 11.5px; }

/* ---------- booking (new reservation) ---------- */
.booking { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.summary { padding: 18px; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.sum-visual { height: 150px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; color: var(--navy);
  background: radial-gradient(circle at 78% 26%, #fff3c4, transparent 22%), linear-gradient(180deg, #a8daf7, #d9effa 60%, #ffe9c9); }
.sum-visual::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, #6cc3de, #2f9cc2); }
.sum-visual.STE { background: radial-gradient(circle at 78% 26%, #fff3c4, transparent 22%), linear-gradient(160deg, #ffd9b8, #ffc2a6 55%, #f7a99a); }
.sum-visual.DLX { background: radial-gradient(circle at 78% 26%, #fff3c4, transparent 22%), linear-gradient(160deg, #c9ecf6, #9fdcea 60%, #7fd1cf); }
.sum-visual.day { background: radial-gradient(circle at 70% 30%, #fff6cf, transparent 30%), linear-gradient(180deg, #7cc4f2, #bfe6fa 60%, #ffe2a8); }
.sum-visual .ico, .sum-visual .ico svg { width: 44px; height: 44px; color: #c27c12; }
.sum-room { position: relative; z-index: 1; font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; color: var(--navy); }
.sum-visual small { position: relative; z-index: 1; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #3d5577; }
.summary h3 { font-family: var(--serif); font-size: 22px; }
.sum-list { list-style: none; padding: 0; margin: 0; }
.sum-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.sum-list span { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #f0d49c; }
.sum-total span { font-size: 12px; color: var(--muted); }
.sum-total b { font-family: var(--serif); font-size: 22px; color: var(--navy); }

/* ---------- transaction window ---------- */
.subfolio-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.sf { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; color: var(--text); transition: all .15s; }
.sf span { font-weight: 700; color: var(--navy); }
.sf small { grid-row: 2; color: var(--dim); font-size: 11.5px; }
.sf b { grid-row: span 2; grid-column: 2; font-size: 18px; font-variant-numeric: tabular-nums; }
.sf.on { border-color: var(--gold); background: linear-gradient(135deg, #fff3da, #ffffff); box-shadow: 0 6px 18px rgba(224, 162, 62, .18); }
.sf.on b { color: var(--gold-2); }
.code-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.code-chip.charge { background: var(--gold-soft); color: #9a6008; }
.code-chip.payment { background: var(--green-soft); color: #137a4f; }
.ledger td.pay { color: var(--green); font-weight: 600; }

/* ---------- cashier / reports / reference ---------- */
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.term { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; transition: transform .15s; }
.term:hover { transform: translateY(-2px); }
.term-no { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #c3cbd8; width: 40px; }
.term-txt { flex: 1; min-width: 0; }
.term-txt small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term.open { border-color: #a6dfc4; background: linear-gradient(160deg, var(--green-soft), #fff); }
.term.open .term-no { color: var(--green); }
.term.open .key { color: var(--green); border-color: #a6dfc4; }
.term.mine { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.term.mine .term-no { color: var(--gold-2); }
table.kv { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.kv td { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kv tr.tot td { font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--line-2); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.report-card { text-align: left; padding: 22px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--text); background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.report-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.report-card b { font-size: 18px; font-family: var(--serif); margin-top: 6px; color: var(--navy); }
.report-card > span:last-child { color: var(--muted); font-size: 13px; }
.rc-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; }
.rc-ico .ico, .rc-ico .ico svg { width: 24px; height: 24px; }
.rc-ico.violet { background: var(--violet-soft); color: var(--violet); }
.rc-ico.rose { background: var(--rose-soft); color: var(--rose); }
.rc-ico.teal { background: var(--teal-soft); color: var(--teal); }
.btn-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.bl { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; }
.bl-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--navy); }
.bl-ico.gold { background: var(--gold-soft); color: #c27c12; border-color: #f0d49c; }
.bl small { display: block; color: var(--muted); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.step { display: flex; gap: 12px; padding: 12px 14px; color: var(--text); background: #fff; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.step:hover { border-color: var(--gold); transform: translateY(-2px); }
.step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f6cf7c, var(--gold)); color: var(--gold-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.step small { display: block; color: var(--muted); font-size: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.table-card { overflow: hidden; padding: 0; background: #fff; }

/* ---------- modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 30, 60, .38); backdrop-filter: blur(4px); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; display: flex; flex-direction: column; max-height: calc(100vh - 32px); border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fffaf0, #ffffff); border-radius: 18px 18px 0 0; }
.modal-head h3 { font-size: 17px; font-family: var(--serif); }
.modal-x { width: 32px; height: 32px; border: 0; background: transparent; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 18px 18px; }
.confirm-msg { display: flex; gap: 16px; align-items: flex-start; }
.confirm-msg p { margin-top: 6px; line-height: 1.6; }
.confirm-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--blue-soft); color: var(--blue); }
.confirm-ico.ok { background: var(--green-soft); color: var(--green); }
.confirm-ico.warn { background: var(--amber-soft); color: var(--amber); }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 11px; border-radius: 12px; max-width: 360px; color: var(--text);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .25s ease; transition: opacity .3s, transform .3s; }
.toast i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; background: var(--green); color: #fff; }
.toast.err i { background: var(--rose); }
.toast.info i { background: var(--blue); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- documents ---------- */
.doc-toolbar { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.doc-scroll { background: #e8edf4; padding: 22px; border-radius: 14px; max-height: 64vh; overflow: auto; }
.doc-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page { background: #fff; width: 100%; max-width: 760px; padding: 38px 42px; box-shadow: 0 6px 24px rgba(20, 40, 80, .15); font: 13px/1.5 var(--font); color: #111; border-radius: 3px; }
.page.landscape { max-width: 1000px; }
.page h4 { margin: 18px 0 6px; font-size: 13px; color: #14325a; }
.doc-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; border-bottom: 2px solid #c8923a; padding-bottom: 12px; margin-bottom: 16px; }
.doc-hotel { font-family: var(--serif); font-size: 22px; color: #14325a; font-weight: 700; }
.doc-addr { font-size: 11px; color: #555; }
.doc-title { grid-column: 1 / -1; text-align: center; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; margin-top: 8px; color: #14325a; }
.doc-date { text-align: right; }
.page p { margin: 0 0 10px; }
.doc-kv { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc-kv td { border: 1px solid #ccd; padding: 6px 8px; }
.doc-kv td:nth-child(odd) { background: #f3f5f8; width: 18%; font-size: 12px; color: #444; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.doc-table th { background: #14325a; color: #fff; text-align: left; padding: 6px; }
.doc-table td { border-bottom: 1px solid #dde; padding: 5px 6px; vertical-align: top; }
.doc-table tfoot td { font-weight: 700; border-top: 2px solid #999; }
.doc-sum { margin: 14px 0 0 auto; border-collapse: collapse; min-width: 300px; }
.doc-sum td { padding: 4px 8px; }
.doc-sum td:last-child { text-align: right; }
.doc-sum tr.tot td { font-weight: 700; border-top: 2px solid #333; font-size: 14px; }
.sig { display: flex; justify-content: space-between; gap: 40px; margin-top: 48px; }
.sig div { flex: 1; text-align: center; font-size: 12px; }
.sig span { display: block; border-top: 1px solid #333; margin-bottom: 4px; }
.doc-foot { margin-top: 24px; font-size: 10.5px; color: #777; text-align: center; }
.page.slip { max-width: 320px; padding: 18px 16px; font-family: 'Consolas', 'Courier New', monospace; font-size: 12px; }
.slip-head { text-align: center; border-bottom: 1px dashed #333; padding-bottom: 8px; margin-bottom: 8px; }
.slip-meta { border-bottom: 1px dashed #333; padding-bottom: 8px; margin-bottom: 8px; }
.slip-table, .slip-sum { width: 100%; border-collapse: collapse; }
.slip-table th { text-align: left; border-bottom: 1px dashed #333; }
.slip-table td { padding: 2px 0; vertical-align: top; }
.slip-sum { border-top: 1px dashed #333; margin-top: 6px; }
.slip-sum td:last-child { text-align: right; }
.slip-sum tr.tot td { font-weight: 700; font-size: 13px; }
.slip-foot { text-align: center; margin-top: 10px; border-top: 1px dashed #333; padding-top: 8px; }
#print-area { display: none; }
@media print {
  body.printing { background: #fff !important; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  #print-area .doc-pages { display: block; }
  #print-area .page { box-shadow: none; max-width: none; page-break-after: always; padding: 0 0 20px; }
  #print-area .page.slip { max-width: 80mm; margin: 0 auto; }
  @page { margin: 14mm; }
}

/* ---------- Resto Plus point of sale (warm cream palette) ---------- */
.pos {
  --pos-line: #eadfcf;
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 100% 0%, rgba(255, 170, 110, .18), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(224, 162, 62, .14), transparent 60%), linear-gradient(180deg, #fffaf3, #fbf3e6);
}
.pos-top { display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(255, 255, 255, .85); border-bottom: 1px solid var(--pos-line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.pos-brand { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--text); text-decoration: none !important; }
.pos-brand b { display: block; font-family: var(--serif); font-size: 20px; color: #8a4b12; }
.pos-brand small { display: block; font-size: 11px; color: var(--muted); }
.pos-tabs { display: flex; gap: 4px; }
.pos-tabs a { display: flex; align-items: center; gap: 8px; color: #6d5a48; padding: 18px 14px 16px; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.pos-tabs a .ico { color: #b9a189; }
.pos-tabs a.on, .pos-tabs a:hover { color: #3d2a17; border-bottom-color: var(--gold); }
.pos-tabs a.on .ico { color: var(--gold); }
.pos-right { margin-left: auto; display: flex; gap: 6px; }
.pos-link { display: inline-flex; align-items: center; gap: 6px; color: #6d5a48; background: #fff; border: 1px solid var(--pos-line); padding: 7px 12px; border-radius: 10px; cursor: pointer; font-size: 13px; text-decoration: none !important; }
.pos-link:hover { color: #3d2a17; border-color: var(--gold); }
.pos-body { flex: 1; padding: 22px; animation: viewIn .3s ease; }
.pos-status { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; background: #fff; border-top: 1px solid var(--pos-line); color: #6d5a48; font-size: 12px; padding: 8px 22px; position: sticky; bottom: 0; z-index: 20; }
.pos-status span { display: inline-flex; align-items: center; gap: 6px; }
.pos-status .ico, .pos-status .ico svg { width: 14px; height: 14px; }
.pos-status b { color: #3d2a17; }
.pos-status b.ok { color: var(--green); }
.pos-status b.bad { color: var(--rose); }
.pos-status .grow { flex: 1; }
.keys-hint kbd { margin-left: 6px; }
.pos h1, .pos h2, .pos h3 { color: #3d2a17; }
.pos-home { max-width: 1200px; margin: 0 auto; }
.pos-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 30px; margin-bottom: 18px; border-radius: 20px; border: 1px solid #f3d6b4;
  background: radial-gradient(420px 220px at 100% 0%, rgba(255, 190, 120, .45), transparent 70%), linear-gradient(120deg, #fffdf8, #ffefd9); box-shadow: var(--shadow); }
.pos-hero h1 { font-family: var(--serif); font-size: 34px; margin: 6px 0; text-transform: capitalize; }
.pos-hero p { color: #6d5a48; }
.pos-hero p b { color: #a8690f; }
.pos-hero-stat { text-align: right; }
.pos-hero-stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; }
.pos-hero-stat b { display: block; font-family: var(--serif); font-size: 40px; color: #8a4b12; }
.pos-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pos-tiles.narrow { max-width: 520px; margin: 18px auto 0; }
.tile { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 20px; border-radius: 18px; border: 1px solid var(--pos-line); background: #fff; cursor: pointer; color: var(--text); box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.tile b { font-size: 17px; margin-top: 8px; color: #3d2a17; }
.tile > span:last-child { color: var(--muted); font-size: 13px; }
.tile:not(:disabled):hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.tile:disabled { opacity: .45; cursor: not-allowed; }
.tile.t-gold { background: linear-gradient(140deg, #fff3da, #ffe4b3); border-color: #f0c26b; }
.t-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: #c27c12; }
.tile.t-gold .t-ico { background: #fff; }
.t-ico .ico, .t-ico .ico svg { width: 22px; height: 22px; }
.t-ico.big { width: 60px; height: 60px; margin: 0 auto 10px; }
.pos-panel-head .t-ico.big { margin: 0; }
.t-ico.big .ico, .t-ico.big .ico svg { width: 28px; height: 28px; }
.pos-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pos-stats div { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--pos-line); box-shadow: var(--shadow); }
.pos-stats span { font-size: 12px; color: var(--muted); display: block; }
.pos-stats b { font-family: var(--serif); font-size: 30px; color: #8a4b12; }
.pos-sec { margin: 24px 0 12px; font-size: 15px; }
.floorplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px; padding: 24px; border-radius: 18px; border: 1px solid var(--pos-line);
  background: repeating-linear-gradient(90deg, #f6ead7 0 28px, #f2e3cc 28px 30px); }
.tbl { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; color: #3d2a17;
  background: radial-gradient(circle at 40% 35%, #ffffff, #efe2cf); border: 2px solid #d9c2a2; box-shadow: 0 6px 14px rgba(120, 80, 30, .18); font: inherit; }
.tbl.big { border-radius: 22px; }
.tbl::before { content: ''; position: absolute; inset: -9px; border-radius: inherit; border: 3px dotted #cbb08a; }
.tbl span { font-weight: 800; font-size: 15px; }
.tbl small { font-size: 10.5px; color: #8a7358; }
.tbl.busy { background: radial-gradient(circle at 40% 35%, #ffe2a3, #f2b44e); border-color: #d89422; }
.tbl.busy small { color: #6b4106; }
button.tbl { cursor: pointer; transition: transform .15s; }
button.tbl:not(:disabled):hover { transform: scale(1.05); }
button.tbl:disabled { opacity: .6; cursor: not-allowed; }
.tbl.on { background: radial-gradient(circle at 40% 35%, #c9f3ef, #5fcfc8); border-color: var(--teal); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.pick-plan { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.pos-panel { max-width: 1100px; margin: 0 auto; padding: 24px; border-radius: 20px; border: 1px solid var(--pos-line); background: #fff; box-shadow: var(--shadow); }
.pos-panel.center { text-align: center; max-width: 640px; padding: 40px 24px; }
.pos-panel h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.pos-panel h3 { font-size: 14px; margin: 20px 0 10px; }
.pos-panel-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
/* order taker */
.pos-ot { display: grid; grid-template-columns: 1fr 360px 220px; gap: 16px; align-items: start; }
.menu-pane { min-width: 0; }
.ot-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.ot-bar select { width: auto; padding: 7px 10px; border-radius: 99px; font-size: 13px; }
.chip-d { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--pos-line); color: #3d2a17; }
.chip-d.gold { background: var(--gold-soft); color: #8a5608; border-color: #f0c26b; }
.chip-d.teal { background: var(--teal-soft); color: #0b6f6b; border-color: #9fdcd8; }
.chip-d.rose { background: var(--rose-soft); color: #b02a46; border-color: #f2b9c4; }
.btn-chip { cursor: pointer; }
.btn-chip:hover { border-color: var(--gold); }
.chip-d .ico, .chip-d .ico svg { width: 15px; height: 15px; }
.pax { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 99px; border: 1px solid var(--pos-line); background: #fff; font-size: 13px; }
.pax span { color: var(--muted); margin-right: 4px; }
.pax button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #f6ead7; cursor: pointer; font-weight: 700; color: #3d2a17; }
.pax button:hover { background: var(--gold); }
.pax input { width: 44px; padding: 4px; text-align: center; border: 0; background: transparent; font-weight: 700; box-shadow: none; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.cat-chips button { flex: none; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--pos-line); background: #fff; cursor: pointer; color: #6d5a48; font-weight: 600; font-size: 13px; }
.cat-chips button.on { background: linear-gradient(135deg, #f6cf7c, var(--gold)); color: var(--gold-ink); border-color: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.menu-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 18px; text-align: left; cursor: pointer; color: var(--text); min-height: 150px;
  border: 1px solid var(--pos-line); background: #fff; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.menu-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.menu-card:active { transform: scale(.97); }
.menu-card.pop { animation: popAdd .4s ease; }
@keyframes popAdd { 40% { transform: scale(1.06); box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); } }
.menu-card .emo { width: 56px; height: 56px; display: grid; place-items: center; font-size: 32px; line-height: 1; margin-bottom: 8px; border-radius: 16px; background: linear-gradient(135deg, #fff3da, #ffe6c2); }
.menu-card b { font-size: 14px; line-height: 1.25; color: #3d2a17; }
.menu-card small { color: var(--muted); font-size: 11px; }
.menu-card .price { margin-top: auto; padding-top: 8px; font-weight: 800; color: #8a4b12; }
.ticket { position: sticky; top: 86px; display: flex; flex-direction: column; max-height: calc(100vh - 150px); color: #2a1d12; border-radius: 4px 4px 0 0;
  background: #fffdf8; border: 1px solid var(--pos-line); box-shadow: var(--shadow-lg); font-family: 'Consolas', 'Courier New', monospace; }
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 6px 0, #fffdf8 6px, transparent 6.5px) 0 0 / 12px 10px repeat-x; }
.ticket-head { padding: 16px 16px 10px; border-bottom: 2px dashed #d9c7ab; text-align: center; }
.ticket-head b { display: block; font-size: 16px; letter-spacing: 1px; }
.ticket-head span { font-size: 12px; color: #7b6a55; }
.ticket-lines { flex: 1; overflow-y: auto; padding: 6px; min-height: 200px; }
.t-line { display: grid; grid-template-columns: 36px 1fr auto; gap: 6px; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.t-line:hover { background: rgba(224, 162, 62, .1); }
.t-line.sel { background: rgba(224, 162, 62, .2); box-shadow: inset 3px 0 0 var(--gold); }
.t-qty { font-weight: 800; }
.t-name b { display: block; font-size: 13px; font-family: var(--font); }
.t-name small { display: block; font-size: 11px; color: #8a5a2b; }
.t-name small.t-prep { color: #9a8a75; }
.t-amt { font-weight: 700; }
.t-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 10px; color: #9a8a75; text-align: center; font-family: var(--font); font-size: 13px; }
.t-empty .ico, .t-empty .ico svg { width: 30px; height: 30px; }
.ticket-tot { border-top: 2px dashed #d9c7ab; padding: 10px 16px 16px; font-size: 13px; }
.ticket-tot div { display: flex; justify-content: space-between; padding: 2px 0; }
.ticket-tot .grand { font-size: 18px; font-weight: 800; padding-top: 8px; margin-top: 6px; border-top: 1px solid #d9c7ab; }
.ot-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; top: 86px; }
.ot-keys button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 76px; padding: 8px; border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 12px; color: #3d2a17; text-align: center;
  border: 1px solid var(--pos-line); background: #fff; box-shadow: var(--shadow); transition: transform .12s, border-color .15s, background .15s; }
.ot-keys button:not(:disabled):hover { border-color: var(--gold); background: #fffaf0; }
.ot-keys button:active { transform: scale(.96); }
.ot-keys button .ico { color: #c27c12; }
.ot-keys button kbd { position: absolute; top: 6px; right: 6px; font-size: 9.5px; padding: 1px 4px; }
.ot-keys button.go { background: linear-gradient(140deg, #f6cf7c, var(--gold)); color: var(--gold-ink); border-color: transparent; }
.ot-keys button.go .ico { color: var(--gold-ink); }
.ot-keys button.go kbd { color: var(--gold-ink); background: rgba(255, 255, 255, .5); }
.ot-keys button.wide { grid-column: span 2; min-height: 54px; flex-direction: row; }
.ot-keys button:disabled { opacity: .4; cursor: not-allowed; }
/* billing screen */
.ot { display: grid; grid-template-columns: 1fr 240px; gap: 16px; align-items: start; }
.ot-main { border-radius: 18px; overflow: hidden; border: 1px solid var(--pos-line); background: #fff; box-shadow: var(--shadow); }
.ot-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; background: #fdf6ea; border-bottom: 1px solid var(--pos-line); }
.ot-info > * { display: flex; flex-direction: column; gap: 2px; }
.ot-info span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ot-info b { color: #8a4b12; }
.ot-lines { min-height: 280px; }
.ot-total { display: flex; justify-content: flex-end; gap: 20px; padding: 14px; flex-wrap: wrap; }
.bill-grid { display: grid; grid-template-columns: 1.3fr 1fr; }
.bill-sum { padding: 18px; border-left: 1px solid var(--pos-line); display: flex; flex-direction: column; gap: 12px; background: #fffaf2; }
.bill-sum .kv tr.tot td { font-size: 18px; font-family: var(--serif); color: #8a4b12; }
.lk { max-height: 360px; overflow-y: auto; margin: 10px 0; }
.lk tbody tr { cursor: pointer; }
.maint-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.maint-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--pos-line); border-radius: 12px; margin-bottom: 8px; color: var(--text); background: #fff; transition: border-color .15s, transform .15s; }
.maint-link::after { content: '›'; color: var(--gold); font-size: 20px; line-height: 1; }
.maint-link:hover { border-color: var(--gold); text-decoration: none; transform: translateX(3px); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pos-ot { grid-template-columns: 1fr 320px; }
  .ot-keys { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ot-keys button.wide { grid-column: auto; flex-direction: column; min-height: 76px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; z-index: 50; box-shadow: var(--shadow-lg); }
  .shell.open .sidebar { transform: none; }
  .shell.collapsed .sb-brand span, .shell.collapsed .sb-nav a span, .shell.collapsed .sb-user-txt, .shell.collapsed .sb-user .icon-btn { display: revert; }
  .shell.collapsed .sb-group { height: auto; padding: 16px 12px 6px; font-size: 10.5px; }
  .shell.collapsed .sb-nav a { justify-content: flex-start; }
  .list-layout, .ot, .booking, .pos-ot { grid-template-columns: 1fr; }
  .side-actions, .summary, .ticket { position: static; }
  .side-actions { flex-direction: row; flex-wrap: wrap; }
  .side-actions > * { flex: 1 1 150px; }
  .hint { flex-basis: 100%; }
  .guest-hero { flex-wrap: wrap; }
  .gh-bal { width: 100%; }
  .dash-grid, .bi-layout, .ins-layout, .two-col, .bill-grid, .maint-cols { grid-template-columns: 1fr; }
  .bill-sum { border-left: 0; border-top: 1px solid var(--pos-line); }
  .login-wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 60px; }
  .login-story h1 { font-size: 52px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-stat { border-left: 0; padding: 0; text-align: left; }
  .ticket { max-height: none; }
  .moon { right: 10%; }
}
@media (max-width: 640px) {
  .view { padding: 18px 16px 60px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .tb-greet { display: none; }
  .pill-glass span, .hide-sm { display: none; }
  .page-head h1 { font-size: 26px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 26px; }
  .ring { width: 130px; height: 130px; }
  .fld.span2 { grid-column: auto; }
  .floor { flex-direction: column; }
  .floor-lbl { width: auto; text-align: left; }
  .page { padding: 20px 16px; }
  .pos-body { padding: 14px; }
  .pos-tabs a span, .pos-link span { display: none; }
  .keys-hint { display: none; }
  .login-story h1 { font-size: 42px; }
  .login-story p { font-size: 15px; }
  .moon { width: 76px; height: 76px; right: 8%; }
  .login-wrap { padding: 40px 16px 150px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .subfolio-tabs { grid-template-columns: 1fr; }
  .gh-main h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- documents, deposit, inspection, settings, faculty ---------- */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.doc-row.need { border-color: #f0cf96; background: var(--amber-soft); }
.doc-row.ok { border-color: #a6dfc4; background: var(--green-soft); }
.doc-row .check { padding: 0; align-items: flex-start; }
.doc-row em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-left: 4px; background: var(--tint-2); color: var(--muted); }
.doc-row em.req { background: var(--rose-soft); color: #b02a46; }
.file-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); min-width: 0; }
.file-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn.off { cursor: default; opacity: .7; }
.file-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.waive-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.sd-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sd-card h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sd-card h3 .ico { color: var(--gold); }
.sd-card .sum-list, .sd-card .kv { width: 100%; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tag.fixed { background: var(--blue-soft); color: #1d5fb8; }
.tag.full { background: var(--amber-soft); color: #9a6008; }
.grid.insp input.cell { min-width: 90px; }
.grid.insp td:nth-child(5) input { text-align: right; }
.set-table input.cell, .set-table select.cell { min-width: 90px; padding: 6px 8px; }
.set-table td:first-child input { min-width: 200px; }
.set-table td { vertical-align: middle; }
.login-links { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.login-links .login-alt { flex: 1; border-top: 0; padding: 9px; border-radius: 10px; background: var(--surface-2); }
.login-note.ok { color: var(--green); font-weight: 600; }
.prog { height: 8px; width: 120px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 99px; }
.fac-table tr.click { cursor: pointer; }
.fac-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.milestones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.milestones li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.milestones li span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.milestones li span .ico, .milestones li span .ico svg { width: 13px; height: 13px; }
.milestones li.done { color: var(--text); background: var(--green-soft); }
.milestones li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.shell.faculty .sb-brand small { color: var(--teal); }
@media (max-width: 960px) {
  .sd-grid, .fac-grid { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 1fr; }
}
.fac-table td:first-child { min-width: 210px; }
.set-table select.cell { min-width: 150px; }
.set-table td:last-child { width: 1%; }

/* ---------- admin overrides and scenarios ---------- */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; background: linear-gradient(110deg, #fffaf0, #ffffff 60%); border-color: #f0d49c; }
.admin-bar > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.admin-bar b { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.admin-bar b .ico { color: var(--gold); }
.admin-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.grid tr.void td { color: var(--dim); text-decoration: line-through; }
.grid tr.void td small, .grid tr.void td:last-child { text-decoration: none; }
.scn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.scn { padding: 18px 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.scn header > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.scn header h3 { font-family: var(--serif); font-size: 20px; }
.scn-id { font: 700 12px var(--font); letter-spacing: 1px; color: var(--gold-2); background: var(--gold-soft); padding: 3px 8px; border-radius: 6px; }
.scn-story { line-height: 1.65; color: var(--text); max-width: 68ch; }
.scn-story b { color: var(--navy); }
.scn.graded { border-color: #a6dfc4; }
.scn.submitted { border-color: #c4dbfa; }
.scn-score { display: flex; gap: 12px; }
.scn-score div { flex: 1; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.scn-score span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.scn-score b { font-family: var(--serif); font-size: 28px; color: var(--navy); }
.scn-comment { padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); }
.scn details summary { cursor: pointer; color: var(--gold-2); font-weight: 600; font-size: 13px; }
.scn details[open] summary { margin-bottom: 8px; }
.lib-sel { margin-left: auto; padding: 0; font-size: 12.5px; }
.chk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.chk-list li { display: flex; gap: 10px; }
.chk-list li span { flex: none; width: 52px; font-size: 11px; font-weight: 700; color: var(--gold-2); }
.scn-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; text-decoration: none !important; color: var(--text);
  background: linear-gradient(110deg, #fff1d2, #ffffff 70%); border: 1px solid #f0c26b; box-shadow: var(--shadow); }
.scn-banner > .ico { color: #c27c12; width: 26px; height: 26px; }
.scn-banner > .ico svg { width: 26px; height: 26px; }
.scn-banner div { flex: 1; min-width: 0; }
.scn-banner b { display: block; color: var(--navy); }
.scn-banner span { font-size: 12.5px; color: var(--muted); }
.assign-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 10px; max-height: 340px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.roster .check { padding: 4px 0; font-size: 13px; }
.scn-pick { display: flex; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; width: 100%; }
#lock-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(15, 30, 60, .55); backdrop-filter: blur(8px); }
.lock-card { max-width: 440px; padding: 34px 30px; border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-card h2 { font-family: var(--serif); font-size: 28px; }
.lock-card p { font-size: 16px; }
.lock-card small { color: var(--muted); }
@media (max-width: 960px) {
  .assign-grid { grid-template-columns: 1fr; }
  .scn-list { grid-template-columns: 1fr; }
}

/* ---------- scenario event sequences ---------- */
.evt-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.evt-list li b { display: block; color: var(--navy); }
.evt-list li span { display: block; }
.evt-list li.pending { opacity: .55; }
.evt-list li em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--amber); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; padding-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #fff; }
.timeline li.custom::before { background: var(--violet); }
.timeline li.latest { background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; margin-left: -4px; }
.timeline li.latest::before { background: var(--gold); left: -22px; top: 12px; animation: pulse 2s infinite; }
.timeline li.waiting::before { background: #fff; border: 2px dashed var(--line-2); box-shadow: none; }
.timeline li.waiting { color: var(--muted); }
.timeline time { display: block; font-size: 11px; color: var(--dim); }
.timeline b { color: var(--navy); }
.timeline p { margin-top: 2px; line-height: 1.6; }
.prog.wide { width: 100%; margin-top: 10px; }
.evt-pop h3 { font-family: var(--serif); font-size: 22px; margin: 10px 0 6px; }
.evt-pop p { line-height: 1.65; margin-bottom: 8px; }
.evt-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-btns select { width: auto; max-width: 320px; }

#conn-bar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 400; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #8a1f35; color: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-lg); text-align: center; }
#conn-bar a { color: #ffd98a; text-decoration: underline; }

/* ---------- live scenario checklist ---------- */
.chk-toggle { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 12.5px; color: var(--text); }
.chk-toggle b { font-size: 14px; color: var(--navy); }
.chk-toggle span { font-size: 11px; color: var(--muted); }
.chk-toggle.on, .chk-toggle:hover { border-color: var(--gold); background: var(--gold-soft); }
.grid tr.chk-row td { background: #fbfcfe; padding-top: 4px; }
.live-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; }
.live-checks li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.live-checks li em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--dim); }
.live-checks li .mk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.live-checks li .mk .ico, .live-checks li .mk .ico svg { width: 11px; height: 11px; }
.live-checks li.ok { color: var(--text); background: var(--green-soft); }
.live-checks li.ok .mk { background: var(--green); border-color: var(--green); color: #fff; }
.chk-hint { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: var(--amber-soft); color: #7a4a05; font-size: 12.5px; }

/* ---------- housekeeping ---------- */
.win.VC .pane { fill: #cdeedd; stroke: #7cc7a0; }
.win.CL .pane { fill: #fde7b0; stroke: #d89422; stroke-dasharray: 4 2; }
.win.OOO .pane { fill: #d5d9e0; stroke: #8794ab; }
.room.VI { background: #eef8fd; border-color: #cfe5f1; }
.room.VC { background: #e7f7ef; border-color: #a6dfc4; }
.room.CL { background: #fff4d8; border-color: #f0c26b; border-style: dashed; }
.room.OOO { background: #eef0f4; border-color: #c3cbd8; color: var(--muted); }
.lg.VI::before { background: #bfe2f5; border-color: #8cb9d3; }
.lg.VC::before { background: #cdeedd; border-color: #7cc7a0; }
.lg.OOO::before { background: #d5d9e0; border-color: #8794ab; }
.dot.VI { background: var(--blue); }
.hk-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef1f5; color: var(--muted); }
.hk-chip.sm { padding: 1px 7px; font-size: 10.5px; }
.hk-chip.VI { background: var(--blue-soft); color: #1d5fb8; }
.hk-chip.VC { background: var(--green-soft); color: #137a4f; }
.hk-chip.CL { background: var(--amber-soft); color: #9a6008; }
.hk-chip.VD { background: var(--rose-soft); color: #b02a46; }
.hk-chip.OC { background: var(--gold-soft); color: #8a5608; }
.hk-chip.OOO { background: #e4e7ec; color: #4a5872; }
.hk-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.hk-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.hk-sum b { font-family: var(--serif); font-size: 26px; color: var(--navy); line-height: 1; }
.hk-sum span { font-size: 12px; color: var(--muted); }
.hk-sum.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.hk-sum.VD b { color: #b02a46; } .hk-sum.CL b { color: #9a6008; } .hk-sum.VC b { color: #137a4f; } .hk-sum.VI b { color: #1d5fb8; } .hk-sum.OOO b { color: #4a5872; }
.hk-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; background: #fff; }
.hk-flow > .ico { color: var(--dim); }
.hk-flow .muted { margin-left: auto; }
.hk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hk-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hk-ooo summary { cursor: pointer; color: var(--rose); font-weight: 600; font-size: 13px; margin-top: 10px; }

/* ---------- upselling and guest feedback ---------- */
.ups-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ups { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ups:hover { border-color: var(--gold); background: var(--gold-soft); }
.ups b { color: var(--navy); }
.ups span { font-size: 12.5px; color: var(--muted); }
.fb-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fb-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.stars { color: #e0a23e; font-size: 16px; letter-spacing: 2px; }
.stars i { font-style: normal; color: #dfe4ec; }
.fb-overall { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; }
.fb-overall b { font-family: var(--serif); font-size: 40px; color: var(--navy); }
.fb-overall span { color: var(--muted); }
.flash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.flash-k { border: 1px solid #dde; border-radius: 8px; padding: 10px 12px; }
.flash-k span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.flash-k b { display: block; font-size: 20px; color: #14325a; margin: 2px 0; }
.flash-k small { font-size: 11px; color: #777; }

/* ---------- kitchen display ---------- */
.kds .pos-h { font-family: var(--serif); font-size: 26px; }
.kds-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.kds-col { background: rgba(255, 255, 255, .6); border: 1px solid var(--pos-line); border-radius: 16px; padding: 12px; min-height: 300px; display: flex; flex-direction: column; gap: 10px; }
.kds-col h3 { font-size: 14px; display: flex; justify-content: space-between; }
.kds-col h3 span { background: var(--gold-soft); color: #8a5608; padding: 0 9px; border-radius: 99px; font-size: 12px; }
.kds-card { background: #fff; border: 1px solid var(--pos-line); border-left: 5px solid var(--teal); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.kds-card.warn { border-left-color: var(--amber); }
.kds-card.late { border-left-color: var(--rose); background: #fff8f9; }
.kds-card header { display: flex; gap: 8px; align-items: baseline; }
.kds-card header time { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--muted); }
.kds-card.late header time { color: var(--rose); }
.kds-card ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.kds-card li em { display: block; font-style: normal; font-size: 11.5px; color: #8a5a2b; padding-left: 22px; }
.kds-card .btn { align-self: flex-start; }
.kds-badge { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font: 600 11px var(--font); background: #eef1f5; color: var(--muted); }
.kds-badge.ready { background: var(--green-soft); color: #137a4f; }

/* ---------- scenario builder ---------- */
.bd-events { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.bd-ev-head { display: flex; gap: 8px; margin-bottom: 6px; }
.bd-ev-head input { flex: 1; }
.bd-events textarea { width: 100%; }
.bd-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bd-check { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.bd-check > select { min-width: 260px; flex: 1; }
.bd-param { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.bd-param .cell { min-width: 120px; }
@media (max-width: 960px) { .kds-cols { grid-template-columns: 1fr; } .flash-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- guest services, groups, loyalty, banquets, inventory, chat ---------- */
.tab-count { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--rose-soft); color: var(--rose); font-weight: 700; }
.svc-table tr.due td { background: var(--amber-soft); }
.note-bar.warn { background: var(--amber-soft); border-color: #f1d49c; display: flex; gap: 8px; align-items: center; }
.tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tier { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--gold); }
.tier b { font-size: 17px; color: var(--navy); }
.tier span { color: var(--muted); font-size: 13px; }
.tier em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.ev-grid td { text-align: center; font-size: 11px; min-width: 56px; }
.ev-grid td:first-child { text-align: left; }
.ev-grid td.ev-tentative { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.ev-grid td.ev-definite { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.ev-grid td.ev-completed { background: var(--tint-2); color: var(--muted); }
.menu-card.out { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.menu-card.low { box-shadow: inset 0 0 0 2px var(--amber); }
.stock-tag { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--rose); color: #fff; }
.stock-tag.low { background: var(--amber); }
.chat { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); margin: 14px 0; overflow: hidden; }
.chat-head { padding: 10px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-head .muted { font-weight: 400; margin-left: auto; }
.chat-log { max-height: 260px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat.faculty .chat-log { max-height: 340px; min-height: 160px; }
.msg { display: flex; flex-direction: column; max-width: 80%; }
.msg span { padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); line-height: 1.4; }
.msg time { font-size: 11px; color: var(--dim); margin-top: 2px; padding: 0 6px; }
.msg.guest { align-self: flex-start; }
.msg.student { align-self: flex-end; align-items: flex-end; }
.msg.student span { background: var(--gold-soft); border-color: #f1d49c; }
.chat-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-send input { flex: 1; }
.reflect { background: var(--violet-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.reflect p { margin: 6px 0 0; }
.reflect em { font-style: normal; font-weight: 600; color: var(--violet); }
.bd-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.bd-when select { width: auto; }
.timeline li.custom b:first-child { color: var(--violet); }

/* ---------- Resto Plus v2: sidebar shell, outlets, room service, pool, banquets ---------- */
.pos { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.pos.side-min { grid-template-columns: 72px minmax(0, 1fr); }
.pos-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; background: linear-gradient(180deg, #3a2412, #24160a); color: #f3e3cc; overflow-y: auto; z-index: 40; }
.pos-side .pos-brand { padding: 4px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.pos-side .pos-brand b { color: #ffd896; }
.pos-side .pos-brand small { color: #c9ad8a; }
.pos-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pos-nav-g { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #a98d6c; padding: 14px 10px 6px; }
.pos-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: #ead6bb; text-decoration: none !important; font-weight: 500; font-size: 14px; position: relative; transition: background .15s, color .15s; }
.pos-nav a .ico { color: #c9a274; }
.pos-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.pos-nav a.on { background: linear-gradient(135deg, #f6cf7c, var(--gold)); color: var(--gold-ink); font-weight: 700; box-shadow: 0 6px 18px rgba(224, 162, 62, .35); }
.pos-nav a.on .ico { color: var(--gold-ink); }
.pos-nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 99px; background: var(--rose); color: #fff; }
.pos-side-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pos-side-foot .pos-link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #ead6bb; justify-content: flex-start; }
.pos-side-foot .pos-link:hover { color: #fff; border-color: var(--gold); }
.pos.side-min .pos-side span:not(.ico), .pos.side-min .pos-nav-g, .pos.side-min .pos-nav a em { display: none; }
.pos.side-min .pos-nav a, .pos.side-min .pos-side-foot .pos-link { justify-content: center; padding: 11px; }
.pos.side-min .pos-brand { justify-content: center; padding: 4px 0 14px; }
.pos-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.pos-main .pos-top { padding: 10px 22px; gap: 10px; flex-wrap: nowrap; }
.pos-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: #3d2a17; white-space: nowrap; }
.pos-title .ico { color: var(--gold); }
.pos-top .grow { flex: 1; }
.pos-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--pos-line); background: #fff; font-size: 12.5px; color: #6d5a48; white-space: nowrap; text-decoration: none !important; }
.pos-pill b { color: #3d2a17; }
.pos-pill .ico, .pos-pill .ico svg { width: 14px; height: 14px; }
.pos-pill.ok b { color: var(--green); }
.pos-pill.bad { border-color: #f2b9c4; background: var(--rose-soft); }
.pos-pill.bad b { color: var(--rose); }
.pos-main .ticket, .pos-main .ot-keys { top: 72px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pos-hero-stat small { display: block; color: var(--muted); font-size: 12px; }
.outlet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.outlet-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--pos-line); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.outlet-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .5; }
.outlet-card.resto::after { background: #ffe4b3; }
.outlet-card.rs::after { background: #fde9ed; }
.outlet-card.pool::after { background: #d6f3f1; }
.outlet-card.bq::after { background: #eeebff; }
.outlet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.oc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); position: relative; z-index: 1; }
.outlet-card.rs .oc-ico { background: var(--rose-soft); color: var(--rose); }
.outlet-card.pool .oc-ico { background: var(--teal-soft); color: var(--teal); }
.outlet-card.bq .oc-ico { background: var(--violet-soft); color: var(--violet); }
.outlet-card b { font-size: 16px; color: #3d2a17; display: block; }
.outlet-card small { color: var(--muted); font-size: 12.5px; }
.oc-stat { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.oc-stat b { font-family: var(--serif); font-size: 30px; color: #8a4b12; display: inline; }
.oc-stat span { color: var(--muted); font-size: 13px; }
.oc-amt { grid-column: 1 / -1; font-size: 12.5px; color: #6d5a48; font-weight: 600; margin-top: -8px; }
.home-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.pos-card { background: #fff; border: 1px solid var(--pos-line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.pos-card.flush { padding: 0; overflow: hidden; }
.pos-card .card-head { margin-bottom: 12px; }
.ev-mini { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.ev-mini a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.ev-mini a:hover { background: #fdf6ea; }
.ev-mini a > b { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: 22px; color: #8a4b12; line-height: 1; background: #fdf3e0; border-radius: 10px; padding: 6px 0; }
.ev-mini a > b small { font-family: var(--font); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.ev-mini span small { display: block; color: var(--muted); font-size: 12px; }
.outlet { max-width: 1280px; margin: 0 auto; }
.outlet-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; border-radius: 20px; margin-bottom: 18px; border: 1px solid var(--pos-line); color: #3d2a17; flex-wrap: wrap; }
.outlet-hero h1 { font-family: var(--serif); font-size: 32px; margin: 4px 0 6px; }
.outlet-hero p { color: #6d5a48; max-width: 640px; }
.outlet-hero.rs { background: linear-gradient(120deg, #fff5f6, #fde4e9); border-color: #f5c9d2; }
.outlet-hero.pool { background: linear-gradient(120deg, #effcfb, #cdeff0 60%, #bfe6f5); border-color: #a9dedb; }
.outlet-hero.bq { background: linear-gradient(120deg, #f7f5ff, #e7e2ff); border-color: #d3cbf7; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats > div { background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; padding: 12px 18px; min-width: 150px; }
.hero-stats span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.hero-stats b { font-family: var(--serif); font-size: 26px; color: #3d2a17; }
.hero-stats small { display: block; font-size: 12px; color: var(--muted); }
.pos-sec .muted { font-weight: 400; margin-left: 6px; }
.room-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.room-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 16px; border: 1px solid var(--pos-line); background: #fff; cursor: pointer; text-align: left; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.room-pick b { font-family: var(--serif); font-size: 24px; color: #b02a46; }
.room-pick span { font-weight: 600; font-size: 13px; }
.room-pick small { color: var(--muted); font-size: 11.5px; }
.room-pick:hover { transform: translateY(-3px); border-color: var(--rose); }
.room-pick.busy { background: var(--rose-soft); border-color: #f2b9c4; }
.rs-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rs-col { background: rgba(255, 255, 255, .6); border: 1px solid var(--pos-line); border-radius: 18px; padding: 12px; min-height: 200px; }
.rs-col h3 { margin: 0; font-size: 14px; display: flex; justify-content: space-between; }
.rs-col h3 span { background: #3d2a17; color: #fff; border-radius: 99px; padding: 0 9px; font-size: 12px; }
.rs-col > p { margin: 2px 0 10px; }
.rs-card { background: #fff; border: 1px solid var(--pos-line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rs-card.kitchen { border-left-color: var(--blue); }
.rs-card.ready { border-left-color: var(--green); }
.rs-card.delivered { border-left-color: var(--dim); opacity: .85; }
.rs-card header { display: flex; justify-content: space-between; align-items: baseline; }
.rs-card header b { font-family: var(--serif); font-size: 18px; color: #b02a46; }
.rs-card header span { font-size: 11px; color: var(--muted); }
.rs-card p { font-size: 12.5px; color: #6d5a48; margin: 2px 0 6px; }
.rs-card ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; }
.rs-card li em { display: block; font-size: 11.5px; color: var(--amber); }
.rs-card footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.rs-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rs-empty { color: var(--dim); font-size: 13px; text-align: center; padding: 20px 0; }
.menu-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.menu-tools .menu-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #3d2a17; white-space: nowrap; }
.menu-tools .menu-name .ico { color: var(--gold); }
.menu-tools input { flex: 1; max-width: 340px; margin-left: auto; border-radius: 99px; }
.cat-chips button em { font-style: normal; font-size: 11px; opacity: .65; margin-left: 2px; }
.menu-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-bottom: 8px; }
.seg.wide { display: flex; width: 100%; margin-bottom: 14px; }
.seg.wide button { flex: 1; justify-content: center; }
.step-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 18px 0 8px; }
.step-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--pos-line); border-radius: 14px; margin-bottom: 8px; background: #fffdf9; }
.step-row b { display: block; font-size: 14px; color: #3d2a17; }
.step-row small { color: var(--muted); font-size: 12px; }
.step-price { font-weight: 700; color: #0b6f6b; font-size: 13px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--pos-line); border-radius: 99px; padding: 3px; background: #fff; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #e6f6f4; color: #0b6f6b; font-size: 18px; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--teal); color: #fff; }
.stepper b { min-width: 28px; text-align: center; font-size: 15px; }
.incl-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 13px; margin-top: 10px; }
.incl-note.yes { background: var(--green-soft); color: #13704a; }
.incl-note.no { background: var(--amber-soft); color: #8a5608; }
.pool-ticket .ticket-head b { color: #0b6f6b; }
.t-line.static { cursor: default; }
.pool-go { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 18px; }
.btn.block { width: 100%; justify-content: center; }
.legend { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.legend i.ev-tentative { background: var(--amber-soft); border: 1px solid var(--amber); }
.legend i.ev-definite { background: var(--teal-soft); border: 1px solid var(--teal); }
.ev-grid td.ev-free { cursor: pointer; }
.ev-grid td.ev-free:hover { background: var(--gold-soft); }
.ev-grid td[data-evid] { cursor: pointer; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 10px; }
.pkg-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--pos-line); box-shadow: var(--shadow); border-top: 4px solid var(--violet); }
.pkg-card.venue { border-top-color: var(--gold); }
.pkg-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pkg-card header b { font-size: 16px; color: #3d2a17; }
.pkg-price { font-family: var(--serif); font-size: 22px; color: #8a4b12; white-space: nowrap; }
.pkg-price small { font-family: var(--font); font-size: 12px; color: var(--muted); }
.pkg-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #6d5a48; }
.pkg-meta span, .link-btn { display: inline-flex; align-items: center; gap: 5px; }
.pkg-meta .ico, .pkg-meta .ico svg { width: 14px; height: 14px; }
.link-btn { border: 0; background: none; color: var(--violet); font-weight: 600; cursor: pointer; padding: 0; font-size: 12.5px; }
.link-btn:hover { text-decoration: underline; }
.incl-list { display: flex; flex-wrap: wrap; gap: 6px; }
.incl { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: #f6f1ea; color: #6d5a48; }
.incl.pool { background: var(--teal-soft); color: #0b6f6b; font-weight: 600; }
.pkg-card .btn { align-self: flex-start; margin-top: auto; }
.pkg-preview { margin-top: 12px; }
.menu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bq-menu header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bq-menu header b { font-family: var(--serif); font-size: 22px; color: #3d2a17; }
.bq-menu ul, .bq-list { list-style: none; padding: 0; margin: 0 0 10px; }
.bq-menu li, .bq-list li { padding: 4px 0; border-bottom: 1px dashed var(--pos-line); font-size: 13.5px; }
.bq-menu li.sec, .bq-list li.sec { font-weight: 700; color: var(--violet); border-bottom: 0; padding-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.rs-doc section { break-inside: avoid; }
@media (max-width: 1400px) {
  .pos-ot { grid-template-columns: 1fr 340px; }
  .pos-main .ot-keys { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .pos-main .ot-keys button.wide { grid-column: auto; flex-direction: column; min-height: 76px; }
}
@media (max-width: 1100px) {
  .rs-board { grid-template-columns: 1fr 1fr; }
  .home-split, .pool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pos, .pos.side-min { grid-template-columns: 1fr; }
  .pos-side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; overflow-x: auto; }
  .pos-side .pos-brand small, .pos-nav-g, .pos-side-foot span:not(.ico) { display: none; }
  .pos-side .pos-brand { border: 0; padding: 0 6px 0 0; margin: 0; }
  .pos-nav { flex-direction: row; }
  .pos-nav a { white-space: nowrap; padding: 8px 10px; }
  .pos-side-foot { flex-direction: row; border: 0; padding: 0; }
  .pos-collapse { display: none; }
  .pos-main .pos-top { flex-wrap: wrap; }
  .pos-pill span:not(.ico) { display: none; }
  .pos-ot { grid-template-columns: 1fr; }
  .rs-board { grid-template-columns: 1fr; }
}
.outlet-card > * { position: relative; z-index: 1; }
.floorplan { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.pos-body.still { animation: none; }
@media (max-width: 860px) { .pos-side .pos-brand span { display: none; } }

/* ---------- terminal sign-in and faculty Terminal Access ---------- */
.login-ended { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--amber-soft); color: #8a5608; font-size: 13.5px; line-height: 1.4; }
.login-ended.ok { background: var(--green-soft); color: #13704a; }
.login-ended .ico { flex: none; }
.wait-card { align-items: center; text-align: center; gap: 12px; }
.wait-card h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); }
.wait-ring { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin: 6px auto 4px; }
.wait-ring span { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--gold-soft); border-top-color: var(--gold); animation: waitSpin 1.1s linear infinite; }
@keyframes waitSpin { to { transform: rotate(360deg); } }
.wait-who { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); width: 100%; }
.wait-who span:first-child { color: var(--muted); font-size: 13px; }
.wait-who span:last-child { font-weight: 700; font-size: 18px; color: var(--navy); }
.nav-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 99px; background: var(--rose); color: #fff; animation: badgePulse 1.6s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 5px rgba(224, 80, 107, .18); } }
.shell.collapsed .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
.tab-count.ok { background: var(--green-soft); color: var(--green); }
.acc-sec { margin-top: 16px; }
.acc-sec .card-head { padding: 16px 18px 6px; }
.acc-sec .card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.acc-term { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 17px; }
.acc-new { background: linear-gradient(90deg, rgba(253, 243, 224, .8), transparent); }
.ok-text { color: var(--green); font-weight: 600; }
#sess-chip.warn { border-color: #f2b9c4; background: var(--rose-soft); color: var(--rose); }

/* ---------- floating guest chat ---------- */
.fchat { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; }
body:has(.fchat) #toasts { bottom: 92px; }
body:has(.pos) .fchat { bottom: 52px; }
.fchat-fab { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border: 0; border-radius: 99px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: #fff; background: linear-gradient(135deg, #1b4a6e, var(--navy)); box-shadow: 0 10px 30px rgba(20, 50, 90, .35); position: relative; transition: transform .15s; }
.fchat.student .fchat-fab { background: linear-gradient(135deg, #f0c26b, var(--gold)); color: var(--gold-ink); }
.fchat-fab:hover { transform: translateY(-2px); }
.fchat-fab .ico, .fchat-fab .ico svg { width: 22px; height: 22px; }
.fchat-fab.ring { animation: chatRing 1.4s ease-in-out infinite; }
@keyframes chatRing { 0%, 100% { box-shadow: 0 10px 30px rgba(20, 50, 90, .35), 0 0 0 0 rgba(224, 80, 107, .5); } 50% { box-shadow: 0 10px 30px rgba(20, 50, 90, .35), 0 0 0 10px rgba(224, 80, 107, 0); } }
.fchat-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--rose); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.fchat-panel { width: 380px; height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(20, 40, 80, .3); overflow: hidden; animation: viewIn .2s ease; }
.fchat-panel.wide { width: min(880px, calc(100vw - 40px)); height: min(620px, calc(100vh - 110px)); }
.fchat-panel > header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, #1b4a6e, var(--navy)); color: #fff; }
.fchat.student .fchat-panel > header { background: linear-gradient(135deg, #f6cf7c, var(--gold)); color: var(--gold-ink); }
.fchat-panel > header > div { flex: 1; display: flex; flex-direction: column; }
.fchat-panel > header small { opacity: .8; font-size: 12px; }
.fchat-panel > header .icon-btn { color: inherit; font-size: 22px; line-height: 1; }
.fc-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; }
.fc-av .avatar { width: 38px; height: 38px; }
.fc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.fc-log.transcript { max-height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.fc-msg { display: flex; flex-direction: column; max-width: 78%; align-self: flex-start; }
.fc-msg span { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); line-height: 1.45; font-size: 14px; word-wrap: break-word; }
.fc-msg time { font-size: 11px; color: var(--dim); margin: 3px 6px 0; }
.fc-msg.me { align-self: flex-end; align-items: flex-end; }
.fc-msg.me span { border-radius: 16px 16px 4px 16px; background: var(--navy); border-color: var(--navy); color: #fff; }
.fchat.student .fc-msg.me span { background: var(--gold-soft); border-color: #f1d49c; color: var(--text); }
.fc-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13.5px; max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; }
.fc-empty .ico, .fc-empty .ico svg { width: 34px; height: 34px; color: var(--dim); }
.fc-typing { display: flex; align-items: center; gap: 4px; padding: 4px 16px 6px; font-size: 12px; color: var(--muted); background: var(--surface-2); }
.fc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: typingDot 1s infinite; }
.fc-typing i:nth-child(2) { animation-delay: .15s; } .fc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 50% { transform: translateY(-4px); opacity: .5; } }
.fc-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.fc-send textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 14px; }
.fc-rating { margin: 8px 0 0; padding: 10px 13px; border-radius: 12px; background: var(--violet-soft); font-size: 13.5px; }
.fc-rating b { color: var(--violet); }
.fc-rating p { margin: 4px 0 0; }
.fc-body { flex: 1; display: grid; grid-template-columns: 280px 1fr; min-height: 0; }
.fc-list { overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }
.fc-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.fc-item:hover { background: var(--surface-2); }
.fc-item.on { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.fc-item.ended { opacity: .6; }
.fc-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fc-item-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-item-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-item.unread .fc-item-txt small:first-of-type { color: var(--text); font-weight: 600; }
.fc-item em { font-style: normal; min-width: 20px; height: 20px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.fc-meta { display: flex; align-items: center; gap: 4px; font-size: 11px !important; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 3px; }
.fc-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fc-thead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fc-thead > div:first-child { display: flex; flex-direction: column; }
.fc-thead small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.fc-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fc-persona { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fc-persona input { width: 170px; padding: 6px 10px; font-size: 13px; }
.fc-openers { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; background: #fff; scrollbar-width: thin; }
.fc-openers button { flex: none; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 99px; padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--muted); }
.fc-openers button:hover { border-color: var(--gold); color: var(--text); }
.rate-seg button { min-width: 34px; justify-content: center; }
@media (max-width: 760px) {
  .fchat { right: 12px; bottom: 12px; }
  .fchat-panel, .fchat-panel.wide { width: calc(100vw - 24px); height: calc(100vh - 90px); }
  .fc-body { grid-template-columns: 1fr; grid-template-rows: 160px 1fr; }
  .fc-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .fchat-fab span:not(.ico) { display: none; }
}
.fchat [hidden], .nav-badge[hidden] { display: none !important; }
