/* =====================================================================
   WAConnect design system - "green & white, premium tool"
   Loaded AFTER app.css, so everything here wins. All assets are local.
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand-50: #eefaf4; --brand-100: #d5f3e5; --brand-200: #aee6cd; --brand-300: #78d3ad; --brand-400: #3dba8b;
  --brand-500: #16a077; --brand-600: #0b7d62; --brand-700: #086250; --brand-800: #064b3d; --brand-900: #043629;
  --accent: #25d366;
  --ink: #0e1f19; --ink-2: #2a3a34; --muted: #5e6e67; --faint: #8a9892;
  --line: #e2e9e5; --line-2: #eef2ef; --bg: #f4f7f5; --surface: #fff;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(10,40,30,.05);
  --sh-2: 0 1px 2px rgba(10,40,30,.04), 0 6px 16px -6px rgba(10,40,30,.10);
  --sh-3: 0 14px 34px -8px rgba(10,40,30,.22);
  --shadow: var(--sh-2);
  /* old names used by app.css */
  --wa: var(--accent); --wa-teal: var(--brand-600); --wa-teal-dark: var(--brand-700); --wa-dark: var(--brand-800);
  --side-w: 268px; --top-h: 0px; --tab-h: 0px; --imp-h: 0px;
  /* bootstrap re-theme */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", sans-serif;
  --bs-body-color: var(--ink); --bs-body-bg: #fff; --bs-border-color: var(--line);
  --bs-link-color: var(--brand-700); --bs-link-hover-color: var(--brand-800); --bs-link-color-rgb: 8,98,80; --bs-link-hover-color-rgb: 6,75,61;
  --bs-success: var(--brand-600); --bs-success-rgb: 11,125,98; --bs-primary: var(--brand-600); --bs-primary-rgb: 11,125,98;
  --bs-border-radius: var(--r-sm); --bs-border-radius-lg: var(--r); --bs-emphasis-color: var(--ink);
}
@media (max-width: 767.98px) { :root { --top-h: 56px; --tab-h: calc(62px + env(safe-area-inset-bottom, 0px)); } }
body:has(.wa-app.has-chat) { --top-h: 0px; --tab-h: 0px; }
body:has(.ai-app) { --tab-h: 0px; }

/* ---------- base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--bs-body-font-family); font-size: .94rem; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss03"; }
::selection { background: var(--brand-200); color: var(--brand-900); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.02em; font-weight: 650; }
a { color: var(--brand-700); text-decoration-color: rgba(8,98,80,.35); text-underline-offset: 2px; } a:hover { color: var(--brand-800); }
.text-muted, .form-text { color: var(--muted) !important; } small, .small { letter-spacing: -.003em; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 5000; background: var(--brand-700); color: #fff; padding: .5rem .9rem; border-radius: 8px; } .skip:focus { left: 8px; color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h) - var(--imp-h)); min-height: calc(100dvh - var(--top-h) - var(--imp-h)); }
body.has-imp { --imp-h: 44px; }
.side { position: sticky; top: var(--imp-h); height: calc(100vh - var(--imp-h)); height: calc(100dvh - var(--imp-h)); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .85rem .75rem; overflow-y: auto; }
.main { min-width: 0; }
.main.pad { padding: clamp(16px, 2.4vw, 32px); }
.main.pad .main-in { max-width: 1320px; margin: 0 auto; animation: pagein .25s ease backwards; }   /* 'backwards': nothing lingers afterwards, so dialogs are not trapped under their backdrop */
.main.p-0 .main-in { height: 100%; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.main h4 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: .35rem; }
.main h4 + p, .main h4 + .text-muted { margin-bottom: 1.1rem; }
.main h5 { font-size: 1.05rem; font-weight: 650; }

/* sidebar */
.brand { color: var(--brand-800); font-weight: 750; font-size: 1.2rem; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; padding: .15rem .35rem .75rem; }
.brand:hover { color: var(--brand-800); }
.brand .logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(140deg, #34d98a 0%, var(--brand-600) 100%); box-shadow: 0 4px 10px -2px rgba(11,125,98,.5), inset 0 1px 0 rgba(255,255,255,.35); display: inline-flex; align-items: center; justify-content: center; }
.biz-card { display: flex; align-items: center; gap: .65rem; padding: .6rem .65rem; border-radius: var(--r); background: linear-gradient(180deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); text-decoration: none; color: inherit; margin-bottom: .5rem; transition: border-color .15s, box-shadow .15s; }
.biz-card:hover { color: inherit; border-color: var(--brand-300); box-shadow: var(--sh-2); }
.biz-card .info { min-width: 0; line-height: 1.25; } .biz-card .info strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .biz-card .info small { color: var(--muted); }
.avatar { background: var(--brand-50); color: var(--brand-700); font-weight: 650; } .avatar.biz { background: linear-gradient(140deg, #2fcf86, var(--brand-600)); color: #fff; }
.side .nav-l { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .52rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 520; font-size: .91rem; text-decoration: none; margin-bottom: 2px; transition: background .12s, color .12s; }
.side .nav-l .lbl { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
.side .nav-l svg { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--faint); transition: color .12s; }
.side .nav-l:hover { background: var(--line-2); color: var(--ink); } .side .nav-l:hover svg { color: var(--brand-600); }
.side .nav-l.active { background: linear-gradient(90deg, var(--brand-50), rgba(238,250,244,.4)); color: var(--brand-800); font-weight: 650; }
.side .nav-l.active::before { content: ""; position: absolute; left: -.85rem; top: 8px; bottom: 8px; width: 3.5px; border-radius: 0 4px 4px 0; background: var(--brand-600); }
.side .nav-l.active svg { color: var(--brand-600); }
.side .nav-l .badge { background: var(--brand-600) !important; font-weight: 650; }
.side .sec { font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 650; margin: 1.1rem .7rem .35rem; }
.side .grow { flex: 1; min-height: 12px; }
.side .user { display: flex; align-items: center; gap: .6rem; padding: .65rem .55rem 0; margin-top: .6rem; border-top: 1px solid var(--line); }
.side .user .nm { flex: 1; min-width: 0; line-height: 1.2; font-size: .85rem; } .side .user .nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side .user .nm small { color: var(--faint); }
.side .user form { margin: 0; } .side .user .lo { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; } .side .user .lo:hover { background: var(--line-2); color: var(--ink); }
.side .user .lo svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar connect button */
.side .connect .rl { display: none; }
/* tablet: icon rail */
@media (min-width: 768px) and (max-width: 1099.98px) {
  :root { --side-w: 76px; }
  .side { padding: .9rem .6rem; align-items: stretch; } .side .tx, .side .sec, .side .biz-card .info, .side .user .nm, .side .brand .bn { display: none; } .side .connect .rl { display: inline; font-size: 1.1rem; line-height: 1; }
  .side .brand { justify-content: center; padding: .1rem 0 .7rem; } .side .biz-card { justify-content: center; padding: .5rem; } .side .nav-l { justify-content: center; padding: .62rem; }
  .side .nav-l .badge { position: absolute; top: 2px; right: 4px; font-size: .62rem; padding: .2em .45em; } .side .nav-l.active::before { left: -.6rem; }
  .side .user { flex-direction: column; border-top: 1px solid var(--line); padding: .7rem 0 0; } .side hr { margin: .6rem 0; }
}
/* phone: top bar + bottom tab bar */
@media (max-width: 767.98px) {
  .shell { display: block; } .side { display: none; }
  .topbar { position: sticky; top: var(--imp-h); z-index: 1030; height: var(--top-h); display: flex !important; align-items: center; justify-content: space-between; padding: 0 .9rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar .brand { padding: 0; font-size: 1.1rem; }
  .main { padding-bottom: var(--tab-h); } .main.p-0 { padding-bottom: 0; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom, 0px); display: grid !important; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(10,40,30,.25); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--faint); font-size: .66rem; font-weight: 600; text-decoration: none; padding: 6px 0; }
  .tabbar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--brand-700); } .tabbar .on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand-600); }
  .tabbar .dot { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand-600); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; }
  body:has(.wa-app.has-chat) .topbar, body:has(.wa-app.has-chat) .tabbar, body:has(.ai-app) .tabbar { display: none !important; }
  /* touch comfort */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } .btn-sm { min-height: 38px; }
  .form-control, .form-select { min-height: 46px; font-size: 16px; } textarea.form-control { min-height: 0; }
  .main h4 { font-size: 1.35rem; } .stat { font-size: 1.5rem; }
  .offcanvas { max-width: 86vw; } .offcanvas .side { display: flex; position: static; height: 100%; border: 0; }
  .offcanvas .side .tx, .offcanvas .side .sec, .offcanvas .side .biz-card .info, .offcanvas .side .user .nm { display: revert; } .offcanvas .side .nav-l { padding: .72rem .8rem; }
}
@media (min-width: 768px) { .topbar, .tabbar { display: none !important; } }

/* ---------- buttons ---------- */
.btn { --bs-btn-border-radius: 10px; border-radius: 10px; font-weight: 600; letter-spacing: -.005em; padding: .5rem .95rem; }
.btn-sm { padding: .32rem .7rem; font-size: .84rem; border-radius: 8px; } .btn-lg { padding: .72rem 1.2rem; border-radius: 12px; }
.btn-success { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; border: 1px solid var(--brand-700); background: linear-gradient(180deg, #0e8f70 0%, var(--brand-600) 100%); box-shadow: 0 1px 2px rgba(8,98,80,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-success:hover, .btn-success:focus { background: linear-gradient(180deg, var(--brand-600) 0%, var(--brand-700) 100%); border-color: var(--brand-800); color: #fff; }
.btn-success:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.18); } .btn-success:disabled, .btn-success.disabled { background: var(--brand-300); border-color: var(--brand-300); box-shadow: none; opacity: 1; color: #fff; }
.btn-outline-success { --bs-btn-color: var(--brand-700); --bs-btn-border-color: var(--brand-300); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-800); --bs-btn-hover-border-color: var(--brand-500); --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-800); --bs-btn-active-border-color: var(--brand-500); background: #fff; }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: #d4ddd8; --bs-btn-hover-bg: var(--line-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #bcc8c2; --bs-btn-active-bg: var(--line); --bs-btn-active-color: var(--ink); background: #fff; }
.btn-outline-primary { --bs-btn-color: #5b45d6; --bs-btn-border-color: #cfc6f7; --bs-btn-hover-bg: #f3f0ff; --bs-btn-hover-color: #4631b8; --bs-btn-hover-border-color: #9d8cf0; --bs-btn-active-bg: #e8e3ff; --bs-btn-active-color: #4631b8; background: #fff; }
.btn-outline-danger { --bs-btn-color: #b42318; --bs-btn-border-color: #f5c2bc; --bs-btn-hover-bg: #fef3f2; --bs-btn-hover-color: #912018; --bs-btn-hover-border-color: #f04438; --bs-btn-active-bg: #fee4e2; --bs-btn-active-color: #912018; background: #fff; }
.btn-warning { --bs-btn-bg: #fdb022; --bs-btn-border-color: #f79009; --bs-btn-hover-bg: #f79009; --bs-btn-hover-border-color: #dc6803; --bs-btn-color: #3b2300; --bs-btn-hover-color: #3b2300; }
.btn-link { color: var(--brand-700); font-weight: 550; } .btn-close { opacity: .5; }

/* ---------- forms ---------- */
.form-control, .form-select { border: 1px solid #d3ddd8; border-radius: 10px; padding: .55rem .8rem; background-color: #fff; transition: border-color .15s, box-shadow .15s; color: var(--ink); }
.form-control-sm, .form-select-sm { padding: .35rem .65rem; border-radius: 8px; font-size: .88rem; }
.form-control::placeholder { color: #9aa8a1; } .form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: #b9c7c0; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(22,160,119,.16); }
.form-control:disabled, .form-select:disabled { background: #f4f7f5; color: var(--faint); }
.form-label { font-weight: 600; font-size: .84rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-check-input { width: 1.1em; height: 1.1em; border-color: #b9c7c0; } .form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); } .form-check-input:focus { box-shadow: 0 0 0 4px rgba(22,160,119,.16); border-color: var(--brand-500); }
input[type=file].form-control { padding: .4rem .6rem; } input[type=file]::file-selector-button { border: 0; background: var(--brand-50); color: var(--brand-800); font-weight: 600; padding: .4rem .8rem; border-radius: 8px; margin-right: .8rem; }

/* ---------- cards, tables, lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.card-header { background: linear-gradient(180deg, #fff, #fbfcfb); border-bottom: 1px solid var(--line-2); font-weight: 650; padding: .8rem 1.1rem; border-radius: 0 !important; }
.card-body { padding: 1.1rem; } .card-footer { background: #fbfcfb; border-top: 1px solid var(--line-2); }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f7fbf9; margin-bottom: 0; color: var(--ink); }
.table thead th { background: #f8faf9; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table > :not(caption) > * > * { padding: .75rem 1rem; border-bottom-color: var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .1s; } .table tbody tr:hover { background: #f7fbf9; } .table tbody tr:last-child > * { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: .5rem .75rem; }
.table-responsive { -webkit-overflow-scrolling: touch; } .card > .table-responsive:first-child, .card > .table:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.list-group-item { border-color: var(--line-2); } .progress { height: 9px; background: var(--line-2); border-radius: 9px; } .progress-bar { background: linear-gradient(90deg, var(--brand-500), var(--brand-600)) !important; }
.pagination { --bs-pagination-active-bg: var(--brand-600); --bs-pagination-active-border-color: var(--brand-600); --bs-pagination-color: var(--brand-700); --bs-pagination-border-radius: 8px; }
.badge.bg-success { background: var(--brand-600) !important; } .badge.bg-danger { background: #d92d20 !important; }
.nav-tabs { --bs-nav-tabs-link-active-color: var(--brand-800); --bs-nav-tabs-link-active-border-color: var(--line) var(--line) #fff; border-bottom-color: var(--line); } .nav-tabs .nav-link { color: var(--muted); font-weight: 600; border-radius: 10px 10px 0 0; } .nav-tabs .nav-link:hover { color: var(--ink); border-color: transparent; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: .35rem; } .dropdown-item { border-radius: 8px; }
.offcanvas { border: 0; box-shadow: var(--sh-3); } .modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.alert { border: 1px solid transparent; border-radius: var(--r); } .alert-warning { background: #fffaeb; border-color: #fedf89; color: #7a2e0e; } .alert-danger { background: #fef3f2; border-color: #fecdca; color: #912018; } .alert-success { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-900); } .alert-info { background: #eff8ff; border-color: #b2ddff; color: #194185; }

/* ---------- callouts, pills, code, empty states ---------- */
.help { position: relative; background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand-500); border-radius: var(--r); padding: .8rem 1rem .8rem 2.9rem; margin-bottom: 1.2rem; font-size: .91rem; color: var(--ink-2); box-shadow: none; }
.help::before { content: "i"; position: absolute; left: .9rem; top: .85rem; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-600); color: #fff; font: 700 .78rem/22px "Inter", sans-serif; text-align: center; }
.help strong { color: var(--brand-800); }
.pill { font-size: .72rem; font-weight: 650; padding: .2rem .65rem; border-radius: 999px; letter-spacing: 0; }
.pill-green { background: var(--brand-100); color: var(--brand-800); } .pill-grey { background: #eceff1; color: #475467; } .pill-red { background: #fee4e2; color: #b42318; } .pill-amber { background: #fef0c7; color: #93370d; } .pill-blue { background: #dbeafe; color: #1d4ed8; }
code { color: var(--brand-800); background: var(--brand-50); border: 1px solid var(--brand-100); padding: .05rem .35rem; border-radius: 6px; font-size: .84em; } pre code { background: none; border: 0; color: inherit; padding: 0; }
pre { position: relative; background: #0b1f19; color: #d9efe6; border: 1px solid #12372c; border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--sh-1); }
pre .cp { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #bfe9d8; font: 600 .72rem "Inter", sans-serif; padding: .2rem .55rem; border-radius: 7px; opacity: 0; transition: opacity .15s; } pre:hover .cp, pre .cp:focus { opacity: 1; } pre .cp:hover { background: rgba(255,255,255,.16); }
@media (hover: none) { pre .cp { opacity: 1; } }
.empty { text-align: center; color: var(--muted); padding: 2.6rem 1.2rem; } .empty:not(.small)::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 18px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%230b7d62' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center no-repeat; border: 1px solid var(--brand-100); }
.stat { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); } details > summary { cursor: pointer; font-weight: 600; padding: .65rem 1rem; list-style: none; display: flex; align-items: center; gap: .5rem; } details > summary::before { content: "\25B8"; color: var(--brand-600); transition: transform .15s; } details[open] > summary::before { transform: rotate(90deg); } details > summary::-webkit-details-marker { display: none; }
.wa-preview { background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%23d9d2c5'/%3E%3Ccircle cx='38' cy='34' r='1.2' fill='%23d9d2c5'/%3E%3C/svg%3E"); border-radius: var(--r); }

/* ---------- toast refresh ---------- */
.toast-lite { border-radius: var(--r); box-shadow: var(--sh-3); border-left-width: 4px; }
.toast-lite.t-success { border-left-color: var(--brand-500); } .toast-lite.t-success .ti::before { background: var(--brand-600); }
@media (max-width: 767.98px) { #toasts { top: calc(var(--top-h) + 8px); left: 12px; right: 12px; width: auto; } }

/* ---------- chat + assistant fit the new shell ---------- */
.wa-head { background: var(--brand-50); border-bottom: 1px solid var(--brand-100); } .wa-item.active { background: var(--brand-50); } .wa-item:hover { background: #f7fbf9; }
.wa-list { border-right-color: var(--line); } .rb, .ai-send { background: linear-gradient(180deg, #0e8f70, var(--brand-600)); box-shadow: 0 1px 2px rgba(8,98,80,.4); } .rb:disabled, .ai-send:disabled { background: #b8c2cc; box-shadow: none; }
.ai-list { background: #fafcfb; } .ai-list .item.active { background: var(--brand-100); } .ai-list .item:hover { background: var(--line-2); }
.ai-spark { background: linear-gradient(135deg, #6d5bf0, var(--brand-500)); box-shadow: 0 4px 10px -3px rgba(80,60,200,.4); }
.ai-row.user .ai-b { background: linear-gradient(180deg, #0e8f70, var(--brand-600)); }
.draft, .ai-box, .ai-sugg button { border-radius: var(--r-lg); } .ai-sugg button:hover { border-color: var(--brand-500); box-shadow: 0 8px 20px -10px rgba(11,125,98,.35); }
@media (max-width: 767.98px) {
  body .wa-app { height: calc(100vh - var(--top-h) - var(--tab-h) - var(--imp-h)); height: calc(100dvh - var(--top-h) - var(--tab-h) - var(--imp-h)); }
  body .wa-app.has-chat { height: calc(100vh - var(--imp-h)); height: calc(100dvh - var(--imp-h)); }
  body .ai-app { height: calc(100vh - var(--top-h) - var(--imp-h)); height: calc(100dvh - var(--top-h) - var(--imp-h)); min-height: 0; }
  .ai-panel { width: 100%; } .ai-head .t small { display: none; } .ai-msgs { padding: .9rem .8rem 1.1rem; } .ai-sugg { grid-template-columns: 1fr; }
  .wa-msgs { padding: .8rem 3%; } .bub { max-width: 86%; }
}

/* ---------- login / register ---------- */
.auth-side { background: radial-gradient(900px 520px at -8% -12%, rgba(61,186,139,.55) 0, transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(37,211,102,.28) 0, transparent 55%), linear-gradient(155deg, var(--brand-900) 0%, var(--brand-700) 100%); }
.auth-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 35%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, transparent); }
.auth-side { position: relative; overflow: hidden; } .auth-side > * { position: relative; z-index: 1; }
.auth-side h1, .auth-side h2, .auth-side strong { color: #fff; } .auth-side h1 { letter-spacing: -.03em; font-weight: 750; } .auth-main { background: #fff; } .auth-card h2 { letter-spacing: -.03em; font-weight: 750; font-size: 1.7rem; }
.auth-card .btn-lg { border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(11,125,98,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.field.has-error .form-control { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240,68,56,.1); }
.pw .tog { color: var(--brand-700); }

/* print */
@media print { .side, .topbar, .tabbar, #toasts, .skip { display: none !important; } .shell { display: block; } .main.pad { padding: 0; } .card { box-shadow: none; } }


/* ---------- Admin Console (dark green sidebar) + banners ---------- */
.console .side { background: linear-gradient(185deg, var(--brand-900) 0%, #05281f 100%); border-right: 0; color: #cfe8de; }
.console .side .brand, .console .side .brand:hover { color: #fff; } .console .side .brand .tag { font-size: .62rem; letter-spacing: .1em; background: rgba(255,255,255,.14); border-radius: 6px; padding: .1rem .4rem; margin-left: .15rem; font-weight: 700; }
.console .side .nav-l { color: #bfdccf; } .console .side .nav-l svg { color: #6fa892; }
.console .side .nav-l:hover { background: rgba(255,255,255,.08); color: #fff; } .console .side .nav-l:hover svg { color: #9be0c2; }
.console .side .nav-l.active { background: rgba(255,255,255,.13); color: #fff; } .console .side .nav-l.active::before { background: #3dd598; } .console .side .nav-l.active svg { color: #5eead4; }
.console .side .sec { color: #6fa892; } .console .side .user { border-top-color: rgba(255,255,255,.12); } .console .side .user .nm b { color: #fff; } .console .side .user .nm small { color: #7fb39d; }
.console .side .avatar { background: rgba(255,255,255,.14); color: #fff; } .console .side .user .lo { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #cfe8de; } .console .side .user .lo:hover { background: rgba(255,255,255,.16); color: #fff; }
.console .side .nav-l .badge { background: #f79009 !important; color: #fff; }
.kpi { display: flex; flex-direction: column; gap: .15rem; } .kpi .lbl2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; } .kpi .sub2 { font-size: .8rem; color: var(--muted); }
.kpi.warn { border-color: #fedf89; background: linear-gradient(180deg, #fffcf5, #fff); } .kpi.warn .stat { color: #b54708; }
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 130px; } .bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .72rem; color: var(--muted); }
.bars .pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 100%; justify-content: center; } .bars i { display: block; width: 38%; border-radius: 4px 4px 0 0; min-height: 3px; }
.reveal { border: 1px solid #fedf89; background: #fffcf5; border-radius: var(--r); padding: .9rem 1rem; margin-bottom: 1.1rem; } .reveal code { font-size: 1rem; user-select: all; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .45rem 1rem; font-size: .9rem; } .kv dt { color: var(--muted); font-weight: 550; } .kv dd { margin: 0; word-break: break-word; }
@media (max-width: 575px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .5rem; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); } .switch-row:last-of-type { border-bottom: 0; } .switch-row small { color: var(--muted); display: block; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.danger-zone { border: 1px solid #fecdca; background: #fffbfa; border-radius: var(--r); }
.announce { background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); color: #fff; border-radius: var(--r); padding: .65rem 1rem; margin-bottom: 1.1rem; font-size: .92rem; font-weight: 550; box-shadow: var(--sh-2); }
.main.p-0 .announce { display: none; }
.imp { position: sticky; top: 0; z-index: 3500; height: var(--imp-h); display: flex; align-items: center; justify-content: center; gap: 1rem; background: #1d2939; color: #fff; padding: 0 1rem; font-size: .88rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.imp b { color: #6ee7b7; } .imp form { margin: 0; } .imp .btn { --bs-btn-padding-y: .18rem; --bs-btn-padding-x: .8rem; border-radius: 999px; min-height: 0; font-weight: 650; }
.imp .imp-tag { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .05rem .55rem; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 575.98px) { .imp { gap: .6rem; font-size: .8rem; padding: 0 .6rem; } .imp .imp-tag { display: none; } }
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: radial-gradient(900px 500px at 10% -10%, rgba(61,186,139,.35), transparent 60%), radial-gradient(700px 500px at 100% 110%, rgba(37,211,102,.18), transparent 55%), linear-gradient(160deg, #04261d, #0a4a3a); }
.adm-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 2rem 1.8rem; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); }
.adm-card .shield { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(140deg, #34d98a, var(--brand-600)); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 10px 20px -8px rgba(11,125,98,.7); } .adm-card .shield svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* administrator shortcut inside the customer app */
.side .admin-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; margin-bottom: .6rem; border-radius: 10px; text-decoration: none; font-weight: 650; font-size: .88rem; color: #fff; background: linear-gradient(140deg, var(--brand-800), var(--brand-600)); box-shadow: var(--sh-2); }
.side .admin-link:hover { color: #fff; filter: brightness(1.08); } .side .admin-link .lbl { display: inline-flex; align-items: center; gap: .6rem; }
.side .admin-link svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) and (max-width: 1099.98px) { .side .admin-link { justify-content: center; padding: .6rem; } }

/* balance & usage */
.announce.lowbal { background: linear-gradient(90deg, #b54708, #f79009); } .announce.lowbal a { color: #fff; font-weight: 700; }
.side .nav-l .badge.low { background: #d92d20 !important; }
.side .nav-l .badge:not(.low) { background: var(--brand-100) !important; color: var(--brand-800); }
.bal { font-size: 2.3rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal.low { color: #b42318; }
.bars .pair.one i { width: 56%; background: var(--brand-500); }

/* WhatsApp configuration guide */
.guide details { border-radius: 10px; margin-bottom: .5rem; } .guide summary { padding: .7rem .9rem; gap: .7rem; }
.guide .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-600); color: #fff; font-size: .74rem; }
.guide .gb { padding: 0 1rem .8rem 2.9rem; font-size: .88rem; color: var(--ink-2); } .guide .gb ol { padding-left: 1.1rem; margin: 0; } .guide .gb li { margin-bottom: .3rem; }

/* balance statement */
.scroll-y { max-height: 440px; overflow: auto; } .scroll-y thead th { position: sticky; top: 0; z-index: 1; }
.stmt .fw-bold { font-variant-numeric: tabular-nums; font-size: 1.02rem; } .card tfoot td { background: #f8faf9; border-top: 1px solid var(--line); }
@media (max-width: 767.98px) { .stmt .col-auto { display: none; } .stmt .col { flex: 0 0 50%; margin-bottom: .5rem; } }

.side .user .nm a { color: var(--brand-700); font-size: .74rem; text-decoration: none; } .side .user .nm a:hover { text-decoration: underline; }
.console .side .user .nm a { color: #8fd3b8; }

/* sidebar footer: name, role and "Change password" on their own lines */
.side .user .nm small, .side .user .nm a { display: block; line-height: 1.3; }
.side .user .nm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* compact "Password" popover button: no disclosure triangle */
details.pw > summary { list-style: none; } details.pw > summary::before, details.pw > summary::-webkit-details-marker { display: none; content: none; }

/* campaign creation page, contacts bulk bar */
.stepn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-600); color: #fff; font-size: .8rem; margin-right: .4rem; }
.tcard { border: 1.5px solid var(--line); border-radius: var(--r); padding: .7rem .85rem; cursor: pointer; height: 100%; transition: border-color .12s, box-shadow .12s, background .12s; background: #fff; }
.tcard:hover { border-color: var(--brand-300); } .tcard.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(22,160,119,.15); }
.tcard .tbody { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile { display: block; border: 1.5px solid var(--line); border-radius: var(--r); padding: .7rem .85rem; cursor: pointer; height: 100%; } .tile:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.bulkbar { border-color: var(--brand-300); background: var(--brand-50); position: sticky; top: 8px; z-index: 5; }

/* chats: filter tabs, contact suggestions, contact panel, quick replies */
.wa-tabs { display: flex; gap: .4rem; margin-top: .5rem; } .wa-tabs a { padding: .15rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; background: var(--line-2); } .wa-tabs a.on { background: var(--brand-600); color: #fff; }
.wa-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-3); overflow: hidden; } .wa-sugg a { display: block; padding: .5rem .7rem; text-decoration: none; color: var(--ink); } .wa-sugg a:hover { background: var(--brand-50); }
.wa-main { position: relative; } .wa-info { position: absolute; top: 61px; right: 0; bottom: 0; width: 310px; max-width: 100%; z-index: 25; background: #fff; border-left: 1px solid var(--line); padding: 1rem; overflow-y: auto; box-shadow: -12px 0 30px -18px rgba(10,40,30,.35); }
.wa-qpop { position: absolute; bottom: 62px; left: 52px; z-index: 30; width: 330px; max-width: calc(100vw - 30px); max-height: 340px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: .6rem; }
.wa-qpop .qrow { display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line-2); } .wa-qpop .quse { flex: 1; text-align: left; background: none; border: 0; padding: .45rem .3rem; border-radius: 8px; } .wa-qpop .quse:hover { background: var(--brand-50); } .wa-qpop .qdel { background: none; border: 0; color: var(--faint); padding: 0 .5rem; font-size: 1.2rem; } .wa-qpop .qdel:hover { color: #d92d20; }
@media (max-width: 767.98px) { .wa-info { width: 100%; } }

/* chat: WhatsApp-like details */
.wa-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 82px; z-index: 12; border: 0; border-radius: 999px; background: var(--brand-600); color: #fff; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; box-shadow: var(--sh-3); }
.wa-sendnote { position: absolute; left: 12px; right: 12px; bottom: 70px; z-index: 11; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 10px; padding: .45rem .75rem; font-size: .84rem; }
.wa-msgs .row-m.local .bub { opacity: .78; }
.wa-msgs .bub .acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.wa-msgs .bub .err { display: block; color: #b42318; font-size: .8rem; margin-top: .25rem; }
.wa-comp textarea { max-height: 130px; overflow-y: auto; }

/* the CRM dropdown on the People screen (no JavaScript needed to open it) and CRM results in the chat search */
.crm-menu { position: relative; } .crm-menu > summary { list-style: none; cursor: pointer; } .crm-menu > summary::-webkit-details-marker, .crm-menu > summary::before { display: none; content: none; }
.crm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: .35rem 0; }
.crm-pop .crm-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: .35rem .9rem .2rem; font-weight: 700; }
.crm-pop a, .crm-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .5rem .9rem; color: var(--ink); text-decoration: none; font-size: .92rem; } .crm-pop a:hover, .crm-pop button:hover { background: var(--brand-50); }
.wa-sugg .sg-head { padding: .4rem .7rem .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; border-top: 1px solid var(--line-2); background: var(--line-2); }
.wa-sugg .sg-crm { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: .5rem .7rem; } .wa-sugg .sg-crm:hover:not(:disabled) { background: var(--brand-50); } .wa-sugg .sg-crm:disabled { opacity: .55; }

/* tables that NEVER scroll sideways: compact columns on a computer, and on a narrow screen every row becomes a readable card */
table.table-stack { width: 100%; }
table.table-stack th, table.table-stack td { white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
table.table-stack .text-nowrap { white-space: normal !important; }
table.table-stack .cell-main { min-width: 0; }
@media (max-width: 991.98px) {
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100%; }
  table.table-stack thead { display: none; }
  table.table-stack tr { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  table.table-stack tr:last-child { border-bottom: 0; }
  table.table-stack td { border: 0 !important; box-shadow: none !important; padding: .22rem 0 !important; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: right !important; max-width: none !important; }
  table.table-stack td[data-label]:not([data-label=""])::before { content: attr(data-label); flex: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; text-align: left; }
  table.table-stack td.cell-main { display: block; text-align: left !important; padding-bottom: .45rem !important; }
  table.table-stack td.cell-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .4rem; padding-top: .5rem !important; }
  table.table-stack td.empty, table.table-stack td[colspan] { display: block; text-align: center !important; }
}

/* ---- modal pop-up forms (the browser's own <dialog>: always above everything) ---- */
dialog.dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(8, 30, 25, .55); overflow: hidden; }
dialog.dlg.wide { width: min(720px, calc(100vw - 24px)); }
dialog.dlg[open] { display: flex; flex-direction: column; animation: dlgin .16s ease-out; }
dialog.dlg::backdrop { background: rgba(9, 28, 23, .5); backdrop-filter: blur(2px); }
@keyframes dlgin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex: none; }
.dlg-title { margin: 0; font-weight: 700; font-size: 1.1rem; }
.dlg-x { border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); padding: 0 .3rem; border-radius: 8px; } .dlg-x:hover { color: var(--ink); background: var(--line-2); }
.dlg-body { padding: 1.25rem; overflow-y: auto; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.dlg-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 10px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .92rem; }
.dlg-loading { display: flex; align-items: center; gap: .6rem; color: var(--muted); padding: 1rem 0; }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand-600); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
.dlg-progress .bar { height: 14px; border-radius: 999px; background: var(--line-2); overflow: hidden; } .dlg-progress .bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500, #1aa883), var(--brand-600)); border-radius: 999px; transition: width .25s ease; }
.dlg-progress .bar.wait > i { width: 40% !important; animation: slide 1.1s ease-in-out infinite alternate; } @keyframes slide { from { margin-left: 0; } to { margin-left: 60%; } }
.dlg-progress .big { font-size: 1.15rem; font-weight: 700; margin: .9rem 0 .2rem; } .dlg-progress .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin-top: 1rem; }
.dlg-progress .nums div { background: var(--line-2); border-radius: 12px; padding: .55rem .75rem; } .dlg-progress .nums b { display: block; font-size: 1.3rem; } .dlg-progress .nums span { font-size: .78rem; color: var(--muted); }
/* People: filter chips and the easier table */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--line-2); color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 600; border: 1.5px solid transparent; } .chip b { font-weight: 700; color: var(--muted); }
.chip:hover { border-color: var(--brand-300); } .chip.on { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-700); } .chip.on b { color: var(--brand-700); }
.person-form .more > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--brand-700); }
.people-table td.cell-check { width: 38px; }
@media (max-width: 991.98px) { .people-table td.cell-check { position: absolute; right: 1rem; width: auto; } .people-table tr { position: relative; } }
/* sizes that keep numbers in one piece */
table.table-stack .keep { white-space: nowrap !important; overflow-wrap: normal !important; }

/* ---- proper pagination, advanced search, sortable table, column chooser ---- */
.adv > summary { list-style: none; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--brand-700); } .adv > summary::-webkit-details-marker, .adv > summary::before { display: none; content: none; }
.adv .adv-box { background: var(--line-2); border-radius: var(--r); padding: 1rem; margin-top: .75rem; }
.adv-badge { background: var(--brand-600); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05rem .5rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .75rem; font-size: .85rem; }
.fchip { display: inline-flex; align-items: center; gap: .35rem; background: var(--brand-50); border: 1px solid var(--brand-300); color: var(--brand-700); border-radius: 999px; padding: .15rem .35rem .15rem .7rem; font-weight: 600; }
.fchip a { text-decoration: none; color: var(--brand-700); width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; } .fchip a:hover { background: var(--brand-600); color: #fff; }
.people-table th a.sort { color: inherit; text-decoration: none; white-space: nowrap; } .people-table th a.sort:hover { color: var(--brand-700); } .people-table th a.sort .arr { color: var(--brand-600); font-size: .7rem; margin-left: .2rem; }
.cols-menu { position: relative; display: inline-block; } .cols-menu > summary { list-style: none; cursor: pointer; } .cols-menu > summary::-webkit-details-marker, .cols-menu > summary::before { display: none; content: none; }
.cols-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: .6rem .8rem; } .cols-pop label { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; font-size: .9rem; cursor: pointer; }
.people-table.hide-groups [data-col="groups"], .people-table.hide-status [data-col="status"], .people-table.hide-last [data-col="last"], .people-table.hide-added [data-col="added"],
.people-table.hide-source [data-col="source"], .people-table.hide-company [data-col="company"], .people-table.hide-email [data-col="email"] { display: none !important; }
.skip-why { background: var(--line-2); border-radius: var(--r); padding: .8rem 1rem; }

/* country setup */
.ctry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem .75rem; max-height: 440px; overflow-y: auto; padding-right: .3rem; }
.ctry { display: flex; align-items: center; gap: .55rem; padding: .4rem .6rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; margin: 0; } .ctry:hover { border-color: var(--brand-300); } .ctry.on { background: var(--brand-50); border-color: var(--brand-600); }
.ctry .nm { flex: 1; font-size: .9rem; font-weight: 550; } .ctry .dial { font-size: .78rem; color: var(--muted); } .ctry .ppl { font-size: .72rem; font-weight: 700; background: var(--brand-600); color: #fff; border-radius: 999px; padding: 0 .45rem; }
/* the Actions dropdown in the accounts list */
.card.ov { overflow: visible; }
.act-menu { position: relative; display: inline-block; } .act-menu > summary { list-style: none; cursor: pointer; } .act-menu > summary::-webkit-details-marker { display: none; }
.act-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 250px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: .35rem 0; white-space: normal; }
.act-pop .sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: .5rem .9rem .15rem; }
.act-pop a, .act-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .45rem .9rem; color: var(--ink); text-decoration: none; font-size: .9rem; } .act-pop a:hover, .act-pop button:hover { background: var(--brand-50); } .act-pop .danger { color: #b42318; } .act-pop form { margin: 0; }
table.table-stack tbody tr:nth-last-child(-n+2) .act-pop { top: auto; bottom: calc(100% + 6px); }
.anchor { display: block; position: relative; top: -80px; visibility: hidden; height: 0; }

/* admin mode: the full-height chat and AI screens make room for the bar on every screen size (app.css sets 100vh on computers) */
body.has-imp .wa-app, body.has-imp .wa-app.has-chat { height: calc(100vh - var(--imp-h)); height: calc(100dvh - var(--imp-h)); }
@media (max-width: 767.98px) { body.has-imp .wa-app:not(.has-chat) { height: calc(100vh - var(--top-h) - var(--tab-h) - var(--imp-h)); height: calc(100dvh - var(--top-h) - var(--tab-h) - var(--imp-h)); } }
body.has-imp .ai-app { height: calc(100vh - var(--top-h) - var(--imp-h)); height: calc(100dvh - var(--top-h) - var(--imp-h)); }
.act-menu > summary::before, .act-menu > summary::marker { display: none; content: none; }
.act-pop a, .act-pop button { padding: .38rem .9rem; font-size: .88rem; } .act-pop .sep { padding: .4rem .9rem .1rem; }

/* the pager: one tidy row of square buttons, the count on the left and a per-page choice on the right; wraps neatly on a phone */
.pager-pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1rem; padding: .6rem .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1, none); }
.pager-pro .pp-info { font-size: .86rem; color: var(--muted); } .pager-pro .pp-info b { color: var(--ink); font-weight: 650; }
.pp-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 .55rem; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem; line-height: 1; }
a.pp-btn:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }
.pp-btn.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pp-btn.off { opacity: .35; cursor: default; }
.pp-gap { display: inline-flex; min-width: 24px; justify-content: center; color: var(--faint); }
.pp-step { border-color: var(--line); background: #fff; }
.pp-size { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pp-size select { width: auto; height: 34px; padding: 0 1.9rem 0 .65rem; font-size: .86rem; border-radius: 9px; }
@media (max-width: 767.98px) { .pager-pro { justify-content: center; text-align: center; } .pager-pro .pp-info, .pp-pages { width: 100%; } .pp-pages { order: 3; } .pp-size { order: 2; } .pp-word { display: none; } }
@media (max-width: 479.98px) { .pp-edge { display: none; } }
/* a calmer search box on the list screens */
.search-row .search-input { max-width: 440px; }
.card > .card-body > form .btn { white-space: nowrap; }
/* lighter list screens: a small Advanced search toggle (not a big box), a standard-height search on computers, a neater "Previous / Next" */
details.adv { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; margin-top: .6rem; }
details.adv > summary { padding: .15rem 0; font-size: .9rem; }
@media (min-width: 768px) { .search-row .search-input { height: 38px; min-height: 38px; padding-top: .3rem; padding-bottom: .3rem; font-size: .92rem; } .search-row .btn { height: 38px; padding-top: 0; padding-bottom: 0; } }
.pp-step { gap: .3rem; }
.pp-size select { appearance: auto; }
/* the Claude key box: shows that a key is saved without ever showing it, and hides what is typed */
.secret-input { -webkit-text-security: disc; text-security: disc; letter-spacing: .04em; }
.keybox-mask { display: inline-block; padding: .45rem .8rem; border: 1px dashed #b9c7c0; border-radius: 10px; background: var(--line-2); color: var(--ink-2); letter-spacing: .06em; user-select: none; }

/* ===== Twenty-style tables (tview.js): view bar, grid, selection bar, right-click menu, command panel ===== */
.tv-on .tv-legacy { display: none !important; }
.tv-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.tv-bar-r { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.tvb { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--ink-2, #344054); border-radius: 8px; padding: .32rem .6rem; font-size: .86rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.tvb:hover, .tvb[aria-expanded="true"] { background: var(--line-2); color: var(--ink); }
.tvb-view { font-size: .95rem; padding-left: .35rem; } .tvb-view .tv-vcount { color: var(--muted); font-weight: 500; } .tvb-view .tv-caret { color: var(--faint); font-size: .75em; } .tvb-icon { padding: .32rem .45rem; }
.tv-ico { flex: none; display: inline-block; width: 16px; height: 16px; }
.tv-pop, .tv-menu { position: fixed; z-index: 1300; min-width: 230px; max-width: min(340px, calc(100vw - 16px)); max-height: min(70vh, 520px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(8, 30, 25, .35); padding: .35rem; }
.tvp-sec { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: .45rem .6rem .2rem; }
.tv-opt, .tvm-item { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; padding: .42rem .6rem; border-radius: 8px; color: var(--ink); text-align: left; text-decoration: none; font-size: .88rem; cursor: pointer; }
.tv-opt:hover, .tvm-item:hover, .tvm-item:focus, .tv-opt:focus { background: var(--line-2); outline: 0; } .tv-opt > span, .tvm-item > span { flex: 1; min-width: 0; }
.tv-opt-row { padding: 0; } .tv-opt-row > a { display: flex; align-items: center; gap: .6rem; flex: 1; padding: .42rem .6rem; color: inherit; text-decoration: none; border-radius: 8px; } .tv-opt-row:hover { background: var(--line-2); }
.tv-del { border: 0; background: none; color: var(--faint); font-size: 1.2rem; line-height: 1; padding: 0 .6rem; cursor: pointer; } .tv-del:hover { color: #b42318; }
.tv-tag { font-style: normal; font-size: .68rem; background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: 0 .4rem; margin-left: .3rem; }
.tv-sep { height: 1px; background: var(--line-2); margin: .3rem .2rem; }
.tv-cols { max-height: 220px; overflow-y: auto; }
.tvm-head { padding: .4rem .6rem; font-size: .8rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: .2rem; }
.tvm-item.danger, .tvp-item.danger, .tvs-b.danger { color: #b42318; }
kbd { font-family: inherit; font-size: .7rem; color: var(--muted); background: var(--line-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 .35rem; flex: none !important; }
/* the grid */
.tv-table { font-size: .9rem; }
.tv-table thead th { font-size: .76rem; font-weight: 650; color: var(--muted); text-transform: none; letter-spacing: 0; background: #fafbfa; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tv-table thead th + th { border-left: 1px solid var(--line-2); }
.tv-table tbody td { padding-top: .5rem; padding-bottom: .5rem; border-color: var(--line-2); }
.tv-table tbody tr { transition: background .08s; } .tv-table tbody tr:hover { background: #f6faf8; } .tv-table tbody tr.tv-selected { background: #e8f5ee; }
.tv-table.tv-compact tbody td { padding-top: .2rem; padding-bottom: .2rem; font-size: .86rem; }
.tv-table [hidden] { display: none !important; }
.tv-table td.cell-check, .tv-table th.tv-chk { width: 38px; }
@media (max-width: 991.98px) { .tv-table td.cell-check { position: absolute; right: 1rem; width: auto; } .tv-table tbody tr { position: relative; } }
.tv-addnew { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line-2); font-size: .88rem; } .tv-addnew:hover { background: var(--line-2); color: var(--ink); }
.tv-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); background: #fafbfa; } .tv-foot b { color: var(--ink); } .tv-sel-n { color: var(--brand-700); font-weight: 650; }
.tv-banner { background: #eaf6f0; border: 1px solid #bfe3d0; color: var(--brand-800, #0b5d47); border-radius: 10px; padding: .45rem .9rem; font-size: .88rem; margin-bottom: .5rem; text-align: center; }
/* the floating bar for the selection */
.tv-selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h, 0px) + 18px); z-index: 1100; display: flex; align-items: center; gap: .2rem; background: #1d2939; color: #fff; border-radius: 14px; padding: .35rem .45rem; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .45); max-width: calc(100vw - 16px); animation: tvin .14s ease-out; }
.tv-selbar[hidden] { display: none; } .tvs-n { padding: 0 .6rem; font-size: .88rem; white-space: nowrap; }
.tvs-b, .tvs-x { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: #fff; border-radius: 9px; padding: .42rem .65rem; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; } .tvs-b:hover, .tvs-x:hover { background: rgba(255, 255, 255, .14); }
.tvs-b.danger { color: #fda29b; }
@keyframes tvin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 575.98px) { .tvs-b span { display: none; } .tvs-b { padding: .5rem .6rem; } .tvb span { display: none; } .tvb-view span { display: inline; } }
/* the command panel on the right */
dialog.tv-panel { margin: 0 0 0 auto; inset: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0; background: #fff; color: var(--ink); box-shadow: -24px 0 60px -24px rgba(8, 30, 25, .4); }
dialog.tv-panel[open] { display: flex; flex-direction: column; animation: tvp .16s ease-out; } dialog.tv-panel::backdrop { background: rgba(9, 28, 23, .16); }
@keyframes tvp { from { transform: translateX(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.tvp-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); flex: none; }
.tvp-x { border: 0; background: none; color: var(--muted); padding: .2rem; border-radius: 8px; display: inline-flex; } .tvp-x:hover { background: var(--line-2); color: var(--ink); }
.tvp-input { flex: 1; border: 0; outline: 0; font-size: .98rem; background: transparent; color: var(--ink); min-width: 0; }
.tvp-list { overflow-y: auto; padding: .4rem .5rem 1rem; }
.tvp-item { display: flex; align-items: center; gap: .7rem; width: 100%; border: 0; background: transparent; padding: .55rem .7rem; border-radius: 9px; text-align: left; font-size: .92rem; color: var(--ink); cursor: pointer; } .tvp-item.on, .tvp-item:hover { background: var(--line-2); }
.tvp-lbl { flex: 1; min-width: 0; } .tvp-none { padding: 1rem; color: var(--muted); text-align: center; }
.tv-toast { position: fixed; left: 50%; bottom: calc(var(--tab-h, 0px) + 84px); transform: translateX(-50%); background: #1d2939; color: #fff; padding: .45rem .9rem; border-radius: 10px; font-size: .86rem; z-index: 1400; opacity: 1; transition: opacity .35s; } .tv-toast.out { opacity: 0; }

.tv-pop-wide { width: 340px; max-width: calc(100vw - 16px); } .tvf-rows { display: grid; gap: .55rem; padding: .25rem .5rem .5rem; } .tvf { display: grid; gap: .2rem; margin: 0; } .tvf > span { font-size: .78rem; font-weight: 650; color: var(--muted); }
.tvf-actions { display: flex; gap: .5rem; padding: .5rem; border-top: 1px solid var(--line-2); }

/* ===== the people picker (New group, Add people, a campaign's audience) ===== */
.pk { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; } .pk[hidden] { display: none; }
.pk-tabs { display: flex; background: #f6f8f7; border-bottom: 1px solid var(--line); }
.pk-tab { flex: 1; border: 0; background: transparent; padding: .7rem .8rem; font-weight: 650; font-size: .9rem; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: .5rem; border-bottom: 3px solid transparent; cursor: pointer; }
.pk-tab:hover { color: var(--ink); } .pk-tab.on { color: var(--brand-700); background: #fff; border-bottom-color: var(--brand-600); }
.pk-badge { min-width: 1.5rem; text-align: center; border-radius: 999px; background: var(--line); color: var(--muted); font-size: .75rem; padding: .05rem .4rem; } .pk-badge.on { background: var(--brand-600); color: #fff; }
.pk-pane { padding: .8rem; } .pk-pane[hidden] { display: none; }
.pk-tools { display: grid; grid-template-columns: 1fr 190px; gap: .5rem; margin-bottom: .6rem; } @media (max-width: 575.98px) { .pk-tools { grid-template-columns: 1fr; } }
.pk-allrow { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; padding: .35rem .5rem; background: var(--line-2); border-radius: 10px; font-size: .88rem; } .pk-allrow .pk-selpage { display: flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; font-weight: 600; }
.pk-sel { margin-left: auto; color: var(--muted); font-weight: 600; } .pk-sel.on { color: var(--brand-700); }
.pk-list { max-height: 300px; overflow-y: auto; margin-top: .4rem; border: 1px solid var(--line-2); border-radius: 10px; } .pk-list.loading { opacity: .5; }
.pk-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; margin: 0; cursor: pointer; border-bottom: 1px solid var(--line-2); } .pk-row:last-child { border-bottom: 0; } .pk-row:hover { background: #f6faf8; } .pk-row.on { background: #e8f5ee; }
.pk-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.pk-nm { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pk-ph { color: var(--muted); font-size: .85rem; } .pk-out { font-style: normal; font-size: .7rem; background: #fee4e2; color: #b42318; border-radius: 999px; padding: 0 .4rem; margin-left: .3rem; }
.pk-none { padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .92rem; }
.pk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.pk-help { font-size: .86rem; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: .55rem .7rem; margin-bottom: .6rem; }
.pk-nhead, .pk-nrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 30px; gap: .45rem; align-items: center; } .pk-nhead { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; padding: 0 .1rem .25rem; }
.pk-rows { max-height: 260px; overflow-y: auto; display: grid; gap: .4rem; padding-bottom: .2rem; } .pk-rm { border: 0; background: none; color: var(--faint); font-size: 1.3rem; line-height: 1; border-radius: 8px; } .pk-rm:hover { color: #b42318; background: #fee4e2; }
.pk-nfoot { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; } .pk-fb { font-weight: 600; }
/* ===== the guided campaign form: one question at a time ===== */
.wstep .wb { display: none; } .wstep.open .wb { display: block; } .wstep .wh { display: flex; align-items: center; gap: .6rem; cursor: pointer; flex-wrap: wrap; }
.wstep .wt { font-weight: 700; } .wstep .wsum { color: var(--muted); font-size: .88rem; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wstep .wchange { display: none; font-size: .82rem; color: var(--brand-700); font-weight: 650; margin-left: auto; } .wstep.done:not(.open) .wchange { display: inline; } .wstep.done:not(.open) .stepn { background: var(--brand-700); }
.wstep:not(.open):not(.done) { opacity: .75; } .wstep.open { box-shadow: 0 0 0 2px rgba(22, 160, 119, .22); }
.wq { font-size: 1.05rem; font-weight: 650; margin-bottom: .7rem; } .wnext { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.vmark { background: #d9f2e6; color: #0b5d47; border-radius: 6px; padding: 0 .35rem; font-weight: 650; } .vmsg { background: var(--line-2); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; white-space: pre-wrap; }
.draftcard { border: 1.5px solid #f1c27a; background: #fffaf0; }
/* ===== question and notice windows (replace the browser's own confirm / prompt / alert) ===== */
dialog.dlg.dlg-sm { width: min(440px, calc(100vw - 24px)); }
.dlg-ask .dlg-head { border-bottom: 0; padding-bottom: .3rem; } .dlg-ask .dlg-title { display: flex; align-items: center; gap: .7rem; }
.dlg-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; } .dlg-icon.danger { background: #fee4e2; color: #b42318; } .dlg-icon.info { background: var(--brand-50); color: var(--brand-700); }
.dlg-ask .dlg-body { padding: .2rem 1.25rem 1rem 3.7rem; } .dlg-msg { white-space: pre-line; margin: 0; color: var(--ink-2, #344054); font-size: .96rem; line-height: 1.5; overflow-wrap: anywhere; }
.dlg-foot.end { justify-content: flex-end; border-top: 0; margin: 0; padding: .25rem 1.25rem 1.1rem; }
@media (max-width: 575.98px) { .dlg-ask .dlg-body { padding-left: 1.25rem; } .dlg-foot.end .btn { flex: 1; } }

/* ===== Automations: the list ===== */
.au-h { font-weight: 700; margin-bottom: .6rem; }
.au-start { width: 100%; height: 100%; text-align: left; display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.au-start:hover { border-color: var(--brand-600); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.au-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; } .au-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.au-ic.big { width: 46px; height: 46px; } .au-t { display: grid; gap: .15rem; } .au-t b { font-size: .98rem; } .au-t small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.au-list { display: grid; gap: .8rem; }
.au-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; } .au-card.off .au-ic.big { background: #eceff1; color: #667085; }
.au-main { flex: 1; min-width: 0; } .au-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-weight: 700; font-size: 1.02rem; } .au-title a { color: var(--ink); text-decoration: none; } .au-title a:hover { color: var(--brand-700); }
.au-sum { color: #344054; margin-top: .25rem; font-size: .94rem; overflow-wrap: anywhere; } .au-meta { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.au-side { display: flex; align-items: center; gap: .6rem; flex: none; }
.au-sw { width: 46px; height: 26px; border-radius: 999px; border: 0; background: #d0d5dd; position: relative; transition: background .15s; padding: 0; cursor: pointer; } .au-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.au-sw.on { background: var(--brand-600); } .au-sw.on i { transform: translateX(20px); } .au-sw:disabled { opacity: .6; }
.au-dots { border: 0; background: transparent; font-size: 1.35rem; line-height: 1; padding: .1rem .5rem; border-radius: 8px; color: var(--muted); } .au-dots:hover { background: var(--line-2); }
.pill-amber { background: #fef0c7; color: #93370d; } .pill-blue { background: #e0ecff; color: #1d4ed8; }
.chip { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: var(--line-2); color: #475467; text-decoration: none; font-size: .86rem; font-weight: 600; } .chip.on { background: var(--brand-100); color: var(--brand-800); }
@media (max-width: 575.98px) { .au-card { flex-wrap: wrap; } .au-side { width: 100%; justify-content: flex-end; } }

/* ===== Automations: the builder ===== */
.ab-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ab-back { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; } .ab-back:hover { color: var(--ink); }
.ab-name { flex: 1; min-width: 180px; border: 1px solid transparent; background: transparent; font-size: 1.35rem; font-weight: 700; padding: .25rem .5rem; border-radius: 10px; letter-spacing: -.01em; } .ab-name:hover { border-color: var(--line); } .ab-name:focus { outline: 0; border-color: var(--brand-600); background: #fff; }
.ab-state { font-size: .85rem; color: var(--muted); white-space: nowrap; } .ab-state.dirty { color: #b54708; font-weight: 600; } .ab-state.ok { color: var(--brand-700); } .ab-state.bad { color: #b42318; font-weight: 600; }
.ab-onoff { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; font-size: .9rem; }
.ab-summary { font-size: 1.02rem; color: #344054; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.ab-flow { max-width: 760px; }
.ab-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid #c7d0d9; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ab-card.ab-trigger { border-left-color: #3b82f6; } .ab-card.ab-step { border-left-color: var(--brand-600); } .ab-card.ab-cond, .ab-card.ab-set { border-left-color: #c7d0d9; } .ab-card.bad { border-color: #f1a9a2; border-left-color: #d92d20; }
.ab-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; } .ab-step .ab-head { cursor: pointer; }
.ab-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; } .ab-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .ab-trigger .ab-ic { background: #e0ecff; color: #1d4ed8; }
.ab-ht { display: grid; min-width: 0; flex: 1; } .ab-ht small { font-size: .7rem; letter-spacing: .07em; color: var(--faint); font-weight: 700; } .ab-ht b { font-size: .98rem; } .ab-sum { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-tools { display: flex; align-items: center; gap: .2rem; margin-left: auto; } .ab-tool { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 1rem; } .ab-tool:hover:not(:disabled) { background: var(--line-2); color: var(--ink); } .ab-tool:disabled { opacity: .3; } .ab-tool.danger:hover { background: #fee4e2; color: #b42318; } .ab-chev { color: var(--faint); font-size: .7rem; padding: 0 .4rem; }
.ab-body { padding: .2rem 1rem 1rem 1rem; border-top: 1px solid var(--line-2); padding-top: .9rem; display: grid; gap: .8rem; }
.ab-msgs:not(:empty) { padding: 0 1rem .7rem; display: grid; gap: .3rem; } .ab-msg { font-size: .86rem; border-radius: 8px; padding: .4rem .65rem; } .ab-msg.bad { background: #fef3f2; color: #b42318; } .ab-msg.warn { background: #fffaeb; color: #93370d; }
.ab-field { display: grid; gap: .3rem; } .ab-lab { font-weight: 650; font-size: .88rem; margin: 0; } .ab-hint { font-size: .82rem; color: var(--muted); }
.ab-inline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; } .ab-inline .form-control, .ab-inline .form-select { width: auto; min-width: 90px; }
.ab-conn { display: flex; justify-content: center; height: 34px; position: relative; } .ab-conn::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid #d0d5dd; } .ab-plus { position: relative; align-self: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed #98a2b3; background: #fff; color: #667085; line-height: 1; font-weight: 700; padding: 0; } .ab-plus:hover { border-style: solid; border-color: var(--brand-600); color: var(--brand-700); }
.ab-add { display: block; margin: 0 auto 1.2rem; }
.ab-words { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .5rem; background: #fff; cursor: text; } .ab-words:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(22, 160, 119, .15); } .ab-words-in { border: 0; outline: 0; flex: 1; min-width: 160px; padding: .15rem; background: transparent; }
.ab-word { display: inline-flex; align-items: center; gap: .3rem; background: var(--brand-100); color: var(--brand-800); border-radius: 999px; padding: .15rem .35rem .15rem .7rem; font-weight: 600; font-size: .88rem; } .ab-word button { border: 0; background: transparent; color: inherit; font-size: 1rem; line-height: 1; border-radius: 50%; padding: 0 .3rem; }
.ab-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; } .ab-chips-l { font-size: .8rem; color: var(--muted); margin-right: .2rem; } .ab-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; color: #344054; } .ab-chip:hover { border-color: var(--brand-600); color: var(--brand-700); }
.ab-radios { display: grid; gap: .3rem; } .ab-radio { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; } .ab-radio:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.ab-days { display: flex; flex-wrap: wrap; gap: .3rem; } .ab-day { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .25rem .6rem; font-size: .85rem; font-weight: 600; color: #667085; } .ab-day.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.ab-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; } .ab-tile { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .75rem .85rem; display: grid; gap: .25rem; cursor: pointer; } .ab-tile b { font-size: .95rem; } .ab-tile small { color: var(--muted); line-height: 1.35; } .ab-tile:hover, .ab-tile.on { border-color: var(--brand-600); background: var(--brand-50); }
.ab-tpl-list { max-height: 280px; overflow-y: auto; display: grid; gap: .45rem; } .ab-tpl { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .7rem; display: grid; gap: .25rem; } .ab-tpl:hover:not(:disabled) { border-color: var(--brand-600); } .ab-tpl.no { opacity: .6; } .ab-tpl-b { color: var(--muted); font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .ab-tpl-show .ab-tpl-b { display: block; -webkit-line-clamp: unset; color: #344054; background: var(--line-2); border-radius: 10px; padding: .6rem .8rem; }
.ab-banner { border-radius: 12px; padding: .75rem 1rem; font-size: .92rem; } .ab-banner ul { margin: .35rem 0 0; padding-left: 1.1rem; } .ab-banner.bad { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; } .ab-banner.bad a { color: #b42318; } .ab-banner.ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.ab-preview { position: sticky; top: 12px; } .ab-chat { background: #efeae2; border-radius: 12px; padding: .8rem; display: grid; gap: .45rem; min-height: 160px; align-content: start; }
.ab-b { max-width: 88%; padding: .45rem .65rem; border-radius: 10px; font-size: .9rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); overflow-wrap: anywhere; } .ab-b small { display: block; color: #667085; font-size: .7rem; margin-top: .15rem; } .ab-b.in { background: #fff; justify-self: start; } .ab-b.out { background: #d9fdd3; justify-self: end; }
.ab-ev { justify-self: center; background: rgba(255, 255, 255, .75); color: #475467; font-size: .76rem; padding: .15rem .65rem; border-radius: 999px; text-align: center; }
@media (max-width: 575.98px) { .ab-top .ab-back span { display: none; } }

/* ===== Automations: the how-to guide ===== */
.gd-hero { background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; margin: .6rem 0 1.2rem; } .gd-hero p { color: #344054; max-width: 760px; }
.gd-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.6rem; align-items: start; } @media (max-width: 991.98px) { .gd-layout { grid-template-columns: minmax(0, 1fr); } } .gd-main { min-width: 0; }
.gd-toc { position: sticky; top: 12px; display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: .5rem; } .gd-toc a { padding: .4rem .65rem; border-radius: 9px; color: #475467; text-decoration: none; font-size: .9rem; font-weight: 600; } .gd-toc a:hover { background: var(--brand-50); color: var(--brand-800); }
@media (max-width: 991.98px) { .gd-toc { position: static; display: flex; flex-wrap: wrap; gap: .25rem; } }
.gd-sec { margin-bottom: 2.2rem; scroll-margin-top: 14px; } .gd-sec h5 { font-size: 1.2rem; margin-bottom: .7rem; } .gd-cat { margin: 1.1rem 0 .6rem; font-weight: 700; color: var(--brand-800); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.gd-box { height: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: .9rem 1rem; } .gd-box p { margin: .15rem 0 .35rem; font-size: 1.02rem; } .gd-box small { color: var(--muted); } .gd-box.blue { background: #eff6ff; border-color: #bfdbfe; } .gd-box.green { background: #ecfdf3; border-color: #abefc6; }
.gd-steps { padding-left: 1.25rem; display: grid; gap: .5rem; } .gd-steps li::marker { font-weight: 700; color: var(--brand-700); }
.gd-note { background: #fffaeb; border: 1px solid #fedf89; color: #7a3d0a; border-radius: 12px; padding: .7rem 1rem; font-size: .92rem; margin-top: .8rem; }
.gd-card { height: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 1rem 1.1rem; display: grid; gap: .65rem; align-content: start; scroll-margin-top: 14px; } .gd-card:target { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(22, 160, 119, .18); }
.gd-story { color: #344054; margin: 0; } .gd-chat { background: #efeae2; border-radius: 12px; padding: .65rem; display: grid; gap: .35rem; }
.gd-one { font-size: .88rem; color: #475467; background: var(--line-2); border-radius: 10px; padding: .5rem .7rem; } .gd-uses { display: flex; flex-wrap: wrap; gap: .3rem; }
.gd-tips ul { margin: .25rem 0 0; padding-left: 1.15rem; font-size: .9rem; color: #475467; }
.gd-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); } .gd-idea { height: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .6rem .8rem; font-size: .9rem; } .gd-idea div { color: #475467; margin-top: .2rem; }
.gd-dl { display: grid; grid-template-columns: 210px 1fr; gap: .45rem 1rem; } .gd-dl dt { font-weight: 700; } .gd-dl dd { margin: 0; color: #475467; } @media (max-width: 575.98px) { .gd-dl { grid-template-columns: 1fr; gap: .1rem; } .gd-dl dd { margin-bottom: .5rem; } }
.gd-cta { padding: 1rem 0 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
/* help inside the builder */
.ab-ex { color: #475467; font-size: .84rem; background: var(--line-2); border-radius: 8px; padding: .35rem .6rem; margin-top: .4rem; } .ab-ex b { color: var(--brand-800); }
.ab-prog { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; } .ab-prog span { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; background: var(--line-2); color: #667085; font-size: .84rem; font-weight: 600; } .ab-prog span i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #d0d5dd; color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; } .ab-prog span.done { background: var(--brand-100); color: var(--brand-800); } .ab-prog span.done i { background: var(--brand-600); }
.ab-empty { border: 2px dashed #c7d0d9; border-radius: 14px; padding: 1.1rem 1.2rem; text-align: center; background: #fff; } .ab-empty b { display: block; font-size: 1.05rem; } .ab-empty p { color: var(--muted); margin: .25rem 0 .8rem; } .ab-empty .btn { margin: .15rem; }
.ab-fresh { display: flex; gap: .8rem; align-items: flex-start; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 12px; padding: .75rem 1rem; margin-bottom: .8rem; font-size: .92rem; } .ab-fresh button { margin-left: auto; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; color: inherit; }
.ab-testtip { margin-top: .5rem; background: #ecfdf3; border: 1px solid #abefc6; color: #065f46; border-radius: 12px; padding: .65rem 1rem; font-size: .9rem; } .ab-testtip b { display: block; }
.ab-ideas { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; } .ab-ideas select { width: auto; max-width: 100%; }
.au-how { display: inline-flex; align-items: center; gap: .35rem; }
.au-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; } @media (max-width: 767.98px) { .au-steps3 { grid-template-columns: 1fr; } } .au-steps3 div { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: .8rem 1rem; } .au-steps3 b { display: block; color: var(--brand-800); } .au-steps3 span { color: #475467; font-size: .92rem; }

.wa-own { font-size: .68rem; padding: .05rem .45rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; margin-right: .4rem; }

/* ===== Automations: conversation flows (choices and paths), the steps/map tabs, the map ===== */
.ab-tabs { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 3px; margin-bottom: .9rem; } .ab-tabs button { border: 0; background: transparent; padding: .35rem 1.1rem; border-radius: 9px; font-weight: 650; font-size: .9rem; color: var(--muted); } .ab-tabs button.on { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ab-card.branch { border-left-color: #7c3aed; } .ab-card.branch > .ab-head .ab-ic { background: #ede9fe; color: #6d28d9; }
.ab-paths { padding: .2rem .9rem 1rem 1rem; display: grid; gap: .6rem; border-top: 1px solid var(--line-2); margin-top: .1rem; padding-top: .8rem; }
.ab-path { border: 1px solid var(--line); border-left: 4px solid #98a2b3; border-radius: 12px; background: #fcfcfd; padding: .55rem .7rem .7rem; min-width: 0; }
.ab-path.choice { border-left-color: #3b82f6; } .ab-path.any, .ab-path.then { border-left-color: var(--brand-600); } .ab-path.other { border-left-color: #f59e0b; } .ab-path.timeout, .ab-path.else { border-left-color: #98a2b3; }
.ab-path-h { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .2rem; } .ab-path-tag { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; white-space: nowrap; }
.ab-path-name { flex: 1; min-width: 120px; max-width: 220px; border: 1px solid var(--line); border-radius: 9px; padding: .25rem .6rem; font-weight: 700; background: #fff; } .ab-path-name:focus, .ab-path-words:focus { outline: 0; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(22, 160, 119, .15); } .ab-path-name.ro { border: 0; background: transparent; font-weight: 600; }
.ab-path-words { flex: 2; min-width: 140px; border: 1px dashed var(--line); border-radius: 9px; padding: .25rem .6rem; font-size: .85rem; background: transparent; }
.ab-list.nested { padding-left: .1rem; } .ab-list.nested .ab-conn { height: 24px; } .ab-list.nested .ab-card { box-shadow: none; }
.ab-conn.noted { height: 44px; } .ab-conn-note { position: absolute; left: calc(50% + 22px); top: 4px; font-size: .74rem; color: var(--faint); font-weight: 600; white-space: nowrap; }
.ab-empty-path { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; padding: .4rem .2rem; }
.ab-addchoice { justify-self: start; }
.ab-seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; flex-wrap: wrap; } .ab-seg button { border: 0; background: transparent; padding: .3rem .9rem; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--muted); } .ab-seg button.on { background: #fff; color: var(--brand-800); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.ab-conds { display: grid; gap: .6rem; } .ab-cond-row { display: grid; gap: .4rem; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; background: #fcfcfd; } .ab-and { font-size: .72rem; font-weight: 700; color: var(--brand-700); text-transform: uppercase; letter-spacing: .06em; }
.ab-opts { display: flex; flex-wrap: wrap; gap: .3rem; justify-self: end; max-width: 90%; } .ab-opt { background: #fff; color: #0b6bcb; border-radius: 999px; padding: .15rem .75rem; font-size: .8rem; font-weight: 650; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.ab-ev.branch { background: #dbeafe; color: #1e40af; font-weight: 600; } .ab-ev.end { background: #fee4e2; color: #b42318; }
.ab-map { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem 1.1rem; } .ab-map-in { overflow: auto; max-height: 75vh; border-radius: 10px; background: radial-gradient(#e4e7ec 1px, transparent 1px) 0 0 / 18px 18px; }
.mp-e { fill: none; stroke: #98a2b3; stroke-width: 2; } .mp-n rect:first-child { fill: #fff; stroke: #d0d5dd; stroke-width: 1.5; } .mp-n { cursor: pointer; } .mp-n:hover rect:first-child, .mp-n:focus rect:first-child { stroke: var(--brand-600); outline: 0; }
.mp-bar { fill: var(--brand-600); stroke: none; } .mp-n.trigger .mp-bar { fill: #3b82f6; } .mp-n.ask .mp-bar, .mp-n.wait_reply .mp-bar, .mp-n.if .mp-bar { fill: #7c3aed; } .mp-n.assign .mp-bar { fill: #f59e0b; } .mp-n.opt_out .mp-bar { fill: #d92d20; }
.mp-t { font: 700 12.5px Inter, system-ui, sans-serif; fill: #101828; pointer-events: none; } .mp-s { font: 11.5px Inter, system-ui, sans-serif; fill: #667085; pointer-events: none; }
.mp-tag rect { fill: #e0ecff; } .mp-tag text { font: 700 11px Inter, system-ui, sans-serif; fill: #1d4ed8; } .mp-tag.tag-any rect, .mp-tag.tag-then rect { fill: #d1fadf; } .mp-tag.tag-any text, .mp-tag.tag-then text { fill: #067647; } .mp-tag.tag-other rect { fill: #fef0c7; } .mp-tag.tag-other text { fill: #93370d; } .mp-tag.tag-timeout rect, .mp-tag.tag-else rect { fill: #eaecf0; } .mp-tag.tag-timeout text, .mp-tag.tag-else text { fill: #475467; }
.mp-end rect { fill: #fee4e2; stroke: #fda29b; cursor: pointer; } .mp-end text { font: 700 12px Inter, system-ui, sans-serif; fill: #b42318; pointer-events: none; } .mp-empty rect { fill: #fff; stroke: #d0d5dd; stroke-dasharray: 4 4; } .mp-empty text { font: 11.5px Inter, system-ui, sans-serif; fill: #98a2b3; }
@media (max-width: 575.98px) { .ab-path-name { max-width: none; } .ab-path-words { flex-basis: 100%; } }

/* ===== Reminder campaigns ===== */
.rm-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .35rem; align-items: end; height: 170px; } .rm-bar { display: grid; grid-template-rows: 16px 1fr auto auto; align-items: end; justify-items: center; height: 100%; min-width: 0; } .rm-bar i { display: block; width: 100%; max-width: 26px; background: var(--brand-600); border-radius: 6px 6px 0 0; min-height: 2px; opacity: .85; } .rm-bar:first-child i { background: #3b82f6; }
.rm-n { font-size: .72rem; font-weight: 700; color: var(--brand-800); } .rm-bar b { font-size: .8rem; margin-top: .2rem; } .rm-bar small { font-size: .65rem; color: var(--faint); text-transform: uppercase; }
.rm-rule { background: var(--line-2); border-radius: 10px; padding: .55rem .75rem; margin-bottom: .5rem; font-size: .9rem; color: #344054; } .rm-rule.off { opacity: .55; }
.rm-drop { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 2rem 1rem; border: 2px dashed #b9c4cf; border-radius: 16px; background: #fcfcfd; cursor: pointer; transition: border-color .15s, background .15s; } .rm-drop:hover, .rm-drop.over { border-color: var(--brand-600); background: var(--brand-50); } .rm-drop b { font-size: 1.05rem; } .rm-drop small { color: var(--muted); } .rm-drop-ic { font-size: 2rem; }
.rm-have { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: space-between; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 12px; padding: .6rem .9rem; margin-top: .8rem; } .rm-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin-top: 1rem; }
.rm-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; } .rm-table { margin: 0; font-size: .85rem; white-space: nowrap; } .rm-table th { background: var(--line-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #475467; } .rm-kind { display: inline-block; margin-left: .35rem; padding: 0 .4rem; border-radius: 999px; font-size: .62rem; background: #dbeafe; color: #1d4ed8; } .rm-kind.phone { background: #d1fadf; color: #067647; }
.rm-ex { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; } .rm-text { font-size: 1.02rem; } .rm-go { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.rm-cards { display: grid; gap: .7rem; margin-top: .5rem; } .rm-rule-card { border: 1px solid var(--line); border-left: 4px solid var(--brand-600); border-radius: 14px; background: #fff; padding: .8rem .9rem; display: grid; gap: .6rem; } .rm-rule-card.off { opacity: .6; border-left-color: #98a2b3; }
.rm-rc-h { display: flex; align-items: center; gap: .6rem; } .rm-rc-name { flex: 1; border: 1px solid transparent; font-weight: 700; font-size: 1.02rem; padding: .2rem .4rem; border-radius: 8px; background: transparent; } .rm-rc-name:hover { border-color: var(--line); } .rm-rc-name:focus { outline: 0; border-color: var(--brand-600); background: #fff; } .rm-rc-on { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .85rem; font-weight: 600; }
.rm-lead { font-weight: 650; color: #344054; min-width: 90px; } .rm-block { display: grid; gap: .4rem; } .rm-more summary { cursor: pointer; font-size: .86rem; color: var(--brand-700); font-weight: 650; } .rm-more > .ab-field { margin-top: .5rem; }
.rm-eg { background: var(--line-2); border-radius: 10px; padding: .45rem .7rem; font-size: .86rem; color: #475467; }
.rm-pv { background: #efeae2; border-radius: 12px; padding: .8rem; } .rm-test { display: flex; gap: .5rem; flex-wrap: wrap; } .rm-test input { flex: 1; min-width: 220px; }
.rm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; } .rm-kpi { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: #fff; display: grid; } .rm-kpi b { font-size: 1.7rem; letter-spacing: -.02em; } .rm-kpi span { color: var(--muted); font-size: .84rem; }
.rm-bars30 { grid-template-columns: repeat(30, minmax(0, 1fr)); height: 130px; gap: .2rem; } .rm-bars30 .rm-n { font-size: .6rem; } .rm-set { margin-top: 1.2rem; display: grid; gap: .8rem; max-width: 560px; }

.rm-rule-card .form-select.w-auto { width: auto; min-width: 11rem; } .rm-rule-card input.w-auto { min-width: 5.5rem; }

/* ===== Reminders: tabs, stepper, live preview, timeline, smart checks, guide ===== */
.rm-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; } .rm-tabs a { padding: .55rem .9rem; border-bottom: 3px solid transparent; font-weight: 650; color: var(--muted); text-decoration: none; } .rm-tabs a.on { color: var(--brand-700); border-bottom-color: var(--brand-600); } .rm-tabs a:hover { color: var(--brand-800); } .rm-count { background: var(--line-2); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; margin-left: .2rem; }
.rm-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; } .rm-step { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .75rem; text-align: left; font-weight: 650; color: var(--muted); cursor: pointer; } .rm-step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-size: .82rem; flex: none; } .rm-step.on { border-color: var(--brand-600); color: var(--brand-800); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); } .rm-step.on i { background: var(--brand-600); color: #fff; } .rm-step.done i { background: #d1fadf; color: #067647; } .rm-step.done { color: #344054; } .rm-step.lock { opacity: .55; cursor: default; } .rm-step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-practice { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; margin-bottom: 1rem; }
.rm-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; } .rm-side-h { display: flex; flex-direction: column; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--line-2); border-radius: 14px 14px 0 0; } .rm-side-h span { font-size: .8rem; color: var(--muted); } .rm-side-b { padding: 1rem; } .rm-side-f { margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .88rem; color: #475467; }
.rm-side-empty { text-align: center; padding: 1.5rem .5rem; color: var(--muted); } .rm-side-empty b { display: block; color: #101828; margin-bottom: .2rem; } .rm-side-ic { font-size: 2rem; } .rm-side-pick { margin-bottom: .8rem; }
.rm-tl2 { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; background: #fff; } .rm-tl2-h { font-weight: 700; margin-bottom: .35rem; } .rm-tl2-r { display: flex; gap: .65rem; position: relative; padding-bottom: .55rem; } .rm-tl2-r:last-child { padding-bottom: 0; } .rm-tl2-r i { width: 12px; height: 12px; border-radius: 50%; background: #98a2b3; margin-top: .3rem; flex: none; position: relative; z-index: 1; } .rm-tl2-r:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 1.1rem; bottom: -.1rem; width: 2px; background: var(--line); } .rm-tl2-r.a i { background: #3b82f6; } .rm-tl2-r.b i { background: var(--brand-600); } .rm-tl2-r.c i { background: #f59e0b; } .rm-tl2-r.is-skipped i { background: #d0d5dd; } .rm-tl2-r.is-skipped { opacity: .6; } .rm-tl2-r span { display: flex; flex-direction: column; } .rm-tl2-r small { color: var(--muted); font-size: .78rem; }
.rm-ins { display: grid; gap: .4rem; } .rm-in { display: flex; gap: .55rem; padding: .5rem .7rem; border-radius: 10px; font-size: .86rem; line-height: 1.35; } .rm-in-i { flex: none; width: 1.2rem; text-align: center; font-weight: 700; } .rm-in.warn { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; } .rm-in.info { background: #eff6ff; color: #1e40af; border: 1px solid #d1e0ff; } .rm-in.good { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.rm-ex-card { cursor: default; align-items: flex-start; height: 100%; } .rm-ex-btns { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; } .rm-ex-btns form { margin: 0; } .au-side { display: flex; align-items: center; gap: .4rem; } .au-dots { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; padding: .1rem .5rem; border-radius: 8px; color: var(--muted); } .au-dots:hover { background: var(--line-2); }
.rm-flow { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; } .rm-flow .gd-box { flex: 1 1 170px; } .rm-arrow { align-self: center; font-size: 1.4rem; color: var(--brand-600); }
.rm-tl { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: .5rem 0; } .rm-tl-i { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 130px; } .rm-tl-i i { width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; margin-bottom: .4rem; } .rm-tl-i i.b { background: var(--brand-600); } .rm-tl-i i.c { background: #f59e0b; } .rm-tl-i small { color: var(--muted); } .rm-tl-l { flex: 1 1 60px; min-width: 60px; border-top: 3px dashed #cbd5e1; margin-top: 7px; text-align: center; } .rm-tl-l span { position: relative; top: -1.45rem; font-size: .78rem; color: var(--muted); background: #fff; padding: 0 .3rem; }
@media (max-width: 991px) { .rm-side { position: static; max-height: none; } .rm-stepper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .rm-arrow { transform: rotate(90deg); width: 100%; text-align: center; } .rm-tabs a { padding: .5rem .6rem; } }

.rm-ctable td, .rm-ctable th { white-space: nowrap; word-break: normal; overflow-wrap: normal; } .rm-ctable td.rm-name { white-space: normal; min-width: 130px; } .rm-ctable td.text-end { min-width: 150px; } .rm-ctable td.text-end .btn { margin-left: .15rem; }
.rm-chip-row { display: none; } .ab-field:focus-within .rm-chip-row, .ab-field.rm-empty .rm-chip-row { display: flex; } .rm-chip-hint { font-size: .78rem; color: var(--faint); }
.ab-field:focus-within .rm-chip-hint, .ab-field.rm-empty .rm-chip-hint { display: none; }

/* ===== Tamil: font, language button ===== */
@font-face { font-family: "Noto Sans Tamil"; src: url("../vendor/noto-tamil/noto-sans-tamil-tamil-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0964-0965, U+0B80-0BFF, U+200C-200D, U+25CC; }
html[lang="ta"] body, html[lang="ta"] button, html[lang="ta"] input, html[lang="ta"] select, html[lang="ta"] textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Tamil", "Nirmala UI", Latha, sans-serif; }
html[lang="ta"] body { line-height: 1.6; } html[lang="ta"] .btn, html[lang="ta"] .nav-l { line-height: 1.45; } html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3, html[lang="ta"] h4, html[lang="ta"] h5 { line-height: 1.35; }
html.i18n-wait body { visibility: hidden; }
.lang-sw { margin: 0; } .lang-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .8rem; font-size: .82rem; font-weight: 650; color: var(--brand-800); cursor: pointer; font-family: inherit; } .lang-btn:hover { background: var(--brand-50); border-color: var(--brand-600); }
.lang-nav { display: inline-flex; margin-right: .3rem; } .lang-top { margin-left: auto; margin-right: .5rem; display: inline-flex; } .lang-auth { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
@media (min-width: 992px) { .lang-top { display: none; } }

.lang-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .8rem; color: var(--muted); font-size: .8rem; font-weight: 600; } .side .lang-row .tx { display: inline; } @media (max-width: 1199px) and (min-width: 992px) { .side:not(.offcanvas .side) .lang-row { justify-content: center; padding: .35rem 0; } .side:not(.offcanvas .side) .lang-row .tx { display: none; } }

/* ===== Chat translation ===== */
.wa-msgs .bub .tr-link { display: block; background: none; border: 0; padding: 0 .35rem 0 0; margin-top: .25rem; font-size: .72rem; font-weight: 650; color: var(--brand-700); cursor: pointer; } .wa-msgs .bub .tr-link:hover { text-decoration: underline; } .wa-msgs .bub .tr-link:disabled { opacity: .6; cursor: default; }
.wa-msgs .bub .tr-box { margin-top: .35rem; padding: .35rem .5rem; border-left: 3px solid var(--brand-600); background: rgba(255, 255, 255, .55); border-radius: 6px; font-size: .92em; } .wa-msgs .bub .tr-tag { display: inline-block; margin-right: .4rem; padding: 0 .4rem; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: .66rem; font-weight: 700; }
#trpop button { display: block; width: 100%; text-align: left; } #trpop #trundo { color: #b42318; }

.ab-top { flex-wrap: wrap; row-gap: .4rem; } .ab-top .ab-name { flex: 1 1 240px; min-width: 200px; }

/* ===== Reminder setup: clearer steps ===== */
.rm-intro { display: flex; gap: .6rem; align-items: flex-start; background: #f0f9ff; border: 1px solid #d1e9ff; color: #175cd3; border-radius: 12px; padding: .6rem .8rem; margin-bottom: .9rem; font-size: .9rem; line-height: 1.45; } .rm-intro-i { font-size: 1.1rem; line-height: 1.3; } .rm-intro b { color: #1849a9; }
.rm-found { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; margin-top: .9rem; } .rm-fc { display: flex; gap: .55rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .7rem; background: #fff; min-width: 0; } .rm-fc i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .8rem; } .rm-fc.ok i { background: #d1fadf; color: #067647; } .rm-fc.bad { border-color: #fecdca; background: #fffbfa; } .rm-fc.bad i { background: #fee4e2; color: #b42318; } .rm-fc span { display: flex; flex-direction: column; min-width: 0; } .rm-fc small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; } .rm-fc b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-fixmap { margin-top: .8rem; } .rm-fixmap > summary { cursor: pointer; font-size: .86rem; font-weight: 650; color: var(--brand-700); } .rm-exd { margin-top: .7rem; } .rm-exd > summary { cursor: pointer; font-size: .86rem; font-weight: 650; color: var(--brand-700); } .rm-exd .rm-ex { margin-top: .5rem; }
.rm-text { width: 100%; max-width: 100%; box-sizing: border-box; } #rmRules, #rmUpload, #rmMsg, .rm-cards { min-width: 0; } .wstep .wb { min-width: 0; }
.rm-fix { margin-top: .8rem; border: 1px solid #abefc6; background: #f6fef9; border-radius: 12px; padding: .8rem .9rem; } .rm-fix.ok { display: flex; align-items: center; justify-content: space-between; gap: .5rem; } .rm-fix-h { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; } .rm-tag { font-size: .74rem; color: #067647; font-weight: 650; }
.rm-fixbox { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; margin: 0; white-space: pre-wrap; font-family: inherit; font-size: .93rem; } .rm-fix-c { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; } .rm-fix-c small { color: var(--muted); margin-right: .2rem; } .rm-chg { background: #fff; border: 1px solid #d0d5dd; border-radius: 999px; padding: 0 .55rem; font-size: .76rem; color: #344054; } .rm-fix-b { display: flex; gap: .5rem; margin-top: .7rem; }
.rm-sent { align-items: center; } .rm-sent .rm-lead { min-width: 0; font-weight: 700; color: var(--brand-800); }
.rm-check { display: grid; gap: .4rem; margin-bottom: .9rem; } .rm-ck { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; background: #fff; } .rm-ck i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; } .rm-ck.ok i { background: #d1fadf; color: #067647; } .rm-ck.bad { border-color: #fecdca; } .rm-ck.bad i { background: #fee4e2; color: #b42318; } .rm-ck > span { flex: 1; min-width: 0; } .rm-ck > span > span { color: var(--muted); } .rm-ck .btn-link { padding: 0; font-size: .82rem; }
.rm-rulesum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; } .rm-listtable td { vertical-align: middle; } .rm-empty { margin: 1rem 0 2rem; }

.rm-listtable td:first-child { min-width: 260px; } .rm-listtable .rm-msgcell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-listtable th.cell-actions, .rm-listtable td.cell-actions { position: sticky; right: 0; background: #fff; box-shadow: -10px 0 10px -10px rgba(16, 24, 40, .18); } .rm-listtable tbody tr:hover td.cell-actions { background: #f9fafb; }
.rm-fixbox { color: #101828; opacity: 1; }
.rm-rule-card .rm-sent .form-select.w-auto { min-width: 7.2rem; } .rm-rule-card .rm-sent input.w-auto { width: 4.6rem !important; min-width: 4rem; } .rm-rule-card .rm-sent { row-gap: .35rem; }

.rm-listtable td:first-child { min-width: 0; } .rm-listtable td.rm-namecell { min-width: 280px; }

/* ===== Reminders: every line of the sheet, with remove / delete ===== */
.rm-lines { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; background: #fff; min-width: 0; } .rm-lines-h { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; } .rm-lines-n { color: var(--muted); font-size: .85rem; } .rm-lines-q { margin-left: auto; max-width: 260px; }
.rm-lines-t { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; } .rm-lines-tw { max-height: 420px; overflow: auto; } .rm-lines-tw thead th { position: sticky; top: 0; z-index: 1; } .rm-lines-p { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .6rem; font-size: .86rem; color: var(--muted); }
.rm-table tr.rm-bad td { background: #fff7ed; } .rm-x { border: 0; background: transparent; color: #98a2b3; font-size: 1.25rem; line-height: 1; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; } .rm-x:hover { background: #fee4e2; color: #b42318; }

/* ===== The reminders of a rule as chips, with quick add ===== */
.rm-rem-h { display: flex; align-items: baseline; gap: .6rem; } .rm-rem-n { font-size: .8rem; color: var(--muted); font-weight: 600; }
.rm-rchips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .5rem; } .rm-rchip { display: inline-flex; align-items: center; gap: .3rem; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 999px; padding: .15rem .35rem .15rem .7rem; font-size: .84rem; font-weight: 600; }
.rm-rchip .rm-rx { border: 0; background: transparent; color: #067647; width: 20px; height: 20px; border-radius: 50%; line-height: 1; font-size: 1rem; cursor: pointer; padding: 0; } .rm-rchip .rm-rx:hover { background: #fee4e2; color: #b42318; }
.rm-radd { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; } .rm-radd-l { font-size: .84rem; font-weight: 650; color: #475467; } .rm-radd input.w-auto { width: 4.4rem !important; min-width: 3.6rem; }
.rm-quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; } .rm-series { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; padding: .55rem .7rem; background: #f9fafb; border: 1px dashed #d0d5dd; border-radius: 10px; font-size: .88rem; } .rm-series[hidden] { display: none; } .rm-series input.w-auto { width: 4.2rem !important; min-width: 3.4rem; }

/* ===== People: the person's page, families ===== */
.pf-avatar { width: 52px; height: 52px; font-size: 1.3rem; } .pf-note { background: #f0f9ff; border: 1px solid #d1e9ff; color: #175cd3; border-radius: 12px; padding: .55rem .8rem; margin-bottom: 1rem; font-size: .9rem; }
.pf-privacy { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; border-radius: 10px; padding: .55rem .75rem; font-size: .86rem; margin-bottom: .9rem; } .pf-id { padding: .6rem 0; border-top: 1px solid var(--line-2); } .pf-id:first-of-type { border-top: 0; } .pf-id-view { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; } .pf-id-view[hidden], .pf-id-edit[hidden], .pf-none[hidden] { display: none; }
.pf-hint { font-size: .98rem; background: var(--line-2); padding: .2rem .55rem; border-radius: 8px; letter-spacing: .03em; color: #101828; } .pf-rm { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 0 .4rem; font-size: .84rem; color: #b42318; cursor: pointer; } .pf-gone .pf-hint { text-decoration: line-through; opacity: .5; } .pf-id-edit { max-width: 360px; } .pf-id-in { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.pf-row { display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: .5rem; margin-bottom: .45rem; align-items: center; } .pf-sug { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pf-save { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; margin: 0 0 1rem; box-shadow: 0 -6px 18px rgba(16, 24, 40, .08); } .pf-dirty { color: #b54708; font-weight: 600; } .pf-ok { color: #067647; font-weight: 600; } .pf-bad { color: #b42318; font-weight: 600; } .pf-err { color: #b42318; font-size: .82rem; margin-top: .25rem; }
.pf-fam { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; margin-bottom: .6rem; } .pf-others { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; } .pf-chip { display: inline-flex; align-items: baseline; gap: .3rem; background: var(--line-2); border-radius: 999px; padding: .1rem .65rem; font-size: .84rem; text-decoration: none; color: #344054; } .pf-chip small { color: var(--muted); } .pf-chip:hover { background: #d1fadf; }
.pf-side { position: sticky; top: 12px; } .pf-sum { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; } .pf-sum span { color: var(--muted); } .pf-sum b { text-align: right; font-weight: 650; }
.pf-meter-h { display: flex; justify-content: space-between; font-size: .86rem; } .pf-bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-top: .3rem; } .pf-bar i { display: block; height: 100%; background: var(--brand-600); border-radius: 999px; }
.fm-find-list { border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; margin-top: .4rem; } .fm-find-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; border: 0; background: #fff; padding: .45rem .7rem; border-bottom: 1px solid var(--line-2); } .fm-find-list button:hover { background: var(--brand-50); } .fm-find-list small { color: var(--muted); }
.fm-picked { display: inline-flex; align-items: center; gap: .5rem; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 999px; padding: .15rem .3rem .15rem .75rem; font-weight: 600; font-size: .9rem; }
@media (max-width: 575px) { .pf-row { grid-template-columns: 1fr 32px; } .pf-row input:nth-child(2) { grid-column: 1; } }

.pf-coming-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; } .pf-evt { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: .35rem .8rem; background: #fff; text-decoration: none; color: #101828; min-width: 170px; } .pf-evt span { font-size: .78rem; color: var(--muted); } .pf-evt:hover { border-color: var(--brand-600); background: var(--brand-50); } .pf-evt.today { border-color: #fec84b; background: #fffaeb; }
.people-table.hide-family [data-col="family"], .people-table.hide-age [data-col="age"], .people-table.hide-birthday [data-col="birthday"], .people-table.hide-gender [data-col="gender"] { display: none !important; }
.pf-id-edit [data-cancel][hidden] { display: none; }

/* A few more columns must never squeeze the person's name: the name keeps its room and the card scrolls sideways only if somebody switches on many columns */
.people-card { overflow-x: auto; } .people-table td.cell-main, .people-table th:nth-child(2) { min-width: 210px; } .people-table td[data-col="groups"] { min-width: 120px; } .people-table td[data-col="family"] { min-width: 110px; }
@media (max-width: 767px) { .people-table td.cell-main, .people-table th:nth-child(2) { min-width: 0; } }
.people-table td.cell-actions .btn { padding-left: .5rem; padding-right: .5rem; } .people-table th[data-col="status"], .people-table th[data-col="last"] { white-space: normal; max-width: 130px; line-height: 1.2; } .people-table td.cell-main, .people-table th:nth-child(2) { min-width: 190px; }
@media (max-width: 767px) { .people-table td.cell-main, .people-table th:nth-child(2) { min-width: 0; } }
.people-table th[data-col="status"], .people-table th[data-col="last"] { min-width: 108px; overflow-wrap: normal; word-break: normal; }

/* People: nothing may push the table wider than the page. Long group names are cut with an ellipsis (the full name is in the tooltip); the row has ONE compact Actions menu. */
.people-table td.cell-groups { max-width: 230px; } .people-table .gpill { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.people-table td.cell-actions { width: 1%; white-space: nowrap; } .row-actions .dropdown-toggle { min-width: 92px; } .row-actions .dropdown-menu, .group-card .dropdown-menu { font-size: .9rem; min-width: 14rem; } .row-actions .dropdown-item, .group-card .dropdown-item { padding: .4rem 1rem; }
@media (min-width: 768px) and (max-width: 1279px) { .people-table th[data-col="last"], .people-table td[data-col="last"] { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) { .people-table th[data-col="family"], .people-table td[data-col="family"] { display: none; } }

/* ===== People · Families · Groups: one bar to move between them, breadcrumbs, the guided family forms, the family tree ===== */
.pt-tabs { display: inline-flex; gap: .25rem; background: #eef2f6; border-radius: 12px; padding: .25rem; margin: 0 0 1rem; } .pt-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 9px; font-weight: 650; color: #475467; text-decoration: none; } .pt-tab:hover { color: #101828; background: #e4e9ef; } .pt-tab.on { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); } .pt-n { font-size: .75rem; font-weight: 700; background: #d8dee6; color: #475467; border-radius: 999px; padding: 0 .5rem; } .pt-tab.on .pt-n { background: #d1fadf; color: #067647; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: .5rem; } .crumbs a { color: var(--brand-700); text-decoration: none; font-weight: 600; } .crumbs a:hover { text-decoration: underline; } .crumbs span { margin: 0 .3rem; }
.fm-tabs2 { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin: .4rem 0 1rem; } .fm-tabs2 a { padding: .5rem .1rem; font-weight: 650; color: #667085; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; } .fm-tabs2 a.on { color: var(--brand-800); border-color: var(--brand-600); }
.fm-form .fm-step { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; } .fm-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: .8rem; font-weight: 700; }
.fm-tabs { display: inline-flex; gap: .2rem; background: #eef2f6; border-radius: 10px; padding: .2rem; margin-bottom: .7rem; } .fm-tabs button { border: 0; background: transparent; padding: .35rem .85rem; border-radius: 8px; font-weight: 650; font-size: .88rem; color: #475467; } .fm-tabs button.on { background: #fff; color: var(--brand-800); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.fm-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .8rem; background: #f6fef9; border: 1px solid #abefc6; border-radius: 12px; } .fm-sentence .form-select { width: auto; min-width: 150px; max-width: 100%; } .fm-sentence .fm-of { color: var(--brand-800); }
/* the tree: couples side by side, children below, joined by lines */
.ft-wrap { overflow-x: auto; padding: 1.2rem .8rem 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; } .ft { display: inline-block; min-width: 100%; text-align: center; }
.ft-list { padding: 22px 0 0; position: relative; display: flex; justify-content: center; margin: 0; } .ft-node { list-style: none; position: relative; padding: 22px 8px 0; display: flex; flex-direction: column; align-items: center; }
.ft-node::before, .ft-node::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid #cbd5e1; width: 50%; height: 22px; } .ft-node::after { right: auto; left: 50%; border-left: 2px solid #cbd5e1; }
.ft-node:only-child::before, .ft-node:only-child::after { display: none; } .ft-node:only-child { padding-top: 0; } .ft-node:first-child::before, .ft-node:last-child::after { border: 0; } .ft-node:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 8px 0 0; } .ft-node:first-child::after { border-radius: 8px 0 0 0; }
.ft-list .ft-list::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #cbd5e1; height: 22px; }
.ft > .ft-list { padding-top: 0; gap: 2.6rem; align-items: flex-start; } .ft > .ft-list > .ft-node { padding-top: 0; } .ft > .ft-list > .ft-node::before, .ft > .ft-list > .ft-node::after { display: none; }
.ft-gen { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .4rem; }
.ft-unit { display: inline-flex; align-items: center; gap: .4rem; } .ft-couple { color: #e11d48; font-size: 1.1rem; }
.ft-card { position: relative; border: 2px solid #cbd5e1; border-radius: 14px; padding: .5rem .95rem; background: #fff; min-width: 130px; max-width: 190px; text-align: center; } .ft-card.g-male { border-color: #93c5fd; background: #f5faff; } .ft-card.g-female { border-color: #f9a8d4; background: #fff7fb; } .ft-card.nowa { border-style: dashed; }
.ft-card.head::after { content: "\2605"; position: absolute; top: -10px; left: -8px; background: #fff; color: #f59e0b; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #fde68a; font-size: .8rem; }
.ft-name { display: block; font-weight: 700; color: #101828; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ft-name:hover { color: var(--brand-700); text-decoration: underline; } .ft-meta { font-size: .74rem; color: var(--muted); min-height: 1em; }
.ft-plus { position: absolute; right: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-700); font-weight: 700; line-height: 1; padding: 0; opacity: .85; } .ft-plus:hover, .ft-plus[aria-expanded="true"] { opacity: 1; background: var(--brand-50); }
.ft-legend { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; } .ft-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 2px solid #cbd5e1; vertical-align: -1px; } .ft-dot.g-male { border-color: #93c5fd; background: #f5faff; } .ft-dot.g-female { border-color: #f9a8d4; background: #fff7fb; }
@media print { .pt-tabs, .crumbs, .fm-tabs2, .ft-plus, .btn, #sidebar, aside.side, .tabbar, nav.topbar { display: none !important; } .ft-wrap { border: 0; overflow: visible; } }

.fm-pair { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: nowrap; max-width: 100%; }
.ft-card .ft-add { position: static; }

/* ===== Roles and powers ===== */
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; } .rl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; } .rl-card.fixed { background: #f9fafb; } a.rl-card:hover { border-color: var(--brand-600); background: var(--brand-50); }
.rl-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; } .pill-violet { background: #f4ebff; color: #6941c6; } .rl-chips { display: flex; flex-wrap: wrap; gap: .3rem; } .rl-chip { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 999px; padding: 0 .6rem; font-size: .76rem; font-weight: 600; } .rl-chip.more { background: #f2f4f7; color: #475467; border-color: #d0d5dd; }
.rl-act { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; } .rl-act form { margin: 0; }
.rl-item { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line-2); cursor: pointer; margin: 0; } .rl-item:last-child { border-bottom: 0; } .rl-item .form-switch { padding-left: 2.6rem; margin-top: .15rem; min-height: 1.5rem; } .rl-item .form-check-input { width: 2.4rem; height: 1.3rem; cursor: pointer; }
.rl-t { display: flex; flex-direction: column; gap: .1rem; } .rl-t b { font-weight: 650; } .rl-t small { color: var(--muted); } .rl-always, .rl-sens { font-style: normal; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 .5rem; margin-left: .5rem; vertical-align: 2px; } .rl-always { background: #e0f2fe; color: #026aa2; } .rl-sens { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.rl-item.sens { background: linear-gradient(90deg, #fffcf5, transparent 60%); }
.rl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; } .rl-person { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .7rem; cursor: pointer; margin: 0; } .rl-person:hover { background: var(--brand-50); } .rl-person span:last-child { display: flex; flex-direction: column; line-height: 1.2; } .rl-person small { color: var(--muted); }
.rl-side { position: sticky; top: 12px; } .rl-count { font-size: 1.1rem; margin-bottom: .6rem; } .rl-count b { font-size: 1.6rem; color: var(--brand-700); } .rl-can { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; } .rl-can li { padding-left: 1.4rem; position: relative; font-size: .9rem; } .rl-can li::before { content: "\2713"; position: absolute; left: 0; color: #067647; font-weight: 700; } .rl-can li.none { color: var(--muted); } .rl-can li.none::before { content: ""; }
.rl-warn { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; border-radius: 10px; padding: .55rem .75rem; font-size: .85rem; margin-top: .8rem; } .rl-warn[hidden] { display: none; } .rl-preset.on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.rl-t em { align-self: flex-start; width: fit-content; margin: 0 0 .15rem 0; }

.rl-inline { display: flex; align-items: center; gap: .5rem; margin: 0; } .rl-select { min-width: 190px; max-width: 240px; } .rl-saved { color: #067647; font-weight: 650; font-size: .82rem; } .rl-saved[hidden] { display: none; }
