:root{
  /* Core palette */
  --bg:#FFEED6;
  --card:#fffaf2;
  --text:#4f432b;
  --muted:#827148;
  --border:#d8cba8;
  --accent:#827148;
  --accent-soft:#e7e4cc;

  /* Calendar semantics */
  --busy:#dfe3c4;
  --busy-t:#59613d;
  --shared:#f7c7aa;
  --shared-t:#75452f;
  --friend:#ead7bd;
  --friend-t:#6a5936;
  --pending:#f4b896;
  --pending-t:#70442f;
  --ok:#dfe3c4;
  --ok-t:#4f5934;

  /* Surfaces & borders */
  --surface-glass:color-mix(in srgb,var(--card) 84%,transparent);
  --hairline:color-mix(in srgb,var(--border) 55%,transparent);
  --shadow-soft:0 10px 30px rgba(53,43,24,.07);
  --shadow-panel:0 18px 50px rgba(49,42,27,.20);
  --shadow-sheet:0 -16px 50px rgba(49,42,27,.20);

  /* Shape */
  --radius-sm:10px;
  --radius-md:12px;
  --radius-lg:18px;
  --radius-xl:22px;
  --sheet-radius:26px;

  /* Interaction */
  --tap-min:44px;
  --ease-out:cubic-bezier(.2,.8,.2,1);
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--accent) 42%,transparent);

  /* App shell */
  --shell-max:1480px;
  --shell-radius:22px;
  --shell-shadow:0 14px 40px rgba(79,67,43,.07);
}

/* Critical first-paint gate. This stylesheet is render-blocking in <head>, so a returning
   signed-in user sees loading immediately instead of the login page or a half-built app. */
body:not(.auth-view-resolved)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:23990;
  background:var(--bg,#FFEED6) url("../assets/logo.svg") center calc(50% - 42px)/72px 72px no-repeat;
}
body:not(.auth-view-resolved)::after{
  content:"טוען את WhenDen…";
  position:fixed;
  z-index:23991;
  top:calc(50% + 42px);
  left:0;
  right:0;
  text-align:center;
  color:var(--text,#4f432b);
  font:600 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body:not(.auth-view-resolved)>#loginPage,
body:not(.auth-view-resolved)>#appPage,
body:not(.auth-view-resolved)>#meetingFab{
  visibility:hidden!important;
}
