:root{--primary:#1d4ed8;--accent:#14b8a6;--sidebar:#0f172a;--app-bg:#f6f8fb;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--card:#fff;--danger:#dc2626;--warning:#f59e0b;--radius:18px;--shadow:0 20px 50px rgba(15,23,42,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--app-bg);color:var(--text)}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:.78rem .9rem;background:#fff;color:var(--text)}textarea{resize:vertical}label{display:grid;gap:.4rem;font-weight:700;color:#334155}label input,label select,label textarea{font-weight:500}.button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:0;border-radius:999px;background:var(--primary);color:#fff;padding:.75rem 1rem;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(29,78,216,.18)}.button:hover{text-decoration:none;filter:brightness(.97)}.button-light{background:#eef2ff;color:var(--primary);box-shadow:none}.button-ghost{background:rgba(255,255,255,.08);color:#fff;box-shadow:none}.button-danger{background:var(--danger)}.full{width:100%}.small-link{display:inline-block;font-size:.85rem;font-weight:800;margin-top:.6rem}.muted{color:var(--muted)}.eyebrow{margin:0 0 .25rem;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-size:.72rem;font-weight:900}.badge{display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#334155;padding:.25rem .55rem;font-size:.76rem;font-weight:800;white-space:nowrap}.badge.high,.badge.danger{background:#fee2e2;color:#991b1b}.badge.normal{background:#e0f2fe;color:#075985}.badge.low{background:#dcfce7;color:#166534}.alert{border-radius:14px;padding:1rem;margin:0 0 1rem;font-weight:700}.alert.success{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}.alert.warning,.demo-banner.locked{background:#fff7ed;color:#9a3412}.demo-banner{background:#ecfeff;color:#155e75;border:1px solid rgba(20,184,166,.25);border-radius:16px;padding:.85rem 1rem;margin:0 0 1.1rem}.app-shell{min-height:100vh;display:grid;grid-template-columns:290px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:#fff;padding:1.2rem;display:flex;flex-direction:column;gap:1.2rem}.brand-row{display:flex;align-items:center;gap:.8rem;justify-content:space-between}.brand-link{display:flex;align-items:center;gap:.75rem;color:#fff;min-width:0}.brand-link:hover{text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:12px;background:#fff;object-fit:contain;padding:.25rem}.brand-link strong{display:block;line-height:1.1}.brand-link small{display:block;color:#cbd5e1;font-size:.75rem;line-height:1.2;margin-top:.2rem}.nav-toggle{display:none;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:12px;padding:.55rem}.side-nav{display:grid;gap:.3rem}.nav-link{display:flex;align-items:center;gap:.7rem;color:#cbd5e1;border-radius:14px;padding:.8rem .85rem;font-weight:800}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.1);color:#fff;text-decoration:none}.nav-link span:first-child{width:1.4rem;text-align:center}.sidebar-footer{margin-top:auto;display:grid;gap:.8rem}.user-card{display:flex;align-items:center;gap:.7rem;color:#e2e8f0}.avatar{width:38px;height:38px;border-radius:999px;background:var(--accent);display:inline-grid;place-items:center;color:#fff;font-weight:900}.user-card strong,.user-card small{display:block}.user-card small{color:#cbd5e1;text-transform:capitalize}.main{min-width:0;padding:1.4rem 1.6rem 3rem}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem}.topbar h1{margin:0;font-size:clamp(1.45rem,3vw,2.2rem)}.top-actions{display:flex;gap:.6rem;flex-wrap:wrap}.card,.kpi-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card{padding:1.15rem;margin-bottom:1.2rem}.narrow{max-width:900px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-head h2{margin:0}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.kpi-card{padding:1.1rem}.kpi-card span,.kpi-card small{display:block;color:var(--muted);font-weight:700}.kpi-card strong{display:block;font-size:clamp(1.45rem,3vw,2.2rem);margin:.25rem 0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.align-start{align-items:start}.stage-bars{display:grid;gap:.9rem}.stage-bar{display:grid;grid-template-columns:150px 1fr 110px;gap:.8rem;align-items:center}.stage-bar strong,.stage-bar span{display:block}.stage-bar span,.stage-bar em{color:var(--muted);font-size:.85rem}.bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--accent))}.list{display:grid;gap:.75rem}.list-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border:1px solid var(--border);border-radius:14px;padding:.85rem}.list-row strong,.list-row small{display:block}.list-row small{color:var(--muted);margin-top:.15rem}.timeline{display:grid;gap:.8rem}.timeline>div{display:grid;grid-template-columns:12px 1fr;gap:.65rem}.timeline span{width:12px;height:12px;background:var(--accent);border-radius:999px;margin-top:.25rem}.timeline p{margin:0}.timeline small{display:block;color:var(--muted);margin-top:.2rem}.responsive-table{overflow:auto}.responsive-table table{width:100%;border-collapse:collapse;min-width:720px}.responsive-table th{text-align:left;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}.responsive-table th,.responsive-table td{padding:.75rem;border-bottom:1px solid var(--border);vertical-align:top}.responsive-table td small{display:block;color:var(--muted);margin-top:.2rem}.actions{display:flex;gap:.65rem;align-items:center}.actions form{display:inline}.link-danger{border:0;background:transparent;color:var(--danger);font-weight:800;cursor:pointer;padding:0}.toolbar-form{display:flex;gap:.6rem;margin-bottom:1rem}.toolbar-form input{max-width:420px}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:.7rem}.stack{display:grid;gap:.9rem}.danger-zone{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}.pipeline-card{overflow:hidden}.pipeline{display:flex;gap:1rem;overflow:auto;padding-bottom:.8rem}.pipeline-stage{min-width:290px;background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:.75rem}.pipeline-stage header{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start;margin-bottom:.8rem}.pipeline-stage header strong,.pipeline-stage header small{display:block}.pipeline-stage header small{color:var(--muted)}.deal-list{min-height:80px;display:grid;gap:.75rem}.deal-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:.85rem;box-shadow:0 8px 18px rgba(15,23,42,.06);cursor:grab}.deal-card-head{display:flex;gap:.65rem;justify-content:space-between}.deal-card p{margin:.4rem 0;color:var(--muted)}.deal-meta{display:flex;justify-content:space-between;font-weight:900}.deal-card small{display:block;color:var(--muted);margin-top:.25rem}.gu-mirror{cursor:grabbing}.task-row.done{opacity:.68}.task-actions{display:grid;justify-items:end;gap:.45rem}.calendar-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr)}.crm-calendar{min-height:720px}.brand-preview{display:grid;gap:1rem}.brand-preview>img{max-height:82px;object-fit:contain;object-position:left}.preview-panel{border:1px solid var(--border);border-radius:18px;padding:1.2rem;background:linear-gradient(135deg,#fff,#f8fafc)}.preview-panel img{width:54px;height:54px;border-radius:14px;object-fit:contain}.preview-panel h3{margin:.8rem 0 .2rem}.config-notes{margin-top:1rem;border-top:1px solid var(--border);padding-top:1rem}.config-notes code{background:#f1f5f9;border-radius:8px;padding:.15rem .35rem}.auth-body{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at top left,color-mix(in srgb,var(--primary) 20%,transparent),transparent 35%),var(--app-bg)}.auth-shell{width:min(460px,100%)}.auth-logo{display:block;max-height:70px;margin:0 auto 1rem;object-fit:contain}.auth-card{background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:1.4rem}.auth-card h1{margin:.2rem 0}.demo-logins{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-top:1rem}.demo-logins button{border:1px solid var(--border);background:#f8fafc;border-radius:999px;padding:.45rem;font-weight:800;cursor:pointer}@media (max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.calendar-layout{grid-template-columns:1fr}.stage-bar{grid-template-columns:1fr}}@media (max-width:900px){.app-shell{display:block}.sidebar{height:auto;position:relative;border-radius:0 0 22px 22px}.nav-toggle{display:inline-flex}.side-nav{display:none}.sidebar.nav-open .side-nav{display:grid}.sidebar-footer{display:none}.main{padding:1rem}.topbar{align-items:flex-start;flex-direction:column}.kpi-grid{grid-template-columns:1fr}.grid-form{grid-template-columns:1fr}.span-2{grid-column:auto}.toolbar-form{display:grid}.toolbar-form input{max-width:none}.pipeline-stage{min-width:82vw}.demo-logins{grid-template-columns:repeat(2,1fr)}}

/* Demo write-lock affordances */
[data-demo-write-form] button[type="submit"],
[data-branding-form] button[type="submit"]{position:relative}
.pipeline.pipeline-locked .deal-card{cursor:not-allowed;opacity:.96}
.pipeline.pipeline-locked .deal-card::after{content:'Demo locked';display:inline-flex;margin-top:.45rem;padding:.2rem .45rem;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.72rem;font-weight:900}

/* FullCalendar CRM polish */
.calendar-card{overflow:hidden}.calendar-side-card{position:sticky;top:1.2rem}.calendar-legend{display:flex;gap:.75rem;flex-wrap:wrap;font-weight:900;color:var(--muted);font-size:.85rem}.calendar-legend span{display:inline-flex;align-items:center;gap:.35rem}.legend-dot{width:.7rem;height:.7rem;border-radius:999px;display:inline-block}.legend-dot.event{background:var(--primary)}.legend-dot.task{background:#475569}.crm-calendar{--fc-border-color:var(--border);--fc-page-bg-color:transparent;--fc-neutral-bg-color:#f8fafc;--fc-today-bg-color:color-mix(in srgb,var(--accent) 12%,transparent);--fc-button-bg-color:var(--primary);--fc-button-border-color:var(--primary);--fc-button-hover-bg-color:color-mix(in srgb,var(--primary) 88%,#000);--fc-button-hover-border-color:color-mix(in srgb,var(--primary) 88%,#000);--fc-button-active-bg-color:color-mix(in srgb,var(--primary) 78%,#000);--fc-button-active-border-color:color-mix(in srgb,var(--primary) 78%,#000);min-height:720px}.crm-calendar .fc{font-family:inherit}.crm-calendar .fc-toolbar{gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.crm-calendar .fc-toolbar-title{font-size:1.35rem;font-weight:950;color:var(--text)}.crm-calendar .fc-button{border-radius:999px!important;padding:.48rem .8rem!important;font-weight:900!important;box-shadow:none!important}.crm-calendar .fc-button-primary:disabled{opacity:.55}.crm-calendar .fc-scrollgrid,.crm-calendar .fc-theme-standard td,.crm-calendar .fc-theme-standard th{border-color:var(--border)}.crm-calendar .fc-scrollgrid{border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.06)}.crm-calendar .fc-col-header-cell{background:#f8fafc;padding:.45rem 0}.crm-calendar .fc-col-header-cell-cushion{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.crm-calendar .fc-daygrid-day-number{font-weight:900;color:var(--text);padding:.45rem}.crm-calendar .fc-day-today .fc-daygrid-day-number{background:var(--accent);color:#fff;border-radius:999px;min-width:1.8rem;text-align:center;margin:.25rem}.crm-calendar .fc-daygrid-day-frame{min-height:112px}.crm-calendar .fc-event{border:0!important;border-radius:14px!important;padding:0!important;box-shadow:0 8px 18px rgba(15,23,42,.16);overflow:hidden}.crm-calendar .fc-h-event .fc-event-main{color:#fff}.crm-calendar .crm-cal-event{margin:2px 4px!important}.crm-calendar .crm-cal-event.cal-task{background:#475569!important}.crm-calendar .crm-cal-event.priority-high{box-shadow:0 8px 18px rgba(185,28,28,.22)}.cal-event-inner{display:grid;gap:.1rem;padding:.42rem .52rem;line-height:1.15}.cal-event-inner strong{font-size:.82rem;white-space:normal}.cal-event-inner small,.cal-event-top{font-size:.68rem;opacity:.88;font-weight:900;text-transform:none}.crm-calendar .fc-list{border-radius:18px;overflow:hidden;background:#fff}.crm-calendar .fc-list-event-title a,.crm-calendar .fc-list-event-time{font-weight:900;color:var(--text)!important}.crm-calendar .fc-list-day-cushion{background:#f8fafc!important}.event-inspector{margin-top:1.2rem;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,#fff,#f8fafc);padding:1rem;box-shadow:0 12px 26px rgba(15,23,42,.06)}.event-inspector h3{margin:.2rem 0 .8rem}.event-detail-list{display:grid;gap:.55rem;margin:.7rem 0}.event-detail-list p{display:flex;justify-content:space-between;gap:1rem;margin:0;padding:.55rem .65rem;background:#fff;border:1px solid var(--border);border-radius:12px}.event-detail-list span{color:var(--muted);font-weight:800}.event-detail-list strong{text-align:right}@media (max-width:900px){.calendar-side-card{position:static}.crm-calendar{min-height:560px}.crm-calendar .fc-toolbar{align-items:flex-start;flex-direction:column}.crm-calendar .fc-toolbar-chunk{display:flex;flex-wrap:wrap;gap:.4rem}.event-detail-list p{display:grid}.event-detail-list strong{text-align:left}}

/* Admin user and permission management */
.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:860px}.table-wrap th{text-align:left;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}.table-wrap th,.table-wrap td{padding:.75rem;border-bottom:1px solid var(--border);vertical-align:top}.inline-search{display:flex;gap:.5rem;align-items:center}.inline-search input{min-width:260px}.button.small{padding:.48rem .72rem;font-size:.82rem}.pill,.status{display:inline-flex;align-items:center;border-radius:999px;padding:.28rem .6rem;font-size:.76rem;font-weight:900;background:#eef2ff;color:#334155}.status.active{background:#dcfce7;color:#166534}.status.disabled{background:#fee2e2;color:#991b1b}.detail-list{display:grid;gap:.65rem}.detail-list p{display:flex;justify-content:space-between;gap:1rem;margin:0;padding:.7rem .8rem;border:1px solid var(--border);border-radius:14px;background:#f8fafc}.detail-list span{font-weight:800;color:var(--muted)}.avatar.large{width:64px;height:64px;font-size:1.6rem}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.stat-grid.compact{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.stat-grid.compact div{border:1px solid var(--border);border-radius:16px;padding:.8rem;background:#f8fafc}.stat-grid.compact strong,.stat-grid.compact span{display:block}.stat-grid.compact strong{font-size:1.5rem}.stat-grid.compact span{color:var(--muted);font-weight:800}.permission-panel{border:1px solid var(--border);border-radius:18px;background:#f8fafc;padding:1rem}.permission-panel-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.permission-panel-head h3{margin:.1rem 0}.permission-group{border:1px solid var(--border);border-radius:16px;margin:1rem 0 0;padding:.8rem;background:#fff}.permission-group legend{font-weight:950;color:var(--primary);padding:0 .35rem}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.permission-option{display:flex;align-items:flex-start;gap:.65rem;border:1px solid var(--border);border-radius:14px;padding:.75rem;background:#fff;font-weight:700}.permission-option input{width:auto;margin-top:.2rem}.permission-option strong,.permission-option small{display:block}.permission-option small{font-weight:600;color:var(--muted);margin-top:.15rem}.permission-panel.admin-permissions{outline:3px solid color-mix(in srgb,var(--accent) 24%,transparent)}.permission-readonly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.permission-readonly-group{border:1px solid var(--border);border-radius:16px;background:#f8fafc;padding:1rem}.permission-readonly-group h3{margin:.1rem 0 .7rem}.permission-state{display:flex;align-items:center;gap:.45rem;margin:.45rem 0;font-weight:800;color:var(--muted)}.permission-state span{width:1.3rem;height:1.3rem;border-radius:999px;display:inline-grid;place-items:center;background:#e2e8f0}.permission-state.on{color:#166534}.permission-state.on span{background:#dcfce7;color:#166534}.activity-list{display:grid;gap:.65rem}.activity-list article{border:1px solid var(--border);border-radius:14px;padding:.75rem;background:#f8fafc}.activity-list strong,.activity-list span{display:block}.activity-list span{color:var(--muted);margin-top:.15rem}.empty{text-align:center;color:var(--muted);padding:1rem}@media (max-width:900px){.grid.two,.permission-readonly-grid{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.inline-search{width:100%;display:grid}.inline-search input{min-width:0}.stat-grid.compact{grid-template-columns:repeat(2,1fr)}}

/* CRM pipeline density, button polish and required-field affordances. */
.button.small{padding:.5rem .75rem;font-size:.82rem}.button.tiny{padding:.34rem .55rem;font-size:.74rem;border-radius:10px;box-shadow:none;line-height:1}.button-soft{background:#f1f5f9;color:#334155;box-shadow:none;border:1px solid var(--border)}.button-soft:hover,.button-light:hover{background:#e2e8f0;filter:none}.button.is-current{background:var(--primary);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(29,78,216,.16)}.button span{display:inline-grid;place-items:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;border-radius:999px;background:rgba(255,255,255,.24);font-size:.76rem}.button-light span,.button-soft span{background:#fff;color:inherit}.actions{display:flex;gap:.4rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.actions a:not(.button),.actions button:not(.button),.link-danger{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border:1px solid var(--border);border-radius:999px;background:#f8fafc;color:#334155;padding:.42rem .68rem;font-size:.78rem;font-weight:900;line-height:1;cursor:pointer;text-decoration:none}.actions a:not(.button):hover,.actions button:not(.button):hover{text-decoration:none;background:#e2e8f0}.link-danger{border-color:#fecaca;background:#fff1f2;color:#b91c1c}.link-danger:hover{background:#fee2e2}.card-actions{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.card-actions form{margin:0}.alert.info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}
.grid-form label,.stack label,.search-label{position:relative}.required-note{margin:.2rem 0 .8rem;color:var(--muted);font-size:.88rem}.required-note strong,.required-indicator{color:#b91c1c}.required-indicator{display:inline-flex;align-items:center;justify-content:center;width:max-content;margin:.05rem 0 -.2rem;padding:.14rem .42rem;border-radius:999px;background:#fee2e2;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.is-required input,.is-required select,.is-required textarea{border-color:#cbd5e1}.is-required input:focus,.is-required select:focus,.is-required textarea:focus{outline:2px solid rgba(29,78,216,.15);border-color:var(--primary)}input:invalid:not(:placeholder-shown),select:invalid:not(:placeholder-shown),textarea:invalid:not(:placeholder-shown){border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.compact-pipeline-card{overflow:hidden}.pipeline-head{gap:1rem;align-items:flex-start}.pipeline-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.pipeline-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:.65rem;align-items:end;margin:1rem 0}.pipeline-toolbar label{gap:.35rem;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.pipeline-toolbar input{min-height:42px}.compact-pipeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(245px,275px);gap:.7rem;overflow-x:auto;overflow-y:hidden;padding:.25rem .1rem .8rem;scroll-snap-type:x proximity}.compact-pipeline .pipeline-stage{scroll-snap-align:start;border:1px solid var(--border);border-radius:16px;background:#f8fafc;min-height:360px;max-height:calc(100vh - 290px);display:flex;flex-direction:column;box-shadow:none}.compact-pipeline .pipeline-stage header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem .78rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#f8fafc);border-radius:16px 16px 0 0}.compact-pipeline .pipeline-stage header strong{display:block;font-size:.92rem}.compact-pipeline .pipeline-stage header small{display:block;margin-top:.12rem;color:var(--muted);font-size:.73rem}.compact-pipeline .pipeline-stage header>span{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;border-radius:999px;background:#eef2ff;color:var(--primary);font-weight:900;font-size:.78rem}.compact-pipeline .deal-list{display:grid;gap:.44rem;padding:.58rem;overflow:auto;min-height:0}.compact-deal-card{border:1px solid #dbe3ef;border-radius:13px;background:#fff;padding:.58rem;box-shadow:0 8px 18px rgba(15,23,42,.045);cursor:grab;display:grid;gap:.36rem}.compact-deal-card:active{cursor:grabbing}.compact-deal-card:hover{border-color:#b6c6dc;box-shadow:0 12px 24px rgba(15,23,42,.08)}.compact-deal-card.is-archived{background:#f8fafc;border-style:dashed}.compact-deal-card .deal-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.45rem}.compact-deal-card .deal-card-head strong{font-size:.86rem;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.compact-deal-card .badge{font-size:.65rem;padding:.18rem .4rem;white-space:nowrap}.deal-company{font-size:.76rem;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0;padding:.35rem .45rem;background:#f8fafc;border-radius:10px;font-size:.74rem}.compact-meta span:first-child{font-weight:900;color:#0f172a}.deal-foot{display:flex;justify-content:space-between;gap:.35rem;align-items:center;color:var(--muted)}.deal-foot small{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-actions{padding-top:.12rem}.compact-empty{font-size:.8rem;border:1px dashed var(--border);border-radius:12px;padding:.85rem;background:#fff}.pipeline-archived .compact-deal-card{cursor:default}.pipeline-locked .compact-deal-card{cursor:not-allowed}.deal-card.is-hidden{display:none!important}.pipeline-zero-state{grid-column:1/-1;margin:.5rem 0 0;padding:.8rem;border:1px dashed var(--border);border-radius:14px;background:#fff;color:var(--muted);font-weight:800;text-align:center}
@media (max-width:900px){.pipeline-head{display:grid}.pipeline-actions{justify-content:flex-start}.pipeline-toolbar{grid-template-columns:1fr}.compact-pipeline{grid-auto-columns:minmax(82vw,86vw)}.compact-pipeline .pipeline-stage{max-height:68vh}.actions{justify-content:flex-start}}
.stacked-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.stacked-actions form{margin:0}

/* Calendar and task page split update. */
.calendar-page-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr)}.calendar-main-card{min-width:0}.calendar-agenda-card,.side-summary-card{position:sticky;top:1.2rem}.compact-alert{padding:.78rem .9rem;font-size:.9rem}.agenda-list{display:grid;gap:.65rem;margin-bottom:1rem}.agenda-item{display:grid;grid-template-columns:72px 1fr;gap:.75rem;align-items:center;border:1px solid var(--border);border-radius:16px;background:#fff;padding:.7rem;color:var(--text)}.agenda-item:hover{text-decoration:none;border-color:#bfd0e7;box-shadow:0 10px 24px rgba(15,23,42,.06)}.agenda-item strong,.agenda-item small{display:block}.agenda-item small{color:var(--muted);margin-top:.12rem}.agenda-date{display:grid;place-items:center;border-radius:14px;background:#eef2ff;color:var(--primary);font-size:.7rem;font-weight:900;text-transform:uppercase;padding:.45rem .25rem}.agenda-date strong{font-size:.94rem;color:var(--text);margin-top:.12rem}.checkbox-line{display:flex!important;align-items:center;gap:.55rem;border:1px solid var(--border);border-radius:14px;padding:.7rem .85rem;background:#fff}.checkbox-line input{width:auto}.detail-page-grid{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)}.rich-detail-list p{background:#fff}.note-panel{margin-top:1rem;border:1px solid var(--border);border-radius:18px;background:#f8fafc;padding:1rem}.note-panel h3{margin:.1rem 0 .55rem}.note-panel p{margin:0;color:#334155;line-height:1.6}.side-summary-card .alert{margin-top:1rem}.search-panel{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,1fr)) auto;gap:.75rem;align-items:end}.search-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.task-results{display:grid;gap:.75rem}.task-result-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;border:1px solid var(--border);border-radius:18px;background:#fff;padding:.9rem;box-shadow:0 10px 24px rgba(15,23,42,.04)}.task-result-card:hover{border-color:#bfd0e7;box-shadow:0 14px 30px rgba(15,23,42,.07)}.task-result-card.is-overdue{border-color:#fed7aa;background:#fff7ed}.task-title-line{display:flex;align-items:flex-start;gap:.55rem;justify-content:space-between}.task-title-line h3{margin:.05rem 0;font-size:1rem}.task-result-main p{margin:.35rem 0 .55rem}.task-chip-row{display:flex;gap:.45rem;flex-wrap:wrap}.task-chip-row span{display:inline-flex;border-radius:999px;background:#f1f5f9;color:#475569;padding:.25rem .55rem;font-size:.76rem;font-weight:850}.task-result-side{display:grid;gap:.55rem;justify-items:end}.task-view-card h2{max-width:760px}.task-status-stack{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.status.open{background:#dbeafe;color:#1d4ed8}.status.in_progress{background:#fef3c7;color:#92400e}.status.done{background:#dcfce7;color:#166534}.task-activity-list{margin-top:1.1rem}.task-activity-list h3{margin:.1rem 0 .7rem}@media (max-width:1050px){.calendar-page-grid,.detail-page-grid{grid-template-columns:1fr}.calendar-agenda-card,.side-summary-card{position:static}.search-panel{grid-template-columns:1fr 1fr}.search-actions{grid-column:1/-1}.task-result-card{grid-template-columns:1fr}.task-result-side{justify-items:start}.task-title-line{display:grid}}@media (max-width:640px){.search-panel{grid-template-columns:1fr}.agenda-item{grid-template-columns:1fr}.agenda-date{place-items:start}.form-actions,.stacked-actions{justify-content:flex-start}.crm-calendar .fc-daygrid-day-frame{min-height:88px}}
