/* BOBOK Reach RC - app.css
   One design pattern everywhere: BOBOK deep blue / primary blue / accent yellow, Inter, cards with depth. */
:root {
  --bg: #F3F5FB; --card: #FFFFFF; --ink: #1B1F3B; --muted: #6B7194; --line: #E6E9F4; --soft: #EEF1F8;
  --deep: #1A2980; --primary: #2B4DC9; --light: #5B8DEF; --yellow: #F5A623;
  --green: #13865B; --green-bg: #E6F7F1; --amber: #C77700; --amber-bg: #FFF4DF; --red: #C62828; --red-bg: #FDEAEA; --purple: #6D3BC6; --purple-bg: #F1EAFB;
  --blue-bg: #E8EDFB;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(26,41,128,.08), 0 1px 2px rgba(26,41,128,.06);
  --shadow-lg: 0 18px 44px rgba(26,41,128,.14);
  --side-w: 76px; --side-w-open: 248px; --top-h: 72px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; }
a { color: var(--primary); text-decoration: none; } a:hover { color: var(--deep); }
h1,h2,h3,h4 { letter-spacing: -.02em; font-weight: 800; }
.muted { color: var(--muted); }
.fw-800 { font-weight: 800; } .fw-700 { font-weight: 700; } .fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-15 { font-size: 15px; }

/* ---------- layout ---------- */
.rc-shell { display: flex; min-height: 100vh; }
.rc-side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); z-index: 1030; display: flex; flex-direction: column; align-items: stretch; padding: 18px 14px; gap: 6px;
  background: linear-gradient(180deg, #1A2980 0%, #121B5C 100%); box-shadow: 6px 0 28px rgba(18,27,92,.28); transition: width .18s ease; overflow: hidden; }
.rc-side:hover { width: var(--side-w-open); }
.rc-side .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0 3px; }
.rc-side .logo { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.rc-side .brand-text { color: #fff; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.rc-side .brand-text b { display: block; font-size: 15px; } .rc-side .brand-text span { font-size: 11px; opacity: .75; }
.rc-side:hover .brand-text { opacity: 1; }
.rc-side .nav-item { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 13px; border-radius: 14px; color: rgba(255,255,255,.62); white-space: nowrap; font-weight: 600; font-size: 14px; }
.rc-side .nav-item i { font-size: 21px; flex-shrink: 0; width: 22px; text-align: center; }
.rc-side .nav-item span { opacity: 0; transition: opacity .15s; }
.rc-side:hover .nav-item span { opacity: 1; }
.rc-side .nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.rc-side .nav-item.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 6px 14px rgba(0,0,0,.18); }
.rc-side .nav-item .badge-count { margin-left: auto; background: var(--yellow); color: var(--deep); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
.rc-side .spacer { flex: 1; }
.rc-main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.rc-top { height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.rc-top .crumbs { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.rc-top .crumbs b { color: var(--ink); }
.rc-top .search { flex: 1; max-width: 440px; height: 42px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); font-size: 14px; }
.rc-top .search input { border: 0; background: transparent; outline: 0; flex: 1; font: inherit; color: var(--ink); }
.iconbtn { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: #3B4270; border: 0; position: relative; font-size: 19px; }
.iconbtn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--light)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: 0 6px 14px rgba(43,77,201,.35); flex-shrink: 0; }
.avatar.gold { background: linear-gradient(135deg, #F5A623, #F7C25E); color: var(--deep); }
.avatar.deep { background: linear-gradient(135deg, var(--deep), var(--primary)); }
.rc-content { padding: 26px 32px 40px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; } .page-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- cards ---------- */
.card-x { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-x.hero { background: linear-gradient(120deg, #1A2980 0%, #2B4DC9 60%, #3D63E0 100%); color: #fff; position: relative; overflow: hidden; }
.card-x.hero .orb { position: absolute; border-radius: 50%; pointer-events: none; }
.kpi { height: 100%; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(26,41,128,.07); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.kpi .kico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.kpi .kval { font-size: 22px; font-weight: 800; line-height: 1; } .kpi .klbl { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bg-blue { background: var(--blue-bg); color: var(--primary); } .bg-amber { background: var(--amber-bg); color: var(--amber); }
.bg-green { background: var(--green-bg); color: var(--green); } .bg-purple { background: var(--purple-bg); color: var(--purple); }
.bg-red { background: var(--red-bg); color: var(--red); } .bg-soft { background: var(--bg); color: var(--muted); }

/* ---------- pills, buttons, bars ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.pill .dot-s { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.btn-x { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 0; font-family: inherit; cursor: pointer; transition: transform .08s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn-x:active { transform: translateY(1px); } .btn-x:disabled { opacity: .65; cursor: not-allowed; }
.btn-x.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-y { background: var(--yellow); color: var(--deep); box-shadow: 0 8px 20px rgba(245,166,35,.38); }
.btn-b { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(43,77,201,.3); }
.btn-d { background: var(--deep); color: #fff; box-shadow: 0 8px 20px rgba(26,41,128,.3); }
.btn-g { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(19,134,91,.3); }
.btn-soft { background: var(--bg); color: #3B4270; } .btn-soft:hover { background: var(--soft); }
.btn-light { background: var(--blue-bg); color: var(--primary); }
.btn-danger-soft { background: var(--red-bg); color: var(--red); }
.btn-x .spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-x.loading .spin { display: inline-block; } .btn-x.loading .lbl { opacity: .8; }
.btn-x .lbl { display: inline; margin: 0; font-size: inherit; color: inherit; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 8px; border-radius: 999px; background: #E9EDFA; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--light)); transition: width .4s ease; }
.bar > i.green { background: var(--green); }

/* ---------- forms ---------- */
.lbl { font-size: 12px; font-weight: 700; color: #3B4270; display: block; margin-bottom: 6px; }
.inp, .sel, .ta { height: 44px; border-radius: 11px; border: 1.5px solid #E1E5F2; background: #fff; padding: 0 14px; font-size: 14px; font-family: inherit; color: var(--ink); width: 100%; outline: 0; transition: border-color .15s, box-shadow .15s; }
.ta { height: auto; padding: 10px 14px; resize: vertical; min-height: 90px; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,77,201,.12); }
.inp.is-invalid { border-color: var(--red); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-err { font-size: 12px; color: var(--red); margin-top: 6px; display: none; }
.sw { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #D5DBEE; transition: background .15s; cursor: pointer; flex-shrink: 0; display: inline-block; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--primary); } .sw.on::after { left: 21px; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--soft); gap: 12px; }
.setting-row:first-child { border-top: 0; }
.panel { padding: 16px; border-radius: 14px; background: #F8FAFF; border: 1.5px solid var(--line); }
.panel.amber { background: #FFF9EE; border-color: #F5E1B8; } .panel.amber .setting-row { border-color: #F5E1B8; }
.panel-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }

/* ---------- tables ---------- */
.table-x { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-x th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--soft); white-space: nowrap; }
.table-x td { padding: 12px; border-bottom: 1px solid var(--bg); vertical-align: middle; }
.table-x tr:hover td { background: #FAFBFE; }
.table-wrap { overflow-x: auto; }

/* ---------- tabs ---------- */
.tabs-x { display: flex; gap: 20px; border-bottom: 1px solid var(--soft); padding: 0 4px; overflow-x: auto; }
.tabs-x .tab { padding: 12px 2px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; }
.tabs-x .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane-x { display: none; } .tab-pane-x.active { display: block; }

/* ---------- tree (course builder) ---------- */
.tree .tn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 13px; cursor: pointer; color: var(--ink); user-select: none; }
.tree .tn:hover { background: var(--bg); }
.tree .tn.on { background: var(--blue-bg); color: var(--deep); font-weight: 700; }
.tree .tn .tag { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; }
.tree .tn.locked { color: var(--amber); }
.tree .tn .code { font-size: 11px; font-weight: 800; color: var(--muted); width: 30px; flex-shrink: 0; }
.tree .tn.on .code { color: var(--primary); }
.tree .tn .st { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #D5DBEE; }
.tree .tn .st.ok { background: var(--green); } .tree .tn .st.warn { background: var(--yellow); }
.tree .grp { margin-left: 18px; border-left: 1.5px dashed var(--line); padding-left: 6px; }
.beat-box { padding: 10px 12px; border-radius: 11px; border: 1.5px solid #E1E5F2; }
.beat-box.on { border-color: var(--primary); background: #F8FAFF; }
.beat-box .bt { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.beat-box input { width: 100%; border: 0; border-bottom: 1px dashed #D5DBEE; font: inherit; font-weight: 700; font-size: 13px; padding: 2px 0; outline: 0; background: transparent; margin-top: 2px; }
.tagwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tagwrap .tg { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-bg); color: var(--primary); font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.tagwrap .tg b { cursor: pointer; opacity: .7; } .tagwrap .tg b:hover { opacity: 1; }
.tagwrap .tg-add { background: var(--bg); color: var(--muted); border: 1.5px dashed #D5DBEE; }
.tagwrap .tg-add input { border: 0; background: transparent; outline: 0; font: inherit; width: 90px; }

/* ---------- modal (custom, premium) ---------- */
.modal-x .modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-x .modal-header { border-bottom: 1px solid var(--soft); padding: 20px 24px 14px; }
.modal-x .modal-title { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.modal-x .modal-body { padding: 20px 24px; } .modal-x .modal-footer { border-top: 1px solid var(--soft); padding: 14px 24px 20px; gap: 10px; }
.modal-x .modal-backdrop { background: rgba(26,41,128,.45); }

/* ---------- toasts / alerts ---------- */
.toast-x { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast-x .t { background: #1B1F3B; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 10px; animation: pop .18s ease; max-width: 380px; }
.toast-x .t.ok { background: var(--green); } .toast-x .t.err { background: var(--red); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty > i { font-size: 40px; color: #C9D0E6; display: block; margin-bottom: 10px; }
.empty .hlp { vertical-align: middle; }

/* ---------- swal theme ---------- */
.swal2-popup { border-radius: 20px !important; font-family: inherit !important; padding: 28px !important; }
.swal2-title { font-weight: 800 !important; letter-spacing: -.01em !important; font-size: 20px !important; color: var(--ink) !important; }
.swal2-html-container { color: var(--muted) !important; font-size: 14px !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; border-radius: 12px !important; font-weight: 700 !important; box-shadow: 0 8px 20px rgba(43,77,201,.3) !important; }
.swal2-styled.swal2-cancel { background: var(--bg) !important; color: #3B4270 !important; border-radius: 12px !important; font-weight: 700 !important; }
.swal2-styled.swal2-confirm.danger { background: var(--red) !important; box-shadow: 0 8px 20px rgba(198,40,40,.3) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .rc-content { padding: 20px 22px 36px; } .rc-top { padding: 0 22px; }
}
@media (max-width: 991.98px) {
  :root { --side-w: 0px; }
  .rc-side { transform: translateX(-100%); width: var(--side-w-open); transition: transform .2s ease; }
  .rc-side.open { transform: none; } .rc-side .nav-item span, .rc-side .brand-text { opacity: 1; }
  .rc-side-backdrop { position: fixed; inset: 0; background: rgba(26,41,128,.45); z-index: 1029; display: none; }
  .rc-side-backdrop.show { display: block; }
  .rc-main { margin-left: 0; }
  .rc-top .search { display: none; }
  .menu-btn { display: grid !important; }
  .page-head h1 { font-size: 22px; }
}
.menu-btn { display: none; }
@media (max-width: 575.98px) {
  .rc-content { padding: 16px 16px 32px; } .rc-top { padding: 0 16px; height: 64px; }
  .card-x { padding: 16px; border-radius: 16px; }
  .btn-x { height: 42px; }
}

/* ---------- prospects (Phase 1b) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: #3B4270; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: #C9D0E6; color: var(--ink); }
.chip.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.chip.red { color: var(--red); } .chip.red.on { background: var(--red); border-color: var(--red); color: #fff; }
.chip small { background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.chip.on small { background: rgba(255,255,255,.2); }
.chip.xs { height: 30px; font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-bg); color: var(--primary); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag b { cursor: pointer; opacity: .6; font-weight: 800; } .tag b:hover { opacity: 1; }
.tag.add { background: var(--bg); color: var(--muted); border: 1.5px dashed #C9D0E6; cursor: pointer; }
.cb { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.bulk { display: flex; align-items: center; gap: 10px; background: var(--deep); color: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; box-shadow: 0 10px 24px rgba(26,41,128,.3); }
.bulk .btn-x { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.bulk .btn-x:hover { background: rgba(255,255,255,.2); }
.stagebar { display: flex; gap: 4px; margin: 14px 0 6px; }
.stagebar div { flex: 1; height: 8px; border-radius: 999px; background: #E9EDFA; }
.stagebar div.done { background: var(--green); } .stagebar div.now { background: var(--primary); } .stagebar div.exit { background: #F3C9C9; }
.stagelbl { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; }
.stagelbl span.now { color: var(--primary); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--soft); }
.ev { position: relative; padding: 10px 0 14px; border-bottom: 1px solid var(--bg); }
.ev::before { content: ""; position: absolute; left: -24px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.ev.in::before { border-color: var(--green); } .ev.ev-sys::before { border-color: #C9D0E6; } .ev.ev-sys .who { font-weight: 600; color: #4A5072; } .ev.note::before { border-color: var(--yellow); }
.ev .who { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; } .ev .when { color: var(--muted); font-size: 12px; }
.mail { overflow-wrap: anywhere; margin-top: 8px; background: #F8FAFF; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pc { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; color: inherit; }
.pc .r { flex: 1; min-width: 0; } .pc .nm { font-weight: 700; } .pc .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.list-mob { display: none; }
.fab { display: none; }
.steps { display: flex; margin-bottom: 22px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.step:first-child { border-radius: 12px 0 0 12px; } .step:last-child { border-radius: 0 12px 12px 0; }
.step i { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.step.done { color: var(--green); } .step.done i { background: var(--green-bg); color: var(--green); }
.step.now { color: var(--primary); border-color: var(--primary); background: #F8FAFF; } .step.now i { background: var(--primary); color: #fff; }
.drop { border: 2px dashed #C9D0E6; border-radius: 16px; padding: 30px 20px; text-align: center; background: #F8FAFF; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: #F1F4FF; }
.drop i { font-size: 40px; color: var(--primary); }
.map { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 10px 8px; align-items: center; font-size: 13px; }
.map .src { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-weight: 600; min-width: 0; }
.map .src small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map .arr { text-align: center; color: #C9D0E6; } .map .sel { height: 40px; }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sum div { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.sum b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; } .sum span { font-size: 12px; color: var(--muted); }
.bnav { display: none; }
@media (max-width: 991.98px) {
  .bnav { display: flex; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; z-index: 1010; }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 10px; position: relative; }
  .bnav a.on { color: var(--primary); background: var(--blue-bg); } .bnav a i { font-size: 20px; }
  .bnav a em { position: absolute; top: 0; right: 2px; background: var(--yellow); color: var(--deep); font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; font-style: normal; }
  .sum { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .lms-content { padding-bottom: 90px; }
  .table-wrap.list-desk { display: none; } .list-mob { display: block; }
  .map { grid-template-columns: 1fr; } .map .arr { display: none; }
  .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 4px; }
  .fab { display: grid; position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(74px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 18px; background: var(--yellow); color: var(--deep); place-items: center; box-shadow: 0 12px 28px rgba(245,166,35,.45); z-index: 1005; font-size: 24px; }
  .page-head .acts { width: 100%; } .page-head .acts .btn-x { flex: 1; }
  .filters .inp, .filters .sel { width: 100% !important; }
  .stagelbl span:not(.now) { display: none; } .stagelbl { justify-content: center; }
}

/* ---------- sending: accounts, domains, templates, campaigns (Phase 2) ---------- */
.acc { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; flex-wrap: wrap; }
.acc.off { opacity: .75; }
.acc .lg { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.acc .r { flex: 1 1 180px; min-width: 0; } .acc .nm { font-weight: 700; } .acc .sub { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.codebox { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dns { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 13px; }
.dns code { background: var(--bg); border-radius: 8px; padding: 6px 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--ink); }
.dns.two { grid-template-columns: 1fr auto; }
.ok { color: var(--green); font-weight: 700; white-space: nowrap; } .bad { color: var(--red); font-weight: 700; white-space: nowrap; } .wait { color: var(--amber); font-weight: 700; white-space: nowrap; }
.mbx { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--soft); flex-wrap: wrap; }
.mbx .r { flex: 1; min-width: 160px; }
.mbx.on { background: #F8FAFF; margin: 0 -12px; padding: 12px; border-radius: 12px; border-top: 0; }
.sheet-note { background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-top: 14px; }
.sheet-note.red { background: var(--red-bg); color: var(--red); }
.sheet-note.green { background: var(--green-bg); color: var(--green); }
.rec { display: grid; grid-template-columns: 70px 60px 1fr; gap: 8px 10px; align-items: start; font-size: 13px; }
.rec .v { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; position: relative; }
.rec .v .cp { position: absolute; right: 6px; top: 5px; }
.tpl-item { display: block; padding: 10px 12px; border-radius: 10px; color: inherit; }
.tpl-item:hover { background: var(--bg); color: inherit; }
.tpl-item.on { background: var(--blue-bg); } .tpl-item.on .t { color: var(--deep); }
.tpl-item .t { font-weight: 700; font-size: 13px; } .tpl-item .s { color: var(--muted); font-size: 12px; }
.seqstep { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; position: relative; }
.seqstep .n { width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.seqstep .r { flex: 1; min-width: 0; } .seqstep .t { font-weight: 700; } .seqstep .s { color: var(--muted); font-size: 12px; }
.seqgap { margin-left: 15px; border-left: 2px dashed #C9D0E6; height: 34px; display: flex; align-items: center; padding-left: 22px; font-size: 12px; color: var(--muted); font-weight: 700; gap: 6px; }
.seqgap input { width: 54px; height: 28px; border: 1.5px solid #E1E5F2; border-radius: 8px; text-align: center; font: inherit; font-weight: 700; padding: 0; }
.merge { display: inline-block; background: var(--amber-bg); color: var(--amber); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin: 0 2px; cursor: pointer; }
.editor { border: 1.5px solid #E1E5F2; border-radius: 12px; background: #fff; }
.editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,77,201,.12); }
.editor .tb { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--soft); flex-wrap: wrap; align-items: center; }
.editor .tb button { min-width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #3B4270; font-weight: 700; font-size: 13px; background: var(--bg); border: 0; font-family: inherit; padding: 0 8px; cursor: pointer; }
.editor .tb button:hover { background: var(--soft); }
.editor .body { padding: 14px; font-size: 14px; line-height: 1.6; min-height: 160px; outline: 0; }
.editor .body.short { min-height: 70px; font-size: 13px; }
.editor .body:empty::before { content: attr(data-ph); color: #A7ADC9; }
.funnel div { display: flex; align-items: center; gap: 10px; padding: 5px 0; } .funnel .l { width: 90px; font-size: 12px; font-weight: 700; flex-shrink: 0; } .funnel .bar { flex: 1; height: 12px; min-width: 0; } .funnel b { width: 60px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.funnel .bar > i.green { background: var(--green); }
.ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ring i { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; } .mini div { min-width: 0; background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; } .mini b { display: block; font-size: 20px; font-weight: 800; } .mini span { font-size: 11px; opacity: .85; }
.hdr3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; } .hdr3 h3 { font-size: 15px; margin: 0; }
.camp-row td .nm { font-weight: 700; } .camp-row td .sub { color: var(--muted); font-size: 12px; }
.rep { padding: 8px 0; border-top: 1px solid var(--soft); } .rep:first-child { border-top: 0; }
.hero-txt { position: relative; }
@media (max-width: 575.98px) {
  .dns { grid-template-columns: 1fr; } .dns .ok, .dns .bad, .dns .wait { margin-top: -4px; margin-bottom: 6px; }
  .dns.two { grid-template-columns: 1fr auto; } .dns.two .ok, .dns.two .bad, .dns.two .wait { margin: 0; }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc { padding: 14px; } .acc .lg { width: 40px; height: 40px; } .hdr3 > div { min-width: 0; }
  .funnel .l { width: 72px; } .rec { grid-template-columns: 1fr; }
}

/* ---------- template editor: Visual | HTML ---------- */
.seg-x { display: inline-flex; background: var(--bg); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-x button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 12px; border-radius: 7px; cursor: pointer; height: 24px; }
.seg-x button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(26,41,128,.15); }
.editor .body.code { display: block; width: 100%; border: 0; outline: 0; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; min-height: 260px; background: #F8FAFF; border-radius: 0 0 12px 12px; color: var(--ink); }
.editor .body.code[hidden] { display: none; }

/* ---------- inbox (Phase 3) ---------- */
.inbox { display: grid; grid-template-columns: 340px minmax(420px, 1fr) 300px; gap: 16px; align-items: start; }
.conv-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.conv-list .tools { padding: 14px 14px 10px; border-bottom: 1px solid var(--soft); }
.conv-list .search { height: 40px; border-radius: 11px; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.conv-list .search input { border: 0; background: transparent; outline: 0; flex: 1; font: inherit; color: var(--ink); min-width: 0; }
.conv { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--bg); position: relative; align-items: flex-start; color: inherit; }
.conv:hover { background: #FAFBFE; color: inherit; }
.conv.on { background: var(--blue-bg); }
.conv.unread .nm { font-weight: 800; } .conv.unread::before { content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }
.conv .r { flex: 1; min-width: 0; } .conv .nm { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; } .conv .nm time { color: var(--muted); font-weight: 500; font-size: 11px; white-space: nowrap; }
.conv .sub { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv .pre { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .meta { display: flex; gap: 6px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
.pill.xs { padding: 3px 8px; font-size: 10px; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; box-shadow: none; }
.thread { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 640px; }
.thread .head { padding: 16px 20px; border-bottom: 1px solid var(--soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.thread .head .who { flex: 1; min-width: 160px; } .thread .head .who b { font-size: 15px; } .thread .head .who div { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.msgs { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; max-height: 70vh; overflow-y: auto; }
.msg { max-width: 78%; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; position: relative; min-width: 0; overflow-wrap: anywhere; }
.msg.out { align-self: flex-end; background: var(--blue-bg); border-bottom-right-radius: 6px; }
.msg.in { align-self: flex-start; background: #F8FAFF; border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.msg .by { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.msg .by .newtag { color: var(--green); font-weight: 700; }
.msg .body-html img { max-width: 100%; height: auto; } .msg .body-html p:last-child { margin-bottom: 0; } .msg .body-html table { max-width: 100%; }
.sys { align-self: center; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-weight: 600; text-align: center; }
.sys.bad { color: var(--red); background: var(--red-bg); }
.compose { border-top: 1px solid var(--soft); padding: 14px 20px 16px; }
.compose .box { border: 1.5px solid #E1E5F2; border-radius: 12px; background: #fff; }
.compose .box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,77,201,.12); }
.compose .box .ta { padding: 12px 14px; font-size: 14px; line-height: 1.55; min-height: 96px; color: var(--ink); outline: 0; border: 0; resize: none; }
.compose .box .ta:empty::before { content: attr(data-ph); color: #A7ADC9; }
.compose .box .tb { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--soft); flex-wrap: wrap; }
.compose .box .tb button:not(.btn-x) { height: 28px; min-width: 28px; padding: 0 8px; border-radius: 7px; display: inline-grid; place-items: center; color: #3B4270; font-weight: 700; font-size: 12px; background: var(--bg); border: 0; font-family: inherit; cursor: pointer; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ctx .kv { font-size: 13px; } .ctx .kv dd { overflow-wrap: anywhere; }
.stagebtns { display: flex; flex-wrap: wrap; gap: 6px; } .stagebtns .chip.red { color: var(--red); }
.ev-line { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--soft); font-size: 12px; } .ev-line:first-of-type { border-top: 0; }
.ev-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; } .ev-line i.g { background: var(--green); } .ev-line i.y { background: var(--yellow); } .ev-line i.s { background: #C9D0E6; }
.mob-back { display: none; }
@media (max-width: 1499.98px) { .inbox { grid-template-columns: 320px minmax(0, 1fr); } .ctx { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) { .ctx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .inbox { grid-template-columns: 1fr; } .ctx { grid-template-columns: 1fr; } .thread { min-height: 0; } }
@media (max-width: 767.98px) {
  .inbox[data-m="list"] .thread, .inbox[data-m="list"] .ctx { display: none; }
  .inbox[data-m="thread"] .conv-list { display: none; }
  .mob-back { display: inline-flex; } .msg { max-width: 92%; } .msgs { max-height: none; }
}

/* ---------- warm-up pool ---------- */
.pool { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pbox { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; min-width: 0; }
.pbox.dash { border-style: dashed; opacity: .85; }
.pbox .nm { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.pbox .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; gap: 8px; } .pbox .row b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 10px; } .spark i { flex: 1; background: var(--blue-bg); border-radius: 3px 3px 0 0; min-height: 3px; } .spark i.g { background: var(--green); } .spark i.y { background: var(--yellow); } .spark i.r { background: var(--red); }
.dayrow { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 1fr 1fr; gap: 8px; font-size: 12px; padding: 8px 0; border-top: 1px solid var(--soft); align-items: center; }
.dayrow.hd { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; border-top: 0; }
@media (max-width: 575.98px) { .dayrow { grid-template-columns: 70px 1fr 1fr 1fr; } .dayrow .hide-m { display: none; } }

/* ===================== Phase 4: reports + settings ===================== */
.kpi .kbody { min-width: 0; } .kpi .kdelta { font-size: 11px; font-weight: 700; margin-top: 3px; color: var(--muted); } .kpi .kdelta.up { color: var(--green); } .kpi .kdelta.dn { color: var(--red); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; box-shadow: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rchart { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding-top: 8px; }
.rchart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; min-width: 0; height: 100%; }
.rchart .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; min-height: 0; } .rchart .col i.s { background: var(--blue-bg); } .rchart .col i.r { background: var(--green); }
.rchart .col small { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.heat { display: grid; gap: 3px; font-size: 10px; align-items: center; } .heat .h { text-align: center; color: var(--muted); font-weight: 700; } .heat .r { color: var(--muted); font-weight: 700; }
.heat i { display: block; height: 18px; border-radius: 4px; background: var(--primary); }
.chips a.chip { text-decoration: none; }
.setting-row > span:first-child { flex: 1 1 auto; min-width: 0; } .setting-row .ctl { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.sgroup { font-weight: 700; font-size: 13px; margin: 18px 0 4px; } .sgroup:first-child { margin-top: 0; } .sgroup small { font-weight: 500; color: var(--muted); }
.sgroup + .setting-row { border-top: 0; }
.setting-row select.inp { height: 36px; padding: 0 10px; }
@media (max-width: 767.98px) {
  .rchart { gap: 3px; height: 130px; } .rchart .col small.alt { display: none; }
  .heat { gap: 2px; } .heat i { height: 14px; }
  .setting-row { flex-wrap: wrap; } .setting-row > .ctl, .setting-row > .inp, .setting-row > textarea.inp { flex: 1 1 100%; justify-content: flex-start; } .setting-row > .inp { max-width: 100%; }
}

/* ===================== Phase 5: WhatsApp, consent, cleanup ===================== */
.msg.wa.in { background: #F1FBF5; border-color: #CFEEDC; } .msg.wa.out { background: #E6F7F1; }
.msg .tick { font-size: 11px; color: var(--muted); font-weight: 700; } .msg .tick.read, .msg .tick .read { color: #2B9BE0; } .msg .tick.fail { color: var(--red); }
.chan { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 2px 6px; vertical-align: 1px; } .chan.wa { background: #E6F7F1; color: #128C7E; } .chan.em { background: var(--blue-bg); color: var(--primary); }
.winbar { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 10px; flex-wrap: wrap; } .winbar.open { background: var(--green-bg); color: var(--green); } .winbar.closed { background: var(--amber-bg); color: var(--amber); } .winbar.blocked { background: var(--red-bg); color: var(--red); }
.winbar .bar { flex: 1 1 120px; height: 6px; background: rgba(0,0,0,.08); } .winbar .bar i { background: currentColor; }
.tplpick { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; } .tplpick .body { margin-top: 8px; background: #F1FBF5; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; white-space: pre-line; } .tplpick .body b { background: #D6F0E2; border-radius: 4px; padding: 0 4px; }
.segx { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; } .segx span { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; } .segx span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.btn-x.btn-wa { background: #128C7E; color: #fff; } .btn-x.btn-wa:hover { background: #0F7A6D; color: #fff; }
.cst { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; } .cst.g { background: var(--green-bg); color: var(--green); } .cst.a { background: var(--amber-bg); color: var(--amber); } .cst.r { background: var(--red-bg); color: var(--red); } .cst.s { background: var(--bg); color: var(--muted); }
.cbx { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; cursor: pointer; margin: 0; } .cbx i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #C9D0E6; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; } .cbx.on i { background: var(--primary); border-color: var(--primary); } .cbx.on i::before { content: "✓"; } .cbx small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.cnt { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; } .cnt b { font-variant-numeric: tabular-nums; text-align: right; } .cnt .tot { border-top: 1px solid var(--soft); padding-top: 8px; margin-top: 4px; font-weight: 800; color: var(--red); }
.btn-x.btn-danger { background: var(--red); color: #fff; } .btn-x.btn-danger:hover { background: #A51F1F; color: #fff; } .btn-x.btn-danger:disabled { opacity: .5; }
.seqstep .n.wa { background: #128C7E; }
.wa-card .kv { grid-template-columns: 110px 1fr; }

/* ===================== Phase 6: calls, tasks, score, team ===================== */
.oc { display: flex; flex-wrap: wrap; gap: 8px; } .oc span { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: #3B4270; background: #fff; cursor: pointer; } .oc span.on { background: var(--deep); color: #fff; border-color: var(--deep); } .oc span.g.on { background: var(--green); border-color: var(--green); } .oc span.r.on { background: var(--red); border-color: var(--red); }
.task { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--soft); } .task:first-child { border-top: 0; }
.task .tcb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #C9D0E6; margin-top: 1px; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; } .task .tcb.done { background: var(--green); border-color: var(--green); } .task .tcb.done::before { content: "✓"; }
.task b { font-size: 14px; } .task .m { font-size: 12px; color: var(--muted); margin-top: 2px; } .task .due { font-size: 12px; font-weight: 700; white-space: nowrap; text-align: right; } .task .due.late { color: var(--red); } .task .due.soon { color: var(--amber); } .task.done > div { opacity: .55; }
.task a.tt { color: var(--ink); } .task a.tt:hover { color: var(--primary); }
.score { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; } .score.hot { background: #FDEAEA; color: #C62828; } .score.warm { background: var(--amber-bg); color: var(--amber); } .score.cold { background: var(--bg); color: var(--muted); }
.sring { width: 56px; height: 56px; min-width: 56px; flex: 0 0 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; position: relative; } .sring::after { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; } .sring span { position: relative; z-index: 1; }
.sys.task-line { background: var(--amber-bg); color: var(--amber); }
.sla { font-size: 11px; font-weight: 700; } .sla.late { color: var(--red); } .sla.ok { color: var(--green); }
.badge-count.tasks { background: var(--red); }

/* ---------- Phase 7: onboarding, referrals, duplicates ---------- */
.onb-steps { display: grid; gap: 10px; }
.onb-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.onb-step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg); color: var(--muted); }
.onb-step.done .n { background: var(--green); color: #fff; } .onb-step.now { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,77,201,.12); } .onb-step.now .n { background: var(--primary); color: #fff; }
.onb-step b { display: block; font-size: 13.5px; } .onb-step small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.onb-step .act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.onb-ring { width: 54px; height: 54px; min-width: 54px; border-radius: 50%; display: grid; place-items: center; }
.onb-ring span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--ink); }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px 8px 8px 14px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.linkbox span { flex: 1 1 200px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.refrow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); font-size: 13px; } .refrow:first-child { border-top: 0; }
.refrow b { display: block; } .refrow small { color: var(--muted); }
.lead-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--purple); background: var(--purple-bg); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dup-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #FAFBFE; border-bottom: 1px solid var(--soft); flex-wrap: wrap; border-radius: var(--radius) var(--radius) 0 0; }
.dup-hd b { font-size: 13.5px; }
.dup-r { display: grid; grid-template-columns: 22px 1.1fr 1.3fr 1fr .9fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--bg); font-size: 13px; }
.dup-r.keep { background: var(--green-bg); } .dup-r:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.dup-r .nm { font-weight: 700; min-width: 0; } .dup-r .nm a { color: var(--ink); } .dup-r .nm small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.dup-r .hide { min-width: 0; overflow-wrap: anywhere; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D0E6; display: grid; place-items: center; cursor: pointer; } .radio.on { border-color: var(--green); } .radio.on::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.merge-grid { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 12.5px; }
.merge-grid th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 0 6px 4px; } .merge-grid .fl { color: var(--muted); font-weight: 700; width: 110px; padding: 0 6px; }
.merge-grid .cell { border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 9px; overflow-wrap: anywhere; cursor: pointer; margin: 0 4px; }
.merge-grid .cell.on { border-color: var(--green); background: var(--green-bg); font-weight: 700; } .merge-grid .cell.empty { color: #B8BED4; font-style: italic; cursor: default; }
.fs-11 { font-size: 11px; }
@media (max-width: 860px) { .dup-r { grid-template-columns: 22px 1fr auto; } .dup-r .hide { display: none; } .onb-step { grid-template-columns: 34px 1fr; } .onb-step .act { grid-column: 2; justify-content: flex-start; } }
@media (max-width: 560px) { .linkbox span { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; padding: 4px 0; } .linkbox .btn-x { flex: 1; } }

/* ---------- Phase 8: AI assist, seed tests ---------- */
.chip.ai { color: var(--purple); border-color: #E3D6F6; background: #FBF9FF; } .chip.ai.on, .chip.ai:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.aidraft { border: 1.5px solid var(--purple); border-radius: 12px; background: #FBF9FF; margin-bottom: 10px; }
.aidraft .txt { padding: 12px 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.aidraft .acts { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid #EADFF8; flex-wrap: wrap; }
.seedres { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.seedres.inbox { background: var(--green-bg); color: var(--green); } .seedres.spam { background: var(--red-bg); color: var(--red); } .seedres.missing, .seedres.pending { background: var(--amber-bg); color: var(--amber); } .seedres.error { background: var(--bg); color: var(--muted); }

/* ===== Phase 9: view-as bar, notifications & install, audit log, role matrix, backups, retention, consent ===== */
.va-bar { position: sticky; top: 0; z-index: 1040; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(90deg, #1A2980, #2B4DC9); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 22px rgba(18,27,92,.3); }
.va-bar i { font-size: 18px; color: var(--yellow); } .va-bar span { flex: 1; min-width: 200px; } .va-bar b { color: #fff; }
body.viewing-as .rc-top { top: var(--va-h, 52px); } body.viewing-as .rc-side { top: var(--va-h, 52px); }
.iconbtn.bell { text-decoration: none; }
.install-card { background: linear-gradient(120deg, #1A2980 0%, #2B4DC9 60%, #3D63E0 100%); color: #fff; border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.install-card::after { content: ""; position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.install-card .lg { width: 64px; height: 64px; border-radius: 17px; background: #fff; padding: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.3); position: relative; z-index: 1; }
.install-card .lg img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.install-card .tx { position: relative; z-index: 1; min-width: 0; } .install-card .tx b { display: block; font-size: 17px; } .install-card .tx p { margin: 4px 0 0; font-size: 13px; opacity: .92; line-height: 1.5; }
.install-card .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.install-card .ios-steps { grid-column: 1 / -1; margin: 0; padding: 12px 14px 12px 32px; background: rgba(255,255,255,.12); border-radius: 12px; font-size: 13px; line-height: 1.7; position: relative; z-index: 1; }
.dev-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); font-size: 13px; }
.dev-row:first-of-type { border-top: 0; } .dev-row > i { font-size: 22px; color: var(--primary); } .dev-row b { display: block; } .dev-row small { color: var(--muted); }
@media (max-width: 575.98px) { .dev-row { grid-template-columns: auto minmax(0, 1fr) auto; } .dev-row .pill { display: none; } }
/* audit */
.au-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 10px; margin: 0 -10px; border-top: 1px solid var(--soft); font-size: 13px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.au-row:first-child { border-top: 0; } .au-row:hover { background: #F8FAFF; } .au-row.on { background: var(--blue-bg); border-top-color: transparent; }
.au-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.au-row .who { display: flex; gap: 8px; align-items: center; font-weight: 700; min-width: 0; } .au-row .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-row .what b { font-weight: 700; } .au-row .what > span:not(.act) { color: var(--muted); } .au-row .what small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.au-row .when { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: right; } .au-row .when b { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }
.au-row .act { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 2px 7px; margin-right: 6px; text-transform: uppercase; vertical-align: 1px; }
.a-set { background: var(--purple-bg); color: var(--purple); } .a-del { background: var(--red-bg); color: var(--red); } .a-login { background: var(--blue-bg); color: var(--primary); }
.a-send { background: var(--green-bg); color: var(--green); } .a-exp { background: var(--amber-bg); color: var(--amber); } .a-edit, .a-sys { background: var(--soft); color: #3B4270; }
.avatar.sys { background: #3B4270; box-shadow: none; } .avatar.red { background: var(--red); box-shadow: none; }
.au-diff { display: grid; grid-template-columns: minmax(80px, auto) 1fr 1fr; gap: 6px 10px; font-size: 12.5px; align-items: center; }
.au-diff .h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.au-diff .k { font-weight: 600; overflow-wrap: anywhere; }
.au-diff .old { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 6px 9px; text-decoration: line-through; overflow-wrap: anywhere; }
.au-diff .new { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 6px 9px; font-weight: 700; overflow-wrap: anywhere; }
.au-diff i { opacity: .6; font-style: normal; text-decoration: none; }
@media (min-width: 1200px) { .au-detail { position: sticky; top: calc(var(--top-h) + 16px); } }
@media (max-width: 767.98px) { .au-row { grid-template-columns: minmax(0, 1fr) auto; } .au-row .what { grid-column: 1 / -1; grid-row: 2; } }
/* role matrix */
.perm-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 66px); gap: 0; align-items: center; font-size: 13px; }
.perm-grid .h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; text-align: center; padding-bottom: 6px; } .perm-grid .h.l { text-align: left; }
.perm-grid .r { padding: 7px 0; border-top: 1px solid var(--soft); min-height: 38px; display: flex; align-items: center; } .perm-grid .c { justify-content: center; }
.tick { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--green-bg); color: var(--green); font-weight: 800; font-size: 12px; border: 0; font-family: inherit; }
.tick.no { background: var(--bg); color: #B8BED4; } .tick.mine { background: var(--amber-bg); color: var(--amber); font-size: 9.5px; letter-spacing: .03em; }
button.tick { cursor: pointer; transition: transform .1s, box-shadow .1s; } button.tick:hover { box-shadow: 0 0 0 2px rgba(43,77,201,.25); } button.tick:active { transform: scale(.94); }
button.tick.loading .spin { width: 10px; height: 10px; }
/* backups + retention */
.bk-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 6px; border: 1.5px solid var(--line); background: #F8FAFF; }
.bk-status .big { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--blue-bg); color: var(--primary); }
.bk-status.is-ok .big { background: var(--green-bg); color: var(--green); } .bk-status.is-bad { background: var(--red-bg); border-color: #F3C9C9; } .bk-status.is-bad .big { background: #fff; color: var(--red); }
.bk-status b { display: block; font-size: 14px; color: var(--ink); } .bk-status.is-bad b { color: var(--red); } .bk-status span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--soft); font-size: 13px; }
.rule-row b { display: block; } .rule-row small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; } .rule-row .n { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; font-size: 12.5px; }
@media (max-width: 767.98px) { .rule-row { grid-template-columns: minmax(0, 1fr) auto auto; } .rule-row .hide-sm { display: none; } .rule-row .n:not(.hide-sm) { grid-column: 1; grid-row: 2; color: var(--muted); } }
/* consent timeline */
.ct-list { display: grid; }
.ct { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.ct .dot { display: flex; flex-direction: column; align-items: center; } .ct .dot i { width: 11px; height: 11px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; background: var(--primary); box-shadow: 0 0 0 3px var(--blue-bg); }
.ct .dot i.g { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); } .ct .dot i.r { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.ct .dot s { flex: 1; width: 2px; background: var(--soft); margin-top: 4px; }
.ct .body { padding-bottom: 12px; font-size: 13px; min-width: 0; } .ct .body b { display: block; } .ct .body small { color: var(--muted); display: block; margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }

.okl { list-style: none; margin: 0; padding: 0; } .okl li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--soft); font-size: 13px; } .okl li:first-child { border-top: 0; } .okl i { color: var(--green); margin-top: 1px; } .okl li.info i { color: var(--muted); }

/* ===== 011: offline queue pill in the top bar ===== */
.sync-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 16px rgba(199,119,0,.16), inset 0 0 0 1px rgba(199,119,0,.18); }
.sync-pill[hidden] { display: none; }
.sync-pill i { font-size: 15px; }
.sync-pill.busy i { animation: rcspin 1s linear infinite; }
.sync-pill.err { background: var(--red-bg); color: var(--red); box-shadow: 0 6px 16px rgba(198,40,40,.14), inset 0 0 0 1px rgba(198,40,40,.18); }
.sync-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@keyframes rcspin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) { .sync-pill { padding: 0 10px; } .sync-pill span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; } }
@media (prefers-reduced-motion: reduce) { .sync-pill.busy i { animation: none; } }
/* phones: toasts full width, above the bottom navigation */
@media (max-width: 575.98px) { .toast-x { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .toast-x .t { max-width: none; } }

/* ---------- in-app help (0.9.2): section ⓘ pop-up + page "Need help?" guide ---------- */

/* ---------- section ⓘ button ---------- */
.hlp { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--blue-bg); color: var(--primary); font-size: 13px; cursor: pointer; vertical-align: middle; position: relative;
  box-shadow: inset 0 0 0 1px rgba(43,77,201,.14); transition: background .15s, color .15s, transform .12s, box-shadow .15s; }
.hlp i { line-height: 1; }
.hlp:hover, .hlp:focus-visible { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(43,77,201,.35); transform: translateY(-1px); outline: 0; }
.hlp:active { transform: none; }
.hlp::after { content: ""; position: absolute; inset: -10px; }           /* 42px touch target */
.hlp.on-dark { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.hlp.on-dark:hover { background: #fff; color: var(--deep); }
.hlp.xs { width: 18px; height: 18px; font-size: 11px; }
.sec-t { display: inline-flex; align-items: center; gap: 8px; }
.kpi { position: relative; } .kpi .hlp { position: absolute; top: 10px; right: 10px; }

/* hover hint (desktop only) — tells what the click will do */
.hlp[data-tip]:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.18); pointer-events: none; z-index: 5; animation: pop .14s ease; }
@media (hover: none) { .hlp[data-tip]:hover::before { display: none; } }

/* ---------- "Need help?" page link ---------- */
.need-help { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  color: var(--deep); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.need-help .nh-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--light)); box-shadow: 0 6px 14px rgba(43,77,201,.32); }
.need-help:hover { border-color: #C9D0E6; box-shadow: var(--shadow); }
.need-help-m { display: none; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 12px 7px 9px; border: 0; border-radius: 999px; background: var(--blue-bg); color: var(--primary);
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(43,77,201,.14); }
.need-help-m i { font-size: 16px; }
.need-help small { font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---------- shared overlay ---------- */
.hx-back { position: fixed; inset: 0; background: rgba(26,41,128,.45); backdrop-filter: blur(2px); z-index: 1060; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hx-back.show { opacity: 1; pointer-events: auto; }
body.hx-lock { overflow: hidden; }

/* ---------- section pop-up (centred card; bottom sheet on phones) ---------- */
.hpop { position: fixed; left: 50%; top: 50%; width: min(540px, calc(100vw - 32px)); max-height: min(82vh, 720px); z-index: 1070; background: #fff; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(18,27,92,.35); display: flex; flex-direction: column; overflow: hidden;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s; }
.hpop.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.hpop .hp-head { flex-shrink: 0; padding: 22px 24px 18px; display: flex; gap: 14px; align-items: flex-start; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1A2980 0%, #2B4DC9 65%, #3D63E0 100%); color: #fff; }
.hpop .hp-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.hp-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; flex-shrink: 0; position: relative; z-index: 1;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 10px 20px rgba(0,0,0,.18); }
.hp-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hp-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.25; }
.hp-sub { font-size: 13px; opacity: .85; margin-top: 4px; line-height: 1.5; }
.hp-x { margin-left: auto; width: 36px; height: 36px; border-radius: 11px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; position: relative; z-index: 1; }
.hp-x:hover { background: rgba(255,255,255,.26); }
.hp-x:focus { outline: 0; } .hp-x:focus-visible { box-shadow: 0 0 0 3px rgba(245,166,35,.8); }
.hp-body { padding: 6px 24px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hp-blk { padding: 16px 0; border-bottom: 1px solid var(--soft); }
.hp-blk:last-child { border-bottom: 0; }
.hp-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.hp-h i { font-size: 14px; }
.hp-blk p { margin: 0; font-size: 14px; line-height: 1.6; color: #2D3358; }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #2D3358; }
.hp-list .k { font-weight: 700; color: var(--ink); white-space: nowrap; }
.hp-list .k .pill { padding: 4px 9px; font-size: 11px; }
.hp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.hp-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #2D3358; }
.hp-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--deep); background: #FFF1D6; box-shadow: inset 0 0 0 1px rgba(245,166,35,.35); }
.hp-steps b, .hp-list b { color: var(--ink); }
.hp-tip { display: flex; gap: 10px; background: linear-gradient(120deg, #F8FAFF, #EEF3FF); border: 1px solid #DCE4FB; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #2D3358; }
.hp-tip i { color: var(--yellow); font-size: 18px; line-height: 1.2; }
.hp-tip.warn { background: var(--amber-bg); border-color: #F6DFAE; } .hp-tip.warn i { color: var(--amber); }
.hp-foot { flex-shrink: 0; display: flex; gap: 10px; align-items: center; padding: 14px 24px 18px; border-top: 1px solid var(--soft); background: #FBFCFF; }
.hp-foot .lnk { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; font-family: inherit; }
.hp-foot .sp { flex: 1; }
.hp-grab { display: none; }

/* ---------- page guide drawer (right side; full sheet on phones) ---------- */
.hdrw { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 1070; background: var(--bg); display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(18,27,92,.28); transform: translateX(104%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.hdrw.show { transform: none; }
.hd-head { padding: 22px 24px 20px; background: linear-gradient(130deg, #121B5C 0%, #1A2980 45%, #2B4DC9 100%); color: #fff; position: relative; overflow: hidden; flex-shrink: 0; }
.hd-head::before { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hd-head::after { content: ""; position: absolute; left: -40px; bottom: -110px; width: 200px; height: 200px; border-radius: 50%; background: rgba(245,166,35,.12); }
.hd-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.hd-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hd-head h2 { font-size: 24px; margin: 14px 0 6px; position: relative; z-index: 1; }
.hd-head p { margin: 0; font-size: 14px; opacity: .88; line-height: 1.55; position: relative; z-index: 1; }
.hd-tabs { display: flex; gap: 6px; margin-top: 16px; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; }
.hd-tabs::-webkit-scrollbar { display: none; }
.hd-tab { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.hd-tab.on { background: #fff; color: var(--deep); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.hd-body { flex: 1; overflow-y: auto; padding: 18px 18px 24px; -webkit-overflow-scrolling: touch; }
.hd-pane { display: none; } .hd-pane.on { display: block; animation: pop .18s ease; }
.hd-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(26,41,128,.07); padding: 16px 18px; margin-bottom: 12px; }
.hd-card h4 { font-size: 15px; margin: 0 0 6px; }
.hd-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #2D3358; }
.hd-sec { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(26,41,128,.06); margin-bottom: 10px; cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s, transform .12s; text-align: left; width: 100%; font-family: inherit; }
.hd-sec:hover { border-color: #C9D5F7; transform: translateY(-1px); }
.hd-sec .si { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.hd-sec b { display: block; font-size: 14px; color: var(--ink); }
.hd-sec span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.hd-sec .go { margin-left: auto; align-self: center; color: var(--primary); font-size: 12px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.hd-acc { background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(26,41,128,.06); margin-bottom: 10px; overflow: hidden; }
.hd-acc > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 0; background: none; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.hd-acc > button .n { width: 28px; height: 28px; border-radius: 9px; background: var(--blue-bg); color: var(--primary); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.hd-acc > button .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.hd-acc.open > button .chev { transform: rotate(180deg); }
.hd-acc .ab { display: none; padding: 0 16px 16px 56px; }
.hd-acc.open .ab { display: block; }
.hd-acc .ab p { font-size: 13.5px; line-height: 1.6; color: #2D3358; margin: 0; }
.hd-foot { flex-shrink: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.hd-foot .t { font-size: 12px; color: var(--muted); line-height: 1.4; flex: 1; }
.hd-search { display: flex; align-items: center; gap: 10px; height: 44px; background: #fff; border-radius: 12px; padding: 0 14px; box-shadow: 0 6px 18px rgba(26,41,128,.06); margin-bottom: 14px; color: var(--muted); }
.hd-search input { border: 0; outline: 0; flex: 1; font: inherit; color: var(--ink); background: transparent; }
.hd-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; display: none; }

/* "Show me" — section glow after jumping from the guide */
.hx-glow { position: relative; z-index: 1; animation: hxglow 2.2s ease; }
@keyframes hxglow { 0%, 60% { box-shadow: 0 0 0 4px rgba(245,166,35,.85), 0 18px 44px rgba(245,166,35,.3); } 100% { box-shadow: var(--shadow); } }

/* ---------- phones ---------- */
@media (max-width: 575.98px) {
  .hpop { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .hpop.show { transform: none; }
  .hp-grab { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.45); z-index: 2; }
  .hpop .hp-head { padding: 24px 18px 16px; }
  .hp-body { padding: 4px 18px 8px; }
  .hp-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; }
  .hp-foot .btn-x { flex: 1; } .hp-foot .sp { display: none; }
  .hpop:focus, .hdrw:focus { outline: 0; }
  .hp-foot .lnk { width: 100%; justify-content: center; order: 2; padding: 6px 0 0; }
  .hdrw { top: 6vh; width: 100%; border-radius: 24px 24px 0 0; transform: translateY(105%); overflow: hidden; }
  .hdrw.show { transform: none; }
  .hd-head { padding: 26px 18px 16px; }
  .hd-head h2 { font-size: 21px; }
  .hd-body { padding: 14px 14px 20px; }
  .need-help { display: none; }
  .need-help-m { display: inline-flex; }
  .hp-list li { grid-template-columns: 1fr; gap: 2px; }
}
.hpop:focus, .hdrw:focus { outline: 0; }

/* 0.9.2: Bootstrap .d-flex (!important) beat the hidden attribute on the Accounts form links */
#editLinks[hidden] { display: none !important; }

/* 0.9.2: inbox — line between the status chips (Unread … All) and the channel chips (All channels / Email / WhatsApp) */
.chips.chips-sep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chips > .hlp { align-self: center; }

/* prospect page: grid columns never grow past their share (a long unbroken string used to push the right column over Activity) */
.pv-cols > .d-grid { grid-template-columns: minmax(0, 1fr); }
.pv-cols > .d-grid > * { min-width: 0; }

/* ---------- 0.9.3 warm-up friends list (admin/domains/warmup) ---------- */
.mini.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .mini.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini.five div:last-child { grid-column: 1 / -1; } }
.fr-acts { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767.98px) { .fr-acts .fr-open-add { flex-basis: 100%; } }
.fr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.fr-kpis > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fr-kpis b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.fr-kpis b.ok { color: var(--green); } .fr-kpis b.wait { color: var(--amber); }
.fr-kpis span { font-size: 11px; color: var(--muted); font-weight: 600; }
.fr-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fr-filter .srch { position: relative; } .fr-filter .srch i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.fr-filter .srch .inp { padding-left: 34px; height: 34px; width: 220px; }
.fr-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fr-who b { display: block; font-size: 13px; } .fr-who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fr-who em { display: block; font-style: normal; font-size: 11px; color: var(--muted); opacity: .85; }
#frTbl td:first-child { min-width: 240px; }
.fr-card .avatar.soft, .fr-mob .avatar.soft { background: var(--blue-bg); color: var(--primary); width: 34px; height: 34px; font-size: 12px; flex-shrink: 0; }
.fr-card .kb { color: var(--muted); margin-left: 6px; vertical-align: middle; display: inline-block; padding: 2px 4px; }
.fr-mob .pc { align-items: center; } .fr-mob .pc .nm { display: block; color: var(--ink); font-size: 14px; }
.fr-mob .pc .foot { margin-top: 4px; }
.fr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 16px; background: #F8FAFF; }
.fr-empty > i { font-size: 34px; color: var(--primary); } .fr-empty b { font-size: 15px; } .fr-empty span { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.5; } .fr-empty .btn-x { margin-top: 6px; }
.fr-none { padding: 14px 0; text-align: center; }
.fr-set .freq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .fr-set .freq .inp { width: 56px; height: 34px; text-align: center; }
.fr-set .seg-x button.on, #frMode button.on { color: var(--ink); }
.fr-set .lbl { display: block; }
.opt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.opt-list .opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; margin: 0; }
.opt-list .opt input { margin-top: 3px; accent-color: var(--primary); } .opt-list .opt b { display: block; font-size: 13px; } .opt-list .opt span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.opt-list .opt.on { border-color: var(--primary); background: linear-gradient(180deg, #F5F7FF, #fff); box-shadow: 0 4px 14px rgba(59,91,219,.12); }
.mailprev { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.mailprev .mh { background: var(--bg); padding: 10px 14px; font-size: 12px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; } .mailprev .mh b { color: var(--ink); }
.mailprev .mb { padding: 14px; font-size: 14px; line-height: 1.6; color: #1B1F3B; }
#frAddModal .fr-paste { height: auto; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
#frAddModal .drop { display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--muted); padding: 28px; margin: 0; } #frAddModal .drop i { font-size: 30px; } #frAddModal .drop b { color: var(--ink); }
.chk-res { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.chk-res .hd { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 6px; }
.chk-res .ln { display: flex; gap: 8px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--soft); overflow-wrap: anywhere; align-items: flex-start; }
.chk-res .ln > span { min-width: 0; } .chk-res .ln b { margin-right: 6px; } .chk-res .ln em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.chk-res .ln i { margin-top: 2px; } .chk-res .ln.g i { color: var(--green); } .chk-res .ln.r i { color: var(--red); } .chk-res .ln.a i { color: var(--amber); }
.chk-res .ln .nm-edit { cursor: pointer; border-bottom: 1px dashed var(--muted); } .chk-res .ln input.inp { height: 28px; width: 160px; padding: 0 8px; font-size: 13px; display: inline-block; margin-right: 6px; }
.chk-res .more { font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--soft); }
.tellbox { display: flex; gap: 12px; align-items: flex-start; background: var(--green-bg); border-radius: 14px; padding: 12px 14px; }
.tellbox b { display: block; color: var(--green); font-size: 13px; margin-bottom: 4px; } .tellbox span { font-size: 12.5px; color: #1B1F3B; line-height: 1.5; } .tellbox .btn-x { flex-shrink: 0; }
.dayrow.d7 { grid-template-columns: 90px repeat(6, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .dayrow.d7 { grid-template-columns: 70px 1fr 1fr 1fr; } }
@media (max-width: 767.98px) {
  .fr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fr-kpis > div:nth-child(n+4) { display: none; }
  .fr-filter .srch { flex: 1; } .fr-filter .srch .inp { width: 100%; }
  .tellbox { flex-direction: column; }
}

/* ---------- 1.2.0 Settings → Projects → Holidays by country ---------- */
.hc-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.hc-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: var(--bg, #F6F7FB); border-bottom: 1px solid var(--line); }
.hc-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.hc-tab:hover { background: #fff; border-color: var(--line); } .hc-tab.on { background: var(--primary); color: #fff; }
.hc-body { padding: 14px 16px; }
.hc-list { border-top: 1px solid var(--line); margin-top: 6px; }
.hc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hc-row .hc-date { width: 140px; flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .hc-row .hc-name { flex: 1; min-width: 0; }
.hc-del { border: 0; background: transparent; color: var(--muted); padding: 4px 6px; border-radius: 8px; line-height: 1; cursor: pointer; } .hc-del:hover { color: var(--red); background: #FDECEC; }
.hc-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; } .hc-date-w .inp { width: 160px !important; height: 36px; }
@media (max-width: 560px) { .hc-row { flex-wrap: wrap; } .hc-row .hc-date { width: auto; } }
