:root{--bg:#f6f7fb;--panel:#fff;--ink:#1f2430;--muted:#747b8a;--line:#e6e8ef;--purple:#6d5dfc;--purple2:#8b7cff;--green:#2eae72;--red:#d95162;--amber:#d49127;--side:#fbfbfe}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--side);border-right:1px solid var(--line);padding:22px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}.brand-mark{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--purple),#9d8cff);display:grid;place-items:center;color:white;font-weight:800}.brand strong{display:block}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.nav-label{font-size:10px;font-weight:700;color:#a0a4b1;letter-spacing:.12em;padding:18px 10px 7px}.nav-item{display:block;padding:10px 12px;border-radius:9px;font-size:14px;margin:2px 0}.nav-item:hover{background:#f0efff;color:#5546df}.sidebar-foot{position:absolute;bottom:18px;left:20px;font-size:11px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}.main{padding:28px 34px 60px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar h1{font-size:26px;margin:3px 0}.eyebrow{font-size:10px;color:var(--purple);font-weight:800;letter-spacing:.13em}.pill,.badge,.tag{display:inline-block;border:1px solid #ddd9ff;background:#f5f3ff;color:#5d4bdc;border-radius:999px;padding:5px 9px;font-size:11px}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin-bottom:18px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px}.metric span,.metric small{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;font-size:27px;margin:5px 0}.metric.accent{background:linear-gradient(135deg,#7163fb,#988aff);color:white;border:none}.metric.accent span,.metric.accent small{color:#eeeaff}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px;box-shadow:0 1px 2px rgba(31,36,48,.02)}.card h2{font-size:16px;margin:0 0 14px}.card h3{font-size:13px;margin:17px 0 8px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.card-head h2,.card-head p{margin:0}.card-head a,.text-link{font-size:12px;color:var(--purple)}.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.grid-2.top-align{align-items:start}.muted,.empty{color:var(--muted)}.empty{text-align:center;padding:20px}.callout{border-left:4px solid var(--purple);font-size:13px}.stage-list>div{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#8e94a2;padding:9px;border-bottom:1px solid var(--line)}td{padding:11px 9px;border-bottom:1px solid #f0f1f5;vertical-align:top}td small,.contact small,.result small,.deal small{display:block;color:var(--muted);margin-top:3px}.score{display:inline-grid;place-items:center;min-width:34px;height:27px;padding:0 7px;border-radius:8px;font-weight:800}.score-hi{background:#e5f7ee;color:#1f8a58}.score-mid{background:#fff3d9;color:#9e6812}.score-lo{background:#f0f1f5;color:#747b8a}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{align-self:end}label{display:block;font-size:11px;font-weight:700;color:#6e7380}input,select,textarea{display:block;width:100%;margin-top:5px;border:1px solid #dfe2e9;background:white;border-radius:9px;padding:10px 11px;font:inherit;color:var(--ink)}textarea{resize:vertical;line-height:1.5}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9dce5;background:white;border-radius:9px;padding:9px 12px;font-weight:700;font-size:12px;cursor:pointer}.btn:hover{filter:brightness(.98)}.btn.primary{background:var(--purple);border-color:var(--purple);color:white}.btn.success{background:var(--green);border-color:var(--green);color:white}.btn.danger{color:var(--red)}.detail-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:14px}.fit-big{background:#f0efff;border-radius:12px;padding:12px 18px}.fit-big span{font-size:10px;color:#7668dd;display:block}.fit-big strong{font-size:24px;color:#5546df}.kv{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;font-size:12px}.kv b{color:#666d7b}.tags{display:flex;flex-wrap:wrap;gap:6px}.tags span,.tag{background:#f4f5f8;border-radius:999px;padding:5px 8px;font-size:11px}.sources{font-size:11px;color:var(--muted);word-break:break-all}.contact{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.contact form{display:flex;gap:6px}.contact select{margin:0;min-width:160px}.draft-card textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.actions,.toolbar,.search-row{display:flex;gap:8px;align-items:center}.actions{margin-top:12px}.alert{background:#fff3d9;color:#875d14;border:1px solid #f1d89f;padding:10px 12px;border-radius:9px;margin-bottom:12px;font-size:12px}.search-row input{flex:1;margin:0}.search-row select{width:90px;margin:0}.search-results{margin-top:16px}.result{display:grid;grid-template-columns:1fr auto;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.result p{font-size:12px;color:#616876}.kanban{display:grid;grid-template-columns:repeat(8,minmax(190px,1fr));gap:12px;overflow-x:auto;padding-bottom:10px}.kanban-col{background:#f1f2f7;border-radius:12px;padding:10px;min-height:400px}.kanban-col h3{font-size:11px;color:#777e8c;letter-spacing:.07em}.deal{background:white;border:1px solid var(--line);border-radius:10px;padding:11px;margin:8px 0;box-shadow:0 1px 2px rgba(0,0,0,.03)}.deal span{display:block;font-size:12px;margin-top:3px}.deal div{display:flex;gap:6px;align-items:center;margin-top:10px}.class-hot{background:#e4f7ed;color:#1f8a58}.class-warm{background:#fff3d9;color:#94600e}.class-unsubscribe,.class-not_fit{background:#fee9ec;color:#b33a4a}.integrations{grid-template-columns:repeat(5,1fr)}.suppression{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.suppression small{color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:18px 0}@media(max-width:1000px){.app-shell{grid-template-columns:80px 1fr}.sidebar{padding:16px 8px}.brand div:not(.brand-mark),.nav-label,.nav-item{font-size:0}.nav-item:first-letter{font-size:18px}.sidebar-foot{display:none}.main{padding:20px}.metric-grid{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.integrations{grid-template-columns:repeat(2,1fr)}}
.contact-check{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:#f8f9fc;border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin:0 0 12px}.contact-check>div{min-width:0}.contact-check b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#8e94a2;margin-bottom:4px}.contact-check strong,.contact-check span,.contact-check a{font-size:12px}.contact-check small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.email-value{word-break:break-all}.verify-badge{display:inline-block;border-radius:999px;padding:4px 7px;font-weight:700}.verify-match{background:#e5f7ee;color:#1f8a58}.verify-business{background:#eef1ff;color:#5546df}.verify-other,.verify-personal,.verify-missing{background:#fff3d9;color:#94600e}.btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1100px){.contact-check{grid-template-columns:1fr 1fr}}

/* V1.4.0 — standard outbound signature preview */
.signature-preview { margin: 12px 0 14px; }
.signature-card { margin-top: 7px; padding: 12px 14px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; width: fit-content; min-width: 230px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.25; color: #111; }
.signature-gap { height: 12px; }
.signature-logo { display: block; width: 121px; height: auto; margin-top: 4px; }
.signature-qr { display: block; width: 101px; height: 101px; margin-top: 10px; }

/* Commercial SaaS v0.1 */
.hero-commercial{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;margin-bottom:22px}
.hero-commercial h2{font-size:36px;line-height:1.05;margin:8px 0 14px;max-width:760px}.hero-commercial p{font-size:17px;line-height:1.6;color:#667085}.hero-actions{display:flex;gap:12px;align-items:center;margin-top:20px}.trial-badge{padding:8px 12px;border:1px solid #d0d5dd;border-radius:999px;font-weight:700}.commercial-flow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:22px;background:#f7f7fb;border:1px solid #e7e7ef;border-radius:18px}.commercial-flow div{background:white;border:1px solid #dddfea;border-radius:12px;padding:10px 12px;font-weight:700}.commercial-flow span{color:#98a2b3}.commercial-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.commercial-kpis strong{display:block;font-size:30px;margin:5px 0}.commercial-summary{margin-bottom:20px}.commercial-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.subscription-chip{display:flex;flex-direction:column;gap:3px;padding:10px 14px;border-radius:12px;background:#eef4ff;font-weight:800}.subscription-chip small{font-weight:500;color:#667085}.flash-success{padding:12px 14px;margin-bottom:16px;border-radius:10px;background:#ecfdf3;border:1px solid #abefc6;color:#067647;font-weight:700}.settings-stack{display:flex;flex-direction:column;gap:16px}.settings-section{display:grid;grid-template-columns:54px 1fr;gap:14px}.section-no{font-size:12px;font-weight:900;color:#7f56d9;border-right:1px solid #eaecf0;padding-top:6px}.section-body h3{margin:0 0 14px}.section-body label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}.section-body input[type="text"],.section-body input[type="url"],.section-body input[type="number"],.section-body input:not([type]),.section-body textarea,.section-body select{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;padding:10px 11px;background:#fff;font:inherit;color:#101828}.section-body select[multiple]{min-height:180px}.field-grid{display:grid;gap:14px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.hint{font-size:12px;color:#667085;font-weight:500;margin-top:5px}.segmented{display:inline-flex;gap:6px;background:#f2f4f7;padding:5px;border-radius:12px;margin-bottom:12px}.segmented label{flex-direction:row;align-items:center;padding:8px 10px;border-radius:8px;background:white}.geo-panel{margin-top:4px}.map-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:10px}.map-toolbar span{color:#667085}.map-toolbar .btn{margin-left:auto}#search-map{height:420px;border-radius:14px;border:1px solid #d0d5dd;overflow:hidden}.checkbox-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.checkbox-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr))}.check-card{flex-direction:row!important;align-items:center!important;border:1px solid #e4e7ec;border-radius:10px;padding:9px 10px;background:#fff;font-weight:600!important}.pill-checks,.weekday-row{display:flex;flex-wrap:wrap;gap:8px}.pill-checks label,.weekday-row label{flex-direction:row!important;align-items:center!important;border:1px solid #e4e7ec;border-radius:999px;padding:8px 11px;background:#fff}.department-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.department-block{border:1px solid #e4e7ec;border-radius:12px;padding:12px;background:#fcfcfd}.department-title{flex-direction:row!important;align-items:center!important;font-size:14px!important;margin-bottom:8px}.role-line{flex-direction:row!important;align-items:flex-start!important;font-weight:500!important;padding:3px 0}.outreach-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.mode-card{border:1px solid #d0d5dd;border-radius:12px;padding:14px!important;display:grid!important;grid-template-columns:auto 1fr;gap:6px 9px!important;align-items:start}.mode-card strong{font-size:13px}.mode-card span{grid-column:2;color:#667085;font-weight:500}.toggle-line{flex-direction:row!important;align-items:center!important;margin:8px 0}.safety-box{margin-top:14px;border:1px solid #b2ccff;background:#eff4ff;border-radius:12px;padding:12px;display:flex;gap:10px;align-items:flex-start}.safety-box span{color:#344054}.label-like{display:block;font-weight:700;font-size:13px;margin-bottom:8px}.settings-preview{display:flex;justify-content:space-between;align-items:center;gap:22px;border:2px solid #6941c6}.settings-preview h3{margin:5px 0 10px}.btn.large{padding:13px 18px;font-size:15px}
@media(max-width:1000px){.hero-commercial{grid-template-columns:1fr}.commercial-kpis{grid-template-columns:repeat(2,1fr)}.checkbox-grid,.checkbox-grid.compact{grid-template-columns:repeat(2,1fr)}.department-grid{grid-template-columns:repeat(2,1fr)}.outreach-modes{grid-template-columns:1fr}.field-grid.three{grid-template-columns:1fr 1fr}.settings-preview{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.commercial-kpis,.field-grid.two,.field-grid.three,.department-grid,.checkbox-grid,.checkbox-grid.compact{grid-template-columns:1fr}.settings-section{grid-template-columns:1fr}.section-no{border-right:0;border-bottom:1px solid #eaecf0;padding-bottom:7px}.commercial-header{align-items:flex-start;flex-direction:column}#search-map{height:330px}.hero-commercial h2{font-size:30px}}

/* Commercial SaaS v0.4 — gross-inclusive pricing, 2 months free annual plan */
.billing-section{margin-bottom:18px}.billing-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.billing-heading h3{margin:4px 0 0}.vat-note{font-size:12px;font-weight:800;color:#6941c6;background:#f4f3ff;border:1px solid #d9d6fe;border-radius:999px;padding:7px 10px}.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.price-card{position:relative;border:1px solid #e4e7ec;border-radius:16px;padding:20px;background:#fff}.price-card.recommended{border:2px solid #6941c6;background:#fcfaff}.plan-kicker{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;color:#667085}.price-card h3{font-size:27px;margin:8px 0 4px}.price-card h3 small{font-size:12px;color:#667085;font-weight:600}.price-tax{color:#667085;font-size:13px}.gross-price{display:block;font-size:16px;margin:9px 0 12px}.price-card ul{padding-left:18px;color:#475467;line-height:1.8;font-size:13px}.best-value{position:absolute;right:14px;top:14px;background:#6941c6;color:white;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900;letter-spacing:.06em}.saving-line{background:#ecfdf3;border-radius:9px;padding:9px 10px;color:#067647;font-size:12px;font-weight:700}.btn.wide{display:block;width:100%;box-sizing:border-box;text-align:center}.btn.small{padding:6px 9px;font-size:11px}.billing-form label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}.billing-form input,.billing-form select{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;padding:10px 11px;background:#fff;font:inherit;color:#101828}.span-two{grid-column:span 2}.billing-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.status-dot{font-size:12px;font-weight:800;color:#b42318;background:#fef3f2;border-radius:999px;padding:7px 10px}.status-dot.ok{color:#067647;background:#ecfdf3}.flash-info{padding:12px 14px;margin-bottom:16px;border-radius:10px;background:#eff8ff;border:1px solid #b2ddff;color:#175cd3;font-weight:700}.flash-error{padding:12px 14px;margin-bottom:16px;border-radius:10px;background:#fef3f2;border:1px solid #fecdca;color:#b42318;font-weight:700}.billing-dev-note{margin:14px 0 0}.invoice-table-wrap{overflow-x:auto}.invoice-table{width:100%;border-collapse:collapse;font-size:12px}.invoice-table th,.invoice-table td{border-bottom:1px solid #eaecf0;padding:10px 8px;text-align:left;white-space:nowrap}.invoice-table th{color:#667085;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.invoice-status{display:inline-block;border-radius:999px;padding:5px 8px;background:#f2f4f7;font-weight:800}.invoice-status.paid{background:#ecfdf3;color:#067647}.invoice-status.open{background:#fffaeb;color:#b54708}.invoice-status.void,.invoice-status.uncollectible{background:#fef3f2;color:#b42318}.empty-invoices{padding:20px;border:1px dashed #d0d5dd;border-radius:12px;color:#667085}.empty-invoices strong{color:#101828}.compact-pricing .price-card{padding-bottom:18px}.landing-pricing{margin-top:20px}
@media(max-width:800px){.pricing-grid{grid-template-columns:1fr}.billing-heading{flex-direction:column}.span-two{grid-column:span 1}.billing-actions{align-items:flex-start;flex-direction:column}}

/* Commercial SaaS v0.5 — FlowMind dark-purple product theme. Internal Sales Agent keeps the light theme. */
.brand-logo{display:block;width:154px;max-width:100%;height:auto;object-fit:contain}.brand-copy{display:none}
.commercial-theme{--bg:#171433;--panel:#2a2452;--ink:#f8f7ff;--muted:#c1bbdc;--line:#4a416f;--purple:#7657ff;--purple2:#4bb6ff;--green:#46c98b;--red:#ef7181;--amber:#f2b64b;--side:#11102b;background:radial-gradient(circle at 70% 0%,#2d2357 0,#1b1739 34%,#15122f 72%);color:var(--ink)}
.commercial-theme .sidebar{background:linear-gradient(180deg,#11102a,#171337);border-right:1px solid #332b59}.commercial-theme .brand{padding-top:2px}.commercial-theme .brand-logo{width:182px}.commercial-theme .nav-label{color:#777099}.commercial-theme .nav-item{color:#ddd9f4}.commercial-theme .nav-item:hover{background:#4a3b82;color:#fff}.commercial-theme .sidebar-foot{color:#a9a2c6}.commercial-theme .main{background:transparent}.commercial-theme .topbar{border-bottom:1px solid #342c59;padding-bottom:18px}.commercial-theme .topbar h1{color:#fff}.commercial-theme .eyebrow{color:#a992ff}.commercial-theme .pill,.commercial-theme .badge,.commercial-theme .tag{border-color:#5d4c96;background:#342b63;color:#dcd4ff}.commercial-theme .card,.commercial-theme .metric{background:linear-gradient(145deg,rgba(61,52,104,.95),rgba(43,37,82,.97));border-color:#544a7f;box-shadow:0 14px 35px rgba(6,4,24,.18)}
.commercial-theme .card h2,.commercial-theme .card h3,.commercial-theme strong,.commercial-theme b{color:var(--ink)}.commercial-theme .muted,.commercial-theme .hint,.commercial-theme .empty,.commercial-theme .section-body .hint{color:#b9b2d4}.commercial-theme .hero-commercial p{color:#c8c1df}.commercial-theme .commercial-flow{background:#211b45;border-color:#4a3e75}.commercial-theme .commercial-flow div{background:#342b63;border-color:#574b84;color:#fff}.commercial-theme .trial-badge{border-color:#5f5590;background:#2b2452}.commercial-theme .subscription-chip{background:#332b63;color:#fff;border:1px solid #5a4f88}.commercial-theme .subscription-chip small{color:#c8c1df}.commercial-theme input,.commercial-theme select,.commercial-theme textarea,.commercial-theme .section-body input[type="text"],.commercial-theme .section-body input[type="url"],.commercial-theme .section-body input[type="number"],.commercial-theme .section-body input:not([type]),.commercial-theme .section-body textarea,.commercial-theme .section-body select{background:#211c43;border-color:#554a80;color:#fff}.commercial-theme input::placeholder,.commercial-theme textarea::placeholder{color:#8f87ad}.commercial-theme label{color:#d9d5e9}.commercial-theme .segmented{background:#211b44}.commercial-theme .segmented label,.commercial-theme .check-card,.commercial-theme .pill-checks label,.commercial-theme .weekday-row label,.commercial-theme .department-block,.commercial-theme .mode-card{background:#312958;border-color:#554a7f;color:#f5f3ff}.commercial-theme .department-block{background:linear-gradient(145deg,#342c60,#2b2551)}.commercial-theme .mode-card span{color:#bab3d4}.commercial-theme .btn{background:#332b61;border-color:#5c5187;color:#f8f7ff}.commercial-theme .btn:hover{filter:brightness(1.12)}.commercial-theme .btn.primary{background:linear-gradient(90deg,#7357ff,#4daeff);border-color:transparent}.commercial-theme .settings-preview{border-color:#8066ff;background:linear-gradient(135deg,#3b2e72,#28224f)}.commercial-theme .safety-box{background:#252657;border-color:#4d74b9}.commercial-theme .safety-box span{color:#c8d6f7}.commercial-theme .flash-success{background:#193f39;border-color:#2f8e73;color:#b7f4dd}.commercial-theme .pricing-grid .price-card,.commercial-theme .price-card{background:linear-gradient(145deg,#382f67,#2a2451);border-color:#5a4e85}.commercial-theme .price-tax,.commercial-theme .vat-note{color:#bcb5d5}.commercial-theme .kv b{color:#cfc9e4}.commercial-theme table th{color:#a9a2c5;border-color:#504775}.commercial-theme table td{border-color:#433b68}.commercial-theme hr{border-color:#493f70}
.commercial-theme #search-map{border-color:#655995;box-shadow:0 16px 30px rgba(7,4,27,.22)}.commercial-theme .maplibregl-ctrl-group{background:#2c2653}.commercial-theme .maplibregl-ctrl button .maplibregl-ctrl-icon{filter:invert(1) brightness(1.8)}.commercial-theme .maplibregl-ctrl-attrib{background:rgba(31,25,62,.84)!important;color:#dad5ec}.commercial-theme .maplibregl-ctrl-attrib a{color:#b8a9ff}.commercial-theme .map-status-row{color:#bdb6d8}.commercial-theme .map-tool.active{background:linear-gradient(90deg,#7357ff,#4daeff);border-color:transparent;color:white}.maplibre-toolbar{justify-content:space-between;align-items:center;flex-wrap:wrap}.maplibre-toolbar>div:first-child{display:flex;flex-direction:column;gap:4px}.map-draw-actions{display:flex;gap:7px;flex-wrap:wrap}.map-status-row{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11px;color:#667085;margin-bottom:9px}.osm-credit{white-space:nowrap}.map-tool.active{background:#6d5dfc;color:white;border-color:#6d5dfc}#search-map .maplibregl-canvas.drawing{cursor:crosshair}.maplibregl-ctrl-attrib a{text-decoration:none}
@media(max-width:1000px){.brand-logo{width:56px}.commercial-theme .brand-logo{width:56px}.brand{justify-content:center;padding-left:0;padding-right:0}.map-status-row{align-items:flex-start;flex-direction:column}.maplibre-toolbar{align-items:flex-start;flex-direction:column}}
.commercial-map-highlight{display:flex;justify-content:space-between;align-items:center;gap:24px}.commercial-map-highlight p{max-width:900px;line-height:1.6}.commercial-theme .commercial-map-highlight{background:linear-gradient(135deg,#31275f,#242047)}
@media(max-width:800px){.commercial-map-highlight{align-items:flex-start;flex-direction:column}}
/* Commercial SaaS v0.6 — authenticated customer workspaces */
.nav-logout{margin:0}.nav-button{width:100%;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer}.account-pill{display:flex;flex-direction:column;gap:2px;align-items:flex-end;padding:8px 12px;border:1px solid #544a7f;border-radius:12px;background:#2d2757;color:#fff;font-size:12px}.account-pill small{color:#aaa3c8;font-size:10px}.auth-shell{display:grid;grid-template-columns:minmax(0,620px) minmax(280px,420px);gap:18px;justify-content:center;align-items:start;max-width:1080px;margin:38px auto}.auth-shell.single{grid-template-columns:minmax(0,560px);max-width:560px}.auth-card{padding:30px}.auth-card h2{font-size:27px;margin:8px 0 9px}.auth-card>p{line-height:1.6}.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:22px}.auth-form label{font-size:12px}.auth-form input{padding:12px 13px}.btn.wide{width:100%}.auth-footer{text-align:center!important;font-size:12px;margin:18px 0 0!important}.auth-benefits{padding:27px}.auth-benefits h3{font-size:19px;margin-top:0}.auth-benefits ul{padding-left:20px;margin:18px 0 0}.auth-benefits li{padding:9px 0;color:#d5d0e5;line-height:1.45}.auth-benefits li b{color:#fff}.auth-dev-note{border:1px solid #6b5a9a;background:#2c2653;border-radius:10px;padding:11px 12px;color:#c7bfdf;font-size:12px;margin:14px 0}.auth-confirm{text-align:center}.auth-confirm-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#1d5a49;color:#b8f3dc;font-size:24px;font-weight:900}.commercial-theme .auth-card,.commercial-theme .auth-benefits{background:linear-gradient(145deg,rgba(61,52,104,.96),rgba(43,37,82,.98))}.commercial-theme .auth-form input{background:#211c43}.commercial-theme .btn:disabled{opacity:.45;cursor:not-allowed}.access-expired{border:1px solid #a47a32;background:#4c3a27;color:#ffe1a8;border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:13px}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;margin-top:18px}.auth-benefits{order:2}}

/* Commercial SaaS v0.8 — privacy, mailbox connectors and KSeF-ready billing */
.legal-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:9px!important;font-weight:600!important;line-height:1.45}.legal-check input[type="checkbox"]{width:16px!important;height:16px!important;margin:2px 0 0!important;flex:0 0 auto}.legal-check span{font-size:12px;color:var(--muted)}.commercial-theme .legal-check span{color:#cbc5df}.legal-page{max-width:980px;line-height:1.65}.legal-page h2{font-size:26px!important;margin:9px 0 18px!important}.legal-page h3{font-size:16px!important;margin-top:24px}.legal-warning{border:1px solid #a47a32;background:#4c3a27;color:#ffe1a8;border-radius:10px;padding:12px 14px;margin:14px 0 20px}.compliance-critical{border-color:#9b7440!important;background:linear-gradient(145deg,#4b3a50,#33294d)!important}.ksef-note{margin-top:14px;padding:11px 12px;border:1px solid #5e7aa8;border-radius:10px;background:#252f55;color:#d7e4ff;font-size:12px;line-height:1.5}.ksef-number{display:block;margin-top:4px;color:var(--muted);font-size:9px;max-width:180px;white-space:normal;word-break:break-all}.invoice-status.pending{background:#fffaeb;color:#b54708}.invoice-status.accepted{background:#ecfdf3;color:#067647}.invoice-status.not_required{background:#f2f4f7;color:#475467}.invoice-status.rejected{background:#fef3f2;color:#b42318}.mailbox-list{display:flex;flex-direction:column;gap:9px;margin:12px 0 16px}.mailbox-card{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:rgba(255,255,255,.03)}.mailbox-card strong{display:block}.mailbox-card small{display:block;margin-top:4px;color:var(--muted)}.field-grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.commercial-theme .text-link{text-decoration:underline;text-underline-offset:2px}@media(max-width:800px){.field-grid.three{grid-template-columns:1fr}.mailbox-card{align-items:flex-start;flex-direction:column}}

/* Commercial SaaS v0.9 — simple Mail Connection Center */
.mailbox-hero{display:flex;justify-content:space-between;align-items:center;gap:24px}.mailbox-hero h2{font-size:26px;margin:5px 0 8px}.mailbox-hero p{max-width:780px;line-height:1.6;margin:0;color:var(--muted)}.mailbox-security-chip{white-space:nowrap;border:1px solid #66599a;background:#28224f;border-radius:999px;padding:9px 13px;font-size:11px;color:#dcd6ef}.mail-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.mail-provider-card{display:flex;flex-direction:column;gap:10px;min-height:285px}.mail-provider-card h3{margin:0}.mail-provider-card p{color:var(--muted);font-size:12px;line-height:1.55;min-height:57px}.mail-provider-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:900;background:#332b63;border:1px solid #655a90}.mail-provider-mark.microsoft{background:#22365d}.mail-provider-mark.google{background:#46305a}.mail-provider-mark.other{background:#2d3757}.connect-steps{display:grid;grid-template-columns:22px 1fr;gap:6px 8px;align-items:center;font-size:10px;color:#c9c3dd;margin-bottom:auto}.connect-steps span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#4a3b82;color:#fff;font-weight:800}.provider-dev-note{display:block;color:#a9a2c6;font-size:9px;line-height:1.4;margin-top:-4px}.btn.disabled{opacity:.42;pointer-events:none}.mailbox-other-form.hidden{display:none}.advanced-mail-settings{margin-top:13px;border:1px solid #514675;border-radius:10px;padding:10px 12px;background:#282249}.advanced-mail-settings summary{cursor:pointer;color:#d8d3e9;font-size:11px;font-weight:700}.advanced-mail-grid{margin-top:12px}.mailbox-current{margin-top:16px}.mailbox-identity{display:flex;align-items:center;gap:11px}.mailbox-provider-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#3c326c;font-weight:900}.mailbox-card-actions{display:flex;align-items:center;gap:8px}.danger-soft{border-color:#765066!important;color:#ffd8df!important;background:#3d2940!important}.guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-steps article{display:flex;gap:12px;padding:14px;border:1px solid #514777;border-radius:12px;background:#2f2857}.guide-no{flex:0 0 28px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(90deg,#7357ff,#4daeff);font-weight:900;color:white}.guide-steps b{font-size:13px}.guide-steps p{font-size:11px;line-height:1.55;color:#c0bad4;margin:5px 0 0}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}.permissions-grid div{padding:12px;border:1px solid #514777;border-radius:10px;background:#2f2857}.permissions-grid b{display:block;font-size:12px}.permissions-grid span{display:block;color:#bdb6d1;font-size:10px;line-height:1.5;margin-top:4px}@media(max-width:900px){.mail-provider-grid{grid-template-columns:1fr}.guide-steps,.permissions-grid{grid-template-columns:1fr}.mailbox-hero{align-items:flex-start;flex-direction:column}.mailbox-card-actions{align-items:flex-start;flex-direction:column}}

/* Commercial SaaS v0.10 — public landing, guided onboarding and connected-client dashboard */
.public-commercial{min-height:100vh;background:radial-gradient(circle at 78% 15%,#32135a 0,#1c123d 34%,#0c0b24 76%);color:#fff}.public-commercial a{text-decoration:none}.public-nav{height:74px;display:grid;grid-template-columns:260px 1fr 320px;align-items:center;padding:0 5vw;border-bottom:1px solid rgba(144,118,210,.24);background:rgba(7,7,25,.78);backdrop-filter:blur(14px);position:sticky;top:0;z-index:30}.public-brand img{width:205px;display:block}.public-links{display:flex;justify-content:center;gap:34px}.public-links a{color:#e9e5f7;font-size:13px;font-weight:700}.public-links a:hover{color:#bda9ff}.public-actions{display:flex;justify-content:flex-end;gap:10px}.public-main{max-width:1540px;margin:0 auto;padding:34px 5vw 70px}.public-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center;min-height:470px}.public-chip{display:inline-flex;border:1px solid #5e428f;border-radius:999px;background:#26134a;color:#c8a9ff;padding:7px 13px;font-size:12px;font-weight:800}.public-hero h1{font-size:50px;line-height:1.04;letter-spacing:-1.4px;margin:18px 0 18px;max-width:760px}.public-hero-copy>p{font-size:18px;line-height:1.55;color:#d2c9e8;max-width:680px}.public-hero-actions{display:flex;gap:14px;margin:28px 0 13px}.btn.xl{padding:14px 20px;font-size:14px;border-radius:10px}.public-proof{font-size:11px;color:#b8afd0}.public-product-preview{border:1px solid #4a3678;border-radius:18px;padding:17px;background:linear-gradient(145deg,rgba(29,22,64,.97),rgba(18,15,47,.97));box-shadow:0 30px 70px rgba(3,2,18,.45);min-height:360px}.preview-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;margin-bottom:16px}.preview-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.preview-metrics div{padding:13px;border:1px solid #3f3567;border-radius:11px;background:#241d50}.preview-metrics small{display:block;color:#a9a2c5;font-size:9px}.preview-metrics b{font-size:24px;display:block;margin-top:4px}.preview-body{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;margin-top:10px}.preview-chart,.preview-map{border:1px solid #3e3565;border-radius:12px;min-height:190px;padding:14px;background:#171536}.preview-chart>span,.preview-map>span{font-size:10px;color:#b9b1d1;font-weight:800}.fake-chart{display:flex;align-items:flex-end;gap:9px;height:125px;margin-top:18px;border-bottom:1px solid #49406e;background:linear-gradient(to bottom,transparent 31%,rgba(99,84,151,.16) 32%,transparent 33%,transparent 65%,rgba(99,84,151,.16) 66%,transparent 67%)}.fake-chart i{flex:1;border-radius:7px 7px 1px 1px;background:linear-gradient(180deg,#8466ff,#4ea7ff)}.fake-chart i:nth-child(1){height:38%}.fake-chart i:nth-child(2){height:62%}.fake-chart i:nth-child(3){height:47%}.fake-chart i:nth-child(4){height:78%}.fake-chart i:nth-child(5){height:55%}.fake-chart i:nth-child(6){height:88%}.fake-chart i:nth-child(7){height:71%}.preview-map{position:relative;overflow:hidden;background:radial-gradient(circle at 55% 45%,#3c2f63 0,#1b1938 55%,#14132d 100%)}.preview-map:before,.preview-map:after{content:"";position:absolute;border:1px solid rgba(118,92,176,.25);border-radius:50%;width:260px;height:260px;left:-70px;top:25px}.preview-map:after{left:30px;top:-130px}.mini-map-shape{position:absolute;inset:54px 38px 25px 34px;background:rgba(126,79,207,.36);border:2px solid #a479ff;clip-path:polygon(13% 20%,46% 5%,80% 18%,95% 48%,74% 84%,40% 90%,10% 66%,3% 40%)}.public-feature-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:14px 0 18px}.public-feature-grid article{border:1px solid #48386d;border-radius:13px;padding:18px 16px;background:linear-gradient(145deg,#261d4c,#1a1739)}.public-feature-grid article>span{display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:#3b246b;color:#c9b0ff;font-size:19px;margin-bottom:12px}.public-feature-grid b{font-size:13px}.public-feature-grid p{font-size:10px;line-height:1.5;color:#b9b1cf;margin:7px 0 0}.public-pricing{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.public-pricing article{position:relative;border:1px solid #543b7e;border-radius:16px;padding:22px 28px;background:linear-gradient(135deg,#261b4e,#161435)}.public-pricing article.recommended{border-color:#a44cff;box-shadow:inset 0 0 0 1px rgba(132,80,255,.35),0 10px 40px rgba(84,28,158,.15)}.public-pricing em{position:absolute;right:18px;top:14px;font-style:normal;font-size:9px;border:1px solid #7c4cc0;border-radius:999px;padding:5px 9px;color:#dfc8ff}.public-pricing>article>span{font-size:10px;color:#b48aff;font-weight:900}.public-pricing h2{font-size:38px;margin:9px 0 3px}.public-pricing h2 small{font-size:13px;font-weight:600;color:#d2cae4}.public-pricing p{color:#d8d0e9;font-size:12px}.public-pricing ul{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px;padding:0;list-style:none;margin:16px 0}.public-pricing li{font-size:11px;color:#c6bedb}.public-pricing li:before{content:"✓";color:#76e1b3;margin-right:7px}.public-how,.public-security,.public-faq{border-top:1px solid rgba(91,71,131,.45);padding:30px 10px;margin-top:12px}.section-title{text-align:center}.section-title>span,.public-security>div>span{color:#a98cff;font-size:10px;font-weight:900;letter-spacing:.1em}.section-title h2,.public-security h2{font-size:27px;margin:8px 0 20px}.how-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.how-grid article{padding:18px;border:1px solid #45376a;border-radius:13px;background:#1d183d}.how-grid article>b{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:linear-gradient(90deg,#7448d9,#487dd6);font-size:14px}.how-grid h3{font-size:13px;margin:12px 0 6px}.how-grid p{color:#bcb4d0;font-size:10px;line-height:1.5}.public-security{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;background:linear-gradient(130deg,rgba(44,29,79,.55),rgba(19,18,47,.4));border-radius:16px;padding:28px}.public-security p{color:#c5bdd8;line-height:1.6;max-width:760px}.security-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.security-tags span{border:1px solid #514174;border-radius:999px;padding:8px 11px;color:#d9d1e9;font-size:10px}.public-faq{max-width:980px;margin:10px auto}.public-faq details{border:1px solid #423660;border-radius:10px;padding:13px 15px;background:#191633;margin:8px}.public-faq summary{font-weight:800;font-size:12px;cursor:pointer}.public-faq p{color:#bbb4cd;font-size:11px;line-height:1.6}.public-footer{border-top:1px solid #302947;padding:22px 5vw;display:grid;grid-template-columns:220px 1fr auto;align-items:center;background:#0b0a20;color:#8882a0;font-size:10px}.public-footer img{width:165px}.public-footer>span{text-align:center}.public-footer div{display:flex;gap:16px}.public-footer a{color:#a8a2bd}.onboarding-page{min-height:100vh;background:radial-gradient(circle at 70% 0,#2b1a51,#11102c 58%,#0b0b20)}.onboarding-top{height:72px;border-bottom:1px solid #392d5e;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:rgba(12,11,34,.7);backdrop-filter:blur(12px)}.onboarding-top img{width:185px}.onboarding-top>div{text-align:right}.onboarding-top b,.onboarding-top span{display:block}.onboarding-top b{font-size:12px}.onboarding-top span{font-size:9px;color:#aaa4bd;margin-top:3px}.onboarding-shell{max-width:1120px;margin:28px auto 70px;padding:0 18px}.onboarding-progress-card,.onboarding-card{border:1px solid #4c3d75;border-radius:18px;background:linear-gradient(145deg,#30245d,#201a43);box-shadow:0 20px 60px rgba(4,3,21,.22)}.onboarding-progress-card{padding:19px 22px;margin-bottom:15px}.onboarding-progress-head{display:flex;justify-content:space-between;align-items:center}.onboarding-progress-head span,.step-kicker{font-size:9px;color:#b597ff;font-weight:900;letter-spacing:.09em}.onboarding-progress-head h1{font-size:21px;margin:4px 0 0}.onboarding-progress-head>b{font-size:19px;color:#b9a6ff}.progress-track{height:6px;background:#17132f;border-radius:999px;overflow:hidden;margin:13px 0 15px}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,#6f4ce8,#4cb2ff);border-radius:999px}.step-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.step-tabs a{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #493c6e;border-radius:9px;padding:8px 6px;color:#aca5c0;font-size:10px;font-weight:800;background:#211b42}.step-tabs a span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #62527d;font-size:9px}.step-tabs a.active{color:#fff;border-color:#906aff;background:#332461}.step-tabs a.done span{background:#24634f;border-color:#3d9a78;color:#c8f7e5}.onboarding-card{padding:28px 32px;max-width:820px;margin:0 auto}.onboarding-card.wide{max-width:1080px}.onboarding-card h2{font-size:28px;margin:7px 0 8px}.onboarding-card>p{color:#c2bad6;line-height:1.6;margin:0 0 22px;max-width:760px}.onboarding-form{display:flex;flex-direction:column;gap:14px}.onboarding-form label,.onboarding-imap label{display:flex;flex-direction:column;gap:6px;color:#ddd7ed;font-size:11px;font-weight:800}.onboarding-form input,.onboarding-form textarea,.onboarding-form select,.onboarding-imap input{padding:12px 13px;border-radius:10px;border:1px solid #594b82;background:#181534;color:#fff;font:inherit;font-weight:500}.onboarding-form textarea{resize:vertical;line-height:1.5}.onboarding-form small{font-size:9px;color:#9d96b0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:13px}.onboarding-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #493c6c;padding-top:18px;margin-top:7px}.onboarding-error{border:1px solid #90613c;background:#4c342d;color:#ffe0b6;border-radius:12px;padding:12px 14px;margin:0 auto 14px;max-width:1080px;font-size:11px}.choice-cloud{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0 13px}.choice-cloud label{display:block}.choice-cloud input{position:absolute;opacity:0;pointer-events:none}.choice-cloud span{display:inline-flex;padding:8px 10px;border:1px solid #514274;border-radius:8px;background:#241d49;color:#c8c1dc;font-size:10px;cursor:pointer}.choice-cloud input:checked+span{background:#4b307d;border-color:#966dff;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}.choice-cloud.compact span{padding:6px 8px}.role-groups{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.role-groups details{border:1px solid #4e406f;border-radius:10px;padding:9px;background:#231d47}.role-groups summary{cursor:pointer;font-size:10px;font-weight:900;color:#d9d3e8}.role-groups .choice-cloud{margin:9px 0 0}.label-like{display:block;font-size:11px;font-weight:800;margin-bottom:7px}.geo-switch{display:flex;gap:8px;border:1px solid #4c3e70;border-radius:10px;background:#1d183b;padding:5px;width:max-content}.geo-switch label{display:block}.geo-switch input{width:auto;margin-right:4px}.geo-onboarding-panel{margin-top:10px}.map-radius-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:10px;color:#bdb6d0}.map-radius-toolbar label{flex-direction:row;align-items:center}.map-radius-toolbar select{padding:7px 9px}.onboarding-page #onboarding-map{height:390px;border:1px solid #5b4b83;border-radius:13px;overflow:hidden}.onboarding-page .maplibregl-ctrl-attrib{background:rgba(24,20,52,.82)!important;color:#ddd6ee}.onboarding-page .maplibregl-ctrl-attrib a{color:#c4b5ff}.onboarding-page #map-choice-status{display:block;margin-top:8px;color:#aba4bd}.onboarding-mail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.onboarding-mail-grid article{display:flex;flex-direction:column;gap:9px;border:1px solid #4e4073;border-radius:13px;padding:17px;background:#251e4b}.onboarding-mail-grid h3{font-size:14px;margin:0}.onboarding-mail-grid p{font-size:10px;line-height:1.55;color:#bcb4ce;min-height:48px}.onboarding-mail-grid small{font-size:8px;color:#9690aa}.onboarding-imap{margin-top:14px;border:1px solid #58497e;border-radius:12px;padding:17px;background:#211a43;display:flex;flex-direction:column;gap:12px}.onboarding-imap.hidden{display:none}.onboarding-imap details{border:1px solid #514371;border-radius:9px;padding:10px}.onboarding-imap summary{cursor:pointer;font-size:10px;font-weight:800}.mail-ready-big{border:1px solid #397b65;border-radius:13px;background:#173d35;padding:18px;color:#bff4df;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}.mail-ready-big b{font-size:13px}.mail-ready-big span{font-size:9px;color:#a7ddca}.compliance-simple{display:flex;flex-direction:column;gap:9px}.compliance-simple label{flex-direction:row;align-items:flex-start;border:1px solid #514371;border-radius:10px;padding:12px;background:#241e47}.compliance-simple input{width:16px;height:16px;flex:0 0 auto;margin-top:2px}.compliance-simple span{font-weight:500;line-height:1.55;color:#c9c2d8}.legal-note{border:1px solid #775b35;background:#3a302c;color:#ecd8ba;border-radius:10px;padding:11px 12px;font-size:10px;line-height:1.55}.dashboard-welcome{border:1px solid #33735f;background:#173d34;color:#c2f4df;border-radius:11px;padding:12px 14px;margin-bottom:14px;font-size:11px}.client-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;margin-bottom:12px}.client-metrics article{display:flex;gap:12px;align-items:center;border:1px solid #514576;border-radius:12px;padding:14px;background:linear-gradient(145deg,#352b64,#282151)}.client-metrics article>span{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:#4a2d7b;color:#d8c2ff;font-size:18px}.client-metrics small{font-size:9px;color:#aaa3bd}.client-metrics b{display:block;font-size:25px;margin-top:2px}.client-metrics b em{font-style:normal;font-size:12px;color:#a9a1bd}.client-metrics p{font-size:8px;color:#a9a2ba;margin:3px 0 0}.client-metrics i{display:block;width:110px;height:4px;background:#17132f;border-radius:999px;margin-top:7px;overflow:hidden}.client-metrics u{display:block;height:100%;background:linear-gradient(90deg,#7651ef,#4caefc);text-decoration:none}.green{color:#57d89a!important}.dashboard-grid-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.dash-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dash-card-head h3{margin:4px 0 0;font-size:16px}.dash-status-lines{display:grid;gap:7px;margin-top:15px}.dash-status-lines>div{display:flex;justify-content:space-between;padding-top:7px;border-top:1px solid #493e6a;font-size:10px;color:#bbb4cd}.dash-status-lines b{font-size:10px}.connected-mail-row{display:flex;gap:11px;align-items:center;border:1px solid #4e4270;border-radius:10px;padding:11px;margin:14px 0 9px;background:#241e49}.connected-mail-row b,.connected-mail-row small{display:block}.connected-mail-row small{font-size:9px;color:#a8a1b8;margin-top:3px}.dashboard-filters{margin-bottom:12px}.filter-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:13px}.filter-summary>div{border-right:1px solid #4a3f6b;padding-right:10px}.filter-summary>div:last-child{border:0}.filter-summary small{font-size:9px;color:#a9a2bb}.filter-summary p{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 0}.filter-summary p span{font-size:9px;border:1px solid #5b4884;border-radius:6px;padding:5px 7px;background:#3a2868;color:#ddcef5}.dashboard-main-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px}.dashboard-map-card #dashboard-map{height:450px;border:1px solid #574a7b;border-radius:12px;overflow:hidden;margin-top:12px}.dashboard-map-card .map-caption{font-size:9px;color:#a7a0b7;margin-top:8px}.dashboard-side-stack{display:flex;flex-direction:column;gap:12px}.dash-table{margin-top:10px}.dash-table>div{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #463b66;padding:9px 2px}.dash-table b,.dash-table small{display:block}.dash-table b{font-size:10px}.dash-table small{font-size:8px;color:#9992aa;margin-top:2px}.fit-score{font-size:10px;font-weight:900;color:#cabfea}.fit-score.good{color:#62dda0}.reply-tag{font-size:8px;border-radius:999px;padding:4px 7px;border:1px solid #594a7d;background:#302757}.reply-tag.interested,.reply-tag.meeting{color:#70e3a8;border-color:#35765a;background:#1e4538}.reply-tag.not_interested,.reply-tag.unsubscribe{color:#ff9ca8;border-color:#754753;background:#472b36}.pipeline-strip{margin-top:12px}.pipeline-mini{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin-top:12px}.pipeline-mini div{text-align:center;border:1px solid #4d416d;border-radius:9px;padding:10px 5px;background:#251f48}.pipeline-mini b{font-size:18px}.pipeline-mini span{display:block;font-size:7px;color:#aaa3b8;margin-top:3px}.commercial-theme #dashboard-map .maplibregl-ctrl-attrib{background:rgba(31,25,62,.84)!important;color:#dad5ec}.commercial-theme #dashboard-map .maplibregl-ctrl-attrib a{color:#b8a9ff}
@media(max-width:1180px){.public-feature-grid{grid-template-columns:repeat(3,1fr)}.client-metrics{grid-template-columns:repeat(3,1fr)}.pipeline-mini{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.public-nav{grid-template-columns:1fr auto}.public-links{display:none}.public-actions{grid-column:2}.public-hero{grid-template-columns:1fr}.public-hero h1{font-size:38px}.public-feature-grid{grid-template-columns:repeat(2,1fr)}.public-pricing,.public-security{grid-template-columns:1fr}.how-grid{grid-template-columns:1fr 1fr}.public-footer{grid-template-columns:1fr;gap:13px;text-align:center}.public-footer img{margin:auto}.public-footer div{justify-content:center}.step-tabs{grid-template-columns:repeat(3,1fr)}.role-groups{grid-template-columns:1fr}.onboarding-mail-grid{grid-template-columns:1fr}.client-metrics{grid-template-columns:1fr 1fr}.dashboard-grid-top,.dashboard-main-grid{grid-template-columns:1fr}.filter-summary{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:1fr}}
@media(max-width:560px){.public-nav{padding:0 18px}.public-brand img{width:155px}.public-actions .btn:first-child{display:none}.public-main{padding:24px 18px 50px}.public-hero h1{font-size:32px}.public-hero-actions{flex-direction:column}.preview-metrics{grid-template-columns:1fr 1fr}.preview-body{grid-template-columns:1fr}.public-feature-grid{grid-template-columns:1fr}.public-pricing{grid-template-columns:1fr}.public-pricing ul{grid-template-columns:1fr}.how-grid{grid-template-columns:1fr}.step-tabs{grid-template-columns:1fr 1fr}.onboarding-card{padding:22px 18px}.client-metrics{grid-template-columns:1fr}.filter-summary{grid-template-columns:1fr}.pipeline-mini{grid-template-columns:1fr 1fr}}
.commercial-data-table{margin-top:15px;overflow-x:auto}.commercial-data-table .data-head,.commercial-data-table .data-row{display:grid;grid-template-columns:1.35fr 1fr .85fr .45fr .7fr 1.15fr;gap:10px;align-items:center;min-width:850px;padding:10px 8px}.commercial-data-table .data-head{font-size:8px;color:#9f98b2;text-transform:uppercase;font-weight:900;border-bottom:1px solid #514573}.commercial-data-table .data-row{font-size:10px;border-bottom:1px solid #433961}.commercial-data-table .data-row b,.commercial-data-table .data-row small{display:block}.commercial-data-table .data-row small{font-size:8px;color:#948da3;margin-top:3px;white-space:normal}.inbox-table .data-head,.inbox-table .data-row{grid-template-columns:1fr 1fr 1.6fr .75fr .8fr .7fr}.commercial-pipeline-board{display:grid;grid-template-columns:repeat(8,minmax(210px,1fr));gap:10px;overflow-x:auto;padding-bottom:10px}.pipeline-column{border:1px solid #4d416f;border-radius:12px;background:linear-gradient(145deg,#2d2555,#211c45);min-height:480px}.pipeline-column>header{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #4a3e69;font-size:10px}.pipeline-column>header span{display:grid;place-items:center;min-width:24px;height:20px;border-radius:999px;background:#40346b;color:#ddd4f2}.pipeline-column>div{padding:8px}.pipeline-column section{border:1px solid #493d68;border-radius:9px;padding:10px;background:#221c43;margin-bottom:8px}.pipeline-column section>b,.pipeline-column section>small,.pipeline-column section>span,.pipeline-column section>em{display:block}.pipeline-column section>b{font-size:10px}.pipeline-column section>small{font-size:8px;color:#aaa3b8;margin:4px 0}.pipeline-column section>span{font-size:8px;color:#67dda2}.pipeline-column section>em{width:max-content;margin-top:6px;font-style:normal}.text-link{color:#c8b6ff!important}

/* Commercial SaaS v0.11 — AI-assisted onboarding */
.ai-onboarding-box{display:grid;grid-template-columns:44px 1fr auto;gap:13px;align-items:center;border:1px solid #6d4aa5;border-radius:13px;padding:15px;background:linear-gradient(135deg,#2f205c,#241b4a);box-shadow:inset 0 0 30px rgba(125,82,222,.08)}.ai-spark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#7048d7,#a263ff);color:#fff;font-size:20px}.ai-onboarding-box b{display:block;color:#f3edff;font-size:13px}.ai-onboarding-box p{margin:4px 0 0;color:#bcb3d2;font-size:10px;line-height:1.5;max-width:560px}.btn.ai-button{background:#5a36a0;border-color:#8b63e4;color:#fff;padding:11px 14px}.btn.ai-button:hover{background:#6940b7}.btn.ai-button:disabled{opacity:.65}.ai-review-banner{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid #6f50a5;border-radius:12px;background:linear-gradient(135deg,#352462,#271d4d);padding:13px 15px;margin-bottom:12px}.ai-review-banner b,.ai-review-banner span{display:block}.ai-review-banner b{font-size:12px;color:#efe7ff}.ai-review-banner span{font-size:10px;color:#bcb4cf;margin-top:4px;line-height:1.45}.ai-review-banner em{font-style:normal;white-space:nowrap;border:1px solid #7655ad;background:#422d71;color:#d8c6ff;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:800}.ai-evidence{border:1px solid #4f426f;border-radius:10px;padding:10px 12px;background:#211b42;margin:0 0 13px}.ai-evidence summary{cursor:pointer;color:#d7cfeb;font-size:10px;font-weight:800}.ai-evidence p{font-size:10px;line-height:1.5;color:#aaa2bc}.ai-evidence small{font-size:9px;color:#8f88a3}.ai-evidence a{color:#bda8ff;text-decoration:underline}.field-help{font-size:10px;color:#aaa2bc;margin:-5px 0 4px}.commercial-theme .hint{font-size:10px;color:#a9a1bc}.commercial-theme .onboarding-actions .hint{max-width:320px}
@media(max-width:760px){.ai-onboarding-box{grid-template-columns:40px 1fr}.ai-onboarding-box .ai-button{grid-column:1 / -1;width:100%}.ai-review-banner{align-items:flex-start;flex-direction:column}.ai-review-banner em{align-self:flex-start}}

/* Commercial v0.12 — autonomous delivery controls */
.campaign-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}.campaign-hero h2{margin:.35rem 0}.campaign-state{display:flex;flex-direction:column;gap:7px;align-items:flex-end}.campaign-form{display:grid;gap:16px}.field-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.campaign-weekdays{margin-top:14px}.sequence-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.sequence-step{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px;opacity:.55}.sequence-step.active{opacity:1;background:rgba(114,85,255,.08);border-color:rgba(139,113,255,.42)}.sequence-step>span{display:grid;place-items:center;min-width:32px;height:32px;border-radius:10px;background:rgba(114,85,255,.18);font-weight:800}.sequence-step div{display:flex;flex-direction:column;gap:4px}.sequence-step input{width:58px;padding:6px 7px;margin:0 3px}.compact-grid{align-items:end}.safety-box.small{margin:0}.mail-health-grid{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));gap:12px;align-items:end}.mail-health-score{display:flex;gap:12px;align-items:center}.mail-health-score>div{display:flex;flex-direction:column}.health-ring{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;border:6px solid #35d98b;background:rgba(53,217,139,.08);font-size:20px;font-weight:900}.health-ring.health-watch{border-color:#f1b84b}.health-ring.health-paused{border-color:#ff6b7d}.reputation-toggle{margin-top:14px}.mailbox-action-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:14px}.mailbox-action-row>div:first-child{display:flex;flex-direction:column;gap:3px}.delivery-now{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(255,107,125,.08);border:1px solid rgba(255,107,125,.22)}.delivery-now.ok{background:rgba(53,217,139,.08);border-color:rgba(53,217,139,.24)}.campaign-savebar{display:flex;align-items:center;justify-content:space-between;gap:20px}@media(max-width:1000px){.field-grid.four,.sequence-strip,.mail-health-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){.campaign-hero,.campaign-savebar,.mailbox-action-row{align-items:flex-start;flex-direction:column}.field-grid.four,.sequence-strip,.mail-health-grid{grid-template-columns:1fr}.campaign-state{align-items:flex-start}}
.dashboard-mail-links{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px}

/* Commercial v0.13 — tenant-local smart campaign learning */
.strategy-explainer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.strategy-explainer article{border:1px solid rgba(143,112,255,.22);background:rgba(111,66,193,.08);border-radius:12px;padding:12px}.strategy-explainer b{display:block;margin-bottom:5px}.strategy-explainer span{display:block;font-size:12px;line-height:1.45;color:var(--muted)}.strategy-table{margin-top:14px}.strategy-table td small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.strategy-table table{width:100%}@media(max-width:1100px){.strategy-explainer{grid-template-columns:1fr 1fr}}@media(max-width:720px){.strategy-explainer{grid-template-columns:1fr}}

/* Commercial v0.14 — Sales Intelligence */
.sales-intel-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:12px;background:linear-gradient(135deg,#352765,#28204f 55%,#211b43)}
.sales-intel-hero h2{margin:5px 0 7px;font-size:24px}.sales-intel-hero p{max-width:780px;color:#bcb5cf;line-height:1.55;font-size:10px}.sales-intel-state{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:170px}.sales-intel-state small{font-size:9px;color:#aaa3bb}.sales-reply-list{display:flex;flex-direction:column;gap:10px;margin-top:15px}.sales-reply-card{border:1px solid #4d416e;border-radius:12px;background:linear-gradient(145deg,#2c2454,#211b43);overflow:hidden}.sales-reply-main{display:grid;grid-template-columns:1fr 1fr 2fr .8fr .75fr;gap:11px;align-items:center;padding:12px}.sales-reply-main b,.sales-reply-main small{display:block}.sales-reply-main b{font-size:10px}.sales-reply-main small{font-size:8px;color:#9e97ad;margin-top:3px}.sales-reply-copy small{white-space:normal;line-height:1.45}.sales-action-box{border-top:1px solid #4c3f6d;padding:13px 15px;background:rgba(31,25,62,.55)}.sales-action-box.status-completed{border-left:3px solid #4bc98c}.sales-action-box.status-ready_for_approval,.sales-action-box.status-suggested{border-left:3px solid #9a72ff}.sales-action-box.status-scheduled{border-left:3px solid #53a7ec}.sales-action-box.status-failed{border-left:3px solid #e7857b}.sales-action-head{display:flex;gap:14px;align-items:center}.sales-action-head>div:first-child{flex:1}.sales-action-head h4{margin:3px 0 0;font-size:13px}.action-score{text-align:right}.action-score b,.action-score small{display:block}.action-score b{font-size:16px;color:#cbb9ff}.action-score small{font-size:7px;color:#9991aa}.action-status{font-size:7px;font-weight:900;border:1px solid #5c4a82;background:#382b66;border-radius:999px;padding:5px 7px;color:#d9cef0}.sales-action-box>p{font-size:9px;color:#b9b2c7;line-height:1.5;margin:9px 0}.action-schedule{font-size:9px;color:#a9ccef;margin:8px 0}.sales-action-editor{display:grid;grid-template-columns:.7fr 2fr auto;gap:9px;align-items:end;margin-top:10px}.sales-action-editor label{display:flex;flex-direction:column;gap:5px;font-size:8px;color:#a9a1ba;font-weight:800}.sales-action-editor input,.sales-action-editor textarea{border:1px solid #544675;background:#191531;color:#f6f2ff;border-radius:8px;padding:9px;font:inherit;resize:vertical}.sales-action-buttons{display:flex;gap:7px;align-items:center}.action-error{display:block;color:#ffaaa7;margin-top:8px;font-size:8px}.muted-action{color:#8f889f}.sales-action-explainer{grid-template-columns:repeat(3,1fr)!important}
@media(max-width:1100px){.sales-reply-main{grid-template-columns:1fr 1fr}.sales-reply-copy{grid-column:1/-1}.sales-action-editor{grid-template-columns:1fr}.sales-intel-hero{align-items:flex-start}.sales-action-explainer{grid-template-columns:1fr 1fr!important}}
/* v0.15 calendar intelligence */
.calendar-connect-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.calendar-settings-form{display:grid;gap:16px}.calendar-settings-form .form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calendar-settings-form label{display:grid;gap:6px;font-size:13px;color:var(--muted,#aaa)}.calendar-settings-form input[type=time],.calendar-settings-form input[type=number]{width:100%;box-sizing:border-box}.toggle-line{display:flex!important;align-items:center;gap:10px!important}.weekday-row{display:flex;gap:8px;flex-wrap:wrap}.weekday-row label{display:flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px}.calendar-slots{display:grid;gap:10px}.calendar-slot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid rgba(167,139,250,.26);background:rgba(139,92,246,.08);border-radius:14px}.calendar-slot small,.calendar-prospect-box small{display:block;color:var(--muted,#aaa);margin-top:4px}.calendar-prospect-box{margin-top:16px;padding:14px;border-radius:14px;background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.2)}.calendar-connection-list form{margin-left:8px}.calendar-howto .how-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.calendar-howto .how-steps>div{padding:14px;border-radius:14px;background:rgba(139,92,246,.08);border:1px solid rgba(167,139,250,.2);display:grid;gap:6px}.calendar-howto .how-steps b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#7c3aed;color:white}@media(max-width:900px){.calendar-connect-grid,.calendar-settings-form .form-grid.two,.calendar-howto .how-steps{grid-template-columns:1fr}.calendar-slot{align-items:flex-start;flex-direction:column}}


/* Commercial i18n / language switcher v0.17 */
.language-switcher{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.055);border-radius:12px;color:#d9d4ff;font-size:12px;white-space:nowrap}
.language-switcher select{appearance:auto;background:#211744;color:#f6f3ff;border:1px solid rgba(177,159,255,.28);border-radius:8px;padding:7px 26px 7px 9px;font:inherit;cursor:pointer;min-width:104px}
.language-switcher select:focus{outline:2px solid rgba(129,92,246,.5);outline-offset:1px}
.language-switcher.compact{margin-left:auto}
.public-actions .language-switcher{margin-right:2px}
@media(max-width:980px){.public-links{display:none}.public-actions .language-switcher span{display:none}.language-switcher.compact span{display:none}.language-switcher select{min-width:92px}}
@media(max-width:720px){.public-actions>.btn:not(.primary){display:none}.public-nav{gap:10px}.language-switcher{padding:4px}.language-switcher select{min-width:82px;padding:6px}}

/* v0.18 tenant CRM */
.crm-hero{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:16px;background:linear-gradient(135deg,#3b2e72,#28224f)!important;border-color:#6f5bd1!important}.crm-hero h2{font-size:25px;margin:5px 0 8px}.crm-hero p{margin:0;max-width:820px;color:#c8c1df;line-height:1.55}.crm-hero-actions{display:flex;gap:9px;white-space:nowrap}.crm-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:16px}.crm-kpis article{border:1px solid #514777;border-radius:13px;background:linear-gradient(145deg,#342b63,#29234f);padding:14px}.crm-kpis small,.crm-kpis span{display:block;color:#bdb5d6}.crm-kpis b{display:block;font-size:23px;margin:6px 0}.crm-kpis span{font-size:10px}.crm-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr);gap:16px;align-items:start}.crm-main,.crm-side{display:flex;flex-direction:column;gap:16px}.crm-private{font-size:10px;color:#88e5bc}.crm-opportunity-board{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:8px;overflow-x:auto;padding-bottom:4px}.crm-stage{border:1px solid #4d436f;border-radius:11px;background:#241f45;padding:8px;min-height:130px}.crm-stage>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:9px;letter-spacing:.04em}.crm-stage>header span{background:#3c3267;border-radius:999px;padding:2px 6px}.crm-deal{display:block;text-decoration:none;border:1px solid #574b7d;border-radius:9px;background:#342b61;padding:8px;margin-bottom:7px;color:#fff}.crm-deal>b,.crm-deal>small{display:block}.crm-deal>b{font-size:10px}.crm-deal>small{font-size:8px;color:#bdb6d3;margin:4px 0 7px}.crm-deal>div{display:flex;justify-content:space-between;font-size:8px}.crm-deal em{font-style:normal;color:#7ce1aa}.crm-company-table .data-row{text-decoration:none;color:inherit}.crm-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.crm-form-grid label,.crm-mini-form{display:flex;flex-direction:column;gap:6px}.crm-wide{grid-column:1/-1}.crm-company-detail h4{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#c9c1e3;margin:18px 0 8px}.crm-detail-kv{display:grid;grid-template-columns:1fr 1fr;gap:8px}.crm-detail-kv span{border:1px solid #4c426c;background:#272149;border-radius:9px;padding:8px;color:#aca5c4;font-size:9px}.crm-detail-kv b{display:block;font-size:10px;margin-top:3px}.crm-person,.crm-task,.crm-note,.crm-opportunity-edit{border:1px solid #4b416c;border-radius:9px;background:#2b2550;padding:9px;margin-bottom:7px}.crm-person>b,.crm-person>small,.crm-person>span{display:block}.crm-person small,.crm-person span,.crm-task small,.crm-note small{color:#aaa3bd;font-size:9px;margin-top:3px}.crm-mini-form{gap:7px}.crm-mini-form input,.crm-mini-form select,.crm-mini-form textarea,.crm-form-grid input,.crm-form-grid select,.crm-form-grid textarea,.crm-opportunity-edit input,.crm-opportunity-edit select{width:100%;box-sizing:border-box;border:1px solid #554a80;border-radius:9px;padding:8px;background:#211c43;color:#fff}.crm-opportunity-edit>b{display:block;margin-bottom:7px}.crm-opportunity-edit>div{display:grid;grid-template-columns:1.2fr 1fr .65fr 1.1fr auto;gap:5px}.crm-note p{margin:0;white-space:pre-wrap;line-height:1.45}.crm-task{display:flex;justify-content:space-between;align-items:center;gap:8px}.btn.mini{padding:5px 8px;font-size:9px}.crm-timeline>div{display:grid;grid-template-columns:10px 1fr;gap:7px;position:relative;padding-bottom:10px}.crm-timeline i{width:7px;height:7px;border-radius:50%;background:#8f74ff;margin-top:5px;box-shadow:0 0 0 3px rgba(143,116,255,.14)}.crm-timeline p{margin:0}.crm-timeline b,.crm-timeline small{display:block}.crm-timeline b{font-size:10px}.crm-timeline small{color:#aaa3bd;font-size:8px;margin-top:3px}@media(max-width:1200px){.crm-kpis{grid-template-columns:repeat(3,1fr)}.crm-layout{grid-template-columns:1fr}.crm-opportunity-board{grid-template-columns:repeat(7,155px)}}@media(max-width:760px){.crm-hero{align-items:flex-start;flex-direction:column}.crm-hero-actions{white-space:normal;flex-wrap:wrap}.crm-kpis{grid-template-columns:1fr 1fr}.crm-form-grid{grid-template-columns:1fr}.crm-wide{grid-column:auto}.crm-opportunity-edit>div{grid-template-columns:1fr 1fr}.crm-detail-kv{grid-template-columns:1fr}}

/* v0.18 active commercial navigation */
.commercial-theme .nav-item.active{background:#4a3b82;color:#fff;font-weight:800;position:relative}
.commercial-theme .nav-item.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:#b9a7ff}


/* campaign weekdays layout final */
.campaign-weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(70px,1fr));
  gap:8px;
  width:100%;
}
.campaign-weekdays label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center;
  gap:6px!important;
  min-width:0;
  white-space:nowrap;
  padding:8px 6px!important;
  box-sizing:border-box;
}
.campaign-weekdays input[type="checkbox"]{
  flex:0 0 auto;
  margin:0;
}
@media(max-width:1000px){
  .campaign-weekdays{
    grid-template-columns:repeat(4,minmax(80px,1fr));
  }
}
@media(max-width:700px){
  .campaign-weekdays{
    grid-template-columns:repeat(2,minmax(100px,1fr));
  }
}


/* campaign weekdays layout v2 */
.campaign-weekdays{
    display:grid!important;
    grid-template-columns:repeat(7,110px)!important;
    gap:10px!important;
    width:100%!important;
    justify-content:start!important;
    align-items:center!important;
}

.campaign-weekdays label{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:110px!important;
    min-width:110px!important;
    max-width:110px!important;
    box-sizing:border-box!important;
    padding:9px 11px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}

.campaign-weekdays label span{
    display:inline-block!important;
    min-width:2.5em!important;
    white-space:nowrap!important;
    line-height:1.2!important;
}

.campaign-weekdays input[type="checkbox"]{
    flex:0 0 auto!important;
    width:auto!important;
    margin:0!important;
}

@media(max-width:1000px){
    .campaign-weekdays{
        grid-template-columns:repeat(4,110px)!important;
    }
}

@media(max-width:700px){
    .campaign-weekdays{
        grid-template-columns:repeat(2,110px)!important;
    }
}

/* campaign weekdays layout v3 — full width */
.campaign-weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
}

.campaign-weekdays label{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:9px 12px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

.campaign-weekdays label span{
  min-width:auto!important;
  white-space:nowrap!important;
}

@media(max-width:1000px){
  .campaign-weekdays{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  .campaign-weekdays{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* campaign section 2 spacious layout */
.campaign-schedule-section{
  padding-top:24px!important;
  padding-bottom:26px!important;
}

.campaign-schedule-section .section-body{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
}

.campaign-schedule-section .section-body h3{
  margin:0 0 20px!important;
}

.campaign-schedule-section .field-grid.four{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  margin-bottom:24px!important;
}

.campaign-schedule-section .field-grid.four label{
  gap:9px!important;
}

.campaign-schedule-section .field-grid.four input{
  min-height:44px!important;
}

.campaign-schedule-section .campaign-weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 18px!important;
}

.campaign-schedule-section .campaign-weekdays label{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:44px!important;
  justify-content:center!important;
  overflow:visible!important;
}

.campaign-schedule-section .hint{
  margin:0!important;
  line-height:1.55!important;
}

@media(max-width:1000px){
  .campaign-schedule-section .field-grid.four{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .campaign-schedule-section .campaign-weekdays{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* campaign weekdays compact controls */
.campaign-schedule-section .campaign-weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,78px)!important;
  gap:10px!important;
  justify-content:start!important;
  width:100%!important;
}

.campaign-schedule-section .campaign-weekdays label{
  width:78px!important;
  min-width:78px!important;
  max-width:78px!important;
  min-height:34px!important;
  padding:6px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  box-sizing:border-box!important;
}

.campaign-schedule-section .campaign-weekdays input[type="checkbox"]{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
}

.campaign-schedule-section .campaign-weekdays label span{
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* section 2 weekdays — compact final */
.campaign-schedule-section .campaign-weekdays{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:18px!important;
  margin:2px 0 14px!important;
}

.campaign-schedule-section .campaign-weekdays label{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  padding:3px 4px!important;
  gap:5px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}

.campaign-schedule-section .campaign-weekdays input[type="checkbox"]{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  flex:0 0 13px!important;
  margin:0!important;
}

.campaign-schedule-section .campaign-weekdays label span{
  display:inline!important;
  min-width:0!important;
  width:auto!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

/* section 2 weekdays — balanced size final */
.campaign-schedule-section .campaign-weekdays{
  gap:22px!important;
  margin:6px 0 16px!important;
}

.campaign-schedule-section .campaign-weekdays label{
  padding:5px 6px!important;
  gap:8px!important;
}

.campaign-schedule-section .campaign-weekdays input[type="checkbox"]{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  flex:0 0 20px!important;
}

.campaign-schedule-section .campaign-weekdays label span{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:600!important;
}


/* SETTINGS LOWER HALF FINAL */

/* 03 — Industries */
.settings-industries .checkbox-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}

.settings-industries .check-card,
.settings-exclusions .check-card{
  display:grid!important;
  grid-template-columns:16px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  min-height:42px!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
}

.settings-industries input[type="checkbox"],
.settings-exclusions input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  margin:0!important;
}

.settings-industries .check-card span,
.settings-exclusions .check-card span{
  min-width:0!important;
  width:auto!important;
  line-height:1.3!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}


/* 06 — Departments and roles */
.settings-roles .department-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:start!important;
}

.settings-roles .department-block{
  min-width:0!important;
  height:auto!important;
  padding:14px!important;
}

.settings-roles .department-title,
.settings-roles .role-line{
  display:grid!important;
  grid-template-columns:16px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  padding:5px 0!important;
  box-sizing:border-box!important;
}

.settings-roles .department-title{
  padding-bottom:9px!important;
  margin-bottom:5px!important;
}

.settings-roles input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  margin:1px 0 0!important;
}

.settings-roles .department-title span,
.settings-roles .role-line span{
  display:block!important;
  min-width:0!important;
  width:auto!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.35!important;
}


/* 07 — Exclusions */
.settings-exclusions .checkbox-grid.compact{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}


/* 09 — Outreach modes */
.settings-outreach .outreach-modes{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}

.settings-outreach .mode-card{
  grid-template-columns:16px minmax(0,1fr)!important;
  min-height:92px!important;
}

.settings-outreach .mode-card input[type="radio"],
.settings-outreach .toggle-line input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  flex:0 0 16px!important;
  margin:1px 0 0!important;
}

.settings-outreach .toggle-line{
  display:grid!important;
  grid-template-columns:16px minmax(0,1fr)!important;
  align-items:start!important;
  gap:9px!important;
}


/* Responsive */
@media(max-width:1100px){
  .settings-industries .checkbox-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .settings-roles .department-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .settings-exclusions .checkbox-grid.compact{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  .settings-industries .checkbox-grid,
  .settings-roles .department-grid,
  .settings-exclusions .checkbox-grid.compact,
  .settings-outreach .outreach-modes{
    grid-template-columns:1fr!important;
  }
}


/* SETTINGS 02 10 COMPACT COMPLETE */

.settings-geo .segmented{
  display:inline-flex!important;
  width:auto!important;
  gap:10px!important;
}
.settings-geo .segmented label{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  min-height:30px!important;
  padding:4px 8px!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.settings-geo .segmented input[type="radio"]{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  flex:0 0 13px!important;
  margin:0!important;
}

.settings-schedule .weekday-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  align-items:center!important;
}
.settings-schedule .weekday-row label{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  min-height:28px!important;
  padding:4px 6px!important;
  gap:5px!important;
  white-space:nowrap!important;
}
.settings-schedule .weekday-row input[type="checkbox"]{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  flex:0 0 13px!important;
  margin:0!important;
}
.settings-schedule .weekday-row label span{
  font-size:12px!important;
  white-space:nowrap!important;
}


/* CALENDAR CHECKBOXES FINAL */

/* główny przełącznik reguł spotkań */
.calendar-settings-form .toggle-line{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  gap:8px!important;
  padding:4px 0!important;
  white-space:normal!important;
  writing-mode:horizontal-tb!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.35!important;
}

.calendar-settings-form .toggle-line input[type="checkbox"]{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
}

/* dni tygodnia */
.calendar-settings-form .weekday-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
}

.calendar-settings-form .weekday-row label{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:44px!important;
  max-width:none!important;
  min-height:30px!important;
  padding:4px 7px!important;
  gap:5px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
  word-break:keep-all!important;
}

.calendar-settings-form .weekday-row input[type="checkbox"]{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  flex:0 0 13px!important;
  margin:0!important;
}

.calendar-settings-form .weekday-row label span{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}


/* LANDING zh-TW MARKET FINAL */
html[lang="zh-TW"] .ksef-public-tag{
  display:none!important;
}


/* CRM TASK META LAYOUT */
.crm-task > div > b,
.crm-task > div > small{
  display:block;
}
.crm-task > div > small{
  margin-top:4px;
}


/* CAMPAIGNS CHECKBOX SIZE FINAL */

/* główne przełączniki sekcji 1 / 4 / 5 / 6 */
.campaign-form .toggle-label{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:10px !important;
}

.campaign-form .toggle-label input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  flex:0 0 16px !important;
  margin:0 !important;
}

/* dni tygodnia — nieco bardziej kompaktowe */
.campaign-form .campaign-weekdays input[type="checkbox"]{
  width:15px !important;
  height:15px !important;
  min-width:15px !important;
  flex:0 0 15px !important;
  margin:0 !important;
}

.campaign-form .campaign-weekdays label{
  align-items:center !important;
  gap:6px !important;
}


/* FlowMind CCA v0.19 */

.cca-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.cca-online{
  min-width:180px;
  border:1px solid rgba(122,255,190,.28);
  background:rgba(50,190,120,.08);
  padding:14px 16px;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.cca-online .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6ee7a8;
  display:inline-block;
}

.cca-online small{
  opacity:.72;
}

.cca-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:16px;
  margin-top:16px;
}

.cca-main{
  min-width:0;
}

.cca-side{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.cca-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.cca-quick-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:18px;
}

.cca-quick-grid form{
  margin:0;
}

.cca-quick{
  width:100%;
  min-height:72px;
  text-align:left;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.035);
  color:inherit;
  cursor:pointer;
  transition:.15s ease;
}

.cca-quick:hover{
  border-color:rgba(92,159,255,.65);
  transform:translateY(-1px);
}

.cca-quick b,
.cca-quick small{
  display:block;
}

.cca-quick small{
  margin-top:4px;
  opacity:.67;
}

.cca-chat{
  min-height:280px;
  max-height:520px;
  overflow:auto;
  border-top:1px solid rgba(255,255,255,.09);
  border-bottom:1px solid rgba(255,255,255,.09);
  padding:16px 2px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cca-message{
  display:flex;
  gap:9px;
  align-items:flex-end;
}

.cca-user{
  justify-content:flex-end;
}

.cca-avatar{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
  background:linear-gradient(135deg,#775cff,#359cff);
}

.cca-bubble{
  max-width:78%;
  padding:11px 13px;
  border-radius:13px;
  background:rgba(255,255,255,.07);
  line-height:1.48;
  white-space:pre-line;
}

.cca-user .cca-bubble{
  background:linear-gradient(135deg,rgba(108,78,255,.78),rgba(52,145,255,.72));
}

.cca-bubble small{
  display:block;
  margin-top:6px;
  opacity:.55;
  font-size:10px;
}

.cca-compose{
  margin-top:14px;
}

.cca-compose textarea{
  width:100%;
  resize:vertical;
}

.cca-compose-actions{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  margin-top:8px;
}

.cca-status-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.cca-ok{
  color:#7be9ae;
}

.cca-warn{
  color:#f5cb71;
}

.cca-human .btn{
  width:100%;
  margin-top:10px;
}

@media(max-width:980px){
  .cca-layout{
    grid-template-columns:1fr;
  }
  .cca-side{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:680px){
  .cca-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .cca-online{
    width:100%;
  }
  .cca-quick-grid{
    grid-template-columns:1fr;
  }
  .cca-side{
    grid-template-columns:1fr;
  }
  .cca-bubble{
    max-width:90%;
  }
  .cca-compose-actions{
    align-items:stretch;
    flex-direction:column;
  }
}


.cca-recommendation{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(93,205,150,.32);
  border-radius:12px;
  background:rgba(50,180,115,.06);
}

.cca-recommendation-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}

.cca-recommendation-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.cca-recommendation-grid > div{
  padding:11px 12px;
  border-radius:9px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
}

.cca-recommendation-grid small,
.cca-recommendation-grid strong{
  display:block;
}

.cca-recommendation-grid small{
  opacity:.62;
  margin-bottom:4px;
}

.cca-recommendation form{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

@media(max-width:680px){
  .cca-recommendation-grid{
    grid-template-columns:1fr;
  }
}




/* FlowMind searchable country dropdown */
.country-picker-field {
  min-width: 0;
}

.country-picker {
  position: relative;
  width: 100%;
}

.country-picker summary::marker {
  content: "";
  display: none;
}

.country-picker-toggle::-webkit-details-marker {
  display: none;
}

.country-picker-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(8,7,35,.28);
  cursor: pointer;
  list-style: none;
}

#country-picker-summary {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.country-picker-arrow {
  flex: 0 0 auto;
  opacity: .75;
}

.country-picker[open] .country-picker-arrow {
  transform: rotate(180deg);
}

.country-picker-panel {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #21194c;
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
}

.country-search {
  width: 100%;
  min-height: 36px;
  margin: 0 0 10px 0;
  display: block;
}

.country-picker-list {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-picker-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 8px;
  margin: 0;
  border-radius: 5px;
  cursor: pointer;
}

.country-picker-row:hover {
  background: rgba(255,255,255,.06);
}

.country-picker-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0;
  padding: 0;
  justify-self: start;
  align-self: center;
}

.country-picker-name {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.country-picker-empty {
  padding: 10px 6px;
  text-align: center;
  opacity: .7;
}


/* FlowMind continent country groups */
.country-picker-list {
  max-height: 270px;
  overflow-y: auto;
  overflow-x: hidden;
}

.country-continent {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.country-continent:last-child {
  border-bottom: 0;
}

.country-continent-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.country-continent-summary::-webkit-details-marker {
  display: none;
}

.country-continent-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 4px;
  transition: transform .15s ease;
}

.country-continent[open] > .country-continent-summary::before {
  transform: rotate(90deg);
}

.country-continent-title {
  flex: 1;
}

.country-continent-count {
  opacity: .55;
  font-size: .9em;
  font-weight: 500;
}

.country-continent-items {
  padding: 2px 4px 7px 8px;
}

.country-picker-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px;
  padding: 4px 7px;
}

.country-picker-row input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  transform: scale(1.45);
  transform-origin: center;
  justify-self: start;
}

.country-picker-name {
  display: block;
  min-width: 0;
  line-height: 1.25;
}


/* FlowMind continent tiles picker */

.country-picker-list {
  max-height: none !important;
  overflow: visible !important;
}

.country-continent-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 10px;
}

.country-continent-tile {
  appearance: none;
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: inherit;
  text-align: left;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.country-continent-tile:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.25);
}

.country-continent-tile.active {
  border-color: #8f7cff;
  background: rgba(115,87,255,.20);
}

.country-continent-tile.has-selection:not(.active) {
  border-color: rgba(143,124,255,.48);
}

.country-continent-tile.search-match {
  border-color: rgba(67,183,255,.70);
}

.country-continent-tile-title {
  display: block;
  font-weight: 700;
  line-height: 1.15;
}

.country-continent-tile-count {
  display: block;
  font-size: 11px;
  opacity: .62;
}

.country-continent-panels {
  margin-top: 4px;
}

.country-continent-panel {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;

  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 7px;
}

.country-continent-panel[hidden] {
  display: none !important;
}

.country-continent-panel-title {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 5px 8px 7px;

  background: #21194c;

  font-weight: 700;
}

.country-continent-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.country-picker-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) !important;
  align-items: center !important;

  min-height: 36px;

  padding: 4px 7px;
  margin: 0;

  border-radius: 5px;
}

.country-picker-row:hover {
  background: rgba(255,255,255,.06);
}

.country-picker-row input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;

  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;

  margin: 0 0 0 4px !important;
  padding: 0 !important;

  transform: scale(1.4);
  transform-origin: center;

  justify-self: start;
}

.country-picker-name {
  display: block;
  min-width: 0;
}

@media (max-width: 900px) {
  .country-continent-tiles {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* FlowMind direct continent dropdown tiles */

.country-picker-field {
  min-width: 0;
}

.country-search-direct {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 7px 0 12px 0 !important;
}

.country-picker-list {
  display: grid !important;
  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  align-items: start;
  gap: 9px;

  max-height: none !important;
  overflow: visible !important;
}

/* ukryj surowe wiersze przed zbudowaniem JS */
.country-picker-list >
.country-picker-row {
  display: none !important;
}


.country-continent-card {
  display: block;
  min-width: 0;

  margin: 0;

  border:
    1px solid rgba(255,255,255,.15);

  border-radius: 9px;

  background:
    rgba(255,255,255,.035);

  overflow: hidden;
}

.country-continent-card[hidden] {
  display: none !important;
}

.country-continent-card.has-selection {
  border-color:
    rgba(143,124,255,.58);
}


/* ============================================
   KAFELEK KONTYNENTU
   ============================================ */

.country-continent-card >
.country-continent-tile {
  min-height: 61px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  width: 100%;

  padding: 10px 12px;

  margin: 0;

  list-style: none;

  cursor: pointer;

  background:
    rgba(255,255,255,.025);

  transition:
    background .15s ease,
    border-color .15s ease;
}

.country-continent-card >
.country-continent-tile::-webkit-details-marker {
  display: none;
}

.country-continent-card >
.country-continent-tile::marker {
  display: none;
  content: "";
}

.country-continent-card >
.country-continent-tile:hover {
  background:
    rgba(255,255,255,.07);
}

.country-continent-card[open] >
.country-continent-tile {
  background:
    rgba(115,87,255,.18);

  border-bottom:
    1px solid rgba(255,255,255,.12);
}


.country-continent-tile-title {
  min-width: 0;

  font-weight: 700;

  line-height: 1.2;
}


.country-continent-tile-meta {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 8px;

  font-size: 11px;

  opacity: .72;
}


.country-continent-tile-arrow {
  display: inline-block;

  font-size: 14px;

  transition:
    transform .15s ease;
}

.country-continent-card[open]
.country-continent-tile-arrow {
  transform: rotate(180deg);
}


/* ============================================
   LISTA PAŃSTW TEGO KONTYNENTU
   ============================================ */

.country-continent-dropdown {
  max-height: 270px;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 6px;
}


.country-continent-items {
  display: flex;
  flex-direction: column;

  gap: 1px;
}


.country-continent-dropdown
.country-picker-row {
  display: grid !important;

  grid-template-columns:
    35px minmax(0, 1fr) !important;

  align-items: center !important;

  gap: 8px !important;

  min-height: 37px;

  padding: 5px 7px;

  margin: 0;

  border-radius: 5px;

  cursor: pointer;
}


.country-continent-dropdown
.country-picker-row:hover {
  background:
    rgba(255,255,255,.06);
}


.country-continent-dropdown
.country-picker-row
input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;

  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;

  margin: 0 0 0 4px !important;
  padding: 0 !important;

  transform: scale(1.4);

  transform-origin: center;

  justify-self: start;
}


.country-continent-dropdown
.country-picker-name {
  display: block;

  min-width: 0;

  line-height: 1.25;
}


/* Tablet */
@media (max-width: 900px) {

  .country-picker-list {
    grid-template-columns:
      repeat(2, minmax(0,1fr)) !important;
  }
}


/* Telefon */
@media (max-width: 560px) {

  .country-picker-list {
    grid-template-columns:
      1fr !important;
  }
}



/* ==========================================================
   FlowMind Commercial theme switcher
   DARK = current product design
   LIGHT = bright FlowMind variant
   ========================================================== */

.top-preference-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-preference-controls .language-switcher {
  margin: 0;
}

.theme-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;

  background: rgba(255,255,255,.055);
  color: #ffffff;

  cursor: pointer;

  font: inherit;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .12s ease;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle-icon {
  display: block;
  font-size: 17px;
  line-height: 1;
}


/* ==========================================================
   LIGHT THEME — V1
   ========================================================== */

html[data-theme="light"] body {
  background: #f3f1f8;
  color: #211c38;
}


/* główne powierzchnie */

html[data-theme="light"] .app-shell,
html[data-theme="light"] .main,
html[data-theme="light"] main {
  color: #211c38;
}

html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .section,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .workspace-card,
html[data-theme="light"] .content-card {
  background: #ffffff;
  color: #211c38;
  border-color: rgba(72,55,115,.16);
}


/* formularze */

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff;
  color: #211c38;
  border-color: rgba(82,61,133,.25);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #777087;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  border-color: #765be8;
}


/* tekst pomocniczy */

html[data-theme="light"] .muted,
html[data-theme="light"] .hint,
html[data-theme="light"] .helper,
html[data-theme="light"] small {
  color: #6f687d;
}


/* kafle */

html[data-theme="light"] .check-card,
html[data-theme="light"] .country-continent-card,
html[data-theme="light"] .country-continent-tile,
html[data-theme="light"] .stat-card {
  background: #faf9fd;
  color: #211c38;
  border-color: rgba(82,61,133,.17);
}

html[data-theme="light"]
.country-continent-card[open]
> .country-continent-tile {
  background: #eeeafd;
  border-color: rgba(104,78,205,.28);
}

html[data-theme="light"]
.country-continent-card.has-selection {
  border-color: rgba(104,78,205,.52);
}


/* rozwijane listy */

html[data-theme="light"] .country-continent-dropdown,
html[data-theme="light"] .country-picker-panel {
  background: #ffffff;
  color: #211c38;
}

html[data-theme="light"] .country-picker-row:hover {
  background: #f0edf9;
}


/* przyciski drugorzędne */

html[data-theme="light"] .btn.secondary,
html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .btn-soft {
  background: #f1eef9;
  color: #30284b;
  border-color: rgba(82,61,133,.20);
}


/* linie i obramowania */

html[data-theme="light"] hr {
  border-color: rgba(72,55,115,.14);
}


/* theme tile w Light */

html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  color: #342b51;
  border-color: rgba(75,58,123,.22);
}

html[data-theme="light"] .theme-toggle:hover {
  background: #f0edf9;
  border-color: rgba(75,58,123,.38);
}


/* subtelna zmiana scrollbarów */

html[data-theme="light"] * {
  scrollbar-color:
    rgba(92,72,145,.38)
    rgba(92,72,145,.08);
}



/* ==========================================================
   FlowMind LIGHT — continent tiles readability tuning
   ========================================================== */

html[data-theme="light"] .country-continent-card {
  background: #ffffff !important;
  border-color: rgba(76, 58, 125, .18) !important;
}

html[data-theme="light"]
.country-continent-card >
.country-continent-tile {
  background: #f8f6fc !important;
  color: #211b35 !important;
  min-height: 66px;
  padding: 11px 13px;
}

html[data-theme="light"]
.country-continent-card >
.country-continent-tile:hover {
  background: #f1edf9 !important;
}

html[data-theme="light"]
.country-continent-card[open] >
.country-continent-tile {
  background: #e9e3f8 !important;
  color: #211b35 !important;
  border-bottom-color: rgba(86, 62, 145, .20) !important;
}

html[data-theme="light"]
.country-continent-card.has-selection {
  border-color: rgba(105, 79, 190, .50) !important;
}


/* nazwa kontynentu */

html[data-theme="light"]
.country-continent-tile-title {
  color: #211b35 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}


/* licznik + strzałka */

html[data-theme="light"]
.country-continent-tile-meta {
  color: #5c536d !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

html[data-theme="light"]
.country-continent-tile-count {
  color: #5c536d !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html[data-theme="light"]
.country-continent-tile-arrow {
  color: #57467d !important;
  font-size: 16px !important;
  opacity: 1 !important;
}


/* lista krajów po rozwinięciu */

html[data-theme="light"]
.country-continent-dropdown {
  background: #ffffff !important;
  color: #211b35 !important;
}

html[data-theme="light"]
.country-continent-dropdown
.country-picker-row {
  color: #29223b !important;
  font-size: 13px !important;
  min-height: 39px;
}

html[data-theme="light"]
.country-continent-dropdown
.country-picker-row:hover {
  background: #f2eef9 !important;
}

html[data-theme="light"]
.country-continent-dropdown
.country-picker-name {
  color: #29223b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}


/* Traditional Chinese potrzebuje odrobinę większego tekstu */

html[data-theme="light"][lang="zh-TW"]
.country-continent-tile-title {
  font-size: 15px !important;
}

html[data-theme="light"][lang="zh-TW"]
.country-picker-name {
  font-size: 14px !important;
}



/* ==========================================================
   FlowMind Dashboard readability
   Applies to DARK and LIGHT
   ========================================================== */


/* ----------------------------------------------------------
   TOP KPI CARDS
   ---------------------------------------------------------- */

.client-metrics small {
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 600;
}

.client-metrics b {
  font-size: 26px !important;
  line-height: 1.05 !important;
  margin-top: 4px !important;
}

.client-metrics b em {
  font-size: 13px !important;
  font-weight: 600;
}

.client-metrics p {
  font-size: 10.5px !important;
  line-height: 1.3 !important;
  margin-top: 5px !important;
}


/* DARK — stronger contrast */

.commercial-theme .client-metrics small,
.commercial-theme .client-metrics p,
.commercial-theme .client-metrics b em {
  color: #d4cee5 !important;
}


/* LIGHT */

html[data-theme="light"] .client-metrics small,
html[data-theme="light"] .client-metrics p,
html[data-theme="light"] .client-metrics b em {
  color: #625b70 !important;
}


/* ----------------------------------------------------------
   PIPELINE STRIP
   Previously captions were only 7px
   ---------------------------------------------------------- */

.pipeline-mini {
  gap: 9px !important;
}

.pipeline-mini div {
  min-height: 58px;
  padding: 10px 7px !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pipeline-mini b {
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.pipeline-mini span {
  display: block;

  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;

  margin-top: 6px !important;

  letter-spacing: .01em;
}


/* DARK pipeline */

.commercial-theme .pipeline-mini span {
  color: #ded8eb !important;
}


/* LIGHT pipeline */

html[data-theme="light"] .pipeline-mini div {
  background: #f7f5fb !important;
  border-color: rgba(78,60,125,.20) !important;
}

html[data-theme="light"] .pipeline-mini b {
  color: #241d39 !important;
}

html[data-theme="light"] .pipeline-mini span {
  color: #514a5e !important;
}


/* ----------------------------------------------------------
   TARGETING SUMMARY
   ---------------------------------------------------------- */

.filter-summary small {
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 600;
}

.filter-summary p span {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}


/* DARK */

.commercial-theme .filter-summary small {
  color: #cec8dc !important;
}


/* LIGHT */

html[data-theme="light"] .filter-summary small {
  color: #625b70 !important;
}


/* ----------------------------------------------------------
   DASHBOARD TABLES / SIDE CARDS
   ---------------------------------------------------------- */

.dash-table b {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.dash-table small {
  font-size: 10.5px !important;
  line-height: 1.3 !important;
}

.dashboard-map-card .map-caption {
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}


/* DARK */

.commercial-theme .dash-table small,
.commercial-theme .dashboard-map-card .map-caption {
  color: #c6bfd5 !important;
}


/* LIGHT */

html[data-theme="light"] .dash-table small,
html[data-theme="light"] .dashboard-map-card .map-caption {
  color: #625b70 !important;
}


/* ----------------------------------------------------------
   SMALL STATUS TAGS
   ---------------------------------------------------------- */

.fit-score {
  font-size: 11px !important;
}

.reply-tag {
  font-size: 10px !important;
  font-weight: 700;
}


/* ==========================================================
   Commercial topbar — unified user preferences layout
   ========================================================== */

.top-preference-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.top-preference-controls .account-pill-name {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.top-preference-controls .account-pill-name span {
  display: block;
}

.top-preference-controls .language-switcher.compact {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================
   Commercial topbar — equal height for all 3 controls
   ========================================================== */

.top-preference-controls {
  align-items: stretch;
}

.top-preference-controls .theme-toggle,
.top-preference-controls .language-switcher.compact,
.top-preference-controls .account-pill-name {
  height: 51px;
  min-height: 51px;
  box-sizing: border-box;
}

.top-preference-controls .account-pill-name {
  padding: 0 16px;
}

.top-preference-controls .language-switcher.compact {
  padding: 0 12px;
  gap: 8px;
}

.top-preference-controls .language-switcher.compact select {
  height: 36px;
  min-height: 36px;
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
}

/* Commercial leads — MAP location first, HQ secondary */
.company-location-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.company-primary-location {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-weight: 650;
}

.map-match-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(125, 103, 210, .34);
  border-radius: 7px;
  background: rgba(125, 103, 210, .10);
  color: inherit;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.company-hq-location {
  display: inline-flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  opacity: .72;
  font-size: 11px;
  line-height: 1.35;
}

.company-hq-location > span:first-child {
  margin-right: 4px;
  font-weight: 600;
}

html[data-theme="light"] .map-match-badge {
  background: rgba(105, 79, 190, .08);
  border-color: rgba(105, 79, 190, .26);
}

/* Commercial tables — readable column headers in PL / EN / zh-TW */
.commercial-data-table .data-head {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.commercial-data-table .data-head > span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Commercial tables — readable company names and fit scores in light mode */
html[data-theme="light"] .commercial-data-table .data-row > span:first-child b {
  color: #20243a;
}

html[data-theme="light"] .commercial-data-table .data-row > span:first-child small {
  color: #646a80;
  opacity: 1;
}

html[data-theme="light"] .commercial-data-table .data-row > span:nth-child(4) b {
  color: #30364d;
}

html[data-theme="light"] .commercial-data-table .data-row > span:nth-child(4) b.green {
  color: #087847;
}


/* Commercial v0.19 — structured LIST geography */

.structured-location-builder {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.structured-location-heading {
  margin-bottom: 12px;
}

.structured-location-heading .hint {
  margin: 5px 0 0;
}

.structured-location-empty {
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 10px;
  opacity: .72;
}

.structured-location-list {
  display: grid;
  gap: 12px;
}

.structured-location-country-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.structured-location-country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.structured-location-country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(109,94,252,.18);
}

.structured-location-paths {
  display: grid;
  gap: 9px;
}

.structured-location-path {
  display: grid;
  grid-template-columns:
    minmax(180px,1fr)
    minmax(180px,1fr)
    auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.10);
}

.structured-location-field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.structured-location-field > span {
  font-size: 11px;
  font-weight: 700;
  opacity: .74;
}

.structured-location-field input {
  width: 100%;
}

.structured-location-whole-country {
  align-self: center;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  opacity: .82;
}

.structured-location-add {
  margin-top: 10px;
}

.structured-location-remove {
  white-space: nowrap;
}

html[data-theme="light"] .structured-location-builder {
  border-top-color: rgba(32,36,58,.12);
}

html[data-theme="light"] .structured-location-empty {
  border-color: rgba(32,36,58,.18);
}

html[data-theme="light"] .structured-location-country-card {
  border-color: rgba(32,36,58,.12);
  background: rgba(32,36,58,.025);
}

html[data-theme="light"] .structured-location-path {
  background: rgba(32,36,58,.035);
}

@media (max-width: 900px) {
  .structured-location-path {
    grid-template-columns: 1fr;
  }

  .structured-location-remove,
  .structured-location-whole-country {
    justify-self: start;
  }
}

/* Commercial v0.19 — hierarchical targeting blocks */

.targeting-intro{
  margin:-5px 0 16px!important;
  max-width:920px;
}

.target-group-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:start;
  margin-bottom:14px;
}

.target-group{
  min-width:0;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fcfcfd;
  overflow:hidden;
}

.target-group summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:50px;
  padding:12px 14px;
  font-size:13px;
  font-weight:800;
  user-select:none;
}

.target-group summary::-webkit-details-marker{
  display:none;
}

.target-group summary::after{
  content:"＋";
  flex:0 0 auto;
  font-size:17px;
  line-height:1;
  color:#6941c6;
}

.target-group[open] summary::after{
  content:"−";
}

.target-group[open] summary{
  border-bottom:1px solid #e4e7ec;
}

.target-group-name{
  min-width:0;
  line-height:1.25;
}

.target-group-meta{
  flex:0 0 auto;
  border-radius:999px;
  background:#f4f3ff;
  color:#6941c6;
  padding:4px 7px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

.target-group-body{
  padding:11px 13px 13px;
}

.target-option-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.target-option,
.target-department{
  display:grid!important;
  grid-template-columns:16px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:start!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:6px 0!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.35!important;
}

.target-option input[type="checkbox"],
.target-department input[type="checkbox"]{
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  margin:1px 0 0!important;
}

.target-option span,
.target-department span{
  min-width:0;
  overflow-wrap:break-word;
}

.target-department{
  margin-bottom:7px!important;
  padding:8px 9px!important;
  border-radius:9px;
  background:#f4f3ff;
  font-weight:700!important;
}

.target-custom{
  margin-top:12px;
  border:1px dashed #d0d5dd;
  border-radius:12px;
  overflow:hidden;
}

.target-custom summary{
  cursor:pointer;
  padding:11px 13px;
  font-size:12px;
  font-weight:800;
}

.target-custom-body{
  padding:0 13px 13px;
}

.commercial-theme .target-group{
  background:linear-gradient(145deg,#342c60,#2b2551);
  border-color:#554a7f;
}

.commercial-theme .target-group[open] summary{
  border-bottom-color:#554a7f;
}

.commercial-theme .target-group summary{
  color:#f5f3ff;
}

.commercial-theme .target-group summary::after{
  color:#a992ff;
}

.commercial-theme .target-group-meta{
  background:#211b45;
  color:#c5b8ff;
}

.commercial-theme .target-department{
  background:#211b45;
}

.commercial-theme .target-custom{
  border-color:#554a7f;
}

html[data-theme="light"] .target-group{
  background:#faf9fd;
  color:#211c38;
}

html[data-theme="light"] .target-group summary{
  color:#211c38;
}

html[data-theme="light"] .target-department{
  background:#f2effb;
}

@media(max-width:1100px){
  .target-group-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .target-group-grid{
    grid-template-columns:1fr;
  }
}

/* Commercial v0.19 — collapsible selected-location country cards */

details.structured-location-country-card{
  overflow:hidden;
}

summary.structured-location-country-head{
  list-style:none;
  cursor:pointer;
  user-select:none;
}

summary.structured-location-country-head::-webkit-details-marker{
  display:none;
}

summary.structured-location-country-head::after{
  content:"▾";
  flex:0 0 auto;
  margin-left:8px;
  font-size:13px;
  opacity:.8;
  transition:transform .15s ease;
}

details.structured-location-country-card[open]
  > summary.structured-location-country-head::after{
  transform:rotate(180deg);
}

details.structured-location-country-card
  > .structured-location-paths{
  margin-top:0;
}

.commercial-theme
summary.structured-location-country-head:hover{
  background:rgba(255,255,255,.035);
}

html[data-theme="light"]
summary.structured-location-country-head:hover{
  background:#f4f1fb;
}

/* Commercial v0.19 — selected location header alignment */

summary.structured-location-country-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 26px!important;
  align-items:center!important;
  column-gap:12px!important;
  width:100%!important;
  box-sizing:border-box!important;
}

summary.structured-location-country-head
  > strong{
  min-width:0!important;
  justify-self:start!important;
}

summary.structured-location-country-head
  .structured-location-country-code{
  justify-self:end!important;
  margin:0!important;
  min-width:26px!important;
  text-align:center!important;
}

summary.structured-location-country-head::after{
  content:"▾"!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  width:24px!important;
  height:24px!important;
  margin:0!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:900!important;
  opacity:1!important;
  color:#d8d0ff!important;
  transform:none!important;
  transition:transform .15s ease!important;
}

details.structured-location-country-card[open]
  > summary.structured-location-country-head::after{
  transform:rotate(180deg)!important;
}

html[data-theme="light"]
summary.structured-location-country-head::after{
  color:#5f46c8!important;
}

/* Commercial v0.19 — target blocks count + arrow alignment */

.target-group > summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 26px!important;
  align-items:center!important;
  column-gap:12px!important;
  width:100%!important;
  box-sizing:border-box!important;
}

.target-group > summary
  .target-group-name{
  min-width:0!important;
  justify-self:start!important;
}

.target-group > summary
  .target-group-meta{
  justify-self:end!important;
  margin:0!important;
  min-width:72px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

.target-group > summary::after{
  content:"▾"!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  width:24px!important;
  height:24px!important;
  margin:0!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:900!important;
  opacity:1!important;
  color:#d8d0ff!important;
  transform:none!important;
  transition:transform .15s ease!important;
}

.target-group[open] > summary::after{
  transform:rotate(180deg)!important;
}

html[data-theme="light"]
.target-group > summary::after{
  color:#5f46c8!important;
}

/* Commercial v0.19 — highlight target groups with selections */

/* 03 + 06: at least one concrete option selected */
.target-group:has(input[data-target-option]:checked)
  > summary .target-group-meta{
  background:#193f39!important;
  border:1px solid #2f8e73!important;
  color:#b7f4dd!important;
}

/* 06: whole department selected also counts as active */
.target-group:has(
  input[name="decision_departments"]:checked
)
  > summary .target-group-meta{
  background:#193f39!important;
  border:1px solid #2f8e73!important;
  color:#b7f4dd!important;
}

/* Light theme */
html[data-theme="light"]
.target-group:has(input[data-target-option]:checked)
  > summary .target-group-meta,
html[data-theme="light"]
.target-group:has(input[name="decision_departments"]:checked)
  > summary .target-group-meta{
  background:#ecfdf3!important;
  border-color:#abefc6!important;
  color:#067647!important;
}


/* Commercial v0.19 — global active selection counters */

/*
 * Global UI rule:
 * only the small selection counter becomes green when count > 0.
 * Parent cards / sections keep their normal appearance.
 */
.selection-count-active{
  background:#193f39!important;
  border:1px solid #2f8e73!important;
  color:#b7f4dd!important;
}

.country-continent-tile-count.selection-count-active,
#country-count.selection-count-active,
[data-selection-count].selection-count-active{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:4px 7px!important;
  font-weight:800!important;
}

/* Light theme */
html[data-theme="light"] .selection-count-active{
  background:#ecfdf3!important;
  border-color:#abefc6!important;
  color:#067647!important;
}


/* Commercial v0.19 — effectiveness funnel */

.dashboard-effectiveness{
  margin-bottom:12px;
}

.effectiveness-funnel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  gap:10px;
  align-items:stretch;
  margin-top:14px;
}

.effectiveness-step{
  border:1px solid #514576;
  border-radius:12px;
  padding:14px 15px;
  background:#282151;
  min-width:0;
}

.effectiveness-step small{
  display:block;
  font-size:9px;
  font-weight:800;
  color:#aaa3bd;
  margin-bottom:5px;
}

.effectiveness-step b{
  display:inline-block;
  font-size:26px;
  line-height:1;
  margin-right:7px;
}

.effectiveness-step > span{
  font-size:10px;
  font-weight:800;
  color:#b9a6ff;
}

.effectiveness-step p{
  margin:8px 0 0;
  font-size:9px;
  line-height:1.45;
  color:#aaa3bd;
}

.effectiveness-arrow{
  align-self:center;
  font-size:18px;
  font-weight:900;
  color:#8f80c8;
}

.effectiveness-footer{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:11px;
}

.effectiveness-footer > div{
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid #4e4270;
  border-radius:999px;
  padding:7px 10px;
  font-size:9px;
}

.effectiveness-footer > div span{
  color:#aaa3bd;
}

.effectiveness-footer > div b{
  font-size:10px;
}

.effectiveness-footer > p{
  flex-basis:100%;
  margin:0;
  font-size:9px;
  line-height:1.45;
  color:#c6bfd5;
}

html[data-theme="light"] .effectiveness-step{
  background:#fff;
  border-color:#ded9ea;
}

html[data-theme="light"] .effectiveness-step small,
html[data-theme="light"] .effectiveness-step p,
html[data-theme="light"] .effectiveness-footer > div span,
html[data-theme="light"] .effectiveness-footer > p{
  color:#6f687a;
}

html[data-theme="light"] .effectiveness-footer > div{
  border-color:#ded9ea;
}

@media(max-width:1000px){
  .effectiveness-funnel{
    grid-template-columns:1fr 1fr;
  }

  .effectiveness-arrow{
    display:none;
  }
}

@media(max-width:620px){
  .effectiveness-funnel{
    grid-template-columns:1fr;
  }
}


/* Commercial v0.19 — Dashboard active GEO mode */

.dashboard-geo-summary .geo-target-state{
  margin-top:7px;
}

.dashboard-geo-summary .geo-target-state + .geo-target-state{
  margin-top:9px;
  padding-top:8px;
  border-top:1px dashed #4d4561;
}

.dashboard-geo-summary .geo-target-state-label{
  display:block;
  margin-bottom:5px;
  font-size:7.5px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
}

.dashboard-geo-summary .geo-target-state.active .geo-target-state-label{
  color:#62dda0;
}

.dashboard-geo-summary .geo-target-state.inactive .geo-target-state-label{
  color:#8f899d;
}

.dashboard-geo-summary .geo-target-state p{
  margin:0;
}

.filter-summary .geo-target-state.active .geo-mode-state{
  background:#1e4538;
  border-color:#35765a;
  color:#70e3a8;
  font-weight:900;
}

.filter-summary .geo-target-state.inactive p span{
  background:#262238;
  border-color:#4e4961;
  color:#9c96a8;
}

.filter-summary .geo-target-state.inactive .geo-mode-state{
  font-weight:900;
}

html[data-theme="light"] .dashboard-geo-summary .geo-target-state + .geo-target-state{
  border-top-color:#ddd8e4;
}

html[data-theme="light"] .dashboard-geo-summary .geo-target-state.inactive .geo-target-state-label{
  color:#85808d;
}

html[data-theme="light"] .filter-summary .geo-target-state.inactive p span{
  background:#f2f0f5;
  border-color:#d8d4df;
  color:#817b89;
}

/* Commercial v0.19 — Dashboard GEO readability */

.dashboard-geo-summary{
  min-width:0;
}

.dashboard-geo-summary .geo-target-state{
  margin-top:8px;
}

.dashboard-geo-summary .geo-target-state + .geo-target-state{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.14);
}

.dashboard-geo-summary .geo-target-state-label{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:18px;
  padding:3px 7px;
  margin-bottom:7px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}

.dashboard-geo-summary .geo-target-state.active .geo-target-state-label{
  color:#8df0bb;
  background:rgba(39,174,96,.16);
  border:1px solid rgba(87,221,145,.35);
}

.dashboard-geo-summary .geo-target-state.inactive .geo-target-state-label{
  color:#c0bacb;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
}

.dashboard-geo-summary .geo-target-state p{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin:0;
}

.dashboard-geo-summary .geo-target-state p span{
  margin:0;
}

html[data-theme="light"] .dashboard-geo-summary .geo-target-state + .geo-target-state{
  border-top-color:#ddd8e4;
}

html[data-theme="light"] .dashboard-geo-summary .geo-target-state.active .geo-target-state-label{
  color:#157343;
  background:#e9f8ef;
  border-color:#b7e7ca;
}

html[data-theme="light"] .dashboard-geo-summary .geo-target-state.inactive .geo-target-state-label{
  color:#716b78;
  background:#f3f1f5;
  border-color:#ddd8e4;
}


/* Commercial v0.19 — larger targeting checkboxes */

.target-group input[type="checkbox"],
.target-custom input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  flex:0 0 16px;
  margin-right:7px;
  cursor:pointer;
  accent-color:#9b7cff;
  vertical-align:middle;
}

.target-group label,
.target-custom label{
  cursor:pointer;
}

.target-group input[type="checkbox"]:indeterminate{
  accent-color:#9b7cff;
}

@media(max-width:700px){
  .target-group input[type="checkbox"],
  .target-custom input[type="checkbox"]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    flex-basis:18px;
  }
}

/* v0.19 — Customer Care highlighted navigation */
.commercial-theme .nav-customer-care{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  margin:16px 2px 14px;
  padding:12px 11px;
  min-height:58px;
  border:2px solid #82cfff;
  border-radius:14px;
  background:
    linear-gradient(
      145deg,
      #342766,
      #233b72
    );
  color:#fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 0 3px rgba(103,84,220,.18),
    0 9px 24px rgba(11,12,42,.42),
    0 0 22px rgba(73,162,255,.22);
  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

.commercial-theme .nav-customer-care:hover{
  background:
    linear-gradient(
      145deg,
      #493394,
      #245b98
    );
  border-color:#b8e7ff;
  color:#fff;
  transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 0 3px rgba(116,91,255,.24),
    0 12px 28px rgba(8,11,42,.48),
    0 0 28px rgba(82,177,255,.34);
}

.commercial-theme .nav-customer-care.active{
  background:
    linear-gradient(
      145deg,
      #5740b7,
      #2879b8
    );
  border-color:#d0f1ff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 0 0 3px rgba(121,99,255,.28),
    0 12px 30px rgba(15,20,65,.48),
    0 0 30px rgba(89,184,255,.36);
}

.commercial-theme .nav-customer-care.active::before{
  background:#fff;
}

.customer-care-icon{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(255,255,255,.17);
  border:1px solid rgba(255,255,255,.34);
  color:#fff;
  font-size:15px;
  font-weight:900;
  box-shadow:inset 0 0 12px rgba(255,255,255,.06);
}

.customer-care-copy{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  line-height:1.08;
}

.customer-care-copy strong{
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.01em;
}

.customer-care-copy small{
  display:block;
  margin-top:4px;
  color:#e5efff;
  font-size:9px;
  font-weight:650;
}

.customer-care-badge{
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.26);
  border-radius:999px;
  padding:3px 5px;
  background:rgba(15,21,65,.22);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.03em;
}

@media(max-width:1000px){
  .commercial-theme .nav-customer-care{
    justify-content:center;
    padding:10px 6px;
  }

  .customer-care-copy,
  .customer-care-badge{
    display:none;
  }

  .customer-care-icon{
    flex-basis:30px;
    width:30px;
    height:30px;
    font-size:16px;
  }
}

/* AUTOPILOT_COMPLIANCE_UI_V019 */
.autopilot-compliance-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(126, 151, 255, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(87, 72, 190, 0.18),
      rgba(38, 162, 220, 0.08)
    );
}

.autopilot-compliance-panel[hidden] {
  display: none !important;
}

.compliance-current-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 14px 0;
  padding: 11px 13px;
  border-radius: 10px;
}

.compliance-current-state.ok {
  border: 1px solid rgba(54, 211, 153, 0.42);
  background: rgba(18, 130, 89, 0.15);
}

.compliance-current-state.warning {
  border: 1px solid rgba(255, 187, 92, 0.42);
  background: rgba(177, 112, 28, 0.14);
}

.compliance-current-state span {
  color: var(--muted);
}

.compliance-question {
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.autopilot-compliance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.autopilot-compliance-choice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(145, 155, 210, 0.32);
  border-radius: 12px;
  background: rgba(20, 17, 62, 0.3);
  cursor: pointer;
}

.autopilot-compliance-choice:has(input:checked) {
  border-color: #62b9ff;
  box-shadow: 0 0 0 2px rgba(78, 137, 255, 0.18);
  background: rgba(65, 95, 190, 0.2);
}

.autopilot-compliance-choice input {
  margin-top: 3px;
}

.autopilot-compliance-choice span {
  display: grid;
  gap: 6px;
}

.autopilot-compliance-choice small {
  color: var(--muted);
  line-height: 1.45;
}

.autopilot-compliance-confirmation {
  margin-top: 15px;
  padding: 13px;
  border-radius: 10px;
  background: rgba(14, 11, 50, 0.3);
}

.compliance-audit-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .autopilot-compliance-options {
    grid-template-columns: 1fr;
  }
}

/* LEAD_QUALITY_EXPLANATION_V019 */
.lead-quality-explanation {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, .45);
  border-radius: 10px;
  background: rgba(139, 92, 246, .09);
}

.lead-quality-explanation b {
  display: block;
  margin-bottom: 6px;
}

.lead-quality-explanation p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.preview-journey { display: grid; gap: 10px; }
.preview-journey-step { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid #4a3a70; border-radius: 12px; background: #241d50; }
.preview-journey-step > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 8px; background: linear-gradient(135deg,#8055ed,#4b9efa); font-size: 11px; font-weight: 900; }
.preview-journey-step b { display: block; color: #fff; font-size: 13px; }
.preview-journey-step p { margin: 5px 0 0; color: #c6bedb; font-size: 11px; line-height: 1.45; }
.preview-journey-note { margin: 12px 2px 0; color: #b6aecb; font-size: 10px; line-height: 1.45; }

.auth-benefits-lead {
  color: #d5d0e5;
  line-height: 1.55;
  margin: 12px 0 5px;
}
.auth-value-list {
  list-style: none;
  padding: 0 !important;
  margin: 12px 0 0 !important;
}
.auth-value-list li {
  position: relative;
  padding: 10px 0 10px 23px !important;
  border-top: 1px solid rgba(185, 174, 225, .16);
}
.auth-value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: #8abaff;
  font-weight: 800;
}
.auth-value-list strong,
.auth-value-list span { display: block; }
.auth-value-list strong { color: #fff; font-size: 13px; }
.auth-value-list span { color: #c6bfd9; font-size: 12px; margin-top: 3px; }
.auth-benefits-note {
  margin: 18px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(139, 177, 255, .3);
  border-radius: 10px;
  background: rgba(91, 91, 185, .13);
  color: #dce7ff;
  font-size: 12px;
  line-height: 1.5;
}
