/* Anetos mockup (2026-12-05), re-tinted from the FLUX WEAR demo brand layer. Loaded last, so it only re-tints the hub-core house style.
   DIRECTION  A streetwear studio: concrete paper, black ink, one signal orange for what matters.
   SIGNATURE  The block FLUX wordmark in the rail and the orange square that follows it. */
:root{ --bg:#ebeae7; --line:#dddbd6; --hoverbg:#e4e2de; --rowline:#e6e4e0;
  --red:#bb3323; --red-hover:#9e2a1d; --neg:#e5484d; --red-tint:rgba(187,51,35,.12); --red-tint-line:rgba(187,51,35,.32);
  --at-paper:#f7f6f4; --at-rule:#e2e0dc; --at-rule-2:#d3d0ca; --at-img-bg:#e6e4e0; --at-mono-bg:#e8e6e2;
  --at-topbar-glass:rgba(235,234,231,.86); --at-rail-on-fg:#bb3323;
  --at-bar:color-mix(in srgb, #bb3323 38%, #fff); }
/* dark: only the brand's signal colour; the greys come from hub-core hub-ui.css (light mode, mirrored, 2026-11-18) */
html[data-theme="dark"]{ --red:#e0452f; --red-hover:#bb3323; --red-tint:rgba(224,69,47,.14); --red-tint-line:rgba(224,69,47,.3);
  --at-rail-on-fg:#e0452f; --at-bar:color-mix(in srgb, #e0452f 46%, #1c1c1e); }
#rail .rail-logo{ filter:none; width:132px; max-height:none; }
.brand-night{ display:none; }
html[data-theme="dark"] .brand-day{ display:none; }
html[data-theme="dark"] .brand-night{ display:block; }
/* the rail's glass: neutral concrete, with a faint orange light drifting behind it */
html:not([data-theme="dark"]) #rail{ background:linear-gradient(180deg, rgba(244,243,240,.84), rgba(234,232,228,.78) 45%, rgba(228,226,222,.8));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 1px rgba(0,0,0,.08), 0 18px 44px -24px rgba(0,0,0,.35); }
html:not([data-theme="dark"]) #rail::before{ background:radial-gradient(46% 24% at 30% 56%, rgba(120,120,120,.22), transparent 72%), radial-gradient(40% 20% at 72% 22%, rgba(255,255,255,.85), transparent 72%); }
#rail::after{ background:radial-gradient(44% 20% at 68% 76%, rgba(187,51,35,.16), transparent 72%), radial-gradient(34% 16% at 26% 26%, rgba(255,255,255,.08), transparent 72%) !important; }
.topbar-me .me-label{ font-weight:500; }
/* The top-bar switch: the base hub alone, or with every add-on (demo-package.js). */
.pkg-switch{ position:relative; display:inline-flex; padding:3px; border-radius:999px; background:var(--at-track); margin-inline-end:10px; }
.pkg-switch button{ position:relative; z-index:1; border:0; background:none; font:inherit; font-size:13px; font-weight:500; letter-spacing:-.01em;
  color:var(--muted); padding:7px 14px; border-radius:999px; cursor:pointer; white-space:nowrap; transition:color .2s cubic-bezier(.22,1,.36,1); }
.pkg-switch button[aria-pressed="true"]{ color:#fff; }
.pkg-switch button:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }
.pkg-switch .pkg-ind{ position:absolute; z-index:0; top:3px; bottom:3px; border-radius:999px; background:var(--red);
  box-shadow:0 6px 14px -8px rgba(187,51,35,.9); transition:left .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1); }
@media (max-width:700px){ .pkg-switch{ margin-inline-end:4px; } .pkg-switch button{ padding:7px 10px; font-size:12px; } .topbar-me .me-label{ display:none; } }
@media (prefers-reduced-motion:reduce){ .pkg-switch .pkg-ind, .pkg-switch button{ transition:none; } }
/* a demo has no account to switch */
.switch-acct{ display:none !important; }

.demo-toast{ position:fixed; left:50%; bottom:24px; transform:translate(-50%, 12px); z-index:9999; max-width:min(92vw, 440px);
  padding:11px 16px; border-radius:12px; background:#111; color:#f2f0ec; font-size:13px; line-height:1.4; text-align:center;
  box-shadow:0 14px 34px -14px rgba(0,0,0,.6); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s cubic-bezier(.22,1,.36,1); }
.demo-toast.on{ opacity:1; transform:translate(-50%, 0); }
/* The rail closed: the wordmark gives way to the square F mark. */
.brand-mini{ display:none; width:36px; height:36px; }
body.rail-min #rail .brand-day, body.rail-min #rail .brand-night{ display:none; }
body.rail-min #rail .brand-mini{ display:block; margin:0 auto; border-radius:9px; box-shadow:0 0 0 1px rgba(255,255,255,.14), 0 6px 14px -8px rgba(0,0,0,.6); }

/* Billing sits at the bottom of the sidebar, just above the account card (Yassin, 2026-11-16). app.js puts it last,
   in a section of its own with no label; the groups fill the rail so that section can drop to the bottom. */
#rail .rail-groups{ flex:1 1 auto; display:flex; flex-direction:column; }
#rail .rail-sec:has(> .rail-btn[data-group="billing"]){ margin-top:auto; padding-top:12px; }
#rail .rail-foot{ margin-top:0; }

/* Add-on tags (Yassin, 2026-11-16; the switch became Regular / Full finance on 2026-11-28, so every add-on is always on
   show and wears its tag): Couriers, Marketing, Full finance's Finance row, and the AI agents' section heading. */
#rail .rail-btn:is([data-group="couriers"], [data-group="marketing"], [data-group="finance"])::after,
#rail .rail-sec:has(> .rail-btn[data-group="cs"]) > .rail-sec-label::after,
#phone-menu .pm-item:is([data-group="couriers"], [data-group="marketing"], [data-group="finance"], [data-group="cs"], [data-group="assistant"])::after{
  content:'Add-on'; margin-left:auto; flex:none; font:600 9.5px/1 var(--sans); letter-spacing:.05em; text-transform:uppercase; padding:3px 6px; border-radius:999px;
  color:#bb3323; background:rgba(187,51,35,.13); }
#rail .rail-sec:has(> .rail-btn[data-group="cs"]) > .rail-sec-label{ display:flex; align-items:center; gap:8px; }
#rail .rail-sec:has(> .rail-btn[data-group="cs"]) > .rail-sec-label::after{ content:'Add-ons'; margin-left:0; }
body.rail-min #rail .rail-btn::after{ display:none; }

/* ---- Full finance and Marketing (2026-11-28): sections with a sidebar of their own, as Figi Trade's Accounting ---- */
#phone-menu .pm-item.pm-sub{ padding-left:52px; font-size:15px; min-height:40px; color:var(--muted); }
#phone-menu .pm-item.pm-sub.on{ color:var(--ink, inherit); }
/* the demo has one brand, so the accountant pages' brand tabs would offer nothing to choose */
.acc-head .va-brand-tabs{ display:none; }
.acc-head .view-title{ margin-bottom:6px; }
/* The long Finance page, one part at a time (app.js FIN_PART): Cash and accounts, Profit and loss, Financial statements. */
body[data-fin-part="cash"] #finance-view :is(.gf-period, #fin-brief, .gf-block:has(#fin-summary), .fin-two, .gf-block:has(#fin-statements)),
body[data-fin-part="pnl"] #finance-view .gf-block:is(:has(#fin-position), :has(#fin-statements)),
body[data-fin-part="st"] #finance-view :is(#fin-brief, .gf-block:has(#fin-position), .gf-block:has(#fin-summary), .fin-two){ display:none !important; }
body[data-fin-part] #finance-view .gf-block:only-of-type > .lead-title{ display:none; }
body[data-fin-part="cash"] #finance-view .gf-block:has(#fin-position) > .lead-title,
body[data-fin-part="st"] #finance-view .gf-block:has(#fin-statements) > .lead-title{ display:none; }

/* Task map and Meta ads: the page head with its controls at the end */
.mk-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.mk-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.mk-lead{ color:var(--muted); margin:-4px 0 18px; max-width:70ch; }
a.refresh-btn{ text-decoration:none; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }

/* Task map */
#tasks-view .tm-team{ grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); }
#tasks-view .tm-who{ display:flex; gap:10px; align-items:center; }
#tasks-view .tm-av{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:600; background:var(--red-tint); color:var(--red); flex:none; }
#tasks-view .tm-name{ font-weight:600; }
#tasks-view .tm-title{ color:var(--muted); font-size:12.5px; }
#tasks-view .tm-counts{ display:flex; gap:14px; align-items:baseline; margin-top:12px; color:var(--muted); font-size:12.5px; flex-wrap:wrap; }
#tasks-view .tm-counts b{ font-size:22px; font-weight:600; color:var(--ink, inherit); margin-right:3px; font-variant-numeric:tabular-nums; }
#tasks-view .tm-wk{ margin-left:auto; }
#tasks-view .tm-week{ display:flex; align-items:center; gap:18px; margin:14px 0; flex-wrap:wrap; }
#tasks-view .tm-week .lead-title{ margin:0; }
#tasks-view .tm-stats{ display:flex; gap:26px; margin-left:auto; color:var(--muted); font-size:13px; flex-wrap:wrap; }
#tasks-view .tm-stats b{ color:var(--ink, inherit); font-weight:600; margin-left:4px; font-variant-numeric:tabular-nums; }
#tasks-view .tm-stats em{ font-style:normal; color:var(--pos, #2e9f5b); margin-left:4px; }
#tasks-view .tm-stats .neg{ color:var(--neg); }
#tasks-view .tm-board{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:12px; align-items:start; }
#tasks-view .tm-col{ margin:0; padding:12px; }
#tasks-view .tm-col .panel-head{ margin-bottom:8px; }
.tm-task{ display:flex; gap:10px; padding:11px 12px; border:1px solid var(--line); border-radius:12px; margin-bottom:8px; cursor:pointer;
  background:color-mix(in srgb, var(--card) 70%, transparent); transition:border-color .15s ease, transform .15s ease; }
.tm-task:hover{ border-color:color-mix(in srgb, var(--red) 45%, var(--line)); }
.tm-task:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }
.tm-check{ width:18px; height:18px; border-radius:6px; border:1.5px solid color-mix(in srgb, var(--muted) 70%, transparent); background:none; padding:0;
  flex:none; margin-top:1px; display:inline-grid; place-items:center; vertical-align:-4px; cursor:pointer; }
.tm-check:hover{ border-color:var(--red); }
.tm-check.on{ background:var(--red); border-color:var(--red); }
.tm-check.on::after{ content:''; width:8px; height:4px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg) translate(1px,-1px); }
.tm-body{ flex:1; min-width:0; }
.tm-t{ font-weight:500; line-height:1.35; }
.tm-bar{ height:4px; border-radius:4px; background:color-mix(in srgb, var(--muted) 20%, transparent); margin-top:8px; overflow:hidden; }
.tm-bar i{ display:block; height:100%; background:var(--red); }
.tm-meta{ display:flex; gap:10px; align-items:center; margin-top:8px; color:var(--muted); font-size:12px; }
.tm-meta > span:not(.stchip){ display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.tm-meta .ni{ width:12px; height:12px; }
.tm-meta .stchip{ margin-left:auto; }
.tm-add{ border:0; background:none; color:var(--muted); font:inherit; font-size:12.5px; padding:6px 4px; cursor:pointer; }
.tm-add:hover{ color:var(--red); }
.tm-empty{ color:var(--muted); font-size:12.5px; padding:4px 2px 8px; }
#tasks-view .tm-row{ cursor:pointer; }
/* the task form, in the hub's side panel */
.tf{ display:flex; flex-direction:column; }
.tf .inp{ width:100%; font:inherit; color:inherit; background:color-mix(in srgb, var(--card) 60%, transparent); border:1px solid var(--line); border-radius:10px; padding:9px 11px; }
.tf .inp:focus{ outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-tint); }
.tf textarea.inp{ resize:vertical; }
.tf-l{ font-size:12px; color:var(--muted); margin:14px 0 6px; } .tf-l b{ color:var(--red); font-weight:500; } .tf-l span{ opacity:.8; }
.tf-err{ color:var(--neg); font-size:12.5px; margin:6px 0 0; }
.tf-step{ display:flex; gap:8px; align-items:center; margin-bottom:6px; } .tf-step .inp{ padding:7px 10px; }
.tf-x{ border:0; background:none; color:var(--muted); font-size:18px; line-height:1; cursor:pointer; padding:2px 4px; } .tf-x:hover{ color:var(--neg); }
.tf-hint{ color:var(--muted); font-size:12.5px; margin:2px 0; }
.tf-links{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.tf-link{ display:inline-flex; gap:6px; align-items:center; font-size:12.5px; padding:4px 4px 4px 10px; border-radius:999px; border:1px solid var(--line); max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.tf-link .ni{ width:13px; height:13px; }
.tf-row{ display:flex; gap:8px; }
.tf-two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tf-foot{ display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.tf-foot .tf-del{ margin-right:auto; color:var(--neg); }

/* Meta ads */
.mx-alert{ display:flex; gap:12px; align-items:center; padding:12px 16px; border-radius:14px; margin-bottom:14px;
  background:color-mix(in srgb, var(--neg) 14%, transparent); border:1px solid color-mix(in srgb, var(--neg) 45%, transparent); }
.mx-alert .ti{ width:18px; height:18px; color:var(--neg); flex:none; }
.mx-alert .mx-am{ margin-left:auto; }
#meta-view .mx-kpis{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
.mx-vat{ text-transform:none; letter-spacing:0; opacity:.8; }
.mx-name{ display:flex; gap:10px; align-items:center; }
.mx-thumb{ width:34px; height:42px; border-radius:6px; object-fit:cover; flex:none; }
.mx-c{ font-weight:500; } .mx-sub{ color:var(--muted); font-size:12px; }
.mx-t td{ vertical-align:middle; }
.mx-links{ min-width:220px; }
.mx-am{ color:var(--red); text-decoration:none; font-weight:500; white-space:nowrap; display:inline-flex; gap:5px; align-items:center; }
.mx-am .ni, .mx-ad > .ni{ width:13px; height:13px; }
.mx-pchip{ display:inline-flex; align-items:center; gap:6px; padding:3px 9px 3px 3px; border-radius:999px; font-size:12px; margin:2px 6px 2px 0; white-space:nowrap;
  border:1px solid var(--line); background:color-mix(in srgb, var(--card) 80%, transparent); }
.mx-pchip img{ width:20px; height:20px; border-radius:50%; object-fit:cover; background:#fff; }
.mx-pchip i{ width:7px; height:7px; border-radius:50%; background:var(--muted); }
.mx-pchip.tone-green i{ background:#2e9f5b; } .mx-pchip.tone-amber i{ background:#e6a23c; } .mx-pchip.tone-red i{ background:var(--neg); }
.mx-pchip.tone-red{ border-color:color-mix(in srgb, var(--neg) 50%, transparent); background:color-mix(in srgb, var(--neg) 12%, transparent); }
.mx-pchip .tf-x{ font-size:15px; padding:0 2px; }
.mx-link-btn{ font:inherit; font-size:12px; font-weight:500; color:var(--red); background:var(--red-tint); border:1px solid var(--red-tint-line); border-radius:999px; padding:4px 11px; cursor:pointer; }
.mx-two{ display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:14px; }
.mx-two .panel{ margin:0; }
.mx-ins{ list-style:none; margin:0; padding:0; } .mx-ins li{ padding:10px 0; border-bottom:1px solid var(--line); line-height:1.5; } .mx-ins li:last-child{ border:0; }
.mx-ads{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mx-ad{ display:flex; gap:10px; align-items:center; padding:8px; border:1px solid var(--line); border-radius:12px; color:inherit; text-decoration:none; }
.mx-ad:hover{ border-color:color-mix(in srgb, var(--red) 45%, var(--line)); }
.mx-ad img{ width:44px; height:55px; border-radius:8px; object-fit:cover; } .mx-ad > div{ flex:1; min-width:0; }
.mx-link .mx-search{ display:flex; gap:8px; align-items:center; }
.mx-link .mx-search .ni{ width:15px; height:15px; color:var(--muted); flex:none; }
.mx-link .inp{ width:100%; font:inherit; color:inherit; background:color-mix(in srgb, var(--card) 60%, transparent); border:1px solid var(--line); border-radius:10px; padding:9px 11px; }
.mx-link .inp:focus{ outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-tint); }
.mx-results{ margin-top:10px; max-height:46vh; overflow:auto; }
.mx-res{ display:flex; gap:12px; align-items:center; padding:9px 4px; border-bottom:1px solid var(--line); cursor:pointer; }
.mx-res input{ width:17px; height:17px; accent-color:var(--red); flex:none; }
.mx-res img{ width:40px; height:40px; border-radius:8px; object-fit:cover; background:#fff; }
.mx-rn{ flex:1; display:flex; flex-direction:column; min-width:0; } .mx-rn small{ color:var(--muted); }
.mx-res .mx-pchip{ margin:0; }
.mx-linked{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:12px; color:var(--muted); font-size:12.5px; }
.mx-note{ display:flex; gap:8px; align-items:center; margin:14px 0 0; padding:10px 12px; border-radius:12px; background:var(--red-tint); color:var(--muted); font-size:12.5px; }
.mx-note .ni{ width:15px; height:15px; color:var(--red); flex:none; }
@media (max-width:760px){ .mk-head{ align-items:flex-start; } .mx-ads{ grid-template-columns:1fr; } .tf-two{ grid-template-columns:1fr; } }
.tf .tm-add{ align-self:flex-start; padding-left:0; }
@media (max-width:760px){ #tasks-view .tm-team{ grid-template-columns:repeat(2, minmax(0, 1fr)); } #tasks-view .tm-wk{ display:none; } }

/* Anetos: no AI daily report, Regular finance only */
.nav-item[data-view="reports"], #open-reports, .pkg-switch { display: none !important; }
