/* ==========================================================================
   base.css: shared by the website, the login pages and the dashboard.
   Design tokens (colours, type, spacing), reset, buttons, form controls,
   chips, tags, toasts and dialogs.

   Warm paper pages, a deep sidebar colour, one rich solid colour, Plus Jakarta Sans: the look of the owner's tourism
   website (round 14). Other colour schemes and fonts are one click away in Dashboard → Design choices.

   Mobile first: base rules are for phones; @media (min-width: …) adds the
   bigger-screen layout. Light theme by default; dark comes from the toggle
   (data-theme="dark" on <html>, remembered in localStorage).
   ========================================================================== */

/* Type. Default: Plus Jakarta Sans (SIL Open Font License), which also has the ₹ sign. Some other choices lack it, so
   "Rupee" supplies just that one character for them (unicode-range U+20B9). Browsers only download what a page uses. */
@font-face { font-family: "Rupee"; src: url("../fonts/plus-jakarta-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("../fonts/epilogue-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("../fonts/funnel-display-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../fonts/funnel-sans-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* ---------------------------------------------------------------- tokens
   Colours come in palettes. Each palette sets a handful of base colours for light and for dark; everything
   else (soft tints, lines, focus ring, glows) is mixed from them below, so a palette is only ~15 lines.
   The default is "Cobalt". The others are chosen in Dashboard → Design choices (data-palette on <html>). */

:root {
  color-scheme: light;
  /* The tourism website's layout, a software company's colours (owner, round 15: it must be told apart from the tourism website
     once that's marketed here, and look professional): cool white pages, deep navy for the sidebar, one clear blue for what
     matters, no gradients. --grad stays as a name (a lot of CSS uses it) but is one flat colour now. */
  --bg: #f6f8fb; --bg-elev: #ffffff; --bg-soft: #eaf0f7; --bg-tint: #f0f4fa;
  --ink: #0f1c2e; --ink-2: #33445c; --muted: #5b6b80;
  --accent: #1d4ed8; --accent-hover: #1a43ba; --accent-deep: #153a9e; --accent-ink: #ffffff;
  --line: #dde4ee; --line-strong: #cdd6e3;
  --grad: linear-gradient(#1d4ed8, #1d4ed8);
  --side: #0f1b2d; --side-ink: #e6edf7; --side-muted: #93a3ba; --side-active: #1d4ed8; --tile: #dbe6ff; --tile-ink: #153a9e;
  --glow-1: #dbe6ff; --glow-2: #d6eef5; --glow-3: #e3e6fb;
  --accent-2: #0e7490; --accent-3: #0f6b5c;

  /* mixed from the palette */
  --soft-mix: 10%;
  --accent-soft: color-mix(in srgb, var(--accent) var(--soft-mix), transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
  --grad-warm: linear-gradient(100deg, var(--accent), var(--accent-3));
  /* "violet" was the first accent; it now simply means the palette's accent */
  --violet: var(--accent); --violet-soft: var(--accent-soft); --violet-deep: var(--accent-deep);

  /* supporting colours, each with a soft tint and a deeper shade (service icons, concept screens) */
  --coral:  #ea580c; --coral-soft:  #fff1e8;                --coral-deep:  #c2410c;
  --yellow: #d97706; --yellow-soft: #fff7e0;                --yellow-deep: #92400e;
  --mint:   #059669; --mint-soft:   #e6f7f0;                --mint-deep:   #047857;
  --sky:    #0284c7; --sky-soft:    #e6f4fc;                --sky-deep:    #075985;
  --pink:   #db2777; --pink-soft:   #fdedf4;                --pink-deep:   #9d174d;

  --good: #0f8a58;   --good-soft: rgba(15, 138, 88, .12);
  --warn: #a8650a;   --warn-soft: rgba(217, 140, 20, .14);
  --bad: #cf2f3a;    --bad-soft: rgba(207, 47, 58, .11);
  --info: #2563eb;   --info-soft: rgba(37, 99, 235, .1);

  --shadow-sm: 0 1px 2px rgba(12, 15, 29, .06), 0 1px 1px rgba(12, 15, 29, .04);
  --shadow: 0 8px 24px -8px rgba(12, 15, 29, .14), 0 2px 6px rgba(12, 15, 29, .05);
  --shadow-lg: 0 30px 60px -20px rgba(12, 15, 29, .22), 0 10px 24px -12px rgba(12, 15, 29, .14);

  --sys: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Plus Jakarta Sans", var(--sys);
  --font-display: "Plus Jakarta Sans", var(--sys);
  --dt: -.03em;    /* heading letter-spacing per font */
  --ds: .9;       /* heading size scale per font */
  --dstretch: 100%;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 14px; --r-xl: 32px; --r-pill: 999px;
  --gutter: 20px;
  --container: 1200px;
  --header-h: 64px;
  --owner-h: 0px;   /* the team's "logged in" strip, when it's there (see .owner-bar) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220; --bg-elev: #131c2e; --bg-soft: #1c2740; --bg-tint: #0f1728;
  --ink: #eaf0f9; --ink-2: #c9d4e5; --muted: #96a5bb;
  --accent: #7aa2ff; --accent-hover: #94b5ff; --accent-deep: #bdd0ff; --accent-ink: #06122e;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --grad: linear-gradient(#7aa2ff, #7aa2ff);
  --side: #070d18; --side-ink: #e6edf7; --side-muted: #8593aa; --side-active: #1d4ed8; --tile: #dbe6ff; --tile-ink: #153a9e;
  --glow-1: #1d4ed8; --glow-2: #164e63; --glow-3: #2a3a78;
  --accent-2: #67c6dc; --accent-3: #5fd0b8;
  --soft-mix: 15%;

  --coral:  #fb923c; --coral-soft:  rgba(251, 146, 60, .12);  --coral-deep:  #fdba74;
  --yellow: #fbbf24; --yellow-soft: rgba(251, 191, 36, .12);  --yellow-deep: #fcd34d;
  --mint:   #34d399; --mint-soft:   rgba(52, 211, 153, .12);  --mint-deep:   #6ee7b7;
  --sky:    #38bdf8; --sky-soft:    rgba(56, 189, 248, .12);  --sky-deep:    #7dd3fc;
  --pink:   #f472b6; --pink-soft:   rgba(244, 114, 182, .12); --pink-deep:   #f9a8d4;

  --good: #34d399;   --good-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;   --warn-soft: rgba(251, 191, 36, .13);
  --bad: #f87171;    --bad-soft: rgba(248, 113, 113, .13);
  --info: #60a5fa;   --info-soft: rgba(96, 165, 250, .13);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
}

/* The other colour schemes, chosen live in Dashboard → Design choices (light, then dark). */
:root[data-palette="forest"]:not([data-theme="dark"]) {
  --bg: #faf9f0; --bg-elev: #ffffff; --bg-soft: #eef0dd; --bg-tint: #f4f4e6;
  --ink: #1b2419; --ink-2: #3a4736; --muted: #5f6b59;
  --accent: #1f5c3a; --accent-hover: #174a2e; --accent-deep: #123c25; --accent-ink: #ffffff;
  --line: #e2e2cc; --line-strong: #d4d5ba;
  --grad: linear-gradient(#1f5c3a, #1f5c3a);
  --side: #12281c; --side-ink: #e6f0e8; --side-muted: #98b3a1; --side-active: #1f5c3a; --tile: #cfe7d6; --tile-ink: #123c25;
  --glow-1: #cfe7d6; --glow-2: #e7e6c6; --glow-3: #d9e8d0;
}
:root[data-palette="forest"][data-theme="dark"] {
  --bg: #0e1711; --bg-elev: #16221a; --bg-soft: #1f2e24; --bg-tint: #121c15;
  --ink: #ecf3ec; --ink-2: #cddbcf; --muted: #9fb1a3;
  --accent: #6fcf97; --accent-hover: #8fdcb0; --accent-deep: #b5eaca; --accent-ink: #06231a;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --grad: linear-gradient(#6fcf97, #6fcf97);
  --side: #0a120d; --side-ink: #e6f0e8; --side-muted: #88a090; --side-active: #1f5c3a; --tile: #cfe7d6; --tile-ink: #123c25;
  --glow-1: #1f5c3a; --glow-2: #2e3d22; --glow-3: #254032;
}
:root[data-palette="royal"]:not([data-theme="dark"]) {
  --bg: #fbf8f1; --bg-elev: #ffffff; --bg-soft: #f0ebdd; --bg-tint: #f6f2e8;
  --ink: #141b33; --ink-2: #33405f; --muted: #5f677f;
  --accent: #1e3a8a; --accent-hover: #182f70; --accent-deep: #12245a; --accent-ink: #ffffff;
  --line: #e6dfcf; --line-strong: #d9d0bb;
  --grad: linear-gradient(#1e3a8a, #1e3a8a);
  --side: #101a3a; --side-ink: #e8ecf8; --side-muted: #98a4c8; --side-active: #1e3a8a; --tile: #d6e0ff; --tile-ink: #12245a;
  --glow-1: #d6e0ff; --glow-2: #efe2c2; --glow-3: #dfe2f5;
}
:root[data-palette="royal"][data-theme="dark"] {
  --bg: #0b1020; --bg-elev: #131a30; --bg-soft: #1c2440; --bg-tint: #0f1528;
  --ink: #eef1fa; --ink-2: #cdd4e8; --muted: #9aa4c0;
  --accent: #8fa8ff; --accent-hover: #a9bdff; --accent-deep: #c7d4ff; --accent-ink: #0a1433;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --grad: linear-gradient(#8fa8ff, #8fa8ff);
  --side: #070b18; --side-ink: #e8ecf8; --side-muted: #8691b3; --side-active: #1e3a8a; --tile: #d6e0ff; --tile-ink: #12245a;
  --glow-1: #1e3a8a; --glow-2: #3a3424; --glow-3: #2a3160;
}
:root[data-palette="ember"]:not([data-theme="dark"]) {
  --bg: #fff8f1; --bg-elev: #ffffff; --bg-soft: #fbeadb; --bg-tint: #fcf1e6;
  --ink: #2a1a12; --ink-2: #4f392c; --muted: #75604f;
  --accent: #a8430f; --accent-hover: #8a370c; --accent-deep: #6f2c09; --accent-ink: #ffffff;
  --line: #efdccb; --line-strong: #e5ccb6;
  --grad: linear-gradient(#a8430f, #a8430f);
  --side: #33190d; --side-ink: #f7e9df; --side-muted: #c0a08a; --side-active: #a8430f; --tile: #f9d3ba; --tile-ink: #6f2c09;
  --glow-1: #f9d3ba; --glow-2: #f7e2c5; --glow-3: #f3d6cc;
}
:root[data-palette="ember"][data-theme="dark"] {
  --bg: #190f09; --bg-elev: #241710; --bg-soft: #312017; --bg-tint: #1d120b;
  --ink: #f8ece2; --ink-2: #e2cfc0; --muted: #b9a28f;
  --accent: #f09a6a; --accent-hover: #f5b189; --accent-deep: #f9cbaf; --accent-ink: #2a1205;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --grad: linear-gradient(#f09a6a, #f09a6a);
  --side: #120a05; --side-ink: #f7e9df; --side-muted: #a48a78; --side-active: #a8430f; --tile: #f9d3ba; --tile-ink: #6f2c09;
  --glow-1: #a8430f; --glow-2: #4a3216; --glow-3: #4a2a22;
}

/* Font presets for the dev-only switcher (partials/font_switcher.html). The default above is the owner's pick. */
/* the other choices (site.js fontSwitcher) */
:root[data-font="cabinet"]   { --font-display: "Rupee", "Cabinet Grotesk", var(--sys); --dt: -.02em; }
:root[data-font="general"]   { --font: "Rupee", "General Sans", var(--sys); --font-display: "Rupee", "General Sans", var(--sys); --dt: -.03em; }
:root[data-font="satoshi"]   { --font-display: "Rupee", "Satoshi", var(--sys); --dt: -.035em; }
:root[data-font="clash"]     { --font: "Rupee", "Satoshi", var(--sys); --font-display: "Rupee", "Clash Display", "Satoshi", var(--sys); --dt: -.01em; --ds: .92; }
:root[data-font="epilogue"]  { --font: "Rupee", "Epilogue", var(--sys); --font-display: "Rupee", "Epilogue", var(--sys); --dt: -.04em; }
:root[data-font="unbounded"] { --font: "Plus Jakarta Sans", var(--sys); --font-display: "Rupee", "Unbounded", var(--sys); --dt: -.03em; --ds: .86; }
:root[data-font="funnel"]    { --font: "Rupee", "Funnel Sans", var(--sys); --font-display: "Rupee", "Funnel Display", var(--sys); --dt: -.03em; }
:root[data-font="poppins"]   { --font: "Rupee", "Poppins", var(--sys); --font-display: "Rupee", "Poppins", var(--sys); --dt: -.03em; --ds: .95; }
:root[data-font="syne"]      { --font: "Sora", var(--sys); --font-display: "Syne", "Sora", var(--sys); --dt: -.012em; --ds: .9; }


@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }
/* big screens and zoomed-out browsers: a wider column so the page doesn't look lost in the middle */
@media (min-width: 1600px) { :root { --container: 1360px; } }
/* Text a tad smaller on phones (owner, 2026-11-03): every fixed font size is written as calc(Npx * var(--fz)).
   Form fields stay at 16px, below that iPhones zoom into the page when you tap them. */
:root { --fz: 1; }
@media (max-width: 480px) { :root { --fz: .94; } }

/* Scrollbars in the site's own colours, light and dark (owner: "even the scrollbar should match the theme").
   scrollbar-color covers Chrome 121+ and Firefox; the ::-webkit- rules cover Safari and older Chrome. */
:root { --sb-thumb: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); --sb-track: var(--bg-soft); }
html { scrollbar-color: var(--sb-thumb) var(--sb-track); }
* { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
html { scrollbar-width: auto; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }

/* colour helpers: class="c-sky" etc. sets --c / --c-soft / --c-deep (used by the concept app screens) */
.c-violet { --c: var(--violet); --c-soft: var(--violet-soft); --c-deep: var(--violet-deep); }
.c-coral  { --c: var(--coral);  --c-soft: var(--coral-soft);  --c-deep: var(--coral-deep); }
.c-yellow { --c: var(--yellow); --c-soft: var(--yellow-soft); --c-deep: var(--yellow-deep); }
.c-mint   { --c: var(--mint);   --c-soft: var(--mint-soft);   --c-deep: var(--mint-deep); }
.c-sky    { --c: var(--sky);    --c-soft: var(--sky-soft);    --c-deep: var(--sky-deep); }
.c-pink   { --c: var(--pink);   --c-soft: var(--pink-soft);   --c-deep: var(--pink-deep); }

/* ---------------------------------------------------------------- reset & type */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--owner-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 calc(15.5px * var(--fz))/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: var(--dt); font-stretch: var(--dstretch); line-height: 1.12; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--bg-soft); padding: .1em .4em; border-radius: 6px; }
kbd { font-size: calc(11px * var(--fz)); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg-elev); }
em { font-style: italic; }
/* Highlighted words in headings (<em>, .hl, .mark): the brand gradient, same typeface. */
h1 em, h2 em, h3 em, .hl, .mark {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: calc(14px * var(--fz)); }
.center { text-align: center; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 16px; }
.stack > * + * { margin-top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row form { margin: 0; }

/* icons: <svg class="i"><use href="#i-name"/></svg> */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; display: inline-block; }
.i--sm { width: .85em; height: .85em; }

/* ---------------------------------------------------------------- brand */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
/* The mark (round 17, owner: "make the icon much much better, I want to trademark it"): an "A" in a circle with an orbit and a
   gold dot. Its colours are fixed, like any trademark; the dot circles once when you point at it. */
.brand__mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .55); }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.brand__mark .mk-bg { fill: #1d4ed8; }
.brand__mark .mk-orbit { fill: none; stroke: #93c5fd; stroke-width: 1.75; stroke-linecap: round; }
.brand__mark .mk-a { fill: none; stroke: #fff; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .mk-dot { fill: #fbbf24; }
.brand__mark svg :is(.mk-orbit, .mk-dot, circle.mk-bg:not(:first-child)) { transform-origin: 16px 16px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__mark svg :is(.mk-orbit, .mk-dot, circle.mk-bg:not(:first-child)) { animation: mk-orbit 1.1s var(--ease-out, ease-out); }
}
@keyframes mk-orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* An uploaded logo (Business details): as tall as the "A" tile, as wide as it needs; the dark version swaps in. */
.brand__logo { display: inline-flex; align-items: center; flex: none; height: 38px; }
.brand__logo img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.brand__logo-dark { display: none; }
[data-theme="dark"] .brand__logo.has-dark .brand__logo-light { display: none; }
[data-theme="dark"] .brand__logo.has-dark .brand__logo-dark { display: block; }
.brand__name { font: 700 calc(17px * var(--fz))/1 var(--font-display); letter-spacing: var(--dt); font-stretch: var(--dstretch); white-space: nowrap; }
.brand__name span { color: inherit; font-weight: inherit; }

/* ---------------------------------------------------------------- "you're logged in" strip (partials/owner_bar.html)
   Shown to the team only: on the website it links to the dashboard, in the dashboard back to the website. */

/* Stays at the top while scrolling (owner: "why scroll away the strip?"). One line of a fixed height, so the
   sticky header below it (top: var(--owner-h)) and the phone menu line up exactly. */
:root:has(.owner-bar) { --owner-h: 36px; }
.owner-bar { position: sticky; top: 0; z-index: 130; height: var(--owner-h); display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px; padding: 0 var(--gutter); background: var(--ink); color: color-mix(in srgb, var(--bg) 75%, var(--ink)); font-size: calc(13px * var(--fz)); white-space: nowrap; overflow: hidden; }
.owner-bar__who { font-style: normal; }
@media (max-width: 479px) { .owner-bar__who { display: none; } }
.owner-bar span { display: inline-flex; align-items: center; gap: 6px; }
.owner-bar b { color: var(--bg); font-weight: 600; }
.owner-bar span > .i { color: #34d399; }
.owner-bar a { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); font-weight: 600; }
.owner-bar a:hover { text-decoration: none; background: color-mix(in srgb, var(--bg) 24%, transparent); }

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--bg-elev); --btn-ink: var(--ink); --btn-border: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-border);
  font-weight: 600; font-size: calc(15px * var(--fz)); line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(2px); }
.btn--primary { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-border: transparent; }
.btn--primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 8px 20px -10px var(--accent-glow); }
[data-theme="dark"] .btn--primary { box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--accent { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-border: transparent; }
.btn--accent:hover { box-shadow: 0 14px 30px -10px var(--accent-glow); }
.btn--ghost { --btn-bg: var(--bg-elev); }
.btn--ghost:hover { --btn-bg: var(--bg-soft); border-color: var(--accent); color: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-ink: #0c0f1d; --btn-border: transparent; }
.btn--light:hover { box-shadow: 0 10px 30px -8px rgba(255, 255, 255, .35); }
.btn--danger { --btn-bg: var(--bad-soft); --btn-ink: var(--bad); --btn-border: transparent; }
.btn--danger:hover { --btn-bg: var(--bad); --btn-ink: #fff; }
/* A long button label wraps on a phone instead of making the whole page wider than the screen (the home page
   was 443px wide on a 390px phone because of one button, so it could wobble sideways while scrolling). */
.btn { max-width: 100%; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: calc(14px * var(--fz)); }
.btn--xs { min-height: 28px; padding: 3px 10px; font-size: calc(13px * var(--fz)); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: calc(16px * var(--fz)); }
.btn--block { width: 100%; }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--ink-2); border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.icon-btn:active { transform: scale(.94); }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }
.linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.linklike:hover { color: var(--ink); }

/* theme toggle: moon in light mode, sun in dark mode, with a little spin */
.theme-toggle .i { transition: transform .5s var(--spring), opacity .3s; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle:hover .i { transform: rotate(-20deg); }

/* ---------------------------------------------------------------- small pieces */

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: calc(13px * var(--fz)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); background: var(--bg-elev); border: 1px solid var(--line); font-size: calc(14px * var(--fz)); font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
/* The pulse is a ring that grows and fades (transform + opacity): an animated box-shadow repainted every frame,
   which kept phones busy and made the tech strip stutter (owner's recording sr1). */
.dot--live { position: relative; background: #22c55e; }
.dot--live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(34, 197, 94, .55); animation: pulse 2s ease-out infinite; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: calc(12px * var(--fz)); font-weight: 600; background: var(--bg-soft); color: var(--ink-2); vertical-align: middle; }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--good { background: var(--good-soft); color: var(--good); }
.tag--bad { background: var(--bad-soft); color: var(--bad); }
.tag--concept { background: var(--accent-soft); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: calc(12.5px * var(--fz)); padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: calc(15px * var(--fz)); color: #fff; background: var(--grad); }
.avatar--lg { width: 52px; height: 52px; font-size: calc(20px * var(--fz)); }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar--xl { width: 96px; height: 96px; font-size: calc(36px * var(--fz)); }
.notice { padding: 12px 16px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--ink); font-size: calc(14px * var(--fz)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: calc(14px * var(--fz)); font-weight: 500; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-size: calc(14px * var(--fz)); font-weight: 600; color: var(--ink-2); padding: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], input[type="time"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s; font-size: 16px; /* 16px stops iOS zooming in */
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
textarea[rows="2"] { min-height: 74px; }
textarea { cursor: text; }
/* A box for a few short lines (the card's text under the title): it shows the lines, like ruled paper (owner, round 17). */
textarea.lined { min-height: 0; line-height: 1.7; resize: none; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.7em - 1px), var(--line-strong) calc(1.7em - 1px) 1.7em);
  background-size: 100% 5.1em; background-repeat: no-repeat; background-origin: content-box; background-attachment: local; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.is-invalid input, .is-invalid textarea, input.is-invalid, textarea.is-invalid { border-color: var(--bad); }
.field__error { margin: 0; font-size: calc(13px * var(--fz)); color: var(--bad); min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select--sm::after { right: 12px; width: 6px; height: 6px; }

/* No browser-default controls anywhere (owner: "never use browser default style, e.g. the Browse button").
   Dropdowns, dates, times, checkboxes and radios: controls.css + controls.js. */
input[type="file"] { width: 100%; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--bg-soft); color: var(--muted); font: inherit; font-size: calc(14px * var(--fz)); cursor: pointer; }
input[type="file"]:hover, input[type="file"]:focus-visible { border-color: var(--accent); outline: none; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg-elev); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
input[type="range"] { accent-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 42px; }
.input-icon--password input { padding-right: 46px; }
.reveal-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.reveal-pw:hover { color: var(--ink); background: var(--bg-soft); }
.reveal-pw .i-hide { display: none; }
.reveal-pw.is-on .i-hide { display: inline-block; }
.reveal-pw.is-on .i-show { display: none; }
.otp-input { font-family: var(--font-mono); font-size: calc(26px * var(--fz)) !important; letter-spacing: .35em; text-align: center; }

.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip span { display: inline-flex; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: calc(14px * var(--fz)); font-weight: 500; cursor: pointer; transition: all .2s var(--ease); background: var(--bg-elev); }
.radio-chip span:hover { border-color: var(--ink-2); }
.radio-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio-chip input:focus-visible + span { box-shadow: var(--ring); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: calc(14px * var(--fz)); margin-bottom: 16px; }
.alert .i { margin-top: 2px; }
.alert--error { background: var(--bad-soft); color: var(--bad); }
.alert--info { background: var(--accent-soft); color: var(--ink); }
.alert--info .i { flex: none; color: var(--accent); }

/* ---------------------------------------------------------------- toasts
   Success/info close themselves after 5 s (paused while hovered); errors stay
   until closed. They stack; a new error clears the success ones (core.js). */

.toasts { position: fixed; z-index: 900; right: 16px; left: 16px; bottom: 16px; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
@media (min-width: 640px) { .toasts { left: auto; top: calc(var(--header-h) + var(--owner-h) + 12px); bottom: auto; width: 380px; flex-direction: column; } }
.toast {
  position: relative; pointer-events: auto; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 44px 14px 14px; border-radius: var(--r); overflow: hidden;
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: toast-in .45s var(--spring) both;
}
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
.toast__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast__text { font-size: calc(14.5px * var(--fz)); line-height: 1.45; padding-top: 4px; }
.toast__close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.toast__close:hover { background: var(--bg-soft); color: var(--ink); }
.toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: currentColor; opacity: .5; animation: toast-timer 10s linear forwards; }
.toast:hover .toast__timer { animation-play-state: paused; }
.toast--success .toast__icon { background: var(--good-soft); color: var(--good); }
.toast--success .toast__timer { color: var(--good); }
.toast--error .toast__icon { background: var(--bad-soft); color: var(--bad); }
.toast--error { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.toast--warning .toast__icon { background: var(--warn-soft); color: var(--warn); }
.toast--warning .toast__timer { color: var(--warn); }
.toast--info .toast__icon { background: var(--info-soft); color: var(--info); }
.toast--info .toast__timer { color: var(--info); }
.flash-fallback { position: fixed; top: 80px; left: 16px; right: 16px; z-index: 900; display: grid; gap: 8px; }
.flash { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flash--error { color: var(--bad); }

/* ---------------------------------------------------------------- confirm dialog (core.js) */

.dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); color: var(--ink); }
.dialog::backdrop { background: rgba(7, 8, 13, .5); backdrop-filter: blur(4px); }
.dialog[open] .dialog__box { animation: pop-in .35s var(--spring) both; }
.dialog__box { width: 420px; max-width: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.dialog__box h2 { font-size: calc(17px * var(--fz)); font-weight: 650; line-height: 1.35; margin-bottom: 8px; }
.dialog__box p { color: var(--ink-2); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
/* A link or text to copy (core.js copyBox, the agreement's signing link): the whole text visible, selected on focus. */
.copy-box, .link-dialog__url { display: block; width: 100%; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 500 calc(14px * var(--fz))/1.45 var(--font-mono); resize: none; word-break: break-all; field-sizing: content; min-height: 0; }
.link-dialog .dialog__box { width: 520px; }
.link-dialog .alert { margin-top: 12px; }
.link-dialog__actions { flex-wrap: wrap; }

/* ---------------------------------------------------------------- reveal on scroll: switched off
   Content used to fade and slide in as it came on screen. On phones that made pages feel slow and half
   empty while scrolling (owner, 2026-11-01), so everything simply shows. The .reveal classes in the
   templates do nothing now. */

/* ---------------------------------------------------------------- keyframes */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3); opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Theme switch: a circle grows from the toggle button (View Transitions API, where supported). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------------------------------------------------------------- moving between pages (owner: "no transition is smooth")
   Going to another page fades the content across instead of flashing white, while the header, the logged-in
   strip and the dashboard's sidebar and top bar stay exactly where they are, like an app. Chrome/Edge do this
   for plain links (cross-document view transitions); other browsers simply change page as before.
   The theme switch has its own circle (core.js); these rules only apply to page changes ("page" type). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; types: page; }
  html:active-view-transition-type(page) .site-header { view-transition-name: site-header; }
  html:active-view-transition-type(page) .owner-bar { view-transition-name: owner-bar; }
  html:active-view-transition-type(page) .dash-side { view-transition-name: dash-side; }
  html:active-view-transition-type(page) .dash-top { view-transition-name: dash-top; }
  html:active-view-transition-type(page)::view-transition-old(root) { animation: page-out .16s cubic-bezier(.4, 0, 1, 1) both; }
  html:active-view-transition-type(page)::view-transition-new(root) { animation: page-in .26s cubic-bezier(0, 0, .2, 1) both; }
  html:active-view-transition-type(page)::view-transition-group(site-header),
  html:active-view-transition-type(page)::view-transition-group(owner-bar),
  html:active-view-transition-type(page)::view-transition-group(dash-side),
  html:active-view-transition-type(page)::view-transition-group(dash-top) { animation-duration: .2s; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* Folds (<details>) open and close smoothly instead of jumping (Chrome 131+; elsewhere they just open). The FAQ
   has its own animation (site.js) and the account menu floats, so they're left out. */
:root { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) {
  details:not(.faq__item):not(.dash-user)::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .28s cubic-bezier(.2, .7, .2, 1), opacity .2s, content-visibility .28s allow-discrete;
  }
  details:not(.faq__item):not(.dash-user)[open]::details-content { block-size: auto; opacity: 1; }
  /* dialogs fade in and out too (closing used to be instant) */
  .dialog, .dialog::backdrop { transition: opacity .18s ease, display .18s allow-discrete, overlay .18s allow-discrete; opacity: 0; }
  .dialog[open], .dialog[open]::backdrop { opacity: 1; }
  @starting-style { .dialog[open], .dialog[open]::backdrop { opacity: 0; } }
}

/* People who ask their system for less motion get none of the decorative movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .toasts, .flash-fallback { display: none !important; }
}

/* Up / down buttons (float-buttons.js), website and dashboard, like Musafire's */
.page-jump { position: fixed; right: 16px; bottom: 16px; z-index: 140; display: flex; flex-direction: column; gap: 6px; transition: opacity .2s, visibility .2s; }
.page-jump__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.page-jump__btn:hover { border-color: var(--accent); color: var(--accent); }
.page-jump__btn .i { width: 20px; height: 20px; }
.page-jump__btn[data-jump="top"] .i { transform: rotate(180deg); }
.page-jump[hidden], .page-jump__btn[hidden] { display: none; }
.page-jump.is-tucked { opacity: 0; visibility: hidden; }
@media (max-width: 759px) { .page-jump:not(.is-awake) { opacity: 0; visibility: hidden; } }
@media (min-width: 760px) { .page-jump { right: 24px; bottom: 24px; } }
@media print { .page-jump { display: none !important; } }

/* Anything you click shows the hand, never the text cursor (owner: the I-beam on the "New note" button). A <summary> is text
   to the browser unless told otherwise, and so is a button's label. */
summary, .btn, a.btn, label.btn, [role="button"], .status-tab, .check, .seg label { cursor: pointer; user-select: none; }

/* The loading bar along the very top (progress.js) */
.page-progress { position: fixed; top: 0; left: 0; z-index: 9999; height: 3px; width: 0; opacity: 0; pointer-events: none; background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 0 3px 3px 0;
  transition: width 6s cubic-bezier(.08, .8, .2, 1), opacity .2s; }
.page-progress.is-running { width: 88%; opacity: 1; }
.page-progress.is-done { width: 100%; opacity: 0; transition: width .2s ease-out, opacity .35s .2s; }
@media (prefers-reduced-motion: reduce) { .page-progress { transition: opacity .2s; } }
