/* ==========================================================
   i-Grow Dashboard — premium dark
   ========================================================== */
:root {
  --bg: #08080a; --bg-2: #0e0e11; --card: #121215; --card-2: #17171b; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f5f5f7; --dim: #a1a1a6; --faint: #6e6e73;
  --blue: #0a84ff; --cyan: #40c8e0; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --purple: #bf5af2; --yellow: #ffd60a;
  --grad: linear-gradient(120deg, #30d158, #40c8e0 45%, #0a84ff);
  --radius: 18px; --side: 248px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-orb svg, svg.sprout { stroke: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
::selection { background: rgba(64,200,224,.35); }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 12px; font-weight: 600; font-size: 13.5px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: #1e1e23; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { color: #fff; background: linear-gradient(135deg, #0a84ff, #0060df); box-shadow: 0 10px 24px -12px rgba(10,132,255,.9); }
.btn.primary:hover { background: linear-gradient(135deg, #2b95ff, #0a6cf0); }
.btn.danger { color: #ff6961; }
.btn.good { color: var(--green); }
.btn.warn { color: var(--orange); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--dim); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--card-2); color: var(--text); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--dim); }
.input, .field input, .field select, .field textarea { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .2s; }
.field textarea, textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px rgba(64,200,224,.7), 0 0 0 3px rgba(64,200,224,.15); }
input[type="time"]::-webkit-calendar-picker-indicator, input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--dim); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { color: var(--text); background: #26262c; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--faint); }
.search input { padding-left: 34px; width: 240px; }

/* ---------- login ---------- */
.login-page { display: grid; min-height: 100%; background: radial-gradient(70% 60% at 80% 0%, rgba(10,132,255,.18), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(48,209,88,.12), transparent 60%), var(--bg); }
.login { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; padding: 34px 28px 28px; border-radius: 26px; background: rgba(18,18,21,.85); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.login-card h1 { font-size: 22px; }
.login-card p { color: var(--dim); }
.login-card .field { width: 100%; text-align: left; }
.login-err { min-height: 18px; color: #ff6961; font-size: 13px; }
.brand-orb { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: 0 0 40px -8px rgba(64,200,224,.6); }
.brand-orb::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.brand-orb svg { width: 28px; height: 28px; }
.brand-orb.sm { width: 36px; height: 36px; box-shadow: none; }
.brand-orb.sm svg { width: 20px; height: 20px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #0c0c0f, #08080a); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; font-size: 11.5px; color: var(--faint); }
.nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--dim); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav a.on { color: var(--text); background: linear-gradient(90deg, rgba(10,132,255,.18), rgba(64,200,224,.06)); box-shadow: inset 0 0 0 1px rgba(64,200,224,.18); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav a.on svg { color: var(--cyan); }
.nav-badge[hidden] { display: none; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-style: normal; color: #000; background: var(--grad); }
.side-foot { margin-top: auto; display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 12px; color: var(--faint); font-weight: 500; text-align: left; width: 100%; }
.side-link:hover { color: var(--text); background: rgba(255,255,255,.04); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: rgba(8,8,10,.78); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.menu-btn { display: none; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { font-size: 21px; font-weight: 650; }
.top-title p { font-size: 12.5px; color: var(--faint); text-transform: capitalize; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--green); background: rgba(48,209,88,.1); box-shadow: inset 0 0 0 1px rgba(48,209,88,.25); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48,209,88,0); } }
.demo-note { margin: 14px 28px 0; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--orange); background: rgba(255,159,10,.08); box-shadow: inset 0 0 0 1px rgba(255,159,10,.25); }
.view { padding: 24px 28px 60px; outline: none; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.g-2 { grid-template-columns: 1.6fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2e { grid-template-columns: 1fr 1fr; }
.card { position: relative; padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), #0f0f12); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 600; }
.card-h .muted { font-size: 12px; }
.card-h a { font-size: 12.5px; font-weight: 600; color: var(--cyan); }
.kpi { display: grid; gap: 4px; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 12.5px; font-weight: 500; }
.kpi-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, rgba(48,209,88,.35), rgba(10,132,255,.5)); }
.kpi-ic svg { width: 15px; height: 15px; }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); }
.kpi-foot > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.delta { white-space: nowrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.delta.up { color: var(--green); background: rgba(48,209,88,.12); }
.delta.down { color: #ff6961; background: rgba(255,69,58,.12); }
.delta.flat { color: var(--dim); background: rgba(255,255,255,.06); }
.spark { width: 96px; height: 32px; }
.spark path { stroke-width: 2; }
.empty { display: grid; place-items: center; gap: 6px; padding: 28px 10px; text-align: center; color: var(--faint); font-size: 13px; }

/* rows (lists inside cards) */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); } /* a long name or email is cut with «…», it never widens the list */
.row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; transition: background .2s; }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row:hover { background: rgba(255,255,255,.03); }
.row.click { cursor: pointer; }
.row-time { flex: none; width: 54px; text-align: center; }
.row-time b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.row-time small { font-size: 11px; color: var(--faint); text-transform: capitalize; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(140deg, #2c2c33, #1a1a1f); box-shadow: inset 0 0 0 1px var(--line-2); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.blue { color: #64b5ff; background: rgba(10,132,255,.14); }
.pill.green { color: var(--green); background: rgba(48,209,88,.13); }
.pill.orange { color: var(--orange); background: rgba(255,159,10,.13); }
.pill.grey { color: var(--dim); background: rgba(255,255,255,.07); }
.pill.purple { color: #d79bff; background: rgba(191,90,242,.15); }
.pill.red { color: #ff6961; background: rgba(255,69,58,.13); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--dim); background: rgba(255,255,255,.06); }
.tag svg { width: 12px; height: 12px; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; stroke: none; }
.chart .gridline { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.chart .axis { font-size: 10.5px; fill: var(--faint); stroke: none; font-family: var(--font); }
.chart .hover-line { stroke: rgba(255,255,255,.25); stroke-dasharray: 3 3; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 12px; font-size: 12px; background: rgba(24,24,28,.95); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -10px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translate(-50%, calc(-100% - 12px)); }
.tip b { display: block; margin-bottom: 4px; text-transform: capitalize; }
.tip span { display: flex; align-items: center; gap: 7px; color: var(--dim); }
.tip span i { width: 8px; height: 8px; border-radius: 3px; }
.tip span em { margin-left: auto; font-style: normal; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.hbar i { grid-column: 1 / -1; height: 7px; border-radius: 7px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar i s { display: block; height: 100%; border-radius: 7px; background: var(--grad); transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 132px; height: 132px; flex: none; }
.donut circle { fill: none; stroke-width: 16; }
.donut text { fill: var(--text); stroke: none; font-family: var(--font); }
.funnel { display: grid; gap: 10px; }
.funnel-step { display: grid; gap: 6px; }
.funnel-step div { display: flex; justify-content: space-between; font-size: 13px; }
.funnel-step i { display: block; height: 34px; border-radius: 10px; background: linear-gradient(90deg, rgba(10,132,255,.55), rgba(64,200,224,.35)); box-shadow: inset 0 0 0 1px rgba(64,200,224,.35); transform-origin: left; animation: grow 1s var(--ease) both; }
.funnel-step:nth-child(2) i { background: linear-gradient(90deg, rgba(64,200,224,.5), rgba(48,209,88,.3)); }
.funnel-step:nth-child(3) i { background: linear-gradient(90deg, rgba(48,209,88,.6), rgba(48,209,88,.3)); }
.heat { display: grid; grid-template-columns: 30px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; min-width: 0; font-size: 10.5px; color: var(--faint); }
.heat span { display: grid; place-items: center; }
.heat i { aspect-ratio: 1.6; border-radius: 5px; background: rgba(64,200,224,var(--a)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }

/* ---------- tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; padding: 11px 14px; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; background: #101013; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.03); }
td .sub { display: block; font-size: 12px; color: var(--faint); }
.status-select { height: 28px; padding: 0 8px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- calendar ---------- */
.calx { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.calx-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.calx-main { min-width: 0; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn.sm svg { width: 16px; height: 16px; }

/* mini month */
.mini-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mini-h b { font-size: 14.5px; text-transform: capitalize; }
.mini-h div { display: flex; gap: 2px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-wd { display: grid; place-items: center; height: 24px; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.mini-d { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: 36px; border-radius: 10px; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .15s; }
.mini-d:hover { background: rgba(255,255,255,.06); }
.mini-d i { display: flex; gap: 2px; height: 4px; }
.mini-d i s { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.mini-d.out { color: var(--faint); opacity: .45; }
.mini-d.closed span { color: var(--faint); }
.mini-d.sel { background: rgba(10,132,255,.14); border-radius: 0; }
.mini-d.sel:nth-child(7n + 1) { border-radius: 10px 0 0 10px; }
.mini-d.sel:nth-child(7n) { border-radius: 0 10px 10px 0; }
.mini-d.today span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #0060df); }

/* side summary */
.side-sum h4 { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--dim); }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-grid div { display: grid; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.sum-grid b { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-grid span { font-size: 11.5px; color: var(--faint); }
.occ { display: grid; gap: 7px; margin: 14px 0 12px; }
.occ div { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.occ i { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.occ i s { display: block; height: 100%; border-radius: 8px; background: var(--grad); animation: grow .9s var(--ease) both; transform-origin: left; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--dim); }
.sum-list li { display: flex; align-items: center; gap: 9px; }
.sum-list b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.blue { background: #0a84ff; } .dot.green { background: var(--green); } .dot.orange { background: var(--orange); } .dot.grey { background: #6e6e73; }
.side-tip { display: flex; gap: 10px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.side-tip svg { color: var(--cyan); margin-top: 2px; }
.side-tip b { color: var(--text); font-weight: 600; }

/* toolbar */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title { margin-right: auto; display: grid; }
.cal-title h2 { font-size: 20px; font-weight: 650; text-transform: capitalize; }
.cal-title span { font-size: 12.5px; color: var(--faint); text-transform: capitalize; }
.btn.on { color: var(--text); background: #26262c; box-shadow: inset 0 0 0 1px var(--line-2); }

/* grid */
.cal { position: relative; overflow: auto; max-height: calc(100vh - 196px); border-radius: 20px; background: linear-gradient(180deg, #111114, #0d0d10); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0,0,0,.9); }
.cal-grid { display: grid; }
.cal.is-day .cal-grid { min-width: 0; }
.cal-head { position: sticky; top: 0; z-index: 6; display: grid; justify-items: center; gap: 1px; padding: 12px 4px 10px; background: rgba(17,17,20,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.cal-head:hover { background: #18181d; }
.cal-head small { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.cal-head b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.cal-head em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.cal-head em.has { color: #7cc4ff; font-weight: 600; }
.cal-head.today small { color: #64b5ff; }
.cal-head.today b { color: #fff; background: linear-gradient(135deg, #0a84ff, #0060df); box-shadow: 0 8px 20px -8px rgba(10,132,255,.95); }
.cal-head.closed b, .cal-head.closed small { color: var(--faint); }
.cal-head.today.closed b { color: #fff; }
.cal-corner { position: sticky; top: 0; left: 0; z-index: 7; background: rgba(17,17,20,.96); border-bottom: 1px solid var(--line); }
.cal-times { position: sticky; left: 0; z-index: 5; background: #0f0f12; border-right: 1px solid var(--line); }
.cal-times span { display: block; height: var(--h); padding-right: 10px; font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: right; transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.cal-times span.hr { color: #8e8e93; }
.cal-times span:first-child { transform: translateY(4px); }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: linear-gradient(180deg, rgba(10,132,255,.06), rgba(10,132,255,.02)); }
.cal-slot { position: relative; display: block; width: 100%; height: var(--h); border-top: 1px dashed rgba(255,255,255,.04); transition: background .15s; }
.cal-slot.hour { border-top: 1px solid rgba(255,255,255,.08); }
.cal-slot.off, .cal-slot.taken { cursor: default; }
.cal-slot.free:hover { background: rgba(10,132,255,.1); box-shadow: inset 0 0 0 1px rgba(10,132,255,.4); border-radius: 10px; }
.cal-slot.free:hover::after { content: "+ " attr(data-time); position: absolute; inset: 0; display: grid; place-items: center; color: #7cc4ff; font-size: 12.5px; font-weight: 700; }
.cal-gap { position: absolute; left: 0; right: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 8px, transparent 8px 16px); }
.cal-gap span { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--faint); background: rgba(8,8,10,.8); box-shadow: inset 0 0 0 1px var(--line); }

.cal-ev { position: absolute; left: 5px; right: 5px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px 6px 12px; border-radius: 12px; overflow: hidden; text-align: left; cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s, filter .2s; }
.cal-ev:hover { transform: translateY(-1px) scale(1.01); filter: brightness(1.12); z-index: 4; }
.cal-ev .ev-time { max-width: 100%; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev b { max-width: 100%; font-size: 13.5px; font-weight: 650; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .ev-meta { display: flex; align-items: center; gap: 5px; max-width: 100%; font-size: 11.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .ev-meta svg { width: 13px; height: 13px; }
.cal-ev.short { justify-content: center; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.cal-ev.short .ev-meta { display: none; }
.cal-ev.wide { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 8px 14px; }
.cal-ev.wide b { font-size: 14.5px; }
.cal-ev.wide .ev-meta { flex-basis: 100%; }
.cal-ev.confirmed { color: #eaf4ff; background: linear-gradient(135deg, rgba(10,132,255,.42), rgba(10,99,223,.26)); box-shadow: inset 4px 0 0 #0a84ff, inset 0 0 0 1px rgba(100,181,255,.35), 0 8px 18px -12px rgba(10,132,255,.9); }
.cal-ev.confirmed .ev-time { color: #9fd0ff; }
.cal-ev.completed { color: #e8fbee; background: linear-gradient(135deg, rgba(48,209,88,.3), rgba(48,209,88,.14)); box-shadow: inset 4px 0 0 #30d158, inset 0 0 0 1px rgba(48,209,88,.3); }
.cal-ev.completed .ev-time { color: #86efa4; }
.cal-ev.no_show { color: #fff3e0; background: linear-gradient(135deg, rgba(255,159,10,.3), rgba(255,159,10,.13)); box-shadow: inset 4px 0 0 #ff9f0a, inset 0 0 0 1px rgba(255,159,10,.3); }
.cal-ev.no_show .ev-time { color: #ffc56b; }
.cal-ev.cancelled { color: var(--faint); background: rgba(255,255,255,.035); box-shadow: inset 4px 0 0 #48484d, inset 0 0 0 1px var(--line); }
.cal-ev.cancelled b { text-decoration: line-through; }
.cal-ev.new { animation: evNew 1.6s var(--ease) 2; }
@keyframes evNew { 50% { box-shadow: inset 4px 0 0 #0a84ff, 0 0 0 4px rgba(64,200,224,.45); } }
.cal-block { position: absolute; left: 5px; right: 5px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 8px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: #ffcc66; text-align: center; cursor: pointer; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255,159,10,.15) 0 8px, rgba(255,159,10,.05) 8px 16px); box-shadow: inset 0 0 0 1px rgba(255,159,10,.35); }
.cal-block svg { width: 14px; height: 14px; }
.cal-block:hover { filter: brightness(1.2); }
.cal-now { position: absolute; left: 0; right: 0; z-index: 5; height: 2px; background: #ff453a; box-shadow: 0 0 10px rgba(255,69,58,.6); pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ff453a; }
.cal-now span { position: absolute; left: 8px; top: -10px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; color: #fff; background: #ff453a; font-variant-numeric: tabular-nums; }

/* ---------- day tables (calendar list + bookings page) ---------- */
.day-list { display: grid; gap: 14px; }
.day-card { border-radius: 20px; background: linear-gradient(180deg, var(--card), #0f0f12); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.day-h { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.day-card.empty-day .day-h { border-bottom: 0; opacity: .7; }
.day-badge { flex: none; width: 50px; height: 54px; border-radius: 14px; display: grid; place-items: center; align-content: center; background: #18181d; box-shadow: inset 0 0 0 1px var(--line-2); }
.day-badge small { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.day-badge b { font-size: 21px; font-weight: 700; line-height: 1.05; }
.day-h.today .day-badge { background: linear-gradient(135deg, #0a84ff, #0060df); box-shadow: 0 10px 22px -10px rgba(10,132,255,.9); }
.day-h.today .day-badge small { color: rgba(255,255,255,.8); }
.day-title { flex: 1; min-width: 0; }
.day-title h3 { font-size: 16px; font-weight: 650; text-transform: capitalize; }
.day-title span { font-size: 12.5px; color: var(--faint); }
.day-h.today .day-title span { color: #64b5ff; font-weight: 600; }
.day-count { flex: none; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--dim); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.day-table { overflow-x: auto; }
.day-table table { min-width: 860px; }
.day-table.compact table { min-width: 560px; }
.day-table th { background: transparent; position: static; padding: 10px 18px; }
.day-table td { padding: 12px 18px; }
.day-table tr.st-cancelled td { opacity: .5; }
.day-table tr.st-cancelled b { text-decoration: line-through; }
.t-time b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.t-time span { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.link { color: #64b5ff; }
.link:hover { text-decoration: underline; }
.tag svg { width: 13px; height: 13px; }
.sum-strip { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.sum-strip > div { display: grid; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sum-strip b { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-strip span { font-size: 12px; color: var(--faint); }

/* ---------- popover, drawer, modal, toasts ---------- */
.pop { position: fixed; z-index: 60; min-width: 220px; padding: 6px; border-radius: 14px; background: rgba(24,24,28,.97); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -16px rgba(0,0,0,.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: popIn .2s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop h4 { padding: 8px 10px 6px; font-size: 12px; color: var(--faint); font-weight: 600; text-transform: capitalize; }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 13.5px; font-weight: 500; }
.pop button:hover { background: rgba(255,255,255,.07); }
.pop button svg { width: 16px; height: 16px; color: var(--dim); }
.pop button.danger, .pop button.danger svg { color: #ff6961; }

.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-bg, .modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #0f0f12; box-shadow: -1px 0 0 var(--line), -30px 0 60px -20px rgba(0,0,0,.8); animation: drawerIn .4s var(--ease); overflow-y: auto; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.d-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0f0f12; z-index: 2; }
.d-head h3 { flex: 1; font-size: 16px; }
.d-body { display: grid; gap: 18px; padding: 20px; }
.d-when { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(10,132,255,.18), rgba(48,209,88,.06)); box-shadow: inset 0 0 0 1px rgba(64,200,224,.22); }
.d-when b { display: block; font-size: 22px; letter-spacing: -0.03em; text-transform: capitalize; }
.d-when span { color: var(--dim); font-size: 13px; }
.d-list { display: grid; gap: 2px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.d-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.d-item + .d-item { border-top: 1px solid var(--line); }
.d-item > svg { color: var(--faint); }
.d-item span { color: var(--faint); min-width: 92px; font-size: 12.5px; }
.d-item a { color: #64b5ff; }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .drawer[hidden], .pop[hidden], .demo-note[hidden] { display: none; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: #121215; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -20px rgba(0,0,0,.9); animation: popIn .3s var(--ease); }
.modal-card h3 { font-size: 18px; }
.modal-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.form-err { min-height: 18px; color: #ff6961; font-size: 12.5px; }
.times-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.times-pick button { height: 34px; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.times-pick button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #0a84ff, #0060df); box-shadow: none; }
.times-pick button:disabled { opacity: .25; text-decoration: line-through; cursor: default; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px; padding: 12px 14px; border-radius: 14px; font-size: 13px; background: rgba(28,28,32,.97); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -14px rgba(0,0,0,.8); animation: toastIn .45s var(--ease); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.toast i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, rgba(48,209,88,.6), rgba(10,132,255,.7)); }
.toast i svg { width: 15px; height: 15px; }
.toast.err i { background: rgba(255,69,58,.5); }

/* ---------- chats ---------- */
.chats { display: grid; grid-template-columns: 340px 1fr; gap: 16px; height: calc(100vh - 170px); }
.chat-list { overflow-y: auto; padding: 6px; }
.chat-item { display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.chat-item:hover { background: rgba(255,255,255,.04); }
.chat-item.on { background: rgba(10,132,255,.14); box-shadow: inset 0 0 0 1px rgba(64,200,224,.25); }
.chat-item div { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.chat-item b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-view { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.chat-view-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-view-h h3 { margin-right: auto; font-size: 15px; }
.transcript { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 18px; }
.bubble { max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.bubble small { display: block; margin-top: 4px; font-size: 10.5px; opacity: .6; }
.bubble.user { justify-self: end; color: #fff; background: linear-gradient(135deg, #0a84ff, #0060df); border-bottom-right-radius: 5px; }
.bubble.bot { justify-self: start; background: rgba(255,255,255,.07); border-bottom-left-radius: 5px; }
.bubble .form-tag { display: inline-flex; margin-top: 6px; }

.bubble.agent { justify-self: end; color: #fff; background: linear-gradient(135deg, #1f9d55, #0f7a6c); border-bottom-right-radius: 5px; }
.chat-view:not(#live-view) .bubble.agent { justify-self: start; border-radius: 16px 16px 16px 5px; }
.bubble.note { justify-self: center; max-width: 90%; padding: 6px 12px; border-radius: 99px; font-size: 12px; color: var(--dim); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }

/* ---------- chats: who is in the chatbot right now ---------- */
.nav-badge.green { color: #000; background: var(--green); }
.dot-live { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--green); vertical-align: 1px; animation: live 2s infinite; }
.live-tag { color: var(--green); background: rgba(48,209,88,.12); }
.live-tag .dot-live { width: 6px; height: 6px; margin-right: 5px; vertical-align: 0; }
.chat-item.online:not(.on) { box-shadow: inset 2px 0 0 var(--green); }
.chat-now { display: grid; gap: 4px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(48,209,88,.06); box-shadow: inset 0 0 0 1px rgba(48,209,88,.2); }
.chat-now > span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.chat-now-i { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.chat-now-i i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
.chat-now-i small { margin-left: auto; color: var(--faint); font-size: 11.5px; }

/* ---------- live chat ---------- */
.live-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; font-size: 13px; color: var(--dim); background: linear-gradient(90deg, rgba(10,132,255,.1), rgba(48,209,88,.05)); box-shadow: inset 0 0 0 1px rgba(64,200,224,.2); }
.live-hint > svg { flex: none; width: 20px; height: 20px; color: var(--cyan); }
.live-hint b { color: var(--text); }
.grow { flex: 1; min-width: 200px; }
.live-hint + .live-wrap { height: calc(100vh - 250px); min-height: 420px; }
.live-list-h { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 8px 10px; font-size: 13px; }
.live-item div .pill { height: 20px; font-size: 10.5px; }
.live-item .nav-badge { height: 18px; min-width: 18px; font-size: 10.5px; }
.live-last { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-wait { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--orange); vertical-align: 1px; animation: live 1.4s infinite; }
.bubble.visitor { justify-self: start; background: rgba(255,255,255,.08); border-bottom-left-radius: 5px; }
.bubble.hist { opacity: .5; font-size: 12.5px; }
.bubble.hist.agent { background: rgba(255,255,255,.05); color: var(--text); }
.hist-sep { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--cyan); }
.hist-sep::before, .hist-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(64,200,224,.35), transparent); }
.live-quick { display: flex; gap: 6px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.live-quick::-webkit-scrollbar { display: none; }
.chip-q { flex: none; max-width: 260px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; color: var(--dim); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s, box-shadow .2s; }
.chip-q:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(64,200,224,.4); }
.live-compose { display: flex; align-items: flex-end; gap: 10px; padding: 10px 14px 14px; }
.live-compose textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 11px 14px; border: 0; border-radius: 14px; resize: none; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font: inherit; line-height: 1.45; }
.live-compose textarea:focus { box-shadow: inset 0 0 0 1px rgba(64,200,224,.55), 0 0 0 4px rgba(64,200,224,.1); }
.live-compose .btn { width: 42px; height: 42px; padding: 0; border-radius: 14px; }
.live-compose .btn svg { width: 18px; height: 18px; }
.live-closed { padding: 14px; text-align: center; font-size: 12.5px; border-top: 1px solid var(--line); }
.empty-ic { width: 30px; height: 30px; color: var(--faint); }
.nav-badge.hot { color: #000; background: var(--orange); animation: hot 1.6s infinite; }
@keyframes hot { 50% { box-shadow: 0 0 0 5px rgba(255,159,10,.18); } }
.toast a { color: inherit; }
.toast a b { color: var(--cyan); }

/* ---------- chatbot switch ---------- */
.bot-switch { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--green); background: rgba(48,209,88,.1); box-shadow: inset 0 0 0 1px rgba(48,209,88,.3); transition: background .2s, color .2s, box-shadow .2s; }
.bot-switch:hover { background: rgba(48,209,88,.18); }
.bot-switch i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bot-switch.off { color: #ff6961; background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 1px rgba(255,69,58,.4); animation: hot 1.6s infinite; }
.bot-switch.off i { border-radius: 2px; }
.bot-ic { color: var(--cyan); }
.bot-main { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: rgba(48,209,88,.07); box-shadow: inset 0 0 0 1px rgba(48,209,88,.22); }
.bot-main.off { background: rgba(255,69,58,.08); box-shadow: inset 0 0 0 1px rgba(255,69,58,.3); }
.bot-main b { display: block; font-size: 15px; }
.bot-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.bot-help { margin: 14px 0; font-size: 12.5px; line-height: 1.55; }
.bot-help code, .modal-card code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--text); font-size: 12px; }
.bot-log { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.bot-log > span { margin-bottom: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.bot-log div { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 13px; }
.bot-log div i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bot-log div i.on { background: var(--green); }
.bot-log div i.off { background: var(--red); }
.bot-log div small { color: var(--faint); font-size: 12px; }
.bot-log div time { margin-left: auto; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .bot-switch span { display: none; } .bot-switch { padding: 0 10px; } .bot-switch::after { content: "Bot"; } }

/* ---------- emails ---------- */
.mail-intro { margin: -4px 0 14px; font-size: 12.5px; }
.mail-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 980px; }
.mail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border-left: 3px solid var(--orange); }
.mail.done { border-left-color: rgba(48,209,88,.5); }
.mail-h { display: flex; align-items: center; gap: 12px; }
.mail-addr { display: block; font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-addr:hover { color: var(--cyan); }
.mail-h small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.mail-q { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.mail-q span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.mail-q p { font-size: 13.5px; color: var(--text); }
.mail-q p::before { content: "“"; color: var(--cyan); margin-right: 2px; }
.mail-q p::after { content: "”"; color: var(--cyan); margin-left: 1px; }
.mail-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--dim); }
.mail-note svg { width: 14px; height: 14px; margin-top: 2px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mail.done .mail-actions .primary { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Telegram card ---------- */
.h-ic { width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; color: #2aabee; }
.tg-steps { display: grid; gap: 10px; margin: 0 0 14px; padding-left: 22px; font-size: 13px; color: var(--dim); }
.tg-steps li::marker { color: var(--cyan); font-weight: 700; }
.tg-steps a, .tg-steps b { color: var(--text); }
.tg-steps code, .tg-link code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--text); font-size: 12px; }
.tg-form { display: flex; gap: 10px; }
.tg-form .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tg-step-now { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text); background: rgba(255,159,10,.08); box-shadow: inset 0 0 0 1px rgba(255,159,10,.25); }
.tg-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.tg-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.spin { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--cyan); vertical-align: -1px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { color: var(--cyan); font-size: 12px; font-weight: 600; }
.tg-ok { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); }
.tg-ok .avatar { color: #2aabee; }
.tg-ok .avatar svg { width: 17px; height: 17px; }
.tg-opts { display: grid; gap: 4px; padding: 10px 0; }
.tg-opt { padding: 8px 2px; }
.tg-opt span b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }
.tg-opt span small { display: block; font-size: 12px; color: var(--faint); }
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- settings ---------- */
.hours { display: grid; gap: 2px; }
.hours-row { display: grid; grid-template-columns: 130px 110px 1fr; align-items: center; gap: 14px; padding: 12px 6px; }
.hours-row + .hours-row { border-top: 1px solid var(--line); }
.hours-row b { font-size: 14px; }
.ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line-2); }
.range input { width: 92px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; outline: none; font-variant-numeric: tabular-nums; }
.range button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); }
.range button:hover { color: #ff6961; background: rgba(255,69,58,.1); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--dim); }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 40px; height: 24px; border-radius: 99px; background: #2c2c31; transition: background .25s; position: relative; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(16px); }
.closed-label { color: var(--faint); font-size: 13px; }
.set-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info { display: grid; gap: 8px; font-size: 13px; color: var(--dim); }
.info code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--text); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .calx { grid-template-columns: 1fr; }
  .calx-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); order: 2; }
  .sum-strip { grid-template-columns: repeat(3, 1fr); }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cal-grid { min-width: 780px; }
  .cal.is-day .cal-grid { min-width: 0; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 45; left: 0; width: var(--side); transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: 30px 0 60px -20px rgba(0,0,0,.8); }
  .app.menu-open .side { transform: none; }
  .menu-btn { display: grid; }
  .top { padding: 12px 16px; }
  .view { padding: 18px 16px 50px; }
  .demo-note { margin: 12px 16px 0; }
  .live { display: none; }
  .top-actions .btn span { display: none; }
  .g-2e { grid-template-columns: 1fr; }
  .chats { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 300px; }
  .live-wrap, .live-hint + .live-wrap { height: auto; min-height: 0; }
  .live-wrap .chat-list { max-height: 210px; }
  .live-wrap .chat-view { height: calc(100vh - 150px); height: calc(100dvh - 150px); }
  .tg-form { flex-direction: column; }
  .hours-row { grid-template-columns: 1fr auto; }
  .hours-row .ranges { grid-column: 1 / -1; }
  .search input { width: 100%; }
  .toolbar .search { flex: 1; }
  .cal { max-height: calc(100vh - 170px); }
  .side-tip { display: none; }
  .sum-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .set-grid { grid-template-columns: 1fr; }
  .d-actions { grid-template-columns: 1fr; }
  .modal-card .row2 { grid-template-columns: 1fr; }
}
/* phones: each appointment of a day table becomes a compact card */
@media (max-width: 760px) {
  .day-table table, .day-table tbody, .day-table tr, .day-table td { display: block; }
  .day-table thead { display: none; }
  .day-table table, .day-table.compact table { min-width: 0; }
  .day-table tr { display: grid; grid-template-columns: 58px 1fr auto; gap: 6px 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .day-table tr:last-child { border-bottom: 0; }
  .day-table td { padding: 0; border: 0; }
  .day-table .c-time { grid-row: 1 / span 2; align-self: start; }
  .day-table .c-who { grid-column: 2; min-width: 0; }
  .day-table .c-who .avatar { display: none; }
  .day-table .c-status { grid-column: 3; grid-row: 1; }
  .day-table .c-phone { grid-column: 2; font-size: 12.5px; }
  .day-table .c-method { grid-column: 3; grid-row: 2; justify-self: end; }
  .day-table .c-source, .day-table .c-int { display: none; }
  .day-h { padding: 12px 14px; gap: 12px; }
  .day-badge { width: 44px; height: 48px; }
  .day-title h3 { font-size: 15px; }
  .sum-strip { grid-template-columns: 1fr 1fr; }
  .sum-strip > div:first-child { grid-column: 1 / -1; }
  .sum-strip > div { padding: 11px 14px; }
  .sum-strip b { font-size: 19px; }
  .cal-bar .seg button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* installed on the phone's home screen (full screen): keep clear of the notch and the home bar */
@media (display-mode: standalone) {
  .top { padding-top: max(16px, env(safe-area-inset-top)); }
  .side { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .view { padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); }
  .toasts { bottom: max(20px, env(safe-area-inset-bottom)); }
  .drawer-card { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .login { padding-top: env(safe-area-inset-top); }
}
html { -webkit-tap-highlight-color: transparent; }

/* style picks (♥ from the website's style gallery) */
.pick-name { display: block; font-size: 15px; }
.pick-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.pick-contact a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pick-contact a:hover { color: var(--cyan); }
.pick-contact svg { width: 14px; height: 14px; opacity: .7; }
.mail.pick { border-left-color: #ff375f; } .mail.pick.done { border-left-color: rgba(48,209,88,.5); }
.pick-chips, .pick-top-l { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.pick-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pk); box-shadow: 0 0 8px var(--pk); }
.pick-chip small { font-size: 11px; font-weight: 600; color: var(--pk); }
.pick-chip b { min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center; font-size: 11.5px; background: var(--pk); color: #fff; }
.pick-top { display: grid; gap: 10px; margin-bottom: 12px; max-width: 980px; }
.pick-top-t { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.pick-top-t svg { width: 15px; height: 15px; color: #ff375f; fill: #ff375f; }
.mail-q .pick-chip { text-transform: none; letter-spacing: normal; font-size: 13px; color: var(--text); }
.mail-q .pick-chip small { font-size: 11px; color: var(--pk); }

/* the owner's AI agent card (Settings) */
.ag-key { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: rgba(48,209,88,.08); box-shadow: inset 0 0 0 1px rgba(48,209,88,.35); }
.ag-key code { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: 12.5px; word-break: break-all; user-select: all; }
.ag-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .ag-key-row small { color: var(--faint); font-size: 12px; }
.ag-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.ag-meta > div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.ag-meta span, .ag-reqs > span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.ag-meta code { font-size: 12.5px; word-break: break-all; }
.ag-note { margin: 0 0 10px; font-size: 12.5px; }
.ag-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ag-reqs { display: grid; gap: 8px; }
.ag-req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.ag-req small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }

/* «Πελάτες»: filter by where the client came from */
/* the clients' categories (Πελάτες) */
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cat-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cat-btn span { font-size: 13px; color: var(--muted); }
.cat-btn b { font-size: 22px; font-weight: 600; }
.cat-btn:hover { border-color: var(--accent); }
.cat-btn[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.cat-btn[aria-pressed="true"] span { color: inherit; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cat-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .cat-row { grid-template-columns: repeat(3, 1fr); } .cat-btn { padding: 10px; } .cat-btn span { font-size: 12px; } .cat-btn b { font-size: 18px; } }
/* phones: the status buttons stay on one line and scroll sideways instead of wrapping into each other */
@media (max-width: 560px) { .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .toolbar .seg::-webkit-scrollbar { display: none; } .toolbar .seg button { white-space: nowrap; flex: none; } }

/* promotional emails («Προωθητικά») */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.promo-edit { display: grid; gap: 14px; }
.promo-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.promo-aud { flex-wrap: wrap; }
.promo-body { min-height: 230px !important; line-height: 1.55; }
.promo-btnrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.promo-limit { margin: 0; font-size: 12px; }
.promo-view { position: sticky; top: 12px; }
.promo-frame { width: 100%; height: 660px; border: 0; border-radius: 14px; background: #e8f2fc; }
.promo-warn { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(255,159,10,.45); }
.promo-warn > svg { flex: none; width: 22px; height: 22px; color: #ff9f0a; margin-top: 2px; }
.promo-warn p { margin: 4px 0 10px; }
.promo-hook { display: flex; gap: 8px; }
.promo-hist { display: grid; gap: 2px; }
.promo-h { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.promo-h:first-child { border-top: 0; }
.promo-h small { display: block; color: var(--muted); margin-top: 2px; }
.promo-list summary { cursor: pointer; padding: 2px 0 10px; }
@media (max-width: 1000px) { .promo { grid-template-columns: 1fr; } .promo-view { position: static; } .promo-frame { height: 560px; } }
@media (max-width: 560px) { .promo-btnrow { grid-template-columns: 1fr; } .promo-hook { flex-direction: column; } .promo-h { flex-wrap: wrap; } }
.login-card [hidden] { display: none !important; } /* the two sign-in steps */
/* the client's journey: board view, follow-up badge and box */
.pl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pl-col { display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; transition: box-shadow .15s, background .15s; }
.pl-col.over { box-shadow: inset 0 0 0 2px var(--accent, #0a84ff); background: color-mix(in srgb, var(--accent, #0a84ff) 8%, var(--card)); }
.pl-h { display: flex; align-items: center; justify-content: space-between; }
.pl-h b { font-size: 13px; color: var(--muted); }
.pl-list { display: grid; gap: 8px; align-content: start; flex: 1; }
.pl-card { display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; }
.pl-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.pl-card.dragging { opacity: .45; }
.pl-card small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card .cat-tags { margin-top: 2px; }
.pl-empty { margin: 0; padding: 18px 0; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; }
.pl-hint { margin: 10px 2px 0; font-size: 12px; }
.fu-badge { display: inline-block; width: max-content; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #ff9f0a; background: rgba(255,159,10,.12); }
.fu-badge.due { color: #ff6961; background: rgba(255,69,58,.14); }
.fu-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.fu-quick, .fu-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fu-row .input { flex: 1 1 200px; }
.seg-wrap { flex-wrap: wrap; }
.pill.teal { color: #40c8e0; background: rgba(64,200,224,.13); } /* «Συμβόλαιο» */
/* projects & subscriptions («Έργα») */
.card.stat { display: grid; gap: 4px; }
.card.stat > span { font-size: 12.5px; color: var(--muted); }
.card.stat > b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card.stat small { color: var(--muted); font-size: 12px; }
.card.stat .neg { color: #ff6961; font-style: normal; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.proj { display: grid; gap: 8px; align-content: start; cursor: pointer; transition: box-shadow .15s; }
.proj:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.proj h3 { margin: 0; font-size: 16px; }
.proj p { margin: 0; font-size: 13px; }
.proj-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-h .fu-badge { margin-top: 0; }
.proj-bar { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.proj-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #30d158, #40c8e0); }
.proj-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.proj-form { display: grid; gap: 14px; }
.proj-tasks { display: grid; gap: 6px; }
/* find a client (top bar) */
.finder { position: relative; flex: 0 1 380px; min-width: 0; }
.finder-open { display: none; }
.finder-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.finder-box:focus-within { box-shadow: inset 0 0 0 1px rgba(64,200,224,.7), 0 0 0 3px rgba(64,200,224,.15); }
.finder-box > svg { width: 16px; height: 16px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.finder-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: inherit; font: inherit; font-size: 14px; }
.finder-box input::-webkit-search-cancel-button { display: none; }
.finder-box kbd { font: 600 11px/1 inherit; padding: 3px 6px; border-radius: 6px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.finder-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 340px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border-radius: 16px; background: #141418; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0,0,0,.9); z-index: 60; }
.find-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.find-row:hover, .find-row.on { background: var(--card-2); }
.find-row .row-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.find-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.find-contact a { color: #64b5ff; word-break: break-all; }
.find-copy { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border: 0; border-radius: 8px; background: var(--card-2); color: var(--muted); cursor: pointer; }
.find-copy:hover { color: #fff; background: var(--line-2); }
.find-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.find-empty { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1180px) {
  .finder { flex: none; position: static; }
  .finder-open { display: grid; }
  .finder-box { display: none; }
  .finder.open { position: absolute; inset: 8px 12px auto 12px; z-index: 30; max-width: 640px; margin-left: auto; }
  .finder.open .finder-pop { left: 0; right: 0; }
  .finder.open .finder-open { display: none; }
  .finder.open .finder-box { display: flex; height: 44px; background: #0f0f12; }
  .finder.open .finder-box kbd { display: none; }
  .finder-pop { min-width: 0; }
}
/* the waiting line («Ζωντανά») */
.queue-bar { margin-bottom: 14px; display: grid; gap: 10px; }
.queue-bar.busy { box-shadow: inset 0 0 0 1px rgba(255,159,10,.5); }
.queue-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.queue-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.queue-item { display: flex; align-items: center; gap: 8px; flex: none; max-width: 260px; padding: 8px 12px 8px 8px; border: 0; border-radius: 12px; background: var(--card-2); color: inherit; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.queue-item:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.queue-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: #ff9f0a; flex: none; }
.queue-item:first-child .queue-n { background: #30d158; }
.queue-t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item small { color: var(--muted); font-size: 11.5px; flex: none; }
.queue-n.sm { width: 20px; height: 20px; font-size: 11px; display: inline-grid; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 560px) { .heat { gap: 2px; font-size: 9.5px; grid-template-columns: 26px repeat(var(--cols), minmax(0, 1fr)); } .heat i { border-radius: 3px; } }
/* long emails and names never widen a card (they are cut with «…» or wrap) — found on phones in the full check */
.grid > *, .mail, .mail-h > *, .mail-list > * { min-width: 0; }
.mail-q p, .mail-addr, .mail-note { overflow-wrap: anywhere; }
.mail-h .pill { flex: none; }
