/* Dashboards (client account and admin): calm, crisp app layout. Sidebar on desktop, tab bar on phones.
   Loaded last on account.html and admin.html, so it restyles the shared components from dash.css and booking.css. */
body.app {
  --bg: #07090e; --panel: #0e121b; --panel-2: #141a26; --panel-3: #1b2232; --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.13);
  --text: #eef1f7; --muted: #8b94a8; --faint: #5d6679;
  --accent: #3b82f6; --accent-2: #60a5fa; --accent-soft: rgba(59,130,246,.14);
  --ok: #34d399; --ok-soft: rgba(52,211,153,.13); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13); --bad: #f87171; --bad-soft: rgba(248,113,113,.13);
  --white: var(--text); --dim: var(--muted); --edge: var(--line-2); --glass: var(--panel-2); --glass-2: var(--panel-3);
  --blue: var(--accent); --blue-lite: var(--accent-2); --blue-deep: #1d4ed8;
  --r: 16px; --r-sm: 11px;
  background: var(--bg); color: var(--text); font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased;
}
body.app .ic { width: 20px; height: 20px; flex: none; }
body.app :focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- shell ---------- */
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; }
.side-brand img { height: 26px; width: auto; }
.side-brand span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; }
.nav-i, .tab-i, .more-i { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none; }
.nav-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.nav-i:hover { background: var(--panel-2); color: var(--text); }
.nav-i[aria-selected="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav-i[aria-selected="true"] .ic { color: var(--accent-2); }
.nav-i .lbl { flex: 1; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-content: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--accent); color: #fff; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-content: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border: 0; }
.avatar.mal { background: linear-gradient(135deg, #d3202b, #7f1d1d); }
.who { min-width: 0; flex: 1; }
.who strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; display: grid; place-content: center; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 22px clamp(18px, 3vw, 40px) 18px; background: rgba(7,9,14,.86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.top-brand { display: none; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { font-family: inherit; font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; text-transform: none; }
.top-title p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions #top-actions { display: flex; gap: 8px; }
.avatar-btn { display: none; cursor: pointer; }
.demo-chip { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--warn-soft); color: var(--warn); }
.app-content { flex: 1; width: 100%; max-width: 1180px; padding: clamp(18px, 2.6vw, 32px) clamp(18px, 3vw, 40px) 72px; }
.app-content [data-pane] { animation: paneIn .28s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- components (restyled) ---------- */
body.app .glass, body.app .dcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.app .glass h2, body.app .card-h { font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.005em; text-transform: none; line-height: 1.3; }
body.app .card-title { font-size: 17px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
body.app .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body.app .muted { color: var(--muted); font-size: 14px; }
body.app .small { font-size: 12.5px; }
body.app .mt { margin-top: 16px; }
body.app .stack { gap: 16px; }
body.app .grid2 { gap: 16px; }
body.app .row { gap: 8px; }
body.app .empty-line { padding: 10px 0; }
body.app .btn, body.app .btn-glow, body.app button.btn.btn-glow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; box-shadow: none; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .15s, border-color .15s, transform .1s; }
body.app .btn-glow, body.app button.btn.btn-glow { background: var(--accent); border-color: var(--accent); color: #fff; }
body.app .btn-glow:hover { background: #2563eb; filter: none; color: #fff; }
body.app .btn:active, body.app .btn-quiet:active { transform: scale(.98); }
body.app .btn-glow::before, body.app .btn-glow::after { display: none; }
body.app .btn-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
body.app .btn-quiet:hover { background: var(--panel-2); }
body.app .btn-quiet.danger { color: var(--bad); border-color: rgba(248,113,113,.35); }
body.app .btn-quiet.danger:hover { background: var(--bad-soft); }
body.app .btn-top { min-height: 40px; }
body.app .pill { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: none; border: 0; background: var(--panel-3); color: var(--muted); }
body.app .pill.confirmed, body.app .pill.paid, body.app .pill.shipped, body.app .pill.delivered { background: var(--ok-soft); color: var(--ok); }
body.app .pill.pending, body.app .pill.processing { background: var(--warn-soft); color: var(--warn); }
body.app .pill.cancelled, body.app .pill.no_show { background: var(--bad-soft); color: var(--bad); }
body.app .pill.google { background: var(--accent-soft); color: var(--accent-2); }
body.app .dot { background: var(--accent); color: #fff; }
body.app .field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
body.app .field input, body.app .field textarea, body.app .field select { min-height: 44px; padding: 10px 13px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 15px; }
body.app .field input:focus, body.app .field textarea:focus, body.app .field select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
body.app .check { font-size: 14px; color: var(--text); }
body.app .items .item { padding: 14px 0; border-bottom: 1px solid var(--line); }
body.app .item-main strong { font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.app .date-chip { width: 56px; border-radius: 12px; padding: 7px 4px; background: var(--panel-2); border: 1px solid var(--line); }
body.app .date-chip b { font-family: inherit; font-weight: 700; font-size: 20px; }
body.app .date-chip span { font-size: 10px; letter-spacing: .08em; color: var(--accent-2); }
body.app .empty-state { padding: 26px 10px; color: var(--muted); font-size: 14px; }
body.app .table th { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--muted); }
body.app .table td { border-top: 1px solid var(--line); font-size: 14px; }
body.app .table tr[data-id]:hover td { background: var(--panel-2); }
body.app .split-pane { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
body.app .people { gap: 0; max-height: 62svh; padding: 6px; background: var(--panel); border-right: 1px solid var(--line); }
body.app .people button { border: 0; border-radius: var(--r-sm); background: none; padding: 12px; font-size: 14px; }
body.app .people button:hover { background: var(--panel-2); }
body.app .people button[aria-pressed="true"] { background: var(--accent-soft); }
body.app .thread { background: var(--bg); padding: 16px; max-height: 56svh; min-height: 280px; }
body.app .msg { border-radius: 16px 16px 16px 5px; background: var(--panel-3); border: 0; font-size: 14.5px; }
body.app .msg.mine { border-radius: 16px 16px 5px 16px; background: var(--accent); }
body.app .send { margin: 0; padding: 10px; gap: 8px; background: var(--panel); border-top: 1px solid var(--line); }
body.app .send input { border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); padding: 12px 14px; font-size: 15px; }
body.app .send .btn { min-width: 46px; padding: 0 14px; }
.chat-card { padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 14.5px; }
body.app .gcal .led.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* overview pieces */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hero-card { background: linear-gradient(160deg, #13203d, var(--panel) 60%) !important; border-color: rgba(96,165,250,.22) !important; }
.hc-top { display: flex; justify-content: space-between; align-items: center; }
.hc-date { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hc-date b { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hc-date span { font-size: 13px; color: var(--muted); line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hc-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-top: 12px; text-transform: none; font-family: inherit; }
.todo { display: grid; gap: 8px; }
.todo-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.todo-i:hover { border-color: var(--line-2); background: var(--panel-3); }
.todo-i strong { display: block; font-size: 14px; font-weight: 600; }
.todo-i span span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.todo-i .go { color: var(--faint); width: 18px; height: 18px; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; }
.tick.warn { border-color: var(--warn); }
.todo-i.done .tick { background: var(--ok); border-color: var(--ok); }
.todo-i.done .tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #062; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.todo-i.done strong { color: var(--muted); text-decoration: line-through; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile, .kpi { display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.tile:hover, .kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tile .ic { color: var(--accent-2); }
.tile b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.tile span { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi span .ic { width: 17px; height: 17px; color: var(--accent-2); }
.kpi b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi.warn span .ic { color: var(--warn); }
.agenda { display: grid; gap: 8px; }
.ag-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel-2); border-left: 3px solid var(--ok); }
.ag-row.pending { border-left-color: var(--warn); }
.ag-time b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-time span { font-size: 12px; color: var(--muted); }
.ag-main strong { display: block; font-size: 14.5px; font-weight: 600; }
.ag-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ag-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qa-i { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.qa-i:hover { border-color: var(--line-2); background: var(--panel-3); }
.qa-i .ic { color: var(--accent-2); }

/* admin schedule week */
body.app .week { grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
body.app .daycol { border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); padding: 12px; }
body.app .daycol.today { border-color: var(--accent); box-shadow: none; }
body.app .daycol h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; }
body.app .ev { border-radius: 10px; background: var(--panel-3); border: 0; border-left: 3px solid var(--ok); font-size: 13px; }
body.app .ev.pending { background: var(--panel-3); border-left-color: var(--warn); }
body.app .ev.block { background: transparent; border: 1px dashed var(--line-2); }
body.app .ev .btn-quiet { min-height: 32px; padding: 0 10px; font-size: 12px; }

/* chairs, calendars and sheets */
body.app .opt { background: var(--panel-2); border-color: var(--line); border-radius: var(--r-sm); }
body.app .opt:hover { background: var(--panel-3); border-color: var(--line-2); transform: none; }
body.app .opt-main strong { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
body.app .opt-go { color: var(--accent-2); letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
body.app .chair-head h3 { font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: -.005em; text-transform: none; }
body.app .sheet-panel { background: var(--panel); border-color: var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
body.app .sheet-head h2 { font-family: inherit; font-size: 18px; font-weight: 700; text-transform: none; }
body.app .sheet-head .x { border-color: var(--line-2); background: var(--panel-2); }
body.app .radio { background: var(--panel-2); border-color: var(--line); border-radius: var(--r-sm); }
body.app .radio strong { font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
body.app .radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
body.app .wh { background: var(--panel-2); border-color: var(--line); border-radius: var(--r-sm); }
body.app .wh strong { font-size: 12.5px; letter-spacing: .04em; }
body.app .wh input[type="time"], body.app .de-times input[type="time"] { background: var(--bg); border-color: var(--line-2); border-radius: 9px; }
body.app .switch input:checked + span { background: var(--accent); box-shadow: none; }
body.app .cal { background: var(--panel-2); border-color: var(--line); border-radius: var(--r); }
body.app .cal-month { font-family: inherit; font-size: 18px; font-weight: 700; text-transform: none; }
body.app .day-panel { background: var(--panel-2); border-color: var(--line); }
body.app .seg { background: var(--bg); border-color: var(--line-2); border-radius: 12px; }
body.app .seg span { border-radius: 9px; letter-spacing: .02em; text-transform: none; font-size: 13px; }
body.app .seg input:checked + span { background: var(--accent); box-shadow: none; }
body.app .chips { background: var(--panel-2); border-color: var(--line); box-shadow: none; }
body.app .chips .chip { color: var(--muted); letter-spacing: .02em; text-transform: none; font-size: 13px; }
body.app .chips .chip[aria-pressed="true"] { color: #fff; }
body.app .glider { background: var(--accent); box-shadow: none; }
body.app .glider::after { display: none; }
body.app .ph.empty { border-color: var(--line-2); background: var(--panel-2); }
body.app .ph-plus { background: var(--accent); box-shadow: none; }
body.app .ph-progress { background: conic-gradient(var(--accent-2) calc(var(--p) * 360deg), var(--panel-3) 0); }
body.app .ph-progress::before { background: var(--panel); }
body.app .pick-list { margin-top: 0; }
body.app .pick-item { background: var(--panel-2); border-color: var(--line); border-radius: var(--r-sm); }
body.app .pick-item strong { font-family: inherit; font-size: 15px; font-weight: 600; text-transform: none; }
body.app .pick-item:hover { box-shadow: none; border-color: var(--line-2); }
body.app .client-ph a { border-color: var(--line-2); }
body.app .toast { border-radius: 12px; background: var(--panel-3); border-color: var(--line-2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); }

/* logged-out screens */
body.app .app-root > .login { max-width: 420px; margin: min(12svh, 100px) auto 40px; padding: 30px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px -40px rgba(59,130,246,.45); }
body.app .app-root > .login::before { content: ""; display: block; height: 30px; margin-bottom: 18px; background: url(img/mxl-inc-logo.png) left center / auto 100% no-repeat; }
body.app .login h1 { font-family: inherit; font-size: 26px; font-weight: 700; letter-spacing: -.02em; text-transform: none; line-height: 1.15; }
body.app .app-root > p.muted { padding-top: 30svh; }
body.app .steps-2 .s2 { text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* ---------- phones: top bar + bottom tab bar ---------- */
.bottom-nav, .more-sheet { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px; gap: 12px; }
  .top-brand { display: block; flex: none; }
  .top-brand img { height: 20px; width: auto; display: block; }
  .top-title h1 { font-size: 18px; }
  .top-title p { display: none; }
  .avatar-btn { display: grid; width: 34px; height: 34px; font-size: 12px; }
  .hide-sm { display: none; }
  .app-content { padding: 16px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(10,13,20,.94); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-top: 1px solid var(--line); }
  .tab-i { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; min-height: 52px; }
  .tab-i .ic { width: 23px; height: 23px; }
  .tab-i[aria-selected="true"] { color: var(--text); }
  .tab-i[aria-selected="true"] .ic { color: var(--accent-2); }
  .tab-i[aria-selected="true"]::before { content: ""; position: absolute; top: 2px; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); }
  .tab-i .badge { position: absolute; top: 3px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .tab-i .badge.dot-only { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 7px; margin-left: 8px; }
  .more-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 110; }
  .more-veil { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .2s both; }
  .more-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2); animation: up .28s cubic-bezier(.2,.8,.2,1) both; }
  .more-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--line-2); }
  @keyframes fade { from { opacity: 0; } }
  @keyframes up { from { transform: translateY(100%); } }
  .more-user { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .more-i { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 10px; border-radius: 12px; font-size: 15.5px; font-weight: 500; color: var(--text); text-align: left; }
  .more-i .ic { color: var(--muted); }
  .more-i span:not(.badge) { flex: 1; }
  .more-i:active { background: var(--panel-2); }
  .more-i.danger, .more-i.danger .ic { color: var(--bad); }
  body.sheet-open { overflow: hidden; }

  .ov-grid { grid-template-columns: 1fr; }
  .tiles, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi b { font-size: 28px; }
  .ag-row { grid-template-columns: 62px minmax(0, 1fr); }
  .ag-act { grid-column: 1 / -1; justify-content: flex-start; }
  body.app .glass, body.app .dcard { padding: 16px; border-radius: 14px; }
  body.app .split-pane { grid-template-columns: 1fr; }
  body.app .people { border-right: 0; border-bottom: 1px solid var(--line); max-height: 200px; }
  body.app .week { grid-template-columns: 1fr; overflow: visible; }
  body.app .table { min-width: 620px; }
  .hc-date b { font-size: 40px; }
  body:has(.bottom-nav) .am-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .app-content [data-pane], .more-veil, .more-panel { animation: none; } }

/* ---------- fixes after review ---------- */
body.app, body.app button, body.app input, body.app textarea, body.app select, body.app .muted, body.app .item-main span, body.app .date-chip, body.app .ph-progress b, body.app .ph-count, body.app .todo-i span, body.app .tz, body.app .ev b, body.app .msg small, body.app .cal-month small, body.app .opt-main > span, body.app .fact, body.app .pick-item span { font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.app .ph-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.app .ph { aspect-ratio: 3 / 4; border-radius: 14px; }
body.app .ph.empty strong { letter-spacing: .02em; text-transform: none; font-size: 14px; }
body.app .ph-progress b { font-size: 16px; font-weight: 700; }
body.app .field { display: grid; grid-template-columns: 1fr; gap: 6px; }
body.app .items .item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
body.app .date-chip { display: grid; justify-items: center; gap: 1px; width: 56px; }
body.app .date-chip b { display: block; line-height: 1.05; }
.agenda { container-type: inline-size; }
@container (max-width: 560px) {
  .ag-row { grid-template-columns: 64px minmax(0, 1fr); }
  .ag-act { grid-column: 1 / -1; justify-content: flex-start; }
}
.ag-act { flex-wrap: wrap; min-width: 0; }
@media (max-width: 900px) {
  body.app .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.app .items .item { grid-template-columns: 52px minmax(0, 1fr); }
  body.app .items .item > :last-child { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
}
body.app { --mono: "Archivo", system-ui, sans-serif; --display: "Archivo", system-ui, sans-serif; }
body.app .dcard h3, body.app .dcard-title { font-family: inherit; text-transform: none; letter-spacing: -.005em; }
body.app .pill, body.app .eyebrow, body.app .ph.empty span { font-family: inherit; }
/* phones: client list as cards instead of a wide table */
@media (max-width: 900px) {
  body.app .table { min-width: 0; }
  body.app .table thead { display: none; }
  body.app .table, body.app .table tbody { display: block; }
  body.app .table tr[data-id] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 2px; border-top: 1px solid var(--line); }
  body.app .table td { display: block; border: 0; padding: 0; }
  body.app .table td:nth-child(1) { grid-column: 1; font-size: 15px; }
  body.app .table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  body.app .table td:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
  body.app .table td:nth-child(n+4) { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
  body.app .table td:nth-child(4)::before { content: "Consultation: "; }
  body.app .table td:nth-child(5)::before { content: "Visits: "; }
  body.app .table td:nth-child(6)::before { content: "Next visit: "; }
  body.app .scroll-x { overflow: visible; }
}

/* =====================================================================
   Mal Magic brand theme: white page, Mal Magic blues, dripping header,
   image-led promo banners. Overrides the dark tokens above.
   ===================================================================== */
body.app {
  --bg: #f4f7fe; --panel: #ffffff; --panel-2: #f2f6fe; --panel-3: #e6edfb;
  --line: rgba(16,53,127,.10); --line-2: rgba(16,53,127,.18);
  --text: #0b1733; --muted: #5a6a8a; --faint: #9aa8c4;
  --accent: #2468d8; --accent-2: #1d58c0; --accent-soft: rgba(36,104,216,.10);
  --ok: #047857; --ok-soft: rgba(16,185,129,.14); --warn: #b45309; --warn-soft: rgba(245,158,11,.16); --bad: #dc2626; --bad-soft: rgba(239,68,68,.10);
  --navy: #0a1f52; --navy-2: #10357f; --sky: #6aa6ff;
  --shadow: 0 1px 2px rgba(16,53,127,.06), 0 14px 34px -22px rgba(16,53,127,.35);
  background: radial-gradient(1200px 500px at 70% -10%, rgba(106,166,255,.22), transparent 70%), var(--bg);
  color-scheme: light;
}
body.app .dcard, body.app .glass { box-shadow: var(--shadow); border-color: var(--line); }

/* sidebar: deep Mal Magic blue */
body.app .side { background: linear-gradient(180deg, #0d2c6e 0%, #0a1f52 55%, #071638 100%); border-right: 0; color: #fff; }
body.app .side::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: radial-gradient(240px 140px at 30% 100%, rgba(106,166,255,.35), transparent 70%); pointer-events: none; }
.side-brand { padding: 0 6px 20px; gap: 12px; }
.side-brand .mm { width: 52px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.sb-txt b { display: block; font-family: "Knewave", cursive; font-weight: 400; font-size: 22px; line-height: 1; color: #fff; }
.sb-txt em { display: block; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
body.app .nav-i { color: rgba(255,255,255,.72); }
body.app .nav-i:hover { background: rgba(255,255,255,.08); color: #fff; }
body.app .nav-i[aria-selected="true"] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--sky); }
body.app .nav-i[aria-selected="true"] .ic { color: var(--sky); }
body.app .side .badge { background: #fff; color: var(--navy-2); }
body.app .side-user { border-top-color: rgba(255,255,255,.12); position: relative; z-index: 1; }
body.app .side-user .who strong { color: #fff; }
body.app .side-user .who span { color: rgba(255,255,255,.6); }
body.app .side .icon-btn { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
body.app .side .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
body.app .avatar { background: linear-gradient(135deg, #6aa6ff, #2468d8); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* top bar: blue band with drips hanging onto the page */
body.app .topbar { position: sticky; background: linear-gradient(100deg, #0d2c6e 0%, #1747a8 45%, #2468d8 100%); border-bottom: 0; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; padding-bottom: 20px; }
body.app .top-title h1 { color: #fff; }
body.app .top-title p { color: rgba(255,255,255,.75); }
body.app .topbar .btn-glow, body.app .topbar button.btn.btn-glow { background: #fff; border-color: #fff; color: var(--navy-2); }
body.app .topbar .btn-glow:hover { background: #eaf1ff; color: var(--navy-2); }
body.app .topbar .btn-quiet { color: #fff; border-color: rgba(255,255,255,.4); }
body.app .topbar .btn-quiet:hover { background: rgba(255,255,255,.12); }
body.app .demo-chip { background: rgba(255,255,255,.18); color: #fff; }
body.app .avatar-btn { background: #fff; color: var(--navy-2); box-shadow: none; }
.app-drips { position: absolute; left: 0; right: 0; top: 100%; height: 0; pointer-events: none; filter: url(#app-goo); z-index: -1; }
.app-drips::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 8px; background: #2468d8; }
.app-drips span { position: absolute; top: 0; width: 14px; margin-left: -7px; }
.app-drips b { display: block; width: 14px; height: var(--l); border-radius: 0 0 999px 999px; background: linear-gradient(180deg, #2468d8, #3b82f6); transform-origin: top; animation: aDrip var(--t) ease-in-out infinite; animation-delay: var(--d); }
.app-drips i { position: absolute; left: 1px; top: calc(var(--l) - 8px); width: 12px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #3b82f6; opacity: 0; animation: aDrop var(--t) ease-in infinite; animation-delay: var(--d); }
@keyframes aDrip { 0%, 100% { transform: scaleY(.5); } 55% { transform: scaleY(1); } }
@keyframes aDrop { 0%, 50% { opacity: 0; transform: translateY(0) scale(.6); } 56% { opacity: 1; transform: translateY(2px) scale(1); } 85% { opacity: .9; transform: translateY(70px) scale(.9); } 100% { opacity: 0; transform: translateY(110px) scale(.7); } }
body.app .app-content { padding-top: clamp(40px, 4vw, 54px); }

/* promo banner */
.promo { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; min-height: 280px; border-radius: 22px; color: #fff;
  background: radial-gradient(600px 300px at 80% 40%, rgba(106,166,255,.55), transparent 65%), linear-gradient(120deg, #071638 0%, #0d2c6e 45%, #1d58c0 100%); box-shadow: 0 30px 60px -30px rgba(13,44,110,.7); isolation: isolate; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.promo-copy { padding: 26px 0 26px 28px; position: relative; z-index: 1; }
.promo-logo { width: 74px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.promo-kicker { display: block; margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9cc3ff; }
.promo-h { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: .005em; text-transform: uppercase; margin-top: 8px; max-width: 15ch; }
.promo-h em { font-style: normal; color: #9cc3ff; }
.promo-p { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.8); max-width: 40ch; }
.promo .row { margin-top: 18px; }
.promo .btn-glow, body.app .promo button.btn.btn-glow, body.app .promo a.btn.btn-glow { background: #fff; border-color: #fff; color: var(--navy-2); }
body.app .btn-quiet.light { color: #fff; border-color: rgba(255,255,255,.4); text-decoration: none; }
body.app .btn-quiet.light:hover { background: rgba(255,255,255,.12); }
.promo-art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.promo-art img { position: relative; width: auto; height: 300px; max-width: 120%; object-fit: contain; object-position: bottom; margin-bottom: -2px; filter: drop-shadow(-14px 10px 30px rgba(0,0,0,.45)); }
.promo-glow { position: absolute; left: 50%; bottom: 10%; width: 260px; height: 260px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(106,166,255,.25) 55%, transparent); }

/* hero card and pieces on white */
body.app .hero-card { background: linear-gradient(150deg, #eef4ff, #ffffff 65%) !important; border-color: rgba(36,104,216,.25) !important; }
body.app .msg { background: var(--panel-3); color: var(--text); }
body.app .msg.mine { background: var(--accent); color: #fff; }
body.app .thread { background: var(--panel-2); }
body.app .admin-cal .cd.a-none { color: var(--faint); }
body.app .admin-cal .cd { color: var(--text); }
body.app .admin-cal .cd.a-custom { color: #7c4a03; }
body.app .admin-cal .cd.a-closed { color: var(--bad); }
body.app .admin-cal .cd[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px -6px rgba(36,104,216,.6); }
body.app .ph.has figcaption { color: #fff; }
body.app .ph.empty span:not(.ph-plus) { color: var(--muted); }
body.app .ph-plus, body.app .switch input:checked + span { color: #fff; }
body.app .tick { border-color: var(--line-2); }
body.app .todo-i.done .tick::after { border-color: #fff; }
body.app .ev.cancelled, body.app .ev.no_show { opacity: .55; }
body.app .people button[aria-pressed="true"] { background: var(--accent-soft); }
body.app .field input, body.app .field textarea, body.app .field select, body.app .send input { background: #fff; color: var(--text); }
body.app .wh input[type="time"], body.app .de-times input[type="time"] { background: #fff; color: var(--text); color-scheme: light; }
body.app .sheet-veil, .more-veil { background: rgba(10,31,82,.45); }
body.app .toast { background: var(--navy); color: #fff; border-color: transparent; }
body.app .kpi b, body.app .tile b { color: var(--navy-2); }
.link-more { font-size: 13.5px; font-weight: 600; color: var(--accent-2); text-decoration: none; }

/* featured services and results */
.feat { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.feat-i { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; scroll-snap-align: start; box-shadow: var(--shadow); }
.feat-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feat-i:hover img { transform: scale(1.06); }
.feat-i span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(7,22,56,.92), transparent); }
.feat-i strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.feat-i em { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; background: #fff; color: var(--navy-2); }
.results { border-radius: 22px; padding: 22px; background: linear-gradient(135deg, #0a1f52, #1747a8); color: #fff; overflow: hidden; }
.results .eyebrow { color: #9cc3ff; }
.results .card-h { color: #fff; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; margin-top: 6px; }
.results-row { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.results-row::-webkit-scrollbar { display: none; }
.results-row img { flex: none; width: 150px; height: 190px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }

/* first visit welcome */
.welcome { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.wl-veil { position: absolute; inset: 0; background: rgba(7,22,56,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: wlFade .3s both; }
.wl-card { position: relative; width: min(760px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 26px; background: #fff; box-shadow: 0 40px 100px -30px rgba(7,22,56,.8); animation: wlIn .45s cubic-bezier(.2,.8,.2,1) both; }
.wl-art { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 320px; background: radial-gradient(400px 260px at 50% 60%, rgba(106,166,255,.6), transparent 70%), linear-gradient(160deg, #071638, #1747a8); overflow: hidden; }
.wl-art img { position: relative; width: 100%; max-width: 340px; height: auto; display: block; }
.wl-body { padding: 28px 26px 26px; color: var(--text); }
.wl-logo { width: 58px; height: auto; }
.wl-body .promo-kicker { color: var(--accent-2); }
.wl-body h2 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; margin-top: 8px; color: var(--navy); }
.wl-body p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.wl-list { list-style: none; display: grid; gap: 8px; margin: 16px 0 20px; padding: 0; }
.wl-list li { position: relative; padding-left: 26px; font-size: 14.5px; }
.wl-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.wl-body .btn { width: 100%; min-height: 50px; font-size: 15px; }
.welcome.out .wl-card { animation: wlOut .3s both; }
.welcome.out .wl-veil { animation: wlFade .3s reverse both; }
@keyframes wlFade { from { opacity: 0; } }
@keyframes wlIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes wlOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }

/* logged-out screens on the brand look */
body.app .app-root > .login { background: #fff; border-color: var(--line); box-shadow: 0 30px 80px -40px rgba(13,44,110,.55); }
body.app .app-root > .login::before { height: 74px; background: url(img/mal-magic-logo.png) left center / auto 100% no-repeat; }
body.app::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 80; background: linear-gradient(90deg, #0d2c6e, #2468d8, #6aa6ff); }

/* phones */
@media (max-width: 900px) {
  body.app .topbar { padding-bottom: 14px; }
  .top-brand img { height: 34px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
  body.app .bottom-nav { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(13,44,110,.4); }
  body.app .tab-i { color: var(--faint); }
  body.app .tab-i[aria-selected="true"] { color: var(--navy-2); }
  body.app .tab-i[aria-selected="true"] .ic { color: var(--accent); }
  body.app .more-panel { background: #fff; }
  body.app .more-i:active { background: var(--panel-2); }
  .app-drips span:nth-child(n+9) { display: none; }
  .promo { grid-template-columns: 1fr; min-height: 0; }
  .promo-copy { padding: 22px 20px 0; }
  .promo-art { height: 230px; margin-top: -10px; }
  .promo-art img { height: 240px; }
  .promo-h { font-size: 32px; }
  .wl-card { grid-template-columns: 1fr; }
  .wl-art { min-height: 0; height: 220px; }
  .wl-art img { max-width: 230px; }
  .wl-body h2 { font-size: 30px; }
  body.app .app-content { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .app-drips b, .app-drips i, .wl-card, .wl-veil { animation: none; } .app-drips i { display: none; } }
/* drips pull up once you scroll, so they never sit on top of content */
.app-drips span { transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; transform-origin: top; }
body.app.scrolled .app-drips span { transform: scaleY(.28); }
body.app.scrolled .app-drips i { opacity: 0 !important; animation: none; }
html:has(body.app) { background: #f4f7fe; }
body.app { min-height: 100svh; display: flow-root; }

/* ---------- readability pass: no light text on light backgrounds; dates, times and numbers in deep brand blue ---------- */
body.app { --ink-blue: #0d2c6e; }
body.app .avatar { background: linear-gradient(135deg, #2468d8, #0d2c6e); }
body.app .opt-main .cal-tag { color: var(--ink-blue); background: rgba(36,104,216,.12); border: 1px solid rgba(36,104,216,.35); letter-spacing: .04em; }
body.app .opt-main .cal-tag.own { color: #7c3d06; background: rgba(245,158,11,.16); border-color: rgba(217,119,6,.45); }
body.app .ph-count { color: var(--ink-blue); background: rgba(36,104,216,.12); border-color: rgba(36,104,216,.35); }
body.app .ph-count.none { color: #7c3d06; background: rgba(245,158,11,.16); border-color: rgba(217,119,6,.45); }
body.app .ph-progress b { color: var(--ink-blue); }
body.app .ph-progress span { color: var(--muted); }
body.app .admin-cal .cd.a-none { color: #4a5a7a; }
body.app .admin-cal .cd.a-weekly { color: var(--ink-blue); font-weight: 600; }
body.app .admin-cal .cd.past { opacity: .4; }
body.app .cal-week, body.app .cal-week span { color: #4a5a7a; }
body.app .cal-month, body.app .hc-date b, body.app .tile b, body.app .kpi b, body.app .ag-time b, body.app .date-chip b, body.app .ev b, body.app .cd { color: var(--ink-blue); }
body.app .date-chip span, body.app .hc-date span, body.app .ag-time span { color: #2b4a8a; }
body.app .daycol h3, body.app .daycol h3 span, body.app .daycol h3 .muted { color: var(--ink-blue); }
body.app .daycol > .muted { color: #4a5a7a; }
body.app .wh input[type="time"], body.app .de-times input[type="time"] { color: var(--ink-blue); font-weight: 600; }
body.app .wh:not(.on) input[type="time"] { opacity: .5; }
body.app .wh strong { color: var(--ink-blue); }
body.app .muted { color: #4f5f80; }
body.app .eyebrow { color: #4a5a7a; }
body.app .results .eyebrow { color: #9cc3ff; }
/* chips: unselected clearly readable, selected white on solid blue */
body.app .chips { background: #fff; border-color: rgba(36,104,216,.25); }
body.app .chips .chip { color: var(--ink-blue); font-weight: 600; }
body.app .chips .chip[aria-pressed="true"] { color: #fff; }
body.app .chips .chip:not([aria-pressed="true"]):hover { background: rgba(36,104,216,.08) !important; }
body.app .glider { background: linear-gradient(135deg, #2468d8, #0d2c6e); }
body.app .seg span { color: var(--ink-blue); font-weight: 600; }
body.app .seg input:checked + span { color: #fff; background: linear-gradient(135deg, #2468d8, #0d2c6e); }
body.app .btn-quiet { color: var(--ink-blue); border-color: rgba(36,104,216,.35); }
body.app .btn-quiet:hover { background: rgba(36,104,216,.08); }
body.app .opt-go, body.app .link-more { color: var(--accent-2); }

/* ---------- client login on the Mal Magic look: blue drip panel with Atif beside the form ---------- */
body.app .app-root > .login-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); max-width: 980px; margin: min(9svh, 72px) auto 40px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -40px rgba(13,44,110,.6); }
body.app .login-wrap > .login { margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; align-self: center; padding: 38px 34px; }
body.app .login-wrap > .login::before { display: none; }
.login-hero { position: relative; overflow: hidden; min-height: 560px; padding: 64px 36px 0; color: #fff; background: radial-gradient(120% 80% at 70% 100%, #3b82f6 0%, rgba(36,104,216,0) 60%), linear-gradient(160deg, #2468d8, #0d2c6e 60%, #071638); }
.login-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); background-size: 18px 18px; pointer-events: none; }
.lh-drips { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #6aa6ff; z-index: 1; }
.lh-drips i { position: absolute; top: 6px; width: 14px; border-radius: 0 0 999px 999px; background: #6aa6ff; height: var(--h); animation: aDrip 4s ease-in-out infinite; transform-origin: top; }
.lh-drips i:nth-child(1) { left: 8%; --h: 34px; } .lh-drips i:nth-child(2) { left: 21%; --h: 58px; animation-delay: .6s; } .lh-drips i:nth-child(3) { left: 36%; --h: 22px; animation-delay: 1.2s; }
.lh-drips i:nth-child(4) { left: 52%; --h: 46px; animation-delay: .3s; } .lh-drips i:nth-child(5) { left: 67%; --h: 28px; animation-delay: 1.6s; } .lh-drips i:nth-child(6) { left: 80%; --h: 64px; animation-delay: .9s; } .lh-drips i:nth-child(7) { left: 93%; --h: 30px; animation-delay: 2s; }
.lh-logo { position: relative; z-index: 2; width: 92px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.lh-eyebrow { position: relative; z-index: 2; margin-top: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #cfe2ff; }
.lh-h { position: relative; z-index: 2; margin-top: 8px; font-family: "Anton", Impact, sans-serif; font-size: clamp(38px, 4.4vw, 54px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.lh-h span { font-family: "Knewave", cursive; text-transform: none; color: #9cc4ff; font-size: 1.05em; }
.lh-sub { position: relative; z-index: 2; margin-top: 12px; max-width: 30ch; font-size: 15px; line-height: 1.5; color: #e4eeff; }
.lh-atif { position: absolute; z-index: 2; right: -10px; bottom: 0; height: 62%; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
@media (max-width: 760px) {
  body.app .app-root > .login-wrap { grid-template-columns: 1fr; margin: 0 0 32px; border-radius: 0 0 28px 28px; }
  .login-hero { min-height: 300px; padding: 44px 20px 0; }
  .lh-logo { width: 68px; }
  .lh-h { font-size: 36px; }
  .lh-sub { max-width: 22ch; font-size: 13.5px; }
  .lh-atif { height: 92%; right: -24px; }
  body.app .login-wrap > .login { padding: 26px 20px 30px; }
}
@media (prefers-reduced-motion: reduce) { .lh-drips i { animation: none; } }

/* phones: drips start shorter so they never sit on the first card */
@media (max-width: 900px) {
  body.app .app-drips span { transform: scaleY(.5); }
  body.app.scrolled .app-drips span { transform: scaleY(.25); }
  body.app .app-content { padding-top: 44px; }
}
.lh-logo, .lh-eyebrow, .lh-h, .lh-sub { z-index: 3; }
@media (max-width: 760px) { .lh-eyebrow { max-width: 17ch; line-height: 1.5; } .lh-atif { height: 80%; right: -56px; } .lh-h { font-size: 32px; text-shadow: 0 4px 16px rgba(7,22,56,.6); } }
