/* Desk booking v2, occupancy sensor simulator, wayfinding kiosk journey */

/* ---------- desk booking ---------- */
.dk2 { display: grid; gap: 14px; }
.dk2-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.dk2-plan { position: relative; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dk2-plan::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 0; border-top: 2px dashed color-mix(in srgb, var(--green) 30%, transparent); }
.dk2-zone { position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line); }
.dk2-zone > small { color: var(--muted); font: 600 .76rem/1 var(--display); }
.dk2-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seat { --c: var(--green); position: relative; height: 58px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.seat .tbl { position: absolute; left: 4px; right: 4px; top: 4px; height: 30px; border-radius: 6px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); transition: background .3s, border-color .3s, box-shadow .3s; }
.seat .chr { position: absolute; left: 50%; bottom: 4px; width: 18px; height: 14px; translate: -50% 0; border-radius: 6px 6px 9px 9px; border: 1.5px solid var(--c); background: var(--ink-2); }
.seat .lbl { position: relative; z-index: 1; font: 700 .66rem/1 var(--display); margin-top: -18px; }
.seat .who { position: absolute; z-index: 2; top: 9px; left: 50%; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .58rem/1 var(--display);
  background: #3B4BB8; color: #fff; box-shadow: 0 0 0 2px var(--ink-2); }
.seat .am { position: absolute; z-index: 2; top: 2px; inset-inline-end: 6px; font-size: .6rem; opacity: .85; }
.seat[data-s="taken"] { --c: var(--rose); cursor: not-allowed; }
.seat[data-s="taken"] .lbl { opacity: 0; }
.seat[data-s="sel"] { --c: var(--amber); }
.seat[data-s="sel"] .tbl { box-shadow: 0 0 18px -4px var(--amber); }
.seat[data-s="mine"] { --c: var(--cyan); }
.seat[data-s="mine"] .tbl { box-shadow: 0 0 22px -4px var(--cyan); }
.seat:hover:not(:disabled) .tbl { background: color-mix(in srgb, var(--c) 30%, transparent); }
.seat:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.dk2-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-height: 74px; }
.dk2-card b { font: 600 1rem/1.3 var(--display); }
.dk2-card p { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.dk2-card.done { border-color: color-mix(in srgb, var(--cyan) 60%, var(--line)); box-shadow: 0 0 24px -12px var(--cyan); }
.team { display: flex; align-items: center; }
.team i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem/1 var(--display); color: #fff; font-style: normal; box-shadow: 0 0 0 3px var(--surface); }
.team i + i { margin-inline-start: -8px; }
.qr-sticker { width: 64px; height: 64px; border-radius: 10px; padding: 6px; background: #fff; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.qr-sticker i { background: #111; } .qr-sticker i.w { background: transparent; }

/* ---------- occupancy sensor ---------- */
.oc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.oc-room { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--ink-2); border: 2px solid var(--line); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.oc-room.over { border-color: var(--rose); box-shadow: 0 0 40px -14px var(--rose); }
.oc-room.empty { border-color: var(--amber); }
.oc-door { position: absolute; bottom: -2px; left: 12%; width: 18%; height: 6px; background: var(--ink); }
.oc-table { position: absolute; left: 30%; top: 32%; width: 40%; height: 36%; border-radius: 40px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1.5px solid var(--line); }
.oc-sensor { position: absolute; left: 50%; top: 12%; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #E6F4F0 0 5px, #23292D 6px); box-shadow: 0 0 0 1px #2A363C; z-index: 3; }
.oc-sensor::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; }
.oc-room.scan .oc-sensor::after { animation: ocScan 1.1s ease-out; }
@keyframes ocScan { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(3.2); } }
.oc-cone { position: absolute; left: 50%; top: 12%; width: 90%; height: 92%; translate: -50% 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 4%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 70%); }
.oc-p { position: absolute; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; font: 700 .6rem/1 var(--display); color: #fff;
  box-shadow: 0 0 0 2px var(--ink-2), 0 0 12px -2px currentColor; transition: left .6s var(--ease), top .6s var(--ease), opacity .4s, transform .4s; }
.oc-p.out { opacity: 0; transform: scale(.4); }
.oc-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.oc-side { display: grid; gap: 12px; }
.oc-read { display: flex; align-items: baseline; gap: 10px; }
.oc-read b { font: 600 2.4rem/1 var(--headline); font-variant-numeric: tabular-nums; }
.oc-read span { color: var(--muted); }
.oc-panel { container-type: inline-size; border-radius: 16px; padding: 10px; background: linear-gradient(145deg, #1A2B31, #0A1419); box-shadow: 0 0 0 1px #24363D; }
.oc-panel-in { border-radius: 10px; padding: 5cqw; display: grid; gap: 1.6cqw; color: #fff; background: var(--pb, #C23A4E); transition: background .5s; font-family: var(--display); }
.oc-panel-in .r { font: 600 5cqw/1.2 var(--display); }
.oc-panel-in .s { font: 700 10cqw/1.05 var(--display); }
.oc-panel-in .u { font: 3.8cqw/1.35 var(--body); opacity: .95; }
.oc-warn { display: none; align-items: center; gap: 2cqw; padding: 2.4cqw 3cqw; border-radius: 2cqw; background: rgba(0,0,0,.28); font: 600 3.6cqw/1.3 var(--body); }
.oc-warn.on { display: flex; }
.oc-bar { height: 2cqw; border-radius: 2cqw; background: rgba(255,255,255,.25); overflow: hidden; }
.oc-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; }
.oc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 168px; overflow: hidden; }
.oc-log li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: .84rem; padding: 7px 10px; border-radius: 9px; background: var(--ink-2); border: 1px solid var(--line); animation: logIn .4s var(--ease); }
.oc-log li time { color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-log li.w { border-color: color-mix(in srgb, var(--rose) 55%, var(--line)); }
.oc-log li.g { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- wayfinding kiosk journey ---------- */
.wj { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: center; }
.wj-stage { position: relative; height: 540px; display: grid; justify-items: center; align-content: end; }
.wj-person { position: absolute; bottom: 14px; left: -40px; width: 70px; height: 210px; color: color-mix(in srgb, var(--text) 55%, transparent); z-index: 3; opacity: 0; }
.wj-person.walk { animation: walkIn 1.6s var(--ease) forwards; }
.wj-person.stay { opacity: 1; left: 6px; }
@keyframes walkIn { from { left: -60px; opacity: 0; } 20% { opacity: 1; } to { left: 6px; opacity: 1; } }
.wj-person .arm { transform-origin: 34px 70px; transition: transform .4s var(--ease); }
.wj-person.tap .arm { transform: rotate(-58deg); }
.wk { width: 245px; display: grid; justify-items: center; position: relative; z-index: 2; margin-inline-start: 70px; }
.wk-screen { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; padding: 8px; background: linear-gradient(145deg, #1A2B31, #0A1419); box-shadow: 0 0 0 1px #24363D, 0 30px 50px -26px var(--shadow); }
.wk-in { position: relative; height: 100%; border-radius: 9px; overflow: hidden; container-type: inline-size; color: #fff; background: radial-gradient(80% 50% at 50% 0%, rgba(43,255,154,.18), transparent 70%), #0B1222; font-family: var(--display); }
.wk-s { position: absolute; inset: 0; padding: 7cqw 6cqw; display: grid; align-content: start; gap: 4cqw; opacity: 0; visibility: hidden; transform: translateX(8%); transition: opacity .35s, transform .35s var(--ease), visibility .35s; }
.wk-s.on { opacity: 1; visibility: visible; transform: none; }
.wk-s img { height: 7cqw; width: auto; }
.wk-s h4 { margin: 0; font: 600 9cqw/1.15 var(--headline); }
.wk-s p { margin: 0; font: 5cqw/1.35 var(--body); opacity: .8; }
.wk-go { margin-top: 10cqw; padding: 6cqw; border: 0; border-radius: 6cqw; background: linear-gradient(135deg, #0D8049, #0A6638); color: #fff; font: 700 6.4cqw/1 var(--display); cursor: pointer; box-shadow: 0 0 0 0 rgba(43,255,154,.5); animation: goPulse 1.8s ease-out 3; }
@keyframes goPulse { to { box-shadow: 0 0 0 5cqw rgba(43,255,154,0); } }
.wk-q { width: 100%; min-height: 0; padding: 4cqw 5cqw; border-radius: 4cqw; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: 5.6cqw/1.2 var(--body); }
.wk-q:focus { outline: none; border-color: #3BE0FF; box-shadow: 0 0 0 1cqw rgba(59,224,255,.25); }
.wk-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4cqw; }
.wk-res button { width: 100%; text-align: start; display: grid; grid-template-columns: 1fr auto; gap: 1cqw; align-items: center; padding: 3.4cqw 4cqw; border-radius: 3.4cqw; border: 0; cursor: pointer; background: rgba(255,255,255,.07); color: #fff; font: 600 5cqw/1.2 var(--display); }
.wk-res button small { grid-column: 1; font: 4cqw/1.2 var(--body); opacity: .7; }
.wk-res button em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font: 700 3.4cqw/1 var(--display); padding: 1.4cqw 2.6cqw; border-radius: 99px; }
.wk-res button em.f { background: rgba(43,255,154,.2); color: #6CFFBE; } .wk-res button em.b { background: rgba(255,77,109,.22); color: #FF9AAD; } .wk-res button em.s { background: rgba(255,181,71,.22); color: #FFCF80; }
.wk-res button.hit { background: rgba(59,224,255,.22); }
.wk-res .none { font: 4.6cqw/1.3 var(--body); opacity: .7; }
.wk-kb { display: grid; gap: 1.4cqw; margin-top: auto; }
.wk-kb div { display: flex; justify-content: center; gap: 1.2cqw; }
.wk-kb i { width: 7.4cqw; height: 7.4cqw; border-radius: 1.4cqw; background: rgba(255,255,255,.1); display: grid; place-items: center; font: 600 3.6cqw/1 var(--display); font-style: normal; transition: background .15s; }
.wk-kb i.hit { background: #3BE0FF; color: #032015; }
.wk-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2.6cqw; counter-reset: s; }
.wk-steps li { counter-increment: s; display: grid; grid-template-columns: 7cqw 1fr; gap: 2.4cqw; font: 4.6cqw/1.35 var(--body); }
.wk-steps li::before { content: counter(s); width: 7cqw; height: 7cqw; border-radius: 50%; display: grid; place-items: center; background: #3BE0FF; color: #032015; font: 700 3.8cqw/1 var(--display); }
.wk-back { justify-self: start; border: 0; background: none; color: #3BE0FF; font: 600 4.4cqw/1 var(--display); cursor: pointer; padding: 0; }
.wk-meta { display: flex; justify-content: space-between; align-items: center; font: 4.2cqw/1.3 var(--body); opacity: .85; }
.wk-tap { position: absolute; z-index: 5; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%; border: 2px solid #3BE0FF; opacity: 0; pointer-events: none; }
.wk-tap.go { animation: tapR .6s ease-out; }
@keyframes tapR { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.wj-map .route { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.wj-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wj-head b { font: 600 1.05rem/1.3 var(--display); }
.wj-dest { color: var(--muted); font-size: .9rem; }

@media (max-width: 980px) {
  .oc { grid-template-columns: 1fr; }
  .wj { grid-template-columns: 1fr; }
  .wj-stage { height: 440px; }
}
@media (max-width: 640px) { .dk2-plan { grid-template-columns: 1fr; } .dk2-plan::before { display: none; } .dk2-row { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .wj-person.walk { animation: none; opacity: 1; left: 6px; } .wk-go, .oc-room.scan .oc-sensor::after { animation: none; } .wk-s { transition: none; } }
