:root {
  --navy-950: #08131d;
  --navy-900: #0f1b26;
  --navy-800: #1a2530;
  --navy-700: #263746;
  --teal: #1fb18d;
  --teal-bright: #39c9a5;
  --teal-dark: #137a63;
  --cream: #f7f8f5;
  --white: #fff;
  --ink: #18242f;
  --muted: #72808a;
  --line: #e3e9e6;
  --shadow: 0 22px 60px rgba(8, 19, 29, .14);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy-950);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 78% 16%, rgba(31,177,141,.18), transparent 26%), var(--navy-950); }
button, input, select { font: inherit; }
button { color: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.demo-frame { position: relative; display: grid; grid-template-columns: 204px minmax(0, 1fr); width: 100vw; height: 100svh; min-height: 580px; overflow: hidden; background: var(--cream); isolation: isolate; }
.sidebar { position: relative; z-index: 60; display: flex; flex-direction: column; min-width: 0; padding: 24px 17px 18px; color: rgba(255,255,255,.72); background: linear-gradient(180deg, rgba(31,177,141,.09), transparent 24%), var(--navy-900); box-shadow: 10px 0 35px rgba(8,19,29,.12); }
.product-mark { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; color: white; }
.product-mark__icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(57,201,165,.45); border-radius: 11px; color: var(--teal-bright); background: rgba(57,201,165,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.product-mark__icon svg { width: 23px; height: 23px; }
.product-mark strong, .product-mark small { display: block; }
.product-mark strong { color: #fff; font-size: 13px; letter-spacing: -.01em; }
.product-mark small { margin-top: 2px; color: var(--teal-bright); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: grid; gap: 6px; }
.nav-item { position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; font-size: 11px; font-weight: 680; text-align: left; transition: color .2s ease, background-color .2s ease, translate .2s ease; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: rgba(255,255,255,.06); outline: none; }
.nav-item:focus-visible { box-shadow: 0 0 0 2px var(--teal-bright); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(31,177,141,.23), rgba(31,177,141,.07)); box-shadow: inset 3px 0 var(--teal-bright); }
.nav-count { display: grid; width: 20px; height: 20px; margin-left: auto; place-items: center; border-radius: 99px; color: var(--navy-900); background: var(--teal-bright); font-size: 9px; font-weight: 850; }
.privacy-note { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 10px; border: 1px solid rgba(57,201,165,.18); border-radius: 11px; background: rgba(57,201,165,.06); }
.privacy-note svg { width: 16px; flex: 0 0 auto; color: var(--teal-bright); }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { margin-bottom: 2px; color: #fff; font-size: 9px; }
.privacy-note span { color: rgba(255,255,255,.52); font-size: 8px; line-height: 1.45; }

.workspace { position: relative; z-index: 1; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; background: linear-gradient(145deg, #fafbf8 0%, #f2f5f2 100%); }
.topbar { position: relative; z-index: 10; display: flex; min-height: 86px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 25px 13px; border-bottom: 1px solid rgba(213,220,217,.82); background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.topbar-copy { min-width: 0; }
.eyebrow, .panel-kicker, .drawer-kicker { margin: 0 0 6px; color: var(--teal-dark); font-size: 8px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.topbar h1 { margin: 0; color: var(--navy-800); font-size: clamp(17px, 2vw, 23px); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; color: #51616b; font-size: 9px; font-weight: 680; white-space: nowrap; }
.sync-status i { width: 7px; height: 7px; border-radius: 99px; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,177,141,.12); }
.motion-toggle { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #d8dfdd; border-radius: 9px; color: #52616b; background: #fff; box-shadow: 0 4px 14px rgba(8,19,29,.04); cursor: pointer; font-size: 9px; font-weight: 750; transition: border-color .2s ease, color .2s ease, translate .2s ease; }
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: var(--teal); color: var(--teal-dark); translate: 0 -1px; outline: none; }
.motion-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(31,177,141,.18); }
.motion-toggle svg { width: 13px; height: 13px; }
.motion-toggle .play-icon { display: none; fill: currentColor; stroke: none; }
.is-paused .motion-toggle .pause-icon { display: none; }
.is-paused .motion-toggle .play-icon { display: block; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--teal), var(--teal-dark)); box-shadow: 0 6px 16px rgba(31,177,141,.25); font-size: 9px; font-weight: 850; }

.flow-rail { position: relative; z-index: 8; display: flex; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; border-bottom: 1px solid rgba(213,220,217,.72); background: rgba(255,255,255,.54); }
.flow-rail span { display: flex; align-items: center; gap: 6px; color: #8a969c; font-size: 8px; font-weight: 750; transition: color .3s ease; }
.flow-rail span i { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #d9dfdd; border-radius: 50%; background: #fff; font-size: 7px; font-style: normal; transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.flow-rail b { width: min(50px, 5vw); height: 1px; background: #dce3e1; transition: background-color .3s ease; }
.flow-rail span.is-complete { color: var(--teal-dark); }
.flow-rail span.is-complete i { border-color: var(--teal); color: #fff; background: var(--teal); box-shadow: 0 0 0 3px rgba(31,177,141,.08); }
.flow-rail b.is-complete { background: var(--teal); }

.view-stage { position: relative; min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.app-view { min-height: 100%; padding: 18px 23px 24px; opacity: 0; translate: 0 7px; transition: opacity .26s ease, translate .34s ease; }
.app-view.is-active { opacity: 1; translate: 0 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-card { display: flex; min-width: 0; min-height: 92px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 8px 26px rgba(8,19,29,.04); }
.metric-card--accent { border-color: rgba(31,177,141,.29); box-shadow: 0 10px 30px rgba(31,177,141,.08); }
.metric-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--teal-dark); background: rgba(31,177,141,.1); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: #75828a; font-size: 8px; font-weight: 720; }
.metric-card strong { margin: 2px 0 1px; color: var(--navy-800); font-size: 23px; letter-spacing: -.05em; }
.metric-card small { color: #8a959a; font-size: 7px; }
.metric-card small i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--teal); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(210px, .7fr); gap: 14px; margin-top: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(8,19,29,.045); }
.panel-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2, .section-toolbar h2, .calendar-head h2 { margin: 0; color: var(--navy-800); font-size: 15px; letter-spacing: -.035em; }
.panel-head button, .secondary-button { min-height: 36px; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.panel-head button:hover, .panel-head button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible { color: var(--navy-800); outline: none; text-decoration: underline; text-underline-offset: 3px; }
.request-list { display: grid; padding: 5px 9px 9px; }
.request-row { position: relative; display: grid; width: 100%; min-height: 60px; grid-template-columns: minmax(210px, 1.45fr) minmax(100px, .7fr) minmax(80px, .58fr) 20px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid transparent; border-bottom-color: var(--line); color: inherit; background: transparent; cursor: pointer; text-align: left; }
.request-row:last-child { border-bottom-color: transparent; }
.request-row:not(.request-row--head):hover, .request-row:not(.request-row--head):focus-visible { z-index: 1; border-color: rgba(31,177,141,.32); border-radius: 10px; background: rgba(31,177,141,.055); outline: none; }
.request-row:not(.request-row--head):focus-visible { box-shadow: 0 0 0 3px rgba(31,177,141,.14); }
.request-row--head { min-height: 32px; color: #9aa4a9; cursor: default; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.request-name { display: flex; min-width: 0; align-items: center; gap: 9px; }
.request-name > i { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); font-size: 7px; font-style: normal; font-weight: 850; }
.request-row span > strong, .request-row span > small, .request-name strong, .request-name small { display: block; }
.request-row strong { color: var(--navy-800); font-size: 8px; }
.request-row small { margin-top: 3px; color: #929ca1; font-size: 7px; }
.request-row em { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 99px; color: #0f6d58; background: #e0f7ef; font-size: 7px; font-style: normal; font-weight: 800; }
.request-row em.is-checking { color: #7b5b18; background: #fff3d5; }
.request-row em.is-reserved { color: #3e5e8f; background: #e7effd; }
.row-arrow { color: #9aa4a9; font-size: 13px; }
.request-row--new { background: rgba(31,177,141,.035); }
.request-row--new::after { position: absolute; right: 42px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.availability-panel { display: flex; flex-direction: column; padding-bottom: 12px; }
.donut { display: grid; width: 92px; height: 92px; margin: 16px auto 12px; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 67%, #e6ebe8 67% 100%); }
.donut::before { position: absolute; width: 67px; height: 67px; border-radius: 50%; background: #fff; content: ""; }
.donut span { position: relative; z-index: 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { color: var(--navy-800); font-size: 19px; letter-spacing: -.05em; }
.donut small { color: #8b969b; font-size: 7px; }
.availability-legend { display: flex; justify-content: center; gap: 13px; color: #75828a; font-size: 7px; }
.availability-legend span { display: flex; align-items: center; gap: 4px; }
.availability-legend i { width: 6px; height: 6px; border-radius: 50%; }
.availability-legend i.free { background: var(--teal); }
.availability-legend i.out { background: #dce3e0; }
.availability-legend strong { color: var(--navy-800); }
.next-return { display: block; width: calc(100% - 24px); margin: auto 12px 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: inherit; background: #fafbf9; cursor: pointer; text-align: left; }
.next-return:hover, .next-return:focus-visible { border-color: var(--teal); outline: none; }
.next-return span, .next-return strong, .next-return small { display: block; }
.next-return span { color: #919ba0; font-size: 7px; }
.next-return strong { margin-top: 3px; color: var(--navy-800); font-size: 8px; }
.next-return small { margin-top: 2px; color: #78868d; font-size: 7px; }

.section-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-toolbar p, .calendar-head p { max-width: 560px; margin: 5px 0 0; color: #718087; font-size: 9px; line-height: 1.5; }
.section-toolbar h2, .calendar-head h2 { font-size: 20px; }
.secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; white-space: nowrap; }
.requests-panel--full { overflow: hidden; }
.requests-panel--full .request-row { min-height: 68px; }

.calendar-view { position: relative; opacity: 0; }
.calendar-view.is-active { opacity: 1; }
.calendar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.calendar-actions { display: flex; gap: 5px; }
.calendar-actions button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: #63727a; background: #fff; cursor: pointer; font-size: 9px; font-weight: 750; }
.calendar-actions button:hover, .calendar-actions button:focus-visible { border-color: var(--teal); color: var(--teal-dark); outline: none; }
.calendar-legend { display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 8px; color: #76838a; font-size: 7px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend-reserved { background: #dff7ef; border: 1px solid rgba(31,177,141,.5); }
.legend-out { background: #fff1cd; border: 1px solid #ebce85; }
.legend-service { background: #e8edf0; border: 1px solid #c7d0d5; }
.calendar-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 12px 35px rgba(8,19,29,.05); }
.calendar-scroll:focus-visible { outline: 3px solid rgba(31,177,141,.18); outline-offset: 2px; }
.calendar-grid { display: grid; min-width: 800px; grid-template-columns: 150px repeat(7, minmax(84px, 1fr)); }
.calendar-cell { min-height: 58px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-cell:nth-child(8n) { border-right: 0; }
.calendar-cell--head { display: grid; min-height: 52px; place-items: center; background: #f7f9f8; }
.calendar-cell--head:first-child { align-items: center; justify-items: start; padding-left: 13px; color: #8b969c; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.calendar-cell--head small, .calendar-cell--head strong { display: block; }
.calendar-cell--head small { color: #98a2a7; font-size: 6px; font-weight: 800; }
.calendar-cell--head strong { margin-top: -12px; color: var(--navy-800); font-size: 12px; }
.calendar-device { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fbfcfb; }
.calendar-device i { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: var(--navy-800); font-size: 7px; font-style: normal; font-weight: 850; }
.calendar-device strong, .calendar-device small { display: block; }
.calendar-device strong { color: var(--navy-800); font-size: 8px; }
.calendar-device small { margin-top: 2px; color: #8c979d; font-size: 7px; }
.calendar-slot { position: relative; display: flex; align-items: stretch; padding: 6px 3px; }
.calendar-slot.is-booked { background: #f2fbf7; }
.calendar-slot.is-out { background: #fff9e9; }
.calendar-slot.is-service { background: #f1f4f5; }
.calendar-slot.is-start { padding-left: 6px; }
.calendar-slot.is-start::before { position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--slot-color, var(--teal)); content: ""; }
.booking-label { display: flex; min-width: 0; flex-direction: column; justify-content: center; color: #315c52; font-size: 6px; overflow: hidden; }
.booking-label strong, .booking-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-label strong { font-size: 7px; }
.booking-label small { margin-top: 2px; color: #5e7d76; }
.calendar-slot.is-out .booking-label { color: #755c22; }
.calendar-slot.is-service .booking-label { color: #58676e; }
.toast { position: absolute; right: 27px; bottom: 26px; display: flex; min-width: 285px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(31,177,141,.23); border-radius: 11px; color: #164d42; background: rgba(239,252,247,.98); box-shadow: 0 14px 38px rgba(8,19,29,.14); opacity: 0; translate: 0 15px; transition: opacity .35s ease, translate .45s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.toast.is-visible { opacity: 1; translate: 0 0; }
.toast > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 900; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 9px; }
.toast small { margin-top: 3px; color: #5c7e76; font-size: 7px; }

.section-toolbar--controls { align-items: flex-end; }
.search-field { display: flex; min-width: 220px; height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,177,141,.12); }
.search-field svg { width: 15px; color: #859198; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--navy-800); background: transparent; font-size: 9px; }
.search-field input::placeholder { color: #9aa4a9; }
.filter-bar { display: flex; gap: 7px; margin-bottom: 13px; overflow-x: auto; }
.filter-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #68767d; background: #fff; cursor: pointer; font-size: 8px; font-weight: 750; white-space: nowrap; }
.filter-button span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 99px; background: #f0f3f2; font-size: 7px; }
.filter-button:hover, .filter-button:focus-visible { border-color: var(--teal); outline: none; }
.filter-button.is-active { border-color: var(--teal); color: #fff; background: var(--teal-dark); }
.filter-button.is-active span { color: var(--teal-dark); background: #fff; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.device-card { position: relative; display: flex; min-width: 0; min-height: 205px; flex-direction: column; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; box-shadow: 0 9px 28px rgba(8,19,29,.045); cursor: pointer; text-align: left; transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease; }
.device-card:hover, .device-card:focus-visible { border-color: rgba(31,177,141,.48); translate: 0 -3px; box-shadow: 0 15px 36px rgba(8,19,29,.09); outline: none; }
.device-card:focus-visible { box-shadow: 0 0 0 3px rgba(31,177,141,.15), 0 15px 36px rgba(8,19,29,.09); }
.device-visual { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--teal), var(--teal-dark)); box-shadow: 0 9px 20px rgba(31,177,141,.2); font-size: 11px; font-weight: 850; }
.device-visual--amber, .member-avatar--amber { background: linear-gradient(145deg, #e1a74a, #a86b1d); }
.device-visual--blue, .member-avatar--blue { background: linear-gradient(145deg, #578ac4, #345d8d); }
.device-visual--slate, .member-avatar--slate { background: linear-gradient(145deg, #77868e, #4b5960); }
.status-pill { position: absolute; right: 12px; top: 12px; display: inline-flex; padding: 5px 7px; border-radius: 99px; font-size: 7px; font-weight: 800; }
.status-pill--available { color: #0f6d58; background: #e0f7ef; }
.status-pill--out { color: #7b5b18; background: #fff3d5; }
.status-pill--service { color: #59676e; background: #e9eef0; }
.device-copy { display: block; margin-top: 15px; }
.device-copy strong, .device-copy small { display: block; }
.device-copy strong { color: var(--navy-800); font-size: 10px; }
.device-copy small { margin-top: 4px; color: #89959b; font-size: 7px; }
.device-meta { display: block; width: 100%; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.device-meta span, .device-meta strong { display: block; }
.device-meta span { color: #98a2a7; font-size: 7px; }
.device-meta strong { margin-top: 3px; color: #5e6d74; font-size: 8px; }
.empty-state { padding: 34px; border: 1px dashed #ccd5d2; border-radius: 13px; color: #748189; text-align: center; font-size: 9px; }

.team-summary { display: flex; gap: 8px; }
.team-summary span { min-width: 80px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #7c898f; background: #fff; font-size: 7px; text-align: center; }
.team-summary strong { display: block; margin-bottom: 2px; color: var(--navy-800); font-size: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.team-card { position: relative; display: flex; min-width: 0; min-height: 195px; flex-direction: column; align-items: center; padding: 16px 13px 13px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; box-shadow: 0 9px 28px rgba(8,19,29,.045); cursor: pointer; text-align: center; transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease; }
.team-card:hover, .team-card:focus-visible { border-color: rgba(31,177,141,.48); translate: 0 -3px; box-shadow: 0 15px 36px rgba(8,19,29,.09); outline: none; }
.member-avatar { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--teal), var(--teal-dark)); box-shadow: 0 8px 20px rgba(31,177,141,.2); font-size: 11px; font-weight: 850; }
.status-dot { position: absolute; top: 56px; left: calc(50% + 15px); width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; }
.status-dot--available { background: var(--teal); }
.status-dot--busy { background: #d59a3d; }
.team-card > span:nth-of-type(3) { margin-top: 12px; }
.team-card strong, .team-card small { display: block; }
.team-card strong { color: var(--navy-800); font-size: 10px; }
.team-card small { margin-top: 3px; color: #89959b; font-size: 7px; }
.utilization { width: 100%; margin-top: auto; padding-top: 13px; }
.utilization::before { display: block; width: 100%; height: 5px; border-radius: 99px; background: #edf1ef; content: ""; }
.utilization i { display: block; width: var(--load); height: 5px; margin-top: -5px; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.utilization small { margin-top: 7px; }

.drawer-backdrop { position: absolute; z-index: 24; inset: 0; background: rgba(8,19,29,.27); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.side-drawer { position: absolute; z-index: 30; top: 100px; right: 18px; bottom: 18px; width: min(350px, calc(100% - 36px)); padding: 19px; border: 1px solid rgba(31,177,141,.2); border-radius: 16px; background: rgba(255,255,255,.99); box-shadow: var(--shadow); opacity: 0; translate: calc(100% + 30px) 0; transition: opacity .3s ease, translate .46s cubic-bezier(.16,1,.3,1); pointer-events: none; overflow: auto; }
.side-drawer.is-open { opacity: 1; translate: 0 0; pointer-events: auto; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; color: var(--navy-800); font-size: 17px; letter-spacing: -.04em; }
.drawer-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #7f8a90; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.drawer-close:hover, .drawer-close:focus-visible { border-color: var(--teal); color: var(--teal-dark); outline: none; }
.customer-line { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.customer-line > span, .detail-hero > span { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--teal), var(--teal-dark)); font-size: 8px; font-weight: 850; }
.customer-line strong, .customer-line small { display: block; }
.customer-line strong { color: var(--navy-800); font-size: 9px; }
.customer-line small { margin-top: 3px; color: #8c979c; font-size: 7px; }
.request-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.request-facts > span { padding: 9px 7px; border-right: 1px solid var(--line); }
.request-facts > span:last-child { border-right: 0; }
.request-facts small, .request-facts strong { display: block; }
.request-facts small { color: #99a3a8; font-size: 6px; font-weight: 800; }
.request-facts strong { margin-top: 4px; color: var(--navy-800); font-size: 8px; }
.availability-check { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--teal-dark); background: #f8fbf9; cursor: pointer; text-align: left; }
.availability-check:hover, .availability-check:focus-visible { border-color: var(--teal); outline: none; }
.availability-check > svg { width: 18px; flex: 0 0 auto; }
.availability-check span { flex: 1; }
.availability-check strong, .availability-check small { display: block; }
.availability-check strong { color: var(--navy-800); font-size: 9px; }
.availability-check small { margin-top: 3px; color: #8c979d; font-size: 7px; }
.check-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(31,177,141,.2); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.check-ok { display: none; color: var(--teal-dark); font-style: normal; font-weight: 900; }
.availability-result { display: flex; max-height: 0; align-items: center; gap: 8px; margin: 0; padding: 0 10px; border: 0 solid rgba(31,177,141,.2); border-radius: 9px; color: #14594a; background: #eaf9f3; opacity: 0; overflow: hidden; transition: max-height .32s ease, margin .32s ease, padding .32s ease, opacity .25s ease; }
.availability-result.is-visible { max-height: 68px; margin-top: 9px; padding: 9px 10px; border-width: 1px; opacity: 1; }
.result-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 9px; font-weight: 900; }
.availability-result strong, .availability-result small { display: block; }
.availability-result strong { font-size: 8px; }
.availability-result small { margin-top: 2px; color: #54786f; font-size: 7px; }
.team-field { display: block; margin-top: 12px; }
.team-field > span { display: block; margin-bottom: 5px; color: #8b969b; font-size: 7px; font-weight: 750; }
.team-field button { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.team-field button:hover, .team-field button:focus-visible { border-color: var(--teal); outline: none; }
.team-field button:disabled { cursor: not-allowed; opacity: .55; }
.team-field button i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: var(--navy-800); font-size: 7px; font-style: normal; font-weight: 850; }
.team-field button strong { color: #7c888f; font-size: 8px; }
.team-field button b { margin-left: auto; color: #98a2a7; font-size: 11px; }
.reserve-button { display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; border: 0; border-radius: 10px; color: #fff; background: var(--navy-800); box-shadow: 0 9px 24px rgba(15,27,38,.16); cursor: pointer; font-size: 9px; font-weight: 800; opacity: .42; pointer-events: none; }
.request-drawer[data-step="assigned"] .reserve-button { color: var(--navy-900); background: var(--teal-bright); box-shadow: 0 10px 28px rgba(31,177,141,.22); opacity: 1; pointer-events: auto; }
.request-drawer[data-step="checked"] .availability-check, .request-drawer[data-step="assigned"] .availability-check { border-color: var(--teal); background: rgba(31,177,141,.08); }
.request-drawer[data-step="checked"] .check-ok, .request-drawer[data-step="assigned"] .check-ok { display: block; }
.request-drawer[data-step="assigned"] .team-field button { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,177,141,.1); }
.request-drawer[data-step="assigned"] .team-field button strong { color: var(--navy-800); }
.drawer-message { margin: 10px 0 0; color: #6f7d84; font-size: 7px; line-height: 1.45; }
.detail-hero { display: flex; align-items: center; gap: 10px; margin: 15px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; }
.detail-hero > span { width: 48px; height: 48px; border-radius: 12px; }
.detail-hero strong, .detail-hero small { display: block; }
.detail-hero strong { color: var(--navy-800); font-size: 10px; }
.detail-hero small { margin-top: 3px; color: var(--teal-dark); font-size: 8px; font-weight: 750; }
.detail-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.detail-list span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border-bottom: 1px solid var(--line); }
.detail-list span:last-child { border-bottom: 0; }
.detail-list small { color: #919ca1; font-size: 6px; font-weight: 800; }
.detail-list strong { color: var(--navy-800); font-size: 8px; text-align: right; }
.detail-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 11px; border: 1px solid rgba(31,177,141,.18); border-radius: 10px; color: var(--teal-dark); background: #edf9f5; }
.detail-note svg { width: 16px; flex: 0 0 auto; }
.detail-note strong, .detail-note small { display: block; }
.detail-note strong { color: #245e52; font-size: 8px; }
.detail-note small { margin-top: 3px; color: #5d7d76; font-size: 7px; line-height: 1.4; }

.completion-card { position: absolute; z-index: 40; inset: 28px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1px solid rgba(57,201,165,.35); border-radius: 20px; color: #fff; background: radial-gradient(circle at 50% 18%, rgba(57,201,165,.18), transparent 30%), linear-gradient(145deg, #0e1d28 0%, #122c35 100%); box-shadow: 0 30px 80px rgba(8,19,29,.35); text-align: center; opacity: 0; scale: .94; transition: opacity .45s ease, scale .7s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.completion-card.is-open { opacity: 1; scale: 1; }
.completion-card::before { position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(rgba(57,201,165,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(57,201,165,.035) 1px, transparent 1px); background-size: 28px 28px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.completion-card > * { position: relative; }
.completion-icon { display: grid; width: 48px; height: 48px; margin-bottom: 14px; place-items: center; border: 1px solid rgba(57,201,165,.45); border-radius: 14px; color: var(--teal-bright); background: rgba(57,201,165,.11); box-shadow: 0 0 32px rgba(57,201,165,.12); }
.completion-icon svg { width: 25px; height: 25px; stroke-width: 2.4; }
.completion-card .eyebrow { color: var(--teal-bright); }
.completion-card h2 { margin: 5px 0 24px; font-size: clamp(24px, 3.4vw, 41px); line-height: 1.1; letter-spacing: -.055em; }
.completion-card h2 span { color: var(--teal-bright); }
.completion-flow { display: flex; width: min(760px, 94%); align-items: center; justify-content: center; }
.completion-flow span { display: grid; min-width: 112px; place-items: center; }
.completion-flow span i { display: grid; width: 27px; height: 27px; margin-bottom: 7px; place-items: center; border-radius: 50%; color: var(--navy-900); background: var(--teal-bright); font-size: 10px; font-style: normal; font-weight: 900; }
.completion-flow strong { font-size: 9px; }
.completion-flow small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 7px; }
.completion-flow b { width: 44px; margin: 0 3px 20px; color: rgba(57,201,165,.45); font-size: 15px; }
.completion-note { display: flex; align-items: center; gap: 7px; margin: 23px 0 0; color: rgba(255,255,255,.6); font-size: 8px; }
.completion-note svg { width: 13px; height: 13px; color: var(--teal-bright); }
.demo-cursor { position: absolute; z-index: 45; left: 55%; top: 48%; color: #fff; filter: drop-shadow(0 3px 6px rgba(8,19,29,.42)); opacity: 0; translate: -50% -50%; transition: left .65s cubic-bezier(.2,.8,.2,1), top .65s cubic-bezier(.2,.8,.2,1), opacity .25s ease, scale .2s ease; pointer-events: none; }
.demo-cursor svg { width: 23px; height: 23px; fill: var(--navy-800); stroke: #fff; stroke-width: 1.3; }
.demo-cursor i { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border: 2px solid var(--teal-bright); border-radius: 50%; opacity: 0; scale: .2; }
.demo-cursor.is-clicking { scale: .9; }
.demo-cursor.is-clicking i { animation: clickRing .6s ease-out; }
.reset-shade { position: absolute; z-index: 50; inset: 0; background: var(--navy-950); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.demo-frame[data-scene="0"] .request-row--new::after { animation: notify 1.5s ease-out infinite; }
.demo-frame[data-scene="1"] .demo-cursor { left: calc(100% - 310px); top: 47%; opacity: 1; }
.demo-frame[data-scene="2"] .demo-cursor { left: calc(100% - 175px); top: 50%; opacity: 1; }
.demo-frame[data-scene="3"] .demo-cursor { left: calc(100% - 180px); top: 73%; opacity: 1; }
.demo-frame[data-scene="4"] .demo-cursor { left: 58%; top: 36%; opacity: 1; }
.demo-frame[data-scene="6"] .reset-shade { opacity: 1; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes notify { 65%, 100% { box-shadow: 0 0 0 9px rgba(31,177,141,0); } }
@keyframes clickRing { 0% { opacity: .9; scale: .2; } 100% { opacity: 0; scale: 2.4; } }

@media (max-width: 980px) {
  .demo-frame { grid-template-columns: 70px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .product-mark { justify-content: center; padding-inline: 0; }
  .product-mark > span:last-child, .privacy-note span, .nav-item > span:not(.nav-count) { display: none; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-count { position: absolute; right: 2px; top: 1px; width: 17px; height: 17px; }
  .privacy-note { justify-content: center; padding-inline: 0; }
  .device-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-card, .team-card { min-height: 180px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 78px; padding-inline: 15px; }
  .sync-status, .motion-toggle span { display: none; }
  .flow-rail { gap: 5px; padding-inline: 8px; }
  .flow-rail b { width: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:last-child { grid-column: 1 / -1; min-height: 70px; }
  .content-grid { grid-template-columns: 1fr; }
  .availability-panel { display: none; }
  .request-row { grid-template-columns: minmax(160px, 1fr) minmax(82px, .55fr) 19px; }
  .request-row > span:nth-child(3) { display: none; }
  .request-row--head { display: none; }
  .section-toolbar { align-items: flex-start; }
  .section-toolbar--controls { flex-direction: column; }
  .search-field { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .demo-frame { display: block; min-height: 640px; }
  .workspace { height: 100svh; padding-bottom: 66px; }
  .sidebar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: block; height: 66px; padding: 6px 7px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(8,19,29,.19); }
  .product-mark, .privacy-note { display: none; }
  .nav-list { display: grid; height: 100%; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-item { min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 3px 2px; border-radius: 8px; font-size: 8px; }
  .nav-item > span:not(.nav-count) { display: block; font-size: 8px; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item.is-active { box-shadow: inset 0 3px var(--teal-bright); }
  .nav-count { right: 14%; top: 2px; }
  .topbar { min-height: 73px; padding: 12px 10px 9px; gap: 8px; }
  .topbar h1 { max-width: 230px; font-size: 15px; }
  .eyebrow { font-size: 6px; }
  .topbar-actions { gap: 6px; }
  .motion-toggle { width: 35px; padding: 0; justify-content: center; }
  .avatar { width: 34px; height: 34px; }
  .flow-rail { height: 39px; }
  .flow-rail span { font-size: 0; }
  .flow-rail b { width: 22px; }
  .view-stage { padding-bottom: 2px; }
  .app-view { padding: 11px 10px 18px; }
  .metrics { gap: 8px; }
  .metric-card { min-height: 72px; gap: 8px; padding: 9px; }
  .metric-card:last-child { display: none; }
  .metric-icon { width: 31px; height: 31px; }
  .metric-card strong { font-size: 18px; }
  .content-grid { margin-top: 8px; }
  .panel-head { padding-inline: 10px; }
  .request-list { padding-inline: 4px; }
  .request-row { min-height: 65px; grid-template-columns: minmax(0, 1fr) 17px; padding-inline: 6px; }
  .request-row > span:nth-child(2), .request-row > span:nth-child(3) { display: none; }
  .request-name > i { width: 29px; height: 29px; }
  .section-toolbar { display: block; margin-bottom: 10px; }
  .section-toolbar h2, .calendar-head h2 { font-size: 17px; }
  .section-toolbar .secondary-button { margin-top: 8px; }
  .team-summary { margin-top: 9px; }
  .filter-bar { margin-bottom: 9px; }
  .filter-button { min-height: 40px; }
  .device-grid, .team-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .device-card, .team-card { min-height: 155px; padding: 10px; }
  .device-visual, .member-avatar { width: 42px; height: 42px; }
  .status-pill { right: 8px; top: 8px; padding: 4px 6px; }
  .device-copy { margin-top: 10px; }
  .device-meta { padding-top: 8px; }
  .team-card { min-height: 170px; }
  .status-dot { top: 42px; left: calc(50% + 10px); }
  .calendar-head { align-items: flex-start; }
  .calendar-actions button { min-width: 40px; height: 40px; }
  .calendar-legend { justify-content: flex-start; flex-wrap: wrap; }
  .calendar-grid { min-width: 760px; }
  .toast { right: 13px; bottom: 78px; min-width: 0; width: calc(100% - 26px); }
  .side-drawer { position: fixed; z-index: 80; top: 8px; right: 8px; bottom: 74px; width: calc(100% - 16px); max-width: none; padding: 15px; border-radius: 15px; }
  .drawer-backdrop { position: fixed; z-index: 75; }
  .completion-card { position: fixed; z-index: 82; inset: 9px 9px 74px; padding: 20px 12px; }
  .completion-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .completion-flow b { display: none; }
  .completion-card h2 { font-size: 25px; }
  .demo-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .demo-cursor, .reset-shade { display: none !important; }
}
