.report-page{display:grid;grid-template-columns:200px minmax(0,1fr);gap:0;min-height:calc(100vh - 100px)}.report-subnav{border-right:1px solid var(--color-border);padding:4px 12px 0 0;display:flex;flex-direction:column;gap:4px}.report-subnav h2{margin:0 0 12px 8px}.report-subnav button{background:none;border:0;text-align:left;padding:9px 12px;border-radius:8px;font-size:14px;font-weight:600;color:var(--color-text);cursor:pointer}.report-subnav button:hover{background:#f3f4f6}.report-subnav button.active{background:var(--color-primary-tint)}.report-body{padding:0 0 24px 24px;min-width:0}.report-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.report-filters .spacer{flex:1}.report-select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;border:1px solid var(--color-border);background:#fff;border-radius:8px;padding:9px 12px;font-size:14px;font-weight:500;color:var(--color-text);cursor:pointer}.range-picker{display:flex;align-items:center;gap:8px}.report-surface{background:#f6f7f9;border-radius:14px;padding:14px}.kpi-grid{display:grid;gap:14px}.kpi-card{background:#fff;border-radius:14px;padding:22px 24px;min-height:140px;border:1px solid #eef0f3}.kpi-label{display:flex;align-items:center;gap:8px;font-size:15px;color:#374151}.kpi-dot{width:9px;height:9px;border-radius:2px;flex-shrink:0}.kpi-info{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;border:1px solid #9ca3af;color:#9ca3af;font-size:10px;font-weight:600;cursor:help;font-style:italic}.kpi-value{margin-top:16px;font-size:34px;font-weight:700;letter-spacing:-.02em;color:#111827;line-height:1.1}.kpi-count{font-size:22px;font-weight:600;color:#6b7280}.kpi-delta{margin-top:6px;font-size:14px;color:#6b7280}.kpi-delta .up{color:#16a34a;font-weight:500}.kpi-delta .down{color:#dc2626;font-weight:500}.chart-stack{background:#fff;border-radius:14px;margin-top:14px;padding:12px 22px 16px;border:1px solid #eef0f3}.chart-stack.bare{margin-top:0;padding:0;border:0}.area-chart{padding:10px 0 2px;border-bottom:1px solid #f1f2f4}.area-chart:last-child{border-bottom:0}.area-chart-head{display:flex;align-items:baseline;gap:8px;font-size:13px;color:#374151;min-height:22px}.area-dot{width:8px;height:8px;border-radius:50%;display:inline-block;align-self:center}.area-total{font-weight:700;font-size:17px;color:#111827}.area-suffix{color:#6b7280;font-size:12px}.area-hover{margin-left:auto;color:#6b7280;font-size:12px}.area-axis-label{font-size:10px;fill:#6b7280}.area-chart svg{display:block;max-width:100%}.report-table{background:#fff;border-radius:14px;margin-top:14px;border:1px solid #eef0f3;overflow:hidden}.report-table-tabs{display:flex;gap:4px;padding:12px 16px 0;border-bottom:1px solid #eef0f3}.report-table-tabs button{background:none;border:0;padding:8px 12px;font-size:14px;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;border-radius:0}.report-table-tabs button.active{color:var(--color-primary);border-bottom-color:var(--color-primary)}.report-table table{width:100%;border-collapse:collapse;font-size:14px}.report-table th{text-align:right;font-weight:500;color:#6b7280;padding:12px 16px;border-bottom:1px solid #eef0f3;white-space:nowrap}.report-table th:first-child,.report-table td:first-child{text-align:left}.report-table td{text-align:right;padding:11px 16px;border-bottom:1px solid #f3f4f6}.report-table tr:last-child td{border-bottom:0}.report-table a,.report-table .link{color:var(--color-primary);text-decoration:none;cursor:pointer;background:none;border:0;padding:0;font-size:14px}.report-table .link:hover,.report-table a:hover{text-decoration:underline}.report-empty{padding:28px;text-align:center;color:#6b7280}.perf-trend,.step-table{margin-top:14px}.step-table .report-table-tabs{padding-top:12px}@media(max-width:1000px){.report-page{grid-template-columns:1fr}.report-subnav{flex-direction:row;border-right:0;border-bottom:1px solid var(--color-border);padding:0 0 8px}.report-body{padding-left:0}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.main:has(.report-page){max-width:none}.report-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:34px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}.report-select:hover{border-color:#d1d5db}input[type=date].report-select{background-image:none;padding-right:12px}.campaign-report .kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px}.campaign-report .kpi-card{padding:16px 16px 18px;min-height:128px}.campaign-report .kpi-label{font-size:13px;gap:6px;flex-wrap:wrap;line-height:1.25}.campaign-report .kpi-value{font-size:26px;margin-top:12px}.campaign-report .kpi-count{font-size:16px}.campaign-report .kpi-delta{font-size:12px}@media(max-width:1400px){.campaign-report .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.report-section-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 10px}.report-section-head h3{margin:0}.report-section-head button{background:none;border:0;color:var(--color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:0}.kpi-delta.muted{font-size:13px;opacity:.8}.verify-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;background:#f9fafb;border:1px solid var(--color-border);border-radius:10px}.verify-chips{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:13px}.verify-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.verify-chip-btn{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;margin:-4px -8px;background:transparent;border:1px solid transparent;border-radius:999px;color:inherit;font:inherit;cursor:pointer;box-shadow:none}.verify-chip-btn:hover:not(:disabled){background:#eef0f3}.verify-chip-btn.active{background:#fff;border-color:#9ca3af;box-shadow:0 1px 3px #1118271f}.verify-chip-btn:disabled{cursor:default;opacity:.55}.main:has(.ub-page){max-width:none;padding-bottom:16px}.ub-page h2{margin:0}.ub-side-title{position:sticky;top:-14px;background:var(--color-surface);z-index:1;padding-top:14px;margin-top:-14px}.ub-topbar{display:flex;align-items:center;gap:16px;margin-bottom:12px;min-height:32px}.ub-notice{font-size:13px;color:#166534;background:#dcfce7;padding:4px 10px;border-radius:6px}.ub-layout{display:grid;grid-template-columns:232px 340px minmax(0,1fr);height:calc(100vh - 130px);min-height:420px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface);overflow:hidden}.ub-side{border-right:1px solid var(--color-border);overflow-y:auto;padding:14px 10px}.ub-side-title{font-weight:600;font-size:14px;padding:0 8px 8px}.ub-status{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-radius:8px;padding:8px 10px;font-size:14px;font-weight:500;color:var(--color-text);text-align:left;cursor:pointer}.ub-status:hover{background:#f3f4f6}.ub-status.active{background:var(--color-primary-tint)}.ub-status-all{padding-left:26px}.status-icon{flex-shrink:0}.ub-section{margin-top:6px}.ub-section-head{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;padding:10px;font-size:14px;font-weight:600;color:var(--color-text);cursor:pointer}.ub-chevron{transition:transform .15s;color:var(--color-text-muted)}.ub-chevron.open{transform:rotate(180deg)}.ub-section-body{display:flex;flex-direction:column;padding:0 0 6px}.ub-filter{background:none;border:0;border-radius:6px;padding:6px 10px;text-align:left;font-size:13px;color:var(--color-text-muted);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-filter:hover{background:#f3f4f6}.ub-filter.active{color:var(--color-primary);background:var(--color-primary-tint);font-weight:600}.ub-toggle{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;margin-top:4px;font-size:12px;color:var(--color-text-muted);cursor:pointer;border-top:1px solid var(--color-border)}.ub-toggle input{margin-top:2px}.ub-list{border-right:1px solid var(--color-border);display:flex;flex-direction:column;min-height:0}.ub-list-head{padding:16px 16px 8px}.ub-list-title{font-weight:600;font-size:16px}.ub-search{margin:0 12px 10px;padding:8px 12px;border:1px solid var(--color-border);border-radius:8px;font-size:13px}.ub-list-scroll{overflow-y:auto;flex:1}.ub-thread{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #f1f2f4;border-radius:0;padding:12px 16px;cursor:pointer;font-weight:400}.ub-thread:hover{background:#f9fafb}.ub-thread.active{background:var(--color-primary-tint)}.ub-thread-top{display:flex;align-items:center;gap:8px}.ub-thread-name{flex:1;font-size:13px;color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-thread-date{font-size:12px;color:var(--color-text-muted);white-space:nowrap}.ub-thread-subject{margin-top:4px;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-thread.unread .ub-thread-subject,.ub-thread.unread .ub-thread-name{font-weight:700;color:var(--color-text)}.ub-thread-snippet{margin-top:2px;font-size:13px;color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-pad{padding:16px}.ub-due{margin:0 12px 10px;padding:8px 10px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;font-size:13px}.ub-due-title{font-weight:600;margin-bottom:4px}.ub-due-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.ub-due-open{background:none;border:0;padding:2px 0;text-align:left;cursor:pointer;font-size:13px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-link{background:none;border:0;padding:0 4px;color:var(--color-primary);font-size:12px;cursor:pointer;font-weight:500}.ub-detail{display:flex;flex-direction:column;min-width:0;min-height:0}.ub-empty{margin:auto;color:var(--color-text-muted);font-size:14px}.ub-detail-head{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--color-border)}.ub-avatar{width:32px;height:32px;border-radius:50%;background:#22c55e;color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.ub-detail-who{flex:1;min-width:0}.ub-detail-email{font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ub-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--color-border);border-radius:8px;padding:5px 8px;background:#fff}.ub-pill.disabled{opacity:.55}.ub-pill select{border:0;background:transparent;font-size:13px;font-weight:500;padding:0 2px;cursor:pointer;outline:none}.ub-icon-btn{background:#fff;border:1px solid var(--color-border);border-radius:8px;width:34px;height:32px;font-size:16px;line-height:1;color:var(--color-text);cursor:pointer;padding:0}.ub-icon-btn:hover{background:#f3f4f6}.ub-menu-wrap{position:relative}.ub-menu{position:absolute;right:0;top:38px;z-index:20;min-width:210px;background:#fff;border:1px solid var(--color-border);border-radius:10px;box-shadow:0 8px 24px #0000001f;padding:6px;display:flex;flex-direction:column}.ub-menu button{background:none;border:0;text-align:left;padding:8px 10px;border-radius:6px;font-size:13px;color:var(--color-text);cursor:pointer;font-weight:500}.ub-menu button:hover:not(:disabled){background:#f3f4f6}.ub-menu button:disabled{color:#9ca3af;cursor:not-allowed}.ub-menu button.danger{color:#dc2626}.ub-menu-hint{padding:6px 10px;font-size:12px;color:var(--color-text-muted)}.ub-strip{padding:6px 20px;font-size:12px;color:var(--color-text-muted);background:#f9fafb;border-bottom:1px solid var(--color-border)}.ub-panel{padding:10px 20px;border-bottom:1px solid var(--color-border);background:#fafafa;display:flex;flex-direction:column;gap:8px;max-height:240px;overflow-y:auto}.ub-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 10px;font-size:13px}.ub-inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ub-inline-form input[type=text]{flex:1;min-width:160px}.ub-notes{display:flex;flex-direction:column;gap:6px}.ub-note{background:#fff;border:1px solid var(--color-border);border-radius:8px;padding:8px 10px}.ub-note-body{font-size:13px;white-space:pre-wrap}.ub-note-meta{margin-top:4px;font-size:11px;color:var(--color-text-muted)}.ub-messages{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:14px;background:#fafafa}.ub-message{background:#fff;border:1px solid var(--color-border);border-radius:12px;padding:16px 18px;font-size:14px;line-height:1.55}.ub-message.outbound{border-left:3px solid var(--color-primary)}.ub-message-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:6px}.ub-message-body{max-height:360px;overflow:auto;overflow-wrap:anywhere}.ub-message-body img{max-width:100%;height:auto}.ub-message-from{font-weight:600}.ub-message-subject{font-weight:600;margin-bottom:8px}.ub-reply{display:flex;gap:10px;align-items:flex-end;padding:12px 20px;border-top:1px solid var(--color-border);background:#fff}.ub-reply textarea{flex:1;resize:vertical;font-family:inherit}@media(max-width:1100px){.ub-layout{grid-template-columns:200px 280px minmax(0,1fr)}}:root{--color-bg: #ffffff;--color-surface: #ffffff;--color-border: #e5e7eb;--color-text: #111827;--color-text-muted: #6b7280;--color-primary: #0066ff;--color-primary-hover: #0052cc;--color-primary-tint: #eaf2ff;--color-sidebar-icon: #6b7280;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--color-bg);color:var(--color-text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:64px;background:var(--color-surface);border-right:1px solid var(--color-border);padding:16px 0;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:4px;position:sticky;top:0;height:100vh;align-self:flex-start;box-sizing:border-box}.sidebar .logo{width:36px;height:36px;border-radius:10px;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;margin-bottom:20px}.sidebar nav{display:flex;flex-direction:column;gap:4px;width:100%;align-items:center}.sidebar nav a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:var(--color-sidebar-icon);text-decoration:none;position:relative}.sidebar nav a:hover{background:#f3f4f6}.sidebar nav a.active{background:var(--color-primary-tint);color:var(--color-primary)}.sidebar nav a .icon{width:20px;height:20px}.sidebar nav a[data-tooltip]:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);background:#111827;color:#fff;padding:5px 10px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .1s ease;z-index:20}.sidebar nav a[data-tooltip]:hover:after{opacity:1}.workspace-switcher{position:relative;margin-bottom:16px}.workspace-switcher-button{width:32px;height:32px;border-radius:50%;border:1px solid var(--color-border);background:#f3f4f6;color:var(--color-text);font-weight:600;font-size:13px;cursor:pointer}.workspace-switcher-button:hover{background:var(--color-primary-tint);color:var(--color-primary)}.workspace-switcher-panel{position:absolute;left:calc(100% + 10px);top:0;background:#fff;border:1px solid var(--color-border);border-radius:10px;box-shadow:0 4px 16px #0000001a;padding:8px;width:220px;z-index:30;display:flex;flex-direction:column;gap:2px}.workspace-switcher-row{display:flex;align-items:center;gap:2px}.workspace-switcher-item{flex:1;text-align:left;padding:8px 10px;border-radius:6px;border:none;background:transparent;cursor:pointer;font-size:14px;color:var(--color-text)}.workspace-switcher-delete{flex-shrink:0;width:24px;height:24px;border-radius:6px;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:15px;line-height:1}.workspace-switcher-delete:hover{background:#fee2e2;color:#b91c1c}.workspace-switcher-item:hover{background:#f3f4f6}.workspace-switcher-item.active{background:var(--color-primary-tint);color:var(--color-primary);font-weight:600}.workspace-switcher-create{display:flex;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid var(--color-border)}.workspace-switcher-create input{flex:1;min-width:0;padding:6px 8px;border:1px solid var(--color-border);border-radius:6px;font-size:13px}.main{flex:1;padding:28px 32px;max-width:1280px}h2{margin:0 0 20px;font-size:22px;font-weight:700;letter-spacing:-.01em}.toolbar{display:flex;gap:12px;margin-bottom:20px;align-items:center;flex-wrap:wrap}button,input,textarea,select{font-family:inherit;font-size:14px}button{background:var(--color-primary);color:#fff;border:none;padding:9px 16px;border-radius:8px;cursor:pointer;font-weight:600;transition:background .12s ease}button:hover{background:var(--color-primary-hover)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:#fff;color:var(--color-text);border:1px solid var(--color-border);font-weight:500}button.secondary:hover{background:#f9fafb}input[type=text],input[type=number],input[type=password],textarea,select{padding:8px 12px;border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text)}input[type=text]:focus,input[type=number]:focus,textarea:focus,select:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-tint)}.search-input{padding:8px 12px 8px 34px;border:1px solid var(--color-border);border-radius:8px;background:#f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center;min-width:220px}.search-input:focus{outline:none;border-color:var(--color-primary);background-color:#fff}.card-table{display:flex;flex-direction:column;gap:10px}.card-table-header{display:grid;gap:14px;align-items:center;padding:0 18px;color:var(--color-text-muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.card-row{display:grid;gap:14px;align-items:center;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:14px 18px;transition:box-shadow .12s ease,border-color .12s ease}.card-row:hover{box-shadow:0 1px 6px #1118270f;border-color:#d1d5db}.card-row-empty{padding:32px 18px;text-align:center;color:var(--color-text-muted);background:var(--color-surface);border:1px dashed var(--color-border);border-radius:12px}.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:8px;font-size:12px;font-weight:600;color:#fff;white-space:nowrap}.badge-green{background:#16a34a}.badge-red{background:#dc2626}.badge-yellow{background:#d97706}.badge-gray{background:#6b7280}.badge-blue{background:var(--color-primary)}.panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:20px;margin-bottom:20px}.field-row{display:flex;gap:10px;margin-bottom:10px;flex-wrap:wrap}.field-row label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--color-text-muted);font-weight:500}.error-text{color:#dc2626;font-size:13px}.tab-bar{display:flex;gap:20px;border-bottom:1px solid var(--color-border);margin-bottom:20px}.tab-item{background:none;border:none;border-radius:0;color:var(--color-text-muted);font-weight:600;font-size:14px;padding:10px 2px;cursor:pointer;border-bottom:2px solid transparent}.tab-item:hover{background:none;color:var(--color-text)}.tab-item.active{color:var(--color-primary);border-bottom-color:var(--color-primary)}.muted{color:var(--color-text-muted);font-size:13px}.unibox-layout{display:grid;grid-template-columns:320px 1fr;gap:20px;height:calc(100vh - 140px)}.unibox-list{overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:4px}.thread-item{display:flex;flex-direction:column;gap:6px;text-align:left;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:12px 14px;cursor:pointer;font-weight:400}.thread-item:hover{border-color:#d1d5db}.thread-item.active{border-color:var(--color-primary);background:var(--color-primary-tint)}.thread-item-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.thread-item-name{font-weight:600;font-size:13px}.thread-item-subject{font-size:13px;color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-item-bottom{display:flex;gap:6px}.unibox-detail{display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:20px;overflow:hidden}.thread-messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.thread-message{border-radius:10px;padding:12px 14px;max-width:80%;font-size:14px;line-height:1.5}.thread-message.inbound{background:#f9fafb;align-self:flex-start}.thread-message.outbound{background:var(--color-primary-tint);align-self:flex-end}.thread-message-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px}.thread-reply-box{display:flex;flex-direction:column;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--color-border)}.thread-reply-box textarea{resize:vertical;font-family:inherit}.thread-reply-box button{align-self:flex-end}.draft-preview p{margin:0 0 8px}.draft-preview p:last-child{margin-bottom:0}.email-preview p{margin:0 0 1em}.email-preview p:last-child{margin-bottom:0}
