/* =====================================================================================================================
   OBSIDIAN owner view (concept): /dashboard/. An app of its own inside the site layout.
   Desktop: a sticky sidebar, a glass top bar and the views. Under 1081 px: an app bar on top and a tab bar at the bottom.
   Black and white first; ice is the light: active states, the automatic texts, the new booking.
   ===================================================================================================================== */

/* the site header and phone menu make way for the app's own chrome (the sidebar and the brand link go back to the site) */
[data-page="dashboard"] .hdr, [data-page="dashboard"] .menu { display: none; }
html[data-page="dashboard"] { --tb-h: 76px; } /* the app bar's height (the toasts outside the app use it too) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app svg, .tabbar svg, .drawer svg, .toasts svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: 120px var(--pad); text-align: center; color: var(--dim); }

.app {
  --side: 268px; --gut: clamp(20px, 2.6vw, 44px);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  --panel-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.065);
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: var(--bg);
}

/* ---------- app mark: the favicon's ceiling strips and the ice ring ---------- */
.app-mark { position: relative; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #050607;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 26px rgba(139, 233, 255, 0.16); }
.app-mark::before { content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 6px 0 -0.5px rgba(255, 255, 255, 0.5); }
.app-mark::after { content: ""; position: absolute; left: 50%; top: 58%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; box-shadow: inset 0 0 0 2.4px var(--ice), 0 0 10px rgba(139, 233, 255, 0.55); }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; z-index: 30; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: 30px; padding: 22px 16px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: radial-gradient(120% 40% at 0% 0%, rgba(206, 236, 255, 0.05), transparent 70%), linear-gradient(180deg, #0a0c0f, #060708); }
.side::-webkit-scrollbar { display: none; }
/* its edge: a hairline with one lit point, like a strip on the wall */
.side::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--line), rgba(214, 249, 255, 0.4) 22%, var(--line) 46%, var(--line)); }
.side-brand { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; }
.side-brand b { display: block; font: 800 14px/1 var(--sans); letter-spacing: 0.3em; }
.side-brand small { display: block; margin-top: 6px; font: 500 11.5px/1 var(--mono); color: var(--ice); letter-spacing: 0.02em; }
.side-nav { position: relative; display: grid; gap: 3px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 12px 0 14px; border-radius: 13px; font: 550 15.5px/1 var(--sans); color: var(--dim); transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.side-nav a svg { width: 21px; height: 21px; flex: none; transition: color 0.25s, filter 0.25s; }
.side-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.side-nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(90deg, rgba(139, 233, 255, 0.13), rgba(139, 233, 255, 0.025) 85%); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.14); }
.side-nav a[aria-current="page"] svg { color: var(--ice); filter: drop-shadow(0 0 6px rgba(139, 233, 255, 0.7)); }
/* the LED on the wall next to the section you're in */
.side-led { position: absolute; left: -16px; top: 0; width: 3px; height: 26px; border-radius: 0 3px 3px 0; background: var(--ice); pointer-events: none;
  box-shadow: 0 0 10px var(--ice), 0 0 26px rgba(139, 233, 255, 0.55); transform: translateY(var(--y, 11px)); transition: transform 0.55s var(--spring); }
.count { margin-left: auto; min-width: 23px; height: 23px; padding: 0 7px; white-space: nowrap; border-radius: 999px; display: inline-grid; place-items: center; font: 700 12px/1 var(--mono); font-style: normal;
  color: var(--ice-ink); background: var(--ice); box-shadow: 0 0 16px rgba(139, 233, 255, 0.35); }
.count.dim { color: var(--dim); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.count[hidden] { display: none; }
.count.bump { animation: bump 0.7s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); box-shadow: 0 0 26px var(--ice); } 100% { transform: scale(1); } }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-card { padding: 14px 15px; border-radius: 15px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); }
.side-open { display: flex; align-items: center; gap: 9px; font: 600 14px/1.2 var(--sans); }
.side-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: pulse 2.2s ease-in-out infinite; }
.side-open.closed i { background: var(--mute); box-shadow: none; animation: none; }
.side-hours { margin-top: 5px; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.side-card.concept { background: radial-gradient(100% 120% at 0% 0%, rgba(139, 233, 255, 0.08), transparent 70%), rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.2); }
.side-card.concept b { display: block; font: 600 12px/1.3 var(--mono); color: var(--ice); letter-spacing: 0.02em; }
.side-card.concept p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.side-back { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; font: 600 14px/1 var(--sans); color: var(--dim); transition: color 0.2s, background 0.2s; }
.side-back svg { width: 18px; height: 18px; }
.side-back:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.me { display: flex; align-items: center; gap: 11px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.me b { display: block; font-size: 14px; font-weight: 650; }
.me small { display: block; font-size: 12px; color: var(--mute); }

/* avatars: initials only */
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 650 12.5px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink);
  background: radial-gradient(circle at 30% 25%, #2c343b, #12161a 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.me-av { width: 36px; height: 36px; color: var(--ice); box-shadow: inset 0 0 0 1.5px rgba(139, 233, 255, 0.5); }
.av.is-new { color: var(--ice-ink); background: radial-gradient(circle at 30% 25%, #e6fbff, var(--ice) 70%); box-shadow: 0 0 0 3px rgba(139, 233, 255, 0.18), 0 0 20px rgba(139, 233, 255, 0.5); }

/* ---------- work area: a studio ceiling above it ---------- */
.work { position: relative; isolation: isolate; min-width: 0; padding: 0 var(--gut) clamp(64px, 7vw, 110px); }
.work::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 520px; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(206, 236, 255, 0.07), transparent 72%); }
.work::after { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: min(980px, 86%); height: 34px; transform: translateX(-50%); pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7) 18%, #fff 50%, rgba(255, 255, 255, 0.7) 82%, transparent) 50% 0 / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32) 24%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.32) 76%, transparent) 50% 15px / 74% 1.5px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.16) 70%, transparent) 50% 27px / 54% 1px no-repeat;
  filter: drop-shadow(0 0 6px rgba(190, 240, 255, 0.55)); }
.work > .view, .work > .topbar > * { max-width: 1480px; }
.view { margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 14px; height: var(--tb-h); margin: 0 calc(var(--gut) * -1); padding: 0 max(var(--gut), calc((100% - 1480px) / 2 + var(--gut))); }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 30%, rgba(214, 249, 255, 0.32) 50%, rgba(255, 255, 255, 0.12) 70%, transparent) 0 100% / 100% 1px no-repeat, rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.topbar.is-scrolled::before { opacity: 1; }
.tb-brand { display: none; align-items: center; gap: 11px; min-height: 44px; }
.tb-brand .app-mark { width: 34px; height: 34px; border-radius: 10px; }
.tb-brand .app-mark::before { left: 6px; right: 6px; top: 7px; }
.tb-brand b { font: 800 14px/1 var(--sans); letter-spacing: 0.3em; }
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 15px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background 0.25s; cursor: text; }
.search:focus-within { background: rgba(139, 233, 255, 0.05); box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 0 4px rgba(139, 233, 255, 0.1); }
.search svg { width: 18px; height: 18px; flex: none; color: var(--mute); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: rgba(243, 245, 247, 0.38); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.8); cursor: pointer; }
.tb-search { width: min(420px, 34vw); }
.concept-badge { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; margin-left: auto; border-radius: 999px; white-space: nowrap;
  font: 600 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--ice); background: rgba(139, 233, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.4), 0 0 24px rgba(139, 233, 255, 0.08); }
.concept-badge i, .concept-strip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.tb-clock { font: 500 13px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.tb-site { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 var(--sans); color: var(--dim); box-shadow: inset 0 0 0 1px var(--faint); transition: color 0.2s, box-shadow 0.2s; white-space: nowrap; }
.tb-site svg { width: 17px; height: 17px; }
.tb-site:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.7); }
.concept-strip { display: none; }

/* ---------- view head ---------- */
.v-head { display: grid; gap: 16px; justify-items: start; padding: clamp(26px, 3vw, 48px) 0 clamp(26px, 2.8vw, 40px); }
.dash-h { font-size: clamp(30px, 4.3vw, 68px); line-height: 0.9; outline: none; }
.dash-h em { -webkit-text-stroke-width: max(1.4px, 0.02em); }
.v-lead { max-width: 40em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--dim); text-wrap: pretty; }
.v-lead i { font-family: var(--serif); font-style: italic; font-size: 1.14em; line-height: 1; color: var(--ink); }

/* ---------- panels ---------- */
.panel { position: relative; isolation: isolate; border-radius: 22px; background: var(--panel); box-shadow: var(--panel-edge), 0 30px 70px rgba(0, 0, 0, 0.32); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px 8px; }
.panel-h h3 { font: 800 15px/1.2 var(--display); font-stretch: 118%; letter-spacing: 0.03em; }
.panel-h .tag { white-space: nowrap; }
.panel-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font: 600 13.5px/1 var(--sans); color: var(--ice); white-space: nowrap; }
.panel-link .arr { width: 14px; height: 10px; }
.panel-note { padding: 4px 22px 20px; font-size: 13.5px; color: var(--mute); }

/* ---------- the arrival card (a booking just landed) / the try-it card ---------- */
.arrive { margin-bottom: 14px; }
.arrive:empty { display: none; }
.ac { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1.2fr) minmax(0, 1fr); border-radius: 24px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(139, 233, 255, 0.1), transparent 60%), linear-gradient(180deg, #0f1317, #0a0c0f);
  box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 60px rgba(139, 233, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.45); }
/* an LED strip along the top edge */
.ac::before { content: ""; position: absolute; z-index: 3; top: 0; left: 6%; right: 6%; height: 1.5px; pointer-events: none; background: linear-gradient(90deg, transparent, #fff 20%, var(--ice-hi) 50%, #fff 80%, transparent); box-shadow: 0 0 12px rgba(139, 233, 255, 0.8); }
.ac-media { position: relative; overflow: hidden; min-height: 260px; background: var(--char); }
.ac-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, #0e1216), linear-gradient(to top, rgba(4, 5, 6, 0.5), transparent 40%); }
.ac-tag { position: absolute; z-index: 1; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.04em;
  color: var(--ice-ink); background: var(--ice); box-shadow: 0 0 22px rgba(139, 233, 255, 0.55); }
.ac-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice-ink); animation: blink 1.4s ease-in-out infinite; }
.ac-tag.quiet { color: var(--ink); background: rgba(10, 12, 15, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ac-tag.quiet i { background: var(--dim); animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.ac-main { display: grid; align-content: center; justify-items: start; gap: 12px; padding: 30px 28px; min-width: 0; }
.ac-main .eyebrow { font-size: 12.5px; }
.ac-name { font: 900 clamp(32px, 3.2vw, 50px)/0.92 var(--display); font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.ac-sub { color: var(--dim); font-size: 16px; line-height: 1.45; }
.ac-sub b { color: var(--ink); font-weight: 600; }
.ac .cta-row { margin-top: 6px; gap: 10px; }
.ac .link-btn { font-size: 13px; }
.ac-steps { list-style: none; display: grid; align-content: center; gap: 0; padding: 26px 28px 26px 8px; position: relative; }
.ac-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 14px; padding: 8px 0; }
.ac-steps li::before { content: ""; position: absolute; left: 12px; top: 34px; bottom: -10px; width: 2px; background: var(--faint); }
.ac-steps li:last-child::before { display: none; }
.ac-steps li.lit::before { background: linear-gradient(180deg, var(--ice), rgba(139, 233, 255, 0.25)); box-shadow: 0 0 8px rgba(139, 233, 255, 0.5); }
.ac-steps .node { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0b0d10; box-shadow: inset 0 0 0 1.5px var(--faint); color: var(--mute); transition: background 0.35s, box-shadow 0.35s, color 0.35s; }
.ac-steps .node svg { width: 15px; height: 15px; stroke-width: 2.2; }
.ac-steps li.lit .node { background: var(--ice); color: var(--ice-ink); box-shadow: 0 0 0 4px rgba(139, 233, 255, 0.14), 0 0 18px var(--ice); }
.ac-steps li.sched .node { color: var(--ice); box-shadow: inset 0 0 0 1.5px rgba(139, 233, 255, 0.55); }
.ac-steps li.off .node { color: var(--mute); }
.ac-steps b { font-weight: 650; font-size: 15px; line-height: 1.3; }
.ac-steps li > span:not(.node) { font: 500 12px/1.4 var(--mono); color: var(--dim); }
.ac-steps li.off b { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }
/* while it plays: steps wait dark until they light */
.ac.playing .ac-steps li:not(.lit):not(.shown) { opacity: 0.28; }
.ac-steps li { transition: opacity 0.4s; }
.typing { display: inline-flex; gap: 4px; padding: 7px 10px; border-radius: 12px; background: rgba(139, 233, 255, 0.12); width: max-content; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
/* a light sweeps across the card once as the booking lands */
.ac.sweep::after { content: ""; position: absolute; z-index: 4; top: -10%; bottom: -10%; left: -30%; width: 22%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(139, 233, 255, 0.12) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(139, 233, 255, 0.12) 70%, transparent); transform: skewX(-14deg);
  animation: ac-sweep 1.5s var(--ease-io) forwards; }
@keyframes ac-sweep { from { left: -30%; } to { left: 120%; } }
/* the try-it card */
.ac.try { grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.45); }
.ac.try .ac-media img { object-position: 30% 60%; }
.ac.try h3 { font-size: clamp(22px, 2.4vw, 38px); line-height: 0.98; text-wrap: balance; }
.ac.try p { color: var(--dim); max-width: 34em; }
.ac.try .ghost-row { display: flex; align-items: center; gap: 12px; width: min(460px, 100%); margin-top: 4px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(139, 233, 255, 0.4); color: var(--mute); font: 500 12.5px/1.3 var(--mono); }
.ac.try .ghost-row i { width: 30px; height: 30px; border-radius: 50%; border: 1px dashed rgba(139, 233, 255, 0.5); flex: none; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { display: grid; gap: 12px; align-content: start; padding: 20px 22px 22px; }
.kpi .tag { color: var(--dim); }
.kpi-n { font: 900 clamp(42px, 3.7vw, 60px)/0.86 var(--display); font-stretch: 125%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-n small { font-size: 0.42em; color: var(--mute); letter-spacing: 0; margin-left: 2px; }
.kpi.hot .kpi-n { color: var(--ice); text-shadow: 0 0 28px rgba(139, 233, 255, 0.35); }
.kpi p { font-size: 14px; line-height: 1.4; color: var(--dim); }
/* one dot per row on the screen: the lit ones are the ones counted */
.dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 9px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); transition: background 0.4s, box-shadow 0.4s; }
.dots i.on { background: var(--ice); box-shadow: 0 0 8px rgba(139, 233, 255, 0.8); }
.dots i.w { background: rgba(243, 245, 247, 0.62); }
.dots i.bay { background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: pulse 2.2s ease-in-out infinite; }
.dots i.o { background: none; box-shadow: inset 0 0 0 1.5px rgba(243, 245, 247, 0.4); }

/* ---------- overview grid ---------- */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ov-main > :last-child, .ov-side > :last-child { flex: 1; }

/* texts sent for you: the newest automatic texts */
.sent-list { list-style: none; display: grid; padding: 6px 12px 14px; }
.sent-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; width: 100%; padding: 12px 10px; border: 0; border-radius: 16px; background: none; cursor: pointer; text-align: left; transition: background 0.2s; }
.sent-item:hover { background: rgba(255, 255, 255, 0.035); }
.sent-item .av { grid-row: 1 / span 2; }
.sent-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.sent-top b { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; font-weight: 650; font-size: 15px; white-space: nowrap; }
.sent-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 500 11.5px/1.2 var(--mono); color: var(--ice); white-space: nowrap; }
.sent-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sent-top svg { flex: none; width: 13px; height: 13px; stroke-width: 2; }
.sent-txt > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sent-txt { display: block; margin-top: 4px; padding: 9px 13px; border-radius: 14px 14px 5px 14px; font-size: 14px; line-height: 1.4;
  color: var(--ice-ink); background: linear-gradient(180deg, #d4f8ff, var(--ice)); box-shadow: 0 0 22px rgba(139, 233, 255, 0.12); }
.sent-txt .lnk { text-decoration: underline; text-underline-offset: 2px; }

/* today's jobs: times down the left, an LED rail, a "now" line */
.jobs { list-style: none; position: relative; display: grid; padding: 8px 14px 16px 14px; }
.jobs > li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.job-t { font: 500 12.5px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.job-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; margin: 4px 0; padding: 10px 12px 10px 10px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.25s, box-shadow 0.25s, transform 0.3s var(--ease); overflow: hidden; }
.job-card:hover { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.job-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.job-main { min-width: 0; display: grid; gap: 4px; }
.job-main b { font-weight: 650; font-size: 16px; line-height: 1.2; }
.job-main small { font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job.is-done .job-card { opacity: 0.62; }
.job.is-done .job-card img { filter: grayscale(0.6); }
.job.is-bay .job-card { background: linear-gradient(90deg, rgba(139, 233, 255, 0.1), rgba(139, 233, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.35), 0 0 30px rgba(139, 233, 255, 0.08); }
.job.is-bay .job-card img { box-shadow: 0 0 0 2px var(--ice), 0 0 16px rgba(139, 233, 255, 0.6); }
/* the job in the bay: a slim LED bar filling as it goes */
.job-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(139, 233, 255, 0.12); }
.job-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, rgba(139, 233, 255, 0.3), var(--ice) 70%, #fff); box-shadow: 0 0 10px var(--ice); transition: width 1s var(--ease); }
.job.is-new .job-card { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 34px rgba(139, 233, 255, 0.22); background: linear-gradient(90deg, rgba(139, 233, 255, 0.14), rgba(139, 233, 255, 0.03)); }
.now { margin: 6px 0; }
.now-line { position: relative; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ice), rgba(139, 233, 255, 0.5) 60%, transparent); box-shadow: 0 0 10px rgba(139, 233, 255, 0.7); }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(139, 233, 255, 0.3), 0 0 14px var(--ice); }
.now .job-t { color: var(--ice); font-weight: 600; }
.jobs-note { grid-column: 1 / -1; padding: 10px 2px 4px; font: 500 12.5px/1.4 var(--mono); color: var(--dim); }
.jobs-note.none { padding: 26px 2px; text-align: center; }

/* status pills */
.st { display: inline-flex; align-items: center; gap: 7px; height: 27px; padding: 0 11px; border-radius: 999px; font: 650 12.5px/1 var(--sans); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st-new { color: var(--ice-ink); background: var(--ice); box-shadow: 0 0 16px rgba(139, 233, 255, 0.3); }
.st-booked { color: var(--ice); background: rgba(139, 233, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.45); }
.st-booked::before { box-shadow: 0 0 8px var(--ice); }
.st-quote { color: var(--ink); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.st-bay { color: var(--ice-ink); background: linear-gradient(180deg, #fff, #d9f8ff); box-shadow: 0 0 18px rgba(139, 233, 255, 0.35); }
.st-bay::before { animation: blink 1.2s ease-in-out infinite; }
.st-done { color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.st-done::before { width: 11px; height: 8px; border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M1 4l3 3 6-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M1 4l3 3 6-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.st-next { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }
.st-next::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

/* where leads came from: LED bars */
.src-bars { list-style: none; display: grid; gap: 4px; padding: 8px 12px 2px; }
.src-bars button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 12px; width: 100%; padding: 10px 10px 12px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left; transition: background 0.2s; }
.src-bars button:hover { background: rgba(255, 255, 255, 0.04); }
.src-bars svg { width: 20px; height: 20px; color: var(--dim); }
.src-bars .web svg { color: var(--ice); }
.src-bars b { font-weight: 600; font-size: 15px; }
.src-bars .n { font: 800 18px/1 var(--display); font-stretch: 118%; font-variant-numeric: tabular-nums; }
.src-bars .bar { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.src-bars .bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #fff); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); transform-origin: 0 50%; transition: width 0.8s var(--ease); }
.src-bars .web .bar i { background: linear-gradient(90deg, rgba(139, 233, 255, 0.4), var(--ice)); box-shadow: 0 0 12px var(--ice); }

/* running for you (mini list of automations) */
#autos-mini { list-style: none; display: grid; padding: 4px 22px 18px; }
#autos-mini li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
#autos-mini li:last-child { border-bottom: 0; }
#autos-mini .on, #autos-mini .off { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--mono); }
#autos-mini .on { color: var(--ice); }
#autos-mini .on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
#autos-mini .off { color: var(--mute); }
.autos-mini { display: flex; flex-direction: column; }
.mini-next { margin-top: auto; display: grid; gap: 8px; padding: 6px 22px 22px; }
.mini-next:empty { display: none; }
.mini-next .tag { color: var(--ice); }
.mini-next .bub { max-width: none; align-self: stretch; font-size: 14px; padding: 10px 14px; }
.mini-next .b-meta { margin: 0; justify-content: flex-end; }

/* ---------- lead table ---------- */
.recent { margin-top: 0; }
.ltable { width: 100%; border-collapse: collapse; }
.ltable th { padding: 14px 14px 12px; text-align: left; white-space: nowrap; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); }
.ltable td { padding: 13px 14px; font-size: 15px; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ltable th:first-child, .ltable td:first-child { padding-left: 22px; }
.ltable th:last-child, .ltable td:last-child { padding-right: 22px; }
.ltable tbody tr:last-child td { border-bottom: 0; }
.ltable tbody tr { cursor: pointer; transition: background 0.2s; }
.ltable tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who > span:last-child { min-width: 0; }
.who-name { display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: 650 15.5px/1.25 var(--sans); color: var(--ink); text-align: left; }
.who-name:hover { color: var(--ice-hi); }
.who small { display: block; margin-top: 3px; font: 500 12px/1.2 var(--mono); color: var(--mute); }
.new-tag { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 6px; font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; color: var(--ice-ink); background: var(--ice); box-shadow: 0 0 12px rgba(139, 233, 255, 0.5); }
.c-car, .c-when { white-space: nowrap; color: var(--dim); }
.m-car { display: none; }
.src { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; color: var(--dim); }
.src svg { width: 17px; height: 17px; }
.src.web svg { color: var(--ice); }
.fu { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; }
.fu::before { content: ""; display: inline-block; width: 13px; height: 9px; margin-right: 8px; background: var(--ice); vertical-align: 1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M1 4l3 3 6-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M1 4l3 3 6-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fu.fu-wait::before { width: 9px; height: 9px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); -webkit-mask: none; mask: none; }
.fu.fu-live::before { width: 7px; height: 7px; margin: 0 9px 0 2px; border-radius: 50%; -webkit-mask: none; mask: none; box-shadow: 0 0 8px var(--ice); animation: blink 1.2s ease-in-out infinite; }
.fu.fu-off { color: var(--mute); }
.fu.fu-off::before { background: var(--mute); }
.c-fu small { display: block; margin-top: 3px; padding-left: 21px; font: 500 12px/1.3 var(--mono); color: var(--mute); white-space: nowrap; }
/* the new booking: lit from the left, a light sweeps across it as it lands */
.ltable tr.is-new { background: linear-gradient(90deg, rgba(139, 233, 255, 0.14), rgba(139, 233, 255, 0.03) 60%, transparent); }
.ltable tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--ice); }
.ltable tr.is-new:hover { background: linear-gradient(90deg, rgba(139, 233, 255, 0.2), rgba(139, 233, 255, 0.05) 60%, transparent); }
.ltable tr.arriving { animation: row-land 1.8s var(--ease) both; }
@keyframes row-land {
  0% { background: linear-gradient(100deg, transparent 0%, rgba(214, 249, 255, 0) 30%, rgba(214, 249, 255, 0.4) 34%, rgba(139, 233, 255, 0.16) 40%, transparent 60%) -100% 0 / 300% 100% no-repeat, linear-gradient(90deg, rgba(139, 233, 255, 0.14), transparent); }
  100% { background: linear-gradient(100deg, transparent 0%, rgba(214, 249, 255, 0) 30%, rgba(214, 249, 255, 0.4) 34%, rgba(139, 233, 255, 0.16) 40%, transparent 60%) 100% 0 / 300% 100% no-repeat, linear-gradient(90deg, rgba(139, 233, 255, 0.14), transparent); }
}
.ltable.compact td { padding-block: 11px; }

/* ---------- leads view ---------- */
.lead-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.chip b { font: 600 12px/1 var(--mono); opacity: 0.7; }
.chip[aria-pressed="true"] b { opacity: 0.85; }
.lt-search { width: min(360px, 100%); display: none; }
.table-panel { overflow: hidden; }
.empty { padding: 40px 22px; text-align: center; color: var(--dim); }
.link-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 600 inherit; color: var(--ice); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- calendar ---------- */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.cal-bar > b { font: 800 16px/1.2 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.03em; }
.cal-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12.5px/1 var(--mono); color: var(--dim); }
.cal-key span { display: inline-flex; align-items: center; gap: 8px; }
.cal-key i { width: 10px; height: 10px; border-radius: 3px; }
.k-done { background: rgba(243, 245, 247, 0.3); }
.k-bay { background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.k-booked { box-shadow: inset 0 0 0 1.5px var(--ice); }
.cal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cal-day { position: relative; display: grid; align-content: start; gap: 8px; min-height: 460px; padding: 12px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.is-today { background: linear-gradient(180deg, rgba(139, 233, 255, 0.075), rgba(139, 233, 255, 0.012) 55%); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.32); }
.cal-day.is-today::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 10px rgba(139, 233, 255, 0.9); }
.cal-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); }
.cal-h b { font: 800 14px/1.2 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.03em; }
.cal-day.is-today .cal-h b { color: var(--ice); }
.cal-h span { font: 500 12px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.cal-n { padding: 2px 6px 0; font: 500 11.5px/1.3 var(--mono); color: var(--dim); }
.ev { position: relative; overflow: hidden; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: #0d1013; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 3px 0 0 rgba(139, 233, 255, 0.55); transition: background 0.2s, box-shadow 0.2s, transform 0.3s var(--ease); }
.ev:hover { background: #12161a; transform: translateY(-1px); }
.ev img { grid-row: 1 / span 3; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; align-self: start; }
.ev time { font: 600 12px/1 var(--mono); color: var(--ice); }
.ev b { font-weight: 650; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev small { font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.ev.is-done { opacity: 0.55; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 3px 0 0 rgba(243, 245, 247, 0.3); }
.ev.is-done time { color: var(--dim); }
.ev.is-bay { background: linear-gradient(180deg, rgba(139, 233, 255, 0.14), rgba(139, 233, 255, 0.05)); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.45), inset 3px 0 0 var(--ice), 0 0 24px rgba(139, 233, 255, 0.12); }
.ev.is-new { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 26px rgba(139, 233, 255, 0.3); background: linear-gradient(180deg, rgba(139, 233, 255, 0.16), #0d1013); }
.ev .new-tag { position: absolute; top: 8px; right: 8px; margin: 0; }
.ev .job-prog { height: 2px; }
.ev.ping { animation: ping 1.6s var(--ease) 2; }
@keyframes ping { 0% { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 0 0 rgba(139, 233, 255, 0.6); } 70% { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 0 14px rgba(139, 233, 255, 0); } 100% { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 0 0 rgba(139, 233, 255, 0); } }
.cal-free { display: grid; place-items: center; min-height: 64px; padding: 10px; border-radius: 14px; border: 1px dashed rgba(243, 245, 247, 0.14); text-align: center; font: 500 12px/1.4 var(--mono); color: var(--mute); }
.cal-later { margin-top: 14px; font: 500 13px/1.5 var(--mono); color: var(--dim); }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); height: clamp(540px, calc(100svh - 150px), 820px); overflow: hidden; }
.threads { overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); padding: 10px; scrollbar-width: thin; scrollbar-color: #2b3036 transparent; }
#thread-list { list-style: none; display: grid; gap: 2px; }
.thread { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border: 0; border-radius: 15px; background: none; cursor: pointer; text-align: left; transition: background 0.2s, box-shadow 0.2s; }
.thread:hover { background: rgba(255, 255, 255, 0.035); }
.thread[aria-current="true"] { background: rgba(139, 233, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.22); }
.th-main { min-width: 0; display: grid; gap: 4px; }
.th-main b { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.th-main small { font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-meta { display: grid; justify-items: end; gap: 7px; align-self: start; padding-top: 3px; font: 500 11.5px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.th-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.thread.unread .th-main small { color: var(--ink); }
.convo { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.convo-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.convo-h .who-txt { min-width: 0; flex: 1; }
.convo-h b { display: block; font-weight: 650; font-size: 16px; }
.convo-h small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-back { display: none; flex: none; width: 44px; height: 44px; margin-left: -8px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; place-items: center; }
.convo-back svg { width: 22px; height: 22px; }
.convo-body { display: flex; flex-direction: column; gap: 8px; padding: 24px clamp(16px, 2vw, 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2b3036 transparent;
  background: radial-gradient(70% 40% at 50% 0%, rgba(206, 236, 255, 0.03), transparent 70%); }
.bub { position: relative; max-width: min(78%, 470px); padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.42; overflow-wrap: anywhere; }
.bub.them { align-self: flex-start; background: rgba(255, 255, 255, 0.075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); border-bottom-left-radius: 6px; }
.bub.auto { align-self: flex-end; color: var(--ice-ink); background: linear-gradient(180deg, #d4f8ff, var(--ice)); border-bottom-right-radius: 6px; box-shadow: 0 0 28px rgba(139, 233, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.bub.you { align-self: flex-end; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); border-bottom-right-radius: 6px; }
.bub.sched { align-self: flex-end; color: var(--dim); background: rgba(139, 233, 255, 0.03); border: 1px dashed rgba(139, 233, 255, 0.45); border-bottom-right-radius: 6px; }
.bub.is-off { opacity: 0.45; text-decoration: line-through; text-decoration-color: rgba(243, 245, 247, 0.3); }
.bub .ph { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px dashed rgba(139, 233, 255, 0.6); color: var(--ice); font: 600 13px/1.5 var(--mono); }
.bub.auto .lnk, .bub .lnk { text-decoration: underline; text-underline-offset: 3px; }
.b-meta { display: flex; align-items: center; gap: 6px; margin: -2px 4px 8px; font: 500 11.5px/1.3 var(--mono); color: var(--mute); }
.b-meta.r { align-self: flex-end; }
.b-meta svg { width: 13px; height: 13px; color: var(--ice); stroke-width: 2; }
.b-meta.auto-m { color: var(--ice); }
.note { align-self: center; margin: 6px 0 10px; padding: 7px 13px; border-radius: 999px; font: 500 11.5px/1.3 var(--mono); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.compose { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.compose input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 15.5px; color: var(--ink); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow 0.2s; }
.compose input:focus { box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 0 4px rgba(139, 233, 255, 0.1); }
.send { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ice-ink); background: linear-gradient(180deg, #c8f6ff, var(--ice)); box-shadow: 0 0 22px rgba(139, 233, 255, 0.3); transition: transform 0.3s var(--spring); }
.send svg { width: 20px; height: 20px; stroke-width: 2; }
.send:hover { transform: scale(1.06); }
.send:active { transform: scale(0.94); }

/* ---------- automations ---------- */
.autos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.autom { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 2vw, 28px); transition: box-shadow 0.4s; }
.autom.hero { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(24px, 3vw, 48px);
  background: radial-gradient(60% 120% at 100% 0%, rgba(139, 233, 255, 0.09), transparent 65%), var(--panel); }
.autom.hero .autom-h, .autom.hero .flow, .autom.hero .autom-foot { grid-column: 1; }
.autom.hero .bub { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding: 18px 22px; font-size: 17px; line-height: 1.5; border-radius: 26px 26px 8px 26px; }
.autom.hero h3 { font-size: clamp(24px, 2.2vw, 34px); }
.autom.is-on { box-shadow: var(--panel-edge), inset 0 0 0 1px rgba(139, 233, 255, 0.14), 0 30px 70px rgba(0, 0, 0, 0.32); }
.autom-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.autom-h .tag { display: block; margin-bottom: 10px; color: var(--ice); }
.autom.is-off .autom-h .tag { color: var(--mute); }
.autom h3 { font-size: clamp(19px, 1.55vw, 25px); }
.autom-h p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--dim); max-width: 30em; }
.switch { position: relative; flex: none; width: 60px; height: 34px; margin-top: 2px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: background 0.3s, box-shadow 0.3s; }
.switch::before { content: ""; position: absolute; inset: -6px -4px; } /* a bigger target for thumbs */
.switch i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #e9edf0, #aeb6bd); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 #fff; transition: transform 0.45s var(--spring), background 0.3s; }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #c8f6ff, var(--ice) 55%, #6ad8f2); box-shadow: 0 0 0 1px rgba(139, 233, 255, 0.6), 0 0 26px rgba(139, 233, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.switch[aria-checked="true"] i { transform: translateX(26px); background: linear-gradient(180deg, #fff, #eafcff); }
.flow { display: flex; align-items: center; gap: 10px; }
.flow-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; font: 500 12.5px/1.25 var(--mono); color: var(--ink); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--faint); min-width: 0; }
.flow-chip svg { width: 15px; height: 15px; flex: none; }
.flow-chip.out { color: var(--ice); background: rgba(139, 233, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.4); }
.flow-line { position: relative; flex: 1 1 24px; min-width: 24px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(139, 233, 255, 0.18); }
.flow-line i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, #fff, var(--ice), transparent); box-shadow: 0 0 8px var(--ice); animation: flow 2.2s linear infinite; }
@keyframes flow { to { left: 100%; } }
.autom.is-off .flow, .autom.is-off .bub { opacity: 0.38; }
.autom.is-off .flow-line { background: var(--faint); }
.autom.is-off .flow-line i { display: none; }
.autom .bub { max-width: none; align-self: auto; font-size: 15px; }
.autom .bub mark { padding: 0 5px; border-radius: 5px; color: var(--ice-ink); background: rgba(3, 22, 27, 0.14); box-shadow: inset 0 0 0 1px rgba(3, 22, 27, 0.25); font: 600 13px/1.4 var(--mono); }
.autom-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 12.5px/1.4 var(--mono); color: var(--dim); }
.autom-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); flex: none; }
.autom.is-off .autom-foot i { background: var(--mute); box-shadow: none; }
.autom.zap .flow-line i { animation-duration: 0.6s; }
.autom.zap .switch { animation: bump 0.6s var(--spring); }

/* ---------- the lead drawer (a <dialog>): from the right on desktop, from the bottom on phones ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(500px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(12, 14, 17, 0.97), rgba(7, 8, 10, 0.98)); box-shadow: -40px 0 110px rgba(0, 0, 0, 0.65), inset 1px 0 0 rgba(139, 233, 255, 0.22);
  transform: translateX(104%); transition: transform 0.55s var(--ease); scrollbar-width: thin; scrollbar-color: #2b3036 transparent; }
.drawer.in { transform: none; }
.drawer::backdrop { background: rgba(2, 3, 4, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.4s; }
.drawer.in::backdrop { opacity: 1; }
.drawer:focus-visible { outline: none; }
.d-media { position: relative; height: 210px; overflow: hidden; background: var(--char); }
.d-media img { width: 100%; height: 100%; object-fit: cover; }
.d-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 10, 0.35), rgba(7, 8, 10, 0.1) 35%, rgba(10, 12, 15, 0.97)); }
.d-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: rgba(4, 5, 6, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s, transform 0.3s var(--spring); }
.d-x svg { width: 20px; height: 20px; }
.d-x:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.d-tag { position: absolute; z-index: 2; top: 20px; left: 22px; }
.d-body { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: -64px; padding: 0 28px 30px; }
.d-name { font: 900 clamp(34px, 4vw, 48px)/0.92 var(--display); font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.d-sub { margin-top: 8px; font-size: 16.5px; color: var(--dim); }
.d-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.d-pills .new-tag { margin: 0; vertical-align: 0; padding: 6px 8px; }
.d-pills .src { height: 27px; padding: 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.d-grid > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.d-grid dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.d-grid dd { margin-top: 5px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.d-ask { padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: rgba(255, 255, 255, 0.06); font-size: 15.5px; line-height: 1.45; }
.d-ask small { display: block; margin-bottom: 4px; font: 500 11.5px/1.3 var(--mono); color: var(--mute); }
.d-k { font: 500 12.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--ice); text-transform: none; display: flex; align-items: center; gap: 12px; }
.d-k::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
/* the timeline: an LED rail lit through what has happened, dashed for what's scheduled */
.tl { position: relative; list-style: none; display: grid; }
.tl::before { content: ""; position: absolute; left: 12.5px; top: 12px; height: var(--end, 0px); width: 2px; margin-left: -1px; border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(139, 233, 255, 0.4) 0 4px, transparent 4px 8px); }
.tl::after { content: ""; position: absolute; left: 12.5px; top: 12px; height: var(--lit, 0px); width: 2px; margin-left: -1px; border-radius: 2px; background: linear-gradient(180deg, #fff, var(--ice)); box-shadow: 0 0 10px var(--ice), 0 0 22px rgba(139, 233, 255, 0.5);
  transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.1s var(--ease) 0.3s; }
.drawer.in .tl::after { transform: scaleY(1); }
.tl li { position: relative; display: grid; gap: 4px; padding: 0 0 22px 42px; }
.tl li:last-child { padding-bottom: 0; }
.tl .node { position: absolute; left: 0; top: 0; z-index: 1; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #0b0d10; box-shadow: inset 0 0 0 1.5px rgba(139, 233, 255, 0.55); color: var(--ice); }
.tl .node svg { width: 14px; height: 14px; stroke-width: 2.2; }
.tl li.done .node { background: var(--ice); color: var(--ice-ink); box-shadow: 0 0 0 4px rgba(139, 233, 255, 0.14), 0 0 16px var(--ice); }
.tl li.off .node { color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--faint); }
.tl li.wait .node { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(243, 245, 247, 0.4); }
.tl b { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.tl li.off b { color: var(--mute); }
.tl li > span:not(.node) { font: 500 12.5px/1.4 var(--mono); color: var(--dim); }
.tl .bub { margin-top: 8px; max-width: 100%; font-size: 14.5px; }
.tl li { opacity: 1; transform: none; }
html.motion .drawer .tl li { opacity: 0; transform: translateY(10px); transition: opacity 0.45s, transform 0.6s var(--ease); transition-delay: calc(0.18s + var(--i, 0) * 0.11s); }
html.motion .drawer.in .tl li { opacity: 1; transform: none; }
.d-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.d-actions .btn { padding: 0 16px; }
.d-actions .btn:only-child { grid-column: 1 / -1; }
.d-foot { font: 500 12px/1.5 var(--mono); color: var(--mute); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 120; bottom: 22px; right: 22px; align-content: end; display: grid; gap: 10px; width: min(390px, calc(100vw - 24px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 13px; padding: 14px 14px 14px 15px; border-radius: 20px; pointer-events: auto;
  background: rgba(20, 23, 27, 0.88); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 44px rgba(139, 233, 255, 0.14);
  opacity: 0; transform: translateY(-16px) scale(0.97); transition: opacity 0.35s, transform 0.55s var(--spring); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-8px) scale(0.98); transition: opacity 0.3s, transform 0.35s var(--ease); }
.toast::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1.5px; background: linear-gradient(90deg, transparent, #fff, var(--ice), transparent); box-shadow: 0 0 10px var(--ice); transform: scaleX(0); transition: transform 0.9s var(--ease) 0.15s; }
.toast.in::before { transform: scaleX(1); }
.toast .app-mark { width: 40px; height: 40px; }
.toast-txt { flex: 1; min-width: 0; }
.toast-txt b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
.toast-txt span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .btn { flex: none; }
.toast-x { flex: none; display: grid; place-items: center; width: 36px; height: 44px; margin: -8px -8px -8px -6px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--mute); cursor: pointer; transition: color 0.2s, background 0.2s; }
.toast-x svg { width: 16px; height: 16px; }
.toast-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.toast-x:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.toast.plain { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.6); }
.toast.plain::before { display: none; }

/* ---------- tab bar (phones and tablets) ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .app { --side: 236px; }
  .tb-clock { display: none; }
  .ltable .c-fu { display: none; }
  .ac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac:not(.try) .ac-media { display: none; }
  .ac-steps { padding-left: 0; }
  .kpi-n { font-size: clamp(38px, 3.6vw, 52px); }
}
@media (max-width: 1080px) {
  html[data-page="dashboard"] { --tb-h: 64px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .tb-brand { display: inline-flex; }
  .tb-search, .tb-av { display: none; }
  .lt-search { display: flex; }
  .topbar { gap: 10px; }
  .topbar::before { opacity: 1; }
  .work::after { top: var(--tb-h); }
  .work { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-day { min-height: 0; }
  .autos { grid-template-columns: minmax(0, 1fr); }
  .toasts { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); align-content: end; }
  .toast { transform: translateY(16px) scale(0.97); }
  .toast.out { transform: translateY(10px) scale(0.98); }
  [data-page="dashboard"] .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 24px;
    background: rgba(12, 14, 17, 0.84); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 56px; border-radius: 18px; color: var(--mute); font: 500 10.5px/1 var(--mono); letter-spacing: 0.02em; transition: color 0.2s, background 0.25s; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); background: rgba(139, 233, 255, 0.1); }
  .tabbar a[aria-current="page"] svg { color: var(--ice); filter: drop-shadow(0 0 6px rgba(139, 233, 255, 0.7)); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; margin: 0; font-size: 10.5px; }
}
@media (max-width: 900px) {
  .ltable .c-car { display: none; }
  .ltable .m-car { display: inline; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
  .threads { border-right: 0; overflow: visible; }
  .convo { display: none; }
  .inbox.show-convo .threads { display: none; }
  .inbox.show-convo .convo { display: grid; height: calc(100svh - var(--tb-h) - 112px); min-height: 420px; }
  .convo-back { display: grid; }
  .ac-steps { padding: 4px 22px 24px; }
  .ac:not(.try) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac:not(.try) .ac-media { display: block; grid-column: 1 / -1; min-height: 0; height: 150px; }
  .ac:not(.try) .ac-steps { padding: 22px 24px 26px 0; }
  .ac .ac-media::after { background: linear-gradient(to top, #0e1216, transparent 75%); }
  .ac-main { padding-top: 6px; }
  .ac.try { grid-template-columns: minmax(0, 1fr); }
  .ac.try .ac-media { min-height: 180px; }
  .ac.try .ac-media::after { background: linear-gradient(to top, #0e1216, transparent 70%); }
  .autom.hero { grid-template-columns: minmax(0, 1fr); }
  .autom.hero .bub { grid-column: 1; grid-row: auto; font-size: 15.5px; padding: 14px 17px; }
}
@media (max-width: 720px) {
  .concept-badge { display: none; }
  .concept-strip { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; height: 34px; margin: 0 calc(var(--gut) * -1); padding: 0 12px; font: 500 11.5px/1.2 var(--mono); color: var(--ice); white-space: nowrap; background: #0b1215; border-bottom: 1px solid rgba(139, 233, 255, 0.16); text-align: center; }
  .work::after { top: calc(var(--tb-h) + 34px); }
  .tb-site { margin-left: auto; padding: 0 12px; }
  .v-head { gap: 12px; padding: 26px 0 24px; }
  .dash-h { font-size: 8.4vw; }
  .v-lead { font-size: 16.5px; }
  .kpis { gap: 10px; }
  .kpi { padding: 16px 16px 18px; gap: 10px; }
  .kpi-n { font-size: 40px; }
  .kpi p { font-size: 13px; }
  .dots i { width: 7px; height: 7px; }
  .ov-side { grid-template-columns: minmax(0, 1fr); }
  .sent-list { padding: 4px 8px 12px; }
  .panel { border-radius: 20px; }
  .panel-h { padding: 18px 18px 6px; }
  .jobs { padding: 6px 10px 14px; }
  .jobs > li { grid-template-columns: 54px minmax(0, 1fr); }
  .job-t { font-size: 11.5px; }
  .job-card { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 10px; }
  .job-card img { width: 44px; height: 44px; grid-row: 1 / span 2; }
  .job-card .st { justify-self: start; grid-column: 2; height: 24px; font-size: 12px; }
  .job-main b { font-size: 15px; }
  .job-main small { font-size: 13px; white-space: normal; }
  .ac-main { padding: 24px 22px 10px; }
  .ac:not(.try) { grid-template-columns: minmax(0, 1fr); }
  .ac:not(.try) .ac-steps { padding: 4px 22px 24px; }
  .ac .cta-row .btn { flex: 1 1 auto; }
  /* tables become cards */
  .ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ltable, .ltable tbody { display: block; }
  .ltable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who st" "svc svc" "when src"; gap: 10px 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .ltable tbody tr:last-child { border-bottom: 0; }
  .ltable td { display: block; padding: 0 !important; border: 0; min-width: 0; }
  .ltable .c-who { grid-area: who; }
  .ltable .c-st { grid-area: st; align-self: start; }
  .ltable .c-svc { grid-area: svc; padding-left: 50px !important; font-size: 14.5px; color: var(--dim); }
  .ltable .c-when { grid-area: when; padding-left: 50px !important; font-size: 13.5px; }
  .ltable .c-src { grid-area: src; justify-self: end; }
  .ltable .c-car, .ltable .c-fu { display: none; }
  .ltable tr.is-new { box-shadow: inset 3px 0 0 var(--ice); }
  .ltable tr.is-new td:first-child { box-shadow: none; }
  .src { font-size: 13px; }
  .lead-tools { gap: 12px; }
  .lead-tools .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; width: calc(100% + 2 * var(--gut)); }
  .lead-tools .chips::-webkit-scrollbar { display: none; }
  .lead-tools .chip { flex: none; padding: 0 15px; font-size: 14px; }
  .lt-search { width: 100%; }
  .cal { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cal-h b { font-size: 15px; }
  .ev img { width: 40px; height: 40px; }
  .ev { grid-template-columns: 40px minmax(0, 1fr); }
  .autos { gap: 10px; }
  .flow { flex-wrap: wrap; }
  .flow-line { flex-basis: 100%; order: 1; display: none; }
  .bub { max-width: 86%; font-size: 15px; }
  .d-body { padding: 0 20px 26px; gap: 16px; }
  .d-media { height: 170px; }
  .drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: 26px 26px 0 0; transform: translateY(104%); box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(139, 233, 255, 0.3); }
  .drawer.in { transform: none; }
  .drawer .d-media { border-radius: 26px 26px 0 0; }
  .toasts { right: 12px; left: 12px; width: auto; }
  .toast { gap: 11px; padding: 12px 12px 12px 13px; }
  .toast .app-mark { width: 34px; height: 34px; }
  .toast-txt b { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .tb-site span { display: none; }
  .tb-site { width: 44px; padding: 0; justify-content: center; }
  .kpi-n { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line i { animation: none; left: 30%; }
  .side-led, .switch i, .drawer, .toast { transition: none !important; }
}
