/* app.css -- shell chrome + screen primitives. NOT brand-swappable (see tokens.css).
   Calibrated to Mindmatrix (mindmatrix.net brand) + the real Bridge partner portal.
   HARD RULES: no text-transform:uppercase; deep-navy brand gradients, not purple. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--chrome-text);
  background: var(--chrome-page);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
h1, h2, h3, h4, .font-display { font-family: var(--font-display); }
/* banners use the brand font (Poppins); all other UI uses the system font (Segoe UI) */
.welcome h2, .banner-card h3, .banner-card h4, .promo-card .t, .pys-banner h3, .contact-col .ch, .contact-name { font-family: var(--font-banner); }
.boot { padding: 40px; color: var(--chrome-text-muted); }
a { color: inherit; }

/* ---------- frame: top nav + content ---------- */
#app { height: 100%; }
.frame { display: grid; grid-template-rows: 62px 1fr; height: 100vh; }
body.no-chrome .frame { grid-template-rows: 1fr; }
body.no-chrome .topbar { display: none; }

/* ---------- top navigation bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 26px; padding: 0 26px;
  background: var(--chrome-bg); border-bottom: 1px solid var(--chrome-border-soft);
  box-shadow: 0 1px 3px rgba(10,8,59,.05); position: relative; z-index: 50;
}
.topbar .logo { width: 158px; height: 42px; flex: none; background: var(--brand-logo) left center / contain no-repeat; }
.mainnav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
/* measured off the real (dashboard capture 2026-07-01): 14px/400 #2f3542, pad 5x10, radius 5;
   ACTIVE (and open-mega) = brand text on a 10% brand-tint pill -- the real "outline" */
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font: inherit; font-size: 14px; font-weight: 400; color: #23272f;
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
  padding: 7px 10px; border-radius: 5px; white-space: nowrap; line-height: 1;
  transition: color .2s linear, background .2s linear;
}
.nav-link:hover { color: var(--brand-primary); } /* hover = text color only (Josh) */
.nav-link:focus, .nav-link:focus-visible { outline: none; box-shadow: none; }
.nav-item.active > .nav-link { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, transparent); } /* real a.active */
.nav-link .caret { display: none; } /* NO arrows on any nav item (Josh round 2) */
.dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--chrome-border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(10,8,59,.16); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .14s ease;
}
.dd.dd-right { left: auto; right: 0; }
/* the avatar profile popover opens on CLICK (.open toggled in mountShell), NOT hover, and closes
   on hover-away/click-away/Esc (Josh 2026-07-03). .has-dd is the avatar only; mega uses .has-mega. */
.nav-item.has-dd.open .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--chrome-text); text-decoration: none; }
.dd-item:hover { background: var(--chrome-surface-alt); color: var(--brand-primary-dark); }
.dd-head { display: flex; align-items: center; gap: 11px; padding: 10px 12px 12px; border-bottom: 1px solid var(--chrome-border-soft); margin-bottom: 5px; }
.dd-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.dd-avatar.dd-mono { background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.dd-who b { display: block; font-weight: 600; font-size: 14px; color: var(--chrome-text); font-family: var(--font-display); }
.dd-who span { display: block; font-weight: 400; font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 2px; }
.dd-sep { height: 1px; background: var(--chrome-border-soft); margin: 5px 8px; }
.dd-logout { color: var(--chrome-text-muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ic-btn { background: transparent; border: 0; color: #4b5563; cursor: pointer; display: inline-flex; padding: 7px; border-radius: 8px; }
.ic-btn:hover { background: var(--chrome-surface-alt); color: var(--brand-primary); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; overflow: hidden;
  background: var(--brand-primary) center / cover no-repeat; color: #fff; font: inherit; font-weight: 600; font-size: 13px;
  display: grid; place-items: center; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-item.user { margin-left: 2px; }

/* ---------- mega menu -- replicates the real Bridge: HOVER-open panel (stays open until
   click-away/Esc/navigate; measured 2026-07-01), breadcrumb folder drill-in over PRE-RENDERED
   levels, a flex-wrap grid of 200x65 item cards (real menu-item-wrap: 200x65 measured) ---------- */
.nav-item.has-mega { position: static; } /* so .mega anchors to the .topbar, not the narrow item */
.nav-link[data-mega] { display: inline-flex; align-items: center; gap: 6px; }
.nav-link[data-mega] svg { opacity: .6; }
.nav-item.has-mega.open > .nav-link { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, transparent); } /* open mega = same pill as active (real) */
.mega {
  position: absolute; top: 100%; left: 150px; width: 1200px; max-width: calc(100vw - 180px);
  background: #fff; border: 1px solid var(--chrome-border); border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 44px rgba(10,8,59,.16); padding: 0 20px 20px; z-index: 60; display: none;
}
.mega.open { display: block; }
/* breadcrumb (real .breadcrumb: margin 26 0 20 10, 13px) -- the folder path you drilled */
.mega-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; list-style: none; margin: 22px 0 16px 6px; padding: 0; font-size: 13px; }
.mega-bc li { display: flex; align-items: center; gap: 7px; }
.mega-bc a { color: var(--brand-primary); cursor: pointer; }
.mega-bc a:hover { text-decoration: underline; }
.mega-bc .cur { color: var(--chrome-text); font-weight: 600; }
.mega-bc .sep { color: var(--chrome-text-faint); display: inline-flex; }
/* pre-rendered drill-in levels: all in the DOM (like the real .sub-menu-list), one visible */
.mega-level { display: none; }
.mega-level.cur { display: block; }
/* grid of equal item cards, left-to-right, wrapping (real sub-menu-list = flex, items 200x65) */
/* real panel pitch: cards at x202/434/666/898... = 200px cards on a 232px pitch -> 32px gaps
   (captured control rects); ours were butted edge-to-edge -- too crammed (Josh 2026-07-02) */
.mega-grid { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.mega-card { width: 200px; height: 65px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; color: #23272f; font: inherit; text-decoration: none; }
.mega-card:hover { background: var(--chrome-surface-alt); }
/* icon circle 45px, bg #f1f2f6; icon dark part matches label text weight (real: both #2f3542 --
   ours was #77889a, read as washed-out light grey next to the text -- Josh 2026-07-03) */
.mega-card .mega-ic { width: 45px; height: 45px; border-radius: 50%; background: #f1f2f6; display: grid; place-items: center; color: #23272f; flex: none; }
.mega-card:hover .mega-ic { background: #fff; color: var(--brand-primary); }
/* FOLDER cards: 10% brand-tint background + half-white icon circle + "+" end glyph (real) */
.mega-card.folder { background: color-mix(in srgb, var(--brand-primary) 10%, transparent); }
.mega-card.folder .mega-ic { background: rgba(255,255,255,.55); }
.mega-card.folder:hover { background: color-mix(in srgb, var(--brand-primary) 16%, transparent); }
.mega-plus { margin-left: auto; flex: none; font-size: 17px; font-weight: 400; color: #23272f; opacity: .55; line-height: 1; }
.mega-cardname { flex: 1; font-size: 13px; line-height: 1.25; }
@media (max-width: 1024px) { .mega { display: none !important; } } /* mobile nav is a separate concern */

.content { overflow-y: auto; background: var(--chrome-page); }

/* ============================================================
   LOADER (shown briefly after login -- the portal isn't instant)
   ============================================================ */
.loader-screen { position: fixed; inset: 0; background: var(--chrome-page); display: grid; place-items: center; z-index: 200; }
.spinner { width: 58px; height: 58px; border-radius: 50%; border: 5px solid #d7dbe6; border-top-color: var(--brand-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* staggered reveal on dashboard load (tiering first, then the banner content) */
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rv { animation: reveal .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .rv { animation: none; } }

/* register --p as a typed number so JS changes to it repaint the donut conic-gradient
   (the donut grow-in is driven from dashboard.js growDonuts) */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* profile widgets + next-level icon "pop" in (scale up) */
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.pop { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
/* orange "% to next level" bar fills left -> right on load */
@keyframes grow-bar { from { width: 0; } }
.pp-next .bar > i { animation: grow-bar 1s cubic-bezier(.2,.7,.2,1) .6s both; }
@media (prefers-reduced-motion: reduce) { .pop, .pp-next .bar > i { animation: none; } }

/* ============================================================
   LOGIN
   ============================================================ */
/* proportions measured from the source frame (refs/.../0042_login): white panel ~31%,
   logo ~24% of viewport, form ~435px, fields ~50px, full-width navy Login button. */
/* measured off the real /login (2026-07-01): 485px white panel; small logo TOP-LEFT; title +
   "Login to Your Account" subtitle in the BRAND color; no field labels (placeholders) */
.login { display: grid; grid-template-columns: 485px 1fr; height: 100vh; }
.login .left { background: #fff; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 40px 56px 75px; }
.login .brand-logo { position: absolute; top: 58px; left: 75px; width: 210px; height: 56px; background: var(--brand-logo) left center / contain no-repeat; }
.login .form-wrap { width: 345px; max-width: 100%; }
.login h1 { font-size: 28px; font-weight: 600; margin: 0 0 30px; color: var(--brand-primary); }
.login .lg-sub { font-size: 14px; color: var(--brand-primary); margin: 0 0 14px; }
.login .field { position: relative; margin-bottom: 14px; }
.login input[type=text], .login input[type=password] {
  width: 100%; height: 50px; border: 1px solid #d6def0; border-radius: 8px;
  padding: 0 16px; font: inherit; font-size: 15px; background: #eef2fb;
}
.login input:focus { outline: 2px solid var(--brand-primary-soft); border-color: var(--brand-primary); }
.login .field .eye { position: absolute; right: 14px; top: 15px; color: var(--chrome-text-faint); cursor: pointer; }
.login .row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.login .row label { margin: 0; display: flex; align-items: center; gap: 8px; color: #4b5563; }
.login .row a { color: var(--brand-link); text-decoration: none; }
.login .btn-login { width: 100%; height: 43px; margin: 28px 0 0; justify-content: center; font-size: 16px; font-weight: 500; background: var(--brand-primary); border-radius: 6px; padding: 9px 16px 10px; } /* real (probed 2026-07-02): 345x43, r6, 16px/500 */
.login .btn-login:hover { background: var(--brand-primary-dark); }
.login .request { text-align: right; margin-top: 80px; font-size: 14px; }
.login .request a { color: var(--brand-link); text-decoration: none; font-weight: 500; }
/* demo-only admin shortcut (login.js) -- muted + small, reads as tooling not real Bridge chrome */
.login .request.admin-switch { margin-top: 10px; font-size: 12px; }
.login .request.admin-switch a { color: var(--chrome-text-faint); font-weight: 400; }
.login .request.admin-switch a:hover { color: var(--brand-link); }
.login .right {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: var(--brand-navy-1);
  background-image:
    radial-gradient(900px 620px at 50% 8%, var(--brand-glow), transparent 62%),
    linear-gradient(160deg, var(--brand-navy-1) 0%, var(--brand-navy-2) 100%);
}
.login .right .hero-shot { width: 80%; max-width: 760px; border-radius: 14px; box-shadow: 0 34px 90px rgba(0,0,0,.5); position: relative; z-index: 1; }
.login .right .tag { position: absolute; bottom: 8%; color: rgba(255,255,255,.8); font-size: 15px; letter-spacing: .04em; z-index: 1; }
.login .right .dots-bg { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.4px); background-size: 26px 26px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { min-height: 100%; }

/* first screenful: band grows so the Partner Progress widget bottom lands near the
   viewport bottom (with padding) and the promo banner falls BELOW the fold. 62px = nav. */
.fold { display: contents; }  /* compact banner per Josh -- no viewport-fill */

/* welcome band (deep-navy + central blue glow, like mindmatrix.net) */
.band {
  position: relative; padding: 18px 30px 18px;
  display: flex; flex-direction: column;
  background: var(--brand-navy-1);
  background-image:
    radial-gradient(1100px 560px at 50% -22%, var(--brand-glow), transparent 60%),
    linear-gradient(160deg, var(--brand-navy-1) 0%, var(--brand-navy-2) 100%);
}

/* identity strip */
.identity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.id-card { background: #fff; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; min-height: 86px; position: relative; }
.id-card .pic { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--brand-primary-soft); flex: none; }
.id-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.id-card .plogo { height: 28px; max-width: 122px; object-fit: contain; flex: none; }
.id-main, .id-cm, .id-prof { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.id-name { font-size: 15.5px; font-weight: 700; color: #111827; font-family: var(--font-display); display: flex; align-items: center; gap: 7px; }
.id-cm .id-name { font-size: 14.5px; }
.id-role { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-sep { width: 1px; align-self: stretch; background: var(--chrome-border); margin: 4px 4px; }
.id-card .lbl { font-size: 12px; color: var(--chrome-text-faint); display: flex; align-items: center; gap: 5px; }
.id-meta .val { font-size: 14px; color: #374151; margin-top: 3px; }
.pencil { color: var(--brand-primary); display: inline-flex; cursor: pointer; }
.profbar { height: 6px; border-radius: 4px; background: var(--chrome-surface-alt); overflow: hidden; margin: 9px 0 5px; }
.profbar > i { display: block; height: 100%; background: var(--brand-primary); border-radius: 4px; }
.profpct { font-size: 13px; font-weight: 700; color: #374151; }

/* welcome carousel -- the slide-track translates so slides slide in from the side
   (in from the right going forward, in from the left going back). */
.carousel { margin-top: 22px; overflow-x: clip; overflow-y: visible; }
.slide-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 0; }
/* 3-col grid matches the identity strip above (gap 16): welcome text spans cols 1-2,
   the promo card sits in col 3 so it's the SAME width as the widget above it (Josh). */
.welcome-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.welcome-row .welcome { grid-column: 1 / 3; align-self: stretch; display: flex; align-items: center; gap: 36px; }
.welcome-copy { flex: none; max-width: 540px; }
.welcome-art { width: 300px; max-height: 230px; object-fit: contain; border-radius: 12px; box-shadow: 0 22px 55px rgba(0,0,0,.42); margin-left: auto; }
.welcome-row .promo-card { grid-column: 3; }
.welcome h2 { color: #fff; font-weight: 400; font-size: 28px; margin: 0; line-height: 1.25; }
.welcome h2.welcome-hi { font-size: 23px; font-weight: 400; color: rgba(255,255,255,.72); margin-bottom: 2px; }
.welcome h2 b { font-weight: 800; color: #8db4ff; }  /* same light blue as "Ecosystem" */
.welcome p { color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.5; margin: 14px 0 0; max-width: 640px; }
/* slide-1 Bridge card + slide-2 ecosystem cards share a roomy layout:
   title (top) -> [badge/rocket left + body right] -> button (bottom-right). */
.promo-card, .banner-card:not(.lead-card) {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 16px;
  padding: 32px 30px; color: #fff; display: flex; flex-direction: column; min-height: 270px;
}
.promo-card .pc-t, .banner-card h4 { margin: 0 0 18px; font-size: 19px; font-weight: 700; color: #fff; }
.pc-body, .bc-body { display: flex; align-items: center; gap: 24px; flex: 1; }
.promo-card .pc-gif { width: 72px; height: 72px; flex: none; }
.bc-badge { width: 100px; height: 100px; object-fit: contain; flex: none; }
.pc-d, .banner-card .bc-body p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.55; margin: 0; }
.pc-cta, .banner-card .bc-cta { margin-top: 20px; align-self: flex-end; }
/* widget-header CTAs (Deals "Register a New Deal" + MDF "Create Request") match the .select
   stage dropdown height (36px) to their left (Josh 2026-06-28) */
.wgt-cta { height: 36px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }

/* "new version available" toast (open-tab staleness warning). Non-native, on-brand, smooth. */
.refresh-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%); z-index: 9999; display: flex; align-items: center; gap: 14px; background: var(--brand-navy-2, #082471); color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(10,8,59,.28); font-size: 14px; opacity: 0; transition: transform .25s ease-out, opacity .25s ease-out; }
.refresh-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.refresh-toast .rt-btn { background: #fff; color: var(--brand-primary-dark, #2456c0); border: 0; border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.refresh-toast .rt-x { background: transparent; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .refresh-toast { transition: opacity .2s; } }

/* Section-load skeleton + content fade-in -- replicates the real Bridge skeleton-wrapper/fa-spin
   load feel so the clone reads as a real (slightly latent) app, not an instant static page. */
.screen-skel { padding: 2px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef0f2 25%, #e2e6ea 37%, #eef0f2 63%); background-size: 400% 100%; animation: skShimmer 1.4s ease infinite; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-head { margin-bottom: 22px; } .sk-title { height: 26px; width: 280px; }
.sk-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.sk-pill { height: 36px; width: 150px; border-radius: 999px; } .sk-grow { flex: 1; height: 36px; border-radius: 999px; } .sk-btn { height: 36px; width: 120px; border-radius: 999px; }
.sk-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; } .sk-card { height: 150px; }
.sk-rows { display: flex; flex-direction: column; gap: 12px; } .sk-row { height: 44px; }
.sk-spin { display: flex; justify-content: center; padding: 26px 0 6px; }
.sk-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--brand-primary-soft, #e7eefc); border-top-color: var(--brand-primary, #346fe2); animation: skSpin .7s linear infinite; }
@keyframes skSpin { to { transform: rotate(360deg); } }
.screen-enter { animation: screenIn .34s ease-out both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .sk-spinner { animation-duration: 1.4s; } .screen-enter { animation: none; } }
@media (max-width: 900px) { .sk-cards { grid-template-columns: repeat(2, 1fr); } }

/* Bridge-style modal (modal.js) -- near-fullscreen, MM-blue header, grey backdrop, spinner then
   content. Matches the real "ift" Register-a-Deal / deal-detail modals. */
.mm-backdrop { position:fixed; inset:0; background:rgba(40,44,54,.5); z-index:1040; opacity:0; transition:opacity .2s; }
.mm-backdrop.in { opacity:1; }
.mm-modal { position:fixed; top:10px; left:10px; right:10px; margin:0 auto; max-width:1420px; max-height:calc(100vh - 20px); background:#f4f5f7; border-radius:10px; z-index:1100; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 24px 70px rgba(10,8,59,.32); opacity:0; transform:translateY(-10px); transition:opacity .2s ease-out, transform .2s ease-out; }
.mm-modal.in { opacity:1; transform:none; }
.mm-modal-head { flex:none; height:60px; padding:0 4px 0 20px; background:var(--brand-primary,#346fe2); color:#fff; display:flex; align-items:center; justify-content:space-between; }
.mm-modal-title { font-size:16px; font-weight:600; }
.mm-modal-x { height:60px; width:56px; background:transparent; border:0; border-left:1px solid rgba(255,255,255,.28); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.mm-modal-x:hover { background:rgba(255,255,255,.1); }
.mm-modal-body { flex:1; overflow:auto; padding:26px 30px; }
.mm-modal-loading, .screen-loading, .dreg-loading { display:flex; align-items:center; justify-content:center; min-height:340px; }
.mm-spinner { width:40px; height:40px; border-radius:50%; border:4px solid var(--brand-primary-soft,#e7eefc); border-top-color:var(--brand-primary,#346fe2); animation:skSpin .7s linear infinite; }

/* ---------- SKELETON page loading (the real Bridge pattern: .skeleton-wrapper placeholder
   wireframes per section while a route loads -- NOT a centered spinner; measured 2026-07-01,
   experience oracle P1). Shimmer blocks approximate the incoming layout. ---------- */
.screen-skeleton { padding: 22px 26px; }
/* the real loading treatment: centered brand ring spinner (Josh 2026-07-02) */
.spin-stage { display: flex; align-items: center; justify-content: center; min-height: 340px; }
.mm-spinner { width: 52px; height: 52px; border-radius: 50%; border: 5px solid #dbe4f3; border-top-color: var(--brand-primary); animation: mmSpin .9s linear infinite; display: inline-block; }
.mm-spinner.sm { width: 34px; height: 34px; border-width: 4px; }
@keyframes mmSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mm-spinner { animation-duration: 2.5s; } }
.skeleton-block { border-radius: 10px; background: linear-gradient(90deg, #eceff3 25%, #f6f7f9 42%, #eceff3 60%); background-size: 400% 100%; animation: skShimmer 1.3s ease-in-out infinite; }
.skeleton-hero { height: 132px; margin-bottom: 22px; }
.skeleton-row { display: flex; gap: 20px; margin-bottom: 22px; }
.skeleton-card { flex: 1; height: 210px; }
.skeleton-line { height: 14px; margin-bottom: 12px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-table { height: 260px; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.dreg-loading .mm-spinner { width:30px; height:30px; border-width:3px; }
body.mm-modal-open { overflow:hidden; }

/* deal form + record (rendered into the modal by deals.js; shared by widget + page) */
.dform-sub { color:var(--chrome-text-muted,#6b7280); font-size:13px; margin:0 0 18px; }
.dform-sub .rq, .dfield label .rq { color:var(--brand-accent,#ff671d); }
.dform-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 22px; }
.dfield { display:flex; flex-direction:column; gap:6px; } .dfield.full { grid-column:1/-1; }
.dfield label { font-size:12.5px; color:var(--chrome-text-muted,#6b7280); font-weight:500; }
.dfield input, .dfield select, .dfield textarea { font:inherit; font-size:14px; padding:9px 12px; border:1px solid var(--chrome-border,#e5e7eb); border-radius:9px; background:#fff; color:var(--chrome-text,#1f2430); }
.dfield textarea { resize:vertical; min-height:74px; }
.dfield input:focus, .dfield select:focus, .dfield textarea:focus { outline:none; border-color:var(--brand-primary,#346fe2); box-shadow:0 0 0 3px var(--brand-primary-soft,#e7eefc); }
.dfield .dferr { display:none; color:#b42318; font-size:12px; }
.dfield.invalid input, .dfield.invalid select { border-color:#d98a8a; } .dfield.invalid .dferr { display:block; }
.dform-bar { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid var(--chrome-border-soft,#eef0f2); }
.drec-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.drec-head h3 { margin:0; font-size:18px; }
.drec-kv { display:grid; grid-template-columns:1fr 1fr; gap:14px 28px; }
.dkv { display:flex; flex-direction:column; gap:3px; } .dkv.full { grid-column:1/-1; }
.dkv .k { font-size:12px; color:var(--chrome-text-muted,#6b7280); } .dkv .v { font-size:14.5px; color:var(--chrome-text,#1f2430); }
.pill { display:inline-flex; align-items:center; padding:4px 11px; border-radius:999px; font-size:12.5px; font-weight:600; }
.pill.Pending { background:#fff5e6; color:#b76e00; } .pill.Approved { background:#e7f6ec; color:#1a7f37; } .pill.Rejected { background:#eef0f2; color:#6b7280; } .pill.Opportunities { background:var(--brand-primary-soft,#e7eefc); color:var(--brand-primary-dark,#2456c0); }
.deal-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(140%); z-index:9999; display:flex; align-items:center; gap:10px; background:#0f7a3d; color:#fff; padding:12px 18px; border-radius:12px; box-shadow:0 12px 30px rgba(10,8,59,.25); font-size:14px; opacity:0; transition:transform .25s ease-out, opacity .25s ease-out; }
.deal-toast.show { transform:translateX(-50%) translateY(0); opacity:1; }
.dreg-table tr.clickable, .deal-wtable tr.clickable { cursor:pointer; }
.dreg-table tr.clickable:hover, .deal-wtable tr.clickable:hover { background:var(--brand-primary-soft,#e7eefc); }
.deal-empty { padding:54px 0; text-align:center; color:var(--chrome-text-muted,#6b7280); }
@media (max-width:760px){ .dform-grid, .drec-kv { grid-template-columns:1fr; } }

/* slow floating badges, opposite directions (Josh); respect reduced motion */
@keyframes floatUpDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatDownUp { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
.floatA { animation: floatUpDown 4.6s ease-in-out infinite; }
.floatB { animation: floatDownUp 4.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .floatA, .floatB { animation: none; } }
.banner-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.banner-card.lead-card { background: transparent; border: 0; padding: 8px 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.banner-card.lead-card h3 { font-size: 28px; font-weight: 800; margin: 0 0 10px; line-height: 1.2; }
.banner-card.lead-card h3 b { color: #8db4ff; }
.banner-card.lead-card p { color: rgba(255,255,255,.8); font-size: 13.5px; line-height: 1.55; margin: 0; }
.dots { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(50%); display: flex; gap: 9px; justify-content: center; z-index: 3; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }

/* dashboard main (tabs + panels) */
.dash-main { padding: 16px 30px 28px; flex: none; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--chrome-border); margin-bottom: 22px; }
.tab { position: relative; background: transparent; border: 0; font: inherit; font-size: 14px; color: var(--chrome-text-muted); padding: 10px 14px 12px; cursor: pointer; }
.tab:hover { color: var(--chrome-text); }
.tab.on { color: var(--brand-primary-dark); font-weight: 600; }
/* active underline is left-aligned (under the text), not centered on the full tab (Josh) */
/* underline left-aligned + a little longer than the text above it (Josh) */
.tab.on::after { content: ''; position: absolute; left: 13px; bottom: -1px; height: 2.5px; width: calc(100% - 20px); background: var(--brand-primary); border-radius: 2px; }

/* generic cards */
.card { background: #fff; border: 1px solid var(--chrome-border); border-radius: 12px; }
.card .hd { padding: 14px 20px; border-bottom: 1px solid var(--chrome-border-soft); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.card .hd .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); }
.card .bd { padding: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: stretch; }
.grid-2 > * { min-width: 0; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* tiering: left + right equal height (Josh) */
.split { display: grid; grid-template-columns: 2.4fr 1fr; gap: 20px; align-items: stretch; }
.split > .card { height: 100%; display: flex; flex-direction: column; }
.split > .card .bd { flex: 1; }

/* Partner Progress -- current level (left): tall grey goal boxes with the donut +
   label + fraction stacked INSIDE each box (matches the source). */
.pp-current .hd, .pp-next .hd { font-size: 16px; align-items: center; }
.hd-l { display: flex; align-items: center; gap: 12px; }
.pp-current .hd .goals { font-size: 13.5px; font-weight: 400; color: #3b4250; display: flex; align-items: center; gap: 8px; }
.pp-next .hd .right { display: inline-flex; }
.level-pill { font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 999px; border: 1px solid #c9ced9; color: #5b6472; background: #fff; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gbox { background: #f4f5f8; border-radius: 14px; padding: 34px 16px 30px; text-align: center; }
.donut { width: 176px; height: 176px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--brand-primary) 0 calc(var(--p) * 1%), #e1e4ec 0 100%); }
.donut.gray { background: conic-gradient(#cfd3dd 0 calc(var(--p) * 1%), #e1e4ec 0 100%); }
.donut span { width: 138px; height: 138px; border-radius: 50%; background: #f4f5f8; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .pct { font-size: 30px; font-weight: 400; color: #2b3140; font-family: var(--font-display); line-height: 1; }
.donut .cap { font-size: 13px; color: var(--chrome-text-muted); margin-top: 3px; }
.gname { font-size: 15px; color: #7a8aa0; margin-top: 26px; }
.gfrac { font-size: 16px; color: #2b3140; margin-top: 8px; font-weight: 500; }
.gfrac .den { color: var(--chrome-text-faint); }

/* Partner Progress -- next level (right): content sits in a grey box (Josh) */
.pp-next .bd { display: flex; flex-direction: column; }
.nl-box { background: #f4f5f8; border-radius: 14px; padding: 24px; flex: 1; display: flex; flex-direction: column; }
.lvl-icon { width: 50px; height: 50px; border: 1px solid var(--chrome-border); border-radius: 10px; padding: 9px; display: grid; place-items: center; background: #fff; }
.lvl-icon img { width: 100%; height: 100%; object-fit: contain; }
.nl-div { height: 1px; background: #e1e4ec; margin: 18px 0; }
.nl-text { font-size: 16px; color: #3b4250; }
.bar { height: 9px; border-radius: 6px; background: #e1e4ec; overflow: hidden; margin: 13px 0 6px; }
.bar > i { display: block; height: 100%; background: var(--brand-primary); border-radius: 6px; }
.pp-next .bar > i { background: var(--brand-accent); }  /* MM orange for "% to next level" (Josh) */
.nl-pct { font-size: 14px; color: var(--chrome-text-muted); text-align: center; }
.nl-bene { font-weight: 600; font-size: 17px; margin: 20px 0 8px; }
.benefits-scroll { font-size: 14.5px; color: #4b5563; line-height: 1.55; max-height: 92px; overflow-y: auto; padding-right: 10px; }
.benefits-scroll::-webkit-scrollbar { width: 8px; }
.benefits-scroll::-webkit-scrollbar-thumb { background: #cbd2dd; border-radius: 4px; }
.benefits-scroll::-webkit-scrollbar-track { background: transparent; }
.muted { color: var(--chrome-text-muted); }

/* data tables */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 11px 14px; color: var(--chrome-text-muted); font-weight: 600; font-size: 12.5px; background: #d9dfe6; border-bottom: 0; }
table.data td { padding: 13px 14px; background: #f5f6f8; border-bottom: 2px solid #fff; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #eef0f3; }
/* dashboard list tables: inset with side space, darker header bar, grey rows, horizontal scroll + record count (matches real) */
.tbl-wrap { padding: 4px 16px 14px; }
.table-scroll { overflow-x: auto; }
.table-scroll table.data.wide { min-width: 1600px; }
.table-scroll table.data th, .table-scroll table.data td { white-space: nowrap; }
.tbl-foot { padding: 12px 2px 0; font-size: 12.5px; color: var(--chrome-text-faint); }
/* MDF widget request rows -- measured off the real Bridge #inbox-table (2026-07-03): row
   h 64px (cell padding 10/15, font-size 13, line-height 20 -- real rows also 2-line-wrap
   long activity text, ours stays single-line/nowrap by design so padding is bumped to land
   the same ~64px roominess Josh flagged as "too close together"). Hover = the WHOLE row
   turns the brand-primary color with white text (real: primarybackcolor #116ccf forced via
   `.w-deal-opp #inbox-table tr:hover > td`, not a subtle grey) -- higher specificity than
   the #tabpanel .data tbody tr td base rule below so it actually fires. Scoped to .wide only
   (the MDF table); the Deals widget's .deal-wtable is untouched. */
#tabpanel table.data.wide td { padding: 21px 15px; font-size: 13px; line-height: 20px; background: #f3f4f6; }
#tabpanel table.data.wide tr.clickable:hover td { background: var(--brand-primary); color: #fff; }
#tabpanel table.data.wide tr.clickable:hover td strong { color: #fff; }
/* ---------- campaign PLAYBOOK (#internalplaybook/<id>?campaign=true) -- the real campaign
   detail (captured 2026-07-01): breadcrumb, hero (thumb+title+desc | big % + steps bar),
   channel rail (active solid blue, green check when complete), step panel w/ OR-chip assets */
.pb-page { padding: 18px 53px 50px; font-size: 13px; } /* real gutter 53 + 13px base @1920 */
.pb-bc { font-size: 13.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--chrome-text); }
.pb-bc a { color: var(--brand-link); cursor: pointer; }
.pb-bc .sep { color: var(--chrome-text-faint); display: inline-flex; }
.pb-hero { display: flex; align-items: stretch; gap: 24px; padding: 10px 16px 10px 10px; min-height: 170px; box-sizing: border-box; border-radius: 10px; margin-bottom: 20px; }
.pb-hero-main { display: flex; gap: 22px; flex: 1; min-width: 0; }
.pb-thumb { width: 187px; height: 150px; border-radius: 5px; background: var(--chrome-surface-alt) center / cover no-repeat; flex: none; }
.pb-title { font-size: 24px; font-weight: 500; color: var(--chrome-text); margin: 2px 0 10px; font-family: var(--font-display); } /* real h2.playbookname measured 24px/500 (Josh 2026-07-03: title read too heavy at 700) */
.pb-desc { font-size: 13.5px; color: var(--chrome-text-muted); line-height: 1.6; max-width: 880px; margin: 0; }
.pb-hero-right { border-left: 1px solid var(--chrome-border-soft); padding-left: 26px; min-width: 220px; display: flex; flex-direction: column; align-items: flex-start; }
.pb-min { margin-left: auto; font-size: 12.5px; color: var(--brand-link); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pb-pct { color: var(--chrome-text); line-height: 1; margin: 6px 0 4px; }
.pb-pct b { font-size: 40px; font-weight: 300; } /* real span.count-no.np-percent measured 40px/300 (Josh 2026-07-03: number read too heavy at 44/700) */
.pb-pct span { font-size: 16px; color: var(--chrome-text-muted); margin-left: 3px; }
.pb-steps-lbl { font-size: 12.5px; color: var(--chrome-text-muted); margin-bottom: 7px; }
.pb-bar { width: 130px; height: 7px; border-radius: 999px; background: var(--chrome-border); overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.pb-body { display: grid; grid-template-columns: 434px 1fr; gap: 26px; align-items: start; }
.pb-rail { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 1px 4px rgba(20,30,50,.06); align-self: start; }
.pb-ch { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 13px; background: transparent; border: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; background-clip: padding-box; border-radius: 5px; height: 76px; margin: 0; padding: 16px 35px 16px 10px; box-sizing: border-box; cursor: pointer; }
.pb-ch .pb-ch-main { flex: 1; min-width: 0; }
.pb-ch .pb-ch-name { display: block; font-size: 15px; font-weight: 500; color: var(--chrome-text); margin-bottom: 5px; }
.pb-ch .pb-ch-sub { display: block; font-size: 13px; color: #778899; }
.pb-ch .pb-check { color: var(--ok); display: inline-flex; flex: none; }
.pb-ch .pb-check svg circle { fill: #1bc469; } /* real badge green (measured), incl. on the active row */
.pb-ch.on { background: var(--brand-primary); border-color: var(--brand-primary); }
.pb-ch.on .pb-ch-name, .pb-ch.on .pb-ch-sub { color: #fff; }

.pb-step { padding: 0; border-radius: 10px; }
.pb-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--chrome-border-soft); padding: 20px 20px 14px; min-height: 123px; box-sizing: border-box; }
.pb-step-eyebrow { font-size: 13px; color: var(--brand-primary); margin-bottom: 6px; }
.pb-step-name { font-size: 18px; font-weight: 500; color: var(--chrome-text); margin: 0 0 6px; }
.pb-step-desc { font-size: 13px; color: var(--chrome-text-muted); }
.pb-step-right { display: flex; align-items: center; gap: 12px; flex: none; }
.pb-done { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
.pb-assets-wrap { position: relative; }
.pb-assets { display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 24px 20px 16px; scrollbar-width: none; }
.pb-assets::-webkit-scrollbar { display: none; }
.pb-asset { width: 257px; flex: none; cursor: pointer; border-radius: 5px; padding: 0; }

.pb-asset-thumb { position: relative; height: 257px; border-radius: 5px; background: #fff center / contain no-repeat; border: 1px solid var(--chrome-border-soft); margin-bottom: 10px; box-sizing: border-box; }
/* hover -> preview eyeball overlay (real product reveals a Preview/Edit button on thumb hover) */
.pb-asset .pb-img-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,8,59,.34); opacity: 0; transition: opacity .15s ease; border-radius: inherit; }
.pb-asset:hover .pb-img-overlay { opacity: 1; }
.pb-eye { background: #fff; color: var(--brand-primary-dark); border: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pb-eye:hover { color: var(--brand-primary); }
/* the primary-asset check badge (measured 18x18, top-right of the thumb, ALWAYS visible --
   captured on every hover state above the dark tint, and on tile[0] of a multi-asset step) */
.pb-asset-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #2fb457; color: #fff; display: grid; place-items: center; z-index: 3; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
/* real s3-slider prev/next arrows (measured 40x40, vertically centered on the thumb row) */
.pb-slide-arrow { position: absolute; top: 24px; width: 40px; height: 257px; display: none; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--chrome-text-muted); cursor: pointer; z-index: 4; }
.pb-slide-arrow:hover { color: var(--brand-primary); }
.pb-slide-arrow.prev { left: 0; justify-content: flex-start; }
.pb-slide-arrow.next { right: 0; justify-content: flex-end; }
.pb-slide-arrow.show { display: flex; }
.pb-asset-name { font-size: 14px; font-weight: 500; color: var(--chrome-text); line-height: 18px; min-height: 36px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-asset-desc { font-size: 13px; color: var(--chrome-text-muted); line-height: 19px; max-height: 76px; padding-right: 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pb-or { flex: none; width: 29px; height: 20px; font-size: 12px; color: #2f3542; background: #fff; border: 0; border-radius: 3px; display: grid; place-items: center; padding: 0; margin: 118px -11.5px 0; z-index: 2; align-self: flex-start; box-shadow: 0 1px 3px rgba(20,30,50,.14); } /* the real chip OVERLAYS the 6px seam at thumb-middle */
/* real tile chrome (captured 2026-07-02): landing = portrait page; social = network counts
   strip above the thumb + Run/Restart/Schedule chips below it */
.pb-asset-thumb.portrait { background-position: center; } /* square like every real tile */

.pb-soc-icons { position: absolute; top: 0; left: 0; right: 28px; display: flex; background: rgba(16,18,24,.55); border-radius: 5px 0 0 0; z-index: 1; opacity: 0; transition: opacity .15s ease; }
.pb-soc-icons span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: #fff; padding: 6px 0; }
.pb-asset:hover .pb-soc-icons { opacity: 1; }
.pb-social .pb-asset-thumb { border-radius: 5px; margin-bottom: 8px; }
.pb-soc-chips { display: flex; gap: 7px; margin-bottom: 8px; }
.pb-soc-chips i { width: 26px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pb-soc-chips .c-run { background: #2fb457; }
.pb-soc-chips .c-restart { background: #2f8fe0; }
.pb-soc-chips .c-sched { background: #e08a2f; }
@media (max-width: 1100px) { .pb-body { grid-template-columns: 1fr; } }

/* widget-table pager (deals widget, Josh round 2: page when rows exceed the widget height) */
.tbl-pager { display: inline-flex; gap: 4px; margin-left: 12px; vertical-align: middle; }
.pgbtn { min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--chrome-border); border-radius: 6px; background: #fff; color: var(--chrome-text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.pgbtn.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 600; }
.pgbtn:hover:not(.on) { background: var(--chrome-surface-alt); }

/* pills, legends, chips */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.green { background: #dcfce7; color: #166534; }
.pill.amber { background: #fef3c7; color: #92400e; }
.pill.blue { background: var(--brand-primary-soft); color: var(--brand-primary-dark); }
.pill.red { background: #ffe4e6; color: #9f1239; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 16px; font-size: 13px; }
.legend .it { display: flex; align-items: center; gap: 8px; color: #4b5563; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* buttons */
.btn { background: var(--brand-primary); color: #fff; border: 0; border-radius: 18px; padding: 9px 18px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--brand-primary-dark); }
.btn.ghost { background: transparent; border: 1px solid var(--brand-primary); color: var(--brand-primary); }
.btn.ghost:hover { background: var(--brand-primary-soft); }
.btn.white { background: #fff; color: var(--brand-primary-dark); }
.btn.accent { background: var(--brand-accent); }
.btn.accent:hover { filter: brightness(.93); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.select { height: 36px; border: 1px solid var(--chrome-border); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 13.5px; background: #fff; color: #374151; display: inline-flex; align-items: center; gap: 8px; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--chrome-border); border-radius: 999px; padding: 0 16px; background: var(--chrome-surface); color: var(--chrome-text-faint); font-size: 13.5px; }

/* asset folder cards */
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* real asset browse pane: grey background (not a white box); white cards + toolbar sit on it */
.assets-browse { background: var(--chrome-page); }
.assets-browse .hd { border-bottom: 0; }
.folder { border: 1px solid var(--chrome-border); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.folder:hover { box-shadow: 0 6px 16px rgba(10,8,59,.08); }
.folder .thumb { height: 165px; background: var(--chrome-surface-alt); display: grid; place-items: center; color: var(--chrome-text-faint); }
.folder .meta { padding: 12px 14px; }
.folder .meta .nm { font-size: 14px; font-weight: 600; }
.folder .meta .ct { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 3px; }

/* training / campaign cards */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border: 1px solid var(--chrome-border); border-radius: 10px; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.tile-grid .tile { cursor: pointer; }
.tile-grid .tile:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(16,24,40,.13); }
.tile .img { height: 180px; background: linear-gradient(135deg, var(--brand-navy-2), var(--brand-primary)); background-size: cover; background-position: center; position: relative; }
.tile .img .badge { position: absolute; top: 10px; left: 0; background: var(--brand-accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 0 6px 6px 0; }
.tile .img .passed { position: absolute; top: 10px; right: 10px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.tile .body { padding: 14px 16px; }
.tile .body .t { font-size: 14px; font-weight: 600; }
.tile .body .d { font-size: 12.5px; color: var(--chrome-text-muted); line-height: 1.5; margin-top: 6px; }
.tile .body .lnk { color: var(--brand-link); font-size: 13px; font-weight: 600; margin-top: 10px; display: inline-block; }

/* activity steps (journeys widget) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { border: 1px solid var(--chrome-border-soft); border-radius: 10px; padding: 16px; position: relative; background: var(--chrome-surface-alt); }
.step .num { font-size: 30px; font-weight: 700; color: #d8dadf; font-family: var(--font-display); }
.step .nm { font-size: 17px; margin-top: 6px; font-family: var(--font-display); }
.step .ln { height: 2.5px; background: #e5e7eb; border-radius: 2px; margin: 14px 0; }
.step.active .ln, .step.done .ln { background: var(--brand-primary); }
.step .chk { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #4b5563; }
.step .box { width: 16px; height: 16px; border: 1.5px solid #cbd0d8; border-radius: 4px; display: grid; place-items: center; color: #fff; flex: none; }
.step .box.done { background: var(--brand-primary); border-color: var(--brand-primary); }
.step .tag { position: absolute; top: -10px; left: 12px; background: var(--brand-primary-soft); color: var(--brand-primary-dark); font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
/* journeys widget: taller cards, grey inner panels, step cards fill height + checkbox at bottom (matches real) */
.jr-row > .card { min-height: 372px; }
.card.clickable { cursor: pointer; transition: box-shadow .15s ease; }
.card.clickable:hover { box-shadow: 0 6px 20px rgba(16,24,40,.10); }
.jr-report { display: flex; flex-direction: column; }
.jr-report .bd { flex: 1; display: flex; }
.jr-panel { flex: 1; background: var(--chrome-surface-alt); border-radius: 10px; display: grid; place-items: center; }
.jr-acts { display: flex; flex-direction: column; }
.jr-acts .bd { flex: 1; display: flex; }
.jr-acts .steps { flex: 1; }
.steps .step { display: flex; flex-direction: column; }
.steps .step .chk { margin-top: auto; }

/* mini cards used in View Assets quick links */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quad .q { border: 1px solid var(--chrome-border-soft); border-radius: 10px; padding: 18px 16px; position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--chrome-surface-alt); }
.quad .q:hover { background: var(--chrome-surface); }
.quad .q .ic { color: var(--brand-primary); }
.quad .q .qn { font-size: 13.5px; margin-top: 8px; color: #374151; }
.quad .q .cnt { position: absolute; top: -7px; right: -7px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.asset-quickbtns { display: inline-flex; gap: 6px; }
.asset-quickbtns .btn.sm.ghost { padding: 5px 10px; font-size: 12px; font-weight: 500; }

/* rewards catalog row */
.reward { display: flex; align-items: center; gap: 22px; border: 1px solid var(--chrome-border); border-radius: 10px; padding: 16px 20px; }
.reward .ph { width: 110px; height: 84px; border-radius: 8px; background: var(--chrome-surface-alt); display: grid; place-items: center; color: var(--chrome-text-faint); flex: none; }
.reward .info { flex: 1; }
.reward .info .nm { font-size: 16px; font-weight: 700; }
.reward .info .pts { font-size: 13.5px; color: #374151; margin-top: 2px; }
.reward .info .sub { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--chrome-border); border-radius: 7px; overflow: hidden; }
.stepper button { background: #fff; border: 0; padding: 6px 9px; cursor: pointer; color: #374151; }
.stepper .v { padding: 0 12px; font-size: 14px; }
.balance { display: flex; flex-direction: column; }
.balance .b { font-size: 30px; font-weight: 800; color: #111827; font-family: var(--font-display); }
.cart-empty { border: 1px solid var(--chrome-border); border-radius: 8px; padding: 18px 16px; color: var(--chrome-text-muted); font-size: 13.5px; background: var(--chrome-surface); }

/* === dashboard widgets: real-match (Sales/MDF legend, Incentives rewards, asset thumbs) === */
/* blue donut ring (Sales/MDF "N Deal(s)/Claim(s)") -- ring ~22px like the real */
.donut.ring span { width: 132px; height: 132px; background: #fff; }
.donut.ring .pct { font-size: 26px; }
.donut.ring .cap { font-size: 12px; }
/* widget cards = tall + equal height like the real (w-v5-height ~490) */
.wgrid { align-items: stretch; }
.wgrid > .card { min-height: 488px; display: flex; flex-direction: column; }
.wgrid > .card > .bd { flex: 1; }
.donut-card .bd { display: flex; flex-direction: column; align-items: center; padding: 36px 20px 22px; background: #f4f5f8; border-radius: 12px; margin: 0 16px 16px; }
.donut-card .donut { flex: none; }
.donut-card .donut span { background: #f4f5f8; }
.donut-card .legend2 { width: 100%; margin-top: auto; padding-top: 24px; }
/* dashboard widget tables: grey header bar like the real */
#tabpanel .data thead tr { background: var(--chrome-surface-alt); }
#tabpanel .data thead th { border-bottom: 0; }
#tabpanel .data tbody tr td { background: #fafbfc; }
/* legend = colored vertical bar + count over label, 2-up */
.legend2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 20px; text-align: left; }
.legend2.cols3 { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.lg { display: flex; align-items: center; gap: 10px; }
.lg .lbar { width: 6px; height: 34px; border-radius: 3px; flex: none; }
.lg .lt { display: flex; flex-direction: column; line-height: 1.15; }
.lg .lt b { font-size: 16px; font-weight: 600; color: var(--chrome-text); }
.lg .lt span { font-size: 12.5px; color: var(--chrome-text-muted); }
/* deals/MDF table cells */
.dl-co { font-weight: 600; color: var(--chrome-text); }
.dl-sub { color: var(--chrome-text-muted); font-size: 12.5px; }
/* Incentives: blue Rewards points card + Incentive Campaign cards */
.rewards-card { display: flex; flex-direction: column; }
.rewards-card .bd { flex: 1; display: flex; padding: 16px; }
.rewards-panel { flex: 1; background: var(--brand-primary); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; padding: 30px 24px; text-align: center; }
.rewards-panel .rc-star { color: #fff; margin-bottom: 6px; }
.rewards-panel .rc-pts { font-size: 48px; font-weight: 700; line-height: 1; color: #fff; font-family: var(--font-display); }
.rewards-panel .rc-lbl { font-size: 15px; color: #fff; opacity: .9; }
.rewards-panel .rc-redeem { margin-top: 22px; }
.tile.icamp .img { height: 145px; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 72% 95%), hsl(var(--h) 60% 86%)); background-size: cover; background-position: center; }
.tile.icamp .img .thumb-ic { color: hsl(var(--h) 52% 52%); opacity: .6; }
.tile.icamp .body { display: flex; flex-direction: column; min-height: 118px; }
.tile.icamp .ic-earned { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: auto; padding-top: 8px; }
.tile.icamp .ic-earned b { color: var(--brand-primary-dark); }
/* incentive campaign cards fill the widget height (match real tall cards) */
.inc-camps { display: flex; flex-direction: column; }
.inc-camps .bd { flex: 1; display: flex; }
.inc-camps .tile-grid { flex: 1; }
.tile.icamp { display: flex; flex-direction: column; }
.tile.icamp .body { flex: 1; }
/* asset folder thumbnails tinted (vs plain grey) */
.folder .thumb { background: linear-gradient(135deg, hsl(var(--h, 222) 72% 96%), hsl(var(--h, 222) 60% 88%)); background-size: cover; background-position: center; color: hsl(var(--h, 222) 52% 52%); }

/* "Power your Success" banner -- light, centered, with the G2 strip + AI Pioneer Award */
/* 1fr auto 1fr -> the G2 strip (auto) is centered in the screen; text + AI centered in the
   equal side columns, so the three are equidistant with even left/right padding (Josh). */
.pys-banner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 40px; padding: 34px 56px; }
.pys-banner h3 { margin: 0; justify-self: center; text-align: left; font-size: 27px; font-weight: 300; color: #1f2533; line-height: 1.3; }
.pys-banner h3 b { font-weight: 600; color: var(--brand-primary); }
.pys-banner .g2 { height: 94px; width: auto; justify-self: center; object-fit: contain; }
.pys-banner .ai-award { height: 132px; width: auto; justify-self: center; object-fit: contain; }

/* Account/Partner Success + Support contact banner -- same deep-navy scheme as the top band */
.contact-banner {
  background: var(--brand-navy-1);
  background-image:
    radial-gradient(1100px 480px at 50% -40%, var(--brand-glow), transparent 60%),
    linear-gradient(160deg, var(--brand-navy-1) 0%, var(--brand-navy-2) 100%);
  padding: 34px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
/* stretched layout (like the demo): avatar + name/role/email row, phone, buttons bottom-right */
.contact-col { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 26px 28px; background: rgba(255,255,255,.04); min-height: 234px; }
.contact-col .ch { font-size: 19px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.contact-col .ch b { color: #fff; font-weight: 700; }
.contact-main { display: flex; align-items: center; gap: 18px; }
.contact-av { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand-primary-dark); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; overflow: hidden; }
.contact-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-av.icon img { object-fit: contain; padding: 10px; }
.contact-av.icon { color: var(--brand-primary); }
.contact-info { flex: 1; min-width: 0; }
.contact-name { color: #fff; font-weight: 700; font-size: 16px; }
.contact-role { color: rgba(255,255,255,.78); font-size: 13.5px; margin-top: 3px; }
.contact-email { color: rgba(255,255,255,.85); font-size: 13.5px; margin-top: 7px; word-break: break-word; }
.contact-phone { color: rgba(255,255,255,.85); font-size: 13.5px; margin-top: 18px; }
.contact-btns { display: flex; gap: 10px; margin-top: auto; align-self: flex-end; padding-top: 16px; }
.btn.wghost { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn.wghost:hover { background: rgba(255,255,255,.12); }

/* clean empty state -- replaces the "No Data Found" box icon Josh dislikes */
.empty { padding: 26px 16px; text-align: center; color: var(--chrome-text-muted); font-size: 13.5px; }

/* placeholder for not-yet-built screens */
.todo { display: grid; place-items: center; height: 70vh; text-align: center; color: var(--chrome-text-muted); }
.todo .big { font-size: 18px; color: var(--chrome-text); margin-bottom: 8px; font-weight: 600; font-family: var(--font-display); }
.todo code { background: var(--chrome-surface-alt); padding: 2px 6px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .welcome-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .split, .banner-row, .gauges, .folder-grid, .tile-grid, .steps { grid-template-columns: 1fr; }
  .mainnav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login .right { display: none; }
  .identity { grid-template-columns: 1fr; }
}

/* ============ Course Catalog (#coursecatalog) ============ */
.page { display: flex; flex-direction: column; }
.page-hero {
  position: relative; overflow: hidden; padding: 30px 30px 34px;
  background: var(--brand-navy-1);
  background-image:
    radial-gradient(900px 460px at 78% -40%, var(--brand-glow), transparent 60%),
    linear-gradient(150deg, var(--brand-navy-1) 0%, var(--brand-navy-2) 70%, var(--brand-navy-3) 100%);
}
.page-hero h1 { color: #fff; font-size: 30px; font-weight: 600; letter-spacing: -.01em; position: relative; z-index: 1; }
.page-hero .ph-deco {
  position: absolute; right: -60px; top: -120px; width: 520px; height: 360px; pointer-events: none;
  background:
    radial-gradient(260px 260px at 70% 60%, rgba(52,111,226,.55), transparent 62%),
    radial-gradient(200px 200px at 95% 30%, rgba(255,103,29,.18), transparent 60%);
  transform: rotate(-8deg);
}

/* summary row: Courses / Curriculum / Certifications */
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
/* summary cards measured from the real product = 246px tall, ~150px donut */
.card.sum { min-height: 246px; }
.card.sum .bd { padding: 28px 26px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.sum-row { display: flex; align-items: center; gap: 22px; }
.donut.sm { width: 150px; height: 150px; flex: none; margin: 0;
  background: conic-gradient(var(--brand-primary) 0 calc(var(--b) * 1%), #e7e9ef 0 100%); }
/* segmented ring to echo the real product: completed (green) -> in-progress (blue) -> not-started (orange) */
.donut.sm.seg { background: conic-gradient(var(--ok) 0 calc(var(--a) * 1%), var(--brand-primary) 0 calc(var(--b) * 1%), #f4a26a 0 100%); }
.donut.sm span { width: 116px; height: 116px; }
.donut.sm .pct { font-size: 30px; }
.donut.sm .cap { font-size: 11px; }
.sum-list { gap: 15px; }
.sum-list { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sum-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--chrome-text); }
.sum-list li span { flex: 1; }
.sum-list li b { font-weight: 600; }
.sum-list .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.prog { background: var(--brand-primary); }
.dot.done { background: var(--ok); }
.dot.none { background: #cbd1da; }
/* Learning > Progress card -- ONE grey panel filling the card: bars at top, white stat callouts at the bottom (matches real) */
.learn-progress { display: flex; flex-direction: column; }
.learn-progress .bd { flex: 1; display: flex; }
.lprog-panel { flex: 1; background: var(--chrome-surface-alt); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.lprog-bars { display: flex; flex-direction: column; gap: 22px; }
.lprog-label { font-weight: 600; font-size: 14px; margin-bottom: 9px; }
.lbar2 { height: 10px; border-radius: 6px; background: #dfe3e8; overflow: hidden; }
.lbar2 i { display: block; height: 100%; border-radius: 6px; }
.lbar2 i.bar-a { background: var(--brand-primary); }
.lbar2 i.bar-b { background: var(--brand-navy-2); }
.lprog-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 9px; }
.lstats { display: flex; gap: 14px; }
.lstat { flex: 1; padding: 2px 0 2px 14px; border-left: 4px solid; }
.lstat.a { border-left-color: var(--brand-primary); }
.lstat.b { border-left-color: var(--brand-navy-2); }
.lstat b { display: block; font-size: 15px; color: var(--chrome-text); }
.lstat span { font-size: 12px; color: var(--chrome-text-muted); }
.cert-label { font-size: 13px; font-weight: 600; color: var(--chrome-text-muted); margin-bottom: 14px; }
.cert-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--chrome-text); padding: 9px 0; }
.cert-row + .cert-row { border-top: 1px solid var(--chrome-border-soft); }
.cert-row span:not(.cert-ic) { flex: 1; }
.cert-row b { font-weight: 600; }
.cert-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.cert-ic.blue { background: var(--brand-primary-soft); color: var(--brand-primary); }
.cert-ic.green { background: #dcfce7; color: var(--ok); }

/* training category toolbar + sidebar + course grid */
.tcat-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--chrome-border); padding-bottom: 12px; margin-bottom: 18px; }
.tcat-title { background: 0; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--chrome-text); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tcat-tools { display: flex; align-items: center; gap: 10px; }
.tcat-search { width: 200px; }
.vtog { width: 36px; height: 36px; border: 1px solid var(--chrome-border); border-radius: 7px; background: #fff; color: var(--chrome-text-muted); display: grid; place-items: center; cursor: pointer; }
.vtog.on { background: var(--brand-primary-soft); border-color: var(--brand-primary); color: var(--brand-primary); }
.tcat-grid { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: start; }
.cat-side { display: flex; flex-direction: column; gap: 2px; }
.cat-item { padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--chrome-text); cursor: pointer; }
.cat-item:hover { background: var(--chrome-surface); }
.cat-item.on { background: var(--brand-primary-soft); color: var(--brand-primary-dark); font-weight: 600; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* course card measured from the real product: 216px wide, ~372 tall, square 206px thumbnail */
.tile.course { width: 216px; padding: 5px; border-radius: 7px; }
.tile.course .img { height: 206px; border-radius: 5px; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 72% 96%), hsl(var(--h) 60% 87%)); }
.tile.course .body { padding: 12px 9px; display: flex; flex-direction: column; min-height: 150px; }
.tile.course .body .d { -webkit-line-clamp: 3; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; }
.tile.course .cprog { margin-top: auto; }
.tile.course .img .thumb-ic { color: hsl(var(--h) 52% 52%); opacity: .55; }
.tile.course .img.has-thumb, .lthumb.has-thumb { background-size: cover; background-position: center; }
/* real badges: Trending top-left, red New top-right */
.tile.course .img .trend { position: absolute; top: 0; left: 0; background: var(--brand-accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 0 0 8px 0; }
.tile.course .img .newb { position: absolute; top: 8px; right: 8px; background: #e0364a; color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tile.course .img .passed.prog { background: #e0edff; color: var(--brand-primary-dark); }
/* hover -> Open overlay (real product reveals a view button on hover) */
.tile.course .img .img-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,8,59,.34); opacity: 0; transition: opacity .15s ease; }
.tile.course:hover .img-overlay { opacity: 1; }
.tile.course .img-overlay .btn-view { background: #fff; color: var(--brand-primary-dark); font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 8px; cursor: pointer; }
.cprog { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cprog .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--chrome-surface-alt); overflow: hidden; }
.cprog .bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-primary); animation: grow-bar 1s ease both; }
.cprog .cpct { font-size: 12px; font-weight: 600; color: var(--chrome-text-muted); }
.course-foot { margin-top: 18px; font-size: 12.5px; color: var(--chrome-text-muted); }
/* My Certificates tab */
.cert-pane { min-height: 160px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cert-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--chrome-border); border-radius: 10px; padding: 16px; background: #fff; }
.cert-card .cert-seal { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-primary-soft); color: var(--brand-primary); flex: none; }
.cert-card .cert-meta { flex: 1; }
.cert-card .cert-meta .t { font-size: 14px; font-weight: 600; }
.cert-card .cert-meta .d { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 3px; }
/* view modes: thumbnail (fixed 216 portrait cards, left-aligned) / card (wider) / list (rows) */
.course-grid.thumbs { display: flex; flex-wrap: wrap; gap: 26px; }
.course-grid.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.course-grid.cards .tile.course { width: 340px; }
.course-grid.cards .tile.course .img { height: 150px; }
.course-list { border: 1px solid var(--chrome-border); border-radius: 10px; overflow: hidden; background: #fff; }
.lrow { display: grid; grid-template-columns: 64px 1fr 190px auto; align-items: center; gap: 16px; padding: 12px 16px; }
.lrow + .lrow { border-top: 1px solid var(--chrome-border-soft); }
.lthumb { width: 64px; height: 44px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 72% 95%), hsl(var(--h) 60% 86%)); color: hsl(var(--h) 52% 52%); }
.lrow .lname .t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lrow .lname .d { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.lprog { display: flex; align-items: center; gap: 10px; }
.lprog .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--chrome-surface-alt); overflow: hidden; }
.lprog .bar i { display: block; height: 100%; background: var(--brand-primary); border-radius: 999px; }
.lrow .newb, .lrow .trend { position: static; font-size: 10px; padding: 1px 7px; border-radius: 999px; }
.lrow .trend { background: var(--brand-accent); color: #fff; }
.lrow .newb { background: #e0364a; color: #fff; }
.lrow .lview { white-space: nowrap; }
/* search input + sort dropdown */
.tcat-search { width: 210px; }
.tcat-search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 13.5px; width: 100%; color: var(--chrome-text); }
.sortwrap { position: relative; }
.sortmenu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--chrome-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 6px; z-index: 20; min-width: 152px; }
.sortmenu .sortopt { display: block; width: 100%; text-align: left; background: 0; border: 0; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--chrome-text); }
.sortmenu .sortopt:hover { background: var(--chrome-surface); }
.sortmenu .sortopt.on { color: var(--brand-primary-dark); font-weight: 600; }
/* accordion collapse for the category section */
.tcat-title .acc-ch { display: inline-flex; transition: transform .18s ease; }
.tcat-title.closed .acc-ch { transform: rotate(-90deg); }
.tcat-grid.collapsed { display: none; }

/* course detail / player (click a course "Open") -- rail 250px + dark player, measured from real */
.course-detail { display: flex; position: relative; background: #fff; min-height: 660px; border-top: 1px solid var(--chrome-border); }
.cd-rail { width: 250px; flex: none; border-right: 1px solid var(--chrome-border); }
.cd-head { position: relative; height: 210px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(160deg, hsl(var(--h) 58% 44%), hsl(var(--h) 62% 28%)); }
.cd-head .cd-headcheck { position: absolute; top: 14px; right: 14px; }
.cd-head .cd-htitle { font-size: 18px; font-weight: 600; line-height: 1.2; }
.cd-head .cd-hpct { font-size: 12px; font-weight: 600; margin-top: 8px; }
.cd-modules { padding: 0; }
/* module row = 50px, lesson row = 65px -- measured from the real rail (structure.json h:50/51 + 65) */
.cd-modhd { display: flex; align-items: center; gap: 8px; width: 100%; height: 50px; background: 0; border: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--chrome-text); padding: 0 14px; cursor: pointer; }
.cd-mod { border-bottom: 1px solid var(--chrome-border); }
.cd-modhd .cd-ch { display: inline-flex; transition: transform .18s ease; color: var(--brand-primary); }
.cd-mod.open .cd-modhd .cd-ch { transform: rotate(90deg); }
.cd-modhd .cd-modname { flex: 1; text-align: left; }
.cd-mod.open .cd-modhd { background: rgba(52,111,226,.32); }
.cd-lessons { display: none; }
.cd-mod.open .cd-lessons { display: block; }
.cd-lesson { display: flex; align-items: center; gap: 8px; min-height: 65px; padding: 0 14px 0 16px; font-size: 13px; color: var(--brand-primary-dark); cursor: pointer; border-top: 1px solid var(--chrome-border); }
.cd-lesson:hover { background: var(--chrome-surface); }
.cd-lesson.on { background: #e8f1fb; font-weight: 600; color: var(--brand-primary); border-left: 4px solid var(--brand-primary); padding-left: 12px; }
.cd-lesson .cd-lt { flex: 1; }
.cd-lesson .cd-lic { color: var(--brand-primary); display: inline-flex; }
.cd-lesson .cd-lic.q { font-weight: 800; font-size: 16px; width: 15px; justify-content: center; }
.cd-player { flex: 1; position: relative; background: #0c0c12; }
/* Collapse / Full Screen -- dark rounded group near the content's top-right; Collapse blue,
   Full Screen white, stacked icon-over-label 72x44 (real: coursedetail flow captures) */
.cd-controls { position: absolute; top: 54px; right: 18px; display: flex; gap: 4px; z-index: 3; background: rgba(70,70,70,.88); border-radius: 6px; padding: 4px; }
.cd-cbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 72px; height: 44px; background: var(--brand-primary); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 10.5px; cursor: pointer; }
.cd-cbtn .ci { display: inline-flex; }
.cd-cbtn:hover { background: var(--brand-primary-dark); }
.cd-cbtn.light { background: #fff; color: #333; }
.cd-cbtn.light:hover { background: #ececec; }
/* rail toggle -- the real 45x45 circular arrow at the stage's top-left */
.cd-railtog { position: absolute; top: 24px; left: 27px; width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff; background: rgba(25,25,28,.85); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; transition: transform .18s ease; }
.cd-railtog:hover { background: rgba(60,60,66,.9); }
.course-detail.rail-collapsed .cd-railtog { transform: rotate(180deg); }
/* player: prev/next arrows, the lesson content slide, the View scrim */
.cd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.cd-nav:hover { background: rgba(255,255,255,.22); }
.cd-nav.prev { left: 22px; } .cd-nav.prev svg { transform: rotate(180deg); }
.cd-nav.next { right: 22px; }
/* portrait ebook -- the shared SPREAD (spread.js): two US-letter pages, spine at the stage
   center; the sheet flips right-to-left and lands on the LEFT slot. Real MM logo image. */
.cd-stagewrap { position: absolute; inset: 0; }
.cd-stagewrap.light-under { background: #fff; }
.cd-bookwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cd-spread { height: 84%; }
.cd-pagec { flex: 1; display: flex; flex-direction: column; padding: 36px 38px 30px; overflow: hidden; }
.cd-page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cd-page-logo { height: 24px; width: auto; }
.cd-page-co { font-size: 12px; color: var(--chrome-text-muted); padding-left: 12px; border-left: 1px solid var(--chrome-border); }
.cd-page-title { font-family: var(--font-banner); font-weight: 700; font-size: 27px; line-height: 1.12; color: var(--brand-navy-1); }
.cd-page-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--brand-accent); margin-top: 12px; }
.cd-page-sub { font-size: 13.5px; color: var(--chrome-text-muted); margin-top: 14px; }
.cd-page-body { font-size: 13px; color: var(--chrome-text); line-height: 1.6; margin-top: 16px; }
.cd-page-foot { margin-top: auto; font-size: 11.5px; color: var(--chrome-text-muted); text-align: center; }
.cd-nav.off { display: none; }
/* playable YouTube lesson (real Mindmatrix channel embeds) */
.cd-video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(72%, 960px); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.cd-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cd-vposter { background-size: cover; background-position: center; }
/* pre-activation scrim: content dimmed behind, View button 230x33 sits 149px below the stage top
   (real: playermeasure viewBtn + 1_player capture -- upper-center, NOT vertically centered) */
.cd-scrim { position: absolute; inset: 0; background: rgba(8,8,16,.5); display: flex; justify-content: center; align-items: flex-start; padding-top: 149px; z-index: 1; }
.cd-view { width: 230px; height: 33px; background: var(--brand-primary); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 500; padding: 0; cursor: pointer; }
.cd-view:hover { background: var(--brand-primary-dark); }
.course-detail.rail-collapsed .cd-rail { display: none; }
.cd-back2 { position: absolute; top: 14px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 7px; font: inherit; font-size: 12.5px; padding: 7px 12px; cursor: pointer; }
.cd-back2:hover { background: rgba(255,255,255,.22); }
.cd-back2 svg { transform: rotate(180deg); }
/* ebook page body + page counter */
.cd-slide-body { font-size: 13.5px; color: var(--chrome-text); line-height: 1.55; margin-top: 14px; max-width: 82%; }
.cd-pagecount { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12.5px; z-index: 4; }
/* certification quiz */
.cd-quiz { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 620px; max-width: 80%; max-height: 86%; overflow: auto; background: #fff; border-radius: 10px; padding: 28px 30px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.cd-quiz-h { font-size: 18px; font-weight: 600; color: var(--chrome-text); margin-bottom: 18px; }
.cd-q { margin-bottom: 20px; }
.cd-qt { font-size: 14px; font-weight: 600; color: var(--chrome-text); margin-bottom: 10px; }
.cd-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--chrome-border); border-radius: 8px; margin-bottom: 8px; font-size: 13.5px; cursor: pointer; }
.cd-opt:hover { background: var(--chrome-surface); }
.cd-opt input { accent-color: var(--brand-primary); }
.cd-submit { margin-top: 8px; }
/* quiz + result render on a WHITE full-bleed stage, like the real questionnaire pages
   (5_quiz_start capture: white bg, red Sorry!, blue Try Again, thanks line) */
.cd-player.light { background: #fff; }
.cd-player.light .cd-railtog { display: none; }
/* the REAL quiz module, captured live 2026-07-02 (6_quiz_form + 7_quiz_questions):
   730px centered column, title + gray stats band, one question per screen */
.cdq { width: 730px; max-width: 90%; margin: 42px auto 40px; color: #333; }
.cdq.dim { margin-top: 90px; }
.cdq-title { font-size: 22px; font-weight: 400; color: #333; margin: 0 0 14px; }
.cdq-band { background: #d2d2d2; padding: 18px 16px; display: flex; }
.cdq-band .cdq-cell { flex: 1; font-size: 14px; }
.cdq-band .cdq-cell b { font-weight: 600; }
.cdq-band.stacked { padding: 14px 16px 18px; }
.cdq-band.stacked .cdq-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cdq-band:not(.stacked) { min-height: 112px; align-items: flex-start; }
.cdq-desc { font-size: 14px; margin: 16px 2px 0; }
.cdq-rule { border-top: 1px solid #dcdcdc; margin-top: 8px; }
.cdq-rule.start { margin-top: 150px; }
.cdq-qrow { display: flex; align-items: flex-start; gap: 20px; margin-top: 26px; }
.cdq-qtext { flex: 1; font-size: 24px; font-weight: 300; line-height: 1.3; color: #333; }
.cdq-score { flex: none; font-size: 14px; padding-top: 6px; }
.cdq-hint { font-style: italic; font-size: 12.5px; color: #555; margin: 10px 0 18px; }
.cdq-opts { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }
.cdq-opt { display: flex; align-items: center; gap: 24px; font-size: 14px; cursor: pointer; padding-left: 20px; }
.cdq-opt input { width: 15px; height: 15px; flex: none; accent-color: var(--brand-primary); }
.cdq-count { text-align: center; font-size: 14px; margin: 10px 0 8px; }
.cdq-count b { font-weight: 600; }
.cdq-actions { display: flex; justify-content: flex-end; padding-top: 22px; }
.cdq-actions.split { justify-content: space-between; padding-left: 320px; }
.cdq-startbtn, .cdq-finish, .cdq-next { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-primary); color: #fff; border: 0; border-radius: 3px; font: inherit; font-size: 15px; padding: 10px 26px; cursor: pointer; }
.cdq-startbtn:hover, .cdq-finish:hover, .cdq-next:hover:not([disabled]) { background: var(--brand-primary-dark); }
.cdq-next[disabled] { opacity: .45; cursor: default; }
.cd-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px; text-align: center; color: #333; padding: 90px 30px 30px; }
.cd-result p { color: #555; font-size: 19px; max-width: 560px; }
.cd-pass-ic { color: var(--ok); }
.cd-pass { color: #333; font-size: 30px; font-weight: 700; }
.cd-sorry { color: #dc3545; font-size: 40px; font-weight: 700; }
.cd-congrats { color: #28a745; font-size: 40px; font-weight: 700; }
.cd-retry, .cd-viewcert { background: var(--brand-primary); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 600; min-width: 200px; padding: 13px 36px; cursor: pointer; margin-top: 6px; }
.cd-retry:hover, .cd-viewcert:hover { background: var(--brand-primary-dark); }
/* branded certificate overlay -- MM navy frame, orange accents, equal-size logo lockup */
.cert-ovl { position: fixed; inset: 0; z-index: 1400; background: rgba(10,12,24,.72); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.cert-ovl.in { opacity: 1; }
.certov-card { position: relative; width: min(880px, 92vw); aspect-ratio: 11 / 8; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 26px; }
.certov-x { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,.14); border: 0; color: #fff; border-radius: 8px; padding: 8px; cursor: pointer; display: inline-flex; }
.certov-x:hover { background: rgba(255,255,255,.28); }
.certov-frame { height: 100%; border: 3px solid var(--brand-navy-1); outline: 1px solid var(--brand-accent); outline-offset: -9px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 48px 24px; }
.certov-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.certov-logos img { height: 30px; width: auto; }
.certov-lsep { width: 1px; height: 30px; background: var(--chrome-border); }
.certov-eyebrow { font-family: var(--font-banner); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--brand-accent); margin-bottom: 8px; }
.certov-title { font-family: var(--font-banner); font-size: 30px; font-weight: 700; color: var(--brand-navy-1); }
.certov-this { font-size: 13.5px; color: var(--chrome-text-muted); margin: 18px 0 12px; }
.certov-who { display: flex; align-items: center; gap: 14px; text-align: left; }
.certov-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-primary-soft); }
.certov-name { font-family: var(--font-banner); font-size: 25px; font-weight: 600; color: var(--brand-navy-1); line-height: 1.15; }
.certov-org { font-size: 13px; color: var(--chrome-text-muted); margin-top: 2px; }
.certov-line { font-size: 14px; color: var(--chrome-text); margin-top: 14px; }
.certov-meta { display: flex; gap: 26px; font-size: 12.5px; color: var(--chrome-text); margin-top: 18px; }
.certov-meta b { font-weight: 600; }
.certov-foot { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; }
.certov-seal { color: var(--brand-accent); display: inline-flex; }
.certov-sig { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--chrome-text); }
.certov-sigline { width: 180px; border-top: 1px solid #9aa1ad; }
.cd-thanks { color: #333; font-size: 18px; margin-top: 10px; }
/* lesson hover tooltip -- white Name/Description popover beside the rail (real behavior) */
.cd-tip { position: fixed; z-index: 300; width: 235px; background: #fff; border: 1px solid #d9dde3; border-radius: 4px; box-shadow: 0 6px 22px rgba(20,30,50,.18); padding: 12px 14px; font-size: 12px; color: #333; line-height: 1.45; pointer-events: none; }
.cd-tip::before { content: ''; position: absolute; left: -7px; top: 20px; border: 7px solid transparent; border-right-color: #fff; border-left: 0; filter: drop-shadow(-1px 0 0 #d9dde3); }
.cd-tip b { display: block; font-size: 12px; color: #111; margin-top: 8px; }
.cd-tip b:first-child { margin-top: 0; }

/* ---- asset & collateral library (F1) -- card measured 222x221 (thumb 222x125 + meta 96) ---- */
.cobrand-note { display: flex; align-items: flex-start; gap: 10px; background: var(--brand-primary-soft); border: 1px solid #cfe0fb; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 13px; color: var(--chrome-text); line-height: 1.5; }
.cobrand-note svg { color: var(--brand-primary-dark); flex: none; margin-top: 1px; }
.cobrand-note b { font-weight: 600; }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.asset-search { flex: 1; max-width: 460px; height: 40px; background: #fff; }
.asset-search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 13.5px; color: var(--chrome-text); flex: 1; min-width: 0; }
.asset-tools { display: flex; align-items: center; gap: 8px; }
.atab { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--chrome-border); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 13px; color: var(--chrome-text-muted); cursor: pointer; }
.atab:hover { color: var(--chrome-text); }
.atab.on { background: var(--brand-primary-soft); border-color: var(--brand-primary); color: var(--brand-primary-dark); font-weight: 600; }
.atab svg { opacity: .85; }
.asset-views { display: inline-flex; gap: 6px; margin-left: 6px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, 222px); gap: 22px; }
.acard { width: 222px; border: 1px solid var(--chrome-border); border-radius: 5px; overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.acard:hover { box-shadow: 0 6px 18px rgba(16,24,40,.12); transform: translateY(-2px); }
.athumb { position: relative; height: 125px; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 70% 96%), hsl(var(--h) 58% 87%)); }
.athumb-ic { color: hsl(var(--h) 50% 50%); opacity: .6; }
.athumb-ic svg { width: 40px; height: 40px; }
.athumb-overlay { position: absolute; inset: 0; background: rgba(10,8,40,.34); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.acard:hover .athumb-overlay { opacity: 1; }
.btn-open { background: #fff; color: var(--brand-primary-dark); font-size: 13px; font-weight: 600; padding: 7px 22px; border-radius: 5px; }
.ameta { padding: 10px 13px 12px; height: 94px; box-sizing: border-box; display: flex; flex-direction: column; }
.ameta .at { font-size: 16px; font-weight: 400; color: var(--chrome-text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.acount { font-size: 12.5px; color: var(--chrome-text-muted); }
.atype { font-size: 11px; font-weight: 600; color: var(--brand-primary-dark); background: var(--brand-primary-soft); padding: 2px 9px; border-radius: 999px; }
.asset-foot { margin-top: 18px; font-size: 12.5px; color: var(--chrome-text-muted); }
.asset-list { display: flex; flex-direction: column; gap: 8px; }
.arow { display: flex; align-items: center; gap: 14px; border: 1px solid var(--chrome-border); border-radius: 8px; padding: 10px 14px; background: #fff; cursor: pointer; }
.arow:hover { border-color: var(--brand-primary); background: var(--chrome-surface); }
.arow-ic { width: 44px; height: 44px; flex: none; border-radius: 6px; display: grid; place-items: center; color: hsl(var(--h) 50% 50%); background: linear-gradient(135deg, hsl(var(--h) 70% 96%), hsl(var(--h) 58% 88%)); }
.arow-name { flex: 1; } .arow-name .at { font-size: 14px; font-weight: 600; } .arow-name .ad { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 2px; }
.asset-detail { padding: 4px 0; }
.al-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; font: inherit; font-size: 13px; color: var(--brand-primary-dark); cursor: pointer; margin-bottom: 16px; }
.al-back svg { transform: rotate(180deg); }
.ad-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ad-ic { width: 56px; height: 56px; flex: none; border-radius: 8px; display: grid; place-items: center; color: hsl(var(--h) 50% 50%); background: linear-gradient(135deg, hsl(var(--h) 70% 96%), hsl(var(--h) 58% 88%)); }
.ad-ic svg { width: 26px; height: 26px; }
.ad-title { font-size: 19px; font-weight: 600; color: var(--chrome-text); }
.ad-sub { font-size: 13px; color: var(--chrome-text-muted); margin-top: 2px; }
.file-list { display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; align-items: center; gap: 14px; border: 1px solid var(--chrome-border); border-radius: 8px; padding: 11px 16px; background: #fff; }
.frow.clickable { cursor: pointer; }
.frow.clickable:hover { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.fic { color: var(--brand-primary-dark); flex: none; }
.fname { flex: 1; } .fname .t { font-size: 14px; font-weight: 500; color: var(--chrome-text); } .fname .d { font-size: 12px; color: var(--chrome-text-faint); margin-top: 2px; }
.factions { display: flex; align-items: center; gap: 6px; }
.fbtn { width: 34px; height: 34px; border: 1px solid var(--chrome-border); border-radius: 7px; background: #fff; color: var(--chrome-text-muted); display: grid; place-items: center; cursor: pointer; }
.fbtn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

@media (max-width: 1024px) {
  .sum-grid { grid-template-columns: 1fr; }
  .tcat-grid { grid-template-columns: 1fr; }
  .course-grid.thumbs, .course-grid.cards { grid-template-columns: repeat(2, 1fr); }
  .course-detail { flex-direction: column; } .cd-rail { width: 100%; } .cd-player { min-height: 420px; }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ============================================================================
   Report screens (deal registration + organizational scorecard) + cobrand note.
   Built for the CT board-pack; brand-themed via the tokens above.
   ============================================================================ */
.rpt { padding: 20px 32px 44px; }
.page-title { font-size: 22px; font-weight: 600; color: var(--chrome-text); margin: 4px 0 20px; display: flex; align-items: center; gap: 10px; }
.page-title svg { color: var(--brand-primary); }

/* co-branding callout (asset library) */
.cobrand-note { display: flex; align-items: flex-start; gap: 12px; background: var(--brand-primary-soft); border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, #fff); border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; color: var(--chrome-text); font-size: 13.5px; line-height: 1.5; }
.cobrand-note svg { color: var(--brand-primary); flex: none; margin-top: 1px; }
.cobrand-note b { color: var(--brand-primary-dark); }
.cobrand-tag { position: absolute; top: 9px; left: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.92); color: var(--brand-primary-dark); font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
/* real client thumbnails on asset cards: vendor logos centered, photos full-bleed */
.athumb-logo { max-width: 74%; max-height: 64%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(16,24,40,.08)); }
.athumb.has-thumb { background: linear-gradient(135deg, hsl(var(--h) 60% 97%), hsl(var(--h) 45% 90%)); }
.athumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- deal registration ---- */
.dreg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.dreg-card { border-radius: 10px; padding: 20px 22px 24px; min-height: 196px; border: 1px solid transparent; }
.dreg-card.blue { background: var(--brand-primary-soft); border-color: color-mix(in srgb, var(--brand-primary) 16%, #fff); }
.dreg-card.green { background: #eafaf1; border-color: #cdeedd; }
.dreg-card.grey { background: var(--chrome-surface-alt); border-color: var(--chrome-border); }
.dreg-ic { width: 38px; height: 38px; display: grid; place-items: center; color: var(--chrome-text); opacity: .8; margin-bottom: 12px; }
.dreg-card.blue .dreg-ic { color: var(--brand-primary); }
.dreg-card.green .dreg-ic { color: #16a34a; }
.dreg-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(15,23,42,.07); font-size: 13.5px; color: var(--chrome-text); }
.dreg-row:last-child { border-bottom: 0; }
.dreg-row.head { font-weight: 600; }
.dreg-row b { font-weight: 600; }
.dreg-row .lnk { color: var(--brand-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.dreg-row .zero { color: var(--chrome-text-faint); }
.dreg-row .cur { font-size: 11px; color: var(--chrome-text-muted); font-weight: 600; }

.dreg-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dreg-list-title { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; color: var(--chrome-text); }
.dreg-list-title svg { color: var(--brand-primary); }
.subtabs { display: inline-flex; gap: 4px; }
.subtab { background: transparent; border: 0; font: inherit; font-size: 13.5px; color: var(--chrome-text-muted); padding: 7px 12px; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.subtab:hover { color: var(--chrome-text); }
.subtab.on { color: var(--brand-primary-dark); font-weight: 600; border-bottom-color: var(--brand-primary); }
.subcount { background: var(--brand-primary-soft); color: var(--brand-primary-dark); font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }

.dreg-panel { padding: 0; overflow: hidden; }
.dreg-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px; }
.dreg-actions { display: flex; gap: 7px; }
.select.sm { height: 32px; padding: 0 9px; color: var(--chrome-text-muted); cursor: pointer; }
.dreg-table th { background: var(--chrome-surface); }
.dreg-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center; }
.dreg-table .dl-more { color: var(--chrome-text-faint); cursor: pointer; }

/* ---- organizational scorecard ---- */
.score-filters { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.score-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--chrome-text-muted); font-weight: 600; }
.score-filters .select { min-width: 190px; height: 38px; }
.score-filters .btn { height: 38px; }
.score-panel { margin-bottom: 20px; }
.score-stats { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; padding: 20px; }
.score-chartwrap { display: flex; flex-direction: column; }
.score-svg { width: 100%; height: 190px; }
.score-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--chrome-text-faint); margin-top: 6px; padding: 0 4px; }
.score-metrics { display: flex; flex-direction: column; justify-content: center; gap: 16px; border-left: 1px solid var(--chrome-border-soft); padding-left: 24px; }
.score-metric .sm-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--chrome-text-muted); margin-bottom: 6px; }
.score-metric .sm-top b { color: var(--chrome-text); }
.sm-bar { height: 7px; border-radius: 4px; background: var(--chrome-surface-alt); overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: var(--brand-primary); border-radius: 4px; }

.score-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--chrome-border); border-radius: 12px; padding: 16px 16px 15px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.kpi-val { font-size: 27px; font-weight: 600; color: var(--chrome-text); line-height: 1; }
.kpi-delta { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: #16a34a; background: #eafaf1; padding: 2px 7px; border-radius: 999px; }
.kpi-delta svg { transform: rotate(-90deg); }
.kpi-ring { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand-primary) 0 calc(var(--p) * 1%), var(--chrome-border) 0 100%); transition: background .8s ease; }
.kpi-ring span { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--chrome-text); }
.kpi-label { font-size: 13.5px; font-weight: 600; color: var(--chrome-text); margin-top: 12px; }
.kpi-sub { font-size: 11.5px; color: var(--chrome-text-muted); margin-top: 3px; }

.score-table th { background: var(--chrome-surface); white-space: nowrap; }
.score-table td { font-size: 13.5px; }
.train { display: flex; align-items: center; gap: 8px; }
.train-bar { width: 64px; height: 6px; border-radius: 4px; background: var(--chrome-surface-alt); overflow: hidden; }
.train-bar i { display: block; height: 100%; background: var(--brand-primary); }
.train span { font-size: 12px; color: var(--chrome-text-muted); }
.rag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.rag i { width: 9px; height: 9px; border-radius: 50%; }
.rag.high { color: #15803d; } .rag.high i { background: #16a34a; }
.rag.medium { color: #b45309; } .rag.medium i { background: #f59e0b; }
.rag.low { color: #b91c1c; } .rag.low i { background: #ef4444; }

@media (max-width: 1180px) {
  .score-kpis { grid-template-columns: repeat(3, 1fr); }
  .dreg-cards { grid-template-columns: 1fr; }
  .score-stats { grid-template-columns: 1fr; }
  .score-metrics { border-left: 0; padding-left: 0; border-top: 1px solid var(--chrome-border-soft); padding-top: 18px; }
}

/* ---- AI content studio ---- */
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cstudio .page-title { margin: 4px 0 0; }
.cs-new { height: 38px; }
.cs-lead { font-size: 13.5px; color: var(--chrome-text-muted); margin: 8px 0 20px; max-width: 920px; line-height: 1.5; }
.cs-flow { display: flex; align-items: stretch; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.cs-source, .cs-agent, .cs-result { background: #fff; border: 1px solid var(--chrome-border); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.cs-source { flex: 1.4; min-width: 320px; }
.cs-doc { width: 60px; height: 78px; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--chrome-border); box-shadow: 0 2px 8px rgba(16,24,40,.1); }
.cs-doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-doc-name { font-size: 14px; font-weight: 600; color: var(--chrome-text); }
.cs-doc-sub { font-size: 12px; color: var(--chrome-text-muted); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.cs-arrow { display: flex; align-items: center; color: var(--brand-primary); flex: none; }
.cs-agent { flex: 1; min-width: 220px; background: var(--brand-primary-soft); border-color: color-mix(in srgb, var(--brand-primary) 22%, #fff); }
.cs-agent-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-primary); color: #fff; display: grid; place-items: center; }
.cs-agent-t { font-size: 14px; font-weight: 600; color: var(--chrome-text); }
.cs-agent-sub { font-size: 12px; color: #15803d; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.cs-result { flex: 1; min-width: 220px; flex-direction: column; align-items: stretch; gap: 7px; }
.cs-rrow { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--chrome-text-muted); }
.cs-rrow b { font-size: 18px; font-weight: 600; color: var(--brand-primary-dark); min-width: 18px; }

.cs-track-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cs-track-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; color: var(--chrome-text); }
.cs-track-title svg { color: var(--brand-primary); }
.cs-track-meta { font-size: 13px; color: var(--chrome-text-muted); display: flex; align-items: center; gap: 12px; }
.cs-pill { display: inline-flex; align-items: center; gap: 5px; background: #eafaf1; color: #15803d; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.cs-clips { display: grid; grid-template-columns: repeat(5, 212px); gap: 18px; }
.clip-thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0a1733 center / cover no-repeat; display: flex; align-items: flex-end; padding: 12px 11px; cursor: pointer; box-shadow: 0 6px 18px rgba(8,12,30,.18); }
.clip-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.92); color: var(--brand-primary-dark); font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.clip-dur { position: absolute; top: 8px; right: 8px; background: rgba(8,12,30,.55); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.clip-play { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--brand-primary-dark); padding-left: 2px; box-shadow: 0 4px 12px rgba(8,12,30,.3); }
.clip-cap { position: relative; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.28; text-shadow: 0 1px 6px rgba(8,12,30,.55); }
.clip-foot { font-size: 11.5px; color: var(--chrome-text-muted); margin-top: 8px; text-align: center; }

@media (max-width: 1280px) { .cs-clips { grid-template-columns: repeat(3, 1fr); } }

/* structural-mirror screens: embed the captured+transformed real screen in an isolated frame */
.mirror-page { padding: 0; }
.mirror-frame { width: 100%; height: calc(100vh - 66px); border: 0; display: block; background: #fff; }

/* ============================================================
   Profile chassis -- shared by Partner Profile + Organization Profile
   (profile-shell.js). Left sidebar tab rail + right form area with a
   progress bar + Save. Measured from refs/bridge-live/user__profile +
   organization__profile (left rail ~270px, active tab = soft-blue pill).
   ============================================================ */
.prof { padding: 0; font-size: 13px; } /* base 13px to match the real portal (fidelity contract) */
.prof-wrap { display: grid; grid-template-columns: 24% 72%; min-height: calc(100vh - 66px); background: var(--chrome-page); } /* col-md-3 / col-md-9 proportions (sidebar ~460, main ~1382 at 1920) */
.prof-side { background: #fff; border-right: 1px solid var(--chrome-border); padding: 26px 0 16px; display: flex; flex-direction: column; }
.prof-side h3 { font-size: 22px; font-weight: 700; color: var(--chrome-text); padding: 0 22px 18px; margin: 0; }
.prof-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.prof-tab { display: block; padding: 15px 14px 15px 22px; border-radius: 8px; font-size: 13px; color: var(--chrome-text); cursor: pointer; transition: background .14s ease, color .14s ease; border: 0; background: transparent; text-align: left; width: 100%; } /* ~52px rows, left-indent 22px to align with the heading (real tab list is full-width) */
.prof-tab:hover { background: var(--chrome-surface-alt); }
.prof-tab.active { background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 600; }
.prof-tab.grayed { color: var(--chrome-text-faint); }
.prof-side-foot { margin-top: auto; padding: 16px 22px 4px; display: flex; flex-direction: column; gap: 10px; }
.prof-side-foot a { color: var(--brand-link); font-size: 13.5px; cursor: pointer; }

.prof-main { padding: 26px 30px 60px; overflow: auto; }
.prof-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.prof-prog { min-width: 320px; }
.prof-prog .pp-label { font-size: 13px; color: var(--chrome-text-muted); margin-bottom: 8px; }
.prof-prog .pp-bar { height: 7px; border-radius: 999px; background: var(--chrome-border); overflow: hidden; width: 330px; max-width: 100%; }
.prof-prog .pp-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; width: 0; transition: width .7s cubic-bezier(.22,.61,.36,1); }
.prof-prog .pp-pct { font-size: 13px; font-weight: 600; color: var(--chrome-text); margin-top: 6px; width: 330px; text-align: center; } /* real: % centered under the bar */
.prof-save { border-radius: 30px; font-size: 13px; padding: 8px 20px; } /* real Save: 68x35, radius 30, 13px */

.prof-pane { display: none; } /* no max-width cap -- form spans the main column like the real */
.prof-pane.active { display: block; }
.prof-sep { height: 1px; background: var(--chrome-border); margin: 34px 0 30px; } /* real cust-hr rhythm: photo 404 -> hr 453 -> fields 499 */

/* form fields (reuse .dfield input styling; profile grid on top) */
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; } /* real row pitch 99 (row 69 + 30) */
.prof-grid.one { grid-template-columns: 1fr; }
.prof-field { display: flex; flex-direction: column; gap: 7px; }
.prof-field.full { grid-column: 1 / -1; }
.prof-field label { font-size: 13px; color: var(--chrome-text-muted); }
.prof-field label .req { color: var(--danger); margin-left: 2px; }
.prof-field input, .prof-field select, .prof-field textarea { font: inherit; font-size: 13px; padding: 9px 12px; border: 1px solid var(--chrome-border); border-radius: 4px; background: #fff; color: var(--chrome-text); width: 100%; } /* real form-control: 13px, pad 6-12, radius 4 */
.prof-field textarea { resize: vertical; min-height: 90px; }
.prof-field input:focus, .prof-field select:focus, .prof-field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.prof-field .hint { font-size: 12px; color: var(--chrome-text-faint); }
.prof-note { color: var(--chrome-text-muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 18px; }

/* image upload field (profile/org logo) */
.prof-img { display: flex; flex-direction: column; gap: 10px; }
.prof-img .pi-box { width: 150px; height: 150px; border: 1px solid var(--chrome-border); border-radius: 5px; background: #fff center / contain no-repeat; display: grid; place-items: center; overflow: hidden; }
.prof-img.logo .pi-box { width: 280px; height: 130px; }
.prof-img .pi-box img { max-width: 100%; max-height: 100%; }
/* real user avatar = ROUND image/monogram inside the square bordered frame (logos stay rectangular) */
.prof-img:not(.logo) .pi-box img { width: 126px; height: 126px; border-radius: 50%; object-fit: cover; }
.prof-img .pi-mono { width: 126px; height: 126px; border-radius: 50%; background: var(--brand-primary-soft); display: grid; place-items: center; font: 600 34px var(--font-ui); color: var(--brand-primary); }
.prof-img .pi-acts { display: flex; gap: 16px; }
.prof-img .pi-acts a { color: var(--brand-link); font-size: 13.5px; cursor: pointer; }

/* faux rich-text editor (About...) -- toolbar + body, faithful look, non-functional */
/* real (summernote): 42px grey toolbar of BORDERED button GROUPS (33x31 joined buttons, some
   with dropdown carets), 100px editing area, then a 9px statusbar with a center resize grip */
.prof-rte { border: 1px solid var(--chrome-border); border-radius: 4px; overflow: hidden; background: #fff; }
.prof-rte .rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 5px; border-bottom: 1px solid var(--chrome-border); background: var(--chrome-surface); }
.prof-rte .rte-group { display: inline-flex; }
.prof-rte .rte-bar button { min-width: 33px; height: 31px; padding: 0 7px; border: 1px solid var(--chrome-border); border-right-width: 0; background: #fff; color: var(--chrome-text); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.prof-rte .rte-group button:first-child { border-radius: 3px 0 0 3px; }
.prof-rte .rte-group button:last-child { border-radius: 0 3px 3px 0; border-right-width: 1px; }
.prof-rte .rte-group button:only-child { border-radius: 3px; }
.prof-rte .rte-bar button:hover { background: var(--chrome-surface-alt); }
.prof-rte .rte-bar .caret { font-size: 9px; opacity: .6; }
.prof-rte .rte-body { min-height: 100px; padding: 10px 12px; font-size: 13px; color: var(--chrome-text); }
.prof-rte .rte-status { height: 9px; background: var(--chrome-surface); border-top: 1px solid var(--chrome-border); display: grid; place-items: center; cursor: ns-resize; }
.prof-rte .rte-status i { width: 22px; height: 3px; border-radius: 2px; background: var(--chrome-border); }

/* checkbox grids (languages, industries, asset preferences) */
.prof-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.prof-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--chrome-text); }
.prof-check input { width: 17px; height: 17px; accent-color: var(--brand-primary); }

/* activate-social cards */
/* Personal tab: email column pinned to the RIGHT edge; notification note = white bordered
   card, right-aligned, 398px (real .email-notification-strip x1452 w398) */
.pp-emailcol { align-items: flex-end; text-align: right; }
.pp-emailcol .pp-email { font-size: 15px; color: var(--brand-link); cursor: pointer; }
.pp-emailcol .pp-notify { max-width: 398px; background: #fff; border: 1px solid var(--chrome-border); border-radius: 6px; padding: 12px 14px; margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--chrome-text-muted); text-align: right; }
.pp-emailcol .pp-notify a { color: var(--brand-link); cursor: pointer; }

.prof-social-card { border: 1px solid var(--chrome-border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prof-social-card .sc-net { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; color: var(--chrome-text); min-width: 180px; }
.prof-social-card .sc-net svg { color: var(--brand-primary); }
.prof-social-card .sc-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }

.btn.disabled, .btn[disabled] { background: var(--chrome-border); color: var(--chrome-text-faint); cursor: not-allowed; pointer-events: none; }

/* color-and-logo grid (org white-label) */
.prof-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 720px; }
.prof-color { display: flex; flex-direction: column; gap: 8px; }
.prof-color label { font-size: 13px; color: var(--chrome-text-muted); }
.prof-color .pc-swatch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--chrome-border); border-radius: 8px; padding: 7px 10px; }
.prof-color .pc-chip { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.prof-color .pc-hex { font-size: 13px; color: var(--chrome-text); font-family: var(--font-ui); }

/* incentive panel (Check Your Incentives tab + reused by the Incentives screen) */
.pi-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pi-stat { border: 1px solid var(--chrome-border); border-radius: 12px; padding: 16px 18px; background: #fff; }
.pis-label { font-size: 12.5px; color: var(--chrome-text-muted); margin-bottom: 8px; }
.pis-val { font-size: 24px; font-weight: 700; color: var(--chrome-text); display: flex; align-items: center; }
.pis-val.amber { color: var(--brand-accent); } .pis-val.green { color: var(--ok); } .pis-val.blue { color: var(--brand-primary); } /* accent = MM orange, never yellow/gold (Josh brand rule) */
.pi-ratio { text-align: center; }
.pir-title { font-size: 14px; font-weight: 600; color: var(--chrome-text); margin-bottom: 8px; }

/* achievements */
.ach-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 820px; }
.ach-cert { border: 1px solid var(--chrome-border); border-radius: 12px; overflow: hidden; background: #fff; }
.ach-cert-top { height: 74px; display: grid; place-items: center; color: #fff; }
.ach-cert-body { padding: 14px 16px; }
.ach-cert-title { font-size: 14.5px; font-weight: 600; color: var(--chrome-text); }
.ach-cert-meta { font-size: 12.5px; color: var(--chrome-text-muted); margin-top: 4px; }
.ach-badges { display: flex; flex-wrap: wrap; gap: 22px; }
.ach-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--chrome-text-muted); width: 84px; text-align: center; }
.ach-badge-ring { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center; }

/* (the invented "Incentive Report" page styles died 2026-07-02 -- the real portal has no
   #incentives page; #reward/catalog + #points/redemption/status live in rewards.js) */

/* Notifications drawer (bell -> right-side slide-in panel over a dimmed dashboard) */
.notif-backdrop { position: fixed; inset: 0; background: rgba(10,8,59,.35); z-index: 1200; opacity: 0; transition: opacity .2s ease-out; }
.notif-backdrop.show { opacity: 1; }
.notif-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 392px; max-width: 92vw; background: #fff; z-index: 1201; box-shadow: -12px 0 40px rgba(10,8,59,.18); transform: translateX(100%); transition: transform .22s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column; }
.notif-drawer.show { transform: translateX(0); }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.notif-head h3 { font-size: 17px; font-weight: 700; color: var(--chrome-text); margin: 0; }
.notif-head .notif-x { border: 0; background: transparent; color: var(--chrome-text-muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.notif-head .notif-x:hover { background: var(--chrome-surface-alt); }
.notif-tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--chrome-border); }
.notif-tab { border: 0; background: transparent; padding: 8px 0 12px; font: inherit; font-size: 14px; color: var(--chrome-text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.notif-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); font-weight: 600; }
.notif-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; }
.notif-toolbar .select.sm { cursor: pointer; }
.notif-toolbar .notif-sort { margin-left: auto; border: 0; background: transparent; color: var(--chrome-text-muted); cursor: pointer; padding: 4px; }
.notif-body { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; min-height: 300px; color: var(--chrome-text-muted); text-align: center; }
.notif-empty .ne-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center; }
.notif-empty .ne-title { font-size: 15px; font-weight: 600; color: var(--chrome-text); }
.notif-empty .ne-sub { font-size: 13px; max-width: 240px; }
.notif-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--chrome-border-soft); }
.notif-row .nr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-primary); margin-top: 5px; flex: none; }
.notif-row .nr-text { font-size: 13.5px; color: var(--chrome-text); }
.notif-row .nr-time { font-size: 12px; color: var(--chrome-text-faint); margin-top: 3px; }
/* deep-link fallback: the panel docked right inside the content area (not a fixed overlay) */
.notif-drawer.notif-static { position: static; transform: none; height: 100%; margin-left: auto; box-shadow: -8px 0 24px rgba(10,8,59,.08); }

/* Reports screen (#reports) -- report-type switcher + ECharts stats panel + KPI donuts + table */
.rpt-typebar { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.rpt-type { border: 1px solid var(--chrome-border); background: #fff; color: var(--chrome-text-muted); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; cursor: pointer; transition: all .14s ease; }
.rpt-type:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.rpt-type.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 600; }
.rpt2 .rpt-generate { align-self: flex-end; }
.rpt-stats-card .rpt-stats { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: center; }
.rpt-chart { width: 100%; min-height: 300px; }
.rpt-metrics { display: flex; flex-direction: column; gap: 16px; }
.rpt-metric .rm-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--chrome-text-muted); margin-bottom: 6px; }
.rpt-metric .rm-top b { font-size: 16px; color: var(--chrome-text); }
.rpt-metric .rm-bar { height: 6px; border-radius: 999px; background: var(--chrome-border); overflow: hidden; }
.rpt-metric .rm-bar i { display: block; height: 100%; background: var(--brand-primary); border-radius: 999px; }
/* KPI STRIP -- the real report's fused 4x2 band (audit 2026-07-01): thin cell separators,
   small muted label left, LARGE ORANGE value right-aligned; ratio cells lead with a small donut */
.rpt-kstrip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--chrome-border); border-radius: 8px; background: #fff; margin: 18px 0; overflow: hidden; }
.rk-cell { display: flex; align-items: center; gap: 12px; padding: 19px 22px; border-right: 1px solid var(--chrome-border-soft); min-height: 74px; }
.rk-cell:nth-child(4n) { border-right: 0; }
.rk-cell:nth-child(n+5) { border-top: 1px solid var(--chrome-border-soft); }
.rk-cell .rk-l { font-size: 12.5px; color: var(--chrome-text-muted); line-height: 1.3; }
.rk-cell .rk-v { font-size: 25px; font-weight: 700; color: var(--brand-accent); margin-left: auto; white-space: nowrap; }
.rk-cell .rpt-donut.sm { width: 44px; height: 44px; flex: none; }
.rpt-table-card { margin-top: 4px; }
.rpt-tools { display: inline-flex; gap: 4px; }
.rpt-tool { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--chrome-text-muted); cursor: pointer; }
.rpt-tool:hover { background: var(--chrome-surface-alt); color: var(--chrome-text); }
.rpt-table td { color: var(--chrome-text); }

@media (max-width: 1024px) {
  .rpt-stats-card .rpt-stats { grid-template-columns: 1fr; }
  .rpt-kstrip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .prof-wrap { grid-template-columns: 1fr; }
  .prof-side { border-right: 0; border-bottom: 1px solid var(--chrome-border); }
  .prof-tabs { flex-direction: row; flex-wrap: wrap; }
  .prof-tab { width: auto; }
  .prof-grid, .prof-checks, .prof-colors, .pi-statrow, .ach-certs { grid-template-columns: 1fr; }
  .prof-main { padding: 20px 16px 48px; }
}

/* ===== incentives capture round 2026-07-02 (pure-fidelity lockdown Step 1) ==================
   The staged Redeem modal + the Incentive Report page styles were REMOVED -- both were invented
   (the real Redeem navigates to #reward/catalog; there is no #incentives page). Catalog/orders
   styles live in rewards.js. Only the dashboard widget's captured doc icon stays here. */
.tile.icamp .ic-earned { display: flex; align-items: center; }
.tile.icamp .ic-earned .icon-right { margin-left: auto; color: var(--chrome-text-faint); display: inline-flex; border: 0; background: none; padding: 0; cursor: pointer; }
.tile.icamp .ic-earned .icon-right:hover { color: var(--brand-primary); }
/* Redeem = a NAVIGATION <a> (real: btn-rewards -> #reward/catalog); real chrome = a lighter-blue
   filled button (~134x34) on the primary panel (v6_03 capture: #4caffc on #116ccf) */
.rewards-panel .rc-redeem { margin-top: 22px; width: 134px; height: 34px; border-radius: 4px;
  background: color-mix(in srgb, var(--brand-primary) 58%, #bcd9ff); color: #fff; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rewards-panel .rc-redeem:hover { background: color-mix(in srgb, var(--brand-primary) 72%, #bcd9ff); }

/* ============================================================================
   asset library round 2026-07-02 -- viewing-fidelity polish (full-portal pass):
   search box (magnifier LEFT + search-tips info-circle RIGHT, matching the real
   second-level filter), the self-made search-tips popover, and the on-thumb hover
   affordances. All additive; nothing above this block is touched.
   ============================================================================ */
/* the real search box has the magnifier at the leading edge and the info-tips icon
   trailing; searchbox is flex(icon, input, button) so ordering falls out naturally */
/* lift the toolbar (and its popover child) above the card grid so the tips bubble
   is not painted under the cards */
.asset-toolbar { position: relative; z-index: 30; }
.asset-search { position: relative; }
.asset-search svg:first-child { flex: none; color: var(--chrome-text-faint); }
.asset-search .al-tips { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 -6px 0 2px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--brand-primary); cursor: pointer; }
.asset-search .al-tips:hover { background: var(--brand-primary-soft); }
/* self-made (non-native) search-tips popover */
.al-tips-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 320px; background: #fff; border: 1px solid var(--chrome-border); border-radius: 10px; box-shadow: 0 14px 38px rgba(16,24,40,.16); padding: 13px 16px 14px; color: var(--chrome-text); font-size: 12.5px; line-height: 1.5; }
.al-tips-pop .al-tips-h { font-weight: 600; color: var(--chrome-text); margin-bottom: 7px; }
.al-tips-pop ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; color: var(--chrome-text-muted); }

/* file-row hover: lift the preview eye + actions the way the real rows reveal them.
   the actions stay visible (no reveal-on-hover hiding, so touch works) but the eye
   gets a clear affordance on row hover to match the capture's preview cue */
.frow .factions { opacity: .82; transition: opacity .15s; }
.frow:hover .factions, .frow:focus-within .factions { opacity: 1; }
.frow.clickable:hover .fbtn[title="Preview"] { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--brand-primary-soft); }

/* ============================================================================
   events calendar 2026-07-02 -- Marketing / Events (#manage/calendar/eventscalendar).
   Vanilla CSS-grid month calendar cloned from refs/bridge-live/manage__calendar__eventscalendar:
   4 stat cards, title + Events Calendar|Event tabs, Create Event toolbar, a 7-col month grid
   with weekday header + 6 week rows, today highlighted (MM blue tint, NOT the capture's gold),
   brand-blue event pills, and a small non-native event popover. No red stat band (capture's red
   Past Events -> neutral navy tint). All additive; nothing above this block is touched.
   ============================================================================ */
.evcal { gap: 0; }
/* stat cards -- soft-tinted, on-brand (blue / navy / green / neutral; no red, no gold) */
.evc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.evc-stat { border: 1px solid var(--chrome-border); border-radius: 12px; padding: 14px 16px 16px; background: #fff; }
.evc-stat.blue { background: var(--brand-primary-soft); border-color: #cfe0fb; }
.evc-stat.navy { background: #eef2fb; border-color: #d8e0f2; }
.evc-stat.green { background: #eaf7ef; border-color: #cdebd7; }
.evc-stat.muted { background: var(--chrome-surface-alt); border-color: var(--chrome-border); }
.evc-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evc-stat-l { font-size: 13px; color: var(--chrome-text-muted); }
.evc-stat-ic { color: var(--brand-primary); display: inline-flex; }
.evc-stat.navy .evc-stat-ic { color: var(--brand-navy-2); }
.evc-stat.green .evc-stat-ic { color: var(--ok); }
.evc-stat.muted .evc-stat-ic { color: var(--chrome-text-muted); }
.evc-stat-v { margin-top: 6px; font-size: 30px; font-weight: 600; color: var(--chrome-text); }

/* title row + tab strip */
.evc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.evc-head .page-title { margin: 4px 0 8px; }
.evc-tabs { display: inline-flex; gap: 4px; }
.evc-tab { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--chrome-text-muted); padding: 6px 4px 8px; border-bottom: 2px solid transparent; cursor: pointer; }
.evc-tab.on { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* toolbar */
.evc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.evc-tools { display: inline-flex; gap: 8px; }
.evc-tool { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--chrome-border); border-radius: 999px; background: #fff; color: var(--chrome-text-muted); cursor: pointer; }
.evc-tool:hover { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--brand-primary-soft); }

/* calendar card */
.evc-cal { overflow: hidden; }
.evc-calhd { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--chrome-border); }
.evc-month { font-size: 18px; font-weight: 600; color: var(--chrome-text); }
.evc-nav { display: inline-flex; align-items: center; gap: 8px; }
.evc-today { border: 1px solid var(--chrome-border); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--chrome-text); cursor: pointer; }
.evc-today:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.evc-navbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--chrome-border); border-radius: 999px; background: #fff; color: var(--chrome-text-muted); cursor: pointer; }
.evc-navbtn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.evc-prev svg { transform: rotate(180deg); }

/* month grid */
.evc-wdh { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--chrome-surface); border-bottom: 1px solid var(--chrome-border); }
.evc-wd { padding: 9px 10px; font-size: 12px; font-weight: 600; color: var(--chrome-text-muted); text-align: center; }
.evc-weeks { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(104px, auto); }
.evc-day { border-right: 1px solid var(--chrome-border); border-bottom: 1px solid var(--chrome-border); padding: 4px 5px 6px; min-height: 104px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.evc-day:nth-child(7n) { border-right: 0; }
.evc-day.out { background: var(--chrome-surface); }
.evc-day.out .evc-daynum { color: var(--chrome-text-faint); }
.evc-day.today { background: var(--brand-primary-soft); }
.evc-day-top { display: flex; align-items: center; justify-content: space-between; }
.evc-daynum { font-size: 12.5px; font-weight: 600; color: var(--chrome-text); padding: 2px 4px; }
.evc-day.today .evc-daynum { background: var(--brand-primary); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; }
.evc-add { width: 20px; height: 20px; display: inline-grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--chrome-text-faint); cursor: pointer; opacity: 0; transition: opacity .12s; }
.evc-day:hover .evc-add { opacity: 1; }
.evc-add:hover { color: var(--brand-primary); background: #fff; }
.evc-day-events { display: flex; flex-direction: column; gap: 3px; }
.evc-pill { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 0; background: var(--brand-primary-soft); color: var(--brand-primary-dark); border-radius: 5px; padding: 3px 6px; font: inherit; font-size: 11.5px; cursor: pointer; overflow: hidden; }
.evc-pill:hover { background: #d7e4fb; }
.evc-pill-dot { flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-primary); }
.evc-pill-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-pill.past { background: var(--chrome-surface-alt); color: var(--chrome-text-muted); }
.evc-pill.past .evc-pill-dot { background: var(--chrome-text-faint); }
.evc-more { font-size: 11px; color: var(--chrome-text-muted); padding: 1px 6px; }

/* list ("Event" tab) view */
.evc-listcard { padding: 6px; }
.evc-list { display: flex; flex-direction: column; }
.evc-lrow { display: grid; grid-template-columns: 200px 1fr 120px; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--chrome-border); background: transparent; padding: 12px 14px; font: inherit; cursor: pointer; }
.evc-lrow:last-child { border-bottom: 0; }
.evc-lrow:hover { background: var(--chrome-surface); }
.evc-ldate { font-size: 12.5px; color: var(--chrome-text-muted); }
.evc-ltitle { font-size: 13.5px; font-weight: 600; color: var(--chrome-text); }
.evc-ltype { font-size: 12px; color: var(--brand-primary); text-align: right; }
.evc-lrow.past .evc-ltitle { color: var(--chrome-text-muted); }
.evc-empty { padding: 22px; color: var(--chrome-text-muted); }

/* small non-native event popover */
.evc-pop-back { position: fixed; inset: 0; background: rgba(16,24,40,.28); opacity: 0; transition: opacity .16s; z-index: 1400; }
.evc-pop-back.in { opacity: 1; }
.evc-pop { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: 380px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; box-shadow: 0 22px 60px rgba(10,8,59,.28); z-index: 1401; opacity: 0; transition: opacity .16s, transform .16s; padding: 0 0 18px; }
.evc-pop.in { opacity: 1; transform: translate(-50%, -50%); }
.evc-pop-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.evc-pop-type { font-size: 11.5px; font-weight: 600; color: var(--brand-primary); background: var(--brand-primary-soft); border-radius: 999px; padding: 3px 10px; }
.evc-pop-x { border: 0; background: transparent; color: var(--chrome-text-muted); cursor: pointer; display: inline-grid; place-items: center; padding: 2px; }
.evc-pop-x:hover { color: var(--chrome-text); }
.evc-pop-title { padding: 10px 16px 0; font-size: 18px; font-weight: 600; color: var(--chrome-text); }
.evc-pop-meta { padding: 6px 16px 0; font-size: 13px; color: var(--chrome-text-muted); }
.evc-pop-desc { padding: 12px 16px 0; font-size: 13.5px; line-height: 1.5; color: var(--chrome-text); }
.evc-pop-foot { padding: 16px 16px 0; }
.evc-pop-reg { width: 100%; }
.evc-pop-reg[disabled] { background: var(--chrome-surface-alt); color: var(--chrome-text-faint); cursor: default; }

/* toast (reuses the house pattern) */
.evc-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--chrome-text); color: #fff; border-radius: 10px; padding: 11px 16px; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; box-shadow: 0 14px 40px rgba(10,8,59,.3); opacity: 0; transition: opacity .2s, transform .2s; z-index: 1500; }
.evc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   backfill QA 2026-07-02 -- fidelity fixes for org-profile / notifications /
   reports, verified against refs/bridge-live captures. One appended block.
   ===================================================================== */

/* Notifications drawer: the capture spreads the two folder tabs across the
   drawer width -- Activities left, Announcements right-aligned -- not clustered
   at the left with a fixed gap. (refs/bridge-live/notifications/shot.png) */
.notif-tabs { justify-content: space-between; }

/* =====================================================================
   drip round 2026-07-02 (lockdown Step 2) -- tile hover chrome trued-up vs
   the LIVE captures (drip2/ + *_hover.png): "Click Here to View"/"Click to
   Edit" band + Preview/Edit pill + thumb mini buttons + fixed tooltips +
   the drip stat strip and red stop badge. Replaces the invented eyeball.
   ===================================================================== */
.pb-asset .pb-img-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(20,24,32,.5); }
.pb-hint { background: rgba(16,18,24,.85); color: #fff; font-size: 12px; border-radius: 3px; padding: 4px 11px; }
.pb-pill { background: #fff; color: #333; border: 0; border-radius: 999px; font: inherit; font-size: 13px; padding: 7px 28px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.pb-pill:hover { color: var(--brand-primary); }
.pb-minis { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.pb-minis button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(70,74,82,.72); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pb-minis button:hover { background: rgba(40,44,52,.9); }
.pb-dripstats { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 18px; padding: 7px 10px; background: rgba(16,18,24,.55); color: #fff; font-size: 11px; opacity: 0; transition: opacity .15s ease; border-radius: 6px 6px 0 0; }
.pb-dripstats span { display: inline-flex; align-items: center; gap: 4px; }
.pb-asset:hover .pb-dripstats { opacity: 1; }
.pb-dripstop { margin: 0 0 15px; } /* real gap badge-bottom(790)->name-top(~808), measured */
.pb-dripstop button { width: 31px; height: 31px; border: 0; border-radius: 6px; background: #b0332e; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pb-dripstop button i { width: 10px; height: 10px; border: 2px solid #fff; display: block; }
.pb-dripstop button:hover { background: #8f2a26; }
.pb-tip-status { position: fixed; z-index: 1450; width: 228px; background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: 0 8px 26px rgba(20,30,50,.18); font-size: 12.5px; }
.pb-tip-status .h { text-align: center; background: #f7f7f7; border-bottom: 1px solid #ececec; color: #333; padding: 8px 10px; border-radius: 4px 4px 0 0; }
.pb-tip-status .b { color: #333; padding: 10px 14px 12px; line-height: 1.5; }
.pb-tip-status::after { content: ''; position: absolute; bottom: -7px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; filter: drop-shadow(0 1px 0 #dfe3e8); }
.pb-tip-name { position: fixed; z-index: 1450; width: 232px; background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: 0 8px 26px rgba(20,30,50,.18); font-size: 12px; color: #333; padding: 12px 14px; line-height: 1.5; }
.pb-tip-name b { display: block; margin-bottom: 2px; }
.pb-tip-name div { margin-bottom: 8px; color: #444; }
.pb-tip-name::before { content: ''; position: absolute; left: -7px; top: 26px; border: 7px solid transparent; border-left: 0; border-right-color: #fff; filter: drop-shadow(-1px 0 0 #dfe3e8); }
/* the real drip thumb is SQUARE (257x257 at real tile scale) -- keep the signed-off tile
   width, square the drip thumb inside it */


/* =====================================================================
   usermenu popover round 2026-07-02 (lockdown Step 2.5) -- the avatar
   popover rebuilt from the LIVE capture (_usermenu2/, .profile-dropdown-v5
   350x373): User Profile section w/ completion-ring avatar + engagement/
   balance rows, Organization w/ profile bar + logo, Download Mobile App,
   red Log out. Replaces the flat link list (a hidden legacy node).
   ===================================================================== */
.dd.ddp { width: 350px; padding: 0; }
.ddp-sec { padding: 14px 18px 12px; border-bottom: 1px solid var(--chrome-border-soft); position: relative; }
.ddp-label { font-size: 12px; color: var(--chrome-text-muted); }
.ddp-viewrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ddp-view { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--chrome-text-muted); text-decoration: none; }
.ddp-view:hover { color: var(--brand-primary); }
.ddp-user { display: flex; gap: 16px; align-items: center; }
.ddp-ring { position: relative; width: 92px; height: 92px; flex: none; display: block; }
.ddp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ddp-ring img, .ddp-ring .ddp-mono { position: absolute; inset: 8px; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.ddp-ring .ddp-mono { background: var(--brand-primary-soft); color: var(--brand-primary); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 22px; }
.ddp-uinfo { flex: 1; min-width: 0; }
.ddp-uinfo > b { display: block; font-size: 15px; font-weight: 700; color: var(--chrome-text); }
.ddp-role { display: block; font-size: 12.5px; color: var(--chrome-text-muted); margin: 1px 0 8px; }
.ddp-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 5px; }
.ddp-row .l { color: var(--chrome-text-muted); }
.ddp-row .v { display: inline-flex; align-items: center; gap: 6px; color: var(--chrome-text); font-weight: 600; }
.ddp-row .v svg { color: var(--chrome-text-faint); }
.ddp-row .v.amber svg { color: var(--brand-accent); }
.ddp-orgrow { display: flex; align-items: center; gap: 14px; }
.ddp-org { flex: 1; min-width: 0; }
.ddp-org .l { font-size: 12.5px; color: var(--chrome-text-muted); }
.ddp-org .l b { color: var(--brand-primary); font-weight: 600; }
.ddp-org .bar { height: 5px; border-radius: 999px; background: var(--chrome-border-soft); margin-top: 7px; overflow: hidden; max-width: 110px; }
.ddp-org .bar i { display: block; height: 100%; background: var(--brand-primary); border-radius: 999px; }
.ddp-orglogo { height: 34px; width: auto; max-width: 130px; object-fit: contain; flex: none; }
.ddp-apps { display: flex; align-items: center; gap: 16px; margin-top: 9px; color: var(--chrome-text); }
.ddp-apps span { display: inline-flex; align-items: center; }
.ddp-logout { display: flex; align-items: center; gap: 9px; padding: 13px 18px; font-size: 13px; font-weight: 600; color: #e02b20; text-decoration: none; }
.ddp-logout:hover { background: #fdf2f1; }

/* =====================================================================
   asset library COLLECTION view round 2026-07-02 -- the metro search
   layout captured live (refs/bridge-live/asset__collection) + the v05
   card system lifted from the capture's own CSS (the sandbox asset
   backend hung, so file DATA is ours; chrome + card rules are real).
   ===================================================================== */
.alv5 { padding: 26px 40px 50px; background: #fff; min-height: 100vh; }
.alv5-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.alv5-head h1 { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 600; color: #2f3542; margin: 0; }
.alv5-head h1 svg { color: var(--brand-primary); }
.alv5-tabs { display: flex; gap: 28px; }
.alv5-tabs a { font-size: 13.5px; color: var(--chrome-text-muted); cursor: pointer; padding-bottom: 9px; border-bottom: 2px solid transparent; }
.alv5-tabs a.on { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.alv5-search { display: flex; align-items: center; gap: 16px; height: 57px; border: 1px solid #d8dce2; border-radius: 10px; padding: 0 20px 0 18px; margin-bottom: 40px; color: #9aa3af; }
.alv5-search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 15px; color: #333; background: transparent; }
.alv5-search input::placeholder { color: #9aa3af; }
.alv5-search .al-tips { border: 0; background: none; color: #778899; cursor: pointer; display: inline-flex; padding: 4px; }
.alv5-pills { display: flex; gap: 16px; flex-wrap: wrap; }
.alv5-pill { display: flex; align-items: center; justify-content: space-between; width: 247px; height: 56px; padding: 0 14px 0 20px; background: #fff; border: 0; border-radius: 8px; box-shadow: 0 1px 6px rgba(20,30,50,.12); font: inherit; cursor: pointer; }
.alv5-pill .t { font-size: 13.5px; font-weight: 700; color: #2f3542; }
.alv5-pill .chip { min-width: 22px; height: 18px; border-radius: 9px; background: #eef1f5; color: #55606e; font-size: 11px; display: grid; place-items: center; padding: 0 6px; }
.alv5-pill.on { background: var(--brand-primary); }
.alv5-pill.on .t { color: #fff; }
.alv5-pill.on .chip { background: rgba(255,255,255,.25); color: #fff; }
.alv5-divider { height: 1px; background: #e3e6ea; margin: 22px 0 0; }
.alv5-filters { display: flex; gap: 24px; padding: 32px 0 6px; }
.alv5-dd { display: inline-flex; align-items: center; gap: 26px; height: 42px; padding: 0 18px 0 20px; border: 1px solid #d8dce2; border-radius: 21px; background: #fff; font: inherit; font-size: 13px; color: var(--chrome-text-muted); cursor: pointer; }
/* the v05 card grid (rules from the capture's CSS: li = 25% - 26, min 394, marg 15 13) */
.alv5-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; margin-top: 10px; }
.alv5-grid .screen-skeleton, .alv5-grid .empty { grid-column: 1 / -1; } /* loader + empty state span the whole row */
.alv5-card { border: 3px solid transparent; box-sizing: border-box; border-radius: 5px; cursor: pointer; }
.alv5-thumb { position: relative; width: 100%; padding-top: 100%; border-radius: 5px; background: #d9dce1; margin-bottom: 10px; overflow: hidden; }
.alv5-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8f9aa8; }
.alv5-thumb .ph svg { width: 104px; height: 104px; }
.alv5-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.alv5-view { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(20,24,32,.35); }
.alv5-thumb:hover .alv5-view { display: flex; }
.alv5-view .pill { min-width: 100px; height: 30px; line-height: 30px; text-align: center; padding: 0 15px; border-radius: 15px; font-size: 13px; color: #2f3542; background: #f1f2f6; }
.alv5-title { height: 44px; padding: 0 5px; font-size: 16px; font-weight: 500; line-height: 22px; color: #2f3542; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 10px; } /* 2 lines x 22px; 38px was clipping 2-line titles (Josh 2026-07-03) */
.alv5-desc { height: 38px; padding: 0 5px; font-size: 13px; color: #778899; line-height: 19px; margin-bottom: 15px; overflow: hidden; }
.alv5-foot { display: flex; align-items: center; justify-content: space-between; height: 44px; border-top: 1px solid #d9dce1; padding: 5px 0 0; box-sizing: border-box; }
.alv5-foot .acts { display: flex; gap: 2px; padding-left: 5px; }
.alv5-foot .fbtn { width: 32px; height: 32px; border: 0; background: none; border-radius: 5px; color: #778899; font-size: 18px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.alv5-foot .fbtn:hover { background: rgba(52,111,226,.1); color: var(--brand-primary); }
.alv5-foot .fbtn.info { margin-right: 3px; }
/* responsive columns are handled by the grid's auto-fill/minmax -- no per-width card overrides needed */
