/* ==========================================================================
   WAVDesk look, the same family as wavdesk.wav.global: warm paper background,
   navy type in Lato Black, a floating header card with a pill menu, and the
   network colours (lime, blue, orange, purple) as thin top rules on cards.
   Loaded last, so it wins over premium.css.
   ========================================================================== */
:root {
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --heading-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --wd-lime: #84cc16;
  --wd-green: #3f7d0e;      /* eyebrows and links on paper */
  --wd-blue: #1d5fd1;
  --wd-orange: #f97316;
  --wd-orange-ink: #b45309;
  --wd-purple: #7c3aed;
  --wd-navy: #14213d;
  --wd-grad: linear-gradient(90deg, #84cc16 0%, #facc15 55%, #f97316 100%);
  --bg: #f1efea;
  --card: #fbfaf7;
  --card-top: #fbfaf7;
  --surface-2: #f6f4ef;
  --surface-3: #e8e6e0;
  --hover: rgba(20, 33, 61, .045);
  --text: #14213d;
  --text-2: #3b4a63;
  --muted: #64708a;
  --border: rgba(20, 33, 61, .10);
  --border-2: rgba(20, 33, 61, .18);
  --card-border: rgba(20, 33, 61, .08);
  --ink: #14213d;
  --on-ink: #ffffff;
  --link: #3f7d0e;
  --accent-blue: #1d5fd1;
  --elev-1: 0 1px 2px rgba(20, 33, 61, .04), 0 6px 18px -6px rgba(20, 33, 61, .10);
  --elev-2: 0 2px 6px rgba(20, 33, 61, .06), 0 16px 34px -10px rgba(20, 33, 61, .18);
  --elev-3: 0 10px 20px -6px rgba(20, 33, 61, .12), 0 30px 60px -16px rgba(20, 33, 61, .28);
  --nav-h: 76px;
}
:root[data-theme="dark"] {
  --wd-green: #a3e635;
  --wd-orange-ink: #fb923c;
  --bg: #0c1322;
  --card: #141d31;
  --card-top: #141d31;
  --surface-2: #18223a;
  --surface-3: #212c47;
  --hover: rgba(255, 255, 255, .05);
  --text: #eef2f8;
  --text-2: #c6cfdf;
  --muted: #8a96ad;
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --card-border: rgba(255, 255, 255, .07);
  --ink: #eef2f8;
  --on-ink: #14213d;
  --link: #a3e635;
  --elev-1: 0 0 0 1px rgba(255, 255, 255, .03), 0 6px 18px -8px rgba(0, 0, 0, .6);
}

body { font-family: var(--font); font-size: 14.5px; letter-spacing: 0; color: var(--text); background: var(--bg); }

/* ---------- Header: a floating card, as on WAVDesk ---------- */
.gnav { height: auto; padding: 14px 22px 0; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gnav::after { display: none; }
.gnav-in {
  height: 62px; padding: 0 14px 0 18px; border-radius: 22px; background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--card-border); box-shadow: var(--elev-1);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.gnav-logo.wcp span { font-weight: 900; letter-spacing: .14em; }
.gnav-menu { flex: 0 1 auto; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-3); }
.gnav-link { height: 34px; padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.gnav-link:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.gnav-link.active, .gnav-item.has-active > .gnav-link { background: var(--card); color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgba(20, 33, 61, .12); }
.gnav-right { gap: 8px; }
.gnav .icon-btn { width: 38px; height: 38px; border: 1.5px solid var(--border-2); color: var(--wd-green); }
.gnav .icon-btn:hover { border-color: var(--wd-green); background: transparent; color: var(--wd-green); }
.gnav .count { background: #c81e1e; }
.gnav .search input { height: 38px; background: var(--surface-2); border: 1.5px solid var(--border); }
.gnav .search > svg { top: 11px; }
.gnav-drop { border-radius: 16px; background: var(--card); }
.shell.top .content { padding-top: 30px; }

/* ---------- Page heads: gradient tick, green eyebrow, heavy navy title ---------- */
.page-head h1 { font-size: 38px; font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.page-head .sub { font-size: 16px; color: var(--text-2); }
.page-head > div:first-child:not(.avatar):not(.actions)::before, .page-head > .avatar + div::before {
  content: ""; display: block; width: 76px; height: 5px; border-radius: 3px; background: var(--wd-grad); margin-bottom: 14px;
}
.page-head .eyebrow, .ws-head .eyebrow { color: var(--wd-green); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Cards and numbers ---------- */
.card, .kpi { background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: var(--elev-1); }
.card-h h3 { font-size: 15.5px; font-weight: 800; }
.kpi { position: relative; overflow: hidden; border-top: 0; padding-top: 22px; }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; opacity: 1; background: var(--wd-lime); }
.kpis > .kpi:nth-child(4n+2)::before, .grid > .kpi:nth-child(4n+2)::before { background: var(--wd-blue); }
.kpis > .kpi:nth-child(4n+3)::before, .grid > .kpi:nth-child(4n+3)::before { background: var(--wd-orange); }
.kpis > .kpi:nth-child(4n+4)::before, .grid > .kpi:nth-child(4n+4)::before { background: var(--wd-purple); }
.kpi .val { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.kpi .lbl { font-size: 13px; color: var(--text-2); }

/* ---------- Buttons: navy primary, outlined pills elsewhere ---------- */
.btn { height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: transparent; border: 1.5px solid var(--border-2); color: var(--text); }
.btn:hover { background: var(--hover); border-color: var(--text-2); }
.btn.primary { background: var(--wd-navy); border-color: var(--wd-navy); color: #fff; }
.btn.primary:hover { background: #22325a; border-color: #22325a; }
:root[data-theme="dark"] .btn.primary { background: var(--wd-lime); border-color: var(--wd-lime); color: #14213d; }
.btn.ghost { border-color: transparent; }
.btn.xs { height: 28px; font-size: 12px; }
.btn.icon { width: 36px; }
.seg { border-radius: 999px; border: 1.5px solid var(--border-2); }
.seg .btn { border: 0; }
.seg .btn.active { background: var(--wd-navy); color: #fff; }

/* ---------- Mid-size tabs: a grey capsule with bold labels ---------- */
.tabs { background: var(--surface-3); border: 0; }
.ws-mains { background: var(--surface-3); border-radius: 12px; padding: 3px; justify-self: start; max-width: 100%; }
.tabs button, .ws-nav button { font-weight: 700; color: var(--text-2); }
.tabs button.active, .ws-nav button.active { background: var(--card); color: var(--text); font-weight: 800; }
.ws-nav button.active svg { color: var(--wd-green); }

/* ---------- Inputs, badges, links ---------- */
input, select, textarea { border-radius: 12px; background: var(--card); border: 1.5px solid var(--border); }
input:focus, select:focus, textarea:focus { border-color: var(--wd-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wd-lime) 22%, transparent); }
label.f > span { font-weight: 700; }
a { color: var(--link); }
.badge { font-weight: 700; }
.modal { border-radius: 22px; background: var(--card); }
.modal-h h3 { font-weight: 800; }

@media (max-width: 1080px) {
  .gnav { padding: 10px 12px 0; }
  .gnav-menu { top: calc(var(--nav-h) + 4px); border-radius: 0; background: var(--bg); padding: 12px 22px 40px; }
  /* The bar's blur would make the bar, not the screen, the frame of the open menu, leaving it one row tall */
  .shell.nav-open .gnav-in { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* Tablets, as on phones: the logo panel starts the bar and the burger ends it, so the two never overlap */
  .gnav-logo.wcp { order: -1; }
  .gnav .burger { order: 10; }
  .page-head h1 { font-size: 30px; }
}
.login-art h2 { font-weight: 900; }

/* The chosen tab takes the blue-green from the tip of the W in the WCP logo */
:root { --wd-teal: #e6f8f4; }   /* a subtle tint of the W tip, #44fbdf */
.tabs button.active, .ws-nav button.active { background: var(--wd-teal); color: #14213d; box-shadow: 0 1px 3px rgba(20, 33, 61, .12), 0 0 0 1px rgba(68, 251, 223, .45); }
.tabs button.active svg, .ws-nav button.active svg { color: #14213d; }
.tabs button.active .n, .ws-nav button.active .n:not(.bad) { background: rgba(255, 255, 255, .6); color: #14213d; }
:root[data-theme="dark"] .tabs button.active, :root[data-theme="dark"] .ws-nav .ws-mains button.active { color: #14213d; }
.ws-nav .ws-subs button.active, .ws-nav .ws-subs button.active svg { color: var(--text); }
.ws-nav .ws-subs button.active { background: none; box-shadow: inset 0 -2px 0 var(--text); }

/* Only the WCP logo sits on a dark grey panel that fills the start of the top bar; "Client Partnerships" stays on the light bar */
.gnav-logo.wcp { margin: 0 22px 0 -18px; gap: 16px; }
.gnav-logo.wcp img { box-sizing: content-box; height: 30px; padding: 16px 24px; background: #2b2e33; border-radius: 21px 14px 14px 21px; }
/* "Enterprise" sits under the logo, inside the dark panel: WCP is built for enterprise-level clients */
.gnav-logo.wcp .wcp-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-sizing: border-box; height: 62px; padding: 0 24px; background: #2b2e33; border-radius: 21px 14px 14px 21px; }
.gnav-logo.wcp .wcp-mark img { height: 26px; padding: 0; background: none; border-radius: 0; }
.gnav-logo.wcp .wcp-mark small { font-size: 8.5px; line-height: 1; font-weight: 700; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: #c9ced4; }

/* The chosen main-menu pill (Brands, Blog, Admin) takes the same subtle lime as the workspace group chips */
.gnav-link.active, .gnav-item.has-active > .gnav-link { background: #e6fbb0; color: #14213d; box-shadow: 0 1px 3px rgba(20, 33, 61, .12), 0 0 0 1px rgba(20, 33, 61, .06); }
.gnav-link.active svg, .gnav-item.has-active > .gnav-link svg { color: #14213d; }
:root[data-theme="dark"] .gnav-link.active, :root[data-theme="dark"] .gnav-item.has-active > .gnav-link { background: #e6fbb0; color: #14213d; }

/* ---------- Mailbox shortcut in the top bar (phones and tablets) ----------
   On desktop the Mailbox tab is in the menu row; once the menu folds behind the burger, this button takes its place. */
.gnav .icon-btn.mailbtn { display: none; position: relative; flex: none; text-decoration: none; }
.gnav .icon-btn.mailbtn .count { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.gnav .icon-btn.mailbtn.active { background: var(--wd-teal); border: 1px solid #44fbdf; color: #14213d; }
:root[data-theme="dark"] .gnav .icon-btn.mailbtn.active { background: rgba(68, 251, 223, .14); border-color: rgba(68, 251, 223, .55); color: #e6f8f4; }   /* the same tint, kept quiet on the dark bar */
@media (max-width: 1080px) { .gnav .icon-btn.mailbtn { display: inline-grid; } }

/* ---------- Help button in the top bar (15 Nov 2026) ---------- */
/* The manual opens in a new tab: a small, quiet arrow at the end of the row says so */
.gnav-drop a#help-manual > svg.lucide:last-child { width: 13px; height: 13px; margin-left: auto; flex: none; color: var(--muted); opacity: .75; }
.gnav-drop a#help-manual:hover > svg.lucide:last-child { opacity: 1; }
/* Phones and tablets: the menus on the right of the bar (reminders, help, profile) open as cards under the bar,
   not inline beside their button, where they ran off the right edge of the screen. The burger menu's groups stay inline. */
@media (max-width: 1080px) {
  .gnav-right .gnav-item { position: relative; }
  .gnav-right .gnav-drop { position: absolute; top: calc(100% + 10px); left: auto; right: 0; z-index: 60; text-align: left; min-width: 230px; max-width: calc(100vw - 20px);
    padding: 6px; border: 1px solid var(--card-border, var(--border)); border-radius: 16px; background: var(--card); box-shadow: var(--elev-3); }
}
@media (max-width: 640px) {
  /* hung from the bar itself, so a card never starts left of the screen whichever button opened it */
  .gnav-in { position: relative; }
  .gnav-right .gnav-item { position: static; }
  .gnav-right .gnav-drop { top: calc(100% + 8px); right: 0; }
}

/* ---------- Top bar on two rows (21 Nov 2026) ----------
   Desktop (above 1080px): row 1 is the logo, the "Client Partnerships / AI enabled" wordmark, search and the round
   buttons; row 2 is the main menu on its own, so adding a menu item never squeezes or hides anything.
   Phones and tablets keep the one-row bar with the burger menu (mobile.css and the 1080px rules above). */
@media (min-width: 1081px) {
  :root { --nav-h: 138px; }                                        /* sticky brand header sits under the taller bar */
  .gnav-in {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 62px auto; align-items: center;
    height: auto; padding: 0 14px 0 18px; column-gap: 12px; row-gap: 8px;
  }
  .gnav-logo.wcp { grid-column: 1; grid-row: 1; margin: 0 0 0 -18px; }
  /* the wordmark always shows on desktop now: row 1 has room for it (am.css hid it to make space for the menu) */
  .gnav-logo.wcp span { display: inline-block; white-space: nowrap; }
  .gnav-logo.wcp span:has(.ai-on) { display: flex; }
  .gnav-right { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
  .gnav .search { flex: 0 1 320px; width: auto; min-width: 160px; max-width: none; height: 38px; }
  .gnav .search input { width: 100%; min-width: 0; }
  .gnav .icon-btn { flex: none; }
  .gnav-menu {
    grid-column: 1 / -1; grid-row: 2; justify-self: start; flex-wrap: wrap; max-width: 100%;
    margin: 0 0 10px -4px; padding: 4px; border-radius: 22px;
  }
  .gnav-link { height: 34px; padding: 0 14px; font-size: 14px; }
}
@media (min-width: 1081px) and (max-width: 1320px) {
  .gnav-link { padding: 0 10px; font-size: 13.5px; }
}

