/* Phenix's own look (docs/ui/design-direction.md, "Colour and the ink shell"). Loaded by Phenix only, after app.css;
   everything is under .weo-phenix, so the shared theme files (copied to the Maraekat portal) stay neutral.

   One motif carries the colour: "ink", the night shade of the brand colour that the sign-in page already wears, with
   engraved rings (the security print of a banknote) and an ember of the accent colour. It is used for the sidebar,
   the overview's greeting and the summary ticket of entry screens. The rest stays white and quiet, picking up the
   brand in small places: the canvas, table heads, tiles, step numbers and buttons. Every shade is derived from
   --weo-brand and --weo-accent, so a client's colours recolour all of it. */

html.weo-phenix {
  --weo-ink: color-mix(in srgb, var(--weo-brand) 34%, #050916);
  --weo-ink-hi: color-mix(in srgb, var(--weo-brand) 62%, #070C1E);
  --weo-ink-lo: color-mix(in srgb, var(--weo-brand) 18%, #04070F);
  --weo-violet: color-mix(in srgb, var(--weo-brand) 50%, #7C3AED);
  --weo-ember: color-mix(in srgb, var(--weo-accent) 78%, #FFE2A8);
  /* Four hues for things that come in sets (headline tiles, quick actions): brand, accent, green, violet. */
  --weo-hue-1: var(--weo-brand);
  --weo-hue-2: var(--weo-accent);
  --weo-hue-3: #0E9F6E;
  --weo-hue-4: var(--weo-violet);
  /* On ink */
  --weo-on-ink: #FFFFFF;
  --weo-on-ink-2: rgba(255, 255, 255, .72);
  --weo-on-ink-3: rgba(255, 255, 255, .5);
  --weo-ink-line: rgba(255, 255, 255, .1);
  --weo-ink-glass: rgba(255, 255, 255, .07);
  /* The canvas and neutrals take a breath of the brand. */
  --weo-bg: color-mix(in srgb, var(--weo-brand) 2.5%, #F3F4F7);
  --weo-subtle: color-mix(in srgb, var(--weo-brand) 3%, #F4F5F8);
  --weo-line: color-mix(in srgb, var(--weo-brand) 5%, #E9EBEF);
  --weo-text: color-mix(in srgb, var(--weo-brand) 12%, #0E1118);
  --weo-side: var(--weo-ink);
  --weo-card-shadow: 0 1px 2px color-mix(in srgb, var(--weo-ink) 7%, transparent), 0 6px 20px -8px color-mix(in srgb, var(--weo-ink) 12%, transparent);
  /* The sidebar's own variables (Blueprint). */
  --sidebar: var(--weo-ink);
  --sidebar-foreground: var(--weo-on-ink);
  --sidebar-accent: rgba(255, 255, 255, .08);
  --sidebar-accent-foreground: var(--weo-on-ink);
  --sidebar-border: transparent;
  --sidebar-ring: var(--weo-ember);
  background-color: var(--weo-bg);
}
html.dark.weo-phenix {
  --weo-ink: color-mix(in srgb, var(--weo-brand) 22%, #04060C);
  --weo-ink-hi: color-mix(in srgb, var(--weo-brand) 42%, #05070F);
  --weo-ink-lo: color-mix(in srgb, var(--weo-brand) 10%, #030509);
  --weo-bg: color-mix(in srgb, var(--weo-brand) 5%, #0A0C11);
  --weo-card: color-mix(in srgb, var(--weo-brand) 6%, #14171D);
  --weo-subtle: color-mix(in srgb, var(--weo-brand) 7%, #1B1F26);
  --weo-line: color-mix(in srgb, var(--weo-brand) 8%, #22262E);
  --weo-text: #ECEEF2;
  --weo-hue-3: #34D399;
  --weo-card-shadow: none;
}

/* ---------- The canvas: light from the brand behind the top of every page ---------- */
.weo-phenix aside[data-side] ~ main {
  background:
    radial-gradient(880px 420px at 100% -60px, color-mix(in srgb, var(--weo-brand) 15%, transparent), transparent 72%),
    radial-gradient(640px 360px at 30% -150px, color-mix(in srgb, var(--weo-violet) 11%, transparent), transparent 72%),
    radial-gradient(420px 300px at 102% 300px, color-mix(in srgb, var(--weo-accent) 8%, transparent), transparent 72%),
    var(--weo-bg);
}
html.dark.weo-phenix aside[data-side] ~ main {
  background:
    radial-gradient(880px 420px at 100% -60px, color-mix(in srgb, var(--weo-brand) 26%, transparent), transparent 72%),
    radial-gradient(640px 360px at 30% -150px, color-mix(in srgb, var(--weo-violet) 16%, transparent), transparent 72%),
    radial-gradient(420px 300px at 102% 300px, color-mix(in srgb, var(--weo-accent) 9%, transparent), transparent 72%),
    var(--weo-bg);
}
.weo-phenix .weo-topbar { background: color-mix(in srgb, var(--weo-bg) 62%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.weo-phenix .weo-topbar [data-sidebar="trigger"] { color: var(--weo-text); width: 36px; height: 36px; border-radius: 10px; }
.weo-phenix .weo-topbar [data-sidebar="trigger"]:hover { background: color-mix(in srgb, var(--weo-brand) 9%, transparent); color: var(--weo-primary-text); }
.weo-phenix :is(.weo-search-btn, .weo-tile-btn, .weo-user-chip, .weo-theme-btn) { border-color: color-mix(in srgb, var(--weo-brand) 10%, var(--weo-card-border)); }
.weo-phenix .weo-search-btn:hover { border-color: color-mix(in srgb, var(--weo-brand) 40%, var(--weo-line-strong)); }
.weo-phenix .weo-crumbs b { color: var(--weo-text); font-weight: 600; }
.weo-phenix .weo-avatar { color: #fff; background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); }
.weo-phenix .weo-ai-toggle { color: var(--weo-primary-text); }

/* A page arrives in one quiet movement (still for people who ask for less motion: theme.css). */
@keyframes weo-page-in { from { opacity: 0; transform: translateY(8px); } }
.weo-phenix .weo-page { animation: weo-page-in .32s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- The sidebar, in ink ---------- */
.weo-phenix aside[data-side], .weo-phenix [data-sidebar="sidebar"] {
  color: var(--weo-on-ink);
  background:
    radial-gradient(120% 34% at 0% 0%, color-mix(in srgb, var(--weo-brand) 78%, transparent), transparent 72%),
    radial-gradient(90% 26% at 100% 12%, color-mix(in srgb, var(--weo-violet) 46%, transparent), transparent 70%),
    radial-gradient(110% 26% at 0% 100%, color-mix(in srgb, var(--weo-accent) 26%, transparent), transparent 72%),
    linear-gradient(180deg, var(--weo-ink-hi) 0%, var(--weo-ink) 34%, var(--weo-ink-lo) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .07), 10px 0 34px -18px color-mix(in srgb, var(--weo-ink) 70%, transparent);
  isolation: isolate;
}
/* A fine grid that fades down the rail, as on the sign-in page. */
.weo-phenix aside[data-side]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 46%); mask-image: linear-gradient(180deg, #000 0%, transparent 46%);
}
.weo-phenix aside[data-side] { position: sticky; }
.weo-phenix [data-sidebar="header"] .weo-brand { color: var(--weo-on-ink); }
.weo-phenix [data-sidebar="header"] .weo-logo-mark { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
/* Where you work, and the way to change it: glass on ink. */
.weo-phenix :is([data-sidebar="header"], [data-sidebar="footer"]) .weo-context-card {
  background: var(--weo-ink-glass); border-color: rgba(255, 255, 255, .13); color: var(--weo-on-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(6px); transition: background .15s, border-color .15s;
}
.weo-phenix :is([data-sidebar="header"], [data-sidebar="footer"]) .weo-context-card:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.weo-phenix [data-sidebar="header"] .weo-context-sub { color: var(--weo-on-ink-2); }
.weo-phenix [data-sidebar="header"] .weo-context-title svg { color: var(--weo-on-ink-3); }
.weo-phenix [data-sidebar="group-label"] { color: var(--weo-on-ink-3); }
.weo-phenix .weo-nav-section + .weo-nav-section { border-top-color: var(--weo-ink-line); }
.weo-phenix [data-sidebar="menu-button"] { color: rgba(255, 255, 255, .84); transition: background .15s, color .15s; }
.weo-phenix [data-sidebar="menu-button"] svg { color: rgba(255, 255, 255, .58); transition: color .15s; }
.weo-phenix [data-sidebar="menu-button"]:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.weo-phenix [data-sidebar="menu-button"]:hover svg { color: rgba(255, 255, 255, .9); }
/* The page you are on: a lit pill with an ember at its edge. */
.weo-phenix [data-sidebar="menu-button"][data-active="true"] {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 255, 255, .19), rgba(255, 255, 255, .07));
  box-shadow: inset 3px 0 0 var(--weo-ember), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 6px 18px -10px rgba(0, 0, 0, .5);
}
.weo-phenix [data-sidebar="menu-button"][data-active="true"] svg:not(.weo-nav-chevron) { color: var(--weo-ember); }
.weo-phenix [data-sidebar="menu-sub"] { border-left-color: rgba(255, 255, 255, .13); }
.weo-phenix [data-sidebar="menu-sub-button"] { color: rgba(255, 255, 255, .64); }
.weo-phenix [data-sidebar="menu-sub-button"]:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.weo-phenix [data-sidebar="menu-sub-button"][data-active="true"] { color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 2px 0 0 var(--weo-ember); }
.weo-phenix [data-sidebar="content"]:hover { scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.weo-phenix [data-sidebar="menu-button"]:focus-visible, .weo-phenix [data-sidebar="menu-sub-button"]:focus-visible { outline: 2px solid var(--weo-ember); outline-offset: -2px; }

/* ---------- Page titles and section marks ---------- */
.weo-phenix .weo-page-head h1 { color: color-mix(in srgb, var(--weo-brand) 32%, var(--weo-text)); }
html.dark.weo-phenix .weo-page-head h1 { color: var(--weo-text); }
.weo-phenix .weo-back:hover { color: var(--weo-primary-text); }
.weo-phenix .weo-entry-place > span { background: color-mix(in srgb, var(--weo-card) 75%, transparent); border-color: color-mix(in srgb, var(--weo-brand) 14%, var(--weo-line)); color: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-muted)); }
.weo-phenix .weo-entry-place > span svg { color: var(--weo-primary-text); }
/* Steps of an entry: filled, numbered in the brand. */
.weo-phenix .weo-step-no { color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--weo-brand) 86%, #fff), var(--weo-brand) 55%, var(--weo-violet)); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--weo-brand) 70%, transparent); }
.weo-phenix .weo-code-pill, .weo-phenix .weo-product-code { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 18%, transparent); }
.weo-phenix .weo-cust-avatar { color: #fff; background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--weo-brand) 70%, transparent); }

/* ---------- Tables and filter bands ---------- */
/* The one table look (app.css) in Phenix's colour: a brand-tinted head band, brand-tinted rows on hover, sections
   on a deeper tint with a brand edge, and grand totals on a brand wash with a brand rule. Tokens only. */
html.weo-phenix {
  --weo-table-head-bg: color-mix(in srgb, var(--weo-brand) 6%, var(--weo-subtle));
  --weo-table-head-text: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-muted));
  --weo-table-head-on: color-mix(in srgb, var(--weo-brand) 45%, var(--weo-text));
  --weo-table-hover: color-mix(in srgb, var(--weo-brand) 4%, var(--weo-card));
  --weo-table-zebra: color-mix(in srgb, var(--weo-brand) 1.6%, color-mix(in srgb, var(--weo-subtle) 40%, var(--weo-card)));
  --weo-table-group-bg: color-mix(in srgb, var(--weo-brand) 8%, var(--weo-card));
  --weo-table-group-text: color-mix(in srgb, var(--weo-brand) 40%, var(--weo-text));
  --weo-table-group-edge: var(--weo-brand);
  --weo-table-subtotal-bg: color-mix(in srgb, var(--weo-brand) 4%, var(--weo-card));
  --weo-table-total-bg: color-mix(in srgb, var(--weo-brand) 11%, var(--weo-card));
  --weo-table-total-rule: color-mix(in srgb, var(--weo-brand) 55%, var(--weo-line-strong));
  --weo-table-foot-bg: color-mix(in srgb, var(--weo-brand) 3%, var(--weo-subtle));
}
html.dark.weo-phenix {
  --weo-table-head-bg: color-mix(in srgb, var(--weo-brand) 12%, var(--weo-card));
  --weo-table-head-text: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-muted));
  --weo-table-head-on: var(--weo-text);
  --weo-table-hover: color-mix(in srgb, var(--weo-brand) 9%, var(--weo-card));
  --weo-table-zebra: color-mix(in srgb, var(--weo-brand) 3%, var(--weo-card));
  --weo-table-group-bg: color-mix(in srgb, var(--weo-brand) 16%, var(--weo-card));
  --weo-table-group-text: color-mix(in srgb, var(--weo-brand) 35%, #FFFFFF);
  --weo-table-subtotal-bg: color-mix(in srgb, var(--weo-brand) 8%, var(--weo-card));
  --weo-table-total-bg: color-mix(in srgb, var(--weo-brand) 22%, var(--weo-card));
  --weo-table-total-rule: color-mix(in srgb, var(--weo-brand) 60%, var(--weo-line-strong));
  --weo-table-foot-bg: color-mix(in srgb, var(--weo-brand) 6%, var(--weo-card));
}
.weo-phenix .weo-table thead th, .weo-phenix .weo-table tr:first-child > th { border-bottom-color: color-mix(in srgb, var(--weo-brand) 14%, var(--weo-line)); }
.weo-phenix .weo-row-link:hover > td:first-child { box-shadow: inset 3px 0 0 var(--weo-brand); }
.weo-phenix .weo-seg button[aria-pressed="true"] { color: var(--weo-primary-text); }
.weo-phenix .weo-list-group { background: color-mix(in srgb, var(--weo-brand) 5%, var(--weo-subtle)); color: color-mix(in srgb, var(--weo-brand) 26%, var(--weo-muted)); }
/* A report's choices: an ink rule along the card's top, the chips and the open fold in the brand's tint, the files for filing
   marked by the ember. */
.weo-phenix .weo-report-filters { border-top: 3px solid var(--weo-ink-hi); }
.weo-phenix .weo-report-chips { background: color-mix(in srgb, var(--weo-brand) 4%, var(--weo-subtle)); }
.weo-phenix .weo-report-chip { background: color-mix(in srgb, var(--weo-brand) 12%, var(--weo-card)); border-color: color-mix(in srgb, var(--weo-brand) 34%, var(--weo-line)); color: var(--weo-primary-text); }
.weo-phenix .weo-report-more-toggle.is-open { background: var(--weo-ink); border-color: var(--weo-ink); color: var(--weo-on-ink); }
.weo-phenix .weo-report-more { background: color-mix(in srgb, var(--weo-brand) 2%, var(--weo-card)); }
.weo-phenix .weo-report-group-title { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--weo-brand) 40%, var(--weo-muted)); }
.weo-phenix .weo-report-group-title::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--weo-ember); }
.weo-phenix .weo-report-filing { box-shadow: inset 3px 0 0 var(--weo-ember), var(--weo-card-shadow); }
.weo-phenix .weo-pickset-item[aria-pressed="true"] { background: color-mix(in srgb, var(--weo-brand) 10%, var(--weo-card)); }

/* ---------- Buttons ---------- */
.weo-phenix :is(button, a)[class~="bb:bg-primary"] {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--weo-brand) 86%, #fff) 0%, var(--weo-brand) 48%, color-mix(in srgb, var(--weo-brand) 86%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px color-mix(in srgb, var(--weo-ink) 40%, transparent), 0 10px 22px -10px color-mix(in srgb, var(--weo-brand) 85%, transparent);
  transition: box-shadow .15s, transform .1s, filter .15s;
}
.weo-phenix :is(button, a)[class~="bb:bg-primary"]:hover:not(:disabled) { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px color-mix(in srgb, var(--weo-ink) 40%, transparent), 0 14px 26px -10px color-mix(in srgb, var(--weo-brand) 95%, transparent); }
.weo-phenix :is(button, a)[class~="bb:border-input"][class~="bb:bg-background"]:not([role="combobox"]):not([aria-haspopup]):hover:not(:disabled) { border-color: color-mix(in srgb, var(--weo-brand) 45%, var(--weo-line-strong)); color: var(--weo-primary-text); background-color: color-mix(in srgb, var(--weo-brand) 5%, var(--weo-card)); }

/* ---------- Headline tiles: a hue each, and a corner of rings ---------- */
.weo-phenix .weo-kpis > * { --hue: var(--weo-hue-1); position: relative; overflow: hidden; isolation: isolate; }
.weo-phenix .weo-kpis > :nth-child(4n+2) { --hue: var(--weo-hue-2); }
.weo-phenix .weo-kpis > :nth-child(4n+3) { --hue: var(--weo-hue-3); }
.weo-phenix .weo-kpis > :nth-child(4n+4) { --hue: var(--weo-hue-4); }
.weo-phenix .weo-kpis > .weo-card::after {
  content: ""; position: absolute; z-index: -1; right: -52px; top: -52px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 6px, color-mix(in srgb, var(--hue) 26%, transparent) 6px 7px);
  -webkit-mask-image: radial-gradient(circle, #000 26%, transparent 70%); mask-image: radial-gradient(circle, #000 26%, transparent 70%);
}
.weo-phenix .weo-kpis .weo-kpi-label { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--hue) 22%, var(--weo-muted)); }
.weo-phenix .weo-kpis .weo-kpi-label::before { content: ""; width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 18%, transparent); }
.weo-phenix .weo-kpis > a.weo-card:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--hue) 45%, transparent), 0 14px 30px -16px color-mix(in srgb, var(--hue) 60%, transparent); }

/* ---------- Overview: the greeting on ink, and tiles in colour ---------- */
.weo-phenix .weo-hello {
  position: relative; overflow: hidden; isolation: isolate; align-items: center; padding: 30px 34px; margin-bottom: var(--weo-gap); border-radius: 24px; color: var(--weo-on-ink);
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--weo-brand) 92%, transparent), transparent 70%),
    radial-gradient(46% 110% at 100% 100%, color-mix(in srgb, var(--weo-accent) 42%, transparent), transparent 72%),
    radial-gradient(40% 90% at 78% 0%, color-mix(in srgb, var(--weo-violet) 60%, transparent), transparent 72%),
    var(--weo-ink);
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--weo-ink) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14);
}
/* Two sets of rings a little apart: their interference is the engraving. */
.weo-phenix .weo-hello::before {
  content: ""; position: absolute; z-index: -1; right: -90px; top: 50%; width: 520px; height: 520px; translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 46% 50%, transparent 0 8px, rgba(255, 255, 255, .13) 8px 9px),
    repeating-radial-gradient(circle at 56% 47%, transparent 0 8px, rgba(255, 255, 255, .09) 8px 9px);
  -webkit-mask-image: radial-gradient(circle, #000 24%, transparent 70%); mask-image: radial-gradient(circle, #000 24%, transparent 70%);
}
.weo-phenix .weo-hello h1 { font-size: 32px; font-weight: 650; letter-spacing: -.035em; line-height: 1.12; color: #fff; }
.weo-phenix .weo-hello p { color: var(--weo-on-ink-2); margin-top: 8px; }
.weo-phenix .weo-hello :is(button, a)[class~="bb:bg-primary"] { background: #fff; background-image: none; color: color-mix(in srgb, var(--weo-brand) 80%, #000); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .06); }
.weo-phenix .weo-hello :is(button, a)[class~="bb:border-input"] { background-color: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
.weo-phenix .weo-hello :is(button, a)[class~="bb:border-input"]:hover { background-color: rgba(255, 255, 255, .2) !important; border-color: rgba(255, 255, 255, .5); color: #fff; }
@media (max-width: 720px) { .weo-phenix .weo-hello { padding: 22px 20px; border-radius: 20px; } .weo-phenix .weo-hello h1 { font-size: 26px; } }
.weo-phenix .weo-actions > * { --hue: var(--weo-hue-1); }
.weo-phenix .weo-actions > :nth-child(4n+2) { --hue: var(--weo-hue-2); }
.weo-phenix .weo-actions > :nth-child(4n+3) { --hue: var(--weo-hue-3); }
.weo-phenix .weo-actions > :nth-child(4n+4) { --hue: var(--weo-hue-4); }
.weo-phenix .weo-action-icon { border-color: transparent; background: color-mix(in srgb, var(--hue) 12%, var(--weo-card)); color: color-mix(in srgb, var(--hue) 82%, var(--weo-text)); transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.weo-phenix .weo-action:hover .weo-action-icon { background: var(--hue); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--hue); }
.weo-phenix .weo-feed-mark { color: #fff; background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); }
.weo-phenix .weo-feed-mark.weo-buy { color: #fff; background: linear-gradient(135deg, var(--weo-accent), color-mix(in srgb, var(--weo-accent) 60%, #E11D48)); }
.weo-phenix .weo-stat-big { color: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-text)); }
html.dark.weo-phenix .weo-stat-big { color: var(--weo-text); }
.weo-phenix .weo-counter-mark { color: #fff; background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--weo-brand) 70%, transparent); }

/* ---------- The summary ticket, printed on ink ---------- */
.weo-phenix .weo-ticket {
  color: var(--weo-on-ink); border-color: rgba(255, 255, 255, .08);
  background:
    radial-gradient(85% 70% at 0% 0%, color-mix(in srgb, var(--weo-brand) 80%, transparent), transparent 72%),
    radial-gradient(70% 55% at 100% 100%, color-mix(in srgb, var(--weo-accent) 30%, transparent), transparent 72%),
    var(--weo-ink);
  box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--weo-ink) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.weo-phenix .weo-ticket::before {
  opacity: 1;
  background:
    repeating-radial-gradient(circle at 46% 50%, transparent 0 6px, rgba(255, 255, 255, .16) 6px 6.9px),
    repeating-radial-gradient(circle at 56% 47%, transparent 0 6px, rgba(255, 255, 255, .11) 6px 6.9px);
}
.weo-phenix .weo-ticket-label { color: var(--weo-on-ink-2); }
.weo-phenix .weo-ticket-figure { color: #fff; text-shadow: 0 2px 18px color-mix(in srgb, var(--weo-brand) 60%, transparent); }
.weo-phenix .weo-ticket-note, .weo-phenix .weo-ticket .weo-muted, .weo-phenix .weo-ticket .weo-entry-who { color: var(--weo-on-ink-2); }
.weo-phenix .weo-ticket-tear { border-top-color: rgba(255, 255, 255, .3); }
.weo-phenix .weo-ticket-tear::before, .weo-phenix .weo-ticket-tear::after { background: var(--weo-bg); box-shadow: none; }
.weo-phenix .weo-ticket-lines dt { color: var(--weo-on-ink-2); }
.weo-phenix .weo-ticket-lines dd { color: #fff; }
.weo-phenix .weo-ticket-lines .is-total { border-top-color: rgba(255, 255, 255, .18); color: #fff; }
.weo-phenix .weo-ticket .weo-checklist { color: var(--weo-on-ink-3); }
.weo-phenix .weo-ticket .weo-checklist li.is-done { color: #fff; }
.weo-phenix .weo-ticket .weo-checklist li.is-done svg { color: #6EE7B7; }
.weo-phenix .weo-ticket .weo-entry-hints li { color: var(--weo-on-ink-2); }
.weo-phenix .weo-ticket .weo-entry-hints li.is-warning { color: #FCD34D; }
.weo-phenix .weo-ticket .weo-ai-link { color: var(--weo-ember); }
.weo-phenix .weo-ticket .weo-balance-gap { background: rgba(252, 165, 165, .16); color: #FECACA; }
.weo-phenix .weo-ticket [style*="--weo-success"] { color: #6EE7B7 !important; }
.weo-phenix .weo-ticket :is(button, a)[class~="bb:border-input"] { background-color: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; }
.weo-phenix .weo-ticket :is(button, a)[class~="bb:border-input"]:hover { background-color: rgba(255, 255, 255, .2) !important; color: #fff; }
.weo-phenix .weo-ticket [role="alert"] { color: var(--weo-text); }
.weo-phenix .weo-entry-actions-total b { color: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-text)); }

/* ---------- Small things in colour ---------- */
/* Empty lists: the tile takes the brand and a ring. */
.weo-phenix main div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3)::before {
  width: 52px; height: 52px; border-radius: 16px; background-size: 22px 22px;
  background-color: color-mix(in srgb, var(--weo-brand) 9%, var(--weo-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 16%, transparent), 0 0 0 7px color-mix(in srgb, var(--weo-brand) 5%, transparent), 0 0 0 15px color-mix(in srgb, var(--weo-brand) 2.5%, transparent);
}
.weo-phenix .weo-section-title > svg { color: var(--weo-primary-text); }
/* Settings in Phenix's colour: the open area's tile and the active view lit with the brand, as the step numbers are. */
.weo-phenix .weo-settings-area.on .weo-settings-area-icon, .weo-phenix .weo-settings-view.on .weo-settings-view-icon {
  background: linear-gradient(140deg, color-mix(in srgb, var(--weo-brand) 86%, #fff), var(--weo-brand) 55%, var(--weo-violet)); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--weo-brand) 70%, transparent); }
.weo-phenix .weo-settings-area-tile { background: linear-gradient(140deg, color-mix(in srgb, var(--weo-brand) 80%, #fff), var(--weo-brand) 50%, var(--weo-violet)); }
.weo-phenix .weo-settings-area-text h2 { color: color-mix(in srgb, var(--weo-brand) 32%, var(--weo-text)); }
html.dark.weo-phenix .weo-settings-area-text h2 { color: var(--weo-text); }
.weo-phenix .weo-card.weo-tile:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--weo-brand) 40%, transparent), 0 16px 30px -18px color-mix(in srgb, var(--weo-brand) 55%, transparent); }
.weo-phenix .weo-form-subhead, .weo-phenix .weo-party-form h3 { color: color-mix(in srgb, var(--weo-brand) 30%, var(--weo-text)); }
html.dark.weo-phenix :is(.weo-form-subhead, .weo-party-form h3) { color: var(--weo-text); }
.weo-phenix .weo-narrative { border-color: color-mix(in srgb, var(--weo-brand) 28%, var(--weo-line)); background: linear-gradient(120deg, color-mix(in srgb, var(--weo-brand) 9%, var(--weo-card)), color-mix(in srgb, var(--weo-violet) 7%, var(--weo-card))); }
.weo-phenix .weo-no-access-icon { background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); color: #fff; }

/* ---------- Layout odds and ends ---------- */
/* Cards that follow one another on a page keep the standard gap. */
.weo-phenix .weo-page > .weo-card + .weo-card { margin-top: var(--weo-gap); }
/* Menus (for example "Other voucher"): a rounded card of rows, each with its icon. */
.weo-phenix .weo-menu { min-width: 232px; padding: 6px; border-radius: 14px; border: 1px solid var(--weo-card-border); background: var(--weo-card); box-shadow: var(--weo-overlay-shadow); }
.weo-phenix .weo-menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; color: var(--weo-text); cursor: pointer; }
.weo-phenix .weo-menu [role="menuitem"] svg { flex: none; color: var(--weo-muted); }
.weo-phenix .weo-menu [role="menuitem"]:is(:hover, :focus-visible, [data-highlighted]) { background: var(--weo-tint); color: var(--weo-tint-text); outline: none; }
.weo-phenix .weo-menu [role="menuitem"]:is(:hover, :focus-visible, [data-highlighted]) svg { color: var(--weo-primary-text); }
/* The canvas fills the screen on short pages, so its light never stops at the end of the content. */
.weo-phenix aside[data-side] ~ main { min-height: 100vh; min-height: 100dvh; }
/* Phones: the sidebar opens as a sheet; it wears the same ink. */
.weo-phenix [role="dialog"]:has(> [data-sidebar]) {
  color: var(--weo-on-ink); border-color: transparent;
  background:
    radial-gradient(120% 34% at 0% 0%, color-mix(in srgb, var(--weo-brand) 78%, transparent), transparent 72%),
    radial-gradient(90% 26% at 100% 12%, color-mix(in srgb, var(--weo-violet) 46%, transparent), transparent 70%),
    radial-gradient(110% 26% at 0% 100%, color-mix(in srgb, var(--weo-accent) 26%, transparent), transparent 72%),
    linear-gradient(180deg, var(--weo-ink-hi) 0%, var(--weo-ink) 34%, var(--weo-ink-lo) 100%);
}
.weo-phenix [role="dialog"]:has(> [data-sidebar]) > button { color: var(--weo-on-ink); opacity: .8; }
/* Today's figures inside the greeting: glass tiles on the ink. */
.weo-phenix .weo-hello { flex-wrap: wrap; }
.weo-phenix .weo-hello-stats { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.weo-phenix .weo-hello-stat { gap: 6px; padding: 16px 18px; border-radius: 16px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, border-color .15s, transform .15s; }
.weo-phenix a.weo-hello-stat:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .32); transform: translateY(-1px); }
.weo-phenix a.weo-hello-stat:focus-visible { outline: 2px solid var(--weo-ember); outline-offset: 2px; }
.weo-phenix .weo-hello-stat .weo-stat-label { color: var(--weo-on-ink-2); }
.weo-phenix .weo-hello-stat .weo-stat-label .weo-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.weo-phenix .weo-hello-stat .weo-stat-value { font-size: 30px; color: #fff; }
.weo-phenix .weo-hello-stat .weo-stat-note { color: var(--weo-on-ink-2); }
.weo-phenix .weo-hello-stat .weo-trend-up { color: #6EE7B7; }
.weo-phenix .weo-hello-stat .weo-trend-down { color: #FCA5A5; }
@media (max-width: 720px) { .weo-phenix .weo-hello-stats { grid-template-columns: minmax(0, 1fr); } .weo-phenix .weo-hello-stat .weo-stat-value { font-size: 26px; } }
/* A form's scan button, or a notice, above its first section keeps its distance. */
.weo-phenix .weo-party-form > :not(section, h3) + section:first-of-type { padding-top: 20px; }
/* Loading: a slow sheen in the brand's tint instead of a grey pulse. */
@keyframes weo-sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.weo-phenix main [class~="bb:animate-pulse"] { animation: weo-sheen 1.8s linear infinite; background-color: transparent;
  background-image: linear-gradient(90deg, var(--weo-subtle) 0%, color-mix(in srgb, var(--weo-brand) 10%, var(--weo-subtle)) 50%, var(--weo-subtle) 100%); background-size: 200% 100%; border-radius: 10px; }

/* ---------- The yes-or-no dialog, its head printed on ink ----------
   The same motif as the sidebar and the summary ticket: the night shade of the brand, lit from one corner by the
   question's tone and from the other by the ember, with the engraved rings centred on the mark. */
.weo-phenix .weo-ask-veil { background: color-mix(in srgb, var(--weo-ink-lo) 64%, transparent); }
.weo-phenix .weo-ask { border-color: color-mix(in srgb, var(--weo-ink) 14%, var(--weo-card-border)); }
.weo-phenix .weo-ask-head {
  color: var(--weo-on-ink);
  background:
    radial-gradient(95% 130% at 0% 0%, color-mix(in srgb, var(--ask) 78%, transparent), transparent 70%),
    radial-gradient(75% 100% at 100% 100%, color-mix(in srgb, var(--weo-accent) 30%, transparent), transparent 72%),
    var(--weo-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  margin-bottom: 20px;
}
.weo-phenix .weo-ask-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 61px, transparent 0 7px, rgba(255, 255, 255, .13) 7px 7.9px);
  -webkit-mask-image: radial-gradient(75% 95% at 50% 61px, black 20%, transparent 78%);
  mask-image: radial-gradient(75% 95% at 50% 61px, black 20%, transparent 78%);
}
.weo-phenix .weo-ask-head h2 { color: var(--weo-on-ink); text-shadow: 0 2px 18px color-mix(in srgb, var(--ask) 55%, transparent); }
.weo-phenix .weo-ask-mark {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 18px 34px -10px color-mix(in srgb, var(--ask) 85%, transparent);
}
/* ---------- A page's tabs in ink (PageTabs) ----------
   The band is glass on the canvas; the tab shown is a piece of the ink motif, the sidebar's night shade with its engraved
   light and an ember beneath, so a page's tabs read as one strong band in Phenix's colours, light or dark. */
.weo-phenix .weo-tabs {
  background: color-mix(in srgb, var(--weo-card) 80%, transparent);
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 11%, var(--weo-card-border)), var(--weo-card-shadow);
}
.weo-phenix .weo-tab:hover { color: var(--weo-primary-text); background: color-mix(in srgb, var(--weo-brand) 7%, transparent); }
.weo-phenix .weo-tab.is-on {
  color: var(--weo-on-ink);
  background: radial-gradient(130% 160% at 0% 0%, var(--weo-ink-hi), var(--weo-ink) 58%, var(--weo-ink-lo));
  box-shadow: inset 0 0 0 1px var(--weo-ink-line), inset 0 1px 0 var(--weo-ink-line), 0 12px 24px -14px color-mix(in srgb, var(--weo-ink) 92%, transparent);
}
.weo-phenix .weo-tab.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--weo-ember), transparent); }
.weo-phenix .weo-tab.is-on > svg { color: var(--weo-ember); }
.weo-phenix .weo-tab.is-on .weo-tab-count { color: var(--weo-ember); background: var(--weo-ink-glass); box-shadow: inset 0 0 0 1px var(--weo-ink-line); }
.weo-phenix .weo-tabs-group { color: color-mix(in srgb, var(--weo-brand) 42%, var(--weo-muted)); }
html.dark.weo-phenix .weo-tab.is-on {
  background: radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--weo-brand) 52%, var(--weo-ink-hi)), var(--weo-ink-hi) 60%, var(--weo-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 38%, transparent), inset 0 1px 0 var(--weo-ink-line), 0 12px 24px -14px color-mix(in srgb, var(--weo-brand) 55%, transparent);
}
html.dark.weo-phenix .weo-tabs-group { color: var(--weo-muted); }
