@charset "utf-8";
/* Sugraasa admin prototype
   Colour: the logo's saffron and navy only, on warm ivory (light) or deep navy (dark).
   Type: Poppins only, weights 300 to 500, no italics. Light headlines with a saffron key word, hairlines, pills.
   Motion: headings rise out of a blur, a saffron bar draws under the key word, lists assemble once,
   numbers count up, the primary button's gradient flows on hover. All of it stops under reduced motion. */
:root {
  --saffron: #EE9A03;
  --saffron-2: #F8C24A;
  --navy: #202E3B;
  --grad: linear-gradient(90deg, #EE9A03, #F8C24A);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F4EEE3;
  --ink: #202E3B;
  --body: #3A4652;
  --mute: #5F6973;
  --line: #ECE5D8;
  --line-strong: #D6CCB9;
  --saffron-ink: #8F5400;
  --tint: #FBEACB;
  --wash: #FFF8EC;
  --spot: rgba(238, 154, 3, .10);
  --glow: 0 10px 30px -10px rgba(238, 154, 3, .75);
  --night: #17222D;
  --night-2: #101A23;
  --on-night: #B7C0C9;
  --night-line: rgba(255, 255, 255, .10);
  --strong-bg: #202E3B;
  --strong-fg: #FFFFFF;
  --soft-bg: #EEF0F2;
  --scrim: rgba(23, 34, 45, .42);
  --float: 0 40px 90px -40px rgba(32, 46, 59, .45), 0 12px 30px -18px rgba(32, 46, 59, .25);
  --menu: 0 24px 60px -24px rgba(32, 46, 59, .35);

  --serif: Poppins, 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sans: Poppins, 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mark: Poppins, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* names the screens already use */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--mute);
  --accent: var(--saffron);
  --accent-soft: var(--tint);
  --accent-wash: var(--wash);
  --surface-2: var(--sand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E151C; --surface: #141E28; --sand: #111A23; --ink: #F5F1EA; --body: #D3D8DD; --mute: #9AA6B1;
    --line: #22303D; --line-strong: #344657; --saffron-ink: #F6B23A; --tint: #3A2A0E; --wash: #1A1A16;
    --spot: rgba(238, 154, 3, .12); --night: #0A1118; --night-2: #070C11; --strong-bg: #F5F1EA; --strong-fg: #17222D;
    --soft-bg: #22303D; --scrim: rgba(3, 7, 10, .62); --float: 0 40px 90px -40px rgba(0, 0, 0, .85); --menu: 0 24px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E151C; --surface: #141E28; --sand: #111A23; --ink: #F5F1EA; --body: #D3D8DD; --mute: #9AA6B1;
  --line: #22303D; --line-strong: #344657; --saffron-ink: #F6B23A; --tint: #3A2A0E; --wash: #1A1A16;
  --spot: rgba(238, 154, 3, .12); --night: #0A1118; --night-2: #070C11; --strong-bg: #F5F1EA; --strong-fg: #17222D;
  --soft-bg: #22303D; --scrim: rgba(3, 7, 10, .62); --float: 0 40px 90px -40px rgba(0, 0, 0, .85); --menu: 0 24px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { text-wrap: balance; margin: 0; color: var(--ink); font-weight: 400; }
th, b, strong, optgroup { font-weight: 500; }
em, i, cite, address, var, dfn { font-style: normal; }
.editor em, .editor i { font-style: italic; } /* authors can still italicise inside a blog post */
b, strong { color: var(--ink); font-weight: 500; }
a { color: var(--ink); }
button { font-family: inherit; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.muted { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { position: relative; flex: 1 1 256px; max-width: 268px; background: var(--night); color: #fff; padding-block: 24px 18px; padding-inline: 14px; display: flex; flex-direction: column; gap: 2px; }
.side::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 20px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; background: #fff; border-radius: 12px; padding: 4px; object-fit: contain; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand small { display: block; font-size: 10px; letter-spacing: .24em; color: var(--on-night); margin-top: 2px; }
.wm { display: block; font-family: var(--mark); font-weight: 500; letter-spacing: .22em; font-size: 16px; color: #fff; line-height: 1.1; white-space: nowrap; }
.wm span { display: inline-block; background: linear-gradient(100deg, #fff 0 40%, var(--saffron-2) 50%, #fff 60% 100%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-list { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 999px; background: rgba(255, 255, 255, .08); pointer-events: none; }
.nav-ind::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(238, 154, 3, .8); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px 9px 20px; border-radius: 999px; color: var(--on-night); font-weight: 500; font-size: 14.5px; min-height: 42px; border: 0; background: transparent; text-align: left; cursor: pointer; width: 100%; transition: color .25s var(--ease); }
.nav span:first-child { transition: transform .35s var(--ease); }
.nav:hover { color: #fff; }
.nav:hover span:first-child { transform: translateX(3px); }
.nav.on { color: #fff; font-weight: 500; }
.nav .count { font-size: 11.5px; font-weight: 500; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.nav.on .count { background: var(--saffron); color: var(--navy); }
.nav-sec { font-size: 10.5px; letter-spacing: .22em; color: rgba(183, 192, 201, .75); padding: 16px 20px 6px; text-transform: uppercase; font-weight: 500; }
.side-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--on-night); display: flex; flex-direction: column; gap: 12px; }
.side-foot b { color: #fff; font-weight: 500; }
.side-foot .who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--grad); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 13px; flex: none; }
.side-foot .out-btn { background: none; border: 0; color: var(--saffron-2); font-weight: 500; padding: 0; cursor: pointer; font-size: 13px; text-align: left; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; font: inherit; font-weight: 500; padding: 8px 16px; min-height: 40px; cursor: pointer; }
@media (max-width: 860px) {
  .side { max-width: none; flex-basis: 100%; padding-block: 14px 12px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .menu-btn { display: inline-block; }
  .side:not(.open) > :not(.side-top) { display: none; }
  .side.open .side-top { margin-bottom: 8px; }
  .brand { padding-bottom: 2px; }
}

/* theme switch: a pill holding two segments; the pressed one slides */
.theme-tg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.theme-tg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease); }
.theme-tg.dark::before { transform: translateX(100%); }
.theme-tg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 0; background: none; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mute); cursor: pointer; transition: color .4s var(--ease); }
.theme-tg button[aria-pressed="true"] { color: var(--paper); }
.side .theme-tg { background: rgba(255, 255, 255, .06); border-color: var(--night-line); align-self: flex-start; }
.side .theme-tg::before { background: #fff; }
.side .theme-tg button { color: var(--on-night); }
.side .theme-tg button[aria-pressed="true"] { color: var(--navy); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

.main { position: relative; flex: 999 1 560px; min-width: 0; padding-block: 34px 64px; padding-left: max(16px, min(48px, 3.4vw)); padding-right: max(16px, env(safe-area-inset-right, 0px), min(48px, 3.4vw)); overflow: hidden; }
.main::before { content: ""; position: absolute; top: -220px; right: -160px; width: 560px; height: 560px; border-radius: 999px; background: radial-gradient(closest-side, rgba(238, 154, 3, .16), transparent); pointer-events: none; }
.main > * { position: relative; }

/* page head: eyebrow, then a light headline with a saffron key word */
.ph { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.ph > div:first-child { min-width: 0; }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.crumb::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.crumb button { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.crumb button:hover { color: var(--saffron-ink); }
.ph h1, .hl { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.hl .w { display: inline-block; }
.hl .key { position: relative; display: inline-block; font-weight: 400; color: var(--saffron-ink); padding-right: .06em; }
.hl .key::after { content: ""; position: absolute; left: 0; right: .06em; bottom: .02em; height: 3px; border-radius: 3px; background: var(--grad); transform-origin: left; }
.hl .key:hover::after { animation: bar2 .7s var(--ease); }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cols > * { min-width: 0; }
.grow { flex: 999 1 520px; }
.aside { flex: 1 1 300px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ---------- Surfaces ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card.dark { background: var(--night); border-color: var(--night); color: var(--on-night); overflow: hidden; }
.card.dark::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 999px; background: radial-gradient(closest-side, rgba(238, 154, 3, .35), transparent); pointer-events: none; }
.card.dark > * { position: relative; }
.card.dark b, .card.dark h2 { color: #fff; }
.card.dark .muted { color: var(--on-night); }
.big { font-family: var(--serif); font-size: 42px; line-height: 1.05; font-weight: 300; color: var(--saffron-2); margin-top: 6px; letter-spacing: -.01em; }
.big small { font-family: var(--sans); font-size: 15px; color: #fff; font-weight: 500; letter-spacing: 0; }
.tile .k { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.tile .v { font-family: var(--serif); font-weight: 300; letter-spacing: -.03em !important; font-size: 40px; line-height: 1; margin: 14px 0 8px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .s { font-size: 13px; color: var(--mute); }
.tile.dark .k, .tile.dark .s { color: var(--on-night); }
.tile.dark .v { color: var(--saffron-2); }
button.tile, a.tile { text-align: left; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
/* interactive surfaces carry a soft saffron spotlight that follows the pointer */
button.tile, .rcard, .opt, .jstep { background-image: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), var(--spot), transparent 45%); transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
button.tile:hover, .rcard:hover { border-color: rgba(238, 154, 3, .55); transform: translateY(-3px); box-shadow: var(--menu); }
.tile.dark { background-image: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(238, 154, 3, .22), transparent 45%); }
.band { background: var(--tint); border-radius: var(--r-lg); padding: 16px 20px; }
.note { background: var(--tint); color: var(--ink); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.empty { padding: 40px; text-align: center; color: var(--mute); font-family: var(--serif); font-size: 17px; font-weight: 300; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .t { width: 64px; font-family: var(--serif); font-size: 17px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.list-row .main-col { flex: 1 1 200px; min-width: 0; }

/* the one dark band per page: the client journey */
.jband { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); border-radius: var(--r-xl); padding: 30px clamp(20px, 3vw, 36px) 26px; margin-bottom: 26px; }
.jband::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(238, 154, 3, .28), transparent); pointer-events: none; }
.jband > * { position: relative; }
.jband .eyebrow { color: var(--saffron-2); }
.jband .eyebrow::before { background: rgba(248, 194, 74, .5); }
.jband h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: #fff; margin: 10px 0 6px; }
.jband h2 em { color: var(--saffron-2); }
.jtrack { position: relative; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; margin: 22px 0 4px; }
.jtrack span { position: absolute; inset: 0; background: var(--grad); border-radius: 2px; transform-origin: left; box-shadow: 0 0 14px rgba(238, 154, 3, .7); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn, .btn2, .btnd, .btnl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 0 22px; min-height: 46px; font-size: 14.5px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; border: 0; letter-spacing: .01em; }
.btn { background: linear-gradient(90deg, #EE9A03, #F8C24A, #EE9A03); background-size: 200% 100%; background-position: 0 0; color: var(--navy); transition: background-position .7s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { background-position: 100% 0; box-shadow: var(--glow); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn2 { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); padding: 0 20px; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn2:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btnd { background: var(--strong-bg); color: var(--strong-fg); transition: transform .3s var(--ease); }
.btnd:hover { transform: translateY(-1px); }
.btnl, .link { background: none; padding: 0 2px; color: var(--ink); font-weight: 500; background-image: linear-gradient(var(--saffron), var(--saffron)), linear-gradient(var(--line-strong), var(--line-strong)); background-size: 0 2px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat; border-radius: 0; transition: background-size .45s var(--ease), color .3s; }
.btnl { min-height: 32px; padding-bottom: 2px; }
.btnl:hover, .link:hover { background-size: 100% 2px, 100% 1px; }
.link { border: 0; font: inherit; font-weight: 500; cursor: pointer; text-align: left; padding-bottom: 1px; }
.sm { min-height: 36px; font-size: 13px; padding: 0 14px; }
.btn[disabled], .btnd[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .45s var(--ease), background-color .3s; }
.icon-btn:hover { background: var(--sand); transform: rotate(90deg); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; letter-spacing: .02em; }
.c-strong { background: var(--strong-bg); color: var(--strong-fg); }
.c-accent { background: var(--saffron); color: var(--navy); }
.c-tint { background: var(--tint); color: var(--ink); }
.c-soft { background: var(--soft-bg); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Tabs: plain text, one saffron underline that slides ---------- */
.tabs { position: relative; display: flex; gap: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 20px; }
.tab { min-height: 44px; padding: 0 14px; border: 0; background: transparent; font-weight: 500; font-size: 14.5px; color: var(--mute); cursor: pointer; transition: color .3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 500; }
.tab-ind { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; border-radius: 2px; background: var(--grad); pointer-events: none; }
.tabs:not(.has-ind) .tab.on { box-shadow: inset 0 -2px 0 var(--saffron); }

/* ---------- Tables: hairline rows ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--mute); padding: 14px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background-color .25s; }
.tbl tbody tr:hover td { background: var(--wash); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl .name { font-weight: 500; color: var(--ink); }
.tbl td:first-child { white-space: nowrap; }
.tbl td.r .sm { padding: 0 12px; }
.tbl .hl td { background: var(--wash); }

/* ---------- Forms ---------- */
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.inp { min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 14px; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); width: 100%; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.inp:hover { border-color: var(--mute); }
.inp:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(238, 154, 3, .18); }
textarea.inp { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.55; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
input[type=checkbox], input[type=radio] { accent-color: var(--saffron); width: 18px; height: 18px; flex: none; }
.ck { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; min-height: 34px; color: var(--body); }
.sec { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--mute); }
.search { flex: 1 1 260px; }
.opt { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 16px; border: 1px solid var(--line-strong); border-radius: 16px; cursor: pointer; background-color: var(--surface); color: var(--ink); font: inherit; text-align: left; width: 100%; }
.opt:hover { border-color: var(--saffron); }
.opt.on { border: 1px solid var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); background-color: var(--wash); }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 30px; text-align: center; background: var(--sand); }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; cursor: pointer; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--ink); transition: all .3s var(--ease); }
.toggle.on { background: var(--saffron); border: 1px solid var(--saffron); color: var(--navy); }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: max(40px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.dlg { position: relative; background: var(--surface); color: var(--body); border-radius: 26px; width: 100%; max-width: 640px; box-shadow: var(--float); border: 1px solid var(--line); overflow: hidden; }
.dlg::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.dlg.wide { max-width: 880px; }
.dlg.narrow { max-width: 480px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.dlg-h .sub { font-size: 13px; color: var(--mute); font-weight: 500; margin-top: 4px; }
.dlg-b { padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-f.split { justify-content: space-between; }
.drawer-wrap { position: fixed; inset: 0; z-index: 50; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: var(--surface); color: var(--body); box-shadow: var(--float); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 51; border-left: 1px solid var(--line); }
.drawer .body { padding: 8px 28px; overflow-y: auto; flex: 1; }
.toast { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--night); color: #fff; padding: 15px 22px 17px; border-radius: 999px; font-weight: 500; z-index: 70; box-shadow: var(--float); max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; overflow: hidden; border: 1px solid var(--night-line); }
.toast::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--saffron); box-shadow: 0 0 0 4px rgba(238, 154, 3, .25); flex: none; }
.toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform-origin: left; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stp { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mute); }
.stp .dot { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 12px; font-weight: 500; background: var(--soft-bg); color: var(--ink); transition: all .4s var(--ease); }
.stp.on { color: var(--ink); }
.stp.on .dot { background: var(--saffron); color: var(--navy); box-shadow: 0 0 0 5px rgba(238, 154, 3, .2); }

/* ---------- Journey steps ---------- */
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.jstep { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px 14px 10px 0; font-size: 14.5px; font-weight: 500; background-color: transparent; border: 0; color: #fff; cursor: pointer; text-align: left; border-radius: 14px; }
.jstep .jn { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1; color: var(--saffron-2); transition: transform .45s var(--ease); }
.jstep .jl { transition: transform .45s var(--ease); }
.jstep:hover .jn { transform: translateY(-3px); }
.jstep:hover .jl { transform: translateX(3px); color: var(--saffron-2); }
.jn { font-weight: 400; }
.stage { flex: 1 1 130px; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; text-align: center; }
.stage.done { background: var(--strong-bg); color: var(--strong-fg); }
.stage.now { background: var(--saffron); color: var(--navy); box-shadow: 0 0 0 4px rgba(238, 154, 3, .18); }
.stage.next { background: var(--soft-bg); color: var(--ink); }

/* ---------- Plan builder ---------- */
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { min-width: 56px; min-height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 13.5px; color: var(--ink); cursor: pointer; transition: all .3s var(--ease); }
.day:hover { border-color: var(--ink); }
.day.on { background: var(--strong-bg); border-color: var(--strong-bg); color: var(--strong-fg); }
.slot { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.slot .time { width: 86px; font-family: var(--serif); font-weight: 300; font-size: 16px; color: var(--ink); padding-top: 6px; font-variant-numeric: tabular-nums; }
.slot .body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.meal { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); flex-wrap: wrap; transition: border-color .3s, transform .35s var(--ease); }
.meal:hover { border-color: var(--line-strong); transform: translateX(2px); }
.meal.warn { border-color: rgba(238, 154, 3, .7); background: var(--wash); }
.skipped { font-size: 14px; color: var(--mute); padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.bar { height: 6px; background: rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; box-shadow: 0 0 12px rgba(238, 154, 3, .7); transform-origin: left; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* ---------- Recipes ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background-color: var(--surface); }
.rcard .ph-img { height: 124px; background: radial-gradient(circle at 30% 30%, var(--tint), var(--sand)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rcard .ph-img img { width: 52px; height: 52px; opacity: .55; object-fit: contain; transition: transform .8s var(--ease), opacity .4s; }
.rcard:hover .ph-img img { transform: scale(1.18) rotate(-10deg); opacity: .85; }
.rcard .b { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rcard .b .row { margin-top: auto; padding-top: 8px; }
.photo { height: 230px; border-radius: var(--r-lg); background: radial-gradient(circle at 30% 30%, var(--tint), var(--sand)); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }
.photo img { width: 72px; height: 72px; opacity: .6; object-fit: contain; }
.stepn { width: 32px; height: 32px; border-radius: 999px; background: transparent; border: 1px solid var(--saffron); color: var(--saffron-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 400; flex: none; }
.ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ol li { display: flex; gap: 14px; align-items: flex-start; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 20px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .3s var(--ease); }
.stepper button:hover { background: var(--ink); color: var(--paper); }
.nutri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; font-size: 13px; }
.nutri b { display: block; font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- Diseases ---------- */
.dlist { display: flex; flex-direction: column; gap: 6px; }
.ditem { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); text-align: left; width: 100%; font-weight: 500; transition: all .3s var(--ease); }
.ditem:hover { border-color: var(--line-strong); transform: translateX(3px); }
.ditem.on { border-color: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); background: var(--wash); }

/* ---------- Blog editor ---------- */
.toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--sand); }
.toolbar button { min-width: 40px; min-height: 36px; border: 0; background: transparent; border-radius: 999px; font-weight: 500; color: var(--ink); cursor: pointer; padding: 0 12px; transition: background-color .25s; }
.toolbar button:hover { background: var(--surface); }
.editor { border: 1px solid var(--line); border-radius: 0 0 16px 16px; padding: 26px; min-height: 360px; font-size: 17px; line-height: 1.75; background: var(--surface); color: var(--body); }
.editor h2, .editor h3 { font-family: var(--serif); font-weight: 400; }
.editor h2 { font-size: 26px; } .editor h3 { font-size: 20px; }
.editor:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(238, 154, 3, .15); }
.recipe-embed { border: 1px solid var(--saffron); border-radius: 16px; padding: 14px 16px; background: var(--wash); margin: 12px 0; font-size: 15px; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media button { aspect-ratio: 1; max-width: 100%; border-radius: 16px; border: 2px solid transparent; background: var(--tint); cursor: pointer; font-weight: 500; font-size: 12px; color: var(--ink); transition: transform .35s var(--ease); }
.media button:hover { transform: scale(1.03); }
.media button.alt { background: var(--soft-bg); }
.media button.on { border-color: var(--saffron); }

/* ---------- Sign in ---------- */
.login { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--paper); }
.login .art { position: relative; overflow: hidden; flex: 1 1 520px; background: var(--night); color: var(--on-night); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: 36px 44px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: 24px; min-height: 620px; }
.login .art > * { position: relative; z-index: 2; }
.login .art > .aurora, .login .art > .grain, .login .art > .fcard { position: absolute; }
.aurora { position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; }
.aurora i { position: absolute; border-radius: 999px; filter: blur(60px); opacity: .55; }
.aurora i:nth-child(1) { width: 460px; height: 460px; left: -120px; bottom: -160px; background: #EE9A03; opacity: .45; }
.aurora i:nth-child(2) { width: 340px; height: 340px; right: -80px; top: 20%; background: #F8C24A; opacity: .22; }
.aurora i:nth-child(3) { width: 520px; height: 520px; right: 10%; bottom: -320px; background: #2F4357; opacity: .9; }
.login .grain { position: absolute; inset: 0; z-index: 1 !important; opacity: .06; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 3px 3px; pointer-events: none; }
.login .lockup { display: flex; align-items: center; gap: 14px; }
.login .lockup img { width: 52px; height: 52px; border-radius: 14px; background: #fff; padding: 5px; }
.login .lockup .wm { font-size: 20px; }
.login .lockup small { display: block; font-size: 10px; letter-spacing: .26em; color: var(--on-night); margin-top: 3px; }
.login .hero h1 { font-family: var(--serif); font-weight: 300; color: #fff; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; max-width: 9.5em; }
.login .hero h1 em { color: var(--saffron-2); }
.login .hero h1 .key { color: var(--saffron-2); }
.login .hero p { max-width: 30em; font-size: 17px; line-height: 1.6; margin: 20px 0 0; color: var(--on-night); }
.login .proc { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--night-line); padding-top: 20px; }
.login .proc div { display: flex; gap: 10px; align-items: baseline; color: #fff; font-weight: 500; }
.login .proc em { font-family: var(--serif); font-weight: 300; font-size: 17px; color: var(--saffron-2); }
.fcard { position: absolute; z-index: 3 !important; background: rgba(255, 255, 255, .96); color: #202E3B; border-radius: 18px; padding: 14px 16px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); font-size: 13px; display: flex; gap: 12px; align-items: center; min-width: 220px; }
.fcard b { color: #202E3B; display: block; font-size: 14px; }
.fcard .fk { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1; color: #8F5400; }
.fcard .dot { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(90deg, #EE9A03, #F8C24A); flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; color: #202E3B; font-size: 13px; }
.fcard.a { right: 6%; top: 18%; }
.fcard.b { right: 12%; bottom: 20%; }
@media (max-width: 1100px) { .fcard { display: none; } }
.login .form { position: relative; flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding-block: 64px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login .form .theme-tg { position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
.login form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.login form h2 { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }
.login form h2 em { color: var(--saffron-ink); }
.login form .btn { min-height: 52px; font-size: 15.5px; }
.login form .btn .arr { transition: transform .4s var(--ease); }
.login form .btn:hover .arr { transform: translateX(4px); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Misc ---------- */
.perm td:not(:first-child), .perm th:not(:first-child) { text-align: center; }
.spark { width: 100%; height: auto; display: block; }
.spark .ln { stroke: var(--saffron); }
.spark .pt { fill: var(--ink); }
.spark .grid { stroke: var(--line); }
.spark text { fill: var(--mute); font-size: 11px; font-family: var(--sans); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar2 { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glowLift { 0%, 100% { transform: none; text-shadow: none; } 45% { transform: translateY(-3px); text-shadow: 0 0 24px rgba(238, 154, 3, .55); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(4px); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { to { transform: translateX(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: translate(-50%, 0); filter: blur(0); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -40px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 50px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* a new screen: the headline words rise out of a blur, the key word lifts and glows, then its bar draws */
  .enter .hl .w { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .enter .hl .key { animation: glowLift 1.1s var(--ease) both; animation-delay: calc(var(--n, 1) * 90ms + 420ms); }
  .enter .hl .key::after { animation: bar .75s var(--ease) both; animation-delay: calc(var(--n, 1) * 90ms + 800ms); }
  .enter .crumb, .enter .ph .row { animation: rise .7s var(--ease) both; }
  .enter .ph .row { animation-delay: .25s; }
  .enter .jtrack span { animation: bar 1.6s var(--ease) both .5s; }
  .enter .bar > span { animation: bar 1.2s var(--ease) both .4s; }
  .main.enter::before { animation: fadeIn 1.6s ease both; }
  /* lists assemble item by item, once */
  .rv { opacity: 0; transform: translateY(16px); }
  .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
  .rv.in:hover { transition-delay: 0ms; }
  /* popups */
  .scrim.enter { animation: fadeIn .3s ease both; }
  .scrim.enter .dlg { animation: dlgIn .55s var(--ease) both; }
  .scrim.out { animation: fadeIn .22s ease reverse both; pointer-events: none; }
  .scrim.out .dlg { animation: dlgOut .22s ease both; }
  .drawer-wrap.enter { animation: fadeIn .3s ease both; }
  .drawer-wrap.enter + .drawer { animation: drawerIn .55s var(--ease) both; }
  .drawer-wrap.out { animation: fadeIn .24s ease reverse both; pointer-events: none; }
  .drawer-wrap.out + .drawer { animation: drawerOut .24s ease both; pointer-events: none; }
  .scrim.enter .dlg-b > * { animation: rise .6s var(--ease) both; }
  .scrim.enter .dlg-b > *:nth-child(2) { animation-delay: .06s; } .scrim.enter .dlg-b > *:nth-child(3) { animation-delay: .12s; }
  .scrim.enter .dlg-b > *:nth-child(4) { animation-delay: .18s; } .scrim.enter .dlg-b > *:nth-child(n+5) { animation-delay: .24s; }
  .toast { animation: toastIn .55s var(--ease) both; }
  .toast::after { animation: drain 3.2s linear both; }
  /* wordmark: letters rise in sequence, then a saffron light passes across; hover replays the light */
  .wm.play span { animation: rise .7s var(--ease) both, shimmer 1.3s ease both; animation-delay: calc(var(--i) * 55ms), calc(var(--i) * 55ms + 650ms); }
  .brand:hover .wm span, .lockup:hover .wm span { animation: shimmer 1.1s ease both; animation-delay: calc(var(--i) * 40ms); }
  /* sign-in atmosphere */
  .aurora i:nth-child(1) { animation: drift1 18s ease-in-out infinite; }
  .aurora i:nth-child(2) { animation: drift2 22s ease-in-out infinite; }
  .aurora i:nth-child(3) { animation: drift1 26s ease-in-out infinite reverse; }
  .fcard.a { animation: rise 1s var(--ease) both 1.1s, bob 7s ease-in-out infinite 2.2s; }
  .fcard.b { animation: rise 1s var(--ease) both 1.35s, bob 8s ease-in-out infinite 2.6s; }
  .login .hero p, .login .proc { animation: rise .9s var(--ease) both .9s; }
  .login .proc { animation-delay: 1.1s; }
  .login form > * { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
  .side.open .nav-list, .side.open .side-foot { animation: menuIn .4s var(--ease) both; }
  .nav-ind.go { transition: transform .55s var(--ease), height .55s var(--ease); }
  .tab-ind.go { transition: transform .5s var(--ease), width .5s var(--ease); }
}
