/* ============================================================
   P1 SUITE — one look for every signed-in screen.

   Staff:  Console (admin.html), Support Desk, Work, Knowledge
           (KB Studio), Internal KB.
   Client: Portal (tickets, help, downloads, licences, roadmap)
           and the client Help Center (kb.html).

   Before this sheet the site carried SEVEN independent palettes
   (--wk-*, --sd-*, --kb-*, tokens.css, p1-foundation --p-*,
   client-portal --p-*, and console.css's navy re-point). Each app
   looked like a different vendor. This file owns ONE token set
   (--p1-*) and answers every legacy name from it, so an app's own
   stylesheet keeps working unchanged but can no longer disagree.

   LOAD IT LAST. The alias block is written as html:root /
   html[data-theme] (0,1,1) so it outranks the :root and
   [data-theme="light"] (0,1,0) blocks in the app sheets regardless
   of where they sit, and ties the kb.css html[data-theme] block on
   weight — which load order then settles in our favour.

   The suite bar (.p1s-bar) is dark in BOTH themes: it is the frame
   that says "you are in PriorityOne", the way every Zoho app shares
   one header. It re-declares the dark palette locally so any app
   control placed inside it (search, New, bell…) renders correctly.
   ============================================================ */

/* ── P1 Theme v1.0 (2026-11-21) ─────────────────────────────────
   Source of truth: the "P1 Portal Theme" artifact. Theme names
   (--p1-surface, --p1-border, --p1-ink-2 …) are the API; the older
   suite names below them (--p1-surf, --p1-line, --p1-dim …) are kept
   as aliases so every existing app sheet follows the new values.

   Brand green stays the logo green #8DC63F (theme drafts used
   Tailwind #84CC16). NOTE the one deliberate name difference:
   the theme's deep-forest band colour is --p1-band here, because
   --p1-brand has always meant the lime FILL in this codebase. */
@font-face{ font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("../assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face{ font-family:"Manrope"; font-style:normal; font-weight:600 800; font-display:swap;
  src:url("../assets/fonts/manrope-latin.woff2") format("woff2"); }
@font-face{ font-family:"JetBrains Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../assets/fonts/jetbrainsmono-latin.woff2") format("woff2"); }

:root{
  --p1-font-display:"Manrope","Inter",system-ui,sans-serif;
  --p1-font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --p1-font-mono:"JetBrains Mono",ui-monospace,"Cascadia Mono",monospace;
  --p1-radius-sm:6px; --p1-radius-md:10px; --p1-radius-lg:14px; --p1-radius-xl:20px; --p1-radius-pill:999px;
  --p1-ease:cubic-bezier(.2,.7,.2,1); --p1-dur:160ms;

  --p1-bg:#F6F7F4; --p1-surface:#FFFFFF; --p1-surface-2:#F0F2EC; --p1-surface-3:#E6E9E1;
  --p1-border:#E2E5DC; --p1-border-strong:#C9CEC0;
  --p1-ink:#141712; --p1-ink-2:#474D42; --p1-ink-3:#656D5F;
  --p1-band:#14210D; --p1-on-band:#F4FBE8; --p1-lime:#A3E635;
  --p1-primary:#8DC63F; --p1-primary-hover:#7DB534; --p1-on-primary:#162405;
  --p1-primary-soft:#EEF6DF; --p1-link:#4D7C0F;
  --p1-accent:#14B8A6; --p1-on-accent:#042F2A; --p1-accent-ink:#0F766E; --p1-accent-soft:#DCF5F1;
  --p1-success:#0F7B4F; --p1-success-soft:#E2F4EB;
  --p1-warning:#A65F00; --p1-warning-soft:#FFF2DC;
  --p1-danger:#C62F45;  --p1-danger-soft:#FDEBEE;
  --p1-info:#2D5DB8;    --p1-info-soft:#E6EEFB;
  --p1-prio-1:#C62F45; --p1-prio-2:#C2501A; --p1-prio-3:#8F6C00; --p1-prio-4:#5D6B82;
  --p1-focus:rgba(101,163,13,.40); --p1-overlay:rgba(20,23,18,.45);
  --p1-shadow-sm:0 1px 2px rgba(20,23,18,.06),0 1px 1px rgba(20,23,18,.04);
  --p1-shadow-md:0 4px 14px rgba(20,23,18,.08),0 1px 3px rgba(20,23,18,.05);
  --p1-shadow-lg:0 18px 40px rgba(20,23,18,.12),0 4px 10px rgba(20,23,18,.06);
}
html[data-theme="dark"]{
  --p1-bg:#1C1F1D; --p1-surface:#242826; --p1-surface-2:#2B302D; --p1-surface-3:#343A36;
  --p1-border:#373D39; --p1-border-strong:#4A514C;
  --p1-ink:#ECEFEA; --p1-ink-2:#B8BEB5; --p1-ink-3:#8F978C;
  --p1-band:#18221A; --p1-on-band:#F4FBE8;
  --p1-primary:#9ED350; --p1-primary-hover:#B2E070; --p1-on-primary:#162405;
  --p1-primary-soft:#2C3822; --p1-link:#B5E86A;
  --p1-accent:#2DD4BF; --p1-accent-ink:#5EEAD4; --p1-accent-soft:#1B3532;
  --p1-success:#34D399; --p1-success-soft:#1C3A2E;
  --p1-warning:#F2B04E; --p1-warning-soft:#3E3220;
  --p1-danger:#F26B80;  --p1-danger-soft:#43242C;
  --p1-info:#7FA8F0;    --p1-info-soft:#22304A;
  --p1-prio-1:#F26B80; --p1-prio-2:#F58A4E; --p1-prio-3:#E8C34A; --p1-prio-4:#9AA6BC;
  --p1-focus:rgba(163,230,53,.45); --p1-overlay:rgba(8,10,8,.60);
  --p1-shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --p1-shadow-md:0 6px 18px rgba(0,0,0,.35);
  --p1-shadow-lg:0 22px 48px rgba(0,0,0,.5);
}

/* legacy suite names → theme tokens (same element, so they follow the theme) */
:root, html[data-theme]{
  --p1-sans:var(--p1-font-body); --p1-mono:var(--p1-font-mono);
  --p1-r:var(--p1-radius-md); --p1-r-sm:var(--p1-radius-sm); --p1-r-lg:var(--p1-radius-lg);
  --p1-bg2:var(--p1-surface-2); --p1-surf:var(--p1-surface); --p1-surf2:var(--p1-surface-2); --p1-surf3:var(--p1-surface-3);
  --p1-soft:var(--p1-ink-2); --p1-dim:var(--p1-ink-2); --p1-mute:var(--p1-ink-3);
  --p1-line:var(--p1-border); --p1-line2:var(--p1-border-strong);
  --p1-brand:var(--p1-primary); --p1-brand-ink:var(--p1-on-primary); --p1-brand-strong:var(--p1-primary-hover);
  --p1-brand-soft:var(--p1-primary-soft); --p1-brand-txt:var(--p1-link);
  --p1-shadow:rgba(20,23,18,.12);
  --p1-red:var(--p1-danger);     --p1-red-soft:var(--p1-danger-soft);
  --p1-amber:var(--p1-warning);  --p1-amber-soft:var(--p1-warning-soft);
  --p1-blue:var(--p1-info);      --p1-blue-soft:var(--p1-info-soft);
  --p1-green:var(--p1-success);  --p1-green-soft:var(--p1-success-soft);
  --p1-purple:#7C4DCC;           --p1-purple-soft:rgba(124,77,204,.10);
  --p1-accent-rgb:77,124,15; --p1-glass-rgb:20,23,18;
  /* the top bar follows the page theme now (white in light, charcoal in dark) */
  --p1-bar:var(--p1-surface); --p1-bar-line:var(--p1-border); --p1-bar-ink:var(--p1-ink); --p1-bar-dim:var(--p1-ink-3);
}
html[data-theme="dark"]{ --p1-shadow:rgba(0,0,0,.5); --p1-accent-rgb:158,211,80; --p1-glass-rgb:255,255,255; --p1-purple:#B69CF0; --p1-purple-soft:rgba(182,156,240,.14); }

/* ════════════════════════════════════════════════════════════
   LEGACY NAMES → SUITE TOKENS
   Every app sheet keeps reading its own variable names; they all
   resolve here. Declared on .p1s-bar too, so they re-resolve
   against the bar's dark values (custom properties inherit their
   COMPUTED value — redefining --p1-* alone would not reach them).
   ════════════════════════════════════════════════════════════ */
html:root, html[data-theme], .p1s-bar, .p1s-pop{
  /* Work Studio */
  --wk-bg:var(--p1-bg); --wk-bg2:var(--p1-bg2); --wk-surf:var(--p1-surf); --wk-surf2:var(--p1-surf2); --wk-surf3:var(--p1-surf3);
  --wk-ink:var(--p1-ink); --wk-soft:var(--p1-soft); --wk-dim:var(--p1-dim); --wk-mute:var(--p1-mute);
  --wk-line:var(--p1-line); --wk-line2:var(--p1-line2);
  --wk-brand:var(--p1-brand); --wk-brand-ink:var(--p1-brand-ink); --wk-brand-soft:var(--p1-brand-soft);
  --wk-brand-txt:var(--p1-brand-txt); --wk-brand-strong:var(--p1-brand-strong); --wk-shadow:var(--p1-shadow);
  --wk-red:var(--p1-red); --wk-red-soft:var(--p1-red-soft); --wk-amber:var(--p1-amber); --wk-amber-soft:var(--p1-amber-soft);
  --wk-blue:var(--p1-blue); --wk-blue-soft:var(--p1-blue-soft); --wk-green:var(--p1-green); --wk-green-soft:var(--p1-green-soft);
  --wk-purple:var(--p1-purple); --wk-purple-soft:var(--p1-purple-soft);
  --wk-sans:var(--p1-sans); --wk-mono:var(--p1-mono);

  /* Support Desk */
  --sd-bg:var(--p1-bg); --sd-bg2:var(--p1-bg2); --sd-surf:var(--p1-surf); --sd-surf2:var(--p1-surf2); --sd-surf3:var(--p1-surf3);
  --sd-ink:var(--p1-ink); --sd-soft:var(--p1-soft); --sd-dim:var(--p1-dim); --sd-mute:var(--p1-mute);
  --sd-line:var(--p1-line); --sd-line2:var(--p1-line2);
  --sd-brand:var(--p1-brand); --sd-brand-ink:var(--p1-brand-ink); --sd-brand-soft:var(--p1-brand-soft);
  --sd-brand-txt:var(--p1-brand-txt); --sd-brand-strong:var(--p1-brand-strong); --sd-shadow:var(--p1-shadow);
  --sd-red:var(--p1-red); --sd-red-soft:var(--p1-red-soft); --sd-amber:var(--p1-amber); --sd-amber-soft:var(--p1-amber-soft);
  --sd-blue:var(--p1-blue); --sd-blue-soft:var(--p1-blue-soft); --sd-green:var(--p1-green); --sd-green-soft:var(--p1-green-soft);
  --sd-purple:var(--p1-purple); --sd-purple-soft:var(--p1-purple-soft);
  --sd-sans:var(--p1-sans); --sd-mono:var(--p1-mono);

  /* Knowledge base (public reader, KB Studio, internal KB) */
  --kb-bg:var(--p1-bg); --kb-bg2:var(--p1-bg2); --kb-surf:var(--p1-surf); --kb-surf2:var(--p1-surf2);
  --kb-ink:var(--p1-ink); --kb-soft:var(--p1-soft); --kb-dim:var(--p1-dim); --kb-mute:var(--p1-mute);
  --kb-line:var(--p1-line); --kb-line2:var(--p1-line2);
  --kb-brand:var(--p1-brand); --kb-brand-ink:var(--p1-brand-ink); --kb-brand-soft:var(--p1-brand-soft);
  --kb-brand-txt:var(--p1-brand-txt); --kb-brand-strong:var(--p1-brand-strong);
  --kb-nav:var(--p1-surf); --kb-shadow:var(--p1-shadow);
  --kb-sans:var(--p1-sans); --kb-mono:var(--p1-mono);

  /* tokens.css (admin console + portal base) */
  --accent-rgb:var(--p1-accent-rgb); --glass-rgb:var(--p1-glass-rgb);
  --cyan:var(--p1-brand-txt); --cyan-dark:var(--p1-brand-txt); --cyan-glow:var(--p1-brand-soft);
  --dark-1:var(--p1-bg); --dark-2:var(--p1-surf); --dark-3:var(--p1-surf2); --dark-4:var(--p1-surf3); --dark-5:var(--p1-line2);
  --text:var(--p1-soft); --text-dim:var(--p1-dim); --text-dimmer:var(--p1-mute); --white:var(--p1-ink);
  --glass:var(--p1-surf); --glass-border:var(--p1-line);
  --border-subtle:var(--p1-line); --border-hover:var(--p1-line2);
  --red:var(--p1-red); --green:var(--p1-green); --amber:var(--p1-amber); --orange:var(--p1-amber);
  --blue:var(--p1-blue); --purple:var(--p1-purple);
  --gradient-1:var(--p1-brand); --gradient-2:var(--p1-brand);
  --shadow-glow:none; --shadow-glow-strong:none;
  --shadow-sm:0 1px 2px var(--p1-shadow); --shadow-md:0 6px 18px -8px var(--p1-shadow); --shadow-lg:0 18px 48px -16px var(--p1-shadow);
  --radius:var(--p1-r-lg); --radius-sm:var(--p1-r); --radius-xs:var(--p1-r-sm);
  --font-sans:var(--p1-sans); --font-mono:var(--p1-mono); --font-data:var(--p1-mono);

  /* p1-foundation.css + client-portal.css (client portal) */
  --p-page:var(--p1-bg); --p-band:var(--p1-bg2); --p-sunk:var(--p1-surf2);
  --p-line:var(--p1-line); --p-line-strong:var(--p1-line2);
  --p-ink:var(--p1-ink); --p-dim:var(--p1-dim); --p-mute:var(--p1-mute);
  --p-accent:var(--p1-brand-txt); --p-mark:var(--p1-brand); --p-wash:var(--p1-brand-soft);
  --p-warn:var(--p1-amber); --p-warn-wash:var(--p1-amber-soft);
  --p-ok:var(--p1-green); --p-ok-wash:var(--p1-green-soft);
  --p-crit:var(--p1-red); --p-crit-wash:var(--p1-red-soft);
  --p-sans:var(--p1-sans); --p-mono:var(--p1-mono); --p-r:var(--p1-r-sm);
  --p-bg:var(--p1-bg); --p-bg2:var(--p1-bg2); --p-surf:var(--p1-surf); --p-surf2:var(--p1-surf2);
  --p-soft:var(--p1-soft); --p-line2:var(--p1-line2);
  --p-brand:var(--p1-brand); --p-brand-ink:var(--p1-brand-ink); --p-brand-soft:var(--p1-brand-soft);
  --p-brand-txt:var(--p1-brand-txt); --p-brand-strong:var(--p1-brand-strong);
  --p-nav:var(--p1-bar); --p-shadow:var(--p1-shadow);
}

html, body{ font-family:var(--p1-sans); }
body.p1s{ background:var(--p1-bg); color:var(--p1-ink); margin:0; }

/* ════════════════════════════════════════════════════════════
   SUITE BAR
   ════════════════════════════════════════════════════════════ */
.p1s-bar{
  display:flex; align-items:center; gap:10px; height:52px; flex:none;
  padding:0 12px 0 8px; position:relative; z-index:80;
  background:var(--p1-bar) !important; color:var(--p1-bar-ink);
  border-bottom:1px solid var(--p1-bar-line) !important;
  font-family:var(--p1-sans);
}
.p1s-bar.p1s-fixed{ position:sticky; top:0; }

.p1s-launch{
  width:36px; height:36px; flex:none; display:grid; place-items:center;
  border:0; border-radius:8px; background:transparent; color:var(--p1-bar-dim); cursor:pointer;
}
.p1s-launch:hover, .p1s-launch[aria-expanded="true"]{ background:rgba(255,255,255,.07); color:#fff; }
.p1s-launch svg{ width:18px; height:18px; }

.p1s-id{ display:flex; align-items:center; gap:10px; text-decoration:none; flex:none; color:inherit; }
.p1s-mark{ width:28px; height:28px; flex:none; display:block; }
.p1s-name{ display:flex; flex-direction:column; line-height:1; }
.p1s-name i{
  font-style:normal; font-size:9px; font-weight:700; letter-spacing:.17em; text-transform:uppercase;
  color:var(--p1-bar-dim);
}
.p1s-name b{ font-size:14.5px; font-weight:700; letter-spacing:-.01em; color:#fff; margin-top:3px; white-space:nowrap; }
.p1s-dot{ width:8px; height:8px; border-radius:3px; flex:none; margin-left:-2px; }

.p1s-sep{ width:1px; height:24px; background:var(--p1-bar-line); flex:none; margin:0 4px; }
.p1s-grow{ flex:1; min-width:8px; }

.p1s-ibtn{
  width:34px; height:34px; flex:none; display:grid; place-items:center; position:relative;
  border:0; border-radius:8px; background:transparent; color:var(--p1-bar-dim); cursor:pointer;
}
.p1s-ibtn:hover{ background:rgba(255,255,255,.07); color:#fff; }
.p1s-ibtn svg{ width:17px; height:17px; }

.p1s-search{
  display:flex; align-items:center; gap:8px; height:34px; padding:0 10px 0 11px;
  width:min(380px, 32vw); border:1px solid var(--p1-bar-line); border-radius:8px;
  background:rgba(255,255,255,.05); color:var(--p1-bar-dim); cursor:pointer; font:inherit; font-size:13px;
}
.p1s-search:hover{ background:rgba(255,255,255,.08); color:#fff; }
.p1s-search svg{ width:15px; height:15px; flex:none; }
.p1s-search span{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.p1s-search kbd{
  font-family:var(--p1-mono); font-size:10.5px; font-weight:600; padding:2px 5px; border-radius:5px;
  border:1px solid var(--p1-bar-line); color:var(--p1-bar-dim); background:transparent;
}

.p1s-avatar{
  width:32px; height:32px; flex:none; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; font-size:12px; font-weight:750; letter-spacing:.02em;
  background:var(--p1-brand); color:#13230A; margin-left:2px;
}
.p1s-avatar:hover{ box-shadow:0 0 0 3px rgba(141, 198, 63,.25); }

/* app controls that live in the bar keep their own classes; these
   just stop them looking like page furniture against the frame */
.p1s-bar .p1s-hide{ display:none !important; }

/* ════════════════════════════════════════════════════════════
   POPOVERS — app launcher + account menu
   ════════════════════════════════════════════════════════════ */
.p1s-pop{
  position:fixed; z-index:1000; top:56px;
  background:#121A26; color:var(--p1-ink); border:1px solid #243042; border-radius:12px;
  box-shadow:0 24px 60px -18px rgba(0,0,0,.65); font-family:var(--p1-sans);
  opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity .14s, transform .14s;
}
.p1s-pop.open{ opacity:1; transform:none; pointer-events:auto; }
.p1s-pop h6{
  margin:0; padding:14px 16px 8px; font-size:10px; font-weight:750; letter-spacing:.16em;
  text-transform:uppercase; color:var(--p1-mute);
}

.p1s-apps{ left:8px; width:min(560px, calc(100vw - 16px)); padding-bottom:8px; }
.p1s-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:0 8px; }
.p1s-tile{
  display:flex; align-items:flex-start; gap:11px; padding:11px 10px; border-radius:10px;
  text-decoration:none; color:inherit; border:1px solid transparent;
}
.p1s-tile:hover{ background:#1A2433; border-color:#243042; }
.p1s-tile.cur{ background:#1A2433; border-color:#2E3C51; }
.p1s-ico{
  width:36px; height:36px; flex:none; border-radius:9px; display:grid; place-items:center; color:#fff;
}
.p1s-ico svg{ width:19px; height:19px; }
.p1s-tile b{ display:block; font-size:13px; font-weight:650; color:#F1F5F9; line-height:1.2; }
.p1s-tile small{ display:block; font-size:11.5px; color:#8696AB; line-height:1.35; margin-top:2px; }
.p1s-apps-foot{
  margin:8px 8px 0; padding:10px 8px 2px; border-top:1px solid #222D3D;
  display:flex; gap:14px; flex-wrap:wrap; font-size:12px;
}
.p1s-apps-foot a{ color:#93A1B4; text-decoration:none; }
.p1s-apps-foot a:hover{ color:#fff; }

.p1s-me{ right:8px; width:280px; padding:6px; }
.p1s-me-head{ display:flex; gap:12px; align-items:center; padding:12px 10px 12px; border-bottom:1px solid #222D3D; margin-bottom:6px; }
.p1s-me-head .p1s-avatar{ width:40px; height:40px; font-size:14px; cursor:default; box-shadow:none; }
.p1s-me-head b{ display:block; font-size:13.5px; color:#F1F5F9; }
.p1s-me-head small{ display:block; font-size:12px; color:#8696AB; margin-top:2px; word-break:break-all; }
.p1s-me-head em{
  display:inline-block; margin-top:5px; font-style:normal; font-size:10px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:#8DC63F;
  background:rgba(141, 198, 63,.12); border-radius:4px; padding:2px 6px;
}
.p1s-mi{
  display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:0; border-radius:7px;
  background:transparent; color:#C9D3E0; font:inherit; font-size:13px; text-align:left; cursor:pointer; text-decoration:none;
}
.p1s-mi:hover{ background:#1A2433; color:#fff; }
.p1s-mi svg{ width:16px; height:16px; flex:none; opacity:.8; }
.p1s-mi .r{ margin-left:auto; font-size:11.5px; color:#8696AB; }
.p1s-mi.danger:hover{ color:#FCA5A5; background:rgba(248,113,113,.1); }
.p1s-msep{ height:1px; background:#222D3D; margin:6px 4px; }

/* ════════════════════════════════════════════════════════════
   ONE NAVIGATION LOOK
   Every app's left rail item answers to the same active state:
   brand wash + brand text + a 3px brand edge. Before, Work used a
   grey fill, Support a left border, KB a lime wash, and the Console
   a mask-icon pill.
   ════════════════════════════════════════════════════════════ */
.wk-side, .sd-side, .st-side{ background:var(--p1-surf) !important; border-right:1px solid var(--p1-line) !important; }
.wk-navi, .sd-nav, .st-navi{
  position:relative; border-radius:7px !important; border-left:0 !important;
  font-size:13px !important; font-weight:550 !important; color:var(--p1-dim) !important;
}
.wk-navi:hover, .sd-nav:hover, .st-navi:hover{ background:var(--p1-surf2) !important; color:var(--p1-ink) !important; }
.wk-navi.on, .sd-nav.on, .st-navi.on{
  background:var(--p1-brand-soft) !important; color:var(--p1-brand-txt) !important; font-weight:650 !important;
}
.wk-navi.on::before, .sd-nav.on::before, .st-navi.on::before{
  content:""; position:absolute; left:-8px; top:6px; bottom:6px; width:3px; border-radius:0 3px 3px 0;
  background:var(--p1-brand-txt);
}
.wk-sec, .sd-sec, .st-sec{
  font-size:10.5px !important; font-weight:750 !important; letter-spacing:.13em !important; color:var(--p1-mute) !important;
}

/* primary buttons: one shape, one colour, every app */
.wk-btn.primary, .sd-btn.primary, .st-btn.primary, .btn-primary{
  background:var(--p1-brand) !important; border-color:var(--p1-brand) !important; color:var(--p1-brand-ink) !important;
  box-shadow:none !important;
}
.wk-btn.primary:hover, .sd-btn.primary:hover, .st-btn.primary:hover, .btn-primary:hover{
  background:var(--p1-brand-strong) !important; border-color:var(--p1-brand-strong) !important;
}

/* ════════════════════════════════════════════════════════════
   CONSOLE + PORTAL FRAME (admin.html, portal.html)
   Both are a suite bar, a left rail and a scrolling main column —
   the same skeleton the studios use.
   ════════════════════════════════════════════════════════════ */
body.p1s-frame{ display:flex; flex-direction:column; min-height:100vh; }
body.p1s-frame .admin-dashboard{
  display:flex; flex:1; min-height:0; padding-top:0 !important; margin:0 !important;
  background:var(--p1-bg) !important;
}
body.p1s-frame .admin-sidebar{
  position:sticky !important; top:52px !important; left:auto !important;
  height:calc(100vh - 52px) !important; width:236px !important; flex:none;
  padding:12px 8px 20px !important; overflow-y:auto;
  background:var(--p1-surf) !important; border-right:1px solid var(--p1-line) !important;
  backdrop-filter:none !important; box-shadow:none !important;
}
body.p1s-frame .sidebar-section{ padding:0 !important; margin:0 0 6px !important; border:0 !important; }
body.p1s-frame .sidebar-section h4{
  margin:14px 6px 5px !important; padding:0 5px !important; font-size:10.5px !important; font-weight:750 !important;
  letter-spacing:.13em !important; text-transform:uppercase; color:var(--p1-mute) !important;
  background:none !important; border:0 !important;
}
body.p1s-frame .sidebar-section:first-child h4{ margin-top:2px !important; }
body.p1s-frame .sidebar-section h4::before{ display:none !important; }
body.p1s-frame .sidebar-btn{
  position:relative; display:flex !important; align-items:center; gap:10px; width:100%;
  padding:7px 10px !important; margin:0 0 1px !important; min-height:0 !important;
  border:0 !important; border-radius:7px !important; background:transparent !important;
  color:var(--p1-dim) !important; font:inherit; font-size:13px !important; font-weight:550 !important;
  text-align:left; text-decoration:none !important; cursor:pointer; box-shadow:none !important;
  letter-spacing:0 !important; text-transform:none !important;
}
body.p1s-frame .sidebar-btn::before{
  width:16px !important; height:16px !important; background-color:currentColor !important; opacity:.75 !important;
}
/* rail icons the Console + Portal were missing (same mask method as admin.css) */
body.p1s-frame .sidebar-btn[data-panel="apidocs"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="banners"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="team"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="blog"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="branding"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='1.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='1.5'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20c1 0 1.7-.8 1.7-1.7 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.9.8-1.7 1.7-1.7H16a6 6 0 0 0 6-6C22 6 17.5 2 12 2Z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='1.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='1.5'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20c1 0 1.7-.8 1.7-1.7 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.9.8-1.7 1.7-1.7H16a6 6 0 0 0 6-6C22 6 17.5 2 12 2Z'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="downloads"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="account"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="roadmap"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="changelog"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="license-audit"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn[data-panel="update-log"]::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v6h6'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v6h6'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
body.p1s-frame .sidebar-btn::after{ display:none !important; }
body.p1s-frame .sidebar-btn:hover{ background:var(--p1-surf2) !important; color:var(--p1-ink) !important; }
body.p1s-frame .sidebar-btn.active{
  background:var(--p1-brand-soft) !important; color:var(--p1-brand-txt) !important; font-weight:650 !important;
}
body.p1s-frame .sidebar-btn.active::before{ opacity:1 !important; }
body.p1s-frame .sidebar-btn.active{ box-shadow:inset 3px 0 0 var(--p1-brand-txt) !important; }

body.p1s-frame .admin-main{
  flex:1; min-width:0; margin:0 !important; padding:26px 32px 48px !important;
  max-width:none !important; background:transparent !important;
}
body.p1s-frame .admin-panel h2, body.p1s-frame .panel-header h2{
  font-size:21px !important; font-weight:700 !important; letter-spacing:-.015em !important;
  color:var(--p1-ink) !important; background:none !important; -webkit-text-fill-color:currentColor !important;
}
body.p1s-frame .panel-sub{ color:var(--p1-dim) !important; font-size:13.5px !important; }
body.p1s-frame .panel-header{ border:0 !important; padding-bottom:0 !important; }

/* surfaces: cards, tables, forms — flat, hairline, no glow */
body.p1s-frame .stat-card, body.p1s-frame .admin-card, body.p1s-frame .form-card,
body.p1s-frame .admin-table, body.p1s-frame .table-wrap, body.p1s-frame .card{
  background:var(--p1-surf) !important; border:1px solid var(--p1-line) !important;
  border-radius:var(--p1-r-lg) !important; box-shadow:0 1px 2px var(--p1-shadow) !important;
  backdrop-filter:none !important;
}
body.p1s-frame .admin-table{ border-collapse:separate !important; border-spacing:0; overflow:hidden; width:100%; }
body.p1s-frame .admin-table th{
  background:var(--p1-surf2) !important; color:var(--p1-dim) !important; font-size:11.5px !important;
  font-weight:700 !important; letter-spacing:.06em !important; text-transform:uppercase;
  border-bottom:1px solid var(--p1-line) !important;
}
body.p1s-frame .admin-table td{ border-bottom:1px solid var(--p1-line) !important; color:var(--p1-soft); }
body.p1s-frame .admin-table tr:last-child td{ border-bottom:0 !important; }
body.p1s-frame .admin-table tbody tr:hover td{ background:var(--p1-surf2) !important; }

body.p1s-frame input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),
body.p1s-frame select, body.p1s-frame textarea{
  background:var(--p1-surf) !important; border:1px solid var(--p1-line2) !important;
  border-radius:var(--p1-r) !important; color:var(--p1-ink) !important; box-shadow:none !important;
}
body.p1s-frame input:focus, body.p1s-frame select:focus, body.p1s-frame textarea:focus{
  outline:none !important; border-color:var(--p1-brand-txt) !important;
  box-shadow:0 0 0 3px var(--p1-brand-soft) !important;
}
body.p1s-frame .btn-primary, body.p1s-frame .btn-secondary, body.p1s-frame .btn-sm{
  border-radius:var(--p1-r) !important; font-weight:650 !important; letter-spacing:0 !important;
  text-transform:none !important; transform:none !important;
}
body.p1s-frame .btn-secondary, body.p1s-frame .btn-sm{
  background:var(--p1-surf) !important; border:1px solid var(--p1-line2) !important; color:var(--p1-soft) !important;
}
body.p1s-frame .btn-secondary:hover, body.p1s-frame .btn-sm:hover{ background:var(--p1-surf2) !important; color:var(--p1-ink) !important; }

/* the old site chrome is replaced by the suite bar */
body.p1s-frame > .navbar, body.p1s-frame .login-screen{ display:none !important; }

/* ════════════════════════════════════════════════════════════
   PORTAL — tabs became a rail; the help band is Home-only
   ════════════════════════════════════════════════════════════ */
body.p1s-frame .p1-nav{ display:none !important; }
body.p1s-frame .p1-wrap{ display:flex; flex:1; min-width:0; max-width:none !important; margin:0 !important; padding:0 !important; }
body.p1s-frame .p1-band{
  margin:0 0 22px !important; padding:26px 28px !important; border-radius:var(--p1-r-lg) !important;
  background:var(--p1-bar) !important; color:#fff !important; border:0 !important; text-align:left !important;
  display:flex; align-items:center; gap:24px; flex-wrap:wrap;
}
body.p1s-frame .p1-band h1{ color:#fff !important; margin:0 !important; font-size:22px !important; font-weight:700 !important; flex:1; min-width:220px; }
body.p1s-frame .p1-band .p1-search{
  background:rgba(255,255,255,.07) !important; border:1px solid #2B394C !important; color:#C9D3E0 !important;
  width:min(460px, 100%) !important; margin:0 !important; border-radius:var(--p1-r) !important;
}

/* ════════════════════════════════════════════════════════════
   READERS (kb.html, kb-internal.html) — the suite bar replaces
   their marketing-style nav; the reading column is untouched.
   ════════════════════════════════════════════════════════════ */
body.p1s-reader > .pnav{ display:none !important; }

/* ════════════════════════════════════════════════════════════
   Small screens
   ════════════════════════════════════════════════════════════ */
.p1s-menu-btn{ display:none; }
@media (max-width:900px){
  .p1s-search span, .p1s-search kbd{ display:none; }
  .p1s-search{ width:34px; padding:0; justify-content:center; border-color:transparent; background:transparent; }
  .p1s-name i{ display:none; }
  .p1s-grid{ grid-template-columns:repeat(2, 1fr); }
  body.p1s-frame .p1s-menu-btn{ display:grid; }
  body.p1s-frame .admin-sidebar{
    position:fixed !important; z-index:70; left:-260px !important; transition:left .2s;
    box-shadow:0 20px 50px -10px var(--p1-shadow) !important;
  }
  body.p1s-frame.p1s-nav-open .admin-sidebar{ left:0 !important; }
  body.p1s-frame .admin-main{ padding:18px 16px 40px !important; }
}
@media (max-width:560px){
  .p1s-grid{ grid-template-columns:1fr; }
  .p1s-sep{ display:none; }
}

/* ════════════════════════════════════════════════════════════
   PORTAL — undo p1-foundation's "no rail" geometry. It hid the
   sidebar and centred a 1000px column because the portal had
   top tabs; the suite gives it the same rail as the Console.
   ════════════════════════════════════════════════════════════ */
body.p1-plain.p1s-frame .admin-dashboard{ display:flex !important; }
body.p1-plain.p1s-frame .admin-sidebar{ display:block !important; }
body.p1-plain.p1s-frame .admin-main{ flex:1 !important; padding:26px 32px 48px !important; }
body.p1-plain.p1s-frame .admin-main > .admin-panel{ max-width:1080px; }
body.p1s-frame .p1-sec-h{
  font-family:var(--p1-sans) !important; font-size:15px !important; font-weight:700 !important;
  letter-spacing:-.005em !important; text-transform:none !important; color:var(--p1-ink) !important;
}
body.p1s-frame .p1-sec-h + .p1-rule{ display:none; }
body.p1s-frame .p1-sec-h{ margin-bottom:10px !important; }
body.p1s-frame .p1-pill, body.p1s-frame .p1-num, body.p1s-frame .p1-ts{ font-family:var(--p1-sans) !important; }
body.p1s-frame .p1-pill{ letter-spacing:.05em !important; font-size:10.5px !important; border-radius:5px; }
body.p1s-frame .p1-list, body.p1s-frame .p1-empty{ border-radius:var(--p1-r-lg) !important; background:var(--p1-surf); }

/* Console: stat figures and quick actions in the suite type */
body.p1s-frame button{ font-family:inherit; }
body.p1s-frame .stat-card .stat-value, body.p1s-frame .stat-value, body.p1s-frame .stat-number{
  font-family:var(--p1-sans) !important; font-variant-numeric:tabular-nums; font-weight:750 !important;
  background:none !important; -webkit-text-fill-color:currentColor !important; color:var(--p1-ink) !important;
}
body.p1s-frame .stat-card::before, body.p1s-frame .stat-card::after{ display:none !important; }

/* KB Studio's crumb is [hidden] until an article is open */
.st-crumb[hidden]{ display:none !important; }

/* ── Console home ─────────────────────────────────────────── */
.p1s-hello{ margin-bottom:20px; }
.p1s-hello h2{ margin:0 0 4px !important; }
.p1s-kpis{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:30px; }
.p1s-kpi{
  display:flex; flex-direction:column; gap:6px; padding:16px 18px; text-align:left; text-decoration:none;
  background:var(--p1-surf); border:1px solid var(--p1-line); border-radius:var(--p1-r-lg);
  color:var(--p1-ink); font:inherit; cursor:pointer; box-shadow:0 1px 2px var(--p1-shadow);
  transition:border-color .15s, box-shadow .15s;
}
.p1s-kpi:hover{ border-color:var(--p1-line2); box-shadow:0 6px 18px -10px var(--p1-shadow); }
.p1s-kpi .k{ font-size:12px; font-weight:650; color:var(--p1-dim); }
.p1s-kpi b{ font-size:28px; font-weight:750; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1; color:var(--p1-ink); }
.p1s-kpi b small{ font-size:16px; font-weight:600; color:var(--p1-mute); }
.p1s-kpi .s{ font-size:12px; color:var(--p1-brand-txt); font-weight:600; }
.p1s-h3{ font-size:12px !important; font-weight:750 !important; letter-spacing:.12em !important; text-transform:uppercase; color:var(--p1-mute) !important; margin:0 0 10px !important; }
.p1s-appgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:12px; }
.p1s-app{
  display:flex; gap:13px; align-items:flex-start; padding:16px; text-decoration:none !important;
  background:var(--p1-surf); border:1px solid var(--p1-line); border-radius:var(--p1-r-lg); color:var(--p1-ink);
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
.p1s-app:hover{ border-color:var(--p1-line2); box-shadow:0 8px 22px -12px var(--p1-shadow); transform:translateY(-1px); }
.p1s-app b{ display:block; font-size:14px; font-weight:700; margin-bottom:3px; color:var(--p1-ink); }
.p1s-app small{ display:block; font-size:12.5px; color:var(--p1-dim); line-height:1.45; }
.p1s-app .p1s-ico{ width:38px; height:38px; border-radius:10px; flex:none; display:grid; place-items:center; color:#fff; }
.p1s-app .p1s-ico svg{ width:20px; height:20px; }
@media (max-width:1100px){ .p1s-kpis{ grid-template-columns:repeat(2, minmax(0,1fr)); } }

/* inner-panel stat strips (Licenses, Releases…) — same card as the home KPIs */
body.p1s-frame .overview-card{
  background:var(--p1-surf) !important; border:1px solid var(--p1-line) !important; border-radius:var(--p1-r-lg) !important;
  box-shadow:0 1px 2px var(--p1-shadow) !important; padding:16px 18px !important; backdrop-filter:none !important;
  display:flex !important; flex-direction:column-reverse; gap:6px; transform:none !important;
}
body.p1s-frame .overview-card::before, body.p1s-frame .overview-card::after{ display:none !important; }
body.p1s-frame .overview-num{
  font-family:var(--p1-sans) !important; font-size:28px !important; font-weight:750 !important; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums; color:var(--p1-ink) !important; background:none !important;
  -webkit-text-fill-color:currentColor !important; line-height:1.1 !important;
}
body.p1s-frame .overview-label{
  font-size:12px !important; font-weight:650 !important; letter-spacing:0 !important; text-transform:none !important;
  color:var(--p1-dim) !important; margin:0 !important;
}
body.p1s-frame .overview-cards{ gap:12px !important; }

/* ════════════════════════════════════════════════════════════
   P1 THEME v1.0 — frame (2026-11-21)
   The suite bar and its popovers used to be hard-coded navy in both
   themes. They now sit on the page's own surface: a white bar with a
   hairline in Light, charcoal in Dark — the calm frame from the theme.
   ════════════════════════════════════════════════════════════ */
html, body{ font-family:var(--p1-font-body); -webkit-font-smoothing:antialiased; }
.p1s-bar{ background:var(--p1-surface) !important; color:var(--p1-ink); border-bottom:1px solid var(--p1-border) !important; height:56px; }
.p1s-launch, .p1s-ibtn{ color:var(--p1-ink-3); }
.p1s-launch:hover, .p1s-launch[aria-expanded="true"], .p1s-ibtn:hover{ background:var(--p1-surface-2); color:var(--p1-ink); }
.p1s-name i{ color:var(--p1-ink-3); letter-spacing:.02em; text-transform:none; font-size:11px; font-weight:500; }
.p1s-name b{ color:var(--p1-ink); font-family:var(--p1-font-display); font-weight:700; font-size:15px; }
.p1s-search{ background:var(--p1-surface-2); border:1px solid transparent; color:var(--p1-ink-3); border-radius:var(--p1-radius-md); height:36px; }
.p1s-search:hover{ background:var(--p1-surface-3); color:var(--p1-ink-2); }
.p1s-search kbd{ border-color:var(--p1-border-strong); color:var(--p1-ink-3); background:var(--p1-surface); }
.p1s-avatar{ background:var(--p1-primary-soft); color:var(--p1-link); font-weight:700; }
.p1s-avatar:hover{ box-shadow:0 0 0 3px var(--p1-focus); }
.p1s-sep{ background:var(--p1-border); }

.p1s-pop{ background:var(--p1-surface); color:var(--p1-ink); border:1px solid var(--p1-border); box-shadow:var(--p1-shadow-lg); border-radius:var(--p1-radius-lg); top:60px; }
.p1s-pop h6{ text-transform:none; letter-spacing:0; font-size:12px; font-weight:600; color:var(--p1-ink-3); }
.p1s-tile:hover, .p1s-tile.cur{ background:var(--p1-surface-2); border-color:var(--p1-border); }
.p1s-tile b{ color:var(--p1-ink); }
.p1s-tile small{ color:var(--p1-ink-3); }
.p1s-apps-foot{ border-top-color:var(--p1-border); }
.p1s-apps-foot a{ color:var(--p1-ink-2); }
.p1s-apps-foot a:hover{ color:var(--p1-link); }
.p1s-me-head{ border-bottom-color:var(--p1-border); }
.p1s-me-head b{ color:var(--p1-ink); }
.p1s-me-head small{ color:var(--p1-ink-3); }
.p1s-me-head em{ text-transform:none; letter-spacing:0; font-size:11.5px; color:var(--p1-link); background:var(--p1-primary-soft); }
.p1s-mi{ color:var(--p1-ink-2); }
.p1s-mi:hover{ background:var(--p1-surface-2); color:var(--p1-ink); }
.p1s-mi .r{ color:var(--p1-ink-3); }
.p1s-mi.danger:hover{ color:var(--p1-danger); background:var(--p1-danger-soft); }
.p1s-msep{ background:var(--p1-border); }

/* section labels: sentence case, no tracking (the "AI eyebrow" look is out) */
.wk-sec, .sd-sec, .st-sec, body.p1s-frame .sidebar-section h4{
  text-transform:none !important; letter-spacing:0 !important; font-size:12px !important; font-weight:600 !important; color:var(--p1-ink-3) !important;
}
:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--p1-focus) !important; border-radius:var(--p1-radius-sm); }
