:root,[data-theme=light]{color-scheme:light;--page-bg: #f4f6f8;--text: #1b2430;--text-muted: #667085;--text-subtle: #98a2b3;--link: #4e8a2e;--accent: #6eb846;--accent-strong: #4e8a2e;--accent-soft: #eef8e6;--accent-softer: #f6fbf2;--accent-ring: rgb(110 184 70 / 18%);--sidebar-bg: #162033;--sidebar-text: #fff;--sidebar-muted: #9aa6b8;--nav-text: #c5d0de;--nav-active-bg: #24324a;--nav-hover-bg: rgb(255 255 255 / 8%);--panel-bg: #fff;--panel-shadow: 0 1px 2px rgb(16 24 40 / 6%);--border: #e8edf3;--border-row: #eef2f6;--border-strong: #d0d7e2;--surface-muted: #f8fafc;--surface-soft: #fcfcfd;--input-bg: #fff;--input-readonly: #f4f6f8;--mono: #475467;--status-active-bg: #ecfdf3;--status-active-fg: #027a48;--status-inactive-bg: #f2f4f7;--status-inactive-fg: #667085;--error: #b42318;--select-shadow: 0 12px 32px rgb(16 24 40 / 12%);--login-bg: #162033;--chart-1: #6eb846;--chart-2: #3b82f6;--chart-3: #f5a524;--chart-4: #8b6cc9}[data-theme=dark]{color-scheme:dark;--page-bg: #09090b;--text: #f4f4f5;--text-muted: #a1a1aa;--text-subtle: #71717a;--link: #8fd15a;--accent: #6eb846;--accent-strong: #8fd15a;--accent-soft: #1c3316;--accent-softer: #121f0e;--accent-ring: rgb(110 184 70 / 28%);--sidebar-bg: #000;--sidebar-text: #fafafa;--sidebar-muted: #a1a1aa;--nav-text: #d4d4d8;--nav-active-bg: #18181b;--nav-hover-bg: rgb(255 255 255 / 6%);--panel-bg: #141416;--panel-shadow: 0 1px 2px rgb(0 0 0 / 45%);--border: #27272a;--border-row: #27272a;--border-strong: #3f3f46;--surface-muted: #18181b;--surface-soft: #111113;--input-bg: #18181b;--input-readonly: #111113;--mono: #a1a1aa;--status-active-bg: #052e16;--status-active-fg: #4ade80;--status-inactive-bg: #27272a;--status-inactive-fg: #a1a1aa;--error: #f87171;--select-shadow: 0 12px 32px rgb(0 0 0 / 55%);--login-bg: #000;--chart-1: #6eb846;--chart-2: #60a5fa;--chart-3: #fbbf24;--chart-4: #c4b5fd}:root{font-family:Inter,system-ui,sans-serif;color:var(--text);background:var(--page-bg)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:var(--page-bg)}a{color:var(--link)}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--sidebar-bg);color:var(--sidebar-text);padding:24px 20px;display:flex;flex-direction:column;gap:32px}.sidebar-nav{display:flex;flex-direction:column;gap:6px;flex:1;font-size:14px}.shell-main{display:flex;flex-direction:column;min-width:0;min-height:100vh}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:0 40px;background:var(--panel-bg);border-bottom:1px solid var(--border)}.brand{margin:0;font-size:18px;font-weight:700;letter-spacing:.08em}.brand-sub{margin:4px 0 0;color:var(--sidebar-muted);font-size:12px}.nav-link{color:var(--nav-text);text-decoration:none;display:block;padding:8px 10px;border-radius:6px}.nav-link:hover{background:var(--nav-hover-bg);color:var(--sidebar-text)}.nav-link.active{background:var(--nav-active-bg);color:var(--sidebar-text)}.nav-group{display:flex;flex-direction:column;gap:4px}.nav-group-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;margin:0;border:0;border-radius:6px;padding:8px 10px;background:none;color:var(--nav-text);cursor:pointer;font:inherit;text-align:left}.nav-group-toggle:hover{color:var(--sidebar-text);background:var(--nav-hover-bg)}.nav-group-chevron{flex-shrink:0;color:var(--sidebar-muted);transition:transform .15s ease}.nav-group.is-open .nav-group-chevron{transform:rotate(180deg)}.nav-group-items{display:flex;flex-direction:column;gap:4px}.nav-group-label{margin:0;padding:8px 10px 4px;color:var(--sidebar-muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}.nav-link.nav-sub{padding-left:18px}.theme-toggle{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.theme-toggle-option{min-width:68px;border:0;border-radius:6px;padding:6px 10px;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.theme-toggle-option.is-active{background:var(--accent);color:#fff}.user-menu{position:relative}.user-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);font:inherit;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer}.user-avatar.is-open,.user-avatar:focus-visible{outline:2px solid var(--accent-ring)}.user-menu-dropdown{position:absolute;z-index:40;top:calc(100% + 8px);right:0;min-width:180px;padding:6px;background:var(--panel-bg);border:1px solid var(--border);border-radius:10px;box-shadow:var(--select-shadow)}.user-menu-item{display:block;width:100%;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-weight:400;text-align:left;text-decoration:none;padding:8px 10px;cursor:pointer}.user-menu-item:hover,.user-menu-item:focus-visible{background:var(--accent-soft);color:var(--accent-strong);outline:none}.company-name-field{position:relative;width:100%}.company-name-field input{width:100%;box-sizing:border-box}.company-suggest{position:absolute;z-index:30;top:calc(100% + 6px);right:0;left:0;margin:0;padding:6px;list-style:none;background:var(--panel-bg);border:1px solid var(--border);border-radius:10px;box-shadow:var(--select-shadow)}.company-suggest-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-weight:400;text-align:left;padding:8px 10px;cursor:pointer}.company-suggest-item:hover,.company-suggest-item:focus-visible{background:var(--accent-soft);color:var(--accent-strong);outline:none}.company-suggest-secondary,.company-suggest-empty{color:var(--text-muted);font-size:12px}.company-suggest-empty{padding:8px 10px}.company-existing-note{display:flex;align-items:center;gap:8px;margin:0;color:var(--text-muted);font-size:13px;font-weight:500}.content{padding:32px 40px}h1{margin:0 0 12px;font-size:28px}h2{margin:0 0 16px;font-size:18px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-header p{margin:0;color:var(--text-muted)}.panel{background:var(--panel-bg);border-radius:12px;padding:24px;box-shadow:var(--panel-shadow);margin-bottom:24px;border:1px solid var(--border)}.table-scroll{overflow-x:auto}.table-card{padding:0;overflow:hidden}.table-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--border)}.table-search-wrap{position:relative;display:block;width:min(320px,100%);font-weight:400}.table-search-icon{position:absolute;top:50%;left:12px;color:var(--text-subtle);transform:translateY(-50%);pointer-events:none}.table-search{width:100%;padding-left:36px;background:var(--surface-muted)}.table-search:focus{outline:2px solid var(--accent-ring);border-color:var(--accent);background:var(--input-bg)}.table-toolbar-filters{display:flex;justify-content:flex-end;gap:12px;margin-left:auto}.table-toolbar-filters .select-field{width:220px}.table-card .form-error{margin:12px 20px 0}.data-table tr.is-selected td{background:color-mix(in srgb,var(--accent) 10%,transparent)}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--border-row);font-size:14px;vertical-align:middle}.data-table thead th{background:var(--surface-muted);color:var(--text-muted);font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.data-table tbody tr:hover{background:var(--surface-muted)}.data-table tbody tr:last-child td{border-bottom:0}.data-table td.empty-state{text-align:center;color:var(--text-muted);padding:48px 16px;border-bottom:0;font-weight:400}.data-table .cell-id,.data-table .cell-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--mono)}.data-table .cell-actions{text-align:right;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.status-pill.is-active{background:var(--status-active-bg);color:var(--status-active-fg)}.status-pill.is-inactive{background:var(--status-inactive-bg);color:var(--status-inactive-fg)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid var(--border);background:var(--surface-soft)}.pagination-meta,.pagination-page{margin:0;color:var(--text-muted);font-size:13px}.pagination-controls{display:flex;align-items:center;gap:8px}.table-loading{margin:0;padding:24px 20px;color:var(--text-muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid--stack{grid-template-columns:minmax(0,28rem);max-width:36rem}.form-grid h2,.form-grid .form-error,.form-grid .form-actions,.form-grid .form-success,.form-grid .config-copy,.form-grid .check-row,.form-grid .form-section-block,.form-grid .panel-heading,.form-grid .form-intro{grid-column:1 / -1}.form-intro{margin:-4px 0 0;color:var(--text-muted);font-size:14px;font-weight:400;line-height:1.45}.field-hint{color:var(--text-muted);font-size:12px;font-weight:400;line-height:1.4}.field-hint.is-ok{color:var(--status-active-fg)}.field-hint.is-warn{color:var(--error)}.password-field{position:relative;display:flex;align-items:center}.password-field input{width:100%;padding-right:64px}.password-field__toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:28px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.password-field__toggle:hover{background:var(--surface-muted)}.form-stack{display:flex;flex-direction:column;gap:28px}.form-section{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-section h2{grid-column:1 / -1;margin:0;padding-bottom:10px;border-bottom:1px solid var(--border);font-size:16px}.form-section-heading{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--border)}.form-section-heading h2{padding-bottom:0;border-bottom:none}.product-lines{grid-column:1 / -1;display:flex;flex-direction:column;gap:16px}.product-line{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}.product-line-header{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px}.product-line-title{margin:0;color:var(--text-muted);font-size:13px;font-weight:600}.product-line-remove{padding:0;color:var(--error)}.form-section .span-2,.form-section .activity-type-field,.form-section .follow-up-fields,.form-section .check-row,.form-section-intro,.detail-grid .span-2{grid-column:1 / -1}.form-section-intro{margin:-4px 0 0;color:var(--text-muted);font-size:13px;line-height:1.45}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:16px 0 0}.detail-grid dt{margin:0 0 4px;color:var(--text-muted);font-size:12px;font-weight:600}.detail-grid dd{margin:0;font-weight:400;word-break:break-word}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.field-label-row,.select-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.field-label-text{display:inline-flex;align-items:baseline;gap:4px}.field-mark{flex-shrink:0}.field-mark-required{color:var(--error);font-size:16px;font-weight:700;line-height:1;text-decoration:none;cursor:help}.field-mark-optional{color:var(--text-muted);font-size:11px;font-weight:600;letter-spacing:.02em}.field-legend{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 4px;color:var(--text-muted);font-size:12px;font-weight:500}.field-legend-item{display:inline-flex;align-items:center;gap:6px}input,select,textarea{font:inherit;padding:10px 12px;border:1px solid var(--border-strong);border-radius:8px;font-weight:400;color:var(--text);background:var(--input-bg)}textarea{min-height:88px;resize:vertical}input:read-only,input:disabled,textarea:disabled{background:var(--input-readonly);color:var(--text-muted)}input:disabled,textarea:disabled{cursor:not-allowed}.input-with-button{display:flex;gap:8px}.input-with-button input{flex:1;min-width:0}.input-with-button button{flex-shrink:0}.select-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:600}.select{position:relative}.select-required{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--input-bg);color:var(--text);font:inherit;font-weight:400;text-align:left;cursor:pointer}.select-trigger-value{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;flex:1}.select-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--text);font-size:12px;font-weight:600}.select-chip-remove{border:0;background:transparent;padding:0;color:var(--text-muted);cursor:pointer;font:inherit;line-height:1}.select-trigger.is-placeholder{color:var(--text-subtle)}.select-trigger.is-open,.select-trigger:focus-visible{border-color:var(--accent);outline:2px solid var(--accent-ring)}.select-trigger:disabled{cursor:default;opacity:.7}.select-chevron{flex-shrink:0;color:var(--text-muted)}.select-trigger.is-open .select-chevron{transform:rotate(180deg)}.select-menu{position:absolute;z-index:20;top:calc(100% + 6px);right:0;left:0;background:var(--panel-bg);border:1px solid var(--border);border-radius:10px;box-shadow:var(--select-shadow);overflow:hidden}.select-search{width:100%;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:10px 12px}.select-search:focus{outline:none;background:var(--accent-softer)}.select-options{padding:6px}.select-option{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-weight:400;text-align:left;padding:8px 10px;cursor:pointer}.select-option-tick{flex-shrink:0;color:var(--accent-strong)}.select-option.is-active{background:var(--accent-soft)}.select-option.is-selected{color:var(--accent-strong);font-weight:600}.select-empty{margin:0;padding:16px 10px;text-align:center;color:var(--text-muted);font-weight:400}.primary-button,.secondary-button,.btn{display:inline-flex;align-items:center;justify-content:center;width:auto;border:0;border-radius:8px;padding:10px 16px;font:inherit;text-decoration:none;cursor:pointer}.btn-sm{padding:7px 12px;font-size:13px}.btn-primary,.primary-button{background:var(--accent);color:#fff}.btn-primary:disabled,.primary-button:disabled{opacity:.7;cursor:default}.btn-secondary,.secondary-button{background:var(--panel-bg);color:var(--text);border:1px solid var(--border-strong)}.btn-link,.link-button{background:none;border:0;color:var(--accent-strong);padding:0;cursor:pointer;font:inherit;font-weight:600}.data-table a{font-weight:600;text-decoration:none}.data-table a:hover{text-decoration:underline}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;grid-column:1 / -1}.form-error{color:var(--error);margin:0}.login-page{position:relative;min-height:100vh;display:grid;place-items:center;background:var(--login-bg)}.login-theme{position:absolute;top:24px;right:24px;width:180px}.login-theme .theme-toggle{display:flex;width:100%;border:1px solid rgb(255 255 255 / 12%);background:#ffffff14}.login-theme .theme-toggle-option{flex:1;min-width:0;color:var(--sidebar-muted)}.login-card{width:100%;max-width:420px;background:var(--panel-bg);color:var(--text);padding:32px;border-radius:16px;display:flex;flex-direction:column;gap:14px;border:1px solid var(--border)}.login-card .btn,.login-card .primary-button{width:100%}.login-card .brand{color:var(--accent)}.login-copy,.muted{color:var(--text-muted);margin:0 0 8px}.badge-row{display:flex;gap:8px}.badge{background:var(--accent-soft);color:var(--accent-strong);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.service-grid{display:grid;grid-template-columns:minmax(0,320px);gap:12px;margin-bottom:24px}.service-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--panel-bg);color:inherit;font:inherit;cursor:pointer;box-shadow:var(--panel-shadow)}.service-card:disabled{cursor:default;opacity:.7}.service-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.service-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.service-card p{margin:0;color:var(--text-muted);font-size:13px;font-weight:400}.config-copy{margin:0;color:var(--text-muted);font-weight:400}.form-success{margin:0;color:var(--status-active-fg)}.check-row{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:500}.check-row input{width:auto;margin:0;accent-color:var(--accent)}.role-permission-check{cursor:pointer;align-items:flex-start}.role-permission-check.is-disabled{cursor:not-allowed}.role-permission-check.is-disabled input:disabled{cursor:not-allowed}.role-permission-copy{display:flex;flex-direction:column;gap:2px}.role-permission-hint{font-size:12px;line-height:1.35}.form-section-block{display:flex;flex-direction:column;gap:12px;padding-top:8px;border-top:1px solid var(--border)}.form-section-block h2{margin:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-heading h2{margin:0}.toggle{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;font-size:13px;font-weight:600}.toggle.is-disabled{color:var(--text-muted)}.toggle-switch{position:relative;width:44px;height:24px;padding:0;border:0;border-radius:999px;background:var(--border-strong);cursor:pointer}.toggle-switch.is-on{background:var(--accent)}.toggle-switch:disabled{cursor:not-allowed;opacity:.45}.toggle-switch:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s ease}.toggle-switch.is-on:after{transform:translate(20px)}.smtp-test-row{display:flex;align-items:flex-end;gap:12px}.smtp-test-row label{flex:1;min-width:0}.smtp-test-send{flex:0 0 auto;width:auto;white-space:nowrap}.page-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.header-actions-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:24px;background:#0f172a7a}.modal{width:min(560px,100%);max-height:min(90vh,760px);overflow:auto;background:var(--panel-bg);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:var(--select-shadow)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 0}.modal-header h2{margin:0;font-size:18px}.modal-close{width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font-size:24px;line-height:1;cursor:pointer}.modal-close:hover{background:var(--surface-muted);color:var(--text)}.modal-body{display:flex;flex-direction:column;gap:16px;padding:16px 20px 20px}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;justify-content:flex-end;background:#0f172a7a}.drawer{display:flex;flex-direction:column;width:min(440px,100%);height:100%;background:var(--panel-bg);color:var(--text);border-left:1px solid var(--border);box-shadow:var(--select-shadow)}.drawer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:18px 20px;border-bottom:1px solid var(--border)}.drawer-header h2{margin:0;font-size:18px}.drawer-form{display:flex;flex-direction:column;flex:1;min-height:0}.drawer-body{display:flex;flex-direction:column;flex:1;gap:16px;min-height:0;overflow:auto;padding:16px 20px 24px}.drawer-footer{flex-shrink:0;padding:16px 20px;border-top:1px solid var(--border)}.activity-type-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.activity-types{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.activity-type{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:10px 8px;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.activity-type.is-active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);outline:2px solid var(--accent-ring)}.follow-up-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 14px 14px 16px;border-left:3px solid var(--accent);border-radius:8px;background:var(--surface-muted)}.file-picker{display:flex;flex-direction:column;gap:0}.file-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 16px;border:1px dashed var(--border-strong);border-radius:10px;background:var(--surface-muted);text-align:center;cursor:pointer}.file-drop:hover,.file-drop.is-dragging{border-color:var(--accent);background:var(--accent-soft)}.file-drop.is-disabled{opacity:.6;cursor:not-allowed}.file-drop-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-drop.is-disabled .file-drop-input{cursor:not-allowed}.file-drop-icon{color:var(--accent-strong);margin-bottom:4px}.file-drop-title{font-size:13px;font-weight:600;color:var(--text)}.file-drop-browse{color:var(--accent-strong)}.file-drop-hint{font-size:12px;font-weight:500;color:var(--text-muted)}.file-list,.file-chip-list{display:flex;flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none}.file-chip-list{flex-direction:row;flex-wrap:wrap}.file-row{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 8px 8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--input-bg)}.file-row-kind{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;flex-shrink:0;background:var(--surface-muted);color:var(--text-muted)}.file-row-kind.is-image{background:var(--accent-soft);color:var(--accent-strong)}.file-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.file-row-size{flex-shrink:0;color:var(--text-muted);font-size:12px;font-weight:500}.file-row-remove{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0;border:0;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer}.file-row-remove:hover:not(:disabled){background:var(--surface-muted);color:var(--error)}.attachment-link{border:0;background:none;padding:0;color:var(--accent-strong);cursor:pointer;text-decoration:underline;font:inherit}.attachment-link:hover{color:var(--accent)}.history-stack{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.history-stack>.panel{margin-bottom:0}.timeline-panel{padding:0 0 20px;overflow:hidden}.timeline-panel.is-collapsed{padding-bottom:0}.lead-record-bar{padding:0;overflow:hidden}.lead-record-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;background:none;padding:16px 22px;color:var(--text);cursor:pointer;font:inherit;font-size:14px;font-weight:600}.lead-record-toggle:hover{background:var(--surface-muted)}.lead-record-chevron{flex-shrink:0;color:var(--text-muted);transition:transform .15s ease}.lead-record-toggle.is-open .lead-record-chevron{transform:rotate(180deg)}.history-tabs-bar{display:flex;align-items:stretch;gap:10px;padding:0 14px 0 18px;border-bottom:1px solid var(--border)}.history-tabs-label{display:inline-flex;align-items:center;flex-shrink:0;padding:16px 0 14px;color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.history-tabs{display:flex;flex:1;gap:2px;min-width:0}.history-tab{display:inline-flex;align-items:center;gap:8px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:none;padding:16px 12px 14px;color:var(--text-muted);cursor:pointer;font:inherit;font-size:14px;font-weight:600}.history-tab:hover{color:var(--text)}.history-tab.is-active{color:var(--text);border-bottom-color:var(--accent)}.dash-nav{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin:0 0 18px;border-bottom:1px solid var(--border)}.dash-nav.is-views-only{justify-content:flex-end}.dash-nav-spacer{flex:1;min-width:0}.dash-tabs{display:flex;flex-wrap:wrap;gap:2px;margin:0;padding:0;border:0;border-radius:0;background:none}.dash-tab{display:inline-flex;align-items:center;margin:0 0 -1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:10px 14px 12px;color:var(--text-muted);cursor:pointer;font:inherit;font-size:14px;font-weight:600}.dash-tab:hover{color:var(--text)}.dash-tab.is-active{color:var(--text);background:none;box-shadow:none;border-bottom-color:var(--accent)}.history-tab-count{min-width:1.5rem;border-radius:999px;padding:1px 7px;background:var(--surface-muted);color:var(--text-muted);font-size:12px;font-weight:700;text-align:center}.history-tab.is-active .history-tab-count{background:var(--accent-soft);color:var(--accent-strong)}.timeline-tab-copy{margin:14px 22px 16px;max-width:52ch;color:var(--text-muted);font-size:13px;line-height:1.45}.timeline-panel .form-error,.timeline-panel .muted,.timeline-panel .timeline-empty{margin-left:22px;margin-right:22px}.timeline-scroll{max-height:min(32rem,62vh);overflow-y:auto}.timeline{list-style:none;margin:0;padding:0}.timeline.timeline-scroll{padding:0 22px 4px}.timeline-event{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;padding-bottom:18px}.timeline-event:last-child{padding-bottom:0}.timeline-event:before{content:"";position:absolute;top:28px;bottom:0;left:13px;width:2px;background:var(--border-strong)}.timeline-event:last-child:before{display:none}.timeline-dot{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;color:var(--accent-strong);background:var(--accent-soft)}.timeline-event.is-email .timeline-dot{color:#2563eb;background:#eff6ff}.timeline-event.is-meeting .timeline-dot{color:#0f766e;background:#f0fdfa}.timeline-event.is-note .timeline-dot{color:var(--text-muted);background:var(--surface-muted)}.timeline-event.is-created .timeline-dot{color:#6d28d9;background:#f5f3ff}.timeline-event.is-overdue .timeline-dot{color:var(--error);background:#fef2f2}.timeline-event.is-today .timeline-dot{color:var(--accent-strong);background:var(--accent-soft)}.timeline-event.is-upcoming .timeline-dot{color:#027a48;background:#ecfdf3}.timeline-card{min-width:0;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.timeline-card-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:10px}.timeline-card-top time{color:var(--text-muted);font-size:13px}.timeline-card h3{margin:0 0 10px;font-size:16px;line-height:1.35}.timeline-facts{display:grid;gap:10px;margin:0}.timeline-facts dt{margin:0 0 2px;color:var(--text-subtle);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.timeline-facts dd{margin:0;color:var(--text);font-size:14px;line-height:1.5}.type-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;background:var(--accent-soft);color:var(--accent-strong)}.type-chip.is-email{background:#eff6ff;color:#1d4ed8}.type-chip.is-meeting{background:#f0fdfa;color:#0f766e}.type-chip.is-note{background:var(--surface-muted);color:var(--text-muted)}.type-chip.is-created{background:#f5f3ff;color:#6d28d9}.status-pill.is-overdue{background:#fef2f2;color:var(--error)}.status-pill.is-today{background:var(--accent-soft);color:var(--accent-strong)}.status-pill.is-upcoming{background:#ecfdf3;color:#027a48}.status-pill.is-done{background:#eef2ff;color:#3730a3}.task-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.task-add-files{display:inline-flex;align-items:center;cursor:pointer;margin:0}.task-add-files .linkish{font-size:13px}.timeline-empty{margin:0;padding:16px 18px;border:1px dashed var(--border-strong);border-radius:12px;background:var(--surface-muted);color:var(--text-muted);font-size:14px;line-height:1.5}.panel>.muted{margin-top:12px}[data-theme=dark] .timeline-event.is-email .timeline-dot,[data-theme=dark] .type-chip.is-email{color:#93c5fd;background:#172554}[data-theme=dark] .timeline-event.is-meeting .timeline-dot,[data-theme=dark] .type-chip.is-meeting{color:#5eead4;background:#042f2e}[data-theme=dark] .timeline-event.is-created .timeline-dot,[data-theme=dark] .type-chip.is-created{color:#c4b5fd;background:#2e1065}[data-theme=dark] .timeline-event.is-overdue .timeline-dot,[data-theme=dark] .status-pill.is-overdue{color:#fca5a5;background:#450a0a}[data-theme=dark] .timeline-event.is-upcoming .timeline-dot,[data-theme=dark] .status-pill.is-upcoming{color:#86efac;background:#052e16}@media(max-width:720px){.history-tabs-bar{flex-direction:column;gap:0;padding:10px 10px 0}.history-tabs-label{padding:0 4px 4px}.history-tabs{border-top:0}.history-tab{flex:1;justify-content:center;padding-left:8px;padding-right:8px}}@media(max-width:720px){.table-toolbar{flex-direction:column;align-items:stretch}.table-search-wrap,.table-toolbar-filters,.table-toolbar-filters .select-field{width:100%}.table-toolbar-filters{margin-left:0}.pagination{flex-direction:column;align-items:flex-start}.service-grid{grid-template-columns:1fr}.activity-types,.follow-up-fields{grid-template-columns:1fr 1fr}}.dash-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.dash-cards .panel,.dash-charts .panel,.dash-bottom .panel{margin-bottom:0}.home-welcome{margin-bottom:18px}.home-kicker{margin:0 0 6px;color:var(--accent-strong);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.home-welcome h1{margin:0 0 6px;letter-spacing:-.03em}.home-welcome p{margin:0}.home-welcome-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.home-welcome-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.panel-actions{margin:0 0 16px}.home-quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.home-dash-empty{display:flex;justify-content:center;align-items:center;min-height:min(70vh,40rem);padding:24px 16px 48px}.home-empty{display:flex;flex-direction:column;align-items:center;width:min(100%,52rem);gap:28px;text-align:center}.home-empty-copy{max-width:36rem}.home-empty-copy h1{margin:0 0 10px;font-size:clamp(1.6rem,2.4vw,2rem);letter-spacing:-.02em}.home-empty-copy .muted{margin:0;line-height:1.5}.home-empty-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15.5rem,1fr));gap:14px;width:100%;text-align:left}.home-empty-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;margin:0;padding:18px 16px;color:inherit;text-decoration:none;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.home-empty-card:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:var(--panel-shadow)}.home-empty-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.home-empty-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:10px;color:var(--accent-strong);background:var(--accent-soft)}.home-empty-card-body{display:flex;flex-direction:column;gap:4px;min-width:0}.home-empty-card-title{font-size:15px;font-weight:650}.home-empty-card-desc{font-size:13px;line-height:1.4}.home-empty-card-go{color:var(--text-muted);font-size:16px;line-height:1.2;margin-top:2px}.home-empty-card:hover .home-empty-card-go{color:var(--accent-strong)}.dash-subtabs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px;margin:0 0 0 auto;padding:0;border:0;border-radius:0;background:none}.dash-subtab{display:inline-flex;align-items:center;margin:0 0 -1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:10px 14px 12px;color:var(--text-muted);cursor:pointer;font:inherit;font-size:14px;font-weight:600}.dash-subtab:hover{color:var(--text)}.dash-subtab.is-active{color:var(--text);background:none;box-shadow:none;border-bottom-color:var(--accent)}.agent-quick-actions{display:flex;flex-direction:column;gap:12px;margin:0 0 22px;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-muted)}.agent-quick-actions-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}.agent-quick-actions-kicker{margin:0;color:var(--accent-strong);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.agent-quick-actions-hint{margin:0;font-size:13px}.agent-quick-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:12px}.agent-quick-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:14px 16px;border:1px solid var(--border);color:inherit;text-align:left;text-decoration:none;cursor:pointer;font:inherit;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}a.agent-quick-card,button.agent-quick-card{background:var(--panel-bg)}.agent-quick-card:hover:not(:disabled){border-color:var(--accent);transform:translateY(-1px);box-shadow:var(--panel-shadow)}.agent-quick-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.agent-quick-card:disabled{opacity:.55;cursor:not-allowed}.agent-quick-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:10px;color:var(--accent-strong);background:var(--accent-soft)}.agent-quick-card-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.agent-quick-card-title{font-size:15px;font-weight:650}.agent-quick-card-desc{font-size:12px;line-height:1.35}.agent-quick-card-go{color:var(--text-muted);font-size:16px}.agent-quick-card:hover:not(:disabled) .agent-quick-card-go{color:var(--accent-strong)}@media(max-width:720px){.dash-nav{flex-direction:column;align-items:stretch;gap:0}.dash-subtabs{justify-content:flex-start;margin-left:0}}.dash-cards-5{grid-template-columns:repeat(5,minmax(0,1fr))}.workboard-mid,.workboard-bottom{display:grid;gap:16px;margin-bottom:20px}.workboard-mid{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}.workboard-bottom{grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr)}.workboard-link{font-size:13px;font-weight:600}.workboard-subhead{margin:20px 0 10px;font-size:13px;font-weight:600}.workboard-bars{display:flex;align-items:flex-end;gap:8px;height:110px}.workboard-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;height:100%}.workboard-bar-track{flex:1;width:100%;max-width:28px;display:flex;align-items:flex-end;background:var(--accent-soft);border-radius:4px 4px 0 0}.workboard-bar-fill{width:100%;min-height:2px;background:var(--accent);border-radius:4px 4px 0 0}.workboard-bar span{font-size:11px;color:var(--text-muted)}.workboard-tasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.workboard-task{margin:0;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--accent-soft)}.workboard-task.is-overdue{border-color:#f0b4b4;background:#b5470814}.workboard-task p{margin:0}.workboard-task-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font-size:12px}.workboard-task .task-actions{margin-top:8px}.home-modules{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;max-width:920px}.home-module-card{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--panel-bg);color:inherit;text-decoration:none;box-shadow:var(--panel-shadow)}.home-module-card:hover{border-color:var(--accent);color:inherit}.home-module-card h2{margin:0;font-size:16px}.home-module-card p{margin:0;color:var(--text-muted);font-size:13px;line-height:1.45}.dash-card .dash-value{margin:10px 0 0;font-size:34px;font-weight:700;letter-spacing:-.04em;line-height:1}.dash-card{position:relative;overflow:hidden;padding:18px 20px 16px;border-radius:16px;transition:transform .15s ease,box-shadow .15s ease}.dash-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dash-card-icon{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:#eef2f7;color:#5b6b82}[data-theme=dark] .dash-card-icon{background:#2e2e33;color:#c4c4cc}.dash-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--accent)}.dash-card.is-warn:before{background:#d97706}.dash-card:hover{transform:translateY(-1px);box-shadow:0 10px 28px #10182814}[data-theme=dark] .dash-card:hover{box-shadow:0 10px 28px #00000059}.dash-card-label{margin:0;min-width:0;color:var(--text-muted);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.dash-hint{display:inline-flex;margin:12px 0 0;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:600}.dash-hint-up{color:var(--status-active-fg);background:var(--status-active-bg)}.dash-hint-warn{color:#b54708;background:#fff7ed}.dash-hint-muted{color:var(--text-muted);background:var(--surface-muted)}[data-theme=dark] .dash-hint-warn{color:#fdba74;background:#431407}.dash-charts{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;margin-bottom:16px}.dash-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dash-chart{padding:20px 22px 22px;border-radius:16px}.dash-chart h2{margin:0 0 18px;font-size:15px;font-weight:700;letter-spacing:-.01em}.dash-bars{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;min-height:260px}.dash-bars-y{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:0 0 34px;color:var(--text-muted);font-size:12px;line-height:1}.dash-bars-plot{position:relative;min-width:0}.dash-bars-grid{position:absolute;top:0;right:0;bottom:34px;left:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.dash-bars-grid span{display:block;border-top:1px solid var(--border-row)}.dash-bars-cols{position:relative;z-index:1;display:flex;align-items:stretch;gap:18px;height:100%;min-height:260px;padding:0 4px}.dash-bars-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.dash-bars-track{position:relative;flex:1;width:100%;display:flex;align-items:flex-end}.dash-bars-fill{width:100%;background:var(--accent);border-radius:3px 3px 0 0}.dash-bars-col:hover .dash-bars-fill{background:var(--accent-strong)}.dash-bars-tip{position:absolute;left:50%;z-index:2;display:none;min-width:104px;padding:8px 10px 9px;border:1px solid var(--border);border-radius:8px;background:var(--panel-bg);box-shadow:0 10px 28px #10182824;transform:translate(-50%);white-space:nowrap;pointer-events:none}.dash-bars-col:first-child .dash-bars-tip{left:0;transform:none}.dash-bars-col:last-child .dash-bars-tip{left:auto;right:0;transform:none}.dash-bars-col:hover .dash-bars-tip,.dash-bars-col:focus-within .dash-bars-tip{display:block}.dash-bars-tip strong{display:block;margin-bottom:2px;font-size:13px;font-weight:700}.dash-bars-tip span{color:var(--accent-strong);font-size:12px;font-weight:600}.dash-bars-label{margin-top:10px;height:24px;color:var(--text-muted);font-size:12px;line-height:1.2;text-align:center}[data-theme=dark] .dash-bars-tip{box-shadow:0 10px 28px #00000073}.dash-pipeline{display:flex;flex-direction:column;gap:12px;min-height:0}.dash-col{display:grid;grid-template-columns:minmax(72px,.9fr) minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0}.dash-col-track{height:10px;width:100%;max-width:none;display:block;overflow:hidden;background:var(--surface-muted);border-radius:999px}.dash-col-fill{height:100%;min-width:8px;background:linear-gradient(90deg,var(--accent-strong),var(--accent));border-radius:999px}.dash-col:nth-child(2) .dash-col-fill{background:linear-gradient(90deg,#2563eb,var(--chart-2))}.dash-col:nth-child(3) .dash-col-fill{background:linear-gradient(90deg,#d97706,var(--chart-3))}.dash-col:nth-child(4) .dash-col-fill{background:linear-gradient(90deg,#6d28d9,var(--chart-4))}.dash-col-count{margin:0;min-width:1.5rem;font-size:13px;font-weight:700;text-align:right}.dash-col-label{margin:0;font-size:13px;font-weight:600;color:var(--text);text-align:left;line-height:1.3}.dash-donut-wrap{display:flex;align-items:center;gap:22px}.dash-donut{width:168px;height:168px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;box-shadow:inset 0 0 0 1px #1018280a}.dash-donut-hole{width:104px;height:104px;border-radius:50%;background:var(--panel-bg);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 6px var(--panel-bg)}.dash-donut-hole strong{font-size:26px;letter-spacing:-.04em}.dash-donut-hole span{font-size:12px;color:var(--text-muted)}.dash-legend{list-style:none;margin:0;padding:0;flex:1}.dash-legend li{display:grid;grid-template-columns:10px 1fr auto;gap:10px;align-items:center;margin-bottom:10px;font-size:14px}.dash-legend li span:last-child{display:flex;align-items:baseline;gap:6px;font-weight:700}.dash-legend em{font-style:normal;color:var(--text-muted);font-size:12px;font-weight:600}.dash-swatch{width:10px;height:10px;border-radius:50%}.dash-people,.dash-activity{list-style:none;margin:0;padding:0}.dash-people li,.dash-activity li{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border-row)}.dash-people li:last-child,.dash-activity li:last-child{border-bottom:0;padding-bottom:0}.dash-people p{margin:0;font-weight:600}.dash-people-stats{text-align:right;font-size:13px}.dash-people-stats span{display:block;color:var(--status-active-fg)}.dash-avatar{width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent-strong);display:grid;place-items:center;font-size:12px;font-weight:700}.dash-activity li{grid-template-columns:auto minmax(0,1fr) auto;align-items:start}.dash-activity a{color:inherit;text-decoration:none}.dash-activity a:hover{color:var(--link)}.dash-type-chip{display:inline-flex;align-items:center;margin-top:2px;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;text-transform:capitalize;background:var(--accent-soft);color:var(--accent-strong)}.dash-type-chip.is-email{background:#eff6ff;color:#1d4ed8}.dash-type-chip.is-meeting{background:#f0fdfa;color:#0f766e}.dash-type-chip.is-note{background:var(--surface-muted);color:var(--text-muted)}[data-theme=dark] .dash-type-chip.is-email{background:#172554;color:#93c5fd}[data-theme=dark] .dash-type-chip.is-meeting{background:#042f2e;color:#5eead4}@media(max-width:960px){.dash-cards,.dash-cards-5,.dash-charts,.dash-bottom,.workboard-mid,.workboard-bottom,.home-welcome-row{grid-template-columns:1fr!important}.home-welcome-row{flex-direction:column}.dash-donut-wrap{flex-direction:column;align-items:flex-start}}
