/* CRM · Avanço Commerce */
:root {
  --brand: #6d28d9; --brand-2: #5b21b6; --brand-soft: #ede9fe; --brand-text: #5b21b6;
  --bg: #f4f1fb; --panel: #ffffff; --panel-2: #f7f5fc; --list: #efecf6; --border: #e4dff0; --border-strong: #d6cdef;
  --text: #1c1530; --muted: #6b6485; --danger: #dc2626; --ok: #16a34a; --warn: #ca8a04;
  --shadow: 0 1px 2px rgba(30,10,60,.08), 0 1px 1px rgba(30,10,60,.04);
  --radius: 12px; --top-h: 56px; --field: #ffffff;
  --c-verde: #22c55e; --c-amarelo: #eab308; --c-laranja: #f97316; --c-vermelho: #ef4444; --c-roxo: #8b5cf6;
  --c-azul: #3b82f6; --c-ciano: #06b6d4; --c-rosa: #ec4899; --c-cinza: #94a3b8;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
html.dark {
  --brand-soft: #2c2052; --brand-text: #c4b5fd;
  --bg: #0e0a1a; --panel: #1a1430; --panel-2: #231b3e; --list: #151027; --border: #2d2550; --border-strong: #3d3270;
  --text: #ece8f8; --muted: #9b93b9; --danger: #f05252;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.25);
  --field: #120d22;
  color-scheme: dark;
}
html.dark .top { background: linear-gradient(90deg, #1c0b3a, #120726); border-bottom: 1px solid #2a1f4d; }
html.dark .btn.danger { background: #3a1418; border-color: #5c1d24; }
html.dark .alert, html.dark .sync-warn { background: #3a1418; color: #fecaca; }
html.dark .modal, html.dark .drawer { background: rgba(4,2,10,.7); }
html.dark .login-box { border: 1px solid var(--border); }
html.dark .pill.ok { background: #0f2e1c; color: #86efac; }
html.dark .pill.bad { background: #3a1418; color: #fca5a5; }
html.dark .pill.warn { background: #3d3410; color: #fde68a; }
html.dark ::-webkit-scrollbar-thumb { background: rgba(196,181,253,.18); background-clip: padding-box; border: 2px solid transparent; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45;
  color: var(--text); background: var(--bg); display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased;
}
body.booting > *:not(.login) { visibility: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
a { color: var(--brand-text); }
button { font: inherit; cursor: pointer; border: 0; }
input, textarea, select { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
textarea { resize: vertical; min-height: 70px; }
label { display: block; font-weight: 700; font-size: 12.5px; margin: 12px 0 5px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(60,30,120,.18); border-radius: 10px; background-clip: padding-box; border: 2px solid transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 600; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand-soft); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #7c3aed, #5b21b6); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(91,33,182,.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: #fee2e2; color: var(--danger); border-color: #fecaca; }
.btn.ghost { background: none; border-color: transparent; }
.btn.wide { width: 100%; margin-top: 16px; padding: 11px; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.icon-btn { background: none; color: var(--muted); padding: 6px 9px; border-radius: 8px; font-size: 15px; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.alert { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 9px 12px; margin-top: 12px; font-size: 13px; }
.danger-txt { color: var(--danger) !important; }

/* Login */
.login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 20% 10%, #3b1d7a 0, transparent 50%), radial-gradient(circle at 80% 90%, #241050 0, transparent 50%), #140a2b; }
.login-box { width: min(380px, 100%); background: var(--panel); border-radius: 20px; padding: 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.login-logo { font-size: 28px; font-weight: 800; text-align: center; letter-spacing: -.03em; color: var(--brand-2); }
html.dark .login-logo { color: #c4b5fd; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #8b5cf6, #4c1d95); color: #fff; font-size: 16px; vertical-align: middle; margin-right: 4px; }

/* Topo */
.top { height: var(--top-h); flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: linear-gradient(90deg, #2c0f57, #1d0a3b); color: #fff; z-index: 20; }
.brand { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.tabs { display: flex; gap: 2px; margin-left: 8px; }
.tabs a { color: rgba(255,255,255,.75); text-decoration: none; padding: 7px 11px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.tabs a:hover { background: rgba(255,255,255,.1); color: #fff; }
.tabs a.active { background: rgba(255,255,255,.16); color: #fff; }
body:not(.is-admin) .admin-only { display: none !important; }
.search-wrap { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.search-wrap input { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; padding: 8px 12px; }
.search-wrap input::placeholder { color: rgba(255,255,255,.6); }
.search-wrap input:focus { background: var(--field); color: var(--text); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--panel); color: var(--text); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.25); max-height: 60vh; overflow: auto; padding: 6px; z-index: 30; }
.sr-item { display: block; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.sr-item:hover { background: var(--panel-2); }
.sr-item small { display: block; color: var(--muted); }
.top-new { box-shadow: none; }
.me-wrap { position: relative; }
.me-btn { background: none; padding: 0; border-radius: 50%; }
.me-menu { position: absolute; right: 0; top: 46px; background: var(--panel); color: var(--text); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 6px; min-width: 220px; z-index: 40; border: 1px solid var(--border); }
.me-menu button, .me-menu a { display: block; width: 100%; text-align: left; background: none; padding: 9px 11px; border-radius: 8px; color: var(--text); text-decoration: none; }
.me-menu button:hover, .me-menu a:hover { background: var(--panel-2); }
.me-name { padding: 8px 11px 10px; font-weight: 700; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.me-name small { display: block; font-weight: 500; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.md { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.sync-warn { background: #fee2e2; color: #991b1b; padding: 7px 14px; font-size: 13px; text-align: center; }

.main { flex: 1; min-height: 0; overflow: auto; }
.page { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.brand { background: var(--brand-soft); color: var(--brand-text); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
select.inline { width: auto; padding: 6px 9px; }

/* Início */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-weight: 600; display: block; }
.stat b { font-size: 24px; letter-spacing: -.02em; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.home-grid .panel { min-width: 0; }
.funnel-row { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; }
.funnel-row:hover .bar { filter: brightness(1.08); }
.funnel-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }
.funnel-row .bar-bg { background: var(--panel-2); border-radius: 6px; height: 14px; overflow: hidden; }
.funnel-row .bar { height: 100%; border-radius: 6px; min-width: 3px; }
.funnel-row .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.meet-item { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.meet-item:last-child { border-bottom: 0; }
.meet-item:hover { background: var(--panel-2); }
.meet-when { min-width: 64px; text-align: center; font-weight: 700; font-size: 12.5px; background: var(--brand-soft); color: var(--brand-text); border-radius: 9px; padding: 5px 6px; line-height: 1.2; }
.meet-when small { display: block; font-weight: 600; opacity: .8; }
.rank { width: 100%; border-collapse: collapse; }
.rank td, .rank th { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.rank th { font-size: 12px; color: var(--muted); }
.rank td.num, .rank th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Funil (kanban) */
.board-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px 0; }
.board-bar .grow { flex: 1; }
.board { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 20px; overflow-x: auto; height: calc(100% - 52px); }
.col { width: 284px; flex-shrink: 0; background: var(--list); border-radius: 14px; display: flex; flex-direction: column; max-height: 100%; border: 1px solid var(--border); }
.col-head { padding: 10px 12px 8px; display: flex; align-items: center; gap: 7px; }
.col-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-head .cnt { font-size: 12px; color: var(--muted); font-weight: 700; }
.col-sum { padding: 0 12px 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.col-body { padding: 2px 8px 10px; overflow-y: auto; min-height: 40px; display: flex; flex-direction: column; gap: 7px; }
.col-body.over { background: rgba(139,92,246,.08); border-radius: 10px; }
.col-top { height: 4px; border-radius: 14px 14px 0 0; }
.card { background: var(--panel); border-radius: 11px; padding: 9px 10px; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer; user-select: none; }
.card:hover { border-color: #b8a6ec; }
html.dark .card:hover { border-color: #5b47a8; }
.card.dragging { opacity: .4; }
.card-ph { height: 54px; border: 2px dashed var(--border-strong); border-radius: 11px; }
.card-title { font-weight: 700; line-height: 1.3; word-break: break-word; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; align-items: center; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.card-foot .grow { font-size: 11.5px; color: var(--muted); }
.card-money { font-size: 12px; font-weight: 700; color: var(--ok); }
.kinds { font-size: 12px; letter-spacing: 1px; }
.mob-move { display: none; }

/* Lista de clientes / reuniões / serviços */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.table th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px 12px; background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel-2); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nm b { display: block; }
.table .nm small { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters input { max-width: 280px; }
.filters select { width: auto; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; padding: 5px 11px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.day-h { margin: 18px 0 8px; font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.svc + .svc { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.svc h4 { margin: 0; font-size: 15px; }
.svc p { margin: 4px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 13px; }
.svc .price { font-size: 18px; font-weight: 800; text-align: right; white-space: nowrap; }
.svc .price small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.svc.off { opacity: .55; }

/* Ficha do cliente */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,10,40,.45); display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px; overflow-y: auto; }
.client-box { width: min(1120px, 100%); background: var(--bg); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.cl-head { background: var(--panel); padding: 16px 20px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.cl-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.cl-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cl-head .sub a { text-decoration: none; }
.cl-big { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); flex-shrink: 0; }
.cl-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.cl-controls select { width: auto; padding: 6px 9px; }
.cl-grid { display: grid; grid-template-columns: 380px 1fr; gap: 14px; padding: 14px; align-items: start; }
.cl-side, .cl-mainc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-h h3 { margin: 0; font-size: 14px; flex: 1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fields .full { grid-column: 1 / -1; }
.fields label { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.fields input, .fields textarea { padding: 7px 9px; font-size: 13.5px; }
.fields textarea { min-height: 54px; }
.links { display: flex; flex-direction: column; gap: 6px; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.link-row a { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-row a:hover { text-decoration: underline; }
.link-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; color: #fff; }
.link-row small { color: var(--muted); font-size: 11px; }
.link-add { display: flex; gap: 6px; margin-top: 8px; }
.link-add select { width: 120px; flex-shrink: 0; padding: 7px; }
.ai-box { background: linear-gradient(180deg, var(--brand-soft), transparent 140%); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; }
.ai-line { margin: 0 0 6px; font-size: 13.5px; }
.ai-line b { display: block; font-size: 11.5px; color: var(--brand-text); text-transform: uppercase; letter-spacing: .03em; }
.ctabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -4px -4px 12px; padding: 0 4px; overflow-x: auto; }
.ctabs button { background: none; padding: 9px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.ctabs button.active { color: var(--brand-text); border-bottom-color: var(--brand); }
.ctabs .n { font-size: 11px; background: var(--panel-2); border-radius: 999px; padding: 1px 6px; margin-left: 3px; }
.mt { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.mt + .mt { margin-top: 8px; }
.mt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt-top b { font-size: 14.5px; }
.mt textarea { margin-top: 8px; min-height: 80px; font-size: 13.5px; }
.sale { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.sale + .sale { margin-top: 8px; }
.sale.fechado { border-color: #86efac; background: linear-gradient(90deg, rgba(34,197,94,.07), transparent); }
.sale.cancelado { opacity: .6; }
.sale h4 { margin: 0; font-size: 14.5px; }
.sale .val { font-weight: 800; text-align: right; font-size: 16px; white-space: nowrap; }
.sale .val small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); }
.sale p { margin: 2px 0 0; grid-column: 1 / -1; white-space: pre-wrap; color: var(--muted); font-size: 13px; }
.sale .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.totals { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.totals b { font-size: 15px; }
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl-item { display: flex; gap: 9px; }
.tl-item .tx { flex: 1; min-width: 0; font-size: 13.5px; }
.tl-item .tx small { color: var(--muted); display: block; font-size: 11.5px; }
.tl-item.note .tx > div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }
.tl-item.sys { color: var(--muted); font-size: 12.5px; }
.tl-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--panel-2); flex-shrink: 0; }
.chat { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 4px; background: var(--panel-2); border-radius: 12px; }
.bub { max-width: 82%; padding: 7px 10px; border-radius: 12px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.bub small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.bub.in { background: var(--panel); align-self: flex-start; border: 1px solid var(--border); }
.bub.out { background: #dcf8c6; align-self: flex-end; color: #1a2e12; }
.bub.out small { color: #4b6b3d; }
html.dark .bub.out { background: #1e3a2a; color: #dcfce7; }
html.dark .bub.out small { color: #86efac; }
.chat-day { align-self: center; font-size: 11px; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 2px 10px; margin: 6px 0; }

/* Gaveta */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(20,10,40,.45); display: flex; justify-content: flex-end; }
.drawer-box { width: min(480px, 100%); background: var(--panel); height: 100%; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.25); }
.drawer-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; flex: 1; font-size: 17px; }
.drawer-body { padding: 4px 18px 28px; overflow-y: auto; flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
.calc { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 13.5px; }
.calc b { font-size: 18px; }
.acc-top { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.acc-photo { width: 74px; height: 74px; border-radius: 50%; font-size: 24px; display: grid; place-items: center; background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; font-weight: 800; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.acc-photo img { width: 100%; height: 100%; object-fit: cover; }
.acc-photo-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-row { display: flex; gap: 6px; }
.acc-meta { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.acc-h { margin: 22px 0 0; font-size: 14px; }
.acc-note { background: var(--brand-soft); color: var(--brand-text); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-top: 16px; }
.stage-row { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.stage-row input { padding: 6px 8px; }
.stage-row select { width: 96px; padding: 6px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1c1530; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 200; max-width: min(560px, 92vw); font-weight: 600; }
.toast.error { background: #b91c1c; }

@media (max-width: 1000px) {
  .cl-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .tabs a span { display: none; }
}
@media (max-width: 700px) {
  .top { gap: 6px; padding: 0 8px; }
  .brand b, .top-new span { display: none; }
  .tabs { margin-left: 0; }
  .tabs a { padding: 7px 8px; }
  .search-wrap { min-width: 0; }
  .modal { padding: 0; }
  .client-box { border-radius: 0; min-height: 100%; }
  .cl-grid { padding: 10px; }
  .fields, .two, .three { grid-template-columns: 1fr; }
  .col { width: 82vw; }
  .mob-move { display: block; width: 100%; margin-top: 7px; padding: 5px 7px; font-size: 12px; }
  .table .hide-m { display: none; }
  .funnel-row { grid-template-columns: 110px 1fr 34px; }
}
