/* meteam.css — Medel and METech in METeam's own look and motion, on top of
   the blueprint (me.css) and the app shell (app.css). Loaded last.

   From METeam: the type (Montserrat for what things are called, Nunito Sans
   for the rest), the sign-in card and its steps, the opening logo, the slow
   aura that lifts on a tap and breathes while something loads, screens that
   rise in card by card, the liquid-glass taskbar, the bell, pull to refresh.
   Only transform and opacity move, so it stays smooth on a phone. */

body.mx {
  --head: 'Montserrat', 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: 0;
}
body.mx h1, body.mx h2, body.mx h3, body.mx h4 { font-family: var(--head); letter-spacing: -.02em; }
body.mx button, body.mx input, body.mx select, body.mx textarea { font-family: var(--font); }

/* ---------------------------------------------------------------- type */
body.mx .lt { align-items: flex-start; gap: 14px; padding-top: 6px; }
body.mx .lt > div:first-child { min-width: 0; }
body.mx .lt small { font: 800 12px/1.3 var(--font); letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
body.mx .lt h3 { font: 800 clamp(27px, 7.6vw, 34px)/1.1 var(--head); letter-spacing: -.03em; overflow-wrap: break-word; }
body.mx .kv2 b { overflow-wrap: break-word; }
body.mx .kv2 > .full { grid-column: 1 / -1; }
body.mx .lt .r { flex: 0 1 auto; min-width: 0; padding-top: 2px; }
/* the title keeps whole words; a long branch name on the right gives way (ellipsis) first */
body.mx .lt > div:first-child { flex: 1 1 auto; min-width: min-content; }
body.mx .ltsub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
body.mx .lt .r > * { flex: 0 0 auto; }
/* a button beside the title (Add, Set up) keeps its size: the title wraps instead; only a branch name gives way (ellipsis) */
body.mx .lt .r:not(:has(.brbtn)) { flex-shrink: 0; } body.mx .lt .r > .brbtn { flex: 0 1 auto; min-width: 0; }
body.mx .lt .brbtn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mx .sec { font: 800 20px/1.2 var(--head); letter-spacing: -.02em; margin-top: 10px; align-items: center; }
body.mx .sec a, body.mx .sec button, body.mx .lk { font: 700 15px/1.2 var(--font); letter-spacing: 0; }
body.mx .card h4, body.mx .card h3 { font-family: var(--head); font-weight: 750; }
body.mx .card h4 { font-size: 17px; }
body.mx .card { gap: 16px; }
body.mx .row .tx b { font-size: 16.5px; font-weight: 700; overflow-wrap: anywhere; } /* long codes (invoice numbers) wrap instead of running into the amount */
body.mx .row .tx span { font-size: 14.5px; line-height: 1.4; }
body.mx .muted { color: var(--ink-2); }
body.mx p.muted { font-size: 15px; line-height: 1.5; }
body.mx .btn { font: 800 15.5px/1 var(--head); letter-spacing: .01em; min-height: 52px; }
body.mx .btn.sm { font-size: 14px; min-height: 42px; }
body.mx .chip { font: 700 15px/1 var(--font); min-height: 42px; }
body.mx .seg button { font: 700 14.5px/1 var(--font); min-height: 38px; }
body.mx .pill { font: 800 12.5px/1 var(--font); padding: 6px 11px; }
body.mx .st { font: 700 13.5px/1.2 var(--font); }
body.mx .kv2 small { font-size: 13px; font-weight: 600; }
body.mx .kv2 b { font-size: 16px; font-weight: 700; }
body.mx .hk .when { font: 700 12.5px/1 var(--font); }
body.mx .hk .cardx b { font: 700 15px/1.3 var(--head); letter-spacing: -.01em; }
body.mx .hk .cardx small { font-size: 13.5px; }
body.mx .big { font-family: var(--head); font-weight: 800; }
body.mx .tbar > button { font: 700 11.5px/1 var(--font); }
body.mx .fld label { font: 700 14px/1.2 var(--font); color: var(--ink); }
body.mx .fld input, body.mx .fld textarea, body.mx .fld select { font-size: 16px; border-radius: 14px; }
body.mx .empty { font-size: 15px; color: var(--ink-3); }
body.mx .eyebrow { font: 800 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------- centred, never covered */
/* Letter spacing adds space after the last letter, which pushes a short
   word left of centre: the same indent before it puts it back. */
body.mx .sosb { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font: 900 14px/1 var(--head);
  letter-spacing: .1em; text-indent: .1em; min-width: 62px; }
body.mx .sosbig { text-align: center; }
body.mx .sosbig b { font-family: var(--head); text-indent: .05em; }
body.mx .pulse { font-family: var(--head); text-indent: .05em; text-align: center; }
body.mx .hcard .ringwrap { flex-wrap: nowrap; justify-content: flex-start; }
body.mx .ringwrap .rlist { min-width: 0; }
body.mx .tbar .pip { left: calc(50% + 4px); }
/* A short note drops in at the top, the way METeam's do, so it never sits on the buttons at the bottom. */
body.mx #toast { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: 420px;
  transform: translateY(-24px); text-align: center; z-index: 95; font: 700 14.5px/1.35 var(--font); padding: 11px 18px; border-radius: 16px; }
body.mx #toast.on { transform: none; }
body.mx .htl { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); margin: 0 -4px; }
body.mx .htl .track { padding-left: 14px; }
/* the bottom bar sits at the end of the page, under everything: it never floats over a list or shows the list through a gap */
body.mx .ctabar { position: relative; bottom: auto; z-index: 1; margin: 4px 0 0; border-radius: 28px; }
body.mx .ctabar .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.mx .ctabar .sum small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
body.mx .ctabar .sum b { font: 800 22px/1.1 var(--head); letter-spacing: -.02em; color: var(--title); }
body.mx .chart svg text { font-family: var(--font); }

/* ------------------------------------------------- the light behind it all: still
   Painted once and never again (a moving one made every screen repaint and the phone warm).
   After the brand's supergraphic: light gathered in the top-right and bottom-left corners,
   over a soft diagonal wash, in the colours of the screen (blue, teal, violet…). */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict;
  background: linear-gradient(155deg, color-mix(in srgb, var(--amb-3) 9%, var(--bg)) 0%, var(--bg) 38%, var(--bg) 62%, color-mix(in srgb, var(--amb-1) 11%, var(--bg)) 100%); }
.ambient i { position: absolute; border-radius: 50%; }
body.mx { --amb-1: var(--a1, #6FA8FF); --amb-2: var(--a2, #B7A4FF); --amb-3: var(--a3, #7CD3FF); --amb-4: #FFB3CF; --amb-o: .5; }
body.mx.dark { --amb-1: var(--d1, #1D4ED8); --amb-2: var(--d2, #6D4AE6); --amb-3: var(--d3, #0B7BC4); --amb-4: #A0306A; --amb-o: .42; }
.ambient .a1 { left: -38vw; bottom: -34vh; width: 110vw; height: 78vh; background: radial-gradient(closest-side, var(--amb-1), transparent); opacity: var(--amb-o); }
.ambient .a2 { right: -36vw; top: -30vh; width: 100vw; height: 70vh; background: radial-gradient(closest-side, var(--amb-2), transparent); opacity: calc(var(--amb-o) * .85); }
.ambient .a3 { right: -24vw; bottom: -46vh; width: 90vw; height: 70vh; background: radial-gradient(closest-side, var(--amb-3), transparent); opacity: calc(var(--amb-o) * .45); }
.ambient .a4 { display: none; }
.isofs .aurora i, .aurora i { animation: none !important; }
.isofs .aurora i { filter: none !important; }
body.mx .page-aurora { display: none; }
body.mx { background: var(--bg); }
.edge-glow { position: fixed; z-index: 0; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: linear-gradient(90deg, #12A3FC, #7C5CE6, #D6407A, #0657E3, #12A3FC); background-size: 300% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
  animation: edgeFlow 4s linear infinite paused; }
body.working .edge-glow { opacity: .45; animation-play-state: running; }
@keyframes edgeFlow { to { background-position: 300% 0; } }

/* ------------------------------------------------- a screen arriving */
#view .page.enter { animation: none; }
#view .page.enter > * { animation: wsRise .6s cubic-bezier(.16, 1, .3, 1) both; }
#view .page.enter > *:nth-child(2) { animation-delay: .05s; }
#view .page.enter > *:nth-child(3) { animation-delay: .1s; }
#view .page.enter > *:nth-child(4) { animation-delay: .15s; }
#view .page.enter > *:nth-child(5) { animation-delay: .2s; }
#view .page.enter > *:nth-child(6) { animation-delay: .25s; }
#view .page.enter > *:nth-child(n+7) { animation-delay: .3s; }
#view .page.enter > .ctabar { animation-name: wsRiseUp; }
@keyframes wsRise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes wsRiseUp { from { opacity: 0; transform: translateY(24px); } }

/* ------------------------------------------------- the liquid taskbar */
body.mx .tbar { background: linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .32)); border: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(1, 0, 107, .08), 0 18px 44px -14px rgba(1, 0, 107, .38); }
body.mx.dark .tbar { background: linear-gradient(135deg, rgba(60, 80, 130, .42), rgba(20, 32, 64, .38)); border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .14), inset -1px -1px 0 rgba(255, 255, 255, .05), 0 18px 44px -14px rgba(0, 0, 0, .7); }
body.mx .tbar > button.on svg { transform: translateY(-1px) scale(1.06); }

/* ------------------------------------------------- the opening logo */
.melogo-img { display: block; width: 44px; height: 44px; border-radius: 12px; background: #fff url(/apps/shared/me-logo.png) center / 84% no-repeat;
  box-shadow: 0 0 0 1px rgba(1, 0, 107, .1), 0 1px 2px rgba(1, 0, 107, .12); flex: 0 0 auto; }
#bootSplash { position: fixed; inset: 0; z-index: 260; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(1200px 700px at 50% 40%, #FFFFFF 0%, #EEF3FB 70%); transition: opacity .35s ease; font-family: 'Nunito Sans', system-ui, sans-serif; }
html.dark-boot #bootSplash { background: radial-gradient(1200px 700px at 50% 40%, #0B1A45 0%, #050A1C 70%); }
html.me-booting #bootSplash { display: flex; }
#bootSplash.leaving { opacity: 0; pointer-events: none; }
#bootSplash .logo { position: relative; overflow: hidden; width: 84px; height: 84px; border-radius: 22px; background: #fff url(/apps/shared/me-logo.png) center / 84% no-repeat;
  box-shadow: 0 18px 50px rgba(6, 87, 227, .22); animation: meArrive .7s cubic-bezier(.2, .9, .25, 1) both, meFloat 3.2s ease-in-out .7s infinite; }
#bootSplash .logo::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%);
  transform: translateX(-120%); animation: meSheen 2.8s cubic-bezier(.45, 0, .2, 1) .9s infinite; }
#bootSplash .boot-hello { margin: 0; font: 700 18px/1.3 'Montserrat', system-ui, sans-serif; color: #01006B; opacity: 0; transform: translateY(6px); animation: lgRise .45s cubic-bezier(.2, .8, .2, 1) .2s forwards; }
html.dark-boot #bootSplash .boot-hello { color: #fff; }
#bootSplash .boot-hello:empty { display: none; }
#bootSplash .boot-bar { --p: .15; position: relative; width: 190px; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(6, 87, 227, .14); }
#bootSplash .boot-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, #0657E3, #3FD0FF, #A78BFA, #0657E3); background-size: 300% 100%; box-shadow: 0 0 12px rgba(6, 87, 227, .55);
  transition: width .55s cubic-bezier(.2, .8, .2, 1); animation: meFlow 2.4s linear infinite; }
#bootSplash .boot-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: meSweep 1.5s ease-in-out infinite; }
html.me-booting #view, html.me-booting #dock { visibility: hidden; }
@keyframes meArrive { from { opacity: 0; transform: scale(.82); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes meFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.03); } }
@keyframes meSheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes meFlow { to { background-position: 300% 0; } }
@keyframes meSweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes lgRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- the sign-in card (METeam's) */
body.mx { --lg-head: 'Montserrat', 'Nunito Sans', system-ui, sans-serif; --lg-body: 'Nunito Sans', system-ui, sans-serif; --lg-ease: cubic-bezier(.2, .8, .2, 1);
  --lg-page: #EEF3FB; --lg-card: rgba(255, 255, 255, .80); --lg-ink: #0B1B3A; --lg-ink-2: #475569; --lg-ink-3: #64748B; --lg-line: rgba(1, 0, 107, .10);
  --lg-field: #FFFFFF; --lg-field-line: #CBD5E1; --lg-primary: #0657E3; --lg-primary-hover: #1E2488; --lg-link: #0657E3; --lg-heading: #01006B;
  --lg-focus: rgba(6, 87, 227, .22); --lg-ok: #0F7A4B; --lg-bad: #C81E1E; --lg-warn: #8A5D00; --lg-glow-1: rgba(6, 87, 227, .16); --lg-glow-2: rgba(18, 163, 252, .18);
  --lg-shadow: 0 1px 2px rgba(1, 0, 107, .06), 0 24px 60px -12px rgba(1, 0, 107, .20), inset 0 1px 0 rgba(255, 255, 255, .9);
  --lg-tagline: linear-gradient(90deg, #1A79CB 0%, #12A3FC 100%); --lg-proof: #01006B; --lg-tile-line: rgba(1, 0, 107, .10); }
body.mx.dark { --lg-page: #050A1C; --lg-card: rgba(13, 24, 50, .62); --lg-ink: #EAF0FA; --lg-ink-2: #AAB8D2; --lg-ink-3: #8193B3; --lg-line: rgba(255, 255, 255, .10);
  --lg-field: rgba(255, 255, 255, .04); --lg-field-line: rgba(255, 255, 255, .14); --lg-primary-hover: #2F72F0; --lg-link: #8BB8FF; --lg-heading: #FFFFFF;
  --lg-focus: rgba(92, 151, 255, .35); --lg-ok: #4ADE99; --lg-bad: #FF8A80; --lg-warn: #F5C453; --lg-glow-1: rgba(6, 87, 227, .30); --lg-glow-2: rgba(18, 163, 252, .20);
  --lg-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); --lg-tagline: linear-gradient(90deg, #8DBBFF 0%, #56BBFF 100%); --lg-proof: #FFFFFF; --lg-tile-line: transparent; }

body.mx.signed-out .ambient { display: none; }
.lg-gate { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  font-family: var(--lg-body); color: var(--lg-ink);
  background: radial-gradient(900px 600px at 15% 10%, var(--lg-glow-1), transparent 60%), radial-gradient(800px 600px at 90% 90%, var(--lg-glow-2), transparent 60%), var(--lg-page);
  background-attachment: fixed; }
@keyframes lgAurora { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 30% 20%, 70% 80%, 0 0; } }
.lg-gate .lg-wrap { margin: auto; width: 100%; max-width: 420px; }
.lg-card { padding: 34px 32px 28px; border-radius: 22px; background: var(--lg-card); border: 1px solid var(--lg-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--lg-shadow); animation: lgRise .5s var(--lg-ease) both; }
@media (max-width: 520px) { .lg-card { padding: 26px 20px 22px; border-radius: 20px; } }
.lg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.lg-head .melogo-img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 1px var(--lg-tile-line), 0 1px 2px rgba(1, 0, 107, .12); }
.lg-name { font: 800 16px/1.1 var(--lg-head); color: var(--lg-heading); letter-spacing: .2px; }
.lg-name small { display: block; margin-top: 4px; font: 600 11px/1 var(--lg-body); color: var(--lg-ink-3); letter-spacing: 1.4px; text-transform: uppercase; }
.lg-views { position: relative; transition: height .32s var(--lg-ease); }
.lg-view.entering > * { animation: lgRise .38s var(--lg-ease) both; }
.lg-view.entering > *:nth-child(2) { animation-delay: .04s; }
.lg-view.entering > *:nth-child(3) { animation-delay: .08s; }
.lg-view.entering > *:nth-child(4) { animation-delay: .12s; }
.lg-view.entering > *:nth-child(5) { animation-delay: .16s; }
.lg-view.entering > *:nth-child(n+6) { animation-delay: .20s; }
.lg-view.entering > .lg-alert { animation: none; }
.lg-title { margin: 0; font: 800 28px/1.15 var(--lg-head); letter-spacing: -.6px; color: var(--lg-heading); }
.lg-sub { margin: 8px 0 24px; font-size: 15.5px; line-height: 1.55; color: var(--lg-ink-2); text-wrap: pretty; }
.lg-sub b { color: var(--lg-ink); overflow-wrap: anywhere; }
.lg-steps { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 12px/1 var(--lg-body); letter-spacing: .4px; text-transform: uppercase; color: var(--lg-ink-3); }
.lg-steps i { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--lg-line); transition: background .3s ease; }
.lg-steps i.on { background: var(--lg-primary); }
.lg-field { margin-bottom: 16px; position: relative; }
.lg-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
label.lg-label { display: block; font: 700 13.5px/1.2 var(--lg-body); color: var(--lg-ink); margin: 0; }
.lg-field > .lg-label { margin-bottom: 7px; }
.lg-link { font: 700 13.5px/1.2 var(--lg-body); color: var(--lg-link); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.lg-link:hover { text-decoration: underline; }
.lg-control { position: relative; }
.lg-input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lg-field-line);
  background: var(--lg-field); color: var(--lg-ink); font: 400 16px/1.2 var(--lg-body); box-shadow: none; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.lg-input::placeholder { color: var(--lg-ink-3); opacity: .8; }
.lg-input:hover { border-color: color-mix(in srgb, var(--lg-primary) 45%, var(--lg-field-line)); }
.lg-input:focus { outline: none; border-color: var(--lg-primary); box-shadow: 0 0 0 4px var(--lg-focus); }
.lg-input.is-bad { border-color: var(--lg-bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lg-bad) 18%, transparent); }
.lg-input:-webkit-autofill, .lg-input:-webkit-autofill:hover, .lg-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--lg-page) inset !important; -webkit-text-fill-color: var(--lg-ink) !important; }
textarea.lg-input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
select.lg-input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
select.lg-input option { color: #0B1B3A; background: #fff; }
.lg-control .lg-input { padding-right: 52px; }
.lg-eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--lg-ink-3); display: grid; place-items: center; cursor: pointer; }
.lg-eye:hover { color: var(--lg-ink); background: color-mix(in srgb, var(--lg-ink) 6%, transparent); }
.lg-eye svg { width: 20px; height: 20px; }
.lg-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.45; color: var(--lg-ink-3); }
.lg-hint--bad { color: var(--lg-bad); font-weight: 700; } .lg-hint--ok { color: var(--lg-ok); font-weight: 700; } .lg-hint--warn { color: var(--lg-warn); font-weight: 700; }
.lg-strength { display: flex; gap: 6px; margin-top: 9px; }
.lg-strength i { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--lg-line); transition: background .25s ease; }
.lg-strength[data-level="1"] i:nth-child(-n+1) { background: var(--lg-bad); }
.lg-strength[data-level="2"] i:nth-child(-n+2) { background: var(--lg-warn); }
.lg-strength[data-level="3"] i:nth-child(-n+3) { background: #1D57B3; }
.lg-strength[data-level="4"] i { background: var(--lg-ok); }
.lg-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 20px; padding: 2px 0; cursor: pointer; font-size: 14.5px; color: var(--lg-ink); }
.lg-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--lg-primary); cursor: pointer; }
.lg-check > span { font-weight: 700; }
.lg-check small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--lg-ink-3); }
.lg-btn { position: relative; width: 100%; height: 50px; margin: 0; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer; font: 800 15.5px/1 var(--lg-head);
  letter-spacing: .1px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s ease, transform .1s ease, box-shadow .15s ease; }
.lg-btn:active { transform: scale(.985); }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--lg-focus); }
.lg-btn:disabled { cursor: default; opacity: .7; }
.lg-btn--primary { background: var(--lg-primary); color: #fff; box-shadow: 0 1px 2px rgba(1, 0, 107, .18), 0 8px 20px -8px color-mix(in srgb, var(--lg-primary) 70%, transparent); }
.lg-btn--primary:hover:not(:disabled) { background: var(--lg-primary-hover); }
.lg-btn--quiet { background: transparent; color: var(--lg-ink); border: 1px solid var(--lg-field-line); }
.lg-btn--quiet:hover:not(:disabled) { background: color-mix(in srgb, var(--lg-ink) 5%, transparent); }
.lg-btn--danger { background: color-mix(in srgb, var(--lg-bad) 12%, transparent); color: var(--lg-bad); }
.lg-row { display: flex; gap: 10px; }
.lg-row .lg-btn--quiet { flex: 0 0 auto; width: auto; }
.lg-spin { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.lg-btn--quiet .lg-spin { border-color: color-mix(in srgb, var(--lg-ink) 25%, transparent); border-top-color: var(--lg-ink); }
.lg-tick { width: 22px; height: 22px; }
.lg-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: lgDraw .32s var(--lg-ease) forwards; }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
.lg-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--lg-ink);
  background: color-mix(in srgb, var(--lg-bad) 9%, transparent); border: 1px solid color-mix(in srgb, var(--lg-bad) 35%, transparent); }
.lg-alert[hidden] { display: none; }
.lg-alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--lg-bad); }
.lg-alert--success { background: color-mix(in srgb, var(--lg-ok) 10%, transparent); border-color: color-mix(in srgb, var(--lg-ok) 35%, transparent); }
.lg-alert--success svg { color: var(--lg-ok); }
.lg-shake { animation: lgShake .34s cubic-bezier(.36, .07, .19, .97); }
@keyframes lgShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lg-switch { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--lg-ink-2); }
.lg-switch .lg-link { font-size: 14.5px; }
.lg-minor { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.lg-minor .lg-link { font-size: 13.5px; color: var(--lg-ink-2); font-weight: 700; }
.lg-status { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--lg-primary) 12%, transparent); color: var(--lg-primary); }
body.mx.dark .lg-status { color: var(--lg-link); }
.lg-status svg { width: 30px; height: 30px; }
.lg-status.ok { background: color-mix(in srgb, var(--lg-ok) 14%, transparent); color: var(--lg-ok); }
.lg-status.bad { background: color-mix(in srgb, var(--lg-bad) 12%, transparent); color: var(--lg-bad); }
.lg-timeline { list-style: none; margin: 4px 0 26px; padding: 0; }
.lg-timeline li { position: relative; padding: 0 0 18px 36px; font-size: 14.5px; color: var(--lg-ink-2); }
.lg-timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--lg-line); }
.lg-timeline li:last-child::before { display: none; }
.lg-timeline li b { display: block; margin-bottom: 2px; color: var(--lg-ink); font-weight: 800; }
.lg-dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-line); color: var(--lg-ink-3); }
.lg-timeline .done .lg-dot { background: var(--lg-ok); color: #fff; }
.lg-timeline .done::before { background: color-mix(in srgb, var(--lg-ok) 55%, var(--lg-line)); }
.lg-timeline .now .lg-dot { background: color-mix(in srgb, var(--lg-primary) 16%, transparent); }
.lg-timeline .now .lg-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lg-primary); animation: lgPulse 1.6s ease-in-out infinite; }
@keyframes lgPulse { 50% { transform: scale(1.6); opacity: .4; } }
.lg-dot svg { width: 14px; height: 14px; }
.lg-foot { margin: 22px auto 0; text-align: center; }
.lg-foot p { margin: 0 auto; width: fit-content; font: 700 15px/1.4 var(--lg-head); letter-spacing: -.1px; background: var(--lg-tagline); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-proof { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--lg-ink-3); }
.lg-proof b { color: var(--lg-proof); font-family: var(--lg-head); }
.lg-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; border-radius: 14px; background: var(--lg-page); border: 1px solid var(--lg-field-line);
  box-shadow: 0 18px 40px -12px rgba(1, 0, 107, .35); overflow: hidden; animation: lgRise .2s var(--lg-ease) both; }
.lg-sugg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 11px 14px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--lg-ink); font: inherit; }
.lg-sugg button + button { border-top: 1px solid var(--lg-line); }
.lg-sugg button:hover, .lg-sugg button:focus { background: color-mix(in srgb, var(--lg-primary) 8%, transparent); outline: none; }
.lg-sugg b { font: 700 15px/1.3 var(--lg-body); } .lg-sugg small { font-size: 13px; color: var(--lg-ink-3); }
.lg-sugg .new b { color: var(--lg-link); }
.lg-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--lg-primary) 35%, var(--lg-field-line));
  background: color-mix(in srgb, var(--lg-primary) 7%, transparent); margin-bottom: 16px; }
.lg-picked > div { flex: 1; min-width: 0; } .lg-picked b { display: block; font: 800 15.5px/1.3 var(--lg-head); color: var(--lg-heading); } .lg-picked small { font-size: 13px; color: var(--lg-ink-3); }
.lg-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 20px; font-size: 14.5px; }
.lg-kv dt { color: var(--lg-ink-3); font-weight: 600; } .lg-kv dd { margin: 0; color: var(--lg-ink); font-weight: 700; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .lg-gate, .lg-card, .lg-view.entering > *, #bootSplash .logo, #bootSplash .logo::after, #bootSplash .boot-bar i, .lg-timeline .now .lg-dot::after,
  .ambient i, #view .page.enter > *, .edge-glow { animation: none !important; }
}

/* ------------------------------------------------- pull to refresh */
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px)); left: 50%; z-index: 120; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--glass-thick); border: 1px solid var(--edge); box-shadow: var(--shadow-lg);
  color: var(--accent); opacity: 0; pointer-events: none; transform: translateY(-60px); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ptr.ptr-ease { transition: transform .25s ease, opacity .25s ease; }
.ptr svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.ptr-ready svg { color: var(--ok-f); }
.ptr.ptr-busy svg { animation: ptrSpin .9s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------- the bell */
body.mx .circ.bell.ringing svg { animation: bellRing 1s ease 1; transform-origin: 50% 12%; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(12deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.notes { display: flex; flex-direction: column; }
.notes .note { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 13px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 0; }
.notes .note:first-child { border-top: 0; }
.notes .note .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--fill); color: var(--ink); }
.notes .note .ic svg { width: 21px; height: 21px; }
.notes .note b { display: block; font: 700 15.5px/1.3 var(--head); color: var(--title); }
.notes .note span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.notes .note small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }
.notes .note.new b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--bad-f); vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .sheet .notes .note { animation: ibSlide .45s cubic-bezier(.16, 1, .3, 1) both; } }
@keyframes ibSlide { from { opacity: 0; transform: translateX(32px); } }

/* ------------------------------------------------- pieces the screens share */
/* counting rooms: a row per kind with − n + */
.cnt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cnt:first-child { border-top: 0; padding-top: 0; }
.cnt .ic2 { width: 42px; height: 42px; border-radius: 13px; background: var(--fill); display: grid; place-items: center; color: var(--ink); flex: 0 0 auto; }
.cnt .ic2 svg { width: 28px; height: 28px; }
.cnt .tx { flex: 1; min-width: 0; }
.cnt .tx b { display: block; font: 700 15.5px/1.3 var(--font); color: var(--title); }
.stp { display: flex; align-items: center; gap: 2px; background: var(--fill); border-radius: 12px; padding: 3px; flex: 0 0 auto; }
.stp button { width: 38px; height: 36px; border: 0; border-radius: 9px; background: none; font: 600 20px/1 var(--font); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.stp button:hover:not(:disabled) { background: var(--solid); }
.stp output { min-width: 26px; text-align: center; font: 800 16px/1 var(--head); font-variant-numeric: tabular-nums; }
.needcard { border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.needcard .row .dv { width: 48px; height: 48px; border-radius: 15px; }
.needcard .row .dv svg { width: 28px; height: 28px; }
.quick3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick3 button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 14px 8px; border-radius: 24px; border: 1px solid var(--edge);
  background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 var(--edge); color: var(--ink); cursor: pointer; font: 700 14px/1.25 var(--head); text-align: center;
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); transition: transform .25s var(--spring); }
.quick3 button:active { transform: scale(.95); }
.quick3 button span.ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.quick3 button span.ic svg { width: 24px; height: 24px; }
/* more from ME, coming soon: four smaller tiles under the three */
.quick4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: -2px; }
.quick4 button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 96px; padding: 14px 4px 10px; border-radius: 22px; border: 1px solid var(--edge);
  background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 var(--edge); color: var(--ink-2); cursor: pointer; font: 700 12.5px/1.2 var(--head); text-align: center;
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); transition: transform .25s var(--spring); }
.quick4 button:active { transform: scale(.95); }
.quick4 button span.ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; opacity: .78; }
.quick4 button span.ic svg { width: 20px; height: 20px; }
.quick4 button .soon { margin-top: auto; padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font: 800 10px/1.3 var(--font); letter-spacing: .04em; }
@media (min-width: 700px) { .quick4 { gap: 12px; } .quick4 button { font-size: 14px; min-height: 104px; } }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat3 > div { border-radius: 20px; padding: 14px 12px; background: var(--fill); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat3 small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); line-height: 1.2; }
.stat3 b { font: 800 21px/1.1 var(--head); letter-spacing: -.02em; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 8px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ok-f), var(--accent)); transition: width 1s var(--ease); }
.prog.warn i { background: linear-gradient(90deg, var(--chk-f), #FF6B3D); }
.prog.bad i { background: var(--bad-f); }
.prog.light { background: rgba(255, 255, 255, .25); } .prog.light i { background: #fff; }
.tagrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--font); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.tag.repair { background: var(--s2-s); color: var(--s2-t); } .tag.maintenance { background: var(--s3-s); color: var(--s3-t); } .tag.sos { background: var(--bad-s); color: var(--bad); }
.tag.install, .tag.order { background: var(--s1-s); color: var(--s1-t); }
.jobcard { border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--edge); }
.jobcard .head { font: 800 18px/1.25 var(--head); letter-spacing: -.02em; color: var(--title); }
.jobcard .foot { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.jobcard .due { font: 800 12.5px/1 var(--font); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.jobcard .due::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-f); }
.jobcard .due.soon { color: var(--chk); } .jobcard .due.soon::before { background: var(--chk-f); }
.jobcard .due.late { color: var(--bad); } .jobcard .due.late::before { background: var(--bad-f); }
.seg.wide { width: 100%; }
.seg button .n { font-weight: 800; opacity: .6; margin-left: 4px; }
.hero-mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-mini .hi { font-size: 15px; opacity: .88; font-weight: 600; }
.hero-mini .num { font: 800 34px/1.05 var(--head); letter-spacing: -.04em; }
.hero-mini .sub { font-size: 15px; opacity: .9; font-weight: 600; }
.hcard .pill.on-band { background: rgba(255, 255, 255, .2); color: #fff; }
.hcard .chips { margin-top: 14px; }
.hcard.tap { cursor: pointer; text-align: left; border: 0; width: 100%; font: inherit; }
.hcard.tap:active { transform: scale(.99); }
.bud { display: flex; flex-direction: column; gap: 10px; }
.bud .bl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bud .bl > b { font: 700 15.5px/1.3 var(--head); color: var(--title); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud .bl > span { font: 700 14px/1.2 var(--font); color: var(--ink-2); white-space: nowrap; }
.bud .bl > span em { font-style: normal; color: var(--ink-3); font-weight: 600; }
.bud .bl .prog { grid-column: 1 / -1; height: 7px; }
.bud .bl small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: -2px; }
.bud .bl.sub { padding-left: 16px; border-left: 2px solid var(--line-2); margin-left: 4px; }
.bud .bl.sub > b { font-family: var(--font); font-weight: 700; font-size: 14.5px; }
.bud .kind { display: flex; align-items: center; gap: 8px; font: 800 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.bud .kind::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bedit { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--fill); }
.bedit .top { display: flex; align-items: center; gap: 10px; }
.bedit .top b { flex: 1; font: 800 16px/1.2 var(--head); color: var(--title); display: flex; align-items: center; gap: 8px; }
.bedit .top b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bedit input, .bedit select { font: inherit; font-size: 16px; color: var(--ink); background: var(--glass-thick); border: 1px solid var(--edge); border-radius: 12px; min-height: 46px; padding: 0 12px; width: 100%; }
.bedit .top .money { flex: 0 1 170px; min-width: 0; }
.bedit .money { text-align: right; font-weight: 700; }
/* A part: what it is for (and remove) on top, its name and amount below, both rows ending on the same edge. */
.bedit .part { display: grid; grid-template-columns: minmax(0, 1fr) 100px 40px; gap: 8px; align-items: center; }
.bedit .part .scope { grid-column: 1 / 3; min-width: 0; }
.bedit .part .x { grid-column: 3; justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--glass-thick); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.bedit .part .pname { grid-column: 1; min-width: 0; }
.bedit .part .pamt { grid-column: 2 / 4; min-width: 0; }
.bedit .part + .part { padding-top: 10px; border-top: 1px dashed var(--line-2); }
/* The approval bar on a job: one line of totals, two buttons that always fit. */
.ctabar.jobbar { gap: 10px; padding: 14px 16px; }
body.mx .ctabar.jobbar .sum { align-items: flex-end; }
body.mx .ctabar.jobbar .sum b { font-size: 20px; white-space: nowrap; }
body.mx .ctabar.jobbar .sum .dp b { font-size: 15.5px; color: var(--ink-2); }
.ctabar.jobbar .btnrow > .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 10px; font-size: clamp(14px, 4vw, 15.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctabar.jobbar > small { font-size: 13px; font-weight: 600; }
.bedit .add { align-self: flex-start; border: 0; background: none; color: var(--accent); font: 700 14.5px/1 var(--font); padding: 8px 0; cursor: pointer; }

/* ---- Money: the year, the chart, where it goes, transactions, wishlist ---- */
.chips.scope { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.chips.scope::-webkit-scrollbar { display: none; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mhead b { font: 800 21px/1.2 var(--head); letter-spacing: -.02em; color: var(--title); }
.mhead span { font: 700 13.5px/1 var(--font); color: var(--ink-3); white-space: nowrap; }
.cardhd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seg.sm { padding: 3px; } .seg.sm button { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.delta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; font: 600 14px/1.3 var(--font); color: var(--ink-2); margin-bottom: 6px; }
.delta b { font: 800 18px/1 var(--head); color: var(--title); letter-spacing: -.02em; }
.delta .ch { font-weight: 700; color: var(--ink-3); } .delta .ch.up { color: var(--chk); } .delta .ch.down { color: var(--ok); }
.chart text.mk { fill: var(--title); font-weight: 800; }
.chart svg.mini { max-height: 240px; } /* wide screens: the chart keeps its shape instead of growing tall */
.where { display: flex; flex-direction: column; gap: 10px; }
.bkind { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.where > .bkind:first-child { margin-top: 0; padding-top: 2px; border-top: 0; }
.bkind b { display: inline-flex; align-items: center; gap: 8px; font: 800 15.5px/1.2 var(--head); color: var(--title); }
.bkind b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.bkind span { font: 700 14px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.bkind em, .brow .bn em { font-style: normal; color: var(--ink-3); font-weight: 600; }
.bdown { display: flex; flex-direction: column; gap: 12px; }
.bgh { display: flex; justify-content: space-between; gap: 10px; font: 800 12px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.brow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brow .bi { width: 44px; height: 44px; border-radius: 14px; background: var(--fill); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.brow .bi svg { width: 30px; height: 30px; }
.brow .bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.brow .bn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.brow .bn b { font: 700 15px/1.25 var(--font); color: var(--title); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bn > span { font: 700 14px/1.2 var(--font); color: var(--ink-2); white-space: nowrap; flex: 0 0 auto; }
.brow .prog { height: 6px; }
.brow small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.prog.kind i { background: var(--c, var(--accent)); } .prog.soft i { background: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.stack { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--fill-2); gap: 2px; }
.stack i { display: block; height: 100%; }
.none { margin: 0; padding: 8px 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.txr { display: flex; align-items: center; gap: 12px; }
.txr .dv { width: 44px; height: 44px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.txr .dv svg { width: 30px; height: 30px; }
.row .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: right; }
.row .amt b { font: 800 15.5px/1.1 var(--head); color: var(--title); white-space: nowrap; }
.row .amt small { font: 700 12px/1 var(--font); color: var(--c, var(--ink-3)); white-space: nowrap; }
.wsum { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; font: 600 14px/1.3 var(--font); color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wsum b { font: 800 17px/1 var(--head); color: var(--title); } .wsum .bad { color: var(--bad); font-weight: 700; }
.budcard .tx span { line-height: 1.4; }
.overl { margin: 0; font: 700 13.5px/1.35 var(--font); color: var(--bad); } .row .tx span.overl { color: var(--bad); font-weight: 700; margin-top: 4px; }
.mhead + .overl { margin-top: -8px; } .peekt .overl { margin-top: 6px; }
/* The preview from Today: a thicker, brighter glass sheet. */
.sheet.peek { gap: 16px; background: color-mix(in srgb, var(--glass-thick) 78%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent); box-shadow: 0 -12px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14); }
.peekt { flex: 1; min-width: 0; }
.peekt small { display: block; font: 800 12.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.peekt h3 { font: 800 24px/1.15 var(--head); letter-spacing: -.03em; color: var(--title); }
.peekb { display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.peeksec { font: 800 16px/1.2 var(--head); color: var(--title); margin-top: 4px; }
.khead { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.khead .kt { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.khead .kt b { font: 800 26px/1 var(--head); letter-spacing: -.03em; color: var(--title); }
.khead .kt span { font: 600 14px/1.3 var(--font); color: var(--ink-2); }
.khead small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
/* Sheets with a form: supplies as silhouette tiles, two fields side by side. */
.sform { gap: 14px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.stile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; border: 1.5px solid transparent;
  background: var(--fill); color: var(--ink); cursor: pointer; font: inherit; min-height: 92px; transition: background .2s, border-color .2s, transform .15s; }
.stile svg { width: 34px; height: 34px; }
.stile b { font: 700 12.5px/1.2 var(--font); color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
.stile.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .stile.on b { color: var(--accent); }
.stile:active { transform: scale(.96); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two > .fld { min-width: 0; }
.fld input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; }
.fld .money { text-align: right; font-weight: 700; }
.wtop { display: flex; align-items: flex-end; gap: 12px; } .wtop .fld { flex: 1; min-width: 0; }
.wtop .wpic { width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto; }
.btn.danger-t { color: var(--bad); }
/* ---- Requests of several devices (batches) and who is on them ---- */
.batchnav { gap: 10px; padding: 16px; }
.batchnav .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.batchnav .chips::-webkit-scrollbar { display: none; }
.batchnav .chip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-f); flex: 0 0 auto; }
.chip .dot.chk { background: var(--chk-f); } .chip .dot.svc { background: var(--svc-f); } .chip .dot.bad { background: var(--bad-f); } .chip .dot.nil { background: var(--ink-3); }
.techc .tx small { display: block; margin-top: 4px; font: 700 12.5px/1.3 var(--font); color: var(--accent); }
.qdev { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.card > h4 + .qdev { margin-top: 0; padding-top: 0; border-top: 0; }
.qdev .dv { width: 36px; height: 36px; border-radius: 12px; } .qdev .dv svg { width: 24px; height: 24px; }
.qdev b { flex: 1; min-width: 0; font: 800 15.5px/1.2 var(--head); color: var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qdev small { font: 700 12px/1 var(--font); color: var(--ink-3); }
.bitems { display: flex; flex-direction: column; gap: 8px; }
.bitem { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bitem .dv { width: 34px; height: 34px; border-radius: 11px; } .bitem .dv svg { width: 22px; height: 22px; }
.bitem b { font: 700 14.5px/1.25 var(--font); color: var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bitem .st { font-size: 12.5px; }
.jobcard .tag.batch { align-self: flex-start; background: var(--fill); color: var(--ink-2); }
.opt .optt { display: flex; justify-content: space-between; align-items: flex-start; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); display: grid; place-items: center; }
.opt .tick svg { width: 15px; height: 15px; stroke-width: 3; }

.inv { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.inv > .docno { font: 800 16.5px/1.2 var(--head); letter-spacing: -.01em; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .row .dv { width: 44px; height: 44px; border-radius: 14px; } .inv .row .dv svg { width: 26px; height: 26px; }
.inv .row .tx span { display: block; font-size: 14px; color: var(--ink-2); margin: 0; }
.inv .row .tx span + span { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.inv .amt span.st { font-size: 13px; }
@media (max-width: 360px) { .row > .dv { width: 44px; height: 44px; border-radius: 14px; } .row > .dv svg { width: 28px; height: 28px; } .row { gap: 12px; } }
.center { text-align: center; }
.dist5 { display: grid; grid-template-columns: 14px 1fr 28px; gap: 6px 10px; align-items: center; font: 700 13px/1 var(--font); color: var(--ink-2); }
.dist5 i { display: block; height: 8px; border-radius: 9px; background: var(--fill); overflow: hidden; }
.dist5 i b { display: block; height: 100%; background: #FFB800; border-radius: 9px; }
.dist5 em { font-style: normal; text-align: right; }
.bigrate { display: flex; align-items: center; gap: 14px; }
.bigrate b { font: 800 44px/1 var(--head); letter-spacing: -.04em; color: var(--title); }
.bigrate .stars5 { color: #FFB800; font-size: 18px; letter-spacing: 2px; }
.bigrate small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.reqcard { border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.reqcard .who b { display: block; font: 800 17px/1.25 var(--head); color: var(--title); }
.reqcard .who span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.steps3 { display: flex; gap: 6px; align-items: center; font: 700 12.5px/1 var(--font); color: var(--ink-3); flex-wrap: wrap; }
.steps3 span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--fill); }
.steps3 span.done { background: var(--ok-s); color: var(--ok); } .steps3 span.now { background: var(--accent-soft); color: var(--accent); }
.hello-flow { background-image: linear-gradient(100deg, var(--title) 0%, var(--accent) 40%, #6D4AE6 60%, var(--title) 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: helloFlow 6s ease-in-out .3s infinite alternate; }
@keyframes helloFlow { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .hello-flow { animation: none; } }

/* ---- Spaces: one branch at a size that fits, its rooms beside it; or every branch side by side ---- */
.brbtn { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; }
.brbtn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brbtn svg { width: 18px; height: 18px; flex: 0 0 auto; } .brbtn svg:last-child { width: 14px; height: 14px; opacity: .7; }
.spwrap { display: flex; flex-direction: column; gap: 18px; }
.spside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spsidehd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.spchips { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.spstage { position: relative; min-width: 0; }
.iso.iso-page > svg { max-height: min(62vh, 560px); }
/* full screen: the drawing takes the whole height, so the floor sits in the middle of the screen */
.isofs .iso.iso-page > svg { max-height: none; }
/* Floors flying away, and a zoomed-in view, stay inside the card (in full screen too). */
.iso.iso-page, .iso.iso-mini, .iso.plpv { overflow: hidden; }
.spnone { min-height: 220px; justify-content: center; align-items: flex-start; }
@media (min-width: 980px) {
  .spwrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
  .spside { position: sticky; top: 8px; }
  .spside .rooms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.spgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .spgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .spgrid { grid-template-columns: 1fr 1fr 1fr; } }
.spcard { border-radius: 28px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .spcard { animation: wsRise .6s var(--ease) both; } }
.sphd { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 4px 4px 0; }
.sphd .tx { flex: 1; min-width: 0; } .sphd small { display: block; font: 700 12px/1.2 var(--font); color: var(--ink-3); }
.sphd b { display: block; font: 800 17px/1.2 var(--head); color: var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sphd .fit { font: 800 14px/1 var(--font); color: var(--ink-2); }
.sphd svg { width: 16px; height: 16px; transform: rotate(-90deg); opacity: .6; }
.iso.iso-mini { border-radius: 20px; background: var(--fill); padding: 4px; }
.iso.iso-mini > svg { margin-top: 0; max-height: 260px; min-height: 160px; }
.iso.iso-mini .isoctl, .iso.iso-mini .isohint, .iso.iso-mini .isolv, .iso.iso-mini .lvcap { display: none; }
.spempty { min-height: 160px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: none; color: var(--ink-2); font: 700 14.5px/1 var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.spempty svg { width: 22px; height: 22px; }
/* The floor picker over the 3D, and the floors' names. */
/* The floor picker, as indoor maps do it: a slim column on the right edge, ▲ · the floor · ▼; tapping the floor
   opens the whole stack, top floor first, each with its name. The floor's name sits large at the bottom left. */
.isolv { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; padding: 4px; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: box-shadow .3s; }
.isolv.open { box-shadow: 0 16px 44px rgba(0, 0, 0, .32); }
.isolv .lvup, .isolv .lvdn, .isolv .lvedit { width: 40px; height: 36px; border: 0; border-radius: 14px; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.isolv .lvup svg, .isolv .lvdn svg { width: 18px; height: 18px; } .isolv .lvup svg { transform: rotate(180deg); }
.isolv .lvup:hover:not(:disabled), .isolv .lvdn:hover:not(:disabled), .isolv .lvedit:hover { background: var(--fill); color: var(--ink); }
.isolv .lvup:disabled, .isolv .lvdn:disabled { opacity: .28; cursor: default; }
.isolv .lvedit { height: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: height .35s var(--ease), opacity .2s; }
.isolv.open .lvedit { height: 36px; opacity: 1; pointer-events: auto; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.isolv .lvedit svg { width: 17px; height: 17px; }
.isolv .lvstack { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.isolv .lvb { position: relative; width: 40px; height: 40px; border: 0; padding: 0; border-radius: 14px; background: none; color: var(--ink-2); cursor: pointer; font: inherit;
  transition: height .35s var(--ease), opacity .25s, background .2s, color .2s; }
.isolv .lvb .lvn { display: grid; place-items: center; width: 40px; height: 40px; font: 800 15px/1 var(--head); }
.isolv .lvb.on { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.isolv .lvb:not(.on):hover { background: var(--fill); color: var(--ink); }
.isolv:not(.open) .lvb:not(.on) { height: 0; opacity: 0; pointer-events: none; overflow: hidden; margin: -2px 0; }
/* Open: each floor's name beside its button, to the left. */
.isolv .lvname { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 7px 11px; border-radius: 11px;
  background: var(--glass-thick); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--edge); color: var(--title);
  font: 700 13px/1 var(--font); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.isolv.open .lvname { opacity: 1; transform: translate(0, -50%); }
.isolv .lvb.on .lvname { color: var(--accent); }
.lvcap { position: absolute; left: 22px; top: 22px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; pointer-events: none; max-width: calc(100% - 84px); }
.lvcap b { font: 800 19px/1.1 var(--head); letter-spacing: -.02em; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 12px var(--glass-thick); }
.lvcap small { font: 700 12px/1 var(--font); color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) { .lvcap b { animation: wsRise .5s var(--ease) both; } }
.iso .isolv ~ .isohint { display: none; }
/* more than one branch: the switcher at the bottom middle, the floor's name above it */
.isobr { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; max-width: calc(100% - 24px); }
.isobr .brs { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.isobr .brs svg { width: 18px; height: 18px; transform: rotate(90deg); } .isobr .brs.nx svg { transform: rotate(-90deg); }
.isobr .brs:hover { background: var(--fill); color: var(--ink); }
.isobr .brn { min-width: 0; max-width: 200px; border: 0; background: none; cursor: pointer; padding: 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--title); }
.isobr .brn b { max-width: 100%; font: 800 14.5px/1.15 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isobr .brn small { font: 700 11px/1 var(--font); color: var(--ink-3); }

.iso.iso-page.hasbr > svg { margin-bottom: 64px; }
.iso.iso-page:has(.isolv) > svg { margin-bottom: 40px; }
/* The Floors sheet: top floor first, renamed, reordered, added, taken away. */
.fladd { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: none; color: var(--accent); font: 700 14.5px/1 var(--font); cursor: pointer; }
.fladd svg { width: 16px; height: 16px; } .fladd:hover { background: var(--accent-soft); }
.efl { display: flex; flex-direction: column; gap: 8px; }
.eflrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 2px; border-radius: 18px; background: var(--fill); touch-action: none; }
.eflrow.lift { position: relative; z-index: 2; background: var(--glass-thick); box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.eflrow .grip { width: 26px; flex: 0 0 auto; text-align: center; color: var(--ink-3); font: 800 14px/1 var(--font); letter-spacing: -2px; cursor: grab; padding: 14px 0; user-select: none; }
.eflrow .lvn { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--glass-thick); font: 800 14px/1 var(--head); color: var(--title); }
.eflrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eflrow input { font: 700 15.5px/1.2 var(--head); color: var(--title); background: none; border: 0; border-bottom: 1.5px solid transparent; padding: 4px 2px; min-width: 0; width: 100%; }
.eflrow input:focus { outline: none; border-bottom-color: var(--accent); }
.eflrow small { font: 600 12px/1.2 var(--font); color: var(--ink-3); padding-left: 2px; }
.eflrow .flmv { display: flex; gap: 2px; flex: 0 0 auto; }
.eflrow .flmv button { width: 34px; height: 36px; border: 0; border-radius: 11px; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.eflrow .flmv button svg { width: 16px; height: 16px; transform: rotate(180deg); } .eflrow .flmv button.dn svg, .eflrow .flmv button.rm svg { transform: none; }
.eflrow .flmv button.rm { color: var(--bad); }
.eflrow .flmv button:disabled { opacity: .22; cursor: default; } .eflrow .flmv button:hover:not(:disabled) { background: var(--glass-thick); }
.iso .flbl { font-weight: 800; fill: var(--title); paint-order: stroke; stroke: var(--glass-thick); stroke-width: 3px; stroke-linejoin: round; letter-spacing: .02em; }
.iso .floor { transition: none; }


/* ---- The floor plan editor ---- */
.planwrap { display: flex; flex-direction: column; gap: 18px; }
.planed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.planside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (min-width: 980px) { .planwrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; } .planside { position: sticky; top: 8px; } }
.pltabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pltabs .chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; } .pltabs .chip .n { opacity: .6; font-weight: 800; }
.pltabs .chip.add { background: none; border: 1.5px dashed var(--line-2); color: var(--accent); }
.plfloor { display: flex; flex-direction: column; gap: 8px; }
.plrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.plroom .plrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.plrow .fld { min-width: 0; } .plrow .fld label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plcanvas { padding: 12px; gap: 8px; }
.plsvg { display: block; width: 100%; height: auto; max-height: 64vh; touch-action: none; -webkit-user-select: none; user-select: none; }
.plsvg .grid line { stroke: var(--grid); stroke-width: .02; } .plsvg .grid line.b { stroke: var(--axis); stroke-width: .035; }
.plsvg .outline { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--ink-3); stroke-width: .05; stroke-dasharray: .2 .15; }
.plsvg .outline.fixed { stroke: var(--title); stroke-dasharray: none; stroke-width: .07; }
.plsvg .pside { font: 700 .34px var(--font); fill: var(--ink-3); }
.plsvg .below { fill: none; stroke: var(--ink-3); stroke-width: .03; stroke-dasharray: .12 .1; opacity: .7; }
.plsvg .proom { cursor: grab; outline: none; }
.plsvg.dragging .proom { cursor: grabbing; }
.plsvg .proom .body { fill: var(--glass-thick); stroke: var(--ink-2); stroke-width: .05; transition: fill .2s; }
.plsvg .proom:hover .body, .plsvg .proom:focus-visible .body { fill: color-mix(in srgb, var(--accent) 14%, var(--glass-thick)); }
.plsvg .proom.sel .body { fill: color-mix(in srgb, var(--accent) 20%, var(--glass-thick)); stroke: var(--accent); stroke-width: .08; }
.plsvg .proom.bad .body { stroke: var(--bad); stroke-dasharray: .15 .1; }
.plsvg .proom .nm { font: 800 .36px var(--head); fill: var(--title); pointer-events: none; }
.plsvg .proom .dm { font: 700 .26px var(--font); fill: var(--ink-3); pointer-events: none; }
.plsvg .proom .hd { fill: var(--accent); stroke: var(--solid); stroke-width: .04; }
.plsvg .proom .hd[data-m="l"], .plsvg .proom .hd[data-m="r"] { cursor: ew-resize; } .plsvg .proom .hd[data-m="t"], .plsvg .proom .hd[data-m="b"] { cursor: ns-resize; }
.plhint { text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.plwarn { margin: -6px 0 0; font: 700 13.5px/1.35 var(--font); color: var(--bad); }
.plwarn:empty { display: none; }
.plroom { gap: 12px; }
.plrooms { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; } .plrooms .chip { flex: 0 0 auto; }
.plroom select, .plfloor select { font: inherit; font-size: 16px; color: var(--ink); background: var(--glass-thick); border: 1px solid var(--edge); border-radius: 14px; min-height: 48px; padding: 0 12px; width: 100%; }
.iso.plpv > svg { max-height: 46vh; }
.planside > .btn { margin-top: 6px; }

/* ------------------------------------------------- the technician at work (me-tech.js) */
/* His bubble, ring and chip are dark in both themes, like a game's, so they read over any floor. */
.tkl { font: 800 10.5px/1 var(--font, 'Nunito Sans', sans-serif); fill: #FFFFFF; }
.tks { font: 700 8.5px/1 var(--font, 'Nunito Sans', sans-serif); fill: #9FB0C8; }
.tkf { fill: #C9D5E6; }
.tkt { font: 800 10.5px/1 var(--head, 'Montserrat', sans-serif); fill: #FFFFFF; font-variant-numeric: tabular-nums; }
.tkn { font: 900 11px/1 var(--head, 'Montserrat', sans-serif); fill: #FFFFFF; }
.iso .lft-d { fill: var(--m2); stroke: var(--me); stroke-width: .8; }
.iso .lft-l { fill: #FF9F1C; stroke: #101A2B; stroke-width: 1; }
.tkws { display: block; width: 100%; height: auto; border-radius: 20px; background: #121A28; }
.wkcard { gap: 12px; }
.wkcard .wkrow { display: flex; align-items: center; gap: 12px; }
.wkcard .wkrow .dv { flex: 0 0 auto; }
.wkcard .wkrow .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wkcard .wkrow .tx b { font: 750 16px/1.25 var(--head); color: var(--title); }
.wkcard .wkrow .tx span { font: 600 13.5px/1.35 var(--font); color: var(--ink-2); }
.wkcard .wkt { flex: 0 0 auto; font: 800 20px/1 var(--head); font-variant-numeric: tabular-nums; color: var(--title); }
.wkcard .wkt.svc { color: var(--svc); }
.wkcard .wkt.chk { color: var(--chk); }
.iso .tkstem { fill: none; stroke: rgba(16, 26, 43, .55); stroke-width: 1.2; stroke-dasharray: 2 2; }
.mx.dark .iso .tkstem { stroke: rgba(200, 215, 235, .45); }
@media (max-width: 420px) { .wkcard .wkt { font-size: 17px; } .wkcard .wkrow .tx b { font-size: 15px; } }
.iso .tkstem { pointer-events: none; }
.iso .tktop [data-k] { cursor: pointer; }
.iso .tktop [data-k]:focus-visible { outline: none; } .iso .tktop [data-k]:focus-visible rect { stroke: var(--accent); stroke-width: 2.4; }

/* ------------------------------------------------- every piece of equipment (Today's banner) */
.eqv { display: flex; flex-direction: column; gap: 14px; }
.eqvhd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.eqvhd > b { font: 800 18px/1.2 var(--head); color: var(--title); }
.eqroom { display: flex; flex-direction: column; gap: 10px; }
.eqrn { margin: 0; font: 800 11.5px/1.3 var(--font); letter-spacing: .08em; text-indent: .08em; text-transform: uppercase; color: var(--ink-3); }
.eqcs { display: flex; flex-wrap: wrap; gap: 14px; }
.eqc { --g: var(--ok-f); position: relative; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--ink); background: var(--glass-thick); border: 2.5px solid var(--g); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 14%, transparent); }
.eqc svg { width: 30px; height: 30px; }
.eqc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eqc.chk { --g: var(--chk-f); } .eqc.svc { --g: var(--svc-f); } .eqc.work { --g: #FF9F1C; } .eqc.bad { --g: var(--bad-f); } .eqc.nil { --g: var(--nil-f); }
@media (prefers-reduced-motion: no-preference) { .eqc.chk, .eqc.svc, .eqc.work, .eqc.bad { animation: eqcL 1.5s ease-in-out infinite; } }
@keyframes eqcL { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--g) 22%, transparent), 0 0 18px 3px var(--g); border-color: color-mix(in srgb, var(--g) 60%, #fff); } }
/* the one device, in the glass preview */
.eqpk { --g: var(--ok-f); display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--fill); }
.eqpk.chk { --g: var(--chk-f); } .eqpk.svc { --g: var(--svc-f); } .eqpk.work { --g: #FF9F1C; } .eqpk.bad { --g: var(--bad-f); } .eqpk.nil { --g: var(--nil-f); }
.eqpk .eqlight { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 5px color-mix(in srgb, var(--g) 22%, transparent), 0 0 18px 3px var(--g); }
@media (prefers-reduced-motion: no-preference) { .eqpk:not(.ok) .eqlight { animation: eqlL 1.4s ease-in-out infinite; } }
@keyframes eqlL { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--g) 14%, transparent), 0 0 26px 6px var(--g); } }
.eqpk .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eqpk .tx b { font: 750 16px/1.25 var(--head); color: var(--title); }
.eqpk .tx span { font: 600 13.5px/1.35 var(--font); color: var(--ink-2); }
.eqpk .eqpt { flex: 0 0 auto; font: 800 19px/1 var(--head); font-variant-numeric: tabular-nums; }
.eqpt.work { color: #B35C00; } .eqpt.svc { color: var(--svc); } .mx.dark .eqpt.work { color: #FFB340; }
/* the first time: notifications, then motion */
.sheet.onb { align-items: center; text-align: center; gap: 12px; padding-bottom: 28px; }
.sheet.onb::before { display: none; }
.sheet.onb .onbic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 8px; }
.sheet.onb .onbic svg { width: 30px; height: 30px; }
.sheet.onb h3 { margin: 4px 0 0; font: 800 22px/1.2 var(--head); }
.sheet.onb p { margin: 0 auto 6px; max-width: 34ch; font-size: 15px; }
/* one way to close a sheet: pulled down by its handle on a phone, the ✕ on a computer */
@media (max-width: 699px) { .sheet .shd .x { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; } .sheet { touch-action: pan-y; } }
@media (min-width: 700px) { .sheet::before { display: none; } }
/* motion reduced in Account: nothing moves on its own (html.rm: the 3D's rooms are .rm too) */
html.rm *, html.rm *::before, html.rm *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
.gdot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; --g: var(--ok-f); background: var(--g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent), 0 0 12px 1px var(--g); }
.gdot.chk { --g: var(--chk-f); } .gdot.svc { --g: var(--svc-f); } .gdot.work { --g: #FF9F1C; } .gdot.bad { --g: var(--bad-f); }
.gdot.nil { --g: var(--nil-f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent); }
@media (prefers-reduced-motion: no-preference) { .gdot.chk, .gdot.work, .gdot.bad, .gdot.svc { animation: gdotL 1.6s ease-in-out infinite; } }
@keyframes gdotL { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--g) 14%, transparent), 0 0 18px 3px var(--g); } }
.quick4.q2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick4.q2 button { flex-direction: row; justify-content: center; min-height: 64px; padding: 10px 12px; gap: 10px; font-size: 14px; }
.quick4.q2 button .soon { margin: 0 0 0 auto; }
/* a row on the Account page that opens something (Customer service) */
.acrow { flex-direction: row; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.acrow .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.acrow .ic svg { width: 22px; height: 22px; }
.acrow .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acrow .tx b { font: 750 16px/1.25 var(--head); color: var(--title); }
.acrow .tx span { font: 600 13.5px/1.35 var(--font); color: var(--ink-2); }
.acrow .soon { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font: 800 11px/1.3 var(--font); letter-spacing: .04em; }

/* ------------------------------------------------- the clinic's WhatsApp to its technician */
.sheet.wa .wamsg { white-space: pre-wrap; font: 600 14.5px/1.5 var(--font); color: var(--ink); background: var(--fill); border-radius: 18px; padding: 14px 16px; max-height: 38vh; overflow: auto; overflow-wrap: anywhere; }
.sheet.wa .wago { background: #25D366; color: #04210F; gap: 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.sheet.wa .wago svg { width: 22px; height: 22px; }
.photos .ph { position: relative; }
.photos .ph.vid { background: #0B1220; overflow: hidden; }
.photos .ph.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph.vid .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.photos .ph.vid .play svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.photos .ph .rm { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--solid); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; padding: 0; }
.photos .ph .rm svg { width: 13px; height: 13px; }

/* SOS: are you sure, on top of the SOS card itself */
.sosbox { position: relative; }
.layer > .sosconfirm { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: color-mix(in srgb, var(--solid) 55%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .18s ease; }
.sosconfirm.on { opacity: 1; }
.sosconfirm .sosci { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 22px 18px 18px; border-radius: 26px;
  background: var(--glass-thick); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); }
.sosconfirm h3 { margin: 0; font: 800 21px/1.2 var(--head); }
.sosconfirm p { margin: 0 0 6px; }
.sosconfirm .btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soswait { margin: 0 auto; max-width: 30ch; text-align: center; font: 600 14px/1.4 var(--font); color: var(--ink-2); }
.soswait .sosleft { color: var(--bad); font-family: var(--head); font-variant-numeric: tabular-nums; }
.quick3.q2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Book the visit: a day of the technicians' calendar; the visit dragged onto free time */
.quick3 button .soon { padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font: 800 10px/1.3 var(--font); letter-spacing: .04em; }
.vwho:empty { display: none; }
.vcal { padding: 14px 14px 14px 0; }
.vgrid { position: relative; margin: 8px 0 8px 58px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; border-radius: 14px; outline: none; }
.vgrid:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.vgrid .vh { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.vgrid .vh::after { content: ''; position: absolute; left: 0; right: 0; top: 24px; border-top: 1px dashed color-mix(in srgb, var(--line) 60%, transparent); }
.vgrid .vh:last-of-type::after { display: none; }
.vgrid .vt { position: absolute; right: calc(100% + 10px); top: -8px; font: 650 12px/1 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vgrid .vbusy { position: absolute; left: 0; right: 0; border-radius: 10px; display: grid; place-items: center; pointer-events: none; cursor: not-allowed;
  background: repeating-linear-gradient(135deg, var(--fill-2) 0 5px, transparent 5px 10px), var(--fill); }
.vgrid .vbusy.past { background: color-mix(in srgb, var(--fill) 70%, transparent); }
.vgrid .vbusy small { font: 700 11.5px/1 var(--font); color: var(--ink-3); background: var(--fill); padding: 3px 8px; border-radius: 999px; }
.vgrid .vnow { position: absolute; left: -6px; right: 0; height: 0; border-top: 2px solid var(--bad); pointer-events: none; }
.vgrid .vnow::before { content: ''; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.vgrid .vload { position: absolute; inset: 0; border-radius: 12px; }
.vgrid .vev { position: absolute; left: 4px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px 12px; border-radius: 12px; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .25); cursor: grab; touch-action: none; outline: none;
  transition: box-shadow .15s ease, transform .15s ease; }
.vgrid .vev.drag { cursor: grabbing; transform: scale(1.01); box-shadow: 0 18px 34px -12px var(--accent); transition: none; }
.vgrid .vev:focus-visible { box-shadow: 0 0 0 3px var(--title), 0 10px 22px -10px var(--accent); }
.vgrid .vev.bad { background: var(--bad-f); color: #fff; box-shadow: 0 10px 22px -10px var(--bad-f); }
.vgrid .vev b { font: 800 13.5px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgrid .vev small { font: 650 12px/1.25 var(--font); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgrid .vev.sm { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 4px; }
.vgrid .vev.sm b { flex: 0 1 auto; min-width: 0; } .vgrid .vev.sm small { flex: 0 0 auto; }
.vgrid .vev .vpl { display: flex; align-items: center; gap: 4px; } .vgrid .vev .vpl svg { width: 13px; height: 13px; flex: 0 0 auto; }
.vgrid .vev .vgrip { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; cursor: ns-resize; touch-action: none; }
.vgrid .vev .vgrip::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 28px; height: 4px; margin-left: -14px; border-radius: 2px; background: currentColor; opacity: .55; }
.vevc { gap: 10px; }
.vevc .vevt { display: flex; align-items: flex-start; gap: 10px; }
.vevc .vevt h4 { margin: 0; font: 800 17px/1.25 var(--head); color: var(--title); min-width: 0; overflow-wrap: anywhere; }
.vevc .vsw { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; background: var(--accent); } .vevc .vsw.bad { background: var(--bad-f); }
.vevc .vrow { display: flex; align-items: flex-start; gap: 10px; font: 600 14.5px/1.4 var(--font); color: var(--ink-2); min-width: 0; }
.vevc .vrow > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.vevc .vrow a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; } .vevc .vrow a:hover { text-decoration: underline; }
.vevc .vrow .bad { color: var(--bad); }
.vevc .vul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* Book a technician: three choices on glass */
.sheet.need .needg { display: flex; flex-direction: column; gap: 10px; }
.sheet.need .needo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 22px; text-align: left; cursor: pointer; color: var(--title);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -18px rgba(1, 0, 107, .45); transition: transform .15s ease, background .15s ease; }
.sheet.need .needo:hover { background: var(--glass-thick); } .sheet.need .needo:active { transform: scale(.98); }
.sheet.need .needo .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.sheet.need .needo .ic svg { width: 24px; height: 24px; }
.sheet.need .needo .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sheet.need .needo .tx b { font: 800 17px/1.2 var(--head); } .sheet.need .needo .tx small { font: 600 13.5px/1.3 var(--font); color: var(--ink-3); }
.sheet.need .needo .chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--ink-3); transform: rotate(-90deg); }
.sheet.need .needo .soon { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font: 800 11px/1.3 var(--font); letter-spacing: .04em; }
.sheet.need .needo.later .ic { opacity: .55; } .sheet.need .needo.later .tx b { color: var(--ink-2); }
@media (min-width: 700px) {
  .sheet.need .needg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet.need .needo { flex-direction: column; align-items: center; text-align: center; padding: 22px 14px 18px; gap: 10px; }
  .sheet.need .needo .tx { align-items: center; } .sheet.need .needo .chev { display: none; }
}
/* Check-up due: the reminder */
.sheet.duer { align-items: center; text-align: center; gap: 12px; padding-bottom: 22px; }
.sheet.duer .onbic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--ok-s); color: var(--ok); margin-top: 8px; }
.sheet.duer .onbic svg { width: 30px; height: 30px; }
.sheet.duer h3 { margin: 4px 0 0; font: 800 22px/1.2 var(--head); }
.sheet.duer .duel { width: 100%; text-align: left; margin-bottom: 4px; }
.sheet.duer .duel .row { align-items: center; } .sheet.duer .duel .tx { min-width: 0; } .sheet.duer .duel .pill { flex: 0 0 auto; }
.sheet.duer .duex { margin-top: 2px; font: 700 14.5px/1.3 var(--font); color: var(--ink-2); background: none; border: 0; padding: 10px; cursor: pointer; }
.sheet.duer .duex:hover { color: var(--title); text-decoration: underline; }

/* Today's four ways in: two by two on a phone, one row on a wide screen */
.quick3.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .quick3.q4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.btn.wico { display: inline-flex; align-items: center; gap: 8px; }
.btn.wico svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* A laptop's width, as METeam: the page widens to 1240px with 28px sides */
@media (min-width: 1000px) { body.mx #view.scr { padding-left: 28px; padding-right: 28px; } }
.needgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .needgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ME.ride: the technician on his way, from above, on a road drawn like a line graph */
.meride { position: relative; border-radius: 24px; padding: 10px 10px 12px; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, rgba(18, 163, 252, .28), transparent 55%), linear-gradient(160deg, #0B1B3A, #101A2B 70%); border: 1px solid rgba(255, 255, 255, .08); }
.meride svg { display: block; width: 100%; height: auto; overflow: visible; }
.meride.mini { border-radius: 18px; padding: 6px 8px 8px; margin-top: 10px; }
.meride .mr-grid path { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.meride .mr-rest { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.meride .mr-done { fill: none; stroke-width: 4; stroke-linecap: round; }
.meride .mr-glow { fill: none; stroke-width: 11; stroke-linecap: round; opacity: .22; filter: blur(3px); }
.meride .mr-pin circle { stroke-width: 2.5; }
.meride .mr-pin.me circle { fill: #0657E3; stroke: rgba(255, 255, 255, .85); }
.meride .mr-pin.me text { font: 900 8.5px/1 Montserrat, sans-serif; fill: #FFFFFF; }
.meride.mini .mr-pin.me text { font-size: 7px; }
.meride .mr-pin.clinic circle { fill: #FFFFFF; stroke: #FF9F1C; }
.meride .mr-pin.clinic path { fill: #101A2B; }
.meride .mr-pin.clinic .mr-ring { fill: none; stroke: #FF9F1C; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mrRing 1.6s ease-out infinite; }
@keyframes mrRing { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.meride .mr-pill rect { fill: #FFFFFF; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.meride .mr-pill text { font: 800 13px/1 Montserrat, sans-serif; fill: #0B1B3A; font-variant-numeric: tabular-nums; }
.meride.mini .mr-pill text { font-size: 10.5px; }
.meride .mr-puffs circle { fill: rgba(255, 255, 255, .55); animation: mrPuff 1s ease-out infinite; }
@keyframes mrPuff { from { opacity: .75; transform: translateX(0); } to { opacity: 0; transform: translateX(-10px); } }
.meride .mr-label { margin: 2px 6px 0; font: 700 13px/1.3 var(--font); color: #C9D5E6; text-align: center; min-height: 0; }
.meride .mr-label:empty { display: none; }
.meride.mini .mr-label { font-size: 12px; }
html.rm .meride .mr-puffs circle, html.rm .meride .mr-ring { animation: none; }
.sosride { width: 100%; }
.otw .row .av { width: 44px; height: 44px; font-size: 15px; }

/* Set up spaces: the place, what kind, then its rooms */
.sustep { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--fill); }
.sustep button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 14px; background: none;
  font: 750 14.5px/1 var(--font); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.sustep button .n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); font: 800 12.5px/1 var(--head); color: var(--ink-2); }
.sustep button .n svg { width: 14px; height: 14px; }
.sustep button.on { background: var(--solid); color: var(--title); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sustep button.on .n { background: var(--accent); color: #fff; }
.sustep button.done { color: var(--ink-2); }
.sustep button.done .n { background: color-mix(in srgb, var(--ok-f) 22%, transparent); color: var(--ok-f); }
.sustep button:disabled { opacity: .45; cursor: default; }
.pick3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick3 .pk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 190px; padding: 22px 12px; border-radius: 28px; cursor: pointer; color: var(--title);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -20px rgba(1, 0, 107, .45); transition: transform .15s ease, background .15s ease; animation: wsRiseUp .5s var(--ease) both; }
.pick3 .pk:hover { background: var(--glass-thick); } .pick3 .pk:active { transform: scale(.97); }
.pick3 .pk.on { box-shadow: inset 0 0 0 2px var(--accent), 0 14px 30px -20px rgba(1, 0, 107, .45); }
.pick3 .pkic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pick3 .pkic svg { width: 40px; height: 40px; }
.pick3 .pk b { font: 800 19px/1.2 var(--head); }
@media (max-width: 560px) {
  .pick3 { grid-template-columns: 1fr; }
  .pick3 .pk { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 16px 18px; gap: 16px; }
  .pick3 .pkic { width: 58px; height: 58px; border-radius: 18px; } .pick3 .pkic svg { width: 32px; height: 32px; }
}
.pickg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pickg .pt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--fill);
  cursor: pointer; color: var(--title); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.pickg .pt:active { transform: scale(.97); }
.pickg .pt .ptic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--solid); color: var(--ink); transition: background .15s ease, color .15s ease; }
.pickg .pt .ptic svg { width: 36px; height: 36px; }
.pickg .pt b { font: 750 15px/1.25 var(--font); text-align: center; overflow-wrap: anywhere; }
.pickg .pt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--solid)); }
.pickg .pt.on .ptic { background: var(--accent); color: #fff; }
/* the clinic types, smaller: all four on a phone's screen */
.pickg.sm { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.pickg.sm .pt { padding: 14px 8px 12px; gap: 8px; border-radius: 20px; }
.pickg.sm .pt .ptic { width: 48px; height: 48px; border-radius: 15px; } .pickg.sm .pt .ptic svg { width: 30px; height: 30px; }
/* the search above the types, and what a type has */
.tsearch input[type="search"] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--glass-thick); border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px; }
.tres:empty { display: none; }
.tres { margin-top: 6px; }
.tres .row:disabled { opacity: .6; }
.sheet.tsheet .seg { margin: 10px 0 0; }
/* each tab's name over how many it has: three fit a 320 px phone */
.sheet.tsheet .seg button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; font-size: 13.5px; line-height: 1.15; }
.sheet.tsheet .seg button .n { margin: 0; font: 800 12px/1 var(--font); opacity: .75; }
.tsrow .tx span { font: 600 12.5px/1.3 var(--font); color: var(--ink-3); }
/* When are you available? */
.avcard { gap: 12px; }
.avhd h4 { margin: 0; font: 800 19px/1.2 var(--head); color: var(--title); }
.avhd p { margin: 4px 0 0; }
.avhint { font: 700 12.5px/1.2 var(--font); color: var(--accent); }
.avlist { display: flex; flex-direction: column; gap: 6px; }
.avrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--fill); font: 700 14px/1.3 var(--font); color: var(--title); }
.avrow > svg { width: 18px; height: 18px; color: var(--accent); }
.avnone { margin: 0; font-size: 13.5px; }
.sheet.avsheet { display: flex; flex-direction: column; gap: 12px; }
.sheet.avsheet .avcard { padding: 0; background: none; border: 0; box-shadow: none; }
.sheet.avnote p { margin: 0 0 14px; font: 600 15px/1.45 var(--font); color: var(--ink-2); }
.sheet.avnote .btnrow .btn { flex: 1 1 0; min-width: 0; }
.bktimes .chip { white-space: nowrap; }
/* the free-time calendar, as Google Calendar: days side by side, the hours down the side */
.gcal { display: flex; flex-direction: column; gap: 6px; }
.ghead { display: flex; align-items: center; gap: 4px; }
.gmon { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 6px 6px 2px; border-radius: 10px; font: 800 17px/1.2 var(--head); color: var(--title); cursor: pointer; min-width: 0; white-space: nowrap; }
.gmon .gdn { width: 15px; height: 15px; flex: 0 0 auto; }
.gsp { flex: 1 1 auto; }
.gtoday { border: 1px solid var(--edge); background: none; border-radius: 10px; padding: 7px 11px; font: 700 13.5px/1 var(--font); color: var(--ink); cursor: pointer; flex: 0 0 auto; }
@media (max-width: 360px) { .gmon { font-size: 15.5px; } .gtoday { padding: 7px 8px; } .gnav { width: 30px; height: 30px; } .ghead { gap: 2px; } }
.gnav { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 50%; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.gnav svg { width: 18px; height: 18px; transform: rotate(90deg); } .gnav.fw svg { transform: rotate(-90deg); }
.gnav:hover:not(:disabled), .gtoday:hover:not(:disabled) { background: var(--fill); }
.gnav:disabled, .gtoday:disabled { opacity: .35; cursor: default; }
.ghdr { display: grid; align-items: end; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.gdh { display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; min-width: 0; }
.gdh small { font: 700 11px/1 var(--font); letter-spacing: .05em; color: var(--ink-3); }
.gdh b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 18px/1 var(--font); color: var(--title); }
.gdh.today small { color: var(--accent); } .gdh.today b { background: var(--accent); color: var(--on-accent, #fff); }
.gdh i { position: absolute; bottom: -5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.gbody { max-height: min(54vh, 460px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; }
.ggrid { position: relative; margin-left: 44px; user-select: none; -webkit-user-select: none; outline: none; }
.ggrid:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-radius: 8px; }
.gh { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.gt { position: absolute; right: calc(100% + 6px); top: -7px; font: 600 11px/1 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcol { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); cursor: pointer; }
.gpast { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--fill) 85%, transparent) 6px 12px); pointer-events: none; }
.gnow { position: absolute; left: -1px; right: 0; border-top: 2px solid #EA4335; pointer-events: none; z-index: 3; }
.gnow::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #EA4335; }
.gev { position: absolute; left: 2px; right: 3px; z-index: 2; border-radius: 8px; padding: 4px 6px 10px 6px; background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 6px 16px -8px var(--accent); overflow: hidden; touch-action: none; cursor: grab; display: flex; flex-direction: column; gap: 1px; }
/* the time under its name, wrapping in a narrow day (a phone's) rather than cut; the × keeps the name's corner */
.gev b { font: 800 12.5px/1.15 var(--font); padding-right: 20px; } .gev small { font: 650 11.5px/1.2 var(--font); opacity: .92; overflow-wrap: anywhere; padding-right: 18px; }
.gev.sm { flex-direction: row; align-items: baseline; gap: 5px; padding-top: 3px; }
.gev.sm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gev.drag { cursor: grabbing; box-shadow: 0 14px 28px -10px var(--accent); opacity: .92; z-index: 4; }
.gev.ghost { background: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: none; font: 700 11.5px/1.2 var(--font); color: var(--title); padding: 4px 6px; pointer-events: none; }
.gev .gx { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .2); color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gev .gx svg { width: 11px; height: 11px; }
.gev .ggrip { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; cursor: ns-resize; }
.gev .ggrip::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: currentColor; opacity: .55; }
/* the month, to jump to a day */
.gpop { padding: 10px; border-radius: 16px; background: var(--solid); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.gpop[hidden] { display: none; }
.gph { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; } .gph b { font: 800 15px/1.2 var(--head); color: var(--title); padding-left: 4px; }
.gpg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.gpg small { font: 700 11px/1 var(--font); color: var(--ink-3); padding: 4px 0; }
.gpg button { width: 100%; max-width: 40px; aspect-ratio: 1; justify-self: center; border: 0; border-radius: 50%; background: none; font: 600 14px/1 var(--font); color: var(--ink); cursor: pointer; position: relative; padding: 0; }
.gpg button:disabled { opacity: .35; cursor: default; }
.gpg button.in { background: var(--fill); } .gpg button.today { color: var(--accent); font-weight: 800; }
.gpg button.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
/* the visit, as the technician's calendar will show it, with every free time */
.gevc .gtl { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.gevc .gtl .avrow { grid-template-columns: minmax(0, 1fr) auto; }
.suhd { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; } .suhd:first-child { margin-top: 0; }
.suhd h4 { margin: 0; font: 800 16px/1.2 var(--head); color: var(--title); } .suhd small { font: 650 12.5px/1 var(--font); color: var(--ink-3); }
.suchips .chip { display: inline-flex; align-items: center; gap: 8px; } .suchips .chip svg { width: 22px; height: 22px; flex: 0 0 auto; }
.surow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.surow b { font: 750 15px/1.2 var(--font); color: var(--title); }
.sugrp { margin: 18px 0 2px; font: 800 12.5px/1.25 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); } .sugrp:first-child { margin-top: 0; }
.sucard .cnt .tx b { overflow-wrap: anywhere; }
.cnt .tx small { display: block; margin-top: 2px; font: 600 13px/1.3 var(--font); color: var(--ink-3); }
body.mx .ctabar.sunav { display: flex; flex-direction: row; align-items: center; gap: 12px; } .sunav .btn { flex: 1 1 0; min-width: 0; }
/* set up: four steps fit a phone (on a phone, the number over its name) */
.sustep.s4 button { padding-left: 8px; padding-right: 8px; gap: 6px; min-width: 0; }
.sustep.s4 button span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .sustep.s4 button { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 13px; } .sustep.s4 button .n { width: 26px; height: 26px; } }
/* Your spaces */
.splist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.spcard { gap: 12px; }
.sphd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.sphd .dv { width: 46px; height: 46px; border-radius: 14px; } .sphd .dv svg { width: 26px; height: 26px; }
.sphd .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sphd b { font: 800 18px/1.2 var(--head); color: var(--title); overflow-wrap: break-word; }
.sphd span { font: 600 13.5px/1.3 var(--font); color: var(--ink-3); }
.spaddr { margin: 0; font: 600 14px/1.4 var(--font); color: var(--ink-2); }
.spstat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spcard .btnrow { flex-wrap: wrap; }
/* a branch's details */
.sudet { gap: 14px; }
.sudet .fld label { display: block; margin-bottom: 6px; }
.sudet .fld input, .sudet .fld textarea, .sudet .fld select { width: 100%; }
.pinrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.iso.preview .eqg, .iso.preview .itg { pointer-events: none; }

/* What is in a room: each store with what it keeps, and what stands on the floor */
.istore { gap: 10px; }
.istore h4 { margin: 0; font: 800 16px/1.2 var(--head); color: var(--title); }
.istore > .btn { align-self: flex-start; }
.ilist { display: flex; flex-direction: column; }
.irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ilist .irow:first-child { border-top: 0; }
.irow.ihead { border-top: 0; padding-top: 0; }
.irow .dv { width: 42px; height: 42px; border-radius: 13px; } .irow .dv svg { width: 28px; height: 28px; }
.irow .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.irow .tx b { font: 700 14.5px/1.3 var(--font); color: var(--title); overflow-wrap: anywhere; }
.irow .tx span { font: 600 12.5px/1.3 var(--font); color: var(--ink-3); }
.stp.sm button { width: 32px; height: 32px; font-size: 18px; } .stp.sm output { min-width: 30px; font-size: 14.5px; }
.imore { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.imore svg { width: 17px; height: 17px; }
.dv.bad { color: var(--bad); background: var(--bad-s); }
.sheet.iadd input[type="search"] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--glass-thick); border: 1px solid var(--edge); border-radius: 14px;
  min-height: 50px; padding: 0 16px; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.sheet.iadd input[type="search"]:focus { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.sheet.iadd .list { max-height: min(56vh, 520px); overflow-y: auto; margin-top: 4px; }
.sheet.iadd .seg { margin: 10px 0 2px; }
.row.inew .tx b { color: var(--accent); }
/* what a store keeps: under a line with the store's name, set in */
.isep { display: flex; align-items: center; gap: 10px; margin: 2px 0 -4px; font: 800 11.5px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.isep::before, .isep::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }
.isep::before { flex: 0 0 12px; }
.isep span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilist.inside { margin-left: 6px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.iempty { margin: 0 0 0 22px; font-size: 13.5px; }
/* Add: categories, search, several at once */
.ipick { display: flex; flex-direction: column; gap: 10px; max-height: min(58vh, 560px); overflow-y: auto; margin-top: 10px; padding-bottom: 4px; }
.ipick .sugrp { margin: 4px 0 -2px; }
.icats { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.icat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px 11px; border-radius: 16px; border: 1px solid var(--edge); background: var(--fill); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.icat .dv { width: 32px; height: 32px; border-radius: 10px; } .icat .dv svg { width: 21px; height: 21px; }
.icat .ict { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.icat b { font: 700 13.5px/1.25 var(--font); color: var(--title); overflow-wrap: break-word; }
.icat small { font: 700 12px/1 var(--font); color: var(--ink-3); }
.icats.sm .icat { padding: 8px 10px; }
.icback { margin: 0; align-self: flex-start; }
.icath { margin: 0; font: 800 17px/1.2 var(--head); color: var(--title); }
.row.ick .ickb { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--edge); display: grid; place-items: center; flex: 0 0 auto; }
.row.ick.on .ickb { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.row.ick .ickb svg { width: 16px; height: 16px; stroke-width: 3; }
.row.ick:disabled { opacity: .55; cursor: default; }
.ibar { display: none; gap: 10px; padding: 12px 0 2px; flex: 0 0 auto; }
/* a sheet with a list (Add, its details, what a type has): the list takes the room left and scrolls; the bar stays under it, never over it */
.sheet.iadd, .sheet.idet { display: flex; flex-direction: column; overflow: hidden; max-height: calc(100% - 96px - env(safe-area-inset-top, 0px)); }  /* room above to tap it closed */
.sheet.iadd > *, .sheet.idet > * { flex: 0 0 auto; }
.sheet.iadd > .ipick, .sheet.idet > .idlist { flex: 1 1 auto; min-height: 140px; max-height: none; }
.sheet.iadd .ipick .list { max-height: none; overflow: visible; margin-top: 0; }
.ibar.on { display: flex; } .ibar .btn { flex: 1 1 0; min-width: 0; } .ibar .btn[hidden] { display: none; }
/* after choosing: each one's details */
.idlist { display: flex; flex-direction: column; gap: 12px; max-height: min(62vh, 620px); overflow-y: auto; }
.idcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--fill); }
.idhd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.idhd b { font: 700 15px/1.3 var(--font); color: var(--title); overflow-wrap: anywhere; }
.idhd .dv { width: 38px; height: 38px; border-radius: 12px; } .idhd .dv svg { width: 25px; height: 25px; }
.ifields { display: flex; flex-direction: column; gap: 10px; }
.irow2 { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.irow2 label { font: 700 13.5px/1.2 var(--font); color: var(--ink-2); }
.irow2 input, .irow2 select { font: inherit; font-size: 16px; min-width: 0; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass-thick); color: var(--ink); }
.itot { font: 700 13px/1 var(--font); color: var(--accent); margin: -4px 0 0 80px; }
.itot:empty { display: none; }
.sheet.iedit .btn.wide { margin-top: 4px; }
.imoves { margin-top: 4px; }
@media (max-width: 420px) {
  .irow:not(.ihead) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dv tx mo" "dv st st"; row-gap: 8px; }
  .irow:not(.ihead) > .dv { grid-area: dv; align-self: start; } .irow:not(.ihead) > .tx { grid-area: tx; }
  .irow:not(.ihead) > .stp { grid-area: st; justify-self: start; } .irow:not(.ihead) > .imore { grid-area: mo; }
}
