/* New solutions: desks, signage, lobby kiosk + TV, wayfinding, events, screen sizes, e-ink */

/* screen sizes */
.sizes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.size-stage { position: relative; height: 230px; display: grid; place-items: end center; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.size-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 1px; background: var(--line); }
.size-dev { position: relative; z-index: 1; margin-bottom: 30px; border-radius: 10px; background: linear-gradient(145deg, #23292D, #0B0F12); box-shadow: 0 0 0 1px #2A363C, 0 18px 30px -16px rgba(0,0,0,.8);
  width: calc(var(--in) * 14px); aspect-ratio: 16 / 10; padding: 6px; transition: width .7s var(--ease); }
.size-dev i { display: block; height: 100%; border-radius: 5px; background: #117A53; position: relative; }
.size-dev i::after { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 clamp(.8rem, calc(var(--in) * .09rem), 1.6rem)/1 var(--display); }
.size-dev::before, .size-dev::after { content: ""; position: absolute; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: #2BFF9A; box-shadow: 0 0 10px 2px #2BFF9A; }
.size-dev::before { left: -2px; } .size-dev::after { right: -2px; }
.size-person { position: absolute; z-index: 0; bottom: 30px; inset-inline-end: 18px; width: 34px; height: 150px; opacity: .25; }
.size-info b { font: 600 1.4rem/1.2 var(--headline); display: block; margin-bottom: 6px; }

/* e-ink door sign */
.eink { justify-self: center; width: 100%; max-width: 260px; aspect-ratio: 4 / 3; border-radius: 10px; padding: 8px; background: #2B2F31; box-shadow: 0 0 0 1px #3A4044; }
.eink-in { height: 100%; border-radius: 4px; background: #E9E8E2; color: #1C1C1C; padding: 12px 14px; display: grid; align-content: space-between; font-family: "Manrope", system-ui, sans-serif;
  background-image: radial-gradient(rgba(0,0,0,.05) .6px, transparent .7px); background-size: 3px 3px; }
.eink-in b { font: 800 1.05rem/1.1 "Manrope", sans-serif; }
.eink-in small { font-size: .72rem; }
.eink-in .now { display: inline-block; padding: 3px 8px; border: 2px solid #1C1C1C; border-radius: 4px; font: 800 .8rem/1 "Manrope", sans-serif; }

/* desk map */
.desk-map { display: grid; gap: 14px; }
.desk-floor { position: relative; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.desk-zone { display: grid; gap: 8px; }
.desk-zone > small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.desk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.desk { height: 46px; border-radius: 8px; border: 1.5px solid var(--c, var(--green)); background: color-mix(in srgb, var(--c, var(--green)) 14%, transparent); color: var(--text);
  font: 600 .72rem/1 var(--display); cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .3s, border-color .3s, box-shadow .3s; }
.desk:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 16px -6px var(--c, var(--green)); }
.desk[data-s="taken"] { --c: var(--rose); cursor: not-allowed; opacity: .75; }
.desk[data-s="mine"] { --c: var(--cyan); box-shadow: 0 0 20px -4px var(--cyan); }
.desk:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.desk-msg { font-size: .9rem; min-height: 1.4em; }

/* screens: TV + kiosk */
.tv { border-radius: 14px; padding: 10px; background: linear-gradient(145deg, #1A2B31, #0A1419); box-shadow: 0 0 0 1px #24363D, 0 30px 60px -30px var(--shadow); }
.tv-in { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0B1222; color: #fff; container-type: inline-size; }
.tv-stand { width: 22%; height: 26px; margin: 0 auto; background: linear-gradient(180deg, #1B2428, #0E1417); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); }
.slide { position: absolute; inset: 0; padding: 5cqw; display: grid; align-content: center; gap: 2cqw; opacity: 0; transition: opacity .7s var(--ease); font-family: var(--display); }
.slide.on { opacity: 1; }
.slide h4 { margin: 0; font: 600 5.6cqw/1.1 var(--headline); }
.slide p { margin: 0; font: 2.6cqw/1.4 var(--body); opacity: .85; }
.slide.s1 { background: radial-gradient(70% 90% at 20% 20%, rgba(43,255,154,.25), transparent 60%), radial-gradient(60% 80% at 90% 90%, rgba(59,224,255,.25), transparent 60%), #0B1222; }
.slide.s3 { background: linear-gradient(135deg, #8E2A12, #5A1A0B); }
.slide .rows { display: grid; gap: 1.2cqw; }
.slide .rows div { display: grid; grid-template-columns: 14cqw 1fr auto; gap: 2cqw; align-items: center; padding: 1.4cqw 2cqw; border-radius: 1.4cqw; background: rgba(255,255,255,.07); font: 2.4cqw/1.2 var(--body); }
.slide .rows b { font: 600 2.4cqw/1 var(--display); color: #6CFFBE; }
.slide .rows em { font-style: normal; font-size: 2cqw; padding: .6cqw 1.6cqw; border-radius: 99px; background: rgba(43,255,154,.18); color: #6CFFBE; }
.slide .rows em.busy { background: rgba(255,77,109,.2); color: #FF9AAD; }
.tv-dots { position: absolute; left: 5cqw; right: 5cqw; bottom: 2.6cqw; display: flex; gap: 1cqw; }
.tv-dots i { flex: 1; height: .6cqw; border-radius: 1cqw; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.tv-dots i b { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.tv-dots i.done b { transform: scaleX(1); }
.tv-dots i.on b { animation: fill var(--dur, 5s) linear forwards; }
.sig-paused .tv-dots i.on b { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.ctl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.lobby { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 30px; align-items: end; }
.kiosk { justify-self: center; width: min(220px, 100%); display: grid; justify-items: center; }
.kiosk-screen { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; padding: 9px; background: linear-gradient(145deg, #1A2B31, #0A1419); box-shadow: 0 0 0 1px #24363D, 0 30px 50px -26px var(--shadow); }
.kiosk-in { height: 100%; border-radius: 9px; overflow: hidden; container-type: inline-size; color: #fff; font-family: var(--display); display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(80% 50% at 50% 0%, rgba(43,255,154,.2), transparent 70%), #0B1222; }
.kiosk-head { padding: 7cqw 7cqw 4cqw; display: grid; gap: 2cqw; }
.kiosk-head img { height: 7cqw; width: auto; }
.kiosk-head b { font: 600 8cqw/1.15 var(--headline); }
.kiosk-head small { font: 4.4cqw/1.3 var(--body); opacity: .75; }
.kiosk-list { padding: 0 5cqw; display: grid; gap: 2.4cqw; align-content: start; overflow: hidden; }
.kiosk-list div { display: grid; gap: 1cqw; padding: 3cqw 4cqw; border-radius: 3cqw; background: rgba(255,255,255,.07); border-inline-start: 1.2cqw solid var(--c, #2BFF9A); font: 4.6cqw/1.2 var(--body); transition: background .5s; }
.kiosk-list div.hl { background: rgba(43,255,154,.16); }
.kiosk-list small { font-size: 3.8cqw; opacity: .7; }
.kiosk-btn { margin: 5cqw; padding: 4cqw; border-radius: 99px; background: #fff; color: #10261F; text-align: center; font: 700 5cqw/1 var(--display); }
.kiosk-pole { width: 14%; height: 90px; background: linear-gradient(90deg, #142026, #22323A, #142026); }
.kiosk-foot { width: 70%; height: 12px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #22323A, #101A1F); }
.cap { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* wayfinding */
.wf { display: grid; gap: 12px; }
.wf-map { border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); padding: 12px; }
.wf-map svg { width: 100%; height: auto; display: block; }
.wf-map .rm { fill: color-mix(in srgb, var(--surface) 80%, transparent); stroke: var(--line); stroke-width: 2; transition: fill .4s, stroke .4s; }
.wf-map .rm.dest { fill: color-mix(in srgb, var(--green) 22%, transparent); stroke: var(--green); }
.wf-map text { fill: var(--muted); font: 600 13px var(--display); }
.wf-map .rm.dest + text { fill: var(--text); }
.wf-map .route { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--cyan)); }
.wf-map .you { fill: var(--amber); }
.wf-map .you-ring { fill: none; stroke: var(--amber); stroke-width: 2; animation: ring 1.6s ease-out 4; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* events board */
.ev-rows { display: grid; gap: 1.2cqw; }
.ev-rows div { display: grid; grid-template-columns: 13cqw 1fr 20cqw; gap: 2cqw; align-items: center; padding: 1.6cqw 2.2cqw; border-radius: 1.4cqw; background: rgba(255,255,255,.06); font: 2.4cqw/1.25 var(--body); position: relative; overflow: hidden; }
.ev-rows div b { font: 600 2.4cqw/1 var(--display); }
.ev-rows div small { opacity: .7; }
.ev-rows div.now { background: rgba(43,255,154,.14); box-shadow: inset 0 0 0 1px rgba(43,255,154,.4); }
.ev-rows div.now::after { content: ""; position: absolute; left: 0; bottom: 0; height: .5cqw; width: 0; background: #2BFF9A; animation: evp 9s linear forwards; }
.ev-rows .tag { justify-self: start; font: 700 1.8cqw/1 var(--display); padding: .8cqw 1.6cqw; border-radius: 99px; background: rgba(255,255,255,.12); }
.ev-rows .now .tag { background: #2BFF9A; color: #032015; }
@keyframes evp { to { width: 46%; } }

@media (max-width: 860px) { .sizes, .lobby { grid-template-columns: 1fr; } .lobby .kiosk { width: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .slide, .size-dev { transition: none; }
  .tv-dots i.on b, .ev-rows div.now::after, .wf-map .you-ring { animation: none; }
}

/* E-ink room sign (electronic paper: matte, no glow, black on paper white) */
.epd { container-type: inline-size; width: 100%; }
.epd-frame { position: relative; border-radius: 4.5cqw; padding: 4.2cqw 4.2cqw 7cqw; background: linear-gradient(160deg, #F4F4F1, #DCDCD6);
  box-shadow: 0 0 0 1px #C9C9C2, inset 0 1px 0 #fff, 0 3cqw 6cqw -3cqw rgba(0,0,0,.55); }
.epd-frame::after { content: "SkedulePro"; position: absolute; left: 0; right: 0; bottom: 2.2cqw; text-align: center; font: 600 2.4cqw/1 "Manrope", sans-serif; color: #A3A39C; letter-spacing: .08em; }
.epd-screen { position: relative; border-radius: 1cqw; padding: 4.4cqw 4.8cqw; display: grid; gap: 2.8cqw; color: #161616; font-family: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  background-color: #E8E7E0; background-image: radial-gradient(rgba(0,0,0,.06) .45px, transparent .6px), linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.02));
  background-size: 2.5px 2.5px, 100% 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 0.6cqw 1.2cqw rgba(0,0,0,.08); -webkit-font-smoothing: none; }
.epd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; }
.epd-head b { display: block; font: 800 7.6cqw/1 "Manrope", "IBM Plex Sans Arabic", sans-serif; letter-spacing: -0.02em; }
.epd-head span { font: 600 3.6cqw/1.3 "Manrope", "IBM Plex Sans Arabic", sans-serif; }
.epd-meta { display: grid; justify-items: end; gap: 1.4cqw; font-size: 3cqw; text-align: end; }
.epd-icons { display: flex; gap: 1.6cqw; align-items: center; }
.epd-icons .wifi { width: 3.6cqw; height: 2.6cqw; border: .7cqw solid #161616; border-bottom: 0; border-left-color: transparent; border-right-color: transparent; border-radius: 50% 50% 0 0; }
.epd-icons .bat { width: 5.6cqw; height: 2.8cqw; border: .5cqw solid #161616; border-radius: .6cqw; position: relative; padding: .4cqw; display: block; }
.epd-icons .bat::after { content: ""; position: absolute; right: -1.1cqw; top: .7cqw; width: .6cqw; height: 1cqw; background: #161616; }
.epd-icons .bat b { display: block; height: 100%; width: 85%; background: #161616; }
.epd-status { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; padding: 2.8cqw 3.6cqw; border-radius: 1.4cqw; }
.epd-status.use { background: #161616; color: #E8E7E0; }
.epd-status.free { border: .8cqw solid #161616; }
.epd-status b { font: 800 6.6cqw/1 "Manrope", "IBM Plex Sans Arabic", sans-serif; letter-spacing: .02em; }
.epd-status span { font: 700 3.8cqw/1 "Manrope", "IBM Plex Sans Arabic", sans-serif; }
.epd-cur { font: 700 4cqw/1.3 "Manrope", "IBM Plex Sans Arabic", sans-serif; margin: 0; }
.epd-body { display: grid; grid-template-columns: 1fr auto; gap: 4cqw; align-items: end; }
.epd-list { display: grid; gap: .6cqw; }
.epd-list small { font: 800 2.8cqw/1 "Manrope", sans-serif; letter-spacing: .12em; margin-bottom: 1cqw; }
.epd-list div { display: grid; grid-template-columns: 14.5cqw 1fr; white-space: nowrap; gap: 2cqw; padding: 1.2cqw 0; border-top: .35cqw solid rgba(22,22,22,.85); font: 500 3.4cqw/1.2 "Manrope", "IBM Plex Sans Arabic", sans-serif; }
.epd-list div.past { color: #77766F; }
.epd-list div.now { font-weight: 800; }
.epd-list div.now span:first-child::before { content: "▶ "; font-size: 2.4cqw; vertical-align: middle; }
[dir="rtl"] .epd-list div.now span:first-child::before { content: "◀ "; }
.epd-qr { display: grid; justify-items: center; gap: 1.2cqw; }
.epd-qr small { font: 700 2.5cqw/1 "Manrope", "IBM Plex Sans Arabic", sans-serif; }
.qr { width: 17cqw; aspect-ratio: 1; display: grid; grid-template-columns: repeat(21, 1fr); padding: 1cqw; background: #E8E7E0; }
.qr i { display: block; } .qr i.k { background: #161616; }
/* refresh flicker */
.epd-flash { position: absolute; inset: 4.2cqw 4.2cqw 7cqw; border-radius: 1cqw; pointer-events: none; opacity: 0; }
.epd-flash.go { animation: epdA .33s steps(1, end) forwards; }
.epd-flash.go.late { animation: epdB .5s steps(1, end) forwards; }
@keyframes epdA { 0% { opacity: 1; background: #E8E7E0; } 30% { opacity: 1; background: #111; } 65% { opacity: 1; background: #E8E7E0; } 100% { opacity: 1; background: #111; } }
@keyframes epdB { 0% { opacity: 1; background: #E8E7E0; } 35% { opacity: .55; background: #111; } 70% { opacity: .25; background: #E8E7E0; } 100% { opacity: 0; } }
.epd-wrap { display: grid; gap: 12px; justify-items: center; }
.epd-wrap .epd { max-width: 360px; }
