/* Publifia — Dashboard v2 · refined modern restyle */
:root {
  --bg: #0e0e10;
  --surface: #151517;
  --surface2: #1a1a1d;
  --raised: #212125;
  --pp: #5aa2ff;
  --pp2: #7db8ff;
  --pp-soft: rgba(90,162,255,0.12);
  --pos: #3ecf8e;
  --neg: #e5484d;
  --txt: #eaeaeb;
  --txt2: #9b9ea6;
  --txt3: #666a73;
  --line: rgba(226,227,228,0.07);
  --line2: rgba(226,227,228,0.115);
  --card: var(--surface);
  --grad: #5aa2ff;
  --glow: rgba(255,255,255,0.035);
  --mono: 'Manrope', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg); color: var(--txt);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  letter-spacing: -0.005em;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 82% -8%, var(--glow), transparent 70%);
}
.tnum, .num { font-variant-numeric: tabular-nums; }

.app3 { position: relative; z-index: 1; display: grid; grid-template-columns: 244px 1fr; height: 100vh; }

/* ===== Sidebar ===== */
.sb { display: flex; flex-direction: column; background: transparent; padding: 18px 14px; overflow-y: auto; }
.sb-logo { display: flex; align-items: center; padding: 4px 8px 22px; }
.sb-logo img { height: 27px; }
.sb-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--txt3); padding: 12px 10px 8px; }
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 10px; color: var(--txt2); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: .14s; }
.sb-item svg { width: 18px; height: 18px; opacity: .7; flex: none; }
.sb-item:hover { background: rgba(255,255,255,0.035); color: var(--txt); }
.sb-item:hover svg { opacity: 1; }
.sb-item.on { background: var(--surface2); color: var(--txt); }
.sb-item.on svg { opacity: 1; color: var(--pp2); }
.sb-item .ct { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--txt3); background: rgba(255,255,255,0.05); padding: 1px 7px; border-radius: 999px; }

/* region filter */
.region { margin-top: 16px; border-radius: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.region .rg-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--txt); margin-bottom: 13px; }
.region .rg-h svg { width: 15px; height: 15px; color: var(--pp2); }
.fld { margin-bottom: 9px; }
.fld:last-child { margin-bottom: 0; }
.fld label { display: block; font-size: 11px; color: var(--txt3); margin-bottom: 5px; font-weight: 500; }
.fld select { width: 100%; padding: 9px 28px 9px 11px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line2); color: var(--txt); font-family: inherit; font-size: 13px; font-weight: 500; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2367677a' stroke-width='1.6'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.fld select:focus { outline: none; border-color: var(--pp); }
.rg-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.rg-meta .k { color: var(--txt3); }
.rg-meta .v { font-weight: 700; color: var(--pp2); }

.sb-sp { flex: 1; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; margin-top: 8px; }
.sb-user .av { width: 33px; height: 33px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.sb-user .nm { font-size: 13px; font-weight: 600; }
.sb-user .em { font-size: 11px; color: var(--txt3); }

/* ===== Main ===== */
.mn { display: flex; flex-direction: column; overflow: hidden; background: #101013; border-left: 1px solid var(--line); border-top-left-radius: 20px; margin: 8px 8px 0 0; }
.mn-top { display: flex; align-items: center; gap: 14px; padding: 18px 28px; flex: none; }
.mn-top .eyebrow { font-size: 12px; font-weight: 600; color: var(--pp2); margin-bottom: 4px; }
.mn-top h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.mn-top .sp { flex: 1; }
.daterange { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface); }
.daterange button { font-size: 12px; font-weight: 600; color: var(--txt2); padding: 7px 12px; border-radius: 8px; border: none; background: transparent; cursor: pointer; transition: .14s; }
.daterange button:hover { color: var(--txt); }
.daterange button.on { background: var(--raised); color: var(--txt); }
.ibtn { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--txt2); cursor: pointer; position: relative; transition: .14s; }
.ibtn:hover { color: var(--txt); background: var(--surface2); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn .dot { position: absolute; top: 9px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: #e05563; box-shadow: 0 0 0 2px var(--surface); }
.ibtn.on { color: var(--txt); background: var(--surface2); border: 1px solid var(--line2); }
.ibtn.shake svg { transform-origin: 50% 3px; animation: bellShake .7s cubic-bezier(.36,.07,.19,.97); }
@keyframes bellShake {
  0%,100% { transform: rotate(0); }
  10% { transform: rotate(20deg); } 20% { transform: rotate(-16deg); }
  30% { transform: rotate(13deg); } 40% { transform: rotate(-10deg); }
  50% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); } 80% { transform: rotate(-2deg); }
}
/* notifications dropdown */
.notif-wrap { position: relative; display: flex; }
.notif-scrim { position: fixed; inset: 0; z-index: 40; }
.notif-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: 340px; background: var(--surface); border: 1px solid var(--line2); border-radius: 15px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02); overflow: hidden; transform-origin: top right; animation: notifPop .18s cubic-bezier(.2,.9,.3,1) both; }
@keyframes notifPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.np-t { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.np-count { font-size: 11px; font-weight: 700; color: #fff; background: var(--pp); padding: 1px 7px; border-radius: 999px; }
.np-read { font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--txt3); background: none; border: none; cursor: pointer; transition: .14s; }
.np-read:hover { color: var(--pp2); }
.np-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.np-item { position: relative; display: flex; gap: 11px; padding: 11px 12px; border-radius: 11px; cursor: pointer; transition: .12s; }
.np-item:hover { background: var(--surface2); }
.np-item.unread { background: var(--pp-soft); }
.np-item.unread:hover { background: rgba(119,122,129,0.18); }
.np-item:not(.unread) { opacity: 0.5; }
.np-item:not(.unread):hover { opacity: 0.75; }
.np-item:not(.unread) .np-ic { background: var(--surface2) !important; color: var(--txt3) !important; }
.np-ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--txt2); }
.np-item.unread .np-ic { background: rgba(119,122,129,0.2); color: var(--pp2); }
.np-ic svg { width: 16px; height: 16px; }
.np-ic.reply { color: #5fd08a; } .np-item.unread .np-ic.reply { background: rgba(95,208,138,0.16); color: #5fd08a; }
.np-ic.cov { color: #a3a6ab; } .np-item.unread .np-ic.cov { background: rgba(163,166,171,0.16); color: #a3a6ab; }
.np-ic.send { color: #7dd3fc; } .np-item.unread .np-ic.send { background: rgba(125,211,252,0.16); color: #7dd3fc; }
.np-tx { min-width: 0; flex: 1; }
.np-msg { font-size: 12.5px; font-weight: 500; color: var(--txt); line-height: 1.4; }
.np-time { font-size: 11px; color: var(--txt3); font-weight: 500; margin-top: 4px; }
.np-udot { width: 7px; height: 7px; border-radius: 50%; background: var(--pp); flex: none; align-self: center; }
.np-foot { width: 100%; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt2); background: none; border: none; border-top: 1px solid var(--line); padding: 12px; cursor: pointer; transition: .14s; }
.np-foot:hover { color: var(--txt); background: var(--surface2); }
/* header search */
.search-wrap { position: relative; display: flex; }
.mn-search { display: inline-flex; align-items: center; gap: 9px; width: 300px; padding: 9px 13px; border-radius: 11px; background: var(--surface); border: 1px solid transparent; color: var(--txt3); font-size: 13px; cursor: text; transition: .14s; }
.search-wrap.focus .mn-search { border-color: var(--pp); background: var(--bg); }
.mn-search svg { width: 16px; height: 16px; flex: none; }
.mn-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--txt); font-family: inherit; font-size: 13px; }
.mn-search input::placeholder { color: var(--txt3); }
.mn-search .kbd { flex: none; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,0.05); }
.search-scrim { position: fixed; inset: 0; z-index: 40; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 380px; max-height: 400px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8); padding: 6px; animation: notifPop .16s cubic-bezier(.2,.9,.3,1) both; }
.sp-empty { padding: 22px; text-align: center; font-size: 13px; color: var(--txt3); font-weight: 500; }
.sp-row { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; cursor: pointer; transition: .12s; }
.sp-row:hover { background: var(--surface2); }
.sp-g { flex: none; width: 68px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pp2); }
.sp-tx { flex: 1; min-width: 0; }
.sp-t { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.sp-s { font-size: 11.5px; color: var(--txt3); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-arrow { flex: none; color: var(--txt3); font-size: 14px; opacity: 0; transition: .12s; }
.sp-row:hover .sp-arrow { opacity: 1; }

/* all-activity modal */
.act-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(99,79,54,0.66); backdrop-filter: blur(6px); animation: notifPop .18s ease both; }
.act-modal { width: min(560px, 96vw); max-height: 84vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8); overflow: hidden; }
.act-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.act-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.act-sub { font-size: 12.5px; color: var(--txt3); margin-top: 3px; font-weight: 500; }
.act-x { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--txt3); cursor: pointer; }
.act-x:hover { background: var(--surface2); color: var(--txt); }
.act-x svg { width: 18px; height: 18px; }
.act-list { overflow-y: auto; padding: 8px 12px 14px; }
.act-date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--txt3); padding: 14px 6px 8px; position: sticky; top: 0; background: var(--surface); }
.act-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 11px; transition: .12s; }
.act-item:hover { background: var(--surface2); }
.act-tx { flex: 1; min-width: 0; }
.act-msg { font-size: 13px; font-weight: 500; color: var(--txt); line-height: 1.4; }
.act-time { flex: none; font-size: 11.5px; color: var(--txt3); font-weight: 600; font-variant-numeric: tabular-nums; }
.cta { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 11px; background: #fff; color: #16161d; border: none; cursor: pointer; transition: .14s; }
.cta:hover { background: #e9e9ef; }
.cta svg { width: 16px; height: 16px; }

.mn-scroll { overflow-y: auto; padding: 10px 28px 24px; flex: 1; }
.mn-scroll::-webkit-scrollbar { width: 9px; }
.mn-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* ===== Bento ===== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(10px, auto); gap: 16px; }
.tile-span-all { grid-column: 1 / -1; }
.cov-tabs { display: flex; align-items: center; gap: 14px; }
.cov-tabs-lab { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--txt3); flex: none; }
.cov-tabrow { display: flex; gap: 8px; flex-wrap: wrap; }
.cov-tab { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--txt2);
  padding: 8px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); cursor: pointer; transition: .14s; white-space: nowrap; }
.cov-tab:hover { color: var(--txt); border-color: var(--line2); }
.cov-tab.on { background: var(--pp); border-color: transparent; color: #fff; box-shadow: 0 4px 14px -6px var(--pp); }
.cov-tab-live { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); flex: none; }
.cov-tab.on .cov-tab-live { background: #fff; }
.c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; }
.c12 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }

.tile { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px; overflow: hidden; box-shadow: var(--shadow); }
.eyelab { font-size: 12.5px; font-weight: 600; color: var(--txt2); display: flex; align-items: center; justify-content: space-between; }
.eyelab svg { width: 16px; height: 16px; flex: none; }
.eyelab .gear { cursor: pointer; color: var(--txt3); }
.eyelab .gear:hover { color: var(--txt2); }
.eyelab .gear svg { width: 16px; height: 16px; }
.tile-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 0; }

/* LineChart styles */
.chart-hover { position: relative; width: 100%; margin-top: 14px; }
.viz-chart { width: 100%; height: 150px; display: block; }
.ch-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.16); transform: translateX(-0.5px); pointer-events: none; }
.ch-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px var(--surface); pointer-events: none; }
.ch-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 11px; pointer-events: none; min-width: 122px; z-index: 5; box-shadow: var(--shadow); }
.ch-tip.flip { transform: translateX(-100%); }
.ch-tip-m { font-size: 11px; color: var(--txt3); margin-bottom: 6px; font-weight: 600; }
.ch-tip-row { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-top: 3px; }
.ch-tip-dot { width: 7px; height: 7px; border-radius: 50%; }
.ch-tip-l { color: var(--txt2); } .ch-tip-v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* hero primary */
.hero { grid-column: span 4; background: #a2a4a9; border: none; color: #fff; display: flex; flex-direction: column; box-shadow: 0 12px 40px -16px rgba(163,165,170,0.7); }
.hero .eyelab { color: rgba(255,255,255,0.72); }
.hero .eyelab svg { color: rgba(255,255,255,0.8); }
.hero .big { font-size: 60px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.hero .big small { font-size: 22px; font-weight: 600; opacity: .8; }
.hero .sub { font-size: 13.5px; opacity: .82; margin-top: 10px; line-height: 1.45; }
.hero .pillrow { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .hp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,0.16); white-space: nowrap; }
.hero .hp svg { width: 13px; height: 13px; }

/* trend tile */
.trend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trend-legend { display: flex; gap: 14px; }
.lgd { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt2); font-weight: 500; }
.lgd i { width: 9px; height: 9px; border-radius: 3px; }

/* kpi mini */
.kmini { display: flex; flex-direction: column; }
.kmini .top { display: flex; align-items: center; gap: 10px; }
.kmini .ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--surface2); color: var(--pp2); }
.kmini .ic svg { width: 16px; height: 16px; }
.kmini .nm { font-size: 12.5px; color: var(--txt2); font-weight: 500; }
.kmini .v { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; margin-top: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
.kmini .v small { font-size: 16px; color: var(--txt2); }
.kmini .d { margin-top: 8px; font-size: 12px; display: flex; align-items: center; gap: 6px; color: var(--txt3); }
.kmini .d b { font-weight: 700; }
.kmini .d b.up { color: var(--pos); } .kmini .d b.down { color: var(--neg); }

/* map tile */
.maptile { padding: 0; }
.maptile .mt-bg { position: absolute; inset: 0; opacity: .85; }
.maptile .mt-over { position: relative; z-index: 1; padding: 20px; height: 100%; display: flex; flex-direction: column; }
.mt-readout { margin-top: auto; display: flex; gap: 10px; }
.mt-stat { flex: 1; border-radius: 12px; background: rgba(14,14,16,0.66); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 12px 14px; }
.mt-stat .k { font-size: 11.5px; color: var(--txt3); font-weight: 500; }
.mt-stat .v { font-size: 21px; font-weight: 700; margin-top: 5px; letter-spacing: -0.02em; }
.mt-stat .v.acc { color: var(--pp2); }
.mt-region-chip { position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(14,14,16,0.72); border: 1px solid var(--line2); backdrop-filter: blur(10px); }
.mt-region-chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pp2); box-shadow: 0 0 0 0 rgba(119,122,129,0.6); animation: pls 2.4s infinite; }
@keyframes pls { 0%{ box-shadow: 0 0 0 0 rgba(119,122,129,0.5);} 70%{ box-shadow: 0 0 0 8px rgba(119,122,129,0);} 100%{ box-shadow: 0 0 0 0 rgba(119,122,129,0);} }

/* real coverage map + campaign filter */
.cv-mapwrap { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.cv-map { position: absolute; inset: 0; }
.cv-map .leaflet-container { width: 100%; height: 100%; background: #604e39; font-family: inherit; }
.maptile .mt-over { pointer-events: none; }
.maptile .mt-over .mt-stat { pointer-events: auto; }
.cv-mapwrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(14,14,16,0.78)); }

.cv-filter { position: absolute; top: 18px; right: 18px; z-index: 3; }
.cv-chip { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt);
  padding: 7px 12px; border-radius: 999px; background: rgba(14,14,16,0.78); border: 1px solid var(--line2); backdrop-filter: blur(10px); cursor: pointer; transition: border-color .15s; }
.cv-chip:hover { border-color: rgba(119,122,129,0.4); }
.cv-chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pp2); box-shadow: 0 0 0 0 rgba(119,122,129,0.6); animation: pls 2.4s infinite; }
.cv-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 268px; padding: 6px; border-radius: 14px;
  background: rgba(21,21,24,0.94); border: 1px solid var(--line2); backdrop-filter: blur(20px); box-shadow: 0 20px 60px -18px rgba(0,0,0,0.7); z-index: 4;
  max-height: 320px; overflow-y: auto; animation: cvIn .16s ease both; }
@keyframes cvIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cv-menu button { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer; transition: background .13s; }
.cv-menu button:hover { background: rgba(255,255,255,0.05); }
.cv-menu button.on { background: rgba(119,122,129,0.14); }
.cvm-nm { font-size: 13px; font-weight: 600; color: var(--txt); display: flex; align-items: center; gap: 7px; }
.cvm-live { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); flex: none; }
.cvm-sub { font-size: 11px; color: var(--txt3); }

.cv-pin { position: relative; }
.cv-pin .cv-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0) 45%), var(--pp2);
  border: 2px solid rgba(255,255,255,0.92); box-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 0 14px rgba(119,122,129,0.7); z-index: 2; }
.cv-pin .cv-ripple { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-50%,-50%); border-radius: 50%;
  background: rgba(119,122,129,0.4); animation: cvPulse 2.6s ease-out infinite; }
@keyframes cvPulse { 0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.7; } 100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0; } }

/* donut tile */
.donut-mini { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.dl { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.dl-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.dl-row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.dl-row .nm { color: var(--txt2); } .dl-row .vv { margin-left: auto; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }

/* placements list */
.plist { display: flex; flex-direction: column; margin-top: 14px; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.prow:first-child { padding-top: 0; }
.prow:last-child { border-bottom: none; padding-bottom: 0; }
.prow .pn { font-size: 13.5px; font-weight: 600; }
.prow .pm { font-size: 12px; color: var(--txt3); margin-top: 4px; font-weight: 500; }
.prow .badge2 { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; align-self: center; white-space: nowrap; }
.badge2.live { background: rgba(95,208,138,0.14); color: var(--pos); }
.badge2.pos { background: var(--pp-soft); color: var(--pp2); }
.badge2.neu { background: rgba(226,227,228,0.075); color: var(--txt2); }

/* bars */
.barz { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.bz { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; }
.bz .nm { font-size: 12.5px; color: var(--txt2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz .tk { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.bz .fl { height: 100%; border-radius: 999px; }
.bz .vl { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Floating AI launcher ===== */
.aifab { position: fixed; right: 28px; bottom: 26px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ai-dot { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: transparent; padding: 0; align-self: flex-end; }
.ai-dot-core { position: absolute; inset: 11px; border-radius: 50%; background: var(--grad); box-shadow: 0 10px 28px -8px rgba(119,122,129,0.8), 0 0 0 1px rgba(255,255,255,0.12) inset; transition: transform .18s; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ai-dot-core img { width: 78%; height: 78%; object-fit: contain; }
.ai-dot:hover .ai-dot-core { transform: scale(1.06); }
.ai-ripple { position: absolute; inset: 11px; border-radius: 50%; background: var(--pp); opacity: .55; animation: ai-ripple 2.6s ease-out infinite; }
.ai-ripple.r2 { animation-delay: 1.3s; }
@keyframes ai-ripple { 0% { transform: scale(0.7); opacity: .55; } 80% { opacity: 0; } 100% { transform: scale(2.2); opacity: 0; } }
.aifab.open .ai-ripple { animation-play-state: paused; opacity: 0; }
.aifab.open .ai-dot-core { transform: scale(0.82); }

.ai-panel { width: 360px; background: var(--surface); border: 1px solid var(--line2); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.85); transform-origin: bottom right; animation: ai-pop .22s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ai-pop { from { transform: scale(0.9) translateY(12px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.ai-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-panel-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ai-orb-sm { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.ai-orb-sm img { width: 78%; height: 78%; object-fit: contain; }
.ai-close { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--txt3); cursor: pointer; transition: .14s; }
.ai-close:hover { background: var(--surface2); color: var(--txt); }
.ai-close svg { width: 16px; height: 16px; }
.ai-insight { font-size: 13px; color: var(--txt2); line-height: 1.5; font-weight: 500; background: var(--bg); border-radius: 12px; padding: 13px 14px; }
.ai-insight b { color: var(--txt); font-weight: 700; } .ai-insight .hl { color: var(--pp2); font-weight: 700; }
.ai-recs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
.ai-recs-lab { font-size: 11.5px; font-weight: 600; color: var(--txt3); margin-bottom: 2px; }
.chip { font-size: 13px; font-weight: 500; padding: 9px 14px; border-radius: 10px; background: var(--surface2); color: var(--txt2); cursor: pointer; transition: .14s; width: 100%; text-align: left; }
.chip:hover { background: var(--raised); color: var(--txt); }
.ask { display: flex; align-items: center; gap: 9px; padding: 7px 7px 7px 15px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line2); }
.ask input { flex: 1; background: transparent; border: none; outline: none; color: var(--txt); font-family: inherit; font-size: 13.5px; min-width: 0; }
.ask input::placeholder { color: var(--txt3); }
.ask .go { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; flex: none; }
.ask .go svg { width: 16px; height: 16px; }

@media (max-width: 1200px) {
}
@media (max-width: 880px) {
  .app3 { grid-template-columns: 1fr; }
  .sb { display: none; }
  .mn { margin: 0; border-radius: 0; border-left: none; }
}
@media (max-width: 720px) {
  .hero, .c4, .c3, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .r2 { grid-row: auto; }
}

/* ============ View-specific UI ============ */
.btn3 { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 15px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--txt); cursor: pointer; transition: .14s; white-space: nowrap; }
.btn3:hover { background: var(--surface2); }
.btn3 svg { width: 16px; height: 16px; }
.btn3.pp { background: #fff; border-color: transparent; color: #16161d; }
.btn3.pp:hover { background: #e9e9ef; }

.viewbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.viewbar .sp { flex: 1; }
.fchips { display: flex; gap: 6px; }
.fchip { font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: var(--surface); color: var(--txt2); cursor: pointer; transition: .14s; }
.fchip:hover { color: var(--txt); }
.fchip.on { background: var(--raised); color: var(--txt); }

/* clickable tile */
.tile.click { cursor: pointer; transition: .14s; }
.tile.click:hover { background: var(--surface2); border-color: var(--line2); }

/* status badge */
.stbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.stbadge i { width: 6px; height: 6px; border-radius: 50%; }
.stbadge.live { background: rgba(95,208,138,0.13); color: var(--pos); } .stbadge.live i { background: var(--pos); }
.stbadge.sched { background: var(--pp-soft); color: var(--pp2); } .stbadge.sched i { background: var(--pp2); }
.stbadge.draft { background: rgba(226,227,228,0.075); color: var(--txt2); } .stbadge.draft i { background: var(--txt3); }
.stbadge.done { background: rgba(226,227,228,0.075); color: var(--txt2); } .stbadge.done i { background: var(--txt2); }

/* campaign card */
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cc-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; margin-top: 14px; }
.cc-sub { font-size: 12.5px; color: var(--txt3); margin-top: 4px; font-weight: 500; }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.cc-stat { background: var(--bg); border-radius: 11px; padding: 11px 12px; }
.cc-stat .n { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cc-stat .l { font-size: 11px; color: var(--txt3); margin-top: 3px; font-weight: 500; }
.cc-prog { display: flex; align-items: center; gap: 10px; }
.cc-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(226,227,228,0.075); overflow: hidden; }
.cc-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.cc-pct { font-size: 12px; font-weight: 600; color: var(--txt2); font-variant-numeric: tabular-nums; }

/* ===== Pitching Studio (rebuilt — 3-step flow) ===== */
.pstudio { display: flex; flex-direction: column; gap: 34px; max-width: 1180px; }
.pstep-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pstep-num { width: 28px; height: 28px; border-radius: 9px; background: var(--pp-soft); color: var(--pp2); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-variant-numeric: tabular-nums; }
.pstep-tt { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.pstep-sub { font-size: 13px; color: var(--txt3); margin-top: 2px; font-weight: 500; }
.pstep-rule { flex: 1; height: 1px; background: var(--line); align-self: center; margin-left: 4px; }

/* Step 1 — Strategic Foundations */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcard { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 19px; box-shadow: var(--shadow); transition: .14s; }
.fcard:hover { border-color: var(--line2); }
.fcard .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.fcard .fc-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface2); color: var(--pp2); display: flex; align-items: center; justify-content: center; }
.fcard .fc-ic svg { width: 18px; height: 18px; }
.fcard .fc-no { font-size: 11.5px; font-weight: 700; color: var(--txt3); font-variant-numeric: tabular-nums; }
.fcard h4 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.fcard p { font-size: 12.5px; color: var(--txt2); line-height: 1.55; margin-top: 8px; font-weight: 500; }

/* Step 2 — Inspiration Library */
.lib-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lib-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2); transition: .14s; }
.lib-search:focus-within { border-color: var(--pp); }
.lib-search svg { width: 17px; height: 17px; color: var(--txt3); flex: none; }
.lib-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--txt); font-family: inherit; font-size: 13.5px; }
.lib-search input::placeholder { color: var(--txt3); }
.lib-count { font-size: 12.5px; color: var(--txt3); font-weight: 600; white-space: nowrap; }
.lib-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.fwgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fwcard { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: .14s; }
.fwcard:hover { border-color: var(--line2); }
.fw-cat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--pp2); background: var(--pp-soft); padding: 4px 10px; border-radius: 7px; }
.fwcard h4 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; margin-top: 12px; }
.fw-desc { font-size: 12.5px; color: var(--txt2); line-height: 1.55; margin-top: 6px; font-weight: 500; }
.fw-preview { margin-top: 15px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 14px 15px; position: relative; overflow: hidden; }
.fw-subj { font-size: 12.5px; font-weight: 700; color: var(--txt); line-height: 1.4; }
.fw-subj span { color: var(--txt3); font-weight: 600; }
.fw-body { font-size: 12px; color: var(--txt2); line-height: 1.65; margin-top: 9px; white-space: pre-wrap; font-weight: 500; }
.fw-body.clip { max-height: 78px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
.fw-foot { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.fw-expand { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt2); background: none; border: none; cursor: pointer; padding: 0; transition: .14s; }
.fw-expand:hover { color: var(--txt); }
.fw-foot .sp { flex: 1; }

/* Step 3 — Studio Polish */
.canvas2 { display: grid; grid-template-columns: 1fr 372px; gap: 16px; align-items: start; }
.canvas-main { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.canvas-loaded { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--pp2); background: var(--pp-soft); padding: 6px 12px; border-radius: 8px; margin-bottom: 14px; }
.canvas-loaded svg { width: 14px; height: 14px; }
.canvas-area { width: 100%; min-height: 320px; resize: vertical; padding: 16px 17px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line2); color: var(--txt); font-family: inherit; font-size: 14px; line-height: 1.7; }
.canvas-area:focus { outline: none; border-color: var(--pp); }
.canvas-area::placeholder { color: var(--txt3); }
.canvas-foot { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.canvas-meta { font-size: 12px; color: var(--txt3); font-weight: 500; font-variant-numeric: tabular-nums; }
.canvas-foot .sp { flex: 1; }
.audit-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 700; padding: 11px 18px; border-radius: 11px; background: var(--grad); color: #fff; border: none; cursor: pointer; transition: .14s; box-shadow: 0 8px 22px -10px rgba(119,122,129,0.8); }
.audit-btn:hover { filter: brightness(1.06); }
.audit-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.audit-btn svg { width: 16px; height: 16px; }

.scorecard { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px 20px; box-shadow: var(--shadow); position: sticky; top: 8px; }
.sc-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--txt2); margin-bottom: 4px; }
.sc-head svg { width: 16px; height: 16px; color: var(--pp2); }
.audit-empty { text-align: center; padding: 26px 8px 12px; }
.audit-empty .ae-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface2); color: var(--txt3); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.audit-empty .ae-ic svg { width: 27px; height: 27px; }
.audit-empty h4 { font-size: 15px; font-weight: 700; }
.audit-empty p { font-size: 12.5px; color: var(--txt3); line-height: 1.55; margin-top: 8px; font-weight: 500; }
.sc-ring { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.sc-ring-meta .grade { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.sc-ring-meta .gsub { font-size: 12px; color: var(--txt3); margin-top: 4px; line-height: 1.5; font-weight: 500; }
.sub-scores { display: flex; flex-direction: column; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.ssrow .ss-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.ssrow .ss-nm { font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.ssrow .ss-v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ssrow .ss-tk { height: 7px; border-radius: 999px; background: rgba(226,227,228,0.075); overflow: hidden; }
.ssrow .ss-fl { height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.sc-fb { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sc-fb li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--txt2); font-weight: 500; }
.sc-fb li .fb-ic { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.sc-fb li.good .fb-ic { color: var(--pos); }
.sc-fb li.warn .fb-ic { color: #a3a6ab; }

@media (max-width: 1100px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .canvas2 { grid-template-columns: 1fr; }
  .scorecard { position: static; }
}
@media (max-width: 720px) {
  .fgrid, .fwgrid { grid-template-columns: 1fr; }
}

/* ===== Team activity grid ===== */
.act { grid-column: span 12; }
.act-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.act-top h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.act-kpis { display: flex; gap: 34px; flex-wrap: wrap; }
.act-kpi .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt3); }
.act-kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.act-months { display: grid; grid-template-columns: 34px repeat(12, minmax(0,1fr)); margin-top: 22px; }
.act-months span { grid-column: auto; font-size: 11px; font-weight: 600; color: var(--txt2); }
.act-body { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 8px; margin-top: 7px; }
.act-days { display: grid; grid-template-rows: repeat(7, 1fr); }
.act-days span { font-size: 9.5px; font-weight: 600; color: var(--txt3); display: flex; align-items: center; }
.act-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 3px; }
.act-cell { aspect-ratio: 1; border-radius: 3px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.act-cell.l1 { background: rgba(90,162,255,0.3); box-shadow: none; }
.act-cell.l2 { background: rgba(90,162,255,0.52); box-shadow: none; }
.act-cell.l3 { background: rgba(90,162,255,0.74); box-shadow: none; }
.act-cell.l4 { background: var(--pp); box-shadow: 0 0 0 1px rgba(125,184,255,0.35); }
.act-cell:hover { outline: 1.5px solid var(--pp2); outline-offset: 1px; }
.act-legend { display: flex; align-items: center; gap: 4px; margin: 12px 0 0 42px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt3); }
.act-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.act-legend i.l1 { background: rgba(90,162,255,0.3); box-shadow: none; }
.act-legend i.l2 { background: rgba(90,162,255,0.52); box-shadow: none; }
.act-legend i.l3 { background: rgba(90,162,255,0.74); box-shadow: none; }
.act-legend i.l4 { background: var(--pp); box-shadow: none; }
.act-legend .lb { margin-right: 4px } .act-legend .rb { margin-left: 4px }
.act-foot { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.act-foot .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt3); }
.act-foot .v { font-size: 13px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.act-foot .v small { font-weight: 600; color: var(--txt2); }
@media (max-width: 1100px) { .act-kpis { gap: 22px } .act-foot { grid-template-columns: repeat(2, minmax(0,1fr)) } }

/* ===== Schedule ===== */
.cal { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.cal-grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.cal-hcell { padding: 15px 8px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-hcell:first-child { border-left: none; }
.cal-hcell .dow { font-size: 11px; color: var(--txt3); font-weight: 600; }
.cal-hcell .dnum { font-size: 16px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.cal-hcell.today .dnum { color: var(--pp2); }
.cal-tcell { font-size: 11px; color: var(--txt3); padding: 7px 7px 0; text-align: right; border-top: 1px solid var(--line); font-weight: 500; }
.cal-cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 82px; padding: 6px; position: relative; }
.evt { border-radius: 8px; padding: 7px 9px; font-size: 11.5px; font-weight: 600; margin-bottom: 4px; }
.evt.v { background: var(--pp-soft); color: var(--pp2); }
.evt.t { background: rgba(95,208,138,0.13); color: var(--pos); }
.evt.o { background: rgba(226,227,228,0.075); color: var(--txt2); }
.evt .et { font-size: 10px; opacity: .8; font-weight: 500; }

/* ===== Team ===== */
.trow { display: grid; grid-template-columns: 1.6fr 1fr 100px 90px 40px; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: none; }
.trow.head { padding: 13px 18px; }
.trow.head span { font-size: 11.5px; color: var(--txt3); font-weight: 600; }
.tperson { display: flex; align-items: center; gap: 12px; }
.tperson .av { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; flex: none; }
.tperson .tn { font-size: 13.5px; font-weight: 600; } .tperson .te { font-size: 11.5px; color: var(--txt3); margin-top: 1px; }
.role { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 8px; display: inline-block; }
.role.admin { background: var(--pp-soft); color: var(--pp2); }
.role.editor { background: rgba(226,227,228,0.075); color: var(--txt2); }
.role.viewer { background: rgba(255,255,255,0.04); color: var(--txt3); }
.tnum { font-size: 13.5px; font-weight: 600; }
.tmeta { font-size: 12.5px; color: var(--txt3); font-weight: 500; }

/* ===== Integrations ===== */
.intg { display: flex; flex-direction: column; gap: 14px; }
.intg-logo { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; flex: none; }
.intg-logo svg { width: 22px; height: 22px; }
.intg-name { font-size: 15px; font-weight: 700; }
.intg-desc { font-size: 13px; color: var(--txt2); line-height: 1.55; margin-top: 4px; flex: 1; font-weight: 500; }
.intg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.intg-status { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.intg-status.on { color: var(--pos); } .intg-status.off { color: var(--txt3); }
.intg-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sw { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.12); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.sw.on { background: var(--pp); }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw.on::after { transform: translateX(18px); }

/* greeting / actions */
.home-wrap { position: relative; }
.home-bento { position: relative; z-index: 1; }
.greet { grid-column: span 8; position: relative; overflow: hidden; display: flex; align-items: center; gap: 26px;
  background: var(--surface); border: 1px solid var(--line); color: var(--txt);
  box-shadow: var(--shadow); }
.greet::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: .9; z-index: 1; }
.greet::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(192,194,197,0.13) 1.3px, transparent 1.4px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 96%);
  mask-image: linear-gradient(100deg, transparent 40%, #000 96%); }
.greet-content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.greet .hi { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.greet .gsub { font-size: 14px; color: var(--txt2); margin-top: 8px; max-width: 440px; line-height: 1.55; }
.greet .gbtns { display: flex; gap: 9px; margin-top: 22px; }
.greet .gbtn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 600; padding: 10px 15px; border-radius: 11px; background: var(--surface2); color: var(--txt); cursor: pointer; border: 1px solid var(--line2); transition: .14s; }
.greet .gbtn:hover { background: var(--raised); border-color: var(--line2); }
.greet .gbtn.w { background: var(--pp); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(119,122,129,0.9); }
.greet .gbtn.w:hover { background: var(--pp2); }
.greet .gbtn svg { width: 15px; height: 15px; }
.greet-stats { position: relative; z-index: 1; display: flex; gap: 10px; flex: none; align-items: center; perspective: 900px; }
.greet-stats .gstat { transform-origin: center; backface-visibility: hidden;
  animation: gstatFlip .72s cubic-bezier(.2,.85,.3,1) both; }
.greet-stats .gstat:nth-child(1) { animation-delay: .10s; }
.greet-stats .gstat:nth-child(2) { animation-delay: .24s; }
.greet-stats .gstat:nth-child(3) { animation-delay: .38s; }
@keyframes gstatFlip {
  0%   { opacity: 0; transform: rotateY(88deg) translateX(14px); }
  55%  { opacity: 1; }
  78%  { transform: rotateY(-9deg); }
  100% { opacity: 1; transform: rotateY(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .greet-stats .gstat { animation: none; }
}
.greet-stats .gstat { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 92px; padding: 15px 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.greet-stats .gs-n { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.greet-stats .gs-n.up { color: var(--pos); }
.greet-stats .gs-l { font-size: 11.5px; color: var(--txt3); font-weight: 500; }
.actiontile { cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: .14s; }
.actiontile:hover { background: var(--surface2); border-color: var(--line2); }

/* Explore your city — mini map card */
.explore-tile { position: relative; overflow: hidden; padding: 0; min-height: 196px; cursor: pointer; border: 1px solid var(--line); transition: border-color .14s; }
.explore-tile:hover { border-color: var(--line2); }
.explore-tile .ex-map { position: absolute; inset: 0; z-index: 0; }
.explore-tile .leaflet-container { width: 100%; height: 100%; background: #14141a; }
.explore-tile .ex-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--surface) 4%, color-mix(in oklab, var(--surface) 82%, transparent) 40%, transparent 78%); }
.explore-tile .ex-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; }
.explore-tile .ex-copy { min-width: 0; }
.explore-tile .ex-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pp2); }
.explore-tile .ex-eyebrow svg { width: 13px; height: 13px; }
.explore-tile .ex-title { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin-top: 9px; color: var(--txt); }
.explore-tile .ex-sub { font-size: 13px; color: var(--txt2); margin-top: 6px; font-weight: 500; }
.explore-tile .ex-cta { flex: none; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; background: var(--pp); border: none; padding: 11px 17px; border-radius: 11px; cursor: pointer; transition: .14s; box-shadow: 0 8px 20px -10px rgba(119,122,129,0.9); }
.explore-tile .ex-cta svg { width: 15px; height: 15px; }
.explore-tile:hover .ex-cta { background: var(--pp2); }
.mini-pin span { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
@media (max-width: 1040px) {
  .greet { flex-direction: column; align-items: stretch; }
  .greet-stats { align-items: stretch; }
  .greet-stats .gstat { flex: 1; }
}
@media (max-width: 720px) {
  .greet-stats { flex-wrap: wrap; }
}
.actiontile .ai-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--pp2); }
.actiontile:hover .ai-ic { background: var(--raised); }
.actiontile .ai-ic svg { width: 19px; height: 19px; }
.actiontile .at-t { font-size: 14px; font-weight: 600; }
.actiontile .at-d { font-size: 12.5px; color: var(--txt3); margin-top: 3px; }
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 13px; padding: 12px 0; }
.feed-row .fdot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; position: relative; }
.feed-row .fdot::after { content: ''; position: absolute; left: 50%; top: 13px; transform: translateX(-50%); width: 1px; height: 28px; background: var(--line); }
.feed-row:last-child .fdot::after { display: none; }
.feed-row .ft { font-size: 13px; color: var(--txt); line-height: 1.4; }
.feed-row .ft b { font-weight: 700; }
.feed-row .fm { font-size: 11.5px; color: var(--txt3); margin-top: 3px; font-weight: 500; }
.usebar { margin-top: 12px; }
.usebar .ub-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin: 12px 0 8px; }
.usebar .ub-track span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .usebar .ub-fill { transform-origin: left center; animation: ubGrow 1.2s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes ubGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ===== Team workspace ===== */
.ws-empty { border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.ws-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ws-toggle { display: flex; align-items: center; gap: 12px; }
.ws-empty-body { padding: 52px 40px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 560px; margin: 0 auto; }
.ws-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--pp-soft); display: flex; align-items: center; justify-content: center; color: var(--pp2); margin-bottom: 24px; }
.ws-icon svg { width: 38px; height: 38px; }
.ws-empty-body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ws-empty-body p { font-size: 14px; color: var(--txt2); margin-top: 10px; line-height: 1.55; font-weight: 500; }
.ws-empty-body .btn3 { margin-top: 26px; padding: 12px 22px; font-size: 14px; }
.ws-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; width: 100%; }
.ws-feat-i { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 18px 14px; border-radius: 14px; background: var(--surface2); }
.ws-feat-i > span { width: 38px; height: 38px; border-radius: 11px; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--pp2); }
.ws-feat-i > span svg { width: 19px; height: 19px; stroke-width: 1.7; }
.ws-feat-i > div { display: flex; flex-direction: column; gap: 3px; }
.ws-feat-i b { font-size: 13px; font-weight: 600; }
.ws-feat-i span:not(:first-child), .ws-feat-i > div span { font-size: 11.5px; color: var(--txt3); font-weight: 500; }

.ts-list { display: flex; flex-direction: column; margin-top: 6px; }
.ts-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ts-row:last-child { border-bottom: none; }
.ts-bar { width: 3px; height: 30px; border-radius: 3px; flex: none; }
.ts-bar.v { background: var(--pp); } .ts-bar.t { background: var(--pos); } .ts-bar.o { background: #a3a6ab; }
.ts-task { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.ts-who { font-size: 12px; color: var(--txt3); margin-top: 3px; font-weight: 500; }
.ts-when { font-size: 12px; color: var(--txt2); font-weight: 600; white-space: nowrap; }

/* ============ Color palette + motion (Overview & Pitching Studio) ============ */
:root {
  --c-purple: #c8cdd6; --c-purple-bg: rgba(200,205,214,0.13);
  --c-blue: #5aa2ff; --c-blue-bg:   rgba(91,155,255,0.16);
  --c-teal: #3ecf8e; --c-teal-bg:   rgba(52,211,192,0.15);
  --c-pink:   #ff95c0; --c-pink-bg:   rgba(255,111,165,0.15);
  --c-amber: #8f939c; --c-amber-bg:  rgba(165,167,171,0.17);
}
.tint-purple { --tint: var(--c-purple); --tint-bg: var(--c-purple-bg); }
.tint-blue   { --tint: var(--c-blue);   --tint-bg: var(--c-blue-bg); }
.tint-teal   { --tint: var(--c-teal);   --tint-bg: var(--c-teal-bg); }
.tint-pink   { --tint: var(--c-pink);   --tint-bg: var(--c-pink-bg); }
.tint-amber  { --tint: var(--c-amber);  --tint-bg: var(--c-amber-bg); }

/* colored action tiles (Overview) */
.tile.actiontile { transition: transform .18s cubic-bezier(.2,.8,.2,1), background .14s, border-color .14s, box-shadow .18s; }
.tile.actiontile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0,0,0,0.7); }
.actiontile.tinted .ai-ic { background: var(--tint-bg); color: var(--tint); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.actiontile.tinted:hover .ai-ic { background: var(--tint-bg); transform: scale(1.08) rotate(-3deg); }

/* colored foundation cards (Studio step 1) */
.fcard[class*="tint-"] .fc-ic { background: var(--tint-bg); color: var(--tint); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.fcard[class*="tint-"] .fc-no { color: var(--tint); opacity: .9; }
.fcard:hover { transform: translateY(-3px); }
.fcard[class*="tint-"]:hover .fc-ic { transform: scale(1.08) rotate(-3deg); }

/* category-colored framework pills (Studio step 2) */
.fwcard[class*="tint-"] .fw-cat { color: var(--tint); background: var(--tint-bg); }
.fwcard:hover { transform: translateY(-3px); }

/* ---- entrance motion ---- */
@keyframes tileRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes softIn   { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .home-bento > .tile { opacity: 0; animation: tileRise .55s cubic-bezier(.2,.8,.2,1) both; }
  .pstudio .pstep-head { opacity: 0; animation: softIn .5s ease both; }
  .pstudio .fgrid > .fcard,
  .pstudio .fwgrid > .fwcard,
  .pstudio .lib-bar,
  .pstudio .lib-cats,
  .pstudio .canvas2 > * { opacity: 0; animation: tileRise .52s cubic-bezier(.2,.8,.2,1) both; }

  /* staggered delays — shared across Overview tiles + Studio cards */
  .home-bento > .tile:nth-child(1), .fgrid > .fcard:nth-child(1), .fwgrid > .fwcard:nth-child(1) { animation-delay: .02s; }
  .home-bento > .tile:nth-child(2), .fgrid > .fcard:nth-child(2), .fwgrid > .fwcard:nth-child(2) { animation-delay: .07s; }
  .home-bento > .tile:nth-child(3), .fgrid > .fcard:nth-child(3), .fwgrid > .fwcard:nth-child(3) { animation-delay: .12s; }
  .home-bento > .tile:nth-child(4), .fgrid > .fcard:nth-child(4), .fwgrid > .fwcard:nth-child(4) { animation-delay: .17s; }
  .home-bento > .tile:nth-child(5), .fwgrid > .fwcard:nth-child(5) { animation-delay: .22s; }
  .home-bento > .tile:nth-child(6), .fwgrid > .fwcard:nth-child(6) { animation-delay: .27s; }
  .home-bento > .tile:nth-child(7), .fwgrid > .fwcard:nth-child(7) { animation-delay: .32s; }
  .home-bento > .tile:nth-child(8), .fwgrid > .fwcard:nth-child(8) { animation-delay: .37s; }
  .pstudio .canvas2 > *:nth-child(2) { animation-delay: .1s; }
}

/* ============ New Campaign — discovery modal + scan map ============ */
.nc-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: stretch; justify-content: stretch; padding: 0;
  background: var(--bg); animation: ncFade .2s ease both; }
@keyframes ncFade { from { opacity: 0; } to { opacity: 1; } }
.nc-modal { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: none; border-radius: 0;
  box-shadow: none; animation: ncPop .28s cubic-bezier(.2,.9,.25,1) both; transition: width .28s cubic-bezier(.2,.9,.25,1), height .28s cubic-bezier(.2,.9,.25,1), border-radius .28s ease; }
.nc-overlay.full { padding: 0; flex-direction: row; }
.nc-modal.full { width: 100%; height: 100%; border-radius: 0; flex: 1; min-width: 0; }
.nc-sb { flex: none; height: 100%; border-right: 1px solid var(--line); animation: ncSbIn .3s cubic-bezier(.2,.9,.25,1) both; }
.nc-overlay.full .nc-sb { display: flex; }
@keyframes ncSbIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes ncPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.nc-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex: none; }
.nc-head .nc-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--pp-soft); color: var(--pp2); display: flex; align-items: center; justify-content: center; flex: none; }
.nc-head .nc-ic svg { width: 20px; height: 20px; }
.nc-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.nc-head .nc-sub { font-size: 12.5px; color: var(--txt3); margin-top: 2px; font-weight: 500; }
.nc-steps { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.nc-steps .st { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--txt3); }
.nc-steps .st .dot { width: 22px; height: 22px; border-radius: 7px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-variant-numeric: tabular-nums; transition: .2s; }
.nc-steps .st.on { color: var(--txt); }
.nc-steps .st.on .dot { background: var(--pp); color: #fff; }
.nc-steps .st.done .dot { background: var(--pp-soft); color: var(--pp2); }
.nc-steps .sep { width: 16px; height: 1px; background: var(--line2); }
.nc-x { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--txt3); cursor: pointer; transition: .14s; flex: none; }
.nc-x:hover { background: var(--surface2); color: var(--txt); }
.nc-x svg { width: 18px; height: 18px; }

.nc-body { flex: 1; overflow: auto; padding: 26px; }
.nc-foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); flex: none; }
.nc-foot .sp { flex: 1; }
.nc-foot .hint { font-size: 12.5px; color: var(--txt3); font-weight: 500; }

/* form */
.nc-form { max-width: 720px; margin: 0 auto; }
.nc-form .eyelab { margin-bottom: 8px; }
.nc-formsub { font-size: 13px; color: var(--txt3); font-weight: 500; margin-bottom: 20px; line-height: 1.5; }
.ncf label .opt { color: var(--txt3); font-weight: 500; }
.ncf label .enhance { float: right; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--pp2); cursor: pointer; transition: .14s; }
.ncf label .enhance:hover { color: var(--pp); }
.ncf label .enhance svg { width: 13px; height: 13px; }
.ncf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ncf { display: flex; flex-direction: column; gap: 7px; }
.ncf.full { grid-column: 1 / -1; }
.ncf label { font-size: 12px; font-weight: 600; color: var(--txt2); }
.ncf input, .ncf select, .ncf textarea { width: 100%; padding: 11px 13px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line2); color: var(--txt); font-family: inherit; font-size: 13.5px; font-weight: 500; }
.ncf select { appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2367677a' stroke-width='1.6'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.ncf textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.ncf input:focus, .ncf select:focus, .ncf textarea:focus { outline: none; border-color: var(--pp); }

/* scan layout */
.nc-scan { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; height: 100%; min-height: 460px; }
.nc-map { position: relative; border-radius: 16px; overflow: hidden; background: #0b0b0e; border: 1px solid var(--line2); align-self: stretch; height: 100%; min-height: 460px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.nc-map .lmap { position: absolute; inset: 0; }
.nc-map .leaflet-container { width: 100%; height: 100%; background: #0b0b0e; font-family: inherit; }
.leaflet-host.pick .leaflet-container { cursor: crosshair; }
.nc-map .leaflet-control-zoom { border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.4); margin: 12px; overflow: hidden; border-radius: 9px; }
.nc-map .leaflet-control-zoom a { background: rgba(20,20,26,0.92); color: #d8d8e0; border: 1px solid var(--line2); width: 30px; height: 30px; line-height: 30px; backdrop-filter: blur(6px); }
.nc-map .leaflet-control-zoom a:hover { background: rgba(32,32,40,0.95); color: #fff; }
.nc-map .leaflet-control-zoom a:first-child { border-bottom: none; }
.nc-map .leaflet-control-attribution { background: rgba(14,14,16,0.7); font-size: 9.5px; color: #71717f; padding: 1px 6px; }
.nc-map .leaflet-control-attribution a { color: #8b8b99; }

/* map top bar: mode toggle + hint (dark glass to match the dark map) */
.nc-maptop { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1000; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.nc-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(21,21,24,0.86); border: 1px solid var(--line2); box-shadow: 0 6px 20px rgba(0,0,0,0.45); pointer-events: auto; backdrop-filter: blur(10px); }
.nc-seg button { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--txt2); background: transparent; border: none; padding: 7px 13px; border-radius: 8px; cursor: pointer; transition: .14s; white-space: nowrap; }
.nc-seg button svg { width: 14px; height: 14px; }
.nc-seg button:hover { color: var(--txt); background: rgba(255,255,255,0.05); }
.nc-seg button.on { background: var(--pp); color: #fff; box-shadow: 0 2px 10px -2px rgba(119,122,129,0.8); }
.nc-seg button.on:hover { background: var(--pp); }
.nc-maphint { pointer-events: none; font-size: 11.5px; font-weight: 600; color: var(--txt2); background: rgba(21,21,24,0.86); border: 1px solid var(--line2); padding: 7px 12px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); backdrop-filter: blur(10px); }

/* radar overlay (absolute, anchored to origin over the map) */
.nc-radar { position: absolute; z-index: 450; width: 300px; height: 300px; transform: translate(-50%,-50%); pointer-events: none; }
.nc-radar .beam { position: absolute; inset: 0; border-radius: 50%; transform-origin: center;
  background: conic-gradient(from 0deg, rgba(163,165,170,0) 0deg, rgba(163,165,170,0.34) 8deg, rgba(163,165,170,0.05) 44deg, transparent 62deg, transparent 360deg); }
.nc-radar .rg { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(163,165,170,0.4); animation: ncRadarRing 2.6s ease-out infinite; }
.nc-radar .rg.b { animation-delay: 1.3s; }
@keyframes ncRadarRing { 0% { transform: scale(.16); opacity: .6; } 100% { transform: scale(1); opacity: 0; } }
.nc-radar .dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--pp); transform: translate(-50%,-50%); box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 14px rgba(163,165,170,0.8); }
.nc-radar.static .beam { display: none; }
.nc-radar.static .rg { animation: none; opacity: .3; transform: scale(.7); }
.nc-radar.static .rg.b { transform: scale(1); opacity: .15; }

/* origin marker */
.lorigin .oc { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: #494b50; border: 2px solid #fff; transform: translate(-50%,-50%); box-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.lorigin .or { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(163,165,170,0.6); transform: translate(-50%,-50%); animation: ncOriginR 2.4s ease-out infinite; }
.lorigin .or.b { animation-delay: 1.2s; }
@keyframes ncOriginR { 0% { width: 11px; height: 11px; opacity: .7; } 100% { width: 60px; height: 60px; opacity: 0; } }

/* opportunity pin markers (Leaflet divIcons) — type icon chips, name on hover */
.lpin { overflow: visible !important; }
.lpin:hover { z-index: 1000 !important; }
/* MapKit annotation: element is centered on the coordinate, so anchor children at 0,0 */
.lpin.mk { position: relative; width: 0; height: 0; overflow: visible; }
.lpin.mk .lpin-head, .lpin.mk .lpin-ripple { left: 0; top: 0; }
.lpin.mk .lpin-tag2 { position: absolute; left: 0; top: -13px; transform: translate(-50%, -100%); white-space: nowrap; background: rgba(20,20,26,0.96); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .12s; }
.lpin.mk:hover .lpin-tag2 { opacity: 1; }
.lpin.mk .lpin-tag2 b { display: block; font-size: 11.5px; font-weight: 700; color: #ececf1; }
.lpin.mk .lpin-tag2 i { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--pp2); font-style: normal; margin-top: 1px; }
.lorigin.mk { position: relative; width: 0; height: 0; }
.mapkit-host.pick .lmap { cursor: crosshair; }
.lpin .lpin-head { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; border-radius: 8px; background: rgba(91,78,62,0.94); border: 1.5px solid var(--c); transform: translate(-50%,-50%); transform-origin: 50% 50%; display: flex; align-items: center; justify-content: center; color: var(--c); box-shadow: 0 2px 9px rgba(0,0,0,0.55), 0 0 12px -3px var(--c); animation: ncPinHead .5s cubic-bezier(.2,1.3,.4,1) both; }
.lpin .lpin-head svg { width: 15px; height: 15px; }
.lpin:hover .lpin-head { background: var(--c); color: #5b4e3e; }
.lpin .lpin-ripple { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 8px; transform: translate(-50%,-50%); border: 2px solid var(--c); animation: ncRipple 1.15s ease-out both; }
.lpin .lpin-tag { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; flex-direction: column; gap: 1px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,0.96); box-shadow: 0 3px 12px rgba(0,0,0,0.18); animation: ncTag .4s ease .16s both; }
.lpin.left .lpin-tag { left: auto; right: 10px; transform: none; align-items: flex-end; }
.lpin.right .lpin-tag { left: 10px; transform: none; }
.lpin .lpin-tag b { font-size: 11px; font-weight: 700; color: #23232c; }
.lpin .lpin-tag i { font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--tint); font-style: normal; }

/* side panel */
.nc-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.nc-counter { border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); padding: 16px 18px; }
.nc-counter .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nc-counter .lbl { font-size: 12.5px; color: var(--txt3); margin-top: 6px; font-weight: 500; }
.nc-counter .prog { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); margin-top: 14px; overflow: hidden; }
.nc-counter .prog i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.nc-status { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.nc-status .rd { width: 8px; height: 8px; border-radius: 50%; background: var(--pp2); box-shadow: 0 0 0 0 rgba(119,122,129,0.5); animation: ncPulse 1.4s ease-out infinite; }
.nc-status.done .rd { background: var(--pos); animation: none; }
@keyframes ncPulse { 0% { box-shadow: 0 0 0 0 rgba(119,122,129,0.5); } 100% { box-shadow: 0 0 0 9px rgba(119,122,129,0); } }
.nc-status .dots::after { content: ''; animation: ncDots 1.4s steps(4) infinite; }
@keyframes ncDots { 0% { content: ''; } 25% { content: '·'; } 50% { content: '··'; } 75% { content: '···'; } }

.nc-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); }

/* scrollbox: arrow-paged scroll container */
.scrollbox { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.scrollbox .sb-view.nc-log { border-radius: 12px; }
.scrollbox .sb-view { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbox .sb-view::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sb-arrow { flex: none; height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); color: var(--txt2); cursor: pointer; transition: .14s; }
.sb-arrow svg { width: 15px; height: 15px; }
.sb-arrow:hover:not(:disabled) { color: var(--txt); background: var(--raised); border-color: var(--line2); }
.sb-arrow:active:not(:disabled) { transform: translateY(1px); }
.sb-arrow:disabled { opacity: 0; pointer-events: none; }
.nc-log .empty { margin: auto; text-align: center; color: var(--txt3); font-size: 12.5px; font-weight: 500; padding: 20px; }
.nc-logrow { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; background: var(--surface2); animation: ncRow .34s ease both; }
@keyframes ncRow { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.nc-logrow .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nc-logrow .txt { min-width: 0; flex: 1; }
.nc-logrow .nm { font-size: 12.5px; font-weight: 600; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-logrow .ct { font-size: 11px; color: var(--txt3); font-weight: 500; }
.nc-logrow .ck { color: var(--pos); flex: none; }
.nc-logrow .ck svg { width: 15px; height: 15px; }
.nc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nc-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--txt3); font-weight: 500; }
.nc-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* results */
.nc-res-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nc-res-bar .t { font-size: 13px; font-weight: 600; color: var(--txt3); }
.nc-resfilter { position: relative; }
.nc-resfilter select { appearance: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt); background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 32px 9px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2367677a' stroke-width='1.6'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.nc-resfilter select:focus { outline: none; border-color: var(--pp); }
.nc-resgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nc-rescard { position: relative; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); padding: 17px 18px; display: flex; flex-direction: column; transition: .14s; }
.nc-rescard:hover { border-color: color-mix(in oklab, var(--tint) 45%, var(--line2)); }
.nc-rescard.on { border-color: var(--pp); box-shadow: 0 0 0 1px var(--pp), 0 10px 26px -16px rgba(119,122,129,0.7); }
.nc-rescard .rc-box { position: absolute; top: 15px; right: 15px; width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid var(--line2); background: var(--bg); display: flex; align-items: center; justify-content: center; color: transparent; cursor: pointer; transition: .14s; padding: 0; }
.nc-rescard .rc-box svg { width: 12px; height: 12px; }
.nc-rescard.on .rc-box { background: var(--pp); border-color: var(--pp); color: #fff; }
.nc-rescard .rc-nm { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; padding-right: 26px; }
.nc-rescard .rc-pub { font-size: 11.5px; color: var(--txt3); font-weight: 500; margin-top: 3px; }
.nc-rescard .rc-desc { font-size: 12px; color: var(--txt2); line-height: 1.55; font-weight: 500; margin: 11px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-rescard .rc-desc.open { -webkit-line-clamp: unset; overflow: visible; }
.nc-rescard .rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; }
.nc-rescard .rc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--txt2); background: var(--surface2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.nc-rescard .rc-chip svg { width: 11px; height: 11px; color: var(--txt3); }
.nc-rescard .rc-rel { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 999px; }
.nc-rescard .rc-rel svg { width: 10px; height: 10px; }
.nc-rescard .rc-actions { display: flex; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.nc-rescard .rc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: .14s; border: 1px solid var(--line2); background: var(--surface2); color: var(--txt2); }
.nc-rescard .rc-btn svg { width: 13px; height: 13px; }
.nc-rescard .rc-btn:hover { color: var(--txt); border-color: var(--line2); background: var(--raised); }
.nc-rescard .rc-btn.pitch { background: var(--pp-soft); border-color: transparent; color: var(--pp2); }
.nc-rescard .rc-btn.pitch:hover { background: var(--pp); color: #fff; }

/* leaflet tooltip for pins (hover-only) */
.leaflet-tooltip.lpin-tooltip { background: rgba(20,20,26,0.96); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); font-family: 'Manrope', sans-serif; }
.leaflet-tooltip.lpin-tooltip::before { display: none; }
.leaflet-tooltip.lpin-tooltip b { display: block; font-size: 11.5px; font-weight: 700; color: #ececf1; white-space: nowrap; }
.leaflet-tooltip.lpin-tooltip i { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--pp2); font-style: normal; margin-top: 1px; }

@keyframes ncRipple { 0% { opacity: .85; transform: translate(-50%,-50%) scale(.5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(4.2); } }
@keyframes ncTag { from { opacity: 0; } to { opacity: 1; } }
@keyframes ncPin { 0% { opacity: 0; transform: translateY(-12px) scale(.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ncPinHead { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 55% { opacity: 1; transform: translate(-50%,-50%) scale(1.25); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
/* ===== Send-via picker (results footer) ===== */
.nc-sendvia { display: flex; align-items: center; gap: 10px; }
.nc-sendvia .sv-lab { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--txt3); text-transform: uppercase; }
.sv-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.sv-opt { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--txt2); font-family: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; transition: .15s; }
.sv-opt:hover { color: var(--txt); background: rgba(255,255,255,0.04); }
.sv-opt.on { background: var(--raised); color: var(--txt); border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 4px 14px -6px var(--c); }
.sv-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.06) inset; overflow: hidden; }
.sv-ic svg { width: 17px; height: 17px; }
.sv-nm { white-space: nowrap; }

/* freshly-launched campaign badge */
.cc-new { display: inline-block; margin-left: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em;
  color: #fff; background: var(--pp); padding: 2px 7px; border-radius: 999px; vertical-align: middle;
  box-shadow: 0 2px 8px -2px rgba(119,122,129,0.7); animation: newPop .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes newPop { 0% { opacity: 0; transform: scale(.4); } 60% { transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }

/* ===== Campaign sent confirmation ===== */
.nc-sent { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 24px; animation: sentIn .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes sentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sent-orb { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.sent-orb .core { width: 72px; height: 72px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5fd08a, #34b877); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(95,208,138,0.7), 0 0 0 1px rgba(255,255,255,0.15) inset;
  animation: sentPop .55s cubic-bezier(.2,1.5,.4,1) both; }
.sent-orb .core svg { width: 34px; height: 34px; }
.sent-orb .ring { position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(95,208,138,0.5);
  animation: sentRing 2.4s ease-out infinite; }
.sent-orb .ring.b { animation-delay: 1.2s; }
@keyframes sentPop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sentRing { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.sent-h { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.sent-p { font-size: 14.5px; color: var(--txt2); font-weight: 500; margin-top: 9px; max-width: 420px; line-height: 1.5; }
.sent-p b { color: var(--txt); font-weight: 700; }
.sent-via { display: inline-flex; align-items: center; gap: 11px; margin-top: 22px; padding: 9px 9px 9px 15px;
  border-radius: 999px; background: var(--surface2); border: 1px solid var(--line2); }
.sent-via .sv-lab { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--txt3); text-transform: uppercase; }
.sent-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--txt);
  background: var(--raised); border-radius: 999px; padding: 5px 14px 5px 5px; }
.sent-chip .sv-ic { width: 26px; height: 26px; }
.sent-chip .sv-ic svg { width: 19px; height: 19px; }
.sent-stats { display: flex; gap: 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sent-stats .ss .n { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sent-stats .ss .n.live { color: var(--pos); }
.sent-stats .ss .l { font-size: 11.5px; color: var(--txt3); font-weight: 600; margin-top: 3px; }

@media (max-width: 700px) {
  .nc-sendvia .sv-lab { display: none; }
  .sv-opt .sv-nm { display: none; }
  .sent-stats { gap: 26px; }
}
@media (max-width: 980px) { .nc-resgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .nc-scan { grid-template-columns: 1fr; }
  .ncf-grid { grid-template-columns: 1fr; }
  .nc-resgrid { grid-template-columns: 1fr; }
}

/* ===== mono-minimal identity (Clean x Stripe): color only in logos/status ===== */
body::before{background:none}
.mn-top h1{font-family:var(--mono);font-weight:700;letter-spacing:-.02em;font-size:21px}
.hero .big,.nc-counter .big,.mk-stat b,.explore-tile .ex-title{font-family:var(--mono);font-weight:800}
.greet h1,.greet h2,.greet .g-title{font-family:var(--serif);font-weight:500;letter-spacing:-.01em}
.greet .gbtn.w,.cta,.audit-btn,.btn3.pp,.se-btn.primary,.explore-tile .ex-cta,.tc-btn.primary{background:#f4f5f7 !important;color:#101013 !important;box-shadow:none !important;border-color:transparent !important}
.greet .gbtn.w:hover,.cta:hover,.audit-btn:hover,.btn3.pp:hover,.se-btn.primary:hover,.explore-tile .ex-cta:hover,.tc-btn.primary:hover{background:#ffffff !important;color:#101013 !important;filter:none}
.nc-seg button.on{background:#f4f5f7;color:#101013;box-shadow:none}
.cta,.ex-cta,.explore-tile .ex-cta,.greet .gbtn.w,.audit-btn,.se-btn.primary,.tc-btn.primary,.btn3.pp{white-space:nowrap}
.greet::before{background:var(--txt3);opacity:.5}
.greet .eyebrow,.greet .g-eyebrow{white-space:nowrap}
.usebar .ub-track span{background:var(--txt)}
.np-count,.cc-new{background:var(--txt);color:var(--bg);box-shadow:none}
.sb-item.on svg{color:var(--txt)}
.mn-top .eyebrow{color:var(--txt3)}
.sb-user .av{background:#2a2a2f;color:var(--txt)}
