/* Usability pass: the existing NPU palette, with clearer hierarchy and controls. */
.skipLink{position:fixed;left:16px;top:-70px;z-index:100000;background:#16284a;color:#fff;padding:12px 18px;border-radius:8px;font:600 14px system-ui;text-decoration:none}.skipLink:focus{top:12px}
.rail button.navItem{appearance:none;border:0;background:transparent;width:100%;font-family:inherit;text-align:left;cursor:pointer;min-height:38px;line-height:1.4;flex-shrink:0}
.rail .navItem{font-size:13px;color:rgba(246,245,240,.85);padding:10px 12px;border-radius:8px;gap:11px}
.rail .navItem.isActive{background:var(--rail-on);color:#fff;font-weight:650;box-shadow:inset 3px 0 0 var(--rail-accent)}
.rail .navItem:hover{background:rgba(255,255,255,.07);color:#fff}
.rail .navItem svg{opacity:.85;flex-shrink:0}
.rail .brand{border:0;background:transparent;font:inherit;color:#f6f5f0;width:100%;cursor:pointer;text-align:left}
.rail{gap:20px;overflow-y:auto;scrollbar-width:thin}
.railHomeNav{margin-bottom:-10px}
.railSearchTrigger{display:flex;align-items:center;gap:8px;width:100%;height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.05);color:rgba(246,245,240,.78);font:500 12px 'Geist',system-ui;cursor:pointer;box-shadow:none;margin-bottom:-4px}
.railSearchTrigger svg{width:15px;height:15px;flex-shrink:0}.railSearchTrigger span{white-space:nowrap}.railSearchTrigger kbd{margin-left:auto;font:10px 'Geist Mono',monospace;white-space:nowrap;border:1px solid rgba(255,255,255,.16);border-radius:4px;padding:2px 3px;color:rgba(246,245,240,.62)}
.rail .keys{opacity:.8;padding-top:14px}.rail .keys .k{color:rgba(246,245,240,.62);font-size:11px}
.rail .themebtn{background:transparent;box-shadow:none;border-color:transparent;min-height:34px;border-radius:8px}
.rail .themebtn:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18)}
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--live,#0e8aa0);outline-offset:3px}
.fbV2 .head{align-items:flex-start;padding-bottom:20px;margin-bottom:0;gap:14px}
.fbV2 .head .title{display:grid;gap:7px;align-items:start}
/* Size and tracking are the grouped page-head rule's (27px/600/-.025em) —
   this file loads last, so declaring them here made Companies the one title
   in the app at a different size. Only the line-height is ours. */
.fbV2 .head .title h1{line-height:1.2}
.fbV2 .head .title .crumb{font-size:11.5px;color:var(--ink-dim)}.fbV2 .head .title .eyebrow{font-size:11px;letter-spacing:.08em;color:var(--ink-dim)}
.fbV2 .head .ctrls{align-self:center;flex-wrap:nowrap}
.fbbTools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0}
.fbbToolsSearch,.fbbToolsMeta{display:flex;align-items:center;gap:10px;min-width:0}.fbbToolsSearch{flex:1}.fbbToolsMeta{flex-shrink:0}
.fbbTools .fbbSearch{width:clamp(210px,25vw,320px);max-width:100%;background:var(--surface, var(--card-bg))}
.fbbTools .ddSegTabs{margin:0;flex-shrink:0}.fbbTools .ddInput,.fbbTools .ddBtn{min-height:36px;font-size:12px}.fbbTools .ddBtn{gap:7px}
.fbFreshness{font:11px 'Geist',system-ui;color:var(--ink-dim, var(--text-muted));white-space:nowrap}
.fbbTiles{gap:12px;margin-bottom:18px}.fbbTiles .ddTile{padding:14px 15px;border-radius:10px;min-height:96px;box-shadow:0 1px 2px #16284a05}
.fbbTiles .ddTile .k{font-size:11px;letter-spacing:.045em;line-height:1.4;color:var(--ddDim,#516187)}.fbbTiles .ddTile .v{font-size:25px;margin:5px 0;letter-spacing:-.035em}.fbbTiles .ddTile .s{font-size:11.5px;line-height:1.4;color:var(--ddDim,#516187)}
.fbbTiles .ddTile.on :is(.k,.s){color:inherit;opacity:.85}
.fbbTbl{box-shadow:0 2px 4px #16284a04;border-radius:10px}
:is(.fbbRow,.fbbKcard){transition:background 100ms}.fbbRow:hover{background:color-mix(in srgb,var(--surface) 92%,var(--live))}
.fbbRail button{min-height:32px}.fbbRail{font-size:12px}
.fbbShowing{font-size:12px}.fbbShowing button{min-height:28px}
:is(.lpContactsV2,.lpFunnelV2) :is(.activebar .x,.apill .x){min-width:25px;min-height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;cursor:pointer;color:var(--ink-dim)}
:is(.lpContactsV2,.lpFunnelV2) .clrall{min-height:30px;color:var(--ink-dim);cursor:pointer}
.lpDraftNotice{background:var(--surface)!important;border-color:var(--action)!important;color:var(--ink);box-shadow:0 -3px 18px #16284a0b!important}
.lpDraftNotice button{border:1px solid var(--grid);border-radius:8px;padding:9px 14px;font:500 12px 'Geist',system-ui;cursor:pointer;background:var(--surface);color:var(--ink)}.lpDraftNotice button.primary{background:var(--ink);color:var(--surface);border-color:var(--ink)}
#lpDetailEditV2 .label{color:var(--ink-dim);font-size:11.5px}#lpDetailEditV2 .textarea{min-height:130px!important;line-height:1.6}.lpDraftNotice p{line-height:1.5;font-size:13px}
.quickFindOverlay[hidden]{display:none!important}.quickFindOverlay{position:fixed;inset:0;z-index:25000;background:rgba(10,19,34,.42);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:flex-start;padding:clamp(24px,12vh,120px) 16px 24px;color:var(--ink,#16284a);font:13px 'Geist',system-ui}
.quickFindDialog{width:640px;max-width:100%;max-height:calc(100dvh - 48px);background:var(--surface,#fcfaf6);border:1px solid var(--grid,#e6decf);border-radius:10px;box-shadow:0 24px 100px #0004;display:flex;flex-direction:column;overflow:hidden}
.quickFindHead{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 14px}.quickFindHead h2{margin:0;font-size:17px;letter-spacing:-.02em;font-weight:600}.quickFindHead button{border:1px solid var(--grid,#e6decf);border-radius:5px;color:var(--ink-dim,#516187);background:transparent;font:11px monospace;padding:5px 8px;cursor:pointer}
.quickFindInput{margin:0 22px 16px;width:calc(100% - 44px);flex-shrink:0;box-sizing:border-box;border:1px solid var(--grid,#e6decf);background:var(--ground,#f1ece2);color:var(--ink,#16284a);border-radius:9px;padding:13px 14px;font:15px 'Geist',system-ui;outline-offset:2px!important}
.quickFindScopes{display:flex;gap:6px;padding:0 22px 14px;overflow-x:auto;flex-shrink:0}.quickFindScopes button{border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink-dim,#516187);font:500 12px 'Geist',system-ui;padding:7px 11px;cursor:pointer;white-space:nowrap}.quickFindScopes button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:var(--onTeal)}
.quickFindRetry{margin:0 22px 12px;align-self:flex-start}
.quickFindStatus{padding:12px 22px;border-top:1px solid var(--grid,#e6decf);font-size:11.5px;color:var(--ink-dim,#516187);line-height:1.5;flex-shrink:0}
.quickFindResults{overflow-y:auto;overscroll-behavior:contain;padding:0 10px 10px;min-height:0;max-height:380px}.quickFindResult{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink,#16284a);font:inherit;text-align:left;cursor:pointer}.quickFindResult:hover,.quickFindResult:focus{background:color-mix(in srgb,var(--live,#0e8aa0) 8%,transparent);border-color:color-mix(in srgb,var(--live,#0e8aa0) 18%,transparent);outline-offset:-2px!important}.quickFindName{font-size:13px;font-weight:600;overflow-wrap:anywhere}.quickFindMeta{font-size:11.5px;color:var(--ink-dim,#516187);overflow-wrap:anywhere}.quickFindFoot{display:flex;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--grid,#e6decf);color:var(--ink-dim,#516187);font-size:10.5px}.quickFindDialog>[data-retry]{margin:0 22px 12px;align-self:flex-start;cursor:pointer}
@media(max-height:820px){.rail{gap:15px}}
@media(max-width:1180px){.fbbTools{flex-wrap:wrap}.fbbToolsSearch{min-width:min(100%,420px)}.fbbToolsMeta{margin-left:auto}.fbFreshness{font-size:10.5px}.fbbLayout{grid-template-columns:minmax(0,1fr)}.fbbRail{grid-row:1;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:flex-start}.fbbRail .ddEyebrow{flex:0 0 100%;width:100%}.fbbRail .fbbFChip{width:auto}}
@media(max-width:680px){.fbV2 .head .title h1{font-size:23px}.fbbToolsSearch{flex-wrap:wrap;width:100%;min-width:0}.fbbTools .fbbSearch{width:100%;max-width:none}.fbbToolsMeta{margin-left:0}.fbbTools{gap:10px}.fbbTiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fbbTiles .ddTile{min-width:0;padding:12px;min-height:90px}.fbbTiles .ddTile:last-child{grid-column:1/-1}.fbbTiles .ddTile .v{font-size:22px}.quickFindOverlay{padding:12px}.quickFindDialog{max-height:calc(100dvh - 24px)}.quickFindScopes,.quickFindHead,.quickFindStatus{padding-left:16px;padding-right:16px}.quickFindInput{margin-left:16px;margin-right:16px;width:calc(100% - 32px)}.quickFindResults{max-height:none}.quickFindFoot{font-size:10px}
/* at 12px overlay padding the scrim ring is ~12px, so the tiny Esc button is
   effectively the sole close affordance — both need real touch height */
.quickFindScopes button{padding:12px 13px}.quickFindHead button{padding:10px 12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.quickFindOverlay,.quickFindResult,.fbbRow,.rail .navItem{transition:none!important;animation:none!important}}

.fbbRail[hidden]{display:none}
/* the footer rows and Quick find trigger are declared here at (0,2,0), so a
   bump in styles.css's phone layer loses — this file is the last word on them */
@media(max-width:760px){.rail button.navItem{min-height:44px;font-size:14px}.rail .themebtn{min-height:44px}.railSearchTrigger{height:44px}}

#fbFiltersBtn{display:none}
@media(max-width:680px){#fbFiltersBtn{display:inline-flex}#fbFiltersBtn[hidden]{display:none}}
@media(max-width:680px){.fbbToolsSearch{flex:1 0 100%}.fbbToolsMeta{width:100%}.fbFreshness{margin-right:auto}.fbV2 .head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.fbV2 .head .ctrls{align-self:end;gap:6px}.fbV2 .head .title .eyebrow{font-size:9.5px}.fbV2 .head .ctrls .commit{padding:0 10px}}
html[data-theme="dark"] body .fbbWarn,html[data-theme="dark"] body .fbbFChip.bad:not(.on),html[data-theme="dark"] body .fbbTiles .ddTile.bad:not(.on) .v{color:var(--warn)}
@media(max-width:680px){
  .fbbTbl{overflow-x:auto;overscroll-behavior-x:contain}
  .fbbTbl:before{content:'Scroll sideways for next steps and dates →';display:block;position:sticky;left:0;width:calc(100vw - 30px);box-sizing:border-box;padding:10px 14px;font-size:11px;color:var(--ink-dim);background:var(--surface);border-bottom:1px solid var(--grid)}
  .fbbTr{min-width:680px;grid-template-columns:170px 148px minmax(190px,1fr) 92px}
  .fbbGrp{min-width:680px}
}

/* Meetings on a phone. The head is flex-wrap, but its .ctrls row is not, so the
   three range chips, Export, Refresh and the orange + Quick Log all sat on one
   line: 57px of it landed outside a 390 viewport and the whole screen — head,
   week strip and agenda — scrolled sideways to reach it. The controls wrap
   inside the head instead, and the week strip's seven columns are allowed to be
   narrower than their content. */
@media(max-width:680px){
  #meetingsView .head .ctrls{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}
  #meetingsView .head .title{min-width:0}
  #meetingsView .chip{min-height:44px;padding:0 12px}
  #meetingsView .ctrls .commit{min-height:44px}
  #meetingsView .weekstrip{grid-template-columns:repeat(7,minmax(0,1fr))}
  #meetingsView .day{padding:10px 4px;min-width:0}
  /* a seventh of 375px minus padding is ~37px and the 10.5px word "meetings"
     is ~42px — it crossed the cell divider and the strip clipped the last cell */
  #meetingsView .day .cnt{font-size:10px;letter-spacing:-.01em}
  /* MON 7 on one line needs more room than a seventh of 362px: the day head
     wraps and the tracking comes off, so SUN 13 is not clipped by the
     strip's own overflow:hidden. */
  #meetingsView .day .dh{flex-wrap:wrap;gap:0 4px}
  #meetingsView .day .dow{letter-spacing:.06em}
}
