/* ==== EnqLayer Salon owner app: styles. Base = approved prototype BEAUTY-APP-PROTO-20261016 (CSS taken verbatim, only the logo data URIs became files). ==== */
/* ==========================================================================
   EnqLayer Salon (beauty vertical) - prototype
   Sibling of the trades app prototype (APP-PLAN-20261010/proto): same shell
   (Start, Klienci, Kalendarz, Wiecej), same glass material, same white pill
   primary action, same one-contextual-colour-per-tab idea. What changes with
   the vertical: palette (mulberry, rosewood, spa teal, eucalyptus), the
   treatment-colour system, the domain screens.
   Themes: dark is the product default (owner references are dark), light and
   system are one tap away in Wiecej, Ustawienia.
   ========================================================================== */

/* ---------- 1. tokens (dark = default) ---------- */
:root {
  color-scheme: dark;
  --font: "Geist", system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);

  /* desktop backdrop behind the phone frame */
  --page: #0b080c; --page-fg: #efe9f0; --page-muted: #a89ca9; --page-line: rgba(255,255,255,.12);

  /* ink */
  --fg: #ffffff; --fg2: rgba(255,255,255,.78); --fg3: rgba(255,255,255,.60); --fg4: rgba(255,255,255,.38);
  --focus: rgba(255,255,255,.88);

  /* surfaces (glass over the tab colour) */
  --glass: rgba(255,255,255,.13);
  --card: rgba(255,255,255,.12);
  --card2: rgba(255,255,255,.08);
  --card3: rgba(255,255,255,.05);
  --hair: rgba(255,255,255,.10);
  --hair2: rgba(255,255,255,.20);
  --sep: rgba(255,255,255,.08);
  --rim: inset 0 1px 0 rgba(255,255,255,.16);
  --scrim: rgba(6,2,8,.52);
  --sheet: #251c28;
  --field: rgba(255,255,255,.08);
  --seg-on: rgba(255,255,255,.22);

  /* primary and secondary pill */
  --pill: #ffffff; --on-pill: #17101a;
  --pill2: rgba(255,255,255,.16); --on-pill2: #ffffff;

  /* one brand accent (blush) + semantic states */
  --accent: oklch(.89 .075 12);
  --warn: #ffd479; --warn-bg: rgba(255,196,84,.18);
  --ok: #9be7c4;   --ok-bg: rgba(95,208,163,.16);
  --bad: #ffabb4;  --bad-bg: rgba(255,120,140,.17);
  --live: #ff6b81;
  --sw-on: #34c759; --sw-off: rgba(255,255,255,.20);

  /* glass tab bar */
  --bar: linear-gradient(180deg, rgba(26,14,28,.28), rgba(14,7,16,.46));
  --bar-edge: rgba(255,255,255,.20);
  --cap: rgba(10,4,12,.56); --cap-rim: rgba(255,255,255,.34);
  --chrome-tint: rgba(16,8,18,.40);

  /* treatment colour recipe: hue per category, lightness/chroma per theme */
  --cl: .80; --cc: .11; --cfa: .20; --cinkl: .90; --cinkc: .06;

  /* contextual colour per tab (OKLCH, same stop structure as the trades prototype) */
  --g-start:
    radial-gradient(70% 32% at 90% 3%, oklch(.64 .15 8 / .34), transparent 72%),
    linear-gradient(180deg, oklch(.47 .135 340) 0%, oklch(.38 .115 340) 15%, oklch(.29 .09 338) 34%, oklch(.22 .06 336) 52%, oklch(.185 .04 334) 72%, oklch(.155 .03 332) 100%);
  --g-klienci:
    radial-gradient(70% 30% at 8% 3%, oklch(.62 .09 45 / .30), transparent 70%),
    linear-gradient(180deg, oklch(.46 .065 22) 0%, oklch(.38 .055 22) 15%, oklch(.30 .042 22) 34%, oklch(.23 .03 22) 52%, oklch(.19 .02 22) 72%, oklch(.16 .015 22) 100%);
  --g-kal:
    radial-gradient(70% 30% at 88% 2%, oklch(.72 .09 175 / .28), transparent 70%),
    linear-gradient(180deg, oklch(.46 .07 198) 0%, oklch(.39 .062 200) 15%, oklch(.31 .048 202) 34%, oklch(.25 .04 204) 52%, oklch(.20 .03 205) 72%, oklch(.17 .025 205) 100%);
  --g-wiecej:
    radial-gradient(70% 28% at 12% 2%, oklch(.66 .09 150 / .24), transparent 70%),
    linear-gradient(180deg, oklch(.45 .075 160) 0%, oklch(.36 .06 160) 15%, oklch(.28 .045 160) 34%, oklch(.21 .03 160) 52%, oklch(.175 .02 160) 72%, oklch(.15 .015 160) 100%);
}

/* ---------- 1b. light tokens (system preference, unless dark is forced) ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  color-scheme: light;
  --page: #ece6ea; --page-fg: #1f1523; --page-muted: #6e6272; --page-line: rgba(31,21,35,.10);
  --fg: #1f1523; --fg2: rgba(31,21,35,.78); --fg3: rgba(31,21,35,.66); --fg4: rgba(31,21,35,.44);
  --focus: #1f1523;
  --glass: rgba(255,255,255,.66);
  --card: rgba(255,255,255,.74);
  --card2: rgba(255,255,255,.56);
  --card3: rgba(255,255,255,.38);
  --hair: rgba(40,20,45,.09);
  --hair2: rgba(40,20,45,.18);
  --sep: rgba(40,20,45,.08);
  --rim: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 3px rgba(70,30,70,.07);
  --scrim: rgba(30,16,36,.34);
  --sheet: #fcf9fb;
  --field: rgba(40,20,45,.06);
  --seg-on: rgba(255,255,255,.96);
  --pill: #1f1523; --on-pill: #ffffff;
  --pill2: rgba(40,20,45,.09); --on-pill2: #1f1523;
  --accent: oklch(.50 .15 8);
  --warn: #7c4f00; --warn-bg: rgba(255,168,40,.24);
  --ok: #0b6444;   --ok-bg: rgba(36,168,116,.16);
  --bad: #9d2438;  --bad-bg: rgba(214,56,86,.13);
  --live: #e0364f;
  --sw-off: rgba(31,21,35,.18);
  --bar: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.70));
  --bar-edge: rgba(40,20,45,.12);
  --cap: rgba(255,255,255,.95); --cap-rim: rgba(40,20,45,.08);
  --chrome-tint: rgba(255,255,255,.45);
  --cl: .56; --cc: .14; --cfa: .16; --cinkl: .40; --cinkc: .12;
  --g-start:
    radial-gradient(70% 30% at 90% 3%, oklch(.84 .07 8 / .38), transparent 72%),
    linear-gradient(180deg, oklch(.885 .05 345) 0%, oklch(.925 .034 345) 18%, oklch(.95 .02 345) 42%, oklch(.967 .011 345) 70%, oklch(.975 .007 345) 100%);
  --g-klienci:
    radial-gradient(70% 30% at 8% 3%, oklch(.86 .06 45 / .38), transparent 70%),
    linear-gradient(180deg, oklch(.885 .04 22) 0%, oklch(.92 .03 22) 18%, oklch(.952 .018 22) 42%, oklch(.968 .011 22) 70%, oklch(.975 .007 22) 100%);
  --g-kal:
    radial-gradient(70% 30% at 88% 2%, oklch(.86 .07 175 / .45), transparent 70%),
    linear-gradient(180deg, oklch(.86 .05 198) 0%, oklch(.91 .036 200) 18%, oklch(.945 .02 202) 42%, oklch(.966 .011 204) 70%, oklch(.975 .007 205) 100%);
  --g-wiecej:
    radial-gradient(70% 28% at 12% 2%, oklch(.87 .07 150 / .42), transparent 70%),
    linear-gradient(180deg, oklch(.87 .05 160) 0%, oklch(.915 .036 160) 18%, oklch(.95 .02 160) 42%, oklch(.968 .011 160) 70%, oklch(.975 .007 160) 100%);
  }
}
/* ---------- 1c. light tokens (forced) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --page: #ece6ea; --page-fg: #1f1523; --page-muted: #6e6272; --page-line: rgba(31,21,35,.10);
  --fg: #1f1523; --fg2: rgba(31,21,35,.78); --fg3: rgba(31,21,35,.66); --fg4: rgba(31,21,35,.44);
  --focus: #1f1523;
  --glass: rgba(255,255,255,.66);
  --card: rgba(255,255,255,.74);
  --card2: rgba(255,255,255,.56);
  --card3: rgba(255,255,255,.38);
  --hair: rgba(40,20,45,.09);
  --hair2: rgba(40,20,45,.18);
  --sep: rgba(40,20,45,.08);
  --rim: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 3px rgba(70,30,70,.07);
  --scrim: rgba(30,16,36,.34);
  --sheet: #fcf9fb;
  --field: rgba(40,20,45,.06);
  --seg-on: rgba(255,255,255,.96);
  --pill: #1f1523; --on-pill: #ffffff;
  --pill2: rgba(40,20,45,.09); --on-pill2: #1f1523;
  --accent: oklch(.50 .15 8);
  --warn: #7c4f00; --warn-bg: rgba(255,168,40,.24);
  --ok: #0b6444;   --ok-bg: rgba(36,168,116,.16);
  --bad: #9d2438;  --bad-bg: rgba(214,56,86,.13);
  --live: #e0364f;
  --sw-off: rgba(31,21,35,.18);
  --bar: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.70));
  --bar-edge: rgba(40,20,45,.12);
  --cap: rgba(255,255,255,.95); --cap-rim: rgba(40,20,45,.08);
  --chrome-tint: rgba(255,255,255,.45);
  --cl: .56; --cc: .14; --cfa: .16; --cinkl: .40; --cinkc: .12;
  --g-start:
    radial-gradient(70% 30% at 90% 3%, oklch(.84 .07 8 / .38), transparent 72%),
    linear-gradient(180deg, oklch(.885 .05 345) 0%, oklch(.925 .034 345) 18%, oklch(.95 .02 345) 42%, oklch(.967 .011 345) 70%, oklch(.975 .007 345) 100%);
  --g-klienci:
    radial-gradient(70% 30% at 8% 3%, oklch(.86 .06 45 / .38), transparent 70%),
    linear-gradient(180deg, oklch(.885 .04 22) 0%, oklch(.92 .03 22) 18%, oklch(.952 .018 22) 42%, oklch(.968 .011 22) 70%, oklch(.975 .007 22) 100%);
  --g-kal:
    radial-gradient(70% 30% at 88% 2%, oklch(.86 .07 175 / .45), transparent 70%),
    linear-gradient(180deg, oklch(.86 .05 198) 0%, oklch(.91 .036 200) 18%, oklch(.945 .02 202) 42%, oklch(.966 .011 204) 70%, oklch(.975 .007 205) 100%);
  --g-wiecej:
    radial-gradient(70% 28% at 12% 2%, oklch(.87 .07 150 / .42), transparent 70%),
    linear-gradient(180deg, oklch(.87 .05 160) 0%, oklch(.915 .036 160) 18%, oklch(.95 .02 160) 42%, oklch(.968 .011 160) 70%, oklch(.975 .007 160) 100%);
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--page-fg); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
button, select, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 14px; }
svg { display: block; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. page: phone frame on desktop, full bleed on a phone ---------- */
.page { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 20px; }
.guide { width: 320px; display: grid; gap: 20px; align-self: center; }
.guide .mono { width: 52px; height: 52px; border-radius: 26px; background: #f3e6e4; color: #3b1634; display: grid; place-items: center; font: 700 22px/1 var(--font-brand); letter-spacing: -.14em; text-indent: -.08em; }
.guide h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }
.guide p { margin: 0; color: var(--page-muted); }
.guide .jump { display: flex; flex-wrap: wrap; gap: 8px; }
.guide .jump a, .guide .jump button { font-size: 14px; font-weight: 550; line-height: 1; padding: 10px 14px; border-radius: 999px; background: var(--page-line); color: var(--page-fg); text-decoration: none; cursor: pointer; transition: background 160ms ease; }
.guide .jump a:hover, .guide .jump button:hover { background: rgba(255,255,255,.2); }
.guide .jump a[aria-current="true"], .guide .jump button[aria-current="true"] { background: var(--page-fg); color: var(--page); }
.guide .sub { font-size: 13px; font-weight: 600; color: var(--page-muted); margin: 4px 0 -8px; }
.guide .note { font-size: 13px; line-height: 1.5; }

.device { --pt: 54px; --bar-bottom: 24px; width: 390px; height: 844px; height: min(844px, calc(100vh - 40px)); height: min(844px, calc(100dvh - 40px)); min-height: 620px; border-radius: 48px; position: relative; overflow: hidden; flex: none; isolation: isolate; color: var(--fg); font-family: var(--font); box-shadow: 0 0 0 10px #17111b, 0 0 0 11px #30263a, 0 40px 90px rgba(0,0,0,.55); }
@media (max-width: 900px) { .guide { display: none; } .page { gap: 0; } }
@media (max-width: 520px) { .page { display: block; padding: 0; min-height: 0; } .device { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; } }
@media (pointer: coarse) { .device { --pt: calc(env(safe-area-inset-top, 0px) + 14px); --bar-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); } .device .sb { display: none; } }

/* fake iOS status bar, desktop only */
.sb { position: absolute; top: 0; left: 0; right: 0; height: 44px; padding: 15px 30px 0 34px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; z-index: 25; pointer-events: none; color: var(--fg); }
.sb .r { display: flex; gap: 6px; align-items: center; }
.sb .sig { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.sb .sig i { width: 3px; border-radius: 1px; background: currentColor; }
.sb .sig i:nth-child(1) { height: 4px; } .sb .sig i:nth-child(2) { height: 6px; } .sb .sig i:nth-child(3) { height: 8px; } .sb .sig i:nth-child(4) { height: 11px; }
.sb .bat { width: 25px; height: 12px; border-radius: 4px; border: 1px solid currentColor; opacity: .95; position: relative; padding: 1px; }
.sb .bat::before { content: ""; display: block; height: 100%; width: 78%; border-radius: 2px; background: currentColor; }
.sb .bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .7; }

/* ---------- 4. contextual backgrounds, screens, chrome ---------- */
.bg { position: absolute; inset: 0; opacity: 0; transition: opacity 520ms ease; background-color: #170d19; }
.bg.on { opacity: 1; }
.bg-start { background-image: var(--g-start); } .bg-klienci { background-image: var(--g-klienci); }
.bg-kal { background-image: var(--g-kal); } .bg-wiecej { background-image: var(--g-wiecej); }
.stack { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: var(--pt) 16px 136px; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: transform 380ms var(--ease), opacity 380ms ease; }
.screen::-webkit-scrollbar { display: none; }
.screen.enter, .screen.leave { transform: translateX(100%); }
.screen.under { transform: translateX(-28%); opacity: .55; }
.screen.fade { opacity: 0; }
.col { display: flex; flex-direction: column; gap: 16px; }
.sentinel { position: absolute; left: 0; top: 0; width: 1px; height: 2px; pointer-events: none; }

/* floating top: content blurs under it (scroll edge effect, no divider line) */
.chrome { position: sticky; top: calc(var(--pt) * -1); z-index: 6; margin: calc(var(--pt) * -1) -16px 0; padding: var(--pt) 16px 14px; }
.chrome::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--chrome-tint), transparent); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 24px), transparent 100%); opacity: 0; transition: opacity 200ms ease; }
.screen.scrolled .chrome::before { opacity: 1; }

/* ---------- 5. type ---------- */
.lt { margin: 0; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.6px; }
.h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.4px; }
.t20 { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -.2px; }
.t17 { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.1px; }
.t16 { font-size: 16px; line-height: 21px; font-weight: 600; }
.s17 { font-size: 17px; line-height: 24px; color: var(--fg2); }
.s15 { font-size: 15px; line-height: 20px; color: var(--fg2); }
.s14 { font-size: 14px; line-height: 19px; color: var(--fg2); }
.s13 { font-size: 13px; line-height: 18px; color: var(--fg3); font-weight: 500; }
.date { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--fg2); }
.accent { color: var(--accent); }
.clamp1, .clamp2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { -webkit-line-clamp: 1; line-clamp: 1; } .clamp2 { -webkit-line-clamp: 2; line-clamp: 2; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 6. primitives ---------- */
.press { transition: transform 140ms var(--ease-out); }
.press:active { transform: scale(.97); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(125%); backdrop-filter: blur(20px) saturate(125%); box-shadow: var(--rim); }
.card { background: var(--card); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--rim); }
.card2 { background: var(--card2); border-radius: 24px; }
.pad { padding: 16px 18px; }
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; text-align: left; }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chev { color: var(--fg4); display: flex; }
.grouphd { font-size: 13px; font-weight: 600; color: var(--fg3); padding: 6px 4px 0; }
.btn, .btn2 { width: 100%; height: 52px; border-radius: 26px; font-size: 17px; font-weight: 600; letter-spacing: -.1px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn { background: var(--pill); color: var(--on-pill); }
.btn2 { background: var(--pill2); color: var(--on-pill2); }
.btn.sm, .btn2.sm { height: 44px; border-radius: 22px; font-size: 15px; }
.btn.ok { background: var(--ok); color: #0a2a1c; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 16px; font-weight: 600; border-radius: 8px; padding: 4px 8px; white-space: nowrap; color: var(--fg2); background: var(--card); }
.chip.ok { color: var(--ok); background: var(--ok-bg); } .chip.warn { color: var(--warn); background: var(--warn-bg); } .chip.bad { color: var(--bad); background: var(--bad-bg); }
.chip.solid { color: #17101a; background: var(--warn); border-radius: 12px; padding: 4px 10px; }
.chip.test { color: var(--warn); background: var(--warn-bg); letter-spacing: .04em; font-size: 11px; padding: 3px 6px; border-radius: 6px; }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; font-weight: 600; color: var(--fg2); background: var(--card); border-radius: 7px; padding: 3px 7px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 20px; background: var(--card2); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; align-self: flex-start; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 34px; padding: 0 14px; border-radius: 17px; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--fg2); white-space: nowrap; transition: background 180ms ease, color 180ms ease; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--fg); }
.seg .n { font-size: 13px; font-weight: 700; opacity: .8; }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: var(--sw-off); position: relative; flex: none; transition: background 200ms ease; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.22); transition: transform 280ms var(--spring); }
.toggle[aria-checked="true"] { background: var(--sw-on); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.kv { width: 100%; display: flex; align-items: center; min-height: 52px; padding: 0 16px; gap: 10px; font-size: 17px; text-align: left; position: relative; }
.kv + .kv::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
.kv .k { flex: 1; min-width: 0; color: var(--fg); }
.kv .v { color: var(--fg3); font-size: 16px; text-align: right; }
.kv.stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 10px 16px; }
.kv.stack .k { flex: none; font-size: 13px; line-height: 18px; color: var(--fg3); font-weight: 500; }
.kv.stack .v { text-align: left; color: var(--fg); font-size: 16px; line-height: 21px; }
.kv select, .kv input { background: transparent; border: 0; color: var(--fg); font-size: 16px; text-align: right; max-width: 62%; outline: none; text-align-last: right; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.kv select { cursor: pointer; padding: 14px 0; }
.kv select option { color: #17101a; background: #fff; }
.kv input::placeholder { color: var(--fg4); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; }
.empty .ib { width: 56px; height: 56px; border-radius: 28px; }
textarea.ed { width: 100%; min-height: 120px; border-radius: 18px; background: var(--field); border: 0; color: var(--fg); font: 16px/24px var(--font); padding: 14px 16px; resize: none; outline: none; }

/* ---------- 7. top bar, title row, back bar ---------- */
.top { display: flex; align-items: center; gap: 10px; }
.demo { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 3px 6px; flex: none; }
.av { width: 44px; height: 44px; border-radius: 22px; flex: none; display: grid; place-items: center; background: #f3e6e4; color: #3b1634; font: 700 19px/1 var(--font-brand); letter-spacing: -.14em; text-indent: -.08em; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.search { flex: 1; min-width: 0; height: 44px; border-radius: 22px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--fg); font-size: 17px; white-space: nowrap; }
.ib { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; flex: none; position: relative; }
.ib.s36 { width: 40px; height: 40px; border-radius: 20px; }
.ib .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 5px; background: var(--live); box-shadow: 0 0 0 2px rgba(20,10,22,.7); }
.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.back { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.backbtn { display: flex; align-items: center; gap: 2px; font-size: 17px; height: 44px; padding-right: 8px; }
.flip { transform: scaleX(-1); display: flex; }

.ini { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex: none; color: #fff; background: oklch(.58 .11 var(--h, 340)); }
.ini.m { width: 44px; height: 44px; border-radius: 22px; }
.ini.l { width: 76px; height: 76px; border-radius: 38px; font-size: 28px; letter-spacing: -.5px; }

/* ---------- 8. glass tab bar ---------- */
.tabbar { position: absolute; left: 16px; right: 16px; bottom: var(--bar-bottom); height: 66px; border-radius: 33px; background: var(--bar); border: 1px solid var(--bar-edge); -webkit-backdrop-filter: blur(26px) saturate(150%) brightness(1.04); backdrop-filter: blur(26px) saturate(150%) brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px -14px rgba(0,0,0,.5); padding: 5px; display: flex; z-index: 20; touch-action: none; user-select: none; -webkit-user-select: none; }
.cap { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 4); border-radius: 28px; background: var(--cap); border: 1px solid var(--cap-rim); transition: transform 380ms var(--ease); }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--fg2); border-radius: 28px; text-align: center; transition: color 200ms ease; }
.tab[aria-current="page"] { color: var(--fg); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--warn); color: #17101a; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- 9. start ---------- */
.dwrap { position: relative; }
.dcard { position: relative; gap: 12px; padding: 16px 16px 14px; -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); transition: transform 300ms var(--ease), opacity 260ms ease; }
.dcard.leaving { transform: translateX(-36px) scale(.96); opacity: 0; }
.dcard.entering { animation: dIn 380ms var(--ease) both; }
@keyframes dIn { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.dtop { display: flex; align-items: center; gap: 12px; }
.dtop .nm { flex: 1; min-width: 0; }
.dtr { display: flex; gap: 10px; align-items: flex-start; }
.dtr .catdot { margin-top: 6px; }
.dtr .tn { font-size: 16px; line-height: 21px; font-weight: 600; }
.dtr .tm { font-size: 15px; line-height: 20px; color: var(--fg2); margin-top: 2px; }
.dmsg { font-size: 14px; line-height: 19px; color: var(--fg3); font-style: italic; }
.drow2 { display: flex; gap: 10px; }
.drow2 > * { flex: 1; }
.btn.done { background: var(--ok); color: #0a2a1c; pointer-events: none; }
.tday { display: flex; flex-direction: column; padding: 16px 6px 8px; }
.tday .hd { display: flex; justify-content: space-between; align-items: baseline; padding: 0 12px 6px; width: calc(100% - 0px); }
.trow-d { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; width: 100%; text-align: left; border-radius: 16px; }
.trow-d .tm { width: 44px; flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; }
.trow-d .bd { flex: 1; min-width: 0; }
.trow-d.done { opacity: .55; }
.trow-d .st { flex: none; padding-top: 1px; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: 24px; background: var(--card2); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 98px; }
.tile .big { font-size: 28px; line-height: 33px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--fg3); }

/* ---------- 10. treatment colour system ---------- */
.c-kob { --h: 170; } .c-skin { --h: 235; } .c-brow { --h: 65; } .c-lip { --h: 5; } .c-tat { --h: 300; } .c-own { --h: 340; }
.catdot { width: 10px; height: 10px; border-radius: 5px; background: oklch(var(--cl) var(--cc) var(--h, 340)); flex: none; }
.catink { color: oklch(var(--cinkl) var(--cinkc) var(--h, 340)); }

/* ---------- 11. calendar ---------- */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 4px; }
.strip .wd { font-size: 13px; font-weight: 500; color: var(--fg3); }
.strip button { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; }
.strip .dn { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background 200ms ease, color 200ms ease; }
.strip .past { opacity: .6; }
.strip .today .dn { color: var(--accent); }
.strip [aria-pressed="true"] .dn { background: var(--pill); color: var(--on-pill); }
.strip .dots { display: flex; gap: 3px; justify-content: center; height: 6px; }
.strip .dots i { width: 6px; height: 6px; border-radius: 3px; background: oklch(var(--cl) var(--cc) var(--h, 340)); }
.tlcard { position: relative; border-radius: 24px; background: var(--card2); padding: 14px 12px 14px 0; }
.tl { position: relative; }
.tl .hr { position: absolute; left: 0; width: 50px; text-align: right; padding-right: 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg3); transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.tl .gl { position: absolute; left: 50px; width: 8px; height: 1px; background: var(--hair2); }
.blk { position: absolute; left: 56px; right: 0; border-radius: 14px; padding: 7px 10px 7px 13px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: left; background: oklch(var(--cl) var(--cc) var(--h, 340) / var(--cfa)); box-shadow: inset 3px 0 0 oklch(var(--cl) var(--cc) var(--h, 340)); }
.blk .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blk .nm { font-size: 15px; line-height: 19px; font-weight: 600; min-width: 0; }
.blk .tr { font-size: 13px; line-height: 17px; color: var(--fg2); }
.blk .r3 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.blk.sm { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.blk.sm .nm { flex: 1; }
.blk.done { opacity: .55; }
.blk.next { background: oklch(var(--cl) var(--cc) var(--h, 340) / .32); }
.blk.own { background: var(--card); box-shadow: none; background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--hair) 7px 8px); }
.blk .ck { display: inline-flex; color: var(--ok); }
.gapb { position: absolute; left: 56px; right: 0; border-radius: 14px; border: 1.5px dashed var(--hair2); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--fg3); font-size: 13px; font-weight: 600; text-align: left; transition: background 160ms ease; }
.gapb:active { background: var(--card3); }
.gapb b { color: var(--fg2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.now { position: absolute; left: 38px; right: 0; height: 2px; background: var(--live); z-index: 3; pointer-events: none; border-radius: 1px; }
.now::before { content: ""; position: absolute; left: 12px; top: -4px; width: 10px; height: 10px; border-radius: 5px; background: var(--live); }
.now b { position: absolute; left: -38px; top: -9px; font-size: 11px; line-height: 14px; font-weight: 700; padding: 2px 5px; border-radius: 6px; background: var(--live); color: #fff; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.wk { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px 8px 16px; width: 100%; text-align: left; border-radius: 20px; }
.wk .dl { width: 48px; flex: none; }
.wk .dl b { display: block; font-size: 15px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk .dl span { font-size: 12px; line-height: 15px; color: var(--fg3); font-weight: 500; }
.wk .bar { position: relative; flex: 1; height: 24px; border-radius: 9px; background: var(--card3); overflow: hidden; }
.wk .bs { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: oklch(var(--cl) var(--cc) var(--h, 340)); }
.wk .bs.own { background: var(--hair2); background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hair) 4px 5px); }
.wk .ct { width: 62px; flex: none; text-align: right; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--fg2); font-variant-numeric: tabular-nums; }
.wk.today .dl b { color: var(--accent); }
.wk.past { opacity: .6; }
.wk.closed .bar { background: none; border: 1.5px dashed var(--hair); }
.wk.axisrow { min-height: 0; padding-top: 10px; padding-bottom: 0; pointer-events: none; }
.wk .axis { position: relative; height: 14px; background: none; overflow: visible; }
.wk .axis i { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; line-height: 14px; font-weight: 600; font-style: normal; color: var(--fg4); font-variant-numeric: tabular-nums; }
.wk .axis i:first-child { transform: none; } .wk .axis i:last-child { transform: translateX(-100%); }

/* ---------- 12. client card ---------- */
.ident { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.acts { display: flex; justify-content: space-around; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; width: 90px; text-align: center; }
.acts .ib { width: 52px; height: 52px; border-radius: 26px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 22px; background: var(--warn-bg); color: var(--fg); }
.alert svg { color: var(--warn); margin-top: 1px; }
.alert .t { font-size: 16px; line-height: 21px; font-weight: 600; }
.alert .d { font-size: 14px; line-height: 19px; color: var(--fg2); margin-top: 2px; }
.nextv { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--card); width: 100%; text-align: left; box-shadow: var(--rim); }
.nextv .dt { width: 52px; flex: none; text-align: center; border-radius: 14px; background: var(--card2); padding: 6px 0 7px; }
.nextv .dt b { display: block; font-size: 22px; line-height: 24px; font-weight: 700; letter-spacing: -.3px; }
.nextv .dt span { display: block; font-size: 12px; line-height: 14px; font-weight: 600; color: var(--fg3); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles .wide { grid-column: 1 / -1; }
.pips { display: flex; gap: 8px; margin: 2px 0; }
.pips i { width: 16px; height: 16px; border-radius: 8px; background: var(--hair2); }
.pips i.on { background: var(--accent); }
.pips i.next { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.hist { display: flex; flex-direction: column; }
.hist .h { display: flex; gap: 14px; padding: 12px 0; }
.hist .h + .h { box-shadow: inset 0 .5px 0 var(--sep); }
.hist .d { width: 54px; flex: none; font-size: 15px; font-weight: 600; color: var(--fg2); font-variant-numeric: tabular-nums; }
.hist .b { flex: 1; min-width: 0; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo { border-radius: 18px; height: 128px; position: relative; overflow: hidden; }
.photo.a { background: radial-gradient(60% 70% at 30% 30%, oklch(.74 .06 30), transparent 70%), linear-gradient(160deg, oklch(.62 .05 20), oklch(.42 .05 350)); }
.photo.b { background: radial-gradient(60% 70% at 70% 30%, oklch(.80 .07 15), transparent 70%), linear-gradient(160deg, oklch(.68 .07 10), oklch(.46 .08 345)); }
.cap2 { font-size: 13px; color: var(--fg3); margin-top: 6px; font-weight: 500; }
.lock { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.lock .ib { width: 40px; height: 40px; border-radius: 20px; background: var(--card); }

/* ---------- 13. treatments ---------- */
.trw { position: relative; width: 100%; }
.trw .main { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; }
.trw .tn, .trw .tm { padding-right: 62px; }
.trw + .trw { box-shadow: inset 0 .5px 0 var(--sep); }
.trw .tn { font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -.1px; }
.trw .tm { font-size: 14px; line-height: 19px; color: var(--fg2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.trw .tc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.trv .sd { display: flex; flex: none; }
.trw .sd { position: absolute; right: 16px; top: 14px; z-index: 2; }
.trw .sd .s13 { font-size: 11px; line-height: 13px; }
.catlabel { display: flex; align-items: center; gap: 8px; padding: 14px 16px 2px; font-size: 13px; font-weight: 600; color: var(--fg3); }
.catlabel .on { margin-left: auto; font-size: 12px; font-weight: 600; width: 51px; text-align: center; }
.famhd { display: flex; gap: 12px; padding: 16px 16px 4px; align-items: flex-start; }
.famhd .catdot { margin-top: 6px; }
.famhd .tn { font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -.1px; }
.trv { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 38px; }
.trv + .trv::before { content: ""; position: absolute; left: 38px; right: 0; top: 0; height: .5px; background: var(--sep); }
.trv .val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.trv .tc, .trw .tc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sep { height: .5px; margin: 6px 16px; background: var(--sep); }
.seg.fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }

/* ---------- 14. assistant ---------- */
.conv { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; width: 100%; text-align: left; }
.conv + .conv { box-shadow: inset 0 .5px 0 var(--sep); }
.conv .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.conv .top2 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.thread { display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 84%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 22px; }
.bub.c { align-self: flex-start; background: var(--card); border-bottom-left-radius: 8px; }
.bub.a { align-self: flex-end; background: var(--pill2); border-bottom-right-radius: 8px; }
.who { align-self: flex-end; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--fg3); margin: 8px 6px 0; }
.who.c { align-self: flex-start; }
.sysmsg { align-self: center; font-size: 13px; color: var(--fg3); font-weight: 500; padding: 8px 0 2px; text-align: center; }
.did { display: flex; gap: 12px; align-items: flex-start; }

/* ---------- 15. feature card (Wiecej) ---------- */
.feat { position: relative; overflow: hidden; background: var(--card2); border-radius: 24px; padding: 18px 20px; min-height: 96px; width: 100%; text-align: left; }
.feat .pills { position: absolute; right: -10px; top: 16px; display: flex; flex-direction: column; gap: 6px; transform: rotate(-6deg); }
.feat .pills i { display: block; height: 26px; border-radius: 13px; }

/* ---------- 16. sheets, toast, splash ---------- */
.dim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 300ms ease; z-index: 30; }
.dim.on { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 64px); border-radius: 28px 28px 0 0; background: var(--sheet); box-shadow: 0 -8px 30px rgba(0,0,0,.4); padding: 8px 16px 30px; display: flex; flex-direction: column; gap: 16px; z-index: 31; transform: translateY(100%); transition: transform 380ms var(--ease); overflow-y: auto; scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet.on { transform: none; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fg4); align-self: center; flex: none; }
.sheethead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 32px; }
.sheethead .x { font-size: 17px; color: var(--fg2); justify-self: start; height: 32px; }
.sheethead .ttl { font-size: 17px; font-weight: 600; text-align: center; }
.sheethead .ok { justify-self: end; font-size: 17px; font-weight: 600; color: var(--accent); height: 32px; }
.opt { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px; text-align: left; border-radius: 20px; background: var(--field); transition: background 160ms ease, box-shadow 160ms ease; }
.opt[aria-pressed="true"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt .rd { width: 22px; height: 22px; border-radius: 11px; flex: none; box-shadow: inset 0 0 0 2px var(--fg4); position: relative; }
.opt[aria-pressed="true"] .rd { box-shadow: inset 0 0 0 2px var(--accent); }
.opt[aria-pressed="true"] .rd::after { content: ""; position: absolute; inset: 5px; border-radius: 6px; background: var(--accent); }
.sheetcard { border-radius: 20px; background: var(--field); }
.quote { border-radius: 20px; background: var(--field); padding: 14px 16px; font-size: 15px; line-height: 21px; color: var(--fg2); white-space: pre-line; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--bar-bottom) + 78px); z-index: 40; border-radius: 20px; background: rgba(38,30,42,.94); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 20px; transform: translateY(20px) scale(.98); opacity: 0; pointer-events: none; transition: transform 320ms var(--ease), opacity 260ms ease; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast span { flex: 1; }
.toast button { font-weight: 700; color: var(--warn); height: 36px; padding: 0 10px; }
.splash { position: absolute; inset: 0; z-index: 60; background: #0f0711; display: grid; place-items: center; transition: opacity 600ms ease, visibility 0s linear 600ms; }
.splash.off { opacity: 0; visibility: hidden; }
.splash:not([hidden]) { animation: splashAuto 1ms linear 4s forwards; }
@keyframes splashAuto { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash .in { display: grid; justify-items: center; gap: 14px; }
.splash text { font-family: var(--font-brand); font-weight: 700; fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 1000; stroke-dashoffset: 1000; letter-spacing: -14px; animation: draw 1300ms cubic-bezier(.4, 0, .2, 1) .1s forwards, fillin 450ms ease 1.15s forwards; }
.splash .wm { font-size: 12px; font-weight: 600; letter-spacing: .32em; color: rgba(255,255,255,.7); opacity: 0; animation: fadein 600ms ease 1s forwards; text-indent: .32em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: #fff; } }
@keyframes fadein { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .screen, .sheet, .toast, .cap, .bg, .dim, .toggle::after, .dcard, .chrome::before, .splash { transition: none !important; }
  .dcard.entering, .splash text, .splash .wm { animation: none !important; }
  .splash text { stroke-dashoffset: 0; fill: #fff; } .splash .wm { opacity: 1; }
  .press:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .tabbar, .toast, .chrome::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar { background: var(--sheet); }
}

/* Anna's real logo (accepted site asset assets/logo-raa-mark*.webp), owner word 16.10 ~20:22 "uzywaj jej logo" */
:root { --raa-ink: url("assets/logo-raa-ink.webp"); --raa-por: url("assets/logo-raa-por.webp"); }
.av.brandlogo, .guide .mono.brandlogo { background-image: var(--raa-ink); background-repeat: no-repeat; background-position: 50% 54%; background-size: 70% auto; color: transparent; }
.splogo { width: 190px; max-width: 60vw; aspect-ratio: 446 / 289; background: var(--raa-por) center / contain no-repeat; clip-path: inset(0 100% 0 0); animation: raaReveal 1300ms cubic-bezier(.4, 0, .2, 1) .1s forwards; }
@keyframes raaReveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .splogo { animation: none; clip-path: none; } }

/* ==========================================================================
   Additions for the installable app (the rules above are the approved prototype's, unchanged)
   ========================================================================== */
html[data-mode="live"] .demo-only { display: none !important; }
html[data-mode="demo"] .live-only { display: none !important; }
html[data-mode="live"] .device .sb { display: none; }

/* loading skeleton, spinner, "soon" tag */
.skel { border-radius: 28px; background: linear-gradient(100deg, var(--card3) 30%, var(--card2) 50%, var(--card3) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; flex: none; }
.spin.dark { border-color: var(--on-pill); border-right-color: transparent; }
.spin.big { width: 34px; height: 34px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip.soon { color: var(--fg3); background: var(--card2); font-size: 11px; line-height: 14px; padding: 3px 6px; border-radius: 6px; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .skel, .spin { animation-duration: 3s; } .skel { animation: none; } }

/* decision card: the tappable top part opens the request */
.dopen { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; border-radius: 18px; }
.dmore { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--fg2); }
.derr { font-size: 14px; line-height: 19px; color: var(--bad); background: var(--bad-bg); border-radius: 14px; padding: 10px 12px; }
.dtop .nm, .dtop .t17 { min-width: 0; }

/* request detail */
.msgcard { display: flex; flex-direction: column; gap: 8px; }
.msgtext { font-size: 17px; line-height: 25px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rawbody { margin-top: 4px; }
.rawbody summary { cursor: pointer; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--fg2); padding: 8px 0 4px; list-style: none; min-height: 32px; }
.rawbody summary::-webkit-details-marker { display: none; }
.rawbody summary::after { content: " \203A"; }
.rawbody[open] summary::after { content: " \2304"; }
.rawbody pre { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/19px var(--font); color: var(--fg3); background: var(--field); border-radius: 14px; padding: 12px; }
a.btn, a.btn2 { text-decoration: none; }
.acts a.actlink { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; width: 90px; text-align: center; text-decoration: none; color: inherit; }
.btn:disabled, .btn2:disabled { opacity: .5; cursor: default; }
.btn.done:disabled { opacity: 1; }
.btn .spin, .btn2 .spin { margin-right: 2px; }
textarea.ed.big { min-height: 190px; }
.quote.final { font-size: 16px; line-height: 23px; color: var(--fg); max-height: 38vh; overflow-y: auto; overflow-wrap: anywhere; }
.ideachip { height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; background: var(--card2); cursor: pointer; }
.consent { border-radius: 20px; background: var(--field); padding: 16px; }
.consent .cats { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--fg2); font-size: 14px; line-height: 19px; }
.working { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 8px; }
.working .s15 { max-width: 300px; }
.okmark { width: 64px; height: 64px; border-radius: 32px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }

/* login: same glass language, mulberry background */
.login { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--pt) + 8px) 22px calc(var(--bar-bottom) + 14px + var(--kb, 0px)); overflow-y: auto; scrollbar-width: none; background-color: #170d19; background-image: var(--g-start); }
.login::-webkit-scrollbar { display: none; }
.login-in { display: flex; flex-direction: column; gap: 14px; max-width: 420px; width: 100%; margin: 0 auto; }
.loginlogo { width: 150px; aspect-ratio: 446 / 289; background: var(--raa-por) center / contain no-repeat; align-self: center; margin-top: 4px; }
.login .wm { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-indent: .32em; color: var(--fg2); margin-top: -4px; }
.login .lt { margin-top: 10px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > .s13 { padding: 0 4px; }
.fld input { width: 100%; height: 54px; border-radius: 18px; border: 0; background: var(--field); color: var(--fg); font: 17px/22px var(--font); padding: 0 16px; outline: none; }
.fld input::placeholder { color: var(--fg4); }
.fld input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.fldrow { position: relative; display: block; }
.fldrow input { padding-right: 56px; }
.pwt { position: absolute; right: 4px; top: 5px; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; color: var(--fg2); }
.pwt[aria-pressed="true"] { color: var(--accent); }
.loginerr { margin: 0; color: var(--bad); background: var(--bad-bg); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 19px; }
.linkbtn { font-size: 15px; font-weight: 600; color: var(--fg2); height: 44px; text-align: center; width: 100%; }
.install { margin: 4px 4px 0; color: var(--fg3); text-align: center; }
.btn.busy { opacity: .7; }
.device.is-login .tabbar { display: none; }
:root[data-theme="light"] .loginlogo { background-image: var(--raa-ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .loginlogo { background-image: var(--raa-ink); } }

/* iPhone standalone, light theme: the status bar text is always white (black-translucent), so a soft scrim keeps it legible */
@media (display-mode: standalone) and (pointer: coarse) {
  :root[data-theme="light"] .device::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 6px); pointer-events: none; z-index: 24; background: linear-gradient(180deg, rgba(31, 21, 35, .62), rgba(31, 21, 35, 0)); }
}
@media (display-mode: standalone) and (pointer: coarse) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .device::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 6px); pointer-events: none; z-index: 24; background: linear-gradient(180deg, rgba(31, 21, 35, .62), rgba(31, 21, 35, 0)); }
}
/* the chrome of an installed app: no text selection on controls, no rubber-band flash behind the glass */
html { overscroll-behavior: none; }
.tabbar, .chrome, .sheethead { -webkit-user-select: none; user-select: none; }

/* the on-screen keyboard (set from visualViewport in app.js): the bottom sheet rides above it */
.sheet { bottom: var(--kb, 0px); max-height: calc(100% - 64px - var(--kb, 0px)); transition: transform 380ms var(--ease), bottom 200ms ease; }
.login .s17 { margin-top: -6px; }

/* a request that still waits for the owner, drawn on its requested slot in the calendar */
.blk.req { background: var(--card3); box-shadow: none; outline: 1.5px dashed oklch(var(--cl) var(--cc) var(--h, 340)); outline-offset: -1.5px; }
.wk .bs.req { background: transparent; box-shadow: inset 0 0 0 1.5px oklch(var(--cl) var(--cc) var(--h, 340)); }
/* Treatwell / calendar link screen */
.card2.feed { display: flex; flex-direction: column; gap: 12px; }
.feed .feedhd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed .inl { width: auto; padding: 0 22px; align-self: flex-start; }
.feedurl { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--field); color: var(--fg); font: 16px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px; resize: none; overflow: hidden; outline: none; overflow-wrap: anywhere; word-break: break-all; -webkit-user-select: text; user-select: text; }
.feedurl:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.steps li::before { content: counter(st); flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--card); display: grid; place-items: center; font-size: 14px; line-height: 1; font-weight: 700; margin-top: -1px; }
.honest { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14px; line-height: 19px; color: var(--fg2); }
