/* AltLeads previews on the pick-your-design page.
   Everything lives inside .alp. Colours, sizes, corners and speeds come from --al-* variables set by board.js from the picks.
   Building blocks switch style with data attributes on .alp: data-btn, data-label, data-menu, data-input, data-fb.
   Screens use their own classes (.nv-*, .ls-*, .fl-*, .ra-*, .rc-*, .lc-*, .hs-*, .em-*, .qf-*). */
@font-face { font-family: 'AL Inter'; src: url('../../design-systems/airtable/fonts/inter-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'AL Lexend'; src: url('../../design-systems/hubspot/fonts/LexendDeca-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'AL Lexend'; src: url('../../design-systems/hubspot/fonts/LexendDeca-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AL Lexend'; src: url('../../design-systems/hubspot/fonts/LexendDeca-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'AL Lexend'; src: url('../../design-systems/hubspot/fonts/LexendDeca-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'AL Lexend'; src: url('../../design-systems/hubspot/fonts/LexendDeca-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AL Lato'; src: url('../../design-systems/slack/fonts/lato-regular-ef8e44a2b506169e.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AL Lato'; src: url('../../design-systems/slack/fonts/lato-bold-78da5d4476a83d65.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AL Lato'; src: url('../../design-systems/slack/fonts/lato-black-7b284cff5d2dfc23.woff2') format('woff2'); font-weight: 900; font-display: swap; }

.alp { font-family: var(--al-font); font-size: var(--al-fs); line-height: 1.45; color: var(--al-ink); background: var(--al-page); position: relative; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-align: left; font-variant-numeric: tabular-nums; color-scheme: light; }
.alp[data-mode="dark"] { color-scheme: dark; }
.alp *, .alp *::before, .alp *::after { box-sizing: border-box; }
.alp button, .alp input, .alp textarea, .alp select { font: inherit; color: inherit; }
.alp button { cursor: pointer; }
.alp .ic { display: inline-flex; width: 16px; height: 16px; flex: none; }
.alp .ic svg { width: 100%; height: 100%; display: block; }
.alp svg.lu { fill: none; stroke: currentColor; stroke-width: var(--al-stroke); stroke-linecap: round; stroke-linejoin: round; }
.alp svg.ph { fill: currentColor; }
.alp .mut { color: var(--al-muted); }
.alp .fnt { color: var(--al-faint); }
.alp .sm { font-size: var(--al-fs-s); }
.alp .b { font-weight: var(--al-strong); }
.alp .link { color: var(--al-link); text-decoration: none; cursor: pointer; }
.alp .link:hover { text-decoration: underline; }
.alp .row { display: flex; align-items: center; gap: 8px; }
.alp .wrap { flex-wrap: wrap; }
.alp .grow { flex: 1; min-width: 0; }
.alp .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alp .av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 10px; font-weight: 600; letter-spacing: .02em;
  background: var(--al-fill); color: var(--al-ink); box-shadow: inset 0 0 0 1px var(--al-line); }
.alp .av.lg { width: 36px; height: 36px; font-size: 13px; border-radius: var(--al-r-md); }
.alp .kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; font-size: 11px; color: var(--al-muted);
  box-shadow: inset 0 0 0 1px var(--al-line-strong); background: var(--al-surface); }
.alp .card { background: var(--al-surface); border: 1px solid var(--al-line); border-radius: var(--al-r-lg); }
.alp .hr { height: 1px; background: var(--al-line); }
.alp .h1 { font-size: calc(var(--al-fs) + 8px); font-weight: var(--al-heavy); line-height: 1.2; letter-spacing: -.01em; }
.alp .h2 { font-size: calc(var(--al-fs) + 2px); font-weight: var(--al-strong); line-height: 1.3; }
.alp .cap { font-size: 12px; font-weight: 500; color: var(--al-muted); }

/* ---------- buttons ---------- */
.alp .btn { height: var(--al-ctl); padding: 0 12px; border-radius: var(--al-r-md); font-weight: var(--al-btn-w); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; background: transparent; white-space: nowrap; line-height: 1; flex: none;
  transition: background-color var(--al-d-hover) var(--al-ease), border-color var(--al-d-hover) var(--al-ease), color var(--al-d-hover) var(--al-ease), box-shadow var(--al-d-hover) var(--al-ease); }
.alp .btn.sq { width: var(--al-ctl); padding: 0; }
.alp .btn.pri { background: var(--al-accent); color: var(--al-on-accent); }
.alp .btn.pri:hover { background: var(--al-accent-hover); }
.alp .btn.sec { background: var(--al-surface); border-color: var(--al-line-strong); color: var(--al-ink); }
.alp .btn.sec:hover, .alp .btn.quiet:hover { background: var(--al-hover); }
.alp .btn.quiet { color: var(--al-muted); }
.alp .btn.quiet:hover { color: var(--al-ink); }
.alp .btn.danger { background: var(--al-surface); border-color: var(--al-line-strong); color: var(--al-danger-text); }
.alp .btn.danger:hover { background: var(--al-danger-bg); }
.alp .btn:active:not(:disabled) { transform: translateY(.5px); filter: brightness(.96); }
.alp .btn:disabled { opacity: .45; cursor: not-allowed; }
.alp .btn:focus-visible, .alp .mi:focus-visible, .alp [tabindex]:focus-visible { outline: 2px solid var(--al-focus); outline-offset: 2px; }
.alp .btn .ic { width: 15px; height: 15px; }
.alp[data-btn="notion"] .btn { padding: 0 10px; font-weight: 500; }
.alp[data-btn="notion"] .btn.sec { border-color: var(--al-line); box-shadow: 0 1px 2px rgba(15, 15, 15, .04); }
.alp[data-btn="notion"] .btn.danger { border-color: var(--al-line); }
.alp[data-btn="hubspot"] .btn { padding: 0 18px; font-weight: 600; border-radius: var(--al-r-sm); }
.alp[data-btn="hubspot"] .btn.sq { padding: 0; }
.alp[data-btn="hubspot"] .btn.sec { border-color: var(--al-accent); color: var(--al-accent-text); background: var(--al-surface); }
.alp[data-btn="hubspot"] .btn.sec:hover { background: var(--al-accent-soft); }
.alp[data-btn="hubspot"] .btn.quiet { color: var(--al-link); padding: 0 6px; }
.alp[data-btn="hubspot"] .btn.quiet:hover { background: transparent; text-decoration: underline; }
.alp[data-btn="hubspot"] .btn.danger { background: var(--al-danger); border-color: var(--al-danger); color: #fff; }
.alp[data-btn="airtable"] .btn { font-weight: 500; }
.alp[data-btn="airtable"] .btn.sec { background: var(--al-fill); border-color: transparent; }
.alp[data-btn="airtable"] .btn.sec:hover { background: var(--al-hover2); }
.alp[data-btn="airtable"] .btn.pri { box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.alp[data-btn="airtable"] .btn.danger { background: var(--al-danger-bg); border-color: transparent; }
.alp[data-btn="slack"] .btn { font-weight: 700; padding: 0 14px; }
.alp[data-btn="slack"] .btn.sq { padding: 0; }
.alp[data-btn="slack"] .btn.sec { border-color: color-mix(in srgb, var(--al-ink) 30%, transparent); }
.alp[data-btn="slack"] .btn.sec:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.alp[data-btn="slack"] .btn.danger { background: #e01e5a; border-color: #e01e5a; color: #fff; }

/* ---------- stage labels (text always in the normal text colour) ---------- */
.alp .lab { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px; border-radius: var(--al-r-sm); font-size: 12px; font-weight: 400; line-height: 1;
  color: var(--al-ink); background: var(--t); white-space: nowrap; flex: none; max-width: 100%; }
.alp .lab i { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--d); flex: none; }
.alp .lab[data-t="blue"] { --t: var(--al-t-blue); --d: var(--al-d-blue); }
.alp .lab[data-t="green"] { --t: var(--al-t-green); --d: var(--al-d-green); }
.alp .lab[data-t="amber"] { --t: var(--al-t-amber); --d: var(--al-d-amber); }
.alp .lab[data-t="red"] { --t: var(--al-t-red); --d: var(--al-d-red); }
.alp .lab[data-t="violet"] { --t: var(--al-t-violet); --d: var(--al-d-violet); }
.alp .lab[data-t="grey"] { --t: var(--al-t-grey); --d: var(--al-d-grey); }
.alp[data-label="notion"] .lab { font-size: calc(var(--al-fs) - 1px); border-radius: var(--al-r-sm); }
.alp[data-label="airtable"] .lab { height: 22px; padding: 0 9px; border-radius: 999px; font-size: calc(var(--al-fs) - 1px); }
.alp[data-label="hubspot"] .lab { height: 22px; padding: 0 7px; border-radius: var(--al-r-sm); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d) 45%, transparent); }
.alp[data-label="slack"] .lab { background: transparent; padding: 0; gap: 7px; font-size: calc(var(--al-fs) - 1px); }
.alp[data-label="slack"] .lab i { display: inline-block; }

/* ---------- menus (speed and grow come from Movement) ---------- */
.alp .mwrap { position: relative; display: inline-block; }
.alp .menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 210px; padding: 4px; background: var(--al-raised); color: var(--al-ink);
  border-radius: var(--al-r-lg); box-shadow: var(--al-shadow-menu); transform-origin: top left;
  opacity: 0; visibility: hidden; transform: translateY(var(--al-m-y)) scale(var(--al-m-scale));
  transition: opacity var(--al-d-menu) var(--al-ease), transform var(--al-d-menu) var(--al-ease), visibility 0s linear var(--al-d-menu); }
.alp .menu.open, .alp .menu.static { opacity: 1; visibility: visible; transform: none; transition: opacity var(--al-d-menu) var(--al-ease), transform var(--al-d-menu) var(--al-ease), visibility 0s; }
.alp .menu.static { position: relative; top: 0; display: block; }
.alp .mlab { height: 26px; display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--al-muted); }
.alp .mi { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: var(--al-r-md); cursor: pointer; white-space: nowrap; font-size: var(--al-fs);
  transition: background-color var(--al-d-hover) var(--al-ease), color var(--al-d-hover) var(--al-ease); }
.alp .mi .ic { color: var(--al-muted); }
.alp .mi .end { margin-left: auto; color: var(--al-faint); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.alp .mi:hover, .alp .mi.kb { background: var(--al-hover); }
.alp .mi.del { color: var(--al-danger-text); }
.alp .mi.del .ic { color: inherit; }
.alp .msep { height: 1px; background: var(--al-line); margin: 4px -4px; }
.alp[data-menu="notion"] .menu { border-radius: max(var(--al-r-lg), 6px); }
.alp[data-menu="slack"] .menu { padding: 8px 0; border-radius: var(--al-r-lg); }
.alp[data-menu="slack"] .mi { border-radius: 0; padding: 0 20px; height: 28px; }
.alp[data-menu="slack"] .mlab { padding: 0 20px; }
.alp[data-menu="slack"] .msep { margin: 8px 0; }
.alp[data-menu="slack"] .mi:hover, .alp[data-menu="slack"] .mi.kb { background: var(--al-accent); color: var(--al-on-accent); }
.alp[data-menu="slack"] .mi:hover .ic, .alp[data-menu="slack"] .mi.kb .ic, .alp[data-menu="slack"] .mi:hover .end, .alp[data-menu="slack"] .mi.kb .end { color: inherit; }
.alp[data-menu="slack"] .mi:hover .lab, .alp[data-menu="slack"] .mi.kb .lab { color: var(--al-on-accent); }
.alp[data-menu="hubspot"] .menu { padding: 0; border-radius: var(--al-r-sm); border: 1px solid var(--al-line-strong); box-shadow: 0 1px 24px 0 rgba(45, 62, 80, .12); }
.alp[data-mode="dark"][data-menu="hubspot"] .menu { box-shadow: 0 1px 24px 0 rgba(0, 0, 0, .4); }
.alp[data-menu="hubspot"] .mi { height: 36px; border-radius: 0; padding: 0 16px; }
.alp[data-menu="hubspot"] .mlab { padding: 8px 16px 0; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.alp[data-menu="hubspot"] .msep { margin: 0; }
.alp[data-menu="hubspot"] .mi:hover, .alp[data-menu="hubspot"] .mi.kb { background: var(--al-link-soft); }
.alp[data-menu="airtable"] .menu { padding: 8px; border-radius: max(var(--al-r-md), 4px); transition: none; }
.alp[data-menu="airtable"] .mi { height: 32px; border-radius: max(var(--al-r-sm), 3px); }
.alp[data-menu="airtable"] .msep { margin: 6px -8px; }

/* ---------- inputs ---------- */
.alp .fld { display: grid; gap: 4px; }
.alp .fld > span { font-size: 12px; font-weight: 500; color: var(--al-muted); }
.alp .help { font-size: 12px; color: var(--al-muted); }
.alp .help.err { color: var(--al-danger-text); display: flex; gap: 4px; align-items: center; }
.alp .help.err .ic { width: 13px; height: 13px; }
.alp .inp { height: var(--al-ctl); width: 100%; padding: 0 10px; border-radius: var(--al-r-md); border: 1px solid var(--al-line-strong); background: var(--al-surface); color: var(--al-ink);
  outline: none; transition: border-color var(--al-d-hover) var(--al-ease), box-shadow var(--al-d-hover) var(--al-ease), background-color var(--al-d-hover) var(--al-ease); }
.alp textarea.inp { height: auto; min-height: 56px; padding: 7px 10px; resize: none; line-height: 1.45; }
.alp .inp::placeholder { color: var(--al-faint); }
.alp .inp:hover { border-color: color-mix(in srgb, var(--al-ink) 30%, transparent); }
.alp .inp:focus, .alp .inp.fx { border-color: var(--al-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--al-focus) 22%, transparent); }
.alp .inp.err { border-color: var(--al-danger); }
.alp .srch { position: relative; display: flex; align-items: center; }
.alp .srch > .ic { position: absolute; left: 9px; color: var(--al-muted); pointer-events: none; }
.alp .srch > .inp { padding-left: 32px; }
.alp .srch > .kbd { position: absolute; right: 8px; }
.alp .sel { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.alp[data-input="notion"] .inp { background: var(--al-fill); border-color: transparent; box-shadow: inset 0 0 0 1px var(--al-line); }
.alp[data-input="notion"] .inp:hover { border-color: transparent; }
.alp[data-input="notion"] .inp:focus, .alp[data-input="notion"] .inp.fx { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--al-focus) 60%, transparent), 0 0 0 2px color-mix(in srgb, var(--al-focus) 35%, transparent); }
.alp[data-input="notion"] .inp.err { box-shadow: inset 0 0 0 1px var(--al-danger); }
.alp[data-input="hubspot"] .inp { background: var(--al-fill); border-radius: var(--al-r-sm); }
.alp[data-input="hubspot"] .inp:focus, .alp[data-input="hubspot"] .inp.fx { border-color: var(--al-link); box-shadow: 0 0 4px 1px color-mix(in srgb, var(--al-link) 35%, transparent), 0 0 0 1px var(--al-link); }
.alp[data-input="airtable"] .inp:focus, .alp[data-input="airtable"] .inp.fx { box-shadow: none; border-color: var(--al-line-strong); outline: 2px solid var(--al-focus); outline-offset: 2px; }
.alp[data-input="slack"] .inp { border-color: color-mix(in srgb, var(--al-ink) 30%, transparent); border-radius: max(var(--al-r-md), 6px); }
.alp[data-input="slack"] .inp:focus, .alp[data-input="slack"] .inp.fx { border-color: var(--al-link); box-shadow: 0 0 0 1px var(--al-link), 0 0 0 5px color-mix(in srgb, var(--al-link) 25%, transparent); }

/* ---------- messages after actions ---------- */
.alp .toasts { position: absolute; left: 0; right: 0; bottom: 14px; display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 40; }
.alp .toasts.top { top: 12px; bottom: auto; }
.alp .toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: var(--al-r-md); max-width: calc(100% - 24px);
  background: var(--al-inverse); color: var(--al-on-inverse); font-size: calc(var(--al-fs) - 1px); box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  animation: al-toast-in var(--al-d-toast) var(--al-ease) both; }
.alp .toast .ic { color: inherit; opacity: .9; }
.alp .toast button { border: 0; background: transparent; color: inherit; opacity: .75; padding: 2px 4px; border-radius: 4px; text-decoration: underline; }
.alp .toast button:hover { opacity: 1; }
.alp .toast.out { animation: al-toast-out 160ms ease-in both; }
@keyframes al-toast-in { from { opacity: 0; transform: translateY(var(--al-toast-y)); } to { opacity: 1; transform: none; } }
@keyframes al-toast-out { to { opacity: 0; transform: translateY(8px); } }
.alp .banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--al-r-md); font-size: calc(var(--al-fs) - 1px); color: var(--al-ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--bd); }
.alp .banner .ic { color: var(--ink2); margin-top: 1px; }
.alp .banner b { font-weight: var(--al-strong); }
.alp .banner.ok { --bg: var(--al-success-bg); --bd: color-mix(in srgb, var(--al-d-green) 45%, transparent); --ink2: var(--al-d-green); }
.alp .banner.warn { --bg: var(--al-warn-bg); --bd: color-mix(in srgb, var(--al-d-amber) 50%, transparent); --ink2: var(--al-d-amber); }
.alp .banner.bad { --bg: var(--al-danger-bg); --bd: color-mix(in srgb, var(--al-d-red) 45%, transparent); --ink2: var(--al-d-red); }
.alp[data-fb="hubspot"] .toast { background: var(--al-success-bg); color: var(--al-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--al-d-green) 50%, transparent), 0 1px 4px 2px rgba(66, 91, 118, .1);
  border-radius: var(--al-r-sm); padding: 12px 12px 12px 14px; min-width: 260px; animation-name: al-pop-in; }
.alp[data-fb="hubspot"] .toast .ic { color: var(--al-d-green); }
@keyframes al-pop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.alp[data-fb="hubspot"] .toast button.x { text-decoration: none; margin-left: auto; }
.alp[data-fb="slack"] .toast { font-size: var(--al-fs); padding: 10px 12px 10px 16px; border-radius: max(var(--al-r-md), 8px); }
.alp[data-fb="slack"] .toast button { font-weight: 700; opacity: 1; }
.alp[data-fb="slack"] .banner.warn { box-shadow: none; border-radius: 0; background: #fff7d6; color: #1d1c1d; }
.alp[data-mode="dark"][data-fb="slack"] .banner.warn { background: #4d3900; color: var(--al-ink); }
.alp .shimmer { height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--al-fill) 0, var(--al-hover2) 40%, var(--al-fill) 80%); background-size: 300% 100%; animation: al-shim 1.4s linear infinite; }
@keyframes al-shim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.alp .spin { animation: al-spin .9s linear infinite; color: var(--al-muted); }
@keyframes al-spin { to { transform: rotate(360deg); } }

/* ---------- main menu ---------- */
.alp .nv { width: 216px; flex: none; display: flex; flex-direction: column; gap: 1px; padding: 8px; background: var(--al-side); border-right: 1px solid var(--al-line); overflow: hidden; }
.alp .nv-brand { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px; margin-bottom: 4px; font-weight: var(--al-strong); }
.alp .nv-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--al-accent); color: var(--al-on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.alp .nv-g { font-size: 12px; font-weight: 500; color: var(--al-muted); padding: 10px 8px 4px; }
.alp .nv-i { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: var(--al-r-md); color: var(--al-ink); cursor: pointer; white-space: nowrap;
  transition: background-color var(--al-d-hover) var(--al-ease); font-size: calc(var(--al-fs) - .5px); }
.alp .nv-i .ic { color: var(--al-muted); }
.alp .nv-i.child { padding-left: 32px; }
.alp .nv-i .n { margin-left: auto; font-size: 11px; color: var(--al-muted); }
.alp .nv-i:hover { background: var(--al-hover); }
.alp .nv-i.on { background: var(--al-hover2); font-weight: 500; }
.alp .nv-i.on .ic { color: var(--al-ink); }
.alp .nv.notion .nv-i { height: 30px; }
.alp .nv.slack { background: var(--al-brand-side); border-right: 0; color: var(--al-brand-side-text); }
.alp .nv.slack .nv-brand { color: #fff; }
.alp .nv.slack .nv-g { color: color-mix(in srgb, var(--al-brand-side-text) 70%, transparent); }
.alp .nv.slack .nv-i { color: var(--al-brand-side-text); height: 28px; }
.alp .nv.slack .nv-i .ic, .alp .nv.slack .nv-i .n { color: inherit; opacity: .85; }
.alp .nv.slack .nv-i:hover { background: rgba(0, 0, 0, .18); }
.alp .nv.slack .nv-i.on { background: var(--al-accent-nav); color: #fff; font-weight: 700; }
.alp .nv.slack .nv-i .n.badge, .alp .nv.hubspot .nv-i .n.badge { background: #e01e5a; color: #fff; border-radius: 9px; padding: 0 6px; height: 18px; display: grid; place-items: center; opacity: 1; font-weight: 700; }
.alp .nv.slack .nv-logo { background: #fff; color: var(--al-brand-side); }
.alp .nv.hubspot { background: #2d3e50; border-right: 0; color: #dfe3eb; width: 224px; padding: 8px 10px; gap: 4px; }
.alp[data-mode="dark"] .nv.hubspot { background: #1f2b38; }
.alp .nv.hubspot .nv-brand { color: #fff; }
.alp .nv.hubspot .nv-g { color: #99acc2; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; padding: 10px 8px 2px; }
.alp .nv.hubspot .nv-i { height: 34px; border-radius: max(var(--al-r-sm), 4px); color: #dfe3eb; padding: 0 10px; }
.alp .nv.hubspot .nv-i .ic { color: #dfe3eb; }
.alp .nv.hubspot .nv-i:hover { background: #425b76; color: #f5f8fa; }
.alp .nv.hubspot .nv-i.on { background: #516f90; color: #fff; font-weight: 500; }
.alp .nv.hubspot .nv-i .n { color: #cbd6e2; }
.alp .nvt { display: flex; flex-direction: column; background: var(--al-side); border-bottom: 1px solid var(--al-line); flex: none; }
.alp .nvt-top { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; }
.alp .nvt-tab { height: 30px; padding: 0 12px; border-radius: var(--al-r-md); display: inline-flex; align-items: center; gap: 6px; color: var(--al-muted); font-weight: 500; cursor: pointer; }
.alp .nvt-tab:hover { background: var(--al-hover); color: var(--al-ink); }
.alp .nvt-tab.on { color: var(--al-ink); background: var(--al-surface); box-shadow: 0 0 0 1px var(--al-line); }
.alp .nvt-sub { display: flex; gap: 2px; padding: 0 10px; height: 36px; align-items: flex-end; background: var(--al-page); border-top: 1px solid var(--al-line); }
.alp .nvt-s { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--al-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.alp .nvt-s:hover { color: var(--al-ink); }
.alp .nvt-s.on { color: var(--al-ink); border-bottom-color: var(--al-accent); font-weight: 500; }

/* ---------- app frame ---------- */
.alp .app { display: flex; height: 100%; min-height: 0; }
.alp .app.col { flex-direction: column; }
.alp .main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--al-page); }
.alp .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 10px; }
.alp .bar .h2 { margin-right: auto; }
.alp .pad { padding: 12px 16px; }
.alp .placeholder { display: grid; place-items: center; text-align: center; color: var(--al-muted); font-size: 12px; border: 1.5px dashed var(--al-line-strong); border-radius: 8px; margin: 8px; padding: 10px; }

/* ---------- lead list ---------- */
.alp .tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.alp .tbl th, .alp .tbl td { height: var(--al-row); padding: 0 8px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--al-line); }
.alp .tbl th { height: var(--al-head); font-weight: 500; color: var(--al-muted); font-size: calc(var(--al-fs) - 1px); }
.alp .tbl th .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.alp .tbl td.co { font-weight: 500; }
.alp .tbl tr.hov td, .alp .tbl tbody tr:hover td { background: var(--al-hover); }
.alp .tbl .num { width: 34px; color: var(--al-faint); text-align: center; font-size: 12px; padding: 0; }
.alp .tbl .ck { width: 34px; text-align: center; padding: 0; }
.alp .cb { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--al-line-strong); display: inline-block; vertical-align: middle; background: var(--al-surface); }
.alp .cb.on { background: var(--al-accent); box-shadow: none; position: relative; }
.alp .cb.on::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--al-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.alp .tbl.ls-airtable th, .alp .tbl.ls-airtable td { border-right: 1px solid var(--al-line-strong); border-bottom-color: var(--al-line-strong); padding: 0 8px; }
.alp .tbl.ls-airtable th { background: var(--al-side); color: var(--al-ink); font-weight: 400; font-size: calc(var(--al-fs) - 0px); }
.alp .tbl.ls-airtable th .ic { color: var(--al-muted); }
.alp .tbl.ls-airtable td.co { font-weight: 400; }
.alp .tbl.ls-airtable tr.hov td, .alp .tbl.ls-airtable tbody tr:hover td { background: var(--al-side); }
.alp .tbl.ls-notion th, .alp .tbl.ls-notion td { border-right: 1px solid var(--al-line); }
.alp .tbl.ls-notion th:last-child, .alp .tbl.ls-notion td:last-child { border-right: 0; }
.alp .tbl.ls-notion th { font-weight: 400; }
.alp .tbl.ls-notion td.co { font-weight: 500; }
.alp .tbl.ls-hubspot th { background: var(--al-head-band); color: var(--al-ink); text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .03em; border-bottom: 1px solid var(--al-line-strong); border-top: 1px solid var(--al-line-strong); }
.alp .tbl.ls-hubspot th .ic { display: none; }
.alp .tbl.ls-hubspot td.co { color: var(--al-link); font-weight: 500; }
.alp .ls-two { display: grid; }
.alp .ls-two .it { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 8px 12px; border-bottom: 1px solid var(--al-line); align-items: center; }
.alp .ls-two .it:hover, .alp .ls-two .it.hov { background: var(--al-hover); }
.alp .ls-two .it .av { grid-row: span 2; }
.alp .ls-two .it .t { font-weight: var(--al-heavy); }
.alp .ls-two .it .s { grid-column: 2 / 4; font-size: calc(var(--al-fs) - 1px); color: var(--al-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alp .ls-two .it .when { font-size: 12px; color: var(--al-muted); }

/* ---------- filters and views ---------- */
.alp .fl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--al-line); }
.alp .tool { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: var(--al-r-md); color: var(--al-muted); cursor: pointer; white-space: nowrap; border: 0; background: transparent;
  transition: background-color var(--al-d-hover) var(--al-ease); font-size: calc(var(--al-fs) - 1px); }
.alp .tool:hover { background: var(--al-hover); color: var(--al-ink); }
.alp .tool.on-green { background: var(--al-t-green); color: var(--al-ink); }
.alp .tool.on-blue { background: var(--al-t-blue); color: var(--al-ink); }
.alp .tool.on-violet { background: var(--al-t-violet); color: var(--al-ink); }
.alp .tool.on-amber { background: var(--al-t-amber); color: var(--al-ink); }
.alp .vtab { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; color: var(--al-muted); cursor: pointer; white-space: nowrap; font-size: calc(var(--al-fs) - 1px); }
.alp .vtab:hover { background: var(--al-hover); }
.alp .vtab.on { background: var(--al-hover2); color: var(--al-ink); font-weight: 500; }
.alp .chip { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 16px; font-size: calc(var(--al-fs) - 1.5px); cursor: pointer; white-space: nowrap;
  background: var(--al-accent-soft); color: var(--al-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--al-accent) 30%, transparent); }
.alp .chip .ic { width: 13px; height: 13px; }
.alp .chip.add { background: transparent; box-shadow: none; color: var(--al-muted); }
.alp .chip.add:hover { background: var(--al-hover); }
.alp .stab { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--al-line-strong); border-bottom: 0; margin-right: -1px; background: var(--al-fill); color: var(--al-muted); border-radius: var(--al-r-sm) var(--al-r-sm) 0 0; white-space: nowrap; font-size: calc(var(--al-fs) - 1px); }
.alp .stab.on { background: var(--al-surface); color: var(--al-ink); font-weight: 600; position: relative; }
.alp .stab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--al-surface); }
.alp .stab .ic { width: 12px; height: 12px; }
.alp .ddb { height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--al-r-sm); color: var(--al-link); font-weight: 600; cursor: pointer; white-space: nowrap; font-size: calc(var(--al-fs) - 1px); }
.alp .ddb:hover { background: var(--al-link-soft); }
.alp .ddb .ic { width: 13px; height: 13px; }
.alp .tok { height: 22px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 4px; background: var(--al-accent-soft); color: var(--al-ink); font-size: 12px; white-space: nowrap; }
.alp .tok b { font-weight: 600; color: var(--al-accent-text); }

/* ---------- quick actions on a row ---------- */
.alp .ra-bar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 0; padding: 2px; background: var(--al-raised); border-radius: var(--al-r-md);
  box-shadow: 0 0 0 1px var(--al-line-strong), 0 2px 6px rgba(0, 0, 0, .08); z-index: 3; }
.alp .tbl td.rah { overflow: visible; z-index: 3; }
.alp .ra-bar .btn { height: 26px; width: 28px; padding: 0; color: var(--al-muted); border-radius: max(var(--al-r-sm), 3px); }
.alp .ra-bar .btn:hover { color: var(--al-ink); background: var(--al-hover); }
.alp .tip { position: absolute; z-index: 30; padding: 4px 8px; border-radius: 6px; background: var(--al-inverse); color: var(--al-on-inverse); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.alp .tip.up { bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.alp .pv { height: 22px; padding: 0 8px; border-radius: var(--al-r-sm); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; color: var(--al-link); box-shadow: inset 0 0 0 1px var(--al-line-strong); background: var(--al-surface); margin-left: 8px; }
.alp .openb { height: 20px; padding: 0 6px; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--al-muted); box-shadow: inset 0 0 0 1px var(--al-line-strong); background: var(--al-surface); margin-left: 8px; }
.alp .handle { color: var(--al-faint); position: absolute; left: -2px; }

/* ---------- lead page ---------- */
.alp .rc { display: flex; height: 100%; min-height: 0; }
.alp .rc-col { padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.alp .rc-left { width: 33%; border-right: 1px solid var(--al-line); background: var(--al-surface); }
.alp .rc-mid { flex: 1; min-width: 0; background: var(--al-page); }
.alp .rc-right { width: 26%; border-left: 1px solid var(--al-line); background: var(--al-surface); }
.alp .props { display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; }
.alp .props > div { min-height: calc(var(--al-row) - 4px); display: flex; align-items: center; min-width: 0; }
.alp .props .k { color: var(--al-muted); gap: 6px; font-size: calc(var(--al-fs) - 1px); }
.alp .props .k .ic { width: 14px; height: 14px; }
.alp .stack { display: grid; gap: 8px; }
.alp .stack .k { font-size: 12px; color: var(--al-muted); margin-bottom: 2px; }
.alp .tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--al-line); }
.alp .tabs span { height: 30px; display: inline-flex; align-items: center; color: var(--al-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: calc(var(--al-fs) - 1px); white-space: nowrap; }
.alp .tabs span.on { color: var(--al-ink); border-bottom-color: var(--al-accent); font-weight: 500; }
.alp .assoc { padding: 10px; display: grid; gap: 4px; }
.alp .scrim { position: absolute; inset: 0; background: var(--al-scrim); z-index: 4; }
.alp .modal { position: absolute; z-index: 5; background: var(--al-raised); border-radius: var(--al-r-lg); box-shadow: 0 0 0 1px var(--al-line), 0 12px 40px rgba(0, 0, 0, .25); overflow: hidden; display: flex; }
.alp .panel { position: absolute; z-index: 5; top: 0; bottom: 0; right: 0; width: 46%; background: var(--al-raised); border-left: 1px solid var(--al-line-strong); box-shadow: -8px 0 24px rgba(0, 0, 0, .08); display: flex; flex-direction: column; }

/* ---------- logging a call ---------- */
.alp .oc { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--al-r-md); border: 1px solid var(--al-line-strong); background: var(--al-surface); cursor: pointer; white-space: nowrap;
  font-size: calc(var(--al-fs) - 1px); transition: background-color var(--al-d-hover) var(--al-ease), border-color var(--al-d-hover) var(--al-ease); }
.alp .oc .ic { width: 14px; height: 14px; color: var(--al-muted); }
.alp .oc:hover { background: var(--al-hover); }
.alp .oc.on { border-color: var(--al-accent); background: var(--al-accent-soft); box-shadow: inset 0 0 0 1px var(--al-accent); }
.alp .oc.on .ic { color: var(--al-accent-text); }
.alp .pill { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--al-fill); cursor: pointer; font-size: calc(var(--al-fs) - 1px); white-space: nowrap; border: 0; }
.alp .pill:hover { background: var(--al-hover2); }
.alp .pill.on { background: var(--al-accent); color: var(--al-on-accent); }
.alp .composer { border: 1px solid var(--al-line-strong); border-radius: max(var(--al-r-md), 6px); background: var(--al-surface); overflow: hidden; }
.alp .composer:focus-within { border-color: color-mix(in srgb, var(--al-ink) 45%, transparent); }
.alp .composer textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 10px 12px 4px; min-height: 44px; display: block; }
.alp .composer .foot { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }

/* ---------- activity history ---------- */
.alp .tl { display: grid; gap: 10px; }
.alp .tl-month { font-size: 12px; font-weight: 600; color: var(--al-muted); }
.alp .tl-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; background: var(--al-surface); border: 1px solid var(--al-line); border-radius: var(--al-r-md); }
.alp .tl-card .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--al-fill); color: var(--al-muted); grid-row: span 2; }
.alp .tl-card .ico .ic { width: 14px; height: 14px; }
.alp .tl-card .note { grid-column: 2; color: var(--al-ink); font-size: calc(var(--al-fs) - 1px); }
.alp .chat { display: grid; gap: 2px; }
.alp .chat .day { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; font-weight: 700; color: var(--al-ink); }
.alp .chat .day::before, .alp .chat .day::after { content: ''; flex: 1; height: 1px; background: var(--al-line); }
.alp .chat .day span { padding: 2px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--al-line); background: var(--al-page); font-weight: 600; }
.alp .chat .msg { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 6px 8px; border-radius: 6px; }
.alp .chat .msg:hover { background: var(--al-hover); }
.alp .chat .msg .av { width: 34px; height: 34px; border-radius: max(var(--al-r-md), 6px); font-size: 12px; grid-row: span 2; }
.alp .chat .msg .who { font-weight: var(--al-heavy); }
.alp .chat .msg .who time { font-weight: 400; color: var(--al-muted); font-size: 12px; margin-left: 6px; }
.alp .one { display: grid; gap: 0; }
.alp .one > div { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: calc(var(--al-fs) - 1px); padding: 0 4px; border-radius: 4px; }
.alp .one > div:hover { background: var(--al-hover); }
.alp .one .ic { width: 14px; height: 14px; color: var(--al-muted); }
.alp .one time { margin-left: auto; color: var(--al-faint); font-size: 12px; white-space: nowrap; }
.alp .chg { display: grid; gap: 10px; }
.alp .chg > div { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--al-line-strong); }
.alp .chg .meta { font-size: 12px; color: var(--al-muted); }
.alp .chg s { color: var(--al-muted); text-decoration-thickness: 1.5px; }

/* ---------- empty screens ---------- */
.alp .em { display: grid; place-items: center; text-align: center; gap: 10px; padding: 20px; height: 100%; }
.alp .em .big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--al-accent-soft); color: var(--al-accent-text); }
.alp .em .big .ic { width: 28px; height: 28px; }
.alp .em .mid { width: 40px; height: 40px; border-radius: var(--al-r-lg); display: grid; place-items: center; background: var(--al-fill); color: var(--al-muted); }
.alp .em .mid .ic { width: 20px; height: 20px; }
.alp .sugg { display: grid; gap: 6px; text-align: left; width: min(340px, 100%); }
.alp .sugg > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--al-r-md); box-shadow: inset 0 0 0 1px var(--al-line); background: var(--al-surface); cursor: pointer; }
.alp .sugg > div:hover { background: var(--al-hover); }
.alp .sugg .ico { width: 28px; height: 28px; border-radius: var(--al-r-md); display: grid; place-items: center; background: var(--al-accent-soft); color: var(--al-accent-text); flex: none; }

/* ---------- quick find ---------- */
.alp .qf { position: absolute; z-index: 6; background: var(--al-raised); border-radius: var(--al-r-lg); box-shadow: 0 0 0 1px var(--al-line), 0 16px 48px rgba(0, 0, 0, .28); overflow: hidden; }
.alp .qf-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-bottom: 1px solid var(--al-line); font-size: calc(var(--al-fs) + 2px); }
.alp .qf-in .ic { color: var(--al-muted); width: 18px; height: 18px; }
.alp .qf-sec { padding: 6px; }
.alp .qf-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--al-line); font-size: 12px; color: var(--al-muted); }
.alp .qf-foot span { display: inline-flex; gap: 4px; align-items: center; }
.alp .topsearch { height: 30px; border-radius: max(var(--al-r-md), 6px); display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--al-fill); color: var(--al-muted); }

@media (prefers-reduced-motion: reduce) {
  .alp *, .alp *::before, .alp *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
