/* App shell — light-themed authenticated layout (licensee / brand-owner POVs).
   Built on tokens.css + base.css. */

.app-shell { min-height: 100vh; background: var(--bc-light); }

/* ── Top nav ────────────────────────────────────────────────────────── */
.app-topnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  height: 74px; padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--bc-light-gray);
}
.app-topnav__logo { flex: none; display: flex; align-items: center; }
.app-topnav__logo img { height: 42px; width: auto; display: block; }

/* Stretch the nav to the full bar height so each link's underline lands on
   the header's bottom edge (a tab indicator), not floating mid-bar. */
.app-nav { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: stretch; gap: 2px; }
.app-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; white-space: nowrap;
  color: var(--bc-gray); font-weight: 600; font-size: .92rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.app-nav a:hover { color: var(--ink); }
.app-nav a.is-active { color: var(--bc-primary); border-bottom-color: var(--bc-primary); }
.app-nav svg { width: 18px; height: 18px; flex: none; }

.app-topnav__right { flex: none; display: flex; align-items: center; gap: 10px; }
.app-user { display: flex; align-items: center; gap: 9px; color: var(--bc-gray); font-weight: 600; font-size: .9rem; }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bc-primary); color: var(--bc-white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.app-iconbtn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--radius-sm); border: 1px solid var(--bc-light-gray);
  background: var(--surface); color: var(--bc-gray); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.app-iconbtn:hover { color: var(--ink); border-color: var(--bc-gray); background: var(--bc-light); }
.app-iconbtn svg { width: 18px; height: 18px; }
.app-topnav__right form { margin: 0; display: flex; }

/* Workspace switcher dropdown */
.app-switch { position: relative; }
.app-switch.is-open .app-switch__toggle { color: var(--ink); border-color: var(--bc-gray); background: var(--bc-light); }
.app-switch__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 264px; padding: 6px; background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(15,23,42,.16); animation: app-switch-in .14s cubic-bezier(.4,0,.2,1); }
@keyframes app-switch-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.app-switch__label { padding: 8px 10px 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bc-gray); }
.app-switch__opt { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; transition: background .12s ease; }
.app-switch__opt:hover { background: var(--bc-light); }
.app-switch__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bc-light); color: var(--bc-gray); }
.app-switch__ic svg { width: 17px; height: 17px; }
.app-switch__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-switch__name { font-weight: 700; font-size: .9rem; }
.app-switch__sub { font-size: .76rem; color: var(--bc-gray); }
.app-switch__check { flex: none; width: 17px; height: 17px; color: var(--bc-primary); opacity: 0; }
.app-switch__opt.is-active { background: color-mix(in srgb, var(--bc-primary) 8%, transparent); }
.app-switch__opt.is-active .app-switch__ic { background: color-mix(in srgb, var(--bc-primary) 16%, var(--surface)); color: var(--bc-primary); }
.app-switch__opt.is-active .app-switch__check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .app-switch__menu { animation: none; } }

.app-content { padding: 28px; animation: app-enter .22s ease both; }
/* Fade the page content in on each navigation (switching nav tabs) — the topbar stays put. */
@keyframes app-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app-content { animation: none; } }

/* ── Panels ─────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--bc-light-gray);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.panel + .panel { margin-top: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel__head h2 { font-size: 1.1rem; }

/* ── Stat cards ─────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { background: var(--glass-card-bg); border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); padding: 22px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-card-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .stat-card { background: var(--surface); } }
.stat-card__label { color: var(--bc-gray); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1; }

/* ── Two-up grid ────────────────────────────────────────────────────── */
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* ── Brand browse grid ──────────────────────────────────────────────── */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.brand-card { background: var(--glass-card-bg); border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-card-shadow); transition: border-color .15s ease; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .brand-card { background: var(--surface); } }
.brand-card:hover { border-color: color-mix(in srgb, var(--bc-primary) 40%, var(--bc-light-gray)); }
.brand-card__logo { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--bc-light); color: var(--bc-gray); font-weight: 700; letter-spacing: .03em; }
.brand-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand-card__name { font-weight: 700; color: var(--ink); }
.brand-card__meta { color: var(--bc-gray); font-size: .85rem; }
.brand-card__foot { margin-top: auto; padding-top: 12px; }

/* ── Toolbar / inputs ───────────────────────────────────────────────── */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.input {
  flex: 1; min-width: 220px;
  padding: .6em .9em;
  border: 1px solid var(--bc-light-gray);
  border-radius: var(--radius-sm);
  font: inherit; color: var(--bc-text); background: var(--surface);
}
.input:focus { outline: none; border-color: var(--bc-primary); box-shadow: 0 0 0 3px var(--bc-primary-light); }
/* Native <select> styled to match text inputs, with a custom caret. */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238695a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select.input::-ms-expand { display: none; }
/* Date/time controls: theme the native picker + keep the caret tidy. */
/* Follow the APP theme (tokens set color-scheme per data-theme), not the OS —
   otherwise the native date/time pickers render in the OS scheme and clash. */
input[type="date"].input, input[type="time"].input { color-scheme: inherit; }
.input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; transition: opacity .12s ease; }
.input:hover::-webkit-calendar-picker-indicator { opacity: 1; }
/* Custom select — a styled trigger + menu, so the option list isn't the OS menu.
   Value lives on data-value; matches .input, selected option carries the blue accent. */
.csel { position: relative; }
.csel__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: .6em .9em; border: 1px solid var(--bc-light-gray); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .12s ease, box-shadow .12s ease; }
.csel__btn:hover { border-color: var(--bc-gray); }
.csel.is-open .csel__btn, .csel__btn:focus-visible { outline: none; border-color: var(--bc-primary); box-shadow: 0 0 0 3px var(--bc-primary-light); }
.csel__chev { flex: none; width: 16px; height: 16px; color: var(--bc-gray); transition: transform .15s ease; }
.csel.is-open .csel__chev { transform: rotate(180deg); }
.csel__menu { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; padding: 5px; background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: 1px; animation: csel-in .12s ease both; }
.csel__menu[hidden] { display: none; }   /* the class's display would otherwise beat the UA [hidden] rule */
.csel__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: none; background: none; font: inherit; font-size: .9rem; color: var(--bc-text); text-align: left; border-radius: var(--radius-sm); cursor: pointer; }
.csel__opt:hover, .csel__opt:focus-visible { outline: none; background: var(--bc-light); color: var(--ink); }
.csel__opt.is-sel { color: var(--bc-dark); font-weight: 700; }
.csel__check { flex: none; width: 15px; height: 15px; color: var(--bc-dark); opacity: 0; }
.csel__opt.is-sel .csel__check { opacity: 1; }
@keyframes csel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .csel__menu { animation: none; } }
.filter-chip { padding: .45em 1em; border-radius: var(--radius-sm); border: 1px solid var(--bc-light-gray); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .85rem; cursor: pointer; }
.filter-chip:hover { border-color: var(--bc-primary); color: var(--bc-primary); }

/* ── Table ──────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-lg); overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--bc-light); }
.table th { background: var(--bc-light); color: var(--bc-gray); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: .25em .7em; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; }
.badge--pending { background: var(--bc-primary-light); color: var(--bc-primary); }
.badge--accepted { background: var(--success-bg); color: var(--success); }
.badge--declined { background: var(--danger-bg); color: var(--danger); }

.muted { color: var(--bc-gray); }
.empty { text-align: center; color: var(--bc-gray); padding: 44px 20px; }

/* ── Empty state: faded ghost preview + floating caption ────────────── */
.es { position: relative; min-height: 104px; display: flex; }
.es__ghost { flex: 1; display: flex; flex-direction: column; gap: 14px; opacity: .55;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 52%, transparent 100%); }
.es__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 12px; }
.es__card { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); border-radius: var(--radius-md); padding: 14px 20px; max-width: 30rem; }
.es__title { font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: -.01em; }
.es__text { margin-top: 5px; color: var(--bc-gray); font-size: .82rem; line-height: 1.55; }
.es__cta { margin-top: 14px; }
/* caption shown under a real visual (e.g. the coverage map) */
.es-foot { text-align: center; padding: 14px 10px 2px; }

/* ── Skeleton / ghost primitives ────────────────────────────────────── */
.sk { flex: none; border-radius: 6px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bc-light-gray) 60%, var(--surface)),
    color-mix(in srgb, var(--bc-light-gray) 32%, var(--surface))); }
.sk-av { width: 34px; height: 34px; border-radius: 50%; }
.sk-av--sm { width: 26px; height: 26px; border-radius: 50%; }
.sk-sq { width: 54px; height: 54px; border-radius: 13px; }
.sk-ln { height: 9px; border-radius: 5px; width: 100%; }
.sk-ln--tall { height: 11px; }
.sk-pill { height: 22px; width: 52px; border-radius: 999px; }
.sk-chip { height: 18px; width: 72px; border-radius: 999px; }
.sk-btn { height: 28px; width: 80px; border-radius: var(--radius-md); }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-55 { width: 55%; }
.w-70 { width: 70%; } .w-85 { width: 85%; }

.gh-row { display: flex; align-items: center; gap: 12px; }
.gh-row--top { align-items: flex-start; }
.gh-row--spread { justify-content: space-between; }
.gh-col { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }

/* pipeline funnel ghost: connected stage nodes */
.gh-funnel { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; padding-top: 2px; }
.gh-funnel::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--bc-light-gray); }
.gh-stage { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; }
.gh-funnel .sk-av--sm { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }

@media (prefers-reduced-motion: no-preference) {
  .es__ghost { animation: es-fade-in .4s ease both; }
}
@keyframes es-fade-in { from { opacity: 0; } to { opacity: .55; } }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .app-topnav { gap: 12px; padding: 0 12px; }
  .app-topnav__logo img { height: 26px; }
  /* Nav scrolls horizontally rather than wrapping; account name hides. */
  .app-nav { overflow-x: auto; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-user span[data-user-name] { display: none; }
  .dash-cols { grid-template-columns: 1fr; }
}

/* ── Page header ────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.65rem; font-weight: 700; }
.page-head__sub { color: var(--bc-gray); margin-top: 4px; }
/* Dashboard greeting — bigger + grander than a page title. */
.page-head h1[data-greeting] { font-size: 2.25rem; letter-spacing: -.02em; line-height: 1.1; }
/* Profile photo beside the greeting. */
.page-head.dash-hello { justify-content: flex-start; align-items: center; gap: 16px; flex-wrap: nowrap; }
.dash-hello__ava { flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bc-dark); color: #fff; font-weight: 700; font-size: 1.2rem; text-shadow: 0 1px 2px rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); }
.dash-hello__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-link { color: var(--bc-primary); font-weight: 600; }

/* ── KPI deltas ─────────────────────────────────────────────────────── */
.stat-card__delta { font-size: .8rem; font-weight: 700; margin-top: 8px; }
.delta-up { color: var(--success); }
.delta-down { color: var(--danger); }
.delta-flat { color: var(--bc-gray); }

/* ── Pipeline decision tree ─────────────────────────────────────────── */
.tree { position: relative; padding: 22px 0; margin-top: 0; }
.tree--exits { padding-bottom: 92px; } /* room for the drop branches only when there are any */
.tree__stages { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); }
.stage { display: flex; flex-direction: column; align-items: center; }
.stage__count { font-weight: 700; font-size: 19px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage__label { margin-top: 7px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--bc-gray); text-align: center; }
.stage .dot { margin-top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--bc-gray); position: relative; z-index: 3;
  box-shadow: 0 0 0 4px var(--surface), 0 2px 4px rgba(15, 23, 32, .28); }
.stage--won .stage__count { color: var(--bc-primary); }
.stage--won .dot { background: var(--bc-primary); border-color: var(--bc-primary);
  box-shadow: 0 0 0 4px var(--surface), 0 2px 10px color-mix(in srgb, var(--bc-primary) 55%, transparent); }

/* The line reads with depth: a soft cast shadow lifts the spine off the surface,
   round caps + a touch more weight give it body, and the node halos sit above it. */
.tree__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1;
  filter: drop-shadow(0 1px 1.5px rgba(15, 23, 32, .22)); }
.tree__svg .spine, .tree__svg .drop { fill: none; }
.tree__svg .spine { stroke: color-mix(in srgb, var(--bc-gray) 26%, var(--bc-light-gray)); stroke-width: 2.5; stroke-linecap: round; }
.tree__svg .drop { stroke: var(--bc-light-gray); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }

.term { position: absolute; opacity: 0; transform: translateX(-50%); transition: opacity .2s ease; display: inline-flex; align-items: center; gap: 6px; background: var(--bc-light); border: 1px solid var(--bc-light-gray); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.term__count { font-weight: 700; font-size: 13px; color: var(--bc-gray); font-variant-numeric: tabular-nums; }
.term__label { font-weight: 600; font-size: 12px; color: var(--bc-gray); }

.tree-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bc-light-gray); color: var(--bc-gray); font-size: 13px; }
.text-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bc-primary-light); border-radius: 4px; }

/* ── Neutral button + quiet link (keep orange to the 3 allowed spots) ─ */
.btn--neutral { background: var(--surface); color: var(--bc-text); border-color: var(--bc-light-gray); }
.btn--neutral:hover { background: var(--bc-light); border-color: var(--bc-gray); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger-bg); }
.link-quiet { color: var(--ink); font-weight: 600; font-size: .9rem; }
.link-quiet:hover { text-decoration: underline; }
.link-quiet:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bc-primary-light); border-radius: 4px; }

/* ── Two-column split (act here | reference) ────────────────────────── */
.dash-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: stretch; margin-top: 20px; }
@media (max-width: 860px) { .dash-split { grid-template-columns: 1fr; } }

.progress--info .progress__bar { background: var(--info); }

/* ── Needs attention ────────────────────────────────────────────────── */
.queue__item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--bc-light); }
.queue__item:first-child { padding-top: 0; }
.queue__item:last-child { border-bottom: none; padding-bottom: 0; }
.queue__icon { width: 38px; height: 38px; border-radius: var(--radius-md); display: grid; place-items: center; flex: none; }
.queue__icon svg { width: 18px; height: 18px; }
.queue__icon--warning { background: var(--warning-bg); color: var(--warning); }
.queue__icon--info { background: var(--info-bg); color: var(--info); }
.queue__icon--neutral { background: var(--bc-light); color: var(--bc-gray); }
.queue__body { min-width: 0; flex: 1; }
.queue__title { font-weight: 700; color: var(--ink); font-size: 14px; }
.queue__meta { color: var(--bc-gray); font-size: 12.5px; margin-top: 2px; }

/* ── Recent activity (colored icon list) ────────────────────────────── */
.activity__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bc-light); }
.activity__item:first-child { padding-top: 0; }
.activity__item:last-child { padding-bottom: 0; border-bottom: none; }
.activity__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.activity__icon svg { width: 15px; height: 15px; }
.activity__icon--info { background: var(--info-bg); color: var(--info); }
.activity__icon--success { background: var(--success-bg); color: var(--success); }
.activity__icon--danger { background: var(--danger-bg); color: var(--danger); }
.activity__icon--neutral { background: var(--bc-light); color: var(--bc-gray); }
.activity__text { color: var(--bc-text); font-size: 13.5px; }
.activity__time { color: var(--bc-gray); font-size: 11.5px; margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Discovery teaser ───────────────────────────────────────────────── */
.teaser { display: flex; flex-direction: column; gap: 14px; }
.teaser__big { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.teaser__big span { color: var(--bc-primary); }

/* ── Progress + checklist ───────────────────────────────────────────── */
.progress { height: 8px; border-radius: 999px; background: var(--bc-light); overflow: hidden; }
.progress__bar { height: 100%; background: var(--bc-primary); }
.check-list { margin-top: 16px; }
.check-list__item { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--bc-text); }
.check-box { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--bc-light-gray); flex: none; display: grid; place-items: center; font-size: 12px; color: transparent; }
.check-box--done { background: var(--bc-primary); border-color: var(--bc-primary); color: var(--bc-white); }
.check-list__item--done { color: var(--bc-gray); }

/* ── Banner (slim CTA strip) ────────────────────────────────────────── */
.banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius-lg); border: 1px solid var(--bc-light-gray); background: var(--surface); margin-top: 20px; }
.banner__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 220px; }
.banner__title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.banner__title span { color: var(--bc-primary); }
.banner__sub { color: var(--bc-gray); font-size: .9rem; }
.banner--accent { background: linear-gradient(120deg, var(--bc-light), var(--bc-primary-light)); border-color: rgba(255,102,0,.25); }
.banner__progress { display: flex; align-items: center; gap: 12px; min-width: 200px; flex: 1; }
.banner__progress .progress { flex: 1; }

/* ── Dashboard bento mosaic ─────────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-top: 8px; align-items: start; }
.dash-main, .dash-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Rail sticks in view while the taller map column scrolls past it. */
.dash-rail { position: sticky; top: 90px; }
@media (max-width: 960px) { .dash-rail { position: static; } }
.dash-grid .panel { margin-top: 0; }

/* Right rail: liquid-glass widgets — the ONE glass recipe (tokens.css
   --glass-card-*) that every card app-wide also uses. The left column is open. */
.dash-rail .panel {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-card-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dash-rail .panel { background: var(--surface); }
}

/* Left column: no boxes — an open editorial column. Eyebrow section labels,
   hairline dividers, theme-normal text; empty states compact (no skeleton). */
.dash-main .panel {
  background: none; border: none; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 22px 0 0;
}
.dash-main > .panel { border-top: 1px solid var(--bc-light-gray); }
.dash-main > .panel:first-child { border-top: none; padding-top: 4px; }
/* Greeting lives in the left column now, so the rail (calendar) starts at the top,
   right under the nav. No divider between the greeting and the map. */
.dash-main .page-head { margin-bottom: 4px; }
.dash-main .map { border-top: none; padding-top: 0; }
.dash-main .panel__head { margin-bottom: 12px; }
.dash-main .panel__head h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--bc-gray); }
/* Footprints motif before the Footprint Matcher module heading (mask inherits the heading color). */
.panel.spot .panel__head h2 { display: inline-flex; align-items: center; }
.panel.spot .panel__head h2::before { content: ""; flex: none; width: 19px; height: 20px; margin-right: 9px; background: currentColor; transform: rotate(-8deg);
  -webkit-mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat;
  mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat; }
/* Coverage map is the centerpiece: its panel heading is a real bold title, and
   the map editor's own redundant "Coverage map" subtitle is dropped here. */
.dash-main .map .panel__head h2 { font-size: 1.2rem; font-weight: 700; text-transform: none; letter-spacing: -.015em; color: var(--ink); }
.dash-main .bp-subhead__title { display: none; }
/* Title + hint stack tight on the left; the country search sits centered on the
   same top row (out of flow, so it never splits the title from its hint). */
.dash-main .map--card { position: relative; }
.dash-main .map--card .panel__head { margin-bottom: 4px; }
.dash-main .map--card .bp-embed__map > .bp-map-search {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  margin: 0; width: min(340px, 52%);
}
@media (max-width: 640px) {
  .dash-main .map--card .bp-embed__map > .bp-map-search {
    position: static; transform: none; width: 100%; margin: 12px 0 14px;
  }
}
/* Empty states: no skeleton on the open column — compact, left-aligned. */
.dash-main .es { min-height: 0; display: block; }
.dash-main .es__ghost { display: none; }
.dash-main .es__overlay { position: static; display: block; padding: 0; }
.dash-main .es__card { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; max-width: 42rem; text-align: left; }
.dash-main .es__cta { margin-top: 10px; }

/* ── Command card: one glass card fusing the stat rail, the pipeline, and a
   "next steps" action list — three sections split by hairline rules. ── */
.dash-brief { display: flex; flex-direction: column; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--glass-card-bg); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-card-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dash-brief { background: var(--surface); } }
.dash-brief[hidden] { display: none; }

/* Figure rail */
.dash-brief__stats { display: flex; flex-wrap: wrap; justify-content: center; }
.dash-fig { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 36px; text-align: center; text-decoration: none; color: inherit; }
.dash-fig + .dash-fig { border-left: 1px solid var(--bc-light-gray); }
.dash-fig__n { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; transition: color .12s ease; }
a.dash-fig:hover .dash-fig__n { color: var(--bc-primary); }
.dash-fig__l { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bc-gray); }

/* Sections below the rail, each opened by a hairline + eyebrow label */
.dash-brief__sec { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bc-light-gray); }
.dash-brief__sec[hidden] { display: none; }
.dash-brief__eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bc-gray); margin-bottom: 2px; }
.dash-brief__sec .tree { padding-top: 6px; }

/* Next steps — a list of full-row action links */
.dash-brief__acts { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.dash-brief__act { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .12s ease, color .12s ease; }
button.dash-brief__act { width: calc(100% + 24px); appearance: none; -webkit-appearance: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.dash-brief__act:not(.dash-brief__act--static):hover { background: color-mix(in srgb, var(--bc-primary) 8%, transparent); color: var(--bc-primary); }
.dash-brief__act--static { color: var(--bc-gray); cursor: default; }
.dash-brief__act-t { flex: 1; min-width: 0; }
.dash-brief__arrow { flex: none; width: 16px; height: 16px; color: var(--bc-primary); }
.dash-brief__chev { flex: none; width: 16px; height: 16px; color: var(--bc-light-gray); transition: color .12s ease, transform .12s ease; }
.dash-brief__act:not(.dash-brief__act--static):hover .dash-brief__chev { color: var(--bc-primary); transform: translateX(2px); }
.dash-brief__clear { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 4px 0; font-size: .9rem; font-weight: 600; color: var(--bc-gray); }
.dash-brief__clear svg { flex: none; width: 16px; height: 16px; color: var(--success); }
@media (max-width: 560px) {
  .dash-fig { padding: 4px 20px; }
  .dash-fig__n { font-size: 1.95rem; }
}

/* ── PREVIEW: blue command card — solid brand blue, no gradient (delete to revert) ── */
.dash-brief {
  position: relative; overflow: hidden;
  background: var(--bc-dark);
  border-color: color-mix(in srgb, var(--bc-dark) 72%, #000);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 16px 38px -20px color-mix(in srgb, var(--bc-dark) 55%, #000), 0 2px 6px rgba(0, 0, 0, .18); }
/* Ignite wordmark watermark (white, behind the content) */
.dash-brief::after { content: ""; position: absolute; top: 20px; left: 24px; z-index: 0; width: 184px; height: 55px;
  background: #fff; opacity: .24; pointer-events: none;
  -webkit-mask: url("../img/ignite.0e87bde6954c.png") left center / contain no-repeat;
  mask: url("../img/ignite.0e87bde6954c.png") left center / contain no-repeat; }
.dash-brief__stats, .dash-brief__sec { position: relative; z-index: 1; }
.dash-brief .dash-fig__n { color: #fff; }
.dash-brief .dash-fig__l { color: rgba(255, 255, 255, .82); }
.dash-brief .dash-fig + .dash-fig { border-left-color: rgba(255, 255, 255, .28); }
.dash-brief a.dash-fig:hover .dash-fig__n { color: rgba(255, 255, 255, .82); }
.dash-brief .dash-brief__sec { border-top-color: rgba(255, 255, 255, .24); }
.dash-brief .dash-brief__eyebrow { color: rgba(255, 255, 255, .82); }
.dash-brief .stage__count, .dash-brief .stage--won .stage__count { color: #fff; }
.dash-brief .stage__label { color: rgba(255, 255, 255, .82); }
.dash-brief .stage .dot { background: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 0 4px var(--bc-dark), 0 2px 4px rgba(0, 0, 0, .25); }
.dash-brief .stage--won .dot { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px var(--bc-dark), 0 2px 10px rgba(255, 255, 255, .5); }
.dash-brief .tree__svg { filter: none; }
.dash-brief .tree__svg .spine { stroke: rgba(255, 255, 255, .55); }
.dash-brief .tree__svg .drop { stroke: rgba(255, 255, 255, .45); }
.dash-brief .tree-foot { color: rgba(255, 255, 255, .85); border-top-color: rgba(255, 255, 255, .24); }
.dash-brief .tree-foot .text-link { color: #fff; }
.dash-brief .es__title { color: #fff; }
.dash-brief .es__text { color: rgba(255, 255, 255, .85); }
.dash-brief .es__cta .btn--primary { background: #fff; color: var(--bc-dark); }
.dash-brief .es__cta .btn--primary:hover { background: rgba(255, 255, 255, .9); }
.dash-brief .dash-brief__act { color: #fff; }
.dash-brief .dash-brief__act:not(.dash-brief__act--static):hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dash-brief .dash-brief__act--static { color: rgba(255, 255, 255, .75); }
.dash-brief .dash-brief__arrow { color: #fff; }
.dash-brief .dash-brief__chev { color: rgba(255, 255, 255, .6); }
.dash-brief .dash-brief__act:not(.dash-brief__act--static):hover .dash-brief__chev { color: #fff; }
.dash-brief .dash-brief__clear { color: rgba(255, 255, 255, .85); }
.dash-brief .dash-brief__clear svg { color: #fff; }

/* Experiment (owner only): map + footprints combined on one big glass card,
   using the shared card recipe. Overrides the open-column de-glass above. */
.dash-main .panel.map--card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-card-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  padding: 22px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dash-main .panel.map--card { background: var(--surface); }
}
/* Seamless map: drop the map's own (gray) box fill so the glass card shows
   through the ocean — the map blends into the card instead of reading as a box. */
.map--card .bp-map { background: transparent; }

/* Licensee trial: the map itself as a frosted-glass panel (just the map, no card).
   Pushed a touch harder than a card for "as glassy as possible". */
.map--glass .bp-map {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-card-shadow);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  backdrop-filter: blur(40px) saturate(200%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .map--glass .bp-map { background: var(--surface); }
}

.dash-main .map { display: flex; flex-direction: column; }
/* Interactive coverage map (embedded profile editor) sizes by its own aspect-ratio. */
.dash-main .map .dash-fpmap { width: 100%; }
.dash-main .map .worldwrap:not(.bp-map) { flex: 1; min-height: 240px; }
.dash-main .map .worldmap { width: 100%; height: 100%; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }

.mt-20 { margin-top: 20px; }

/* Inline header counts (no boxed stat cards) */
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bc-light); color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-pill--accent { background: var(--bc-primary); color: var(--bc-white); }

/* Dashboard cards hydrated from live inquiry data (swaps the empty state) */
.es.is-filled { display: block; min-height: 0; }
.dash-list { display: flex; flex-direction: column; }
/* Rail lists cap out and scroll rather than stretch the card. The pipeline sizes
   to its content (the tree + counts) so the command card's middle section isn't
   padded out beyond the words in it. */
.dash-rail .es.is-filled { min-height: 104px; max-height: 340px; overflow-y: auto; }
.dash-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--bc-light); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: background .15s ease; }
.dash-item:last-child { border-bottom: none; }
.dash-item:hover { background: var(--bc-light); }
.dash-av { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff; overflow: hidden; background: var(--a, var(--bc-dark)); }
.dash-av.has-logo { background: var(--surface); box-shadow: inset 0 0 0 1px var(--bc-light); }
.dash-av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dash-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-item__name { font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item__sub { font-size: .8rem; color: var(--bc-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item__meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dash-item__time { font-size: .72rem; color: var(--bc-gray); font-variant-numeric: tabular-nums; }
.dash-item__act { flex: none; pointer-events: none; }
/* Spotlight — top-fit counterpart on the dashboard */
/* Footprint match — borderless on the glass panel (no card-in-a-card), an
   editorial spec-list of the matched footprints, one quiet secondary link. */
/* Footprint-match launcher — a stack of matches + the top company name; the whole
   thing opens the swiper. No footprint detail here; that lives inside the flow. */
.dash-spot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; width: 100%; text-align: left; background: none; border: none; font: inherit; color: inherit; cursor: pointer; }
.dash-spot__deck { display: flex; padding-left: 2px; }
.dash-spot__av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--a, var(--bc-dark)); color: #fff; font-size: .8rem; font-weight: 700; border: 2.5px solid var(--surface); box-shadow: 0 2px 7px rgba(20, 30, 40, .16); }
.dash-spot__av + .dash-spot__av { margin-left: -14px; }
/* With a logo: sit it on white (like the profile logo tile) and contain it so
   it isn't cropped. Initials-only avatars keep the brand-color (--a) fill. */
.dash-spot__av.has-logo { box-sizing: border-box; padding: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--bc-light), 0 2px 7px rgba(20, 30, 40, .16); }
.dash-spot__av img { width: 100%; height: 100%; object-fit: contain; }
/* End-cap "+" / "+N" chip: same ring so it nests in the avatar stack, tinted so
   it reads as an action rather than another company. */
.dash-spot__av.dash-spot__more { background: color-mix(in srgb, var(--bc-primary) 12%, var(--surface)); color: var(--bc-primary); font-size: .82rem; font-weight: 800; letter-spacing: -.02em; }
.dash-spot__av.dash-spot__more svg { width: 15px; height: 15px; }
.dash-spot:hover .dash-spot__more { background: color-mix(in srgb, var(--bc-primary) 20%, var(--surface)); }
.dash-spot__ttl { font-weight: 700; font-size: 1.14rem; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; }
.dash-spot__and { font-weight: 600; font-size: .82rem; color: var(--bc-gray); letter-spacing: 0; }
.dash-spot__sub { font-size: .82rem; color: var(--bc-gray); margin-top: -5px; }
.dash-spot__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--bc-primary); color: #fff; font-size: .82rem; font-weight: 700; transition: background .12s ease, transform .12s ease; }
.dash-spot:hover .dash-spot__cta { background: var(--bc-primary-hover); }
.dash-spot:active .dash-spot__cta { transform: scale(.97); }
.dash-spot__cta svg { width: 15px; height: 15px; }

/* Cold-deal countdown chip (urgency you can feel) */
.countdown { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.countdown--hot  { background: var(--danger-bg);  color: var(--danger); }
.countdown--warm { background: var(--warning-bg); color: var(--warning); }
.countdown--cool { background: var(--info-bg);    color: var(--info); }

/* Match % badge */
.match { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--bc-light); color: var(--bc-gray); }
.match--strong { background: var(--bc-primary-light); color: var(--bc-primary); }

/* Why-match reason chips */
.reasons { display: flex; flex-wrap: wrap; gap: 7px; }
.reason { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--bc-light-gray); font-size: 12px; font-weight: 600; color: var(--ink); }
.reason svg { width: 12px; height: 12px; color: var(--success); flex: none; }

/* Spotlight match (hero discovery tile) */
.spotlight { display: flex; gap: 18px; }
.spotlight__logo { flex: none; width: 120px; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: var(--bc-light); display: grid; place-items: center; color: var(--bc-gray); font-weight: 700; letter-spacing: .03em; }
.spotlight__body { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.spotlight__name { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.spotlight__meta { color: var(--bc-gray); font-size: .85rem; margin-top: -6px; }
.spotlight__pitch { color: var(--bc-text); font-size: .92rem; line-height: 1.5; }
.spotlight__actions { display: flex; gap: 10px; margin-top: 2px; }
.spotlight__next { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bc-light-gray); }
.mini-match { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--bc-light-gray); transition: box-shadow .15s ease, transform .15s ease; }
.mini-match:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.mini-match__logo { width: 34px; height: 34px; border-radius: 8px; background: var(--bc-light); display: grid; place-items: center; color: var(--bc-gray); font-size: 11px; font-weight: 700; flex: none; }
.mini-match__name { font-size: .82rem; font-weight: 700; color: var(--ink); min-width: 0; line-height: 1.25; }
.mini-match__name span { display: block; color: var(--bc-gray); font-weight: 600; font-size: .72rem; }
.mini-match__pct { margin-left: auto; }
@media (max-width: 600px) { .spotlight { flex-direction: column; } .spotlight__next { flex-direction: column; } }

/* Agenda / coming up */
.agenda { display: flex; flex-direction: column; }
.agenda__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bc-light); }
.agenda__item:first-child { padding-top: 0; }
.agenda__item:last-child { border-bottom: none; padding-bottom: 0; }
.agenda__when { flex: none; width: 46px; font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; padding-top: 1px; }
.agenda__title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.agenda__meta { color: var(--bc-gray); font-size: 12px; margin-top: 2px; }
.agenda__item--renewal .agenda__when { color: var(--bc-primary); }

/* Radar (inbound interest) + Messages list rows */
.radar__item, .msg__item { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--bc-light); }
.radar__item:first-child, .msg__item:first-child { padding-top: 0; }
.radar__item:last-child, .msg__item:last-child { border-bottom: none; padding-bottom: 0; }
.radar__logo { width: 32px; height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--bc-light-gray); display: grid; place-items: center; color: var(--bc-gray); font-size: 10px; font-weight: 700; flex: none; }
.radar__body, .msg__body { min-width: 0; flex: 1; }
.radar__name { font-weight: 700; font-size: 13px; color: var(--ink); }
.radar__meta { color: var(--bc-gray); font-size: 12px; margin-top: 1px; }
.msg__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bc-dark); color: var(--bc-white); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.msg__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msg__name { font-weight: 700; font-size: 13px; color: var(--ink); }
.msg__time { color: var(--bc-gray); font-size: 11px; flex: none; }
.msg__snip { color: var(--bc-gray); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__item--unread .msg__name::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bc-primary); margin-right: 6px; vertical-align: middle; }

/* Whitespace / coverage */
.coverage { display: flex; flex-direction: column; gap: 13px; }
.coverage__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.coverage__label { font-weight: 700; color: var(--ink); }
.coverage__val { color: var(--bc-gray); font-variant-numeric: tabular-nums; }
.coverage__track { height: 7px; border-radius: 999px; background: var(--bc-light); overflow: hidden; }
.coverage__fill { height: 100%; background: var(--bc-dark); border-radius: 999px; }
.coverage__gap { margin-top: 3px; padding: 11px 13px; border-radius: var(--radius-md); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--bc-primary) 45%, var(--bc-light-gray)); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--bc-text); }
.coverage__gap strong { color: var(--bc-primary); }

/* ── Calendar ───────────────────────────────────────────────────────── */
.cal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__head-l { margin-right: auto; }
.cal__today { margin-top: 3px; font-size: .82rem; font-weight: 600; color: var(--bc-gray); }
.cal__month { font-weight: 700; color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; display: inline-block; min-width: 7em; text-align: center; white-space: nowrap; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-gray); padding-bottom: 4px; }
.cal__day { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--bc-text); border-radius: 8px; font-variant-numeric: tabular-nums; }
.cal__day--muted { color: transparent; }
.cal__day--today { font-weight: 700; }
/* Today = an orange circle around the number (not a slate square). */
.cal__n { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; }
.cal__day--today .cal__n { background: var(--bc-primary); color: var(--bc-white); }
.cal__dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
/* Restrained 2-tone: meetings (booked from inquiries) carry the brand accent;
   every personal event stays a quiet neutral. No rainbow of type colours. */
.cal__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bc-gray); }
.cal__dot--meeting { width: 6px; height: 6px; background: var(--bc-primary); }
.cal__upcoming { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bc-light-gray); }
.cal__empty { color: var(--bc-gray); font-size: 13px; line-height: 1.5; padding: 6px 0 2px; }
.cal__empty span { font-size: 12px; }

/* Day cells are buttons now (clickable to schedule / drill in). */
.cal__day { appearance: none; border: none; background: none; font: inherit; cursor: pointer; }
button.cal__day:hover { background: var(--bc-light); }
.cal__day--muted { color: transparent; cursor: default; pointer-events: none; }
.cal__day--has { font-weight: 700; }
.cal__day--selected { box-shadow: inset 0 0 0 2px var(--bc-primary); color: var(--bc-primary); }
.cal__day--today.cal__day--selected { box-shadow: inset 0 0 0 2px var(--bc-primary); }
/* Rail calendar: taller cells + roomier grid so it fills the column. */
.dash-rail .cal__grid { gap: 4px; }
.dash-rail .cal__day { aspect-ratio: 1 / 1.12; }

/* Month nav */
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav__btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--bc-gray); cursor: pointer; }
.cal-nav__btn:hover { background: var(--bc-light); color: var(--ink); }
.cal-nav__btn svg { width: 15px; height: 15px; }
.cal__month--lg { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); min-width: 6.2em; text-align: center; white-space: nowrap; }

/* ── Panel expand control ───────────────────────────────────────────── */
.panel__head > h2, .cal__head > h2 { margin-right: auto; }
.panel-expand { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); border: none; background: none; color: var(--bc-gray); cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease, color .15s ease; }
.panel-expand svg { width: 16px; height: 16px; }
.panel:hover .panel-expand, .cal:hover .panel-expand, .panel-expand:focus-visible { opacity: 1; }
.panel-expand:hover { background: var(--bc-light); color: var(--ink); }

/* Calendar floats its expand control in the bottom-right corner of the widget. */
.cal { position: relative; }
.panel-expand--corner { position: absolute; right: 16px; bottom: 16px; background: var(--surface); border: 1px solid var(--bc-light-gray); box-shadow: var(--shadow-card); }
.panel-expand--corner:hover { background: var(--bc-light); }

/* ── Modal (expanded module view) ───────────────────────────────────── */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(65, 83, 100, .45); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; transform: translateY(10px) scale(.985); transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog--wide { max-width: 920px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--bc-light-gray); flex: none; }
.modal__head h2 { font-size: 1.15rem; }
.modal__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: none; background: none; color: var(--bc-gray); cursor: pointer; }
.modal__close:hover { background: var(--bc-light); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: 22px; overflow-y: auto; }
.panel--in-modal { border: none; padding: 0; }

/* ── Footprint-match swiper — flip through rich profile dossiers ──────────── */
/* Footprints motif for inline use before a title; the mask takes the text color. */
.fp-mark { display: inline-block; vertical-align: -3px; width: 20px; height: 21px; margin-right: 9px; background: currentColor; transform: rotate(-8deg);
  -webkit-mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat;
  mask: url("../img/footprints-mark.ab47ef247f2f.png") center / contain no-repeat; }
.swipe { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 4px 0 2px; }
.swipe__stack { position: relative; width: 100%; max-width: 700px; }
.swm { display: flex; flex-direction: column; height: min(600px, calc(100vh - 220px)); background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-lg); box-shadow: 0 22px 48px -22px rgba(20, 30, 40, .36); overflow: hidden; }
/* One card at a time, cross-fading in / out (no swipe). */
.swm--top { position: relative; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease; }
.swm--top.is-shown { opacity: 1; transform: none; }
.swm--top.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }
/* Photo-forward hero + overhanging logo */
.swm__hero { position: relative; flex: none; height: 152px; overflow: hidden; background: var(--a, var(--bc-primary)); }
.swm__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swm__logo { position: relative; z-index: 2; flex: none; margin: -34px 0 0 22px; width: 66px; height: 66px; border-radius: 18px; background: var(--surface); border: 3px solid var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 8px 20px rgba(0, 0, 0, .18); display: grid; place-items: center; overflow: hidden; color: var(--a, var(--bc-primary)); font-weight: 700; font-size: 1.2rem; }
.swm__logo img { width: 100%; height: 100%; object-fit: contain; }
.swm__id { flex: none; padding: 9px 22px 2px; }
.swm__name { font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swm__meta { font-size: .82rem; font-weight: 600; color: var(--bc-gray); margin-top: 3px; }
.swm__fit { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--a, var(--bc-primary)); }
.swm__fit::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Scrollable dossier body */
.swm__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 22px 6px; }
.swm__sec { padding: 15px 0; border-top: 1px solid var(--bc-light); }
.swm__sec:first-child { border-top: none; padding-top: 12px; }
.swm__lbl { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--bc-gray); margin-bottom: 9px; }
.swm__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--bc-light); }
.swm__row:first-of-type { border-top: none; padding-top: 0; }
.swm__terr { flex: none; font-weight: 700; font-size: .9rem; color: var(--ink); }
.swm__ax { min-width: 0; text-align: right; font-size: .82rem; color: var(--bc-gray); }
.swm__partners { display: flex; flex-wrap: wrap; gap: 9px 12px; }
.swm__partner { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.swm__partner i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--a, var(--bc-primary)) 15%, var(--surface)); color: var(--a, var(--bc-primary)); font-size: .62rem; font-weight: 700; font-style: normal; }
.swm__partner--more { color: var(--bc-gray); font-weight: 700; }
.swm__gallery { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 2px; scrollbar-width: thin; }
.swm__shot { flex: none; width: 108px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--bc-light); }
.swm__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swm__tag { padding: 15px 0 2px; font-size: .9rem; color: var(--bc-text); line-height: 1.55; }
.swm__headline { padding-top: 12px; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.swm__about { margin: 0; font-size: .88rem; color: var(--bc-text); line-height: 1.55; }
.swm__facts { display: flex; flex-direction: column; }
.swm__fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--bc-light); }
.swm__fact:first-child { border-top: none; padding-top: 0; }
.swm__fact span { flex: none; font-size: .8rem; color: var(--bc-gray); }
.swm__fact b { min-width: 0; text-align: right; font-size: .85rem; font-weight: 600; color: var(--ink); }
.swm__stats { display: flex; gap: 10px; }
.swm__stat { flex: 1; text-align: center; padding: 10px 6px; border: 1px solid var(--bc-light); border-radius: var(--radius-md); }
.swm__stat b { display: block; font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.swm__stat span { display: block; margin-top: 3px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-gray); }
.swm__certs { font-size: .84rem; color: var(--bc-text); line-height: 1.5; }
.swm__foot { flex: none; display: flex; gap: 10px; padding: 15px 22px 18px; border-top: 1px solid var(--bc-light-gray); }
.swm__foot .btn { flex: 1; justify-content: center; }
.swipe__nav { display: flex; align-items: center; gap: 22px; }
.swipe__act { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--bc-light-gray); background: var(--surface); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(20, 30, 40, .3); transition: transform .12s ease, border-color .12s ease, color .12s ease, background .12s ease; }
.swipe__act:active { transform: scale(.92); }
.swipe__act svg { width: 25px; height: 25px; }
.swipe__act--pass { color: var(--bc-gray); }
.swipe__act--pass:hover { color: var(--danger); border-color: var(--danger); }
.swipe__act--match { color: #fff; background: var(--bc-primary); border-color: var(--bc-primary); }
.swipe__act--match:hover { background: var(--bc-primary-hover); border-color: var(--bc-primary-hover); }
.swipe__count { font-size: .85rem; font-weight: 700; color: var(--bc-gray); font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
/* Drag stamps (like/nope) + end state */
.swipe__done { text-align: center; padding: 64px 20px; }
.swipe__done-ic { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.swipe__done-ic svg { width: 28px; height: 28px; }
.swipe__done-t { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); }
.swipe__done-s { color: var(--bc-gray); margin-top: 6px; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .swm--top { transition: none !important; } }

/* Pass button fans out into Skip / Never show again */
.swipe__passwrap { position: relative; display: inline-grid; place-items: center; }
.swipe__passmenu { position: absolute; bottom: calc(100% + 12px); left: 50%; display: flex; flex-direction: column; gap: 8px;
  transform: translate(-50%, 10px) scale(.9); transform-origin: bottom center; opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility .16s; z-index: 6; }
.swipe__passwrap.is-open .swipe__passmenu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.swipe__passmenu::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface); }
.swipe__passopt { white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--bc-light-gray);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 30, 40, .4); transition: background .12s ease, color .12s ease, border-color .12s ease, transform .1s ease; }
.swipe__passopt:hover { border-color: var(--bc-gray); }
.swipe__passopt:active { transform: scale(.96); }
.swipe__passopt--never { color: var(--danger); }
.swipe__passopt--never:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Match → in-card compose: an overlay that slides up over the card face; Back
   slides it back down. The card frame stays put. */
.swm__compose { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: 13px; padding: 22px;
  background: var(--surface); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.swm__compose.is-up { transform: translateY(0); }
.swm__compose-head { display: flex; align-items: center; gap: 13px; }
.swm__compose-av { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; overflow: hidden;
  background: var(--a, var(--bc-dark)); color: #fff; font-weight: 700; font-size: .9rem; }
.swm__compose-av.has-logo { background: #fff; padding: 5px; box-shadow: inset 0 0 0 1px var(--bc-light); color: var(--a, var(--bc-primary)); }
.swm__compose-av img { width: 100%; height: 100%; object-fit: contain; }
.swm__compose-t { font-weight: 700; font-size: 1.06rem; letter-spacing: -.015em; color: var(--ink); }
.swm__compose-s { font-size: .82rem; color: var(--bc-gray); margin-top: 1px; }
.swm__compose-in { flex: 1; width: 100%; resize: none; font: inherit; font-size: .92rem; line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1px solid var(--bc-light-gray); border-radius: var(--radius-md); padding: 12px 14px;
  transition: border-color .12s ease, box-shadow .12s ease; }
.swm__compose-in:focus { outline: none; border-color: var(--bc-primary); box-shadow: 0 0 0 3px var(--bc-primary-light); }
.swm__compose-err { font-size: .82rem; font-weight: 600; color: var(--danger); }
.swm__compose-foot { display: flex; justify-content: flex-end; gap: 10px; }
.swm__compose-sent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; }
.swm__compose-sent-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.swm__compose-sent-ic svg { width: 26px; height: 26px; }
.swm__compose-sent-t { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.swm__compose-sent-s { font-size: .88rem; color: var(--bc-gray); }

/* ── Footprint Matcher — full-screen faded overlay; title, card + controls all float ── */
.fpm-ov { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; background: color-mix(in srgb, var(--bc-dark) 45%, transparent); -webkit-backdrop-filter: blur(9px) saturate(1.05); backdrop-filter: blur(9px) saturate(1.05); opacity: 0; transition: opacity .24s ease; }
.fpm-ov.is-open { opacity: 1; }
.fpm-ov__title { display: inline-flex; align-items: center; font-size: 1.42rem; font-weight: 700; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.fpm-ov__title .fp-mark { background: #fff; }
.fpm-ov__x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .15s ease, transform .12s ease; }
.fpm-ov__x:hover { background: rgba(255,255,255,.28); }
.fpm-ov__x:active { transform: scale(.92); }
.fpm-ov__x svg { width: 20px; height: 20px; }
.fpm-ov__body { width: 100%; min-height: 0; display: flex; justify-content: center; }
.fpm-ov .swipe { animation: fpm-pop .34s cubic-bezier(.2,.85,.25,1) both; }
.fpm-ov .swm { max-height: calc(100vh - 210px); box-shadow: 0 30px 70px -24px rgba(10, 16, 22, .7); }
.fpm-ov .swipe__count { color: rgba(255,255,255,.9); }
@keyframes fpm-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fpm-ov { transition: none; } .fpm-ov .swipe { animation: none; } }

/* ── Apply modal (shared: marketplace + public profile) ─────────────────── */
.apply-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(15, 22, 31, .55); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.apply-ov.is-open { opacity: 1; visibility: visible; }
.apply { width: min(620px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; transform: translateY(10px) scale(.99); transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.apply-ov.is-open .apply { transform: none; }
.apply__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; background: var(--a, var(--bc-dark)); }
.apply__logo { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; font-size: 1.1rem; }
.apply__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.apply__id { min-width: 0; }
.apply__ey { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .82; }
.apply__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apply__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; transition: background .12s ease; }
.apply__x:hover { background: rgba(255, 255, 255, .3); }
.apply__x svg { width: 18px; height: 18px; }
.apply__body { padding: 22px; overflow-y: auto; }
.apply__loading, .apply__err { padding: 40px 0; text-align: center; color: var(--bc-gray); }
.apply__lede { margin: 0 0 18px; font-size: .92rem; color: var(--bc-text); line-height: 1.55; }
.apply__sec { margin-bottom: 20px; }
.apply__lbl { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--bc-gray); margin-bottom: 10px; }
.apply__opps { display: flex; flex-direction: column; gap: 10px; }
.apply__opp { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 13px 15px; border: 1.5px solid var(--bc-light-gray); border-radius: var(--radius-md); background: var(--surface); font: inherit; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.apply__opp:hover { border-color: color-mix(in srgb, var(--bc-primary) 45%, var(--bc-light-gray)); }
.apply__opp.is-on { border-color: var(--bc-primary); background: color-mix(in srgb, var(--bc-primary) 6%, var(--surface)); }
.apply__opp-check { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid var(--bc-light-gray); color: #fff; margin-top: 1px; transition: background .12s ease, border-color .12s ease; }
.apply__opp-check svg { width: 14px; height: 14px; opacity: 0; }
.apply__opp.is-on .apply__opp-check { background: var(--bc-primary); border-color: var(--bc-primary); }
.apply__opp.is-on .apply__opp-check svg { opacity: 1; }
.apply__opp-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.apply__opp-terr { font-weight: 700; font-size: .92rem; color: var(--ink); }
.apply__opp-ax { font-size: .8rem; color: var(--bc-gray); }
.apply__opp-note { font-size: .8rem; color: var(--bc-text); margin-top: 3px; line-height: 1.45; }
.apply__field { padding: 13px 0; border-top: 1px solid var(--bc-light); }
.apply__field:first-of-type { border-top: none; padding-top: 4px; }
.apply__q { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 9px; }
.apply__q--note { margin-top: 10px; }
.apply__req { color: var(--bc-primary); }
.apply__opt { font-weight: 600; color: var(--bc-gray); }
.apply__choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.apply__ch { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--bc-text); cursor: pointer; }
.apply__ch input { accent-color: var(--bc-primary); }
.apply .input { width: 100%; }
.apply textarea.input { resize: vertical; }
.apply__foot { margin-top: 18px; }
.apply__submit { width: 100%; justify-content: center; }
.apply__flash { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-size: .84rem; font-weight: 600; opacity: 0; transition: opacity .15s ease; }
.apply__flash.is-show { opacity: 1; }
.apply__done { text-align: center; padding: 30px 10px 20px; display: flex; flex-direction: column; align-items: center; }
.apply__done-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--success); }
.apply__done-ic--x { background: var(--bc-gray); }
.apply__done-ic svg { width: 30px; height: 30px; }
.apply__done-t { margin-top: 14px; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.apply__done-s { margin-top: 7px; max-width: 42ch; font-size: .9rem; color: var(--bc-gray); line-height: 1.55; }
.apply__done-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .apply, .apply-ov, .modal, .modal__dialog { transition: none; } }

/* ── Expanded calendar / planner ────────────────────────────────────── */
.cal-x { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 34px; align-items: start; }
.cal-x__main .cal__head { align-items: center; margin-bottom: 20px; }
.cal__grid--lg { gap: 5px; }
.cal__grid--lg .cal__day { font-size: 14px; border-radius: 10px; }
.cal__grid--lg .cal__dow { font-size: 11px; padding-bottom: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--bc-gray); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { position: static; }

.cal-x__side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--bc-light); padding-left: 24px; }
.cal-x__sel { font-weight: 700; color: var(--ink); font-size: 1.08rem; letter-spacing: -.015em; padding-bottom: 14px; border-bottom: 1px solid var(--bc-light); }
.cal-x__list { flex: 1; min-height: 80px; max-height: 320px; overflow-y: auto; padding: 8px 0; }
.cal-x__empty { color: var(--bc-gray); font-size: 13px; padding: 14px 0; }

.cal-ev { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bc-light); }
.cal-ev:last-child { border-bottom: none; }
.cal-ev .cal__dot { position: static; margin-top: 5px; flex: none; }
.cal-ev__body { flex: 1; min-width: 0; }
.cal-ev__title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.cal-ev__meta { color: var(--bc-gray); font-size: 12px; margin-top: 2px; }
.cal-ev__del { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: none; background: none; border-radius: var(--radius-sm); color: var(--bc-light-gray); cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.cal-ev:hover .cal-ev__del, .cal-ev__del:focus-visible { opacity: 1; }
.cal-ev__del:hover { background: var(--danger-bg); color: var(--danger); }
.cal-ev__del svg { width: 14px; height: 14px; }
.cal-ev__open { flex: none; align-self: center; font-size: 12px; font-weight: 700; color: var(--bc-primary); text-decoration: none; padding: 4px 8px; border-radius: var(--radius-sm); }
.cal-ev__open:hover { background: color-mix(in srgb, var(--bc-primary) 10%, transparent); }
.agenda__item--meeting .agenda__when { color: var(--bc-primary); }

/* Planner: a quiet section under the day's events, not a boxed card-in-a-card. */
.cal-x__add { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bc-light); }
.cal-x__add-head { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-gray); margin-bottom: 1px; }
.cal-x__add .input { min-width: 0; }
.cal-x__add > .input { width: 100%; flex: none; }   /* title + type select */
.cal-x__add .btn { width: 100%; justify-content: center; margin-top: 2px; }
.cal-x__row { display: flex; gap: 10px; }
.cal-x__row .input, .cal-x__row .csel { flex: 1 1 0; min-width: 0; width: auto; }   /* type + time share the row */

@media (max-width: 720px) {
  .cal-x { grid-template-columns: 1fr; }
  .cal-x__side { border-left: none; padding-left: 0; border-top: 1px solid var(--bc-light); padding-top: 16px; }
}

/* ── Territory coverage world map ───────────────────────────────────── */
.worldwrap { margin-top: 2px; }
.worldmap { display: block; width: 100%; height: 240px; }
.worldmap path { fill: color-mix(in srgb, var(--bc-dark) 12%, var(--surface)); stroke: var(--surface); stroke-width: .4; transition: fill .2s ease; }
.worldmap [id="usa"], .worldmap [id="canada"], .worldmap [id="mexico"],
.worldmap [id="china"], .worldmap [id="india"], .worldmap [id="south korea"] { fill: var(--bc-dark); }
.worldmap [id="france"], .worldmap [id="germany"], .worldmap [id="spain"],
.worldmap [id="italy"], .worldmap [id="poland"], .worldmap [id="netherlands"],
.worldmap [id="belgium"], .worldmap [id="britain"] { fill: var(--bc-primary); }
@media (max-width: 600px) { .worldmap { height: 180px; } }
/* Blank instance — no licensed/highlighted regions (day-1 owner coverage). */
.worldwrap--blank .worldmap path { fill: color-mix(in srgb, var(--bc-dark) 12%, var(--surface)); }
/* Coverage painted from the profile by dashboard-home.js — overrides the blank fill. */
.worldwrap .worldmap path.cov-have { fill: var(--bc-dark); }
.worldwrap .worldmap path.cov-want { fill: var(--bc-primary); }
.map-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--bc-gray); }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.map-legend .dot-active { background: var(--bc-dark); }
.map-legend .dot-gap { background: var(--bc-primary); }
