:root{color-scheme:light;--ntl-navy: #061e44;--ntl-navy-2: #09224a;--ntl-blue: #2563eb;--ntl-bg: #f6f8fb;--ntl-card: #ffffff;--ntl-border: #e5eaf3;--ntl-text: #0f172a;--ntl-muted: #64748b;--ntl-success: #16a34a;--ntl-success-bg: #ecfdf5;--ntl-warning: #f97316;--ntl-warning-bg: #fff7ed;--ntl-danger: #dc2626;--ntl-danger-bg: #fef2f2;--ntl-purple: #7c3aed;--ntl-purple-bg: #ede9fe;--bg: var(--ntl-bg);--surface: var(--ntl-card);--surface-muted: #f8fafc;--text: var(--ntl-text);--muted: var(--ntl-muted);--subtle: #94a3b8;--line: var(--ntl-border);--line-soft: #edf1f7;--navy: var(--ntl-navy);--navy-soft: #eef4ff;--blue: #2563eb;--green: var(--ntl-success);--green-soft: var(--ntl-success-bg);--amber: var(--ntl-warning);--amber-soft: var(--ntl-warning-bg);--red: var(--ntl-danger);--red-soft: var(--ntl-danger-bg);--shadow: 0 10px 28px rgba(15, 23, 42, .04);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:0}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);overflow-x:hidden}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:260px;display:flex;flex-direction:column;padding:18px 14px 16px;background:#fff;border-right:1px solid #e5eaf3}.brand{min-height:58px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:0 0 18px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#09285a;color:#fff;box-shadow:0 10px 18px #09285a29}.brand-mark span{color:#fff;font-size:13px;font-weight:850;line-height:1;letter-spacing:0}.brand-copy strong,.brand-copy span{display:block}.brand-copy strong{overflow:hidden;color:#0f172a;font-size:16px;font-weight:760;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.brand-copy span{margin-top:4px;color:#64748b;font-size:12px;line-height:1.2}.sidebar-collapse{display:none!important;width:28px;height:28px;place-items:center;border:0;border-radius:999px;background:transparent;color:#718096}.sidebar-close{display:none!important}.side-nav{flex:1;display:flex;flex-direction:column;gap:6px;padding:10px 0;overflow-y:auto}.side-link{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:42px;padding:0 12px;border-radius:10px;color:#334155;font-size:14px;font-weight:600;line-height:1.2;transition:background-color .16s ease,box-shadow .16s ease,color .16s ease}.side-link svg{width:18px;height:18px;color:#64748b;stroke-width:2}.side-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-link:hover{background:#f3f7fd;color:#09285a}.side-link.active{background:#09285a;color:#fff;border-radius:10px;box-shadow:0 10px 22px #09285a29}.side-link.active svg{color:#fff}.side-link em{min-width:32px;padding:4px 8px;border-radius:999px;background:#eaf2ff;color:#09285a;font-style:normal;font-size:12px;font-weight:700;text-align:center}.side-link.active em{background:#ffffff2e;color:#fff}.plan-card{margin:16px 0 0;padding:14px;border:1px solid #e5eaf3;border-radius:14px;background:#fff;box-shadow:0 8px 20px #0f172a05}.plan-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.plan-card-head span,.plan-expiry{color:#64748b;font-size:12px}.plan-card-head strong{min-height:24px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:#eaf2ff;color:#09285a;font-size:12px;line-height:1}.plan-expiry{margin-top:14px;line-height:1.4}.plan-usage{margin:14px 0}.plan-usage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.plan-usage-row strong{color:#334155;font-size:12px}.mini-progress{height:8px;overflow:hidden;border-radius:999px;background:#eef2f7}.mini-progress span{display:block;height:100%;border-radius:inherit;background:#09285a}.plan-card button{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #e5eaf3;border-radius:10px;background:#fff;color:#09285a;font-weight:760;font-size:13px}.shell-main{min-width:0;flex:1;margin-left:260px;background:var(--bg)}.topbar{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 24px;background:#fff;border-bottom:1px solid #e5eaf3}.menu-button{display:none!important}.global-search,.filter-search{min-width:0;display:flex;align-items:center;gap:9px;color:var(--muted);border:1px solid var(--line);border-radius:10px;background:var(--surface)}.global-search{width:clamp(280px,24vw,340px);height:40px;padding:0 12px;margin-left:auto;border-color:#e5eaf3}.global-search input,.filter-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text)}.search-shortcut{flex:0 0 auto;min-width:34px;display:inline-flex;align-items:center;justify-content:center;padding:3px 7px;border-radius:7px;background:#f6f8fb;color:var(--muted);font-size:12px;font-weight:700;line-height:1}.workspace-switcher{height:40px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #e5eaf3;border-radius:10px;background:var(--surface);color:#213047;font-size:14px;font-weight:600;white-space:nowrap}.icon-button,.user-menu{height:40px;display:inline-grid;place-items:center;border:1px solid #e5eaf3;border-radius:10px;background:var(--surface);color:var(--text)}.icon-button{width:40px}.notification-button{position:relative}.notification-button span{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:2px solid #ffffff;background:#dc2626;color:#fff;font-size:11px;font-weight:800;line-height:1}.user-menu{width:auto;min-width:178px;grid-auto-flow:column;grid-auto-columns:max-content;gap:10px;padding:0 10px}.user-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:999px;background:#09285a;color:#fff;font-size:11px;font-weight:800}.user-copy{display:grid;gap:1px;text-align:left}.user-copy strong{color:var(--text);font-size:13px;line-height:1.1}.user-copy small{color:var(--muted);font-size:11px;line-height:1.1}.content{width:100%;padding:24px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.page-header h1{margin:0;font-size:28px;line-height:1.2}.page-header p,.panel-header p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.5}.page-actions{display:flex;align-items:center;gap:10px}.health-header-actions{display:inline-flex;align-items:center;gap:8px}.health-date-picker,.health-refresh-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;border:1px solid var(--hq-border, #e5e7eb);border-radius:8px;background:var(--hq-card, #ffffff);color:var(--hq-text, #111827);box-shadow:var(--hq-shadow-sm, 0 1px 2px rgba(15, 23, 42, .08));font-size:13px;font-weight:700;line-height:1;white-space:nowrap;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease}.health-date-picker{min-width:196px;justify-content:flex-start}.health-date-picker svg,.health-refresh-button svg{color:var(--hq-muted, #64748b)}.health-date-picker:hover,.health-refresh-button:hover{background:var(--hq-bg, #f8fafc);box-shadow:var(--hq-shadow-sm, 0 1px 2px rgba(15, 23, 42, .08));transform:translateY(-2px)}.health-date-picker:focus-visible,.health-refresh-button:focus-visible{outline:2px solid var(--hq-info, #3b82f6);outline-offset:2px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card,.panel,.table-wrap{border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 8px 24px #0f172a06}.metric-card{min-height:118px;display:flex;gap:12px;padding:16px}.metric-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px}.metric-info{background:var(--navy-soft);color:var(--navy)}.metric-success{background:var(--green-soft);color:var(--green)}.metric-warning{background:var(--amber-soft);color:var(--amber)}.metric-danger{background:var(--red-soft);color:var(--red)}.metric-neutral{background:var(--surface-muted);color:var(--muted)}.metric-body{min-width:0;flex:1}.metric-body p{margin:0;color:var(--muted);font-size:13px;font-weight:600}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px}.metric-row strong{font-size:28px;line-height:1}.content-grid{display:grid;gap:18px}.two-col{grid-template-columns:minmax(0,1fr) minmax(320px,.62fr)}.panel{padding:18px}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-header h2{margin:0;font-size:17px}.stack{display:flex;flex-direction:column;gap:14px}.status-chip{min-height:24px;display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;padding:3px 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap}.chip-neutral{border-color:var(--line);background:var(--surface-muted);color:#4b5565}.chip-info{border-color:#c7d7fe;background:#eef4ff;color:#1d4ed8}.chip-success{border-color:#b9e6d0;background:var(--green-soft);color:var(--green)}.chip-warning{border-color:#f6d99b;background:var(--amber-soft);color:var(--amber)}.chip-danger{border-color:#f3b8b4;background:var(--red-soft);color:var(--red)}.chip-navy{border-color:#bdd0ea;background:var(--navy-soft);color:var(--navy)}.filter-bar{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.filter-search{flex:1;height:38px;padding:0 10px}.filter-controls{display:flex;align-items:center;gap:10px}.select-control{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:700}.select-control select{height:36px;min-width:112px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:0 9px}.filter-actions{margin-left:auto}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;min-width:780px;border-collapse:collapse}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:middle;font-size:14px}.data-table th{background:#fbfcfe;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfcfe}.align-right{text-align:right!important}.align-center{text-align:center!important}.cell-stack{display:grid;gap:4px;min-width:0}.cell-stack span{color:var(--muted);font-size:13px;line-height:1.4}.row-actions{display:flex;justify-content:flex-end;gap:8px}.primary-button,.secondary-button,.danger-button,.link-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:0 12px;font-weight:800;font-size:13px}.primary-button{border:1px solid var(--navy);background:var(--navy);color:#fff}.secondary-button{border:1px solid var(--line);background:var(--surface);color:var(--text)}.danger-button{border:1px solid var(--red);background:var(--red);color:#fff}.link-button{min-height:auto;padding:0;border:0;background:transparent;color:var(--navy);text-align:left}.progress-block{min-width:0}.live-ops-page{display:grid;gap:18px}.live-error{padding:12px 14px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:13px;font-weight:700}.live-metric-grid,.live-main-grid,.live-bottom-grid{display:grid;gap:16px}.live-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.live-main-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)}.live-bottom-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.live-metric-card{min-height:92px;display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px #0f172a06}.live-metric-dot{width:12px;height:12px;flex:0 0 auto;border-radius:999px}.live-metric-info{background:var(--blue)}.live-metric-success{background:var(--green)}.live-metric-warning{background:var(--amber)}.live-metric-card span,.live-detail-list dt,.live-form-grid label span,.live-message-box span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.live-metric-card strong{display:block;margin-top:6px;font-size:22px;line-height:1.15}.live-sample-list,.live-detail-stack{display:grid;gap:10px}.live-sample-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line-soft);border-radius:8px;background:#fff;color:var(--text);text-align:left}.live-sample-row.active{border-color:#bcd0ff;background:#f8fbff}.live-sample-main{min-width:0;display:grid;gap:5px}.live-sample-main strong{font-size:14px}.live-sample-main span,.live-sample-meta small,.live-suggestion-box small,.live-analyze-box span{overflow:hidden;color:var(--muted);font-size:13px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.live-sample-meta{display:flex;align-items:center;gap:8px}.live-message-box,.live-suggestion-box,.live-analyze-box,.live-pattern-box{padding:12px;border:1px solid var(--line-soft);border-radius:8px;background:#fbfcfe}.live-message-box.reply{background:#f8fafc}.live-message-box p,.live-suggestion-box p,.live-pattern-box p{margin:8px 0 0;color:var(--text);font-size:14px;line-height:1.55}.live-pattern-box{display:grid;gap:6px;background:#f7fbf8}.live-pattern-box span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.live-pattern-box strong{color:var(--text);font-size:14px}.live-detail-list{display:grid;gap:8px;margin:0}.live-detail-list div{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid var(--line-soft)}.live-detail-list div:last-child{border-bottom:0}.live-detail-list dd{margin:0;font-size:13px;line-height:1.45}.live-form-grid{display:grid;gap:10px;margin-bottom:14px}.live-form-grid label{display:grid;gap:6px}.live-form-grid input{width:100%;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--surface);color:var(--text)}.live-sample-actions,.live-reject-row{display:flex;flex-wrap:wrap;gap:8px}.live-reject-row{align-items:center}.live-reject-row input{min-width:0;height:38px;flex:1 1 180px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--surface);color:var(--text)}.live-empty{padding:14px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px}.live-analyze-box{display:grid;gap:5px;margin-top:12px}.progress-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:var(--muted);font-size:13px}.progress-label strong{color:var(--text)}.progress-track{height:8px;overflow:hidden;border-radius:999px;background:#edf1f6}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--navy)}.timeline{display:grid;gap:16px;margin:0;padding:0;list-style:none}.timeline-item{position:relative;display:grid;grid-template-columns:16px 1fr;gap:12px}.timeline-item:not(:last-child):before{content:"";position:absolute;left:7px;top:18px;bottom:-16px;width:1px;background:var(--line)}.timeline-dot{width:14px;height:14px;margin-top:3px;border-radius:999px;border:3px solid #ffffff;background:var(--muted);box-shadow:0 0 0 1px var(--line)}.timeline-success .timeline-dot{background:var(--green)}.timeline-warning .timeline-dot{background:var(--amber)}.timeline-danger .timeline-dot{background:var(--red)}.timeline-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.timeline-head strong{font-size:14px}.timeline-head span,.timeline p{color:var(--muted);font-size:13px}.timeline p{margin:4px 0 0;line-height:1.45}.toggle-row{display:inline-flex;align-items:center;gap:9px;color:var(--text);font-size:13px;font-weight:700}.toggle{width:38px;height:22px;display:inline-flex;align-items:center;padding:2px;border:1px solid var(--line);border-radius:999px;background:#d9dee8}.toggle span{width:16px;height:16px;border-radius:999px;background:#fff;box-shadow:0 1px 2px #10182833;transition:transform .16s ease}.toggle-on{border-color:var(--navy);background:var(--navy)}.toggle-on span{transform:translate(16px)}.empty-state{min-height:220px;display:grid;place-items:center;align-content:center;gap:9px;padding:28px;text-align:center;border:1px dashed var(--line);border-radius:8px;background:var(--surface)}.empty-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:8px;background:var(--navy-soft);color:var(--navy)}.empty-state h3{margin:0;font-size:16px}.empty-state p{max-width:420px;margin:0;color:var(--muted);font-size:14px;line-height:1.5}.empty-action{margin-top:6px}.drawer-layer,.modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50}.drawer-backdrop,.modal-backdrop,.sidebar-scrim{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#10182852}.drawer{position:absolute;inset:0 0 0 auto;width:min(440px,100vw);display:flex;flex-direction:column;background:var(--surface);box-shadow:var(--shadow)}.drawer header{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;border-bottom:1px solid var(--line)}.drawer h2,.confirm-modal h2{margin:0;font-size:18px}.drawer-content{padding:18px;overflow-y:auto}.detail-grid{display:grid;grid-template-columns:110px 1fr;gap:10px 14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.detail-grid span{color:var(--muted);font-size:13px}.suggestion-box{padding:14px;border:1px solid #c7d7fe;border-radius:8px;background:#f4f7ff}.suggestion-box span{color:var(--blue);font-size:12px;font-weight:800;text-transform:uppercase}.suggestion-box p{margin:8px 0 0;line-height:1.5}.modal-layer{display:grid;place-items:center;padding:20px}.confirm-modal{position:relative;z-index:1;width:min(420px,100%);padding:22px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.modal-close{position:absolute;top:14px;right:14px}.modal-icon{width:42px;height:42px;display:grid;place-items:center;margin-bottom:14px;border-radius:8px;background:var(--amber-soft);color:var(--amber)}.confirm-modal p{margin:10px 0 22px;color:var(--muted);line-height:1.5}.confirm-modal footer{display:flex;justify-content:flex-end;gap:10px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.settings-list{display:grid;gap:12px;margin-bottom:16px}.content:has(.style-learner-page){background:#f6f7fb}.app-shell:has(.style-learner-page) .topbar{border-bottom-color:#e5e7eb;background:#fff}.app-shell:has(.style-learner-page) .global-search,.app-shell:has(.style-learner-page) .workspace-switcher,.app-shell:has(.style-learner-page) .icon-button,.app-shell:has(.style-learner-page) .user-menu{border-color:#e5e7eb;border-radius:12px;box-shadow:0 1px 2px #0000000a;font-weight:500}.app-shell:has(.style-learner-page) .notification-button span{background:#ef4444}.style-learner-page{--style-gap: 24px;--style-purple: #8b5cf6;--style-blue: #3b82f6;--style-green: #22c55e;--style-orange: #f59e0b;--style-red: #ef4444;--style-bg: #f6f7fb;--style-border: #e5e7eb;--style-card-border: #e5e7eb;--style-card-radius: 16px;--style-input-radius: 12px;--style-badge-radius: 999px;--style-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);--style-shadow-md: 0 4px 12px rgba(0, 0, 0, .06);--style-card-shadow: var(--style-shadow-sm);--style-card-hover-shadow: var(--style-shadow-md);--style-text: #202223;--style-muted: #6b7280;--style-soft: #f9fafb;max-width:1600px;margin:0 auto;color:var(--style-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500;letter-spacing:0}.style-learner-page .page-header{margin-bottom:var(--style-gap)}.style-learner-page .page-header>div:first-child,.style-learner-page .panel-header>div{min-width:0}.style-learner-page .page-header h1{color:var(--style-text);font-size:28px;font-weight:700;overflow-wrap:anywhere}.style-learner-page .page-header p,.style-learner-page .panel-header p{color:var(--style-muted);font-weight:500}.style-learner-page .primary-button,.style-learner-page .secondary-button{min-height:40px;padding:0 16px;border-radius:var(--style-input-radius);box-shadow:var(--style-shadow-sm);font-size:13px;font-weight:700;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}.style-learner-page .primary-button{border-color:var(--style-purple);background:var(--style-purple)}.style-learner-page .secondary-button{border-color:var(--style-border);background:#fff;color:var(--style-text)}.style-learner-page .primary-button:hover,.style-learner-page .secondary-button:hover{box-shadow:var(--style-card-hover-shadow);transform:translateY(-1px)}.style-learner-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:var(--style-gap);align-items:start}.style-main-stack,.style-side-stack{display:grid;gap:var(--style-gap);min-width:0}.style-side-stack{position:sticky;top:88px}.style-row{display:grid;gap:var(--style-gap);min-width:0}.style-row-one{grid-template-columns:minmax(0,3fr) minmax(320px,2fr)}.style-row-two{grid-template-columns:minmax(0,7fr) minmax(300px,3fr)}.style-learner-page .panel{min-width:0;padding:24px;border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:#fff;box-shadow:var(--style-card-shadow)}.style-learner-page .panel-header{align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:16px}.style-learner-page .panel-header h2{color:var(--style-text);font-size:16px;font-weight:700}.style-learner-page .panel-header svg{flex:0 0 auto;color:var(--style-muted)}.style-profile-panel,.prompt-control-panel{display:grid;gap:16px;align-self:stretch}.style-profile-header h2{margin:0;color:var(--style-text);font-size:18px;font-weight:700;line-height:1.25}.tone-metric-list{display:grid;gap:12px}.tone-metric-row,.style-profile-grid section,.style-attribute-grid>div,.style-compare-card,.prompt-control-list>div,.safety-instruction-box,.style-health-list>div,.style-improvement-list>div,.prompt-history-list>div,.ab-variant-card{border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.tone-metric-row{--tone-color: var(--style-green);--tone-bg: rgba(34, 197, 94, .1);display:grid;gap:12px;min-height:74px;padding:16px;background:linear-gradient(90deg,var(--tone-bg) 0%,#ffffff 82%),#fff}.tone-green{--tone-color: var(--style-green);--tone-bg: rgba(34, 197, 94, .1)}.tone-blue{--tone-color: var(--style-blue);--tone-bg: rgba(59, 130, 246, .1)}.tone-orange{--tone-color: var(--style-orange);--tone-bg: rgba(245, 158, 11, .12)}.tone-purple{--tone-color: var(--style-purple);--tone-bg: rgba(139, 92, 246, .1)}.tone-metric-head,.style-score-row>div:first-child,.style-score-row>div:nth-child(2),.style-health-list>div>div,.ab-variant-card header,.ab-variant-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.tone-metric-head span,.style-profile-grid h3,.style-attribute-grid strong,.style-compare-card header>span,.prompt-control-list strong,.style-health-list strong,.style-improvement-list strong,.prompt-history-list strong,.ab-variant-card strong,.ab-variant-metrics strong{color:var(--style-text);font-size:14px;line-height:1.35}.tone-metric-head span{font-weight:700}.tone-metric-head strong{color:var(--tone-color);font-size:14px;font-weight:700;line-height:1}.tone-metric-track{height:8px;overflow:hidden;border-radius:var(--style-badge-radius);background:var(--style-border)}.tone-metric-track span{display:block;height:100%;border-radius:inherit;background:var(--tone-color)}.style-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.style-profile-grid section{padding:16px}.phrase-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.phrase-section-header h3{margin:0}.phrase-section-header span{min-width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--style-border);border-radius:var(--style-badge-radius);background:#fff;color:var(--style-text);font-size:12px;font-weight:500;line-height:1}.phrase-list{display:flex;flex-wrap:wrap;gap:8px}.style-phrase-chip{min-height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:var(--style-badge-radius);font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.phrase-list-common .style-phrase-chip{border:1px solid rgba(34,197,94,.28);background:#22c55e1a;color:var(--style-green)}.phrase-list-avoid .style-phrase-chip{border:1px solid rgba(239,68,68,.25);background:#ef44441a;color:var(--style-red)}.style-attribute-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.style-attribute-grid>div{display:grid;gap:8px;padding:16px}.style-attribute-grid span,.style-score-row span,.prompt-control-list span,.safety-instruction-box span,.style-health-list span,.style-improvement-list span,.style-improvement-list small,.prompt-history-list span,.prompt-history-list small,.ab-variant-card span,.ab-variant-metrics span{color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.45}.style-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.style-compare-card{display:grid;align-content:start;gap:16px;min-height:184px;padding:16px}.style-compare-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.style-compare-card p{margin:0;color:var(--style-text);font-size:14px;font-weight:500;line-height:1.75}.diff-copy{display:block}.diff-token{display:inline;border-radius:8px;padding:2px 8px;font-weight:700;box-decoration-break:clone;-webkit-box-decoration-break:clone}.diff-added{background:#22c55e1f;color:var(--style-green)}.diff-edited{background:#8b5cf61f;color:var(--style-purple)}.diff-optimize{background:#f59e0b29;color:var(--style-orange)}.style-tune-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.style-score-card{display:grid;gap:8px;padding:16px;border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.style-score-card span{color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.45}.style-score-card strong{color:var(--style-text);font-size:22px;font-weight:700;line-height:1}.style-learner-page .progress-track{background:var(--style-border)}.style-learner-page .progress-track span{background:var(--style-purple)}.style-diff-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding:16px;border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.style-diff-legend span{min-height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:var(--style-badge-radius);font-size:12px;font-weight:500;line-height:1}.legend-added{background:#22c55e1f;color:var(--style-green)}.legend-edited{background:#8b5cf61f;color:var(--style-purple)}.legend-optimize{background:#f59e0b29;color:var(--style-orange)}.legend-sales{background:#3b82f61f;color:var(--style-blue)}.style-score-row{display:grid;grid-template-columns:repeat(2,minmax(0,180px)) minmax(0,1fr);gap:16px;margin-top:16px}.style-score-row>div,.style-score-row p{margin:0;padding:16px;border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.style-score-row>div{display:grid;gap:8px}.style-score-row p{color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.5}.prompt-block-compact-list{display:grid;gap:8px}.prompt-block-list-item{width:100%;min-height:46px;display:grid;grid-template-columns:32px minmax(0,1fr) max-content;align-items:center;gap:8px;padding:8px;border:0;border-radius:var(--style-input-radius);background:transparent;color:var(--style-text);text-align:left;transition:background-color .16s ease}.prompt-block-list-item:hover{background:var(--style-bg)}.prompt-block-icon{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--style-border);border-radius:var(--style-input-radius);background:#fff;color:var(--style-purple)}.prompt-block-list-item strong{min-width:0;overflow:visible;color:var(--style-text);font-size:13px;font-weight:700;line-height:1.3;text-overflow:clip;white-space:nowrap}.prompt-block-list-item>span:last-child{color:var(--style-muted);font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.prompt-block-footer{margin-top:12px;padding-top:14px;border-top:1px solid var(--style-border)}.prompt-block-footer button{display:inline-flex;align-items:center;padding:0;border:0;background:transparent;color:var(--style-purple);font-size:13px;font-weight:700;line-height:1.3}.prompt-block-footer button:hover{color:var(--style-purple);text-decoration:underline;text-underline-offset:3px}.prompt-control-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.prompt-control-list>div{display:grid;gap:8px;padding:16px}.safety-instruction-box{display:grid;gap:8px;padding:16px}.safety-instruction-box p{margin:0;color:var(--style-text);font-size:13px;font-weight:500;line-height:1.55}.prompt-control-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-studio-panel{align-content:start;gap:16px}.prompt-studio-header h2{margin:0;color:var(--style-text);font-size:18px;font-weight:700;line-height:1.25}.prompt-studio-header p{margin:6px 0 0;color:var(--style-muted);font-size:14px;font-weight:500;line-height:1.45}.prompt-stats-grid{display:grid;gap:12px}.prompt-stat-card,.prompt-safety-card,.rollout-agent-card{border:1px solid var(--style-card-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.prompt-stat-card{display:grid;gap:8px;min-height:82px;padding:16px}.prompt-stat-card span,.rollout-agent-card span{color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.4}.prompt-stat-card strong,.rollout-agent-card strong{color:var(--style-text);font-size:15px;font-weight:700;line-height:1.35}.prompt-safety-card{display:grid;gap:16px;padding:16px;background:#22c55e0f}.prompt-safety-head{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:flex-start}.prompt-safety-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(34,197,94,.28);border-radius:var(--style-input-radius);background:#22c55e1f;color:var(--style-green)}.prompt-safety-head h3{margin:0;color:var(--style-text);font-size:14px;font-weight:700;line-height:1.35}.prompt-safety-head p{margin:6px 0 0;color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.55}.prompt-safety-checklist{display:grid;gap:8px;margin:0;padding:0;list-style:none}.prompt-safety-checklist li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;color:var(--style-text);font-size:13px;font-weight:500;line-height:1.4}.prompt-safety-checklist li>span{width:22px;height:22px;display:grid;place-items:center;border-radius:var(--style-badge-radius);background:#22c55e1f;color:var(--style-green)}.rollout-agent-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.rollout-agent-card>div{min-width:0;display:grid;gap:8px}.polaris-switch{width:44px;height:24px;flex:0 0 auto;display:inline-flex;align-items:center;padding:2px;border:1px solid var(--style-border);border-radius:var(--style-badge-radius);background:#e5e7eb;transition:background-color .16s ease,border-color .16s ease}.polaris-switch span{width:18px;height:18px;border-radius:var(--style-badge-radius);background:#fff;box-shadow:var(--style-shadow-sm);transition:transform .16s ease}.polaris-switch.is-on{border-color:var(--style-green);background:var(--style-green)}.polaris-switch.is-on span{transform:translate(18px)}.prompt-history-button{width:100%}.style-health-list,.style-improvement-list,.prompt-history-list{display:grid;gap:12px}.style-health-list>div{display:grid;gap:8px;padding:16px}.style-improvement-list>div,.prompt-history-list>div{display:grid;gap:8px;padding:16px}.style-improvement-list small{font-weight:700}.style-health-panel,.style-recommendation-panel,.style-resource-panel{align-content:start;gap:16px}.right-rail-header{display:grid;gap:8px}.right-rail-header h2{margin:0;color:var(--style-text);font-size:18px;font-weight:700;line-height:1.25}.right-rail-header p{margin:0;color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.45}.style-health-score{display:flex;align-items:baseline;gap:8px;padding-top:2px}.style-health-score strong{color:var(--style-text);font-size:42px;font-weight:700;letter-spacing:0;line-height:1}.style-health-score span{color:var(--style-muted);font-size:17px;font-weight:500;line-height:1}.style-health-progress{height:14px;overflow:hidden;border-radius:var(--style-badge-radius);background:var(--style-border)}.style-health-progress span{display:block;height:100%;border-radius:inherit;background:var(--style-purple)}.style-health-metrics{display:grid;gap:8px}.style-health-metrics>div{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;border:1px solid var(--style-border);border-radius:var(--style-input-radius);background:var(--style-soft)}.style-health-metrics span{color:var(--style-text);font-size:13px;font-weight:500;line-height:1.35}.style-health-metrics strong{color:var(--style-purple);font-size:13px;font-weight:700;line-height:1}.style-recommendation-list{display:grid;gap:12px}.style-recommendation-card{display:grid;gap:8px;padding:16px;border:1px solid var(--style-border);border-radius:var(--style-card-radius);background:var(--style-soft);box-shadow:var(--style-card-shadow)}.style-recommendation-priority{width:fit-content;min-height:26px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:var(--style-badge-radius);font-size:12px;font-weight:500;line-height:1}.style-recommendation-priority.priority-high{border:1px solid rgba(239,68,68,.25);background:#ef44441a;color:var(--style-red)}.style-recommendation-priority.priority-medium{border:1px solid rgba(245,158,11,.25);background:#f59e0b24;color:var(--style-orange)}.style-recommendation-card strong{color:var(--style-text);font-size:14px;font-weight:700;line-height:1.35}.style-recommendation-card p{margin:0;color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.5}.style-recommendation-card small{color:var(--style-purple);font-size:12px;font-weight:700;line-height:1.35}.style-resource-list{display:grid;gap:8px}.style-resource-list>div{min-height:46px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:12px;padding:8px;border-radius:var(--style-input-radius);background:var(--style-soft)}.style-resource-list span{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--style-border);border-radius:var(--style-input-radius);background:#fff;color:var(--style-purple)}.style-resource-list strong{min-width:0;overflow:hidden;color:var(--style-text);font-size:13px;font-weight:700;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.style-resource-cta{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--style-border);border-radius:var(--style-input-radius);background:#fff;color:var(--style-purple);font-size:13px;font-weight:700;line-height:1;box-shadow:var(--style-shadow-sm)}.style-resource-cta:hover{background:var(--style-bg);color:var(--style-purple);box-shadow:var(--style-card-hover-shadow)}.ab-test-panel{grid-column:1 / -1}.ab-variant-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.ab-variant-card,.ab-add-variant-card{min-width:0;display:grid;gap:16px;padding:16px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.ab-variant-card:hover,.ab-add-variant-card:hover{box-shadow:var(--style-card-hover-shadow);transform:translateY(-2px)}.ab-variant-active{border-color:var(--style-purple);box-shadow:0 0 0 1px #8b5cf638,var(--style-card-shadow)}.ab-variant-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ab-variant-card-header strong{color:var(--style-text);font-size:15px;font-weight:700;line-height:1.3}.ab-status-badge{min-height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:var(--style-badge-radius);font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.ab-status-active{border:1px solid rgba(34,197,94,.28);background:#22c55e1a;color:var(--style-green)}.ab-status-testing{border:1px solid rgba(59,130,246,.25);background:#3b82f61a;color:var(--style-blue)}.ab-status-paused{border:1px solid rgba(245,158,11,.25);background:#f59e0b24;color:var(--style-orange)}.ab-variant-metrics{display:grid;gap:8px}.ab-variant-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border:1px solid var(--style-border);border-radius:var(--style-input-radius);background:#fff}.ab-variant-metrics span{font-size:12px;white-space:nowrap}.ab-variant-metrics strong{font-size:13px;white-space:nowrap}.ab-variant-progress{height:8px;overflow:hidden;border-radius:var(--style-badge-radius);background:var(--style-border)}.ab-variant-progress span{display:block;height:100%;border-radius:inherit;background:var(--style-purple)}.ab-add-variant-card{min-height:210px;place-items:center;align-content:center;border:1px dashed var(--style-border);border-radius:var(--style-card-radius);background:#fff;color:var(--style-muted);text-align:center;box-shadow:var(--style-card-shadow)}.ab-add-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--style-input-radius);background:#8b5cf61a;color:var(--style-purple)}.ab-add-variant-card strong{color:var(--style-text);font-size:15px;font-weight:700;line-height:1.3}.ab-add-variant-card>span:last-child{color:var(--style-muted);font-size:13px;font-weight:500;line-height:1.4}.memory-layout>.table-wrap{min-width:0}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}.dashboard-title-row{display:flex;align-items:center;gap:12px}.dashboard-title-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--ntl-purple-bg);color:var(--ntl-purple)}.dashboard-header h1{margin:0;color:var(--text);font-size:30px;font-weight:700;line-height:1.18}.dashboard-header p{margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.45}.dashboard-date-filter{height:42px;display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#334155;box-shadow:0 8px 20px #0f172a08;font-size:14px;font-weight:500}.dashboard-metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-metric-card{min-height:124px;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.dashboard-metric-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px}.dashboard-metric-blue .dashboard-metric-icon{background:#ede9fe;color:#5b21b6}.dashboard-metric-mint .dashboard-metric-icon,.dashboard-metric-green .dashboard-metric-icon{background:#dcfce7;color:var(--ntl-success)}.dashboard-metric-orange .dashboard-metric-icon{background:#ffedd5;color:#f97316}.dashboard-metric-sky .dashboard-metric-icon{background:#dbeafe;color:var(--ntl-blue)}.dashboard-metric-purple .dashboard-metric-icon{background:var(--ntl-purple-bg);color:var(--ntl-purple)}.dashboard-metric-copy{min-width:0}.dashboard-metric-copy>span{display:block;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.25}.dashboard-metric-copy strong{display:block;margin-top:12px;color:#0f172a;font-size:28px;font-weight:700;line-height:1}.dashboard-metric-copy p{min-height:18px;display:flex;align-items:center;gap:4px;margin:12px 0 0;color:var(--muted);font-size:12px;font-weight:500;line-height:1.35}.dashboard-metric-trend.trend-success{color:var(--ntl-success)}.dashboard-metric-trend.trend-danger{color:var(--ntl-danger)}.dashboard-process-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(320px,1fr);gap:16px;align-items:stretch;margin-bottom:18px}.dashboard-process-card,.dashboard-activity-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.dashboard-process-card{padding:20px 20px 22px}.dashboard-activity-card{padding:18px}.dashboard-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.dashboard-card-header h2{margin:0;color:var(--text);font-size:17px;font-weight:700;line-height:1.25}.activity-card-header{margin-bottom:14px}.activity-card-header a{color:var(--ntl-blue);font-size:12px;font-weight:700;white-space:nowrap}.workflow-process-steps{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:18px 6px 0}.workflow-process-steps:before{content:"";position:absolute;top:46px;left:calc(10% + 28px);right:calc(10% + 28px);border-top:2px dotted #b7c4d8}.workflow-step{position:relative;z-index:1;min-width:0;display:grid;justify-items:center;align-content:start;text-align:center}.workflow-step-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:999px;box-shadow:0 10px 20px #0f172a0f}.workflow-step-blue .workflow-step-icon,.workflow-step-sky .workflow-step-icon{background:#dbeafe;color:var(--ntl-blue)}.workflow-step-green .workflow-step-icon{background:#dcfce7;color:var(--ntl-success)}.workflow-step-orange .workflow-step-icon{background:#ffedd5;color:#f97316}.workflow-step-purple .workflow-step-icon{background:var(--ntl-purple-bg);color:var(--ntl-purple)}.workflow-step-check{position:absolute;top:20px;right:-12px;z-index:2;width:18px;height:18px;display:grid;place-items:center;border:2px solid #ffffff;border-radius:999px;background:#35c983;color:#fff}.workflow-step-copy{min-width:0;margin-top:16px}.workflow-step-copy strong{display:block;color:var(--text);font-size:14px;font-weight:700;line-height:1.3}.workflow-step-copy p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.workflow-channel-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:12px}.workflow-channel{min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;color:#fff;font-size:9px;font-weight:800;line-height:1}.workflow-channel-messenger{background:#5b5ff7}.workflow-channel-facebook{background:#1877f2}.workflow-channel-zalo{background:#0068ff}.workflow-channel-instagram{background:#e1306c}.activity-filter-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.activity-filter-list button{min-height:30px;border:0;border-radius:9px;background:#f3f6fb;color:#52627a;padding:0 13px;font-size:12px;font-weight:600}.activity-filter-list button.active{background:var(--ntl-navy);color:#fff;box-shadow:0 8px 18px #071b3a29}.activity-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.activity-item{min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr) max-content;align-items:start;gap:10px}.activity-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:8px}.activity-green .activity-icon{background:var(--ntl-success-bg);color:var(--ntl-success)}.activity-purple .activity-icon{background:var(--ntl-purple-bg);color:var(--ntl-purple)}.activity-orange .activity-icon{background:var(--ntl-warning-bg);color:var(--ntl-warning)}.activity-blue .activity-icon{background:#dbeafe;color:var(--ntl-blue)}.activity-copy{min-width:0;display:grid;gap:3px}.activity-copy strong{overflow:hidden;color:var(--text);font-size:13px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.activity-copy span,.activity-item time{color:var(--muted);font-size:11px;line-height:1.35}.activity-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-item time{padding-top:2px;text-align:right;white-space:nowrap}.dashboard-summary-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-summary-card,.dashboard-suggestions-card,.dashboard-actions-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.dashboard-summary-card{padding:20px}.summary-card-header span{color:var(--muted);font-size:12px;font-weight:600}.summary-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.summary-kpi-item{min-width:0;display:grid;gap:9px}.summary-kpi-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:999px}.summary-kpi-green .summary-kpi-icon{background:var(--ntl-success-bg);color:var(--ntl-success)}.summary-kpi-blue .summary-kpi-icon{background:#dbeafe;color:var(--ntl-blue)}.summary-kpi-purple .summary-kpi-icon{background:var(--ntl-purple-bg);color:var(--ntl-purple)}.summary-kpi-item>span{color:var(--muted);font-size:10px;font-weight:700;line-height:1.25}.summary-kpi-item strong{color:#0f172a;font-size:24px;font-weight:700;line-height:1}.summary-kpi-item p{display:inline-flex;align-items:center;gap:4px;margin:0;color:var(--ntl-success);font-size:12px;font-weight:700}.dashboard-bottom-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(340px,1fr);gap:16px;align-items:start;margin-bottom:18px}.dashboard-suggestions-card,.dashboard-actions-card{padding:18px}.suggestions-card-header a{color:var(--ntl-blue);font-size:12px;font-weight:700;white-space:nowrap}.suggestions-table-wrap{width:100%;overflow-x:auto}.suggestions-table{width:100%;min-width:820px;border-collapse:collapse}.suggestions-table th,.suggestions-table td{padding:11px 10px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:middle}.suggestions-table th{background:#f8fafc;color:var(--muted);font-size:11px;font-weight:700;line-height:1.2}.suggestions-table td{color:#334155;font-size:12px;line-height:1.35}.suggestions-table td:nth-child(3),.suggestions-table td:nth-child(4){color:var(--text);font-weight:600}.suggestions-table tr:last-child td{border-bottom:0}.suggestion-channel{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.suggestion-channel-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;font-size:8px;font-weight:800;line-height:1}.channel-messenger{background:#5b5ff7}.channel-zalo{background:#0068ff}.channel-facebook{background:#1877f2}.channel-instagram{background:#e1306c}.suggestion-status{min-height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.suggestion-status-success{background:var(--ntl-success-bg);color:var(--ntl-success)}.suggestion-status-handover{background:var(--ntl-warning-bg);color:var(--ntl-warning)}.suggestion-status-follow-up{background:#dbeafe;color:var(--ntl-blue)}.dashboard-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-action-item{min-width:0;min-height:76px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.dashboard-action-item:hover{border-color:#cbd5e1;box-shadow:0 10px 24px #0f172a0f;transform:translateY(-1px)}.dashboard-action-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px}.dashboard-action-purple .dashboard-action-icon{background:var(--ntl-purple-bg);color:var(--ntl-purple)}.dashboard-action-blue .dashboard-action-icon{background:#dbeafe;color:var(--ntl-blue)}.dashboard-action-green .dashboard-action-icon{background:var(--ntl-success-bg);color:var(--ntl-success)}.dashboard-action-orange .dashboard-action-icon{background:var(--ntl-warning-bg);color:var(--ntl-warning)}.dashboard-action-copy{min-width:0;display:grid;gap:4px}.dashboard-action-copy strong{overflow:hidden;color:var(--text);font-size:14px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.dashboard-action-copy small{overflow:hidden;color:var(--muted);font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.quick-action-switch{position:relative;width:34px;height:20px;border-radius:999px;background:var(--ntl-success)}.quick-action-switch:after{content:"";position:absolute;top:3px;right:3px;width:14px;height:14px;border-radius:999px;background:#fff}.flow-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:var(--navy-soft);color:var(--navy)}.efficiency-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.efficiency-head span{color:var(--muted);font-size:13px}.efficiency-head strong{font-size:22px}.omni-page{height:calc(100vh - 120px);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.omni-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px}.omni-header h1{margin:0;color:var(--text);font-size:28px;font-weight:700;line-height:1.2}.omni-header p{margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.45}.omni-date-filter{height:44px;display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#334155;box-shadow:0 8px 20px #0f172a08;font-size:14px;font-weight:500}.omni-layout{min-height:0;height:100%;display:grid;grid-template-columns:minmax(280px,32fr) minmax(340px,40fr) minmax(280px,28fr);gap:16px;align-items:stretch}.inbox-column,.chat-column,.copilot-column,.copilot-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 10px 30px #0f172a0a}.inbox-column,.chat-column,.copilot-column{min-width:0;min-height:0;height:100%;overflow:hidden}.inbox-column{display:flex;flex-direction:column}.inbox-filter-block{display:grid;gap:12px;padding:14px 14px 0;border-bottom:1px solid var(--line)}.inbox-filter-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center}.inbox-field{min-width:0}.inbox-field select{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#334155;padding:0 10px;font-size:12px;font-weight:600;outline:0}.inbox-unread-toggle{min-height:38px;display:flex;align-items:center;justify-content:flex-end;white-space:nowrap}.inbox-unread-toggle .toggle-row{gap:7px}.inbox-unread-toggle .toggle-row>span{color:#334155;font-size:12px;font-weight:700}.channel-filter,.composer-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.channel-filter{overflow-x:auto}.channel-filter button,.composer-tabs button{min-height:31px;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:0 9px;font-size:12px;font-weight:800;white-space:nowrap}.channel-filter button.active,.composer-tabs button.active{background:var(--surface);color:var(--navy);box-shadow:0 1px 2px #10182814}.inbox-tabs{display:flex;align-items:center;gap:2px;padding:0 0 1px;border-bottom:1px solid var(--line-soft)}.inbox-tabs button{position:relative;min-height:38px;display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#64748b;padding:0 10px;font-size:13px;font-weight:700;white-space:nowrap}.inbox-tabs button:after{content:"";position:absolute;right:10px;bottom:-2px;left:10px;height:2px;border-radius:999px;background:transparent}.inbox-tabs button.active{color:var(--ntl-blue)}.inbox-tabs button.active:after{background:var(--ntl-blue)}.inbox-tabs em{min-width:22px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eef4ff;color:var(--ntl-blue);font-style:normal;font-size:11px;font-weight:800}.inbox-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inbox-select-grid label{display:grid;gap:5px}.inbox-select-grid span{color:var(--muted);font-size:12px;font-weight:800}.inbox-select-grid select{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:0 8px}.conversation-search-row{display:flex;align-items:center;gap:8px;padding-bottom:12px}.conversation-search{min-width:0;height:42px;flex:1;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted)}.conversation-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}.conversation-search input::placeholder{color:#94a3b8}.conversation-filter-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}.conversation-list{flex:1;display:grid;align-content:start;gap:2px;overflow-y:auto;padding:8px 8px 4px}.conversation-item{position:relative;width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;min-height:80px;padding:12px 12px 12px 10px;border:1px solid transparent;border-left:3px solid transparent;border-radius:0;background:transparent;color:var(--text);text-align:left}.conversation-item:hover{background:#f8fbff}.conversation-item.active{border-color:#d7e6ff;border-left-color:var(--ntl-blue);background:#eef5ff}.conversation-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:linear-gradient(145deg,#071b3a,#163d7a);color:#fff;font-size:12px;font-weight:800;box-shadow:0 8px 18px #071b3a24}.conversation-avatar.large{width:48px;height:48px;font-size:13px}.conversation-main{min-width:0}.conversation-head,.conversation-meta,.conversation-foot{display:flex;align-items:center;gap:8px}.conversation-head{justify-content:space-between;gap:10px}.conversation-name-row{min-width:0;display:flex;align-items:center;gap:7px}.conversation-head strong{min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:14px;font-weight:800}.conversation-head time,.conversation-meta span,.follow-up-time{color:var(--muted);font-size:12px}.conversation-head time{flex:0 0 auto;line-height:1.2}.conversation-channel{max-width:72px;display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.3}.conversation-channel-zalo{background:#dbeafe;color:#1d4ed8}.conversation-channel-facebook{background:#e0edff;color:#2563eb}.conversation-channel-website{background:#ede9fe;color:#7c3aed}.conversation-channel-pancake{background:var(--ntl-warning-bg);color:var(--ntl-warning)}.conversation-meta{margin-top:5px}.conversation-item p{display:-webkit-box;margin:9px 0 8px;overflow:hidden;color:var(--muted);font-size:13px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:1}.conversation-foot{justify-content:space-between}.conversation-sla{min-height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;border-radius:999px;font-size:11px;font-weight:800;line-height:1}.conversation-sla-success{background:var(--ntl-success-bg);color:var(--ntl-success)}.conversation-sla-warning{background:var(--ntl-warning-bg);color:#d97706}.conversation-sla-danger{background:var(--ntl-danger-bg);color:var(--ntl-danger)}.conversation-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:12px}.conversation-pagination>div{display:flex;align-items:center;gap:6px}.conversation-pagination button{min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:transparent;color:#64748b;font-size:12px;font-weight:700}.conversation-pagination button.active{background:#e8f0ff;color:var(--ntl-blue)}.unread-dot{position:absolute;top:10px;right:10px;min-width:20px;height:20px;display:inline-grid;place-items:center;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:800}.chat-column{display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto;background:#fff}.chat-header{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border-bottom:1px solid var(--line);background:#fff}.chat-identity{min-width:0;display:flex;align-items:center;gap:12px}.chat-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.chat-title-row h2{margin:0;color:var(--text);font-size:18px;font-weight:800;line-height:1.15}.chat-identity p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.25}.chat-identity small{display:block;margin-top:4px;color:#94a3b8;font-size:12px;line-height:1.2}.chat-actions{display:flex;align-items:center;gap:8px}.bot-mode-banner{margin:12px 16px;display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid #d8c7ff;border-radius:12px;background:#f5f3ff}.bot-mode-banner>svg{flex:0 0 auto;color:var(--ntl-purple)}.bot-mode-banner>div{min-width:0;flex:1;display:grid;gap:3px}.bot-mode-banner strong{color:#4c1d95;font-size:13px;font-weight:800;line-height:1.25}.bot-mode-banner span{color:#64748b;font-size:12px;line-height:1.3}.bot-mode-banner button{min-height:34px;flex:0 0 auto;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ntl-blue);padding:0 13px;font-size:12px;font-weight:800}.mode-auto_reply{background:var(--green-soft)}.mode-handover_required{background:var(--amber-soft)}.message-thread{min-height:0;display:flex;flex-direction:column;gap:14px;padding:14px 16px 18px;overflow-y:auto;background:#f8fafc}.chat-message-row{min-width:0;display:flex;align-items:flex-end;gap:8px}.message-inbound{justify-content:flex-start}.message-outbound{justify-content:flex-end}.message-avatar{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:#eef4ff;color:var(--ntl-navy);font-size:9px;font-weight:800}.message-stack{max-width:min(78%,560px);min-width:0;display:grid;gap:8px}.message-outbound .message-stack{justify-items:end}.message-bubble{width:fit-content;max-width:100%;padding:12px 14px 10px;border:1px solid var(--line);border-radius:17px;background:var(--surface)}.bubble-human{background:linear-gradient(135deg,#2f7df4,#2563eb);color:#fff;border-color:#2563eb;box-shadow:0 10px 24px #2563eb29}.bubble-ai{background:linear-gradient(135deg,#2f7df4,#2563eb);color:#fff;border-color:#2563eb}.bubble-system{align-self:center;width:min(88%,620px);background:var(--amber-soft);border-color:#f6d99b}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:8px;color:var(--muted);font-size:11px;line-height:1}.bubble-human .message-meta,.bubble-ai .message-meta{color:#ffffffbd}.message-bubble p{margin:0;font-size:14px;line-height:1.55;white-space:pre-line}.attachment-list{max-width:100%;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.attachment-list span{max-width:235px;min-height:38px;min-width:0;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);box-shadow:0 8px 18px #0f172a0a}.attachment-list span svg{flex:0 0 auto;color:var(--ntl-blue)}.attachment-list strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800}.attachment-list small{flex:0 0 auto;color:var(--muted);font-size:10px}.attachment-list em,.attachment-list button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-style:normal;font-size:11px;font-weight:800}.composer{display:grid;gap:9px;padding:12px 16px 14px;border-top:1px solid var(--line);background:var(--surface)}.composer-tabs{width:fit-content}.composer textarea{width:100%;min-height:76px;resize:none;border:1px solid var(--line);border-radius:12px;outline:0;padding:12px;color:var(--text);font-size:13px;line-height:1.45}.composer textarea:focus{border-color:#bdd0ea;box-shadow:0 0 0 3px #12325b14}.composer-footer,.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-tools{justify-content:flex-start;flex-wrap:wrap}.composer-tools .icon-button{width:34px;height:34px;border-radius:9px}.composer-send-group{display:inline-flex;align-items:center;gap:2px}.composer-send-group .primary-button{min-height:38px;border-radius:10px;background:var(--ntl-blue)}.composer-send-group .send-menu-button{width:34px;padding:0}.chat-empty{display:grid;place-items:center;color:var(--muted)}.copilot-column{display:grid;gap:12px;align-content:start;overflow-y:auto;padding:14px}.copilot-card{min-width:0;border-radius:14px;box-shadow:none}.copilot-card{padding:14px}.copilot-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-14px -14px 0;padding:14px;border-bottom:1px solid var(--line-soft);background:#fff}.copilot-panel-header>div:first-child,.copilot-header-actions{display:flex;align-items:center;gap:9px}.copilot-header-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--ntl-purple-bg);color:var(--ntl-purple)}.copilot-panel-header h2{margin:0;color:var(--text);font-size:17px;font-weight:800;line-height:1.2}.copilot-header-actions button{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted)}.copilot-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.copilot-mini-card{min-width:0;display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.copilot-mini-card>span{color:var(--muted);font-size:11px;font-weight:800}.copilot-customer-row{min-width:0;display:flex;align-items:center;gap:9px}.copilot-customer-row>div:last-child{min-width:0;display:grid;gap:3px}.copilot-customer-row strong,.copilot-intent-card>strong{color:var(--text);font-size:13px;font-weight:800;line-height:1.25}.copilot-customer-row small{color:var(--muted);font-size:12px}.copilot-customer-card button{min-height:30px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:9px;background:#f1f6ff;color:var(--ntl-blue);padding:0 10px;font-size:12px;font-weight:800}.intent-confidence{display:grid;gap:7px}.intent-confidence small{color:var(--ntl-success);font-size:12px;font-weight:700}.intent-confidence>div{height:7px;overflow:hidden;border-radius:999px;background:#eaf0f7}.intent-confidence>div span{display:block;height:100%;border-radius:inherit;background:#22c55e}.memory-card h3,.ai-reply-card h3,.quick-actions-card h3,.learning-result-card h3{margin:0;color:var(--text);font-size:14px;font-weight:800;line-height:1.25}.copilot-card .memory-fact-list{display:grid;gap:8px}.copilot-card .memory-fact-list>div{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:7px;color:#334155;font-size:12px;line-height:1.4}.copilot-card .memory-fact-list svg{margin-top:1px;color:var(--ntl-blue)}.memory-more-button{min-height:30px;margin-top:10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ntl-blue);padding:0 12px;font-size:12px;font-weight:800}.ai-reply-card header button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--ntl-blue);font-size:12px;font-weight:800}.ai-reply-box{padding:12px;border:1px solid #f1d48a;border-radius:12px;background:#fff8e7;color:#334155;font-size:12px;line-height:1.55;white-space:pre-line}.ai-reply-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.ai-reply-meta span{min-width:0;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.ai-reply-meta strong,.learning-result-card header>span{flex:0 0 auto;min-height:24px;display:inline-flex;align-items:center;border-radius:999px;background:var(--ntl-success-bg);color:var(--ntl-success);padding:0 9px;font-size:11px;font-weight:800}.copilot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.copilot-actions .primary-button,.copilot-actions .secondary-button{min-height:34px;justify-content:center;border-radius:9px;padding:0 10px;font-size:12px;white-space:nowrap}.copilot-actions .primary-button{background:var(--ntl-blue)}.copilot-quick-actions{display:flex;flex-wrap:wrap;gap:8px}.copilot-quick-actions button{min-height:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#334155;padding:0 10px;font-size:12px;font-weight:700}.learning-result-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--line-soft);border-radius:12px}.learning-result-table>div{min-width:0;display:grid;gap:7px;padding:10px;background:#fbfcfe}.learning-result-table>div+div{border-left:1px solid var(--line-soft)}.learning-result-table strong{color:var(--text);font-size:11px;font-weight:800;line-height:1.25}.learning-result-footer{display:grid;gap:8px;margin-top:10px}.learning-result-footer button{justify-self:end;border:0;background:transparent;color:var(--ntl-blue);font-size:12px;font-weight:800}.copilot-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.copilot-card header span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.copilot-card h2{margin:3px 0 0;font-size:16px}.copilot-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.source-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.full-width{width:100%}.memory-card header,.ai-reply-card header,.quick-actions-card header,.learning-result-card header{align-items:center;margin-bottom:12px}.learning-result-card header>span{flex:0 0 auto;min-height:24px;display:inline-flex;align-items:center;border-radius:999px;background:var(--ntl-success-bg);color:var(--ntl-success);padding:0 9px;font-size:11px;font-weight:800;text-transform:none}.learning-result-table p,.learning-result-footer p{margin:0;color:#475569;font-size:11px;line-height:1.5;white-space:pre-line}.reply-learning-dashboard{display:grid;gap:16px;width:100%}.reply-learning-page-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}.reply-learning-heading{display:flex;align-items:center;gap:14px;min-width:0}.reply-learning-title-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:linear-gradient(145deg,#eef4ff,#ede9fe);color:#6d5dfc}.reply-learning-page-header h1{margin:0;color:var(--navy);font-size:25px;font-weight:800;line-height:1.12}.reply-learning-page-header p{margin:6px 0 0;color:#64748b;font-size:14px;line-height:1.35}.reply-learning-date-filter{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;padding:0 14px;border:1px solid #e5eaf3;border-radius:11px;background:#fff;color:#26364e;box-shadow:0 8px 22px #0f172a08;font-size:13px;font-weight:700}.reply-learning-dashboard .panel,.reply-learning-dashboard .reply-metric-card,.reply-learning-dashboard .table-wrap{border-color:#e5eaf3;border-radius:16px;background:#fff;box-shadow:0 12px 30px #0f172a09}.reply-learning-dashboard .panel{padding:16px}.reply-learning-dashboard .panel-header{gap:12px;margin-bottom:14px}.reply-learning-dashboard .panel-header h2{color:var(--navy);font-size:15px;font-weight:800;line-height:1.2}.reply-learning-dashboard .panel-header p{margin-top:5px;color:#64748b;font-size:12px;line-height:1.35}.reply-learning-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:0}.reply-metric-card{min-width:0;min-height:104px;display:flex;align-items:center;gap:12px;padding:15px 14px}.reply-metric-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px}.reply-metric-info{background:#eaf1ff;color:#3d6df6}.reply-metric-success{background:#e5f8ef;color:#12a66a}.reply-metric-turquoise{background:#e4f8f3;color:#10b981}.reply-metric-purple{background:#f0ebff;color:#7357f6}.reply-metric-warning{background:#fff2d8;color:#f59e0b}.reply-metric-danger{background:#fee8e8;color:#ef4444}.reply-metric-neutral{background:#f1f5f9;color:#64748b}.reply-metric-content{min-width:0;display:grid;gap:4px}.reply-metric-content p{margin:0;color:#52637a;font-size:12px;font-weight:700;line-height:1.25}.reply-metric-content strong{color:var(--navy);font-size:24px;font-weight:800;line-height:1.05}.reply-metric-change{display:block;font-size:11px;font-weight:800;line-height:1.2;white-space:normal}.reply-metric-change.up{color:#10a866}.reply-metric-change.down{color:#ef4444}.reply-learning-main-grid{display:grid;grid-template-columns:minmax(520px,.95fr) minmax(520px,1.05fr);gap:16px;align-items:stretch;min-width:0}.reply-learning-main-grid>*{min-width:0}.learning-flow-panel,.chart-card,.improvement-panel{margin-bottom:0}.learning-flow-panel{position:relative;min-height:252px}.learning-flow-info{color:#94a3b8}.learning-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;min-width:0;position:relative;z-index:1}.learning-flow-step{position:relative;min-height:112px;display:grid;align-content:start;justify-items:center;gap:5px;padding:8px 3px 0;text-align:center;background:transparent}.reply-learning-dashboard .flow-icon{width:42px;height:42px;border-radius:999px}.reply-learning-dashboard .flow-chat{background:linear-gradient(145deg,#eaf1ff,#ecebff);color:#4776f6}.reply-learning-dashboard .flow-user{background:linear-gradient(145deg,#edf2ff,#f1ecff);color:#4b6ff1}.reply-learning-dashboard .flow-database{background:linear-gradient(145deg,#e9f4ff,#e9edff);color:#3f6be7}.reply-learning-dashboard .flow-brain{background:linear-gradient(145deg,#f0ebff,#e8edff);color:#6f58f6}.reply-learning-dashboard .flow-document{background:linear-gradient(145deg,#f2ecff,#e9edff);color:#705cf6}.reply-learning-dashboard .flow-star{background:linear-gradient(145deg,#dcf8eb,#c8f1dc);color:#13a66c;box-shadow:0 10px 22px #13a66c29}.learning-flow-step strong{color:var(--navy);font-size:11px;font-weight:800;line-height:1.22}.learning-flow-step span{margin-top:2px;color:var(--navy);font-size:14px;font-weight:800;line-height:1.1}.learning-flow-step small{color:#52637a;font-size:11px;font-weight:700;line-height:1.2}.learning-flow-arrow{position:absolute;top:22px;right:-9px;z-index:1;color:#7c8aa2;background:#fff}.learning-flow-funnel{position:relative;height:58px;margin:4px 18px 0;border-radius:0 0 999px 999px;background:linear-gradient(90deg,#7c3aed14,#4968f22e,#7c3aed14);clip-path:polygon(0 4%,50% 66%,100% 4%,100% 100%,0 100%)}.learning-flow-funnel span{position:absolute;right:0;bottom:0;left:0;color:#7063f2;font-size:12px;font-weight:800;text-align:center}.chart-card{min-height:252px;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.chart-range-button{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;padding:0 10px;border:1px solid #e5eaf3;border-radius:9px;background:#fff;color:#52637a;font-size:12px;font-weight:800}.chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:-4px 0 6px 58px}.chart-legend span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:800}.chart-legend i{width:10px;height:10px;border-radius:3px}.chart-legend i.chart-legend-line{width:16px;height:2px;border-radius:999px}.chart-wrap{width:100%;overflow-x:auto}.chart-wrap svg{width:100%;min-width:680px;display:block}.reply-learning-dashboard .chart-wrap{display:flex;align-items:stretch;overflow:hidden}.reply-learning-dashboard .chart-wrap svg{height:190px;min-width:0}.chart-grid-line{stroke:var(--line-soft);stroke-width:1}.chart-axis-text{fill:var(--muted);font-size:11px;font-weight:700}.chart-axis-title{fill:#5e63f6;font-size:11px;font-weight:800}.chart-axis-title-green,.chart-axis-text-green{fill:#14a76c}.analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:0}.reply-learning-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:16px;align-items:start;min-width:0}.reply-learning-bottom-main{display:grid;gap:16px;min-width:0}.analysis-card{min-width:0}.analysis-list{display:grid;gap:12px}.training-analysis .analysis-row{display:grid;gap:9px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted)}.analysis-row>div:first-child{display:grid;gap:4px}.analysis-row strong{font-size:14px}.analysis-row span{color:var(--muted);font-size:13px}.analysis-progress{display:grid;gap:8px}.improvement-grid{display:grid;grid-template-columns:1fr;gap:10px}.improvement-card{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-muted)}.improvement-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.improvement-head h3{margin:0;font-size:15px}.improvement-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.recent-learning-panel .table-wrap{box-shadow:none}.reply-learning-dashboard .data-table{min-width:760px}.reply-learning-dashboard .data-table th,.reply-learning-dashboard .data-table td{padding:10px 14px;font-size:13px}.reply-learning-dashboard .data-table th{color:#52637a;font-size:12px;text-transform:none}.training-inbox-page{min-height:calc(100vh - 64px);padding-bottom:94px;color:#0f172a;font-size:14px}.training-inbox-page .panel{border-color:#e6eaf2;border-radius:16px;box-shadow:0 8px 20px #0f172a05}.training-inbox-page :is(button,input,select,textarea):focus-visible{outline:0;border-color:#b7d4ff;box-shadow:0 0 0 3px #2563eb1f}.training-page-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.training-title-group{min-width:0;display:flex;align-items:center;gap:12px}.training-title-icon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#f0e9ff;color:var(--ntl-purple)}.training-page-header h1{margin:0;color:#0f172a;font-size:28px;font-weight:700;line-height:1.15}.training-page-header p{margin:5px 0 0;color:#64748b;font-size:14px;line-height:1.35}.training-date-selector{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;padding:0 14px;border:1px solid #e6eaf2;border-radius:10px;background:#fff;color:#334155;font-size:14px;font-weight:700;box-shadow:0 6px 16px #0f172a05}.training-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:stretch;height:calc(100vh - 240px);min-height:560px}.training-queue,.training-detail-shell,.training-detail-grid,.training-workspace,.training-right-rail{min-width:0;min-height:0}.training-detail-shell{display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px}.training-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 276px;gap:16px;overflow:hidden}.training-queue{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;box-shadow:0 8px 20px #0f172a05}.training-filter-block{flex:0 0 auto;display:grid;gap:12px;padding:14px 14px 12px;border-bottom:1px solid var(--line)}.training-filter-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.training-filter-head h2{margin:0;color:#334155;font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase}.training-filter-head button{border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:700;line-height:1.2}.training-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.training-filter-field{display:grid;gap:5px}.training-filter-field>span{color:#64748b;font-size:12px;font-weight:700}.training-filter-grid select,.training-status-select select{width:100%;height:38px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#0f172a;padding:0 30px 0 10px;font-size:14px;font-weight:500}.training-status-select{position:relative}.status-filter-field{grid-column:1 / -1}.training-status-select select{padding-right:58px}.training-status-select span{position:absolute;top:50%;right:32px;min-width:24px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#dbeafe;color:#2563eb;font-size:11px;font-weight:800;line-height:1;pointer-events:none;transform:translateY(-50%)}.status-filter-field select{border-color:#dbeafe;background:#eff6ff;color:#2563eb;font-weight:700}.training-search-row{display:flex;align-items:center;gap:8px}.training-filter-block .conversation-search{height:40px;padding:0 11px;border-color:#e2e8f0;border-radius:10px;background:#fff}.training-filter-block .conversation-search:focus-within{border-color:#b7d4ff;box-shadow:0 0 0 3px #2563eb1f}.training-filter-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#64748b}.training-list-head{flex:0 0 auto;padding:12px 14px 6px;color:#334155;font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase}.training-sample-list{min-height:0;flex:1;display:grid;align-content:start;gap:8px;max-height:none;overflow-y:auto;padding:8px}.training-sample-item{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px;width:100%;min-height:78px;padding:10px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);text-align:left}.training-sample-item:hover,.training-sample-item.active{border-color:#b7d4ff;background:#f8fbff;box-shadow:0 8px 18px #2563eb0b}.sample-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:#eef2f7;color:#64748b;font-size:12px;font-weight:700;line-height:1}.training-sample-item.active .sample-avatar{background:#dbeafe;color:#1d4ed8}.sample-content{min-width:0;display:grid;gap:5px}.sample-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.sample-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:1.25}.sample-head span{color:#64748b;font-size:12px;line-height:1.2}.sample-snippet{min-width:0;overflow:hidden;color:#475569;font-size:13px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.sample-tags{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.sample-intent{min-width:0;max-width:142px;height:22px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;padding:0 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:700;line-height:1;text-overflow:ellipsis;white-space:nowrap}.sample-intent-low,.sample-intent-medium{border-color:#bfdbfe;background:#eaf2ff;color:#1d4ed8}.sample-intent-high{border-color:#fecaca;background:#fef2f2;color:#dc2626}.sample-risk{flex:0 0 auto;font-size:12px;font-weight:700;line-height:1}.sample-risk-low{color:#16a34a}.sample-risk-medium{color:#f97316}.sample-risk-high{color:#dc2626}.queue-pagination{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px 12px;border-top:1px solid var(--line)}.queue-page-list{display:inline-flex;align-items:center;gap:6px}.queue-page-list button,.queue-page-list span,.queue-page-arrow{min-width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#64748b;font-size:12px;font-weight:700;line-height:1}.queue-page-list button.active{border-color:#2563eb;background:#2563eb;color:#fff}.queue-page-arrow{border-color:#e2e8f0;background:#fff;color:#64748b}button:disabled{cursor:not-allowed;opacity:.48}.training-workspace{display:grid;gap:14px;align-content:start;height:100%;overflow-y:auto;padding:0 2px 16px 0}.training-metadata{display:grid;grid-template-columns:minmax(112px,1fr) minmax(86px,.78fr) minmax(112px,1fr) minmax(118px,1.05fr) minmax(118px,1.05fr) minmax(172px,1.45fr);align-items:center;gap:12px;min-height:76px;padding:14px 16px}.metadata-item{display:grid;gap:8px;min-width:0}.metadata-item>span{color:#64748b;font-size:12px;font-weight:600;line-height:1}.metadata-item strong{min-width:0;display:inline-flex;align-items:center;gap:8px;overflow:hidden;color:#0f172a;font-size:14px;font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.metadata-channel-icon{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 auto;border-radius:999px;background:#2563eb;color:#fff}.metadata-avatar{width:22px;height:22px;display:inline-grid;place-items:center;flex:0 0 auto;border-radius:999px;background:#ede9fe;color:#7c3aed;font-size:10px;font-weight:700}.metadata-confidence strong{gap:9px}.metadata-confidence-track{width:74px;height:4px;overflow:hidden;flex:0 0 auto;border-radius:999px;background:#e6eaf2}.metadata-confidence-track span{display:block;height:100%;border-radius:inherit;background:#16a34a}.metadata-risk strong{gap:7px}.metadata-risk strong span{width:8px;height:8px;flex:0 0 auto;border-radius:999px;background:currentColor}.metadata-risk-low{color:#16a34a!important}.metadata-risk-medium{color:#f97316!important}.metadata-risk-high{color:#dc2626!important}.metadata-id strong{justify-content:flex-start;overflow:hidden}.metadata-id-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metadata-id button{width:24px;height:24px;display:inline-grid;place-items:center;flex:0 0 auto;border:0;border-radius:7px;background:transparent;color:#64748b}.metadata-id button:hover{background:#f1f5f9;color:#2563eb}.message-pair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.training-message-card{display:grid;grid-template-rows:auto minmax(86px,1fr) auto;gap:12px;min-width:0;min-height:232px;padding:16px;border-color:#e6eaf2;background:#fff}.training-message-card header{display:grid;gap:13px}.training-message-card h2{margin:0;color:#0f172a;font-size:16px;font-weight:700;line-height:1.25}.message-card-meta{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px}.message-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:999px;font-size:12px;font-weight:700;line-height:1}.customer-avatar{background:#ede9fe;color:#7c3aed}.agent-avatar{background:#e0e7ff;color:#4f46e5}.message-card-meta strong{min-width:0;overflow:hidden;color:#0f172a;font-size:14px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.message-card-meta time{color:#64748b;font-size:13px;font-weight:500;line-height:1}.training-message-bubble{min-width:0;max-width:100%;align-self:start;padding:15px 17px;border-radius:20px;background:#f8fafc;overflow-wrap:anywhere;word-break:break-word}.training-message-bubble p{margin:0;color:#0f172a;font-size:14px;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}.reply-bubble{background:#ecfdf5}.emoji-action-button{width:34px;height:34px;display:grid;place-items:center;align-self:end;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#64748b}.human-reply-card{border-color:#e6eaf2;background:#fff}.training-insight-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:16px;align-items:start}.training-analysis,.proposed-pattern{padding:16px}.proposed-pattern{display:grid;gap:11px;align-content:start;border-color:#e6eaf2;background:#fff;container-type:inline-size}.training-analysis{display:grid;gap:8px;border-color:#e6eaf2;background:#fff;container-type:inline-size}.training-card-title{margin-bottom:1px}.training-card-title h2{margin:0;color:#0f172a;font-size:16px;font-weight:700;line-height:1.25}.training-analysis .analysis-row{display:grid;grid-template-columns:126px minmax(0,1fr);align-items:start;gap:7px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}.training-analysis .analysis-row>span{color:#64748b;font-size:12px;font-weight:500;line-height:1.28}.training-analysis .analysis-row>strong{min-width:0;color:#0f172a;font-size:13px;font-weight:600;line-height:1.28}.analysis-pill-row{display:flex;flex-wrap:wrap;gap:5px}.analysis-pill{min-height:20px;display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2}.analysis-pill-intent,.analysis-pill-tag{border-color:#bfdbfe;background:#eaf2ff;color:#2563eb}.analysis-pill-stage,.analysis-pill-train{border-color:#bbf7d0;background:#ecfdf5;color:#16a34a}.analysis-pill-muted{border-color:#e2e8f0;background:#f1f5f9;color:#475569}.analysis-pill-danger{border-color:#fecaca;background:#fef2f2;color:#dc2626}.analysis-row-list ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}.analysis-row-list li{position:relative;display:flex;align-items:baseline;gap:5px;padding-left:10px;color:#0f172a;font-size:13px;line-height:1.25}.analysis-row-list li:before{content:"";position:absolute;left:0;top:.6em;width:4px;height:4px;border-radius:999px;background:#0f172a}.analysis-row-list li strong{font-weight:600}.analysis-row-list li span{min-width:0;color:#0f172a;font-weight:500}.analysis-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analysis-detail-grid>div,.needs-grid>div{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.analysis-detail-grid span,.needs-grid span{color:var(--muted);font-size:12px;font-weight:800}.analysis-detail-grid strong,.needs-grid strong{font-size:14px;line-height:1.45}.needs-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.tag-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.pattern-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.pattern-card-header h2{margin:0;color:#0f172a;font-size:17px;font-weight:700;line-height:1.2}.pattern-card-header p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.38}.pattern-view-button{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;padding:0 10px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#2563eb;font-size:12px;font-weight:700}.pattern-template-box{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;padding:14px;border:1px solid #b7d4ff;border-radius:12px;background:#f8fbff;color:#0f172a;font-family:inherit;font-size:13px;font-weight:600;line-height:1.55}.pattern-variable-token{color:#2563eb;font-weight:800}.pattern-variable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.pattern-variable-grid label{display:grid;gap:4px}.pattern-variable-grid span{color:#64748b;font-size:12px;font-weight:600}.pattern-variable-grid input{width:100%;height:36px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#0f172a;padding:0 9px;font-size:13px;font-weight:500}.pattern-more-row{height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;font-size:13px;font-weight:600}.training-empty{min-height:420px;display:grid;place-items:center;color:var(--muted)}.training-right-rail{display:grid;align-content:start;gap:16px;height:100%;overflow-y:auto;padding-bottom:16px}.training-right-rail .panel{border-color:#e6eaf2;border-radius:16px;background:#fff;padding:16px;box-shadow:0 8px 20px #0f172a05}.right-rail-card-header{margin-bottom:14px}.right-rail-card-header h2{margin:0;color:#0f172a;font-size:13px;font-weight:700;line-height:1.2;text-transform:uppercase}.review-history-card{min-height:224px}.review-timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.review-timeline-item{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;padding-bottom:16px}.review-timeline-item:last-child{padding-bottom:0}.review-timeline-item:not(:last-child):before{content:"";position:absolute;top:16px;bottom:0;left:7px;width:1px;background:#cbd5e1}.review-timeline-dot{position:relative;z-index:1;width:14px;height:14px;margin-top:2px;border:3px solid #ffffff;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 1px #cbd5e1}.review-success .review-timeline-dot{background:#16a34a}.review-warning .review-timeline-dot{background:#f97316}.review-danger .review-timeline-dot{background:#dc2626}.review-timeline-copy{min-width:0;display:grid;gap:5px}.review-timeline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.review-timeline-head strong{color:#0f172a;font-size:14px;font-weight:600;line-height:1.25}.review-timeline-head time{flex:0 0 auto;color:#64748b;font-size:12px;font-weight:500;line-height:1.25;text-align:right}.review-timeline-copy p{margin:0;color:#64748b;font-size:12px;line-height:1.45}.review-timeline-copy em{width:fit-content;min-height:20px;display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#eaf2ff;color:#2563eb;font-size:11px;font-style:normal;font-weight:700}.internal-note-card{display:grid;gap:11px}.internal-note-field{position:relative}.internal-note-box{width:100%;height:130px;min-height:130px;resize:vertical;border:1px solid #e2e8f0;border-radius:12px;outline:0;padding:12px 12px 24px;color:#0f172a;font-size:13px;line-height:1.45;margin-bottom:0}.internal-note-box::placeholder{color:#cbd5e1}.internal-note-field>span{position:absolute;right:12px;bottom:10px;color:#64748b;font-size:12px;line-height:1}.internal-note-box:focus{border-color:#bdd0ea;box-shadow:0 0 0 3px #12325b14}.internal-note-card .secondary-button{min-height:40px;border-color:#e2e8f0;border-radius:10px;color:#334155}.internal-note-card .secondary-button:disabled{background:#f8fafc;color:#94a3b8;opacity:1}.training-sticky-actions{position:fixed;right:0;bottom:0;left:296px;height:78px;min-height:78px;z-index:19;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:0;padding:12px 24px;border-top:1px solid #e6eaf2;background:#fff;box-shadow:0 -10px 24px #0f172a12}.sticky-sample-state{display:grid;grid-template-columns:auto auto;grid-template-areas:"label nav" "count nav";align-items:center;column-gap:18px;row-gap:4px;flex:0 0 auto}.sticky-sample-state>span{grid-area:label;color:#64748b;font-size:12px;font-weight:700;line-height:1.2}.sticky-sample-state>strong{grid-area:count;color:#0f172a;font-size:22px;font-weight:800;line-height:1}.sticky-nav-actions{grid-area:nav;display:flex;gap:8px}.sticky-action-buttons{min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;flex:1}.training-sticky-actions .primary-button{min-height:42px;padding:0 16px;border-color:#16a34a;background:#16a34a;border-radius:12px;box-shadow:0 10px 20px #16a34a29}.training-sticky-actions .danger-button{min-height:42px;padding:0 16px;border-color:#fecaca;background:#fef2f2;color:#dc2626;border-radius:12px}.training-sticky-actions .secondary-button{min-height:42px;padding:0 15px;border-color:#e2e8f0;background:#fff;color:#334155;border-radius:12px;box-shadow:0 8px 18px #0f172a05;white-space:nowrap}.training-sticky-actions .split-action-button{min-width:116px;gap:0;overflow:hidden;padding:0}.training-sticky-actions .split-action-button>svg:first-child{flex:0 0 auto;margin-left:16px;margin-right:8px}.training-sticky-actions .split-action-button>span:not(.action-chevron){padding-right:14px}.training-sticky-actions .action-chevron{width:34px;align-self:stretch;display:inline-flex;align-items:center;justify-content:center;margin-left:0;border-left:1px solid currentColor}.training-sticky-actions .approve-action .action-chevron{color:#fff;border-left-color:#ffffff52}.training-sticky-actions .reject-action .action-chevron{color:#dc2626;border-left-color:#fecaca}.training-sticky-actions .sticky-icon-button{width:40px;min-height:40px;padding:0;flex:0 0 auto}@container (max-width: 340px){.training-analysis .analysis-row{grid-template-columns:1fr;gap:5px}.analysis-row-list li{display:block}.analysis-row-list li strong:after{content:" "}}@container (max-width: 380px){.pattern-variable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.app-shell:has(.pattern-library-page){--pattern-shell-bg: #f6f8fb;--pattern-shell-surface: #ffffff;--pattern-shell-surface-muted: #f8fafc;--pattern-shell-hover: #f1f5f9;--pattern-shell-text: #0f172a;--pattern-shell-muted: #64748b;--pattern-shell-border: #e2e8f0;--pattern-shell-primary: #635bff;--pattern-shell-primary-soft: #eef2ff;--pattern-shell-radius-control: 11px;--pattern-shell-radius-card: 16px;--pattern-shell-shadow-card: 0 10px 22px rgba(15, 23, 42, .026);--pattern-sidebar-active: #082657;--pattern-sidebar-active-shadow: 0 10px 20px rgba(8, 38, 87, .14);--pattern-sidebar-active-badge: rgba(255, 255, 255, .18);--bg: var(--pattern-shell-bg);--surface: var(--pattern-shell-surface);--line: var(--pattern-shell-border);--text: var(--pattern-shell-text);--muted: var(--pattern-shell-muted)}.app-shell:has(.pattern-library-page) .shell-main{background:var(--pattern-shell-bg)}.app-shell:has(.pattern-library-page) .sidebar,.app-shell:has(.pattern-library-page) .topbar{background:var(--pattern-shell-surface);border-color:var(--pattern-shell-border)}.app-shell:has(.pattern-library-page) .brand-copy strong,.app-shell:has(.pattern-library-page) .workspace-switcher,.app-shell:has(.pattern-library-page) .icon-button,.app-shell:has(.pattern-library-page) .user-menu,.app-shell:has(.pattern-library-page) .user-copy strong{color:var(--pattern-shell-text)}.app-shell:has(.pattern-library-page) .brand-copy span,.app-shell:has(.pattern-library-page) .side-link svg,.app-shell:has(.pattern-library-page) .plan-card-head span,.app-shell:has(.pattern-library-page) .plan-expiry,.app-shell:has(.pattern-library-page) .user-copy small{color:var(--pattern-shell-muted)}.app-shell:has(.pattern-library-page) .global-search,.app-shell:has(.pattern-library-page) .workspace-switcher,.app-shell:has(.pattern-library-page) .icon-button,.app-shell:has(.pattern-library-page) .user-menu,.app-shell:has(.pattern-library-page) .plan-card,.app-shell:has(.pattern-library-page) .plan-card button{border-color:var(--pattern-shell-border);background:var(--pattern-shell-surface)}.app-shell:has(.pattern-library-page) .global-search,.app-shell:has(.pattern-library-page) .workspace-switcher,.app-shell:has(.pattern-library-page) .icon-button,.app-shell:has(.pattern-library-page) .user-menu,.app-shell:has(.pattern-library-page) .plan-card button{border-radius:var(--pattern-shell-radius-control)}.app-shell:has(.pattern-library-page) .side-link{border-radius:var(--pattern-shell-radius-control);color:var(--pattern-shell-text)}.app-shell:has(.pattern-library-page) .side-link:hover{background:var(--pattern-shell-hover)}.app-shell:has(.pattern-library-page) .side-link.active{background:var(--pattern-sidebar-active);box-shadow:var(--pattern-sidebar-active-shadow)}.app-shell:has(.pattern-library-page) .side-link.active,.app-shell:has(.pattern-library-page) .side-link.active svg,.app-shell:has(.pattern-library-page) .side-link.active em{color:var(--pattern-shell-surface)}.app-shell:has(.pattern-library-page) .side-link em,.app-shell:has(.pattern-library-page) .plan-card-head strong{background:var(--pattern-shell-primary-soft);color:var(--pattern-sidebar-active)}.app-shell:has(.pattern-library-page) .side-link.active em{background:var(--pattern-sidebar-active-badge);color:var(--pattern-shell-surface)}.app-shell:has(.pattern-library-page) .plan-card{border-radius:var(--pattern-shell-radius-card);box-shadow:var(--pattern-shell-shadow-card)}.app-shell:has(.pattern-library-page) .plan-card button,.app-shell:has(.pattern-library-page) .plan-usage-row strong{color:var(--pattern-shell-text)}.app-shell:has(.pattern-library-page) .mini-progress{background:var(--pattern-shell-primary-soft)}.app-shell:has(.pattern-library-page) .mini-progress span{background:var(--pattern-shell-primary)}.app-shell:has(.pattern-library-page) .search-shortcut{background:var(--pattern-shell-surface-muted);color:var(--pattern-shell-muted)}.pattern-library-page{--pattern-text: #0f172a;--pattern-text-soft: #334155;--pattern-muted: #64748b;--pattern-subtle: #94a3b8;--pattern-border: #e2e8f0;--pattern-border-strong: #e5e7eb;--pattern-line-soft: #eef2f7;--pattern-bg: #f6f8fb;--pattern-surface: #ffffff;--pattern-surface-muted: #f8fafc;--pattern-surface-hover: #fbfdff;--pattern-text-inverse: #ffffff;--pattern-primary: #635bff;--pattern-primary-strong: #4f46e5;--pattern-primary-soft: #eef2ff;--pattern-primary-border: #c7d2fe;--pattern-primary-gradient: linear-gradient(135deg, var(--pattern-primary) 0%, var(--pattern-primary-strong) 100%);--pattern-primary-soft-gradient: linear-gradient(145deg, var(--pattern-primary-soft) 0%, var(--pattern-surface-muted) 100%);--pattern-icon-gradient: linear-gradient(135deg, rgba(99, 91, 255, .92), rgba(79, 70, 229, .88));--pattern-danger-gradient: linear-gradient(135deg, var(--pattern-warning) 0%, var(--pattern-danger) 100%);--pattern-surface-gradient: linear-gradient(180deg, var(--pattern-surface) 0%, var(--pattern-surface-hover) 100%);--pattern-selected-bg: #f4f7ff;--pattern-selected-border: #9b9cf8;--pattern-info: #1d4ed8;--pattern-info-soft: #eff6ff;--pattern-info-border: #dbeafe;--pattern-success: #059669;--pattern-success-soft: #dcfce7;--pattern-success-strong: #15803d;--pattern-warning: #c2410c;--pattern-warning-soft: #ffedd5;--pattern-danger: #dc2626;--pattern-danger-soft: #fee2e2;--pattern-danger-strong: #b91c1c;--pattern-neutral-soft: #f1f5f9;--pattern-neutral-strong: #475569;--pattern-neutral-muted: #e5e7eb;--pattern-radius-control: 11px;--pattern-radius-card: 16px;--pattern-radius-section: 12px;--pattern-shadow-card: 0 10px 22px rgba(15, 23, 42, .026);--pattern-shadow-raised: 0 12px 24px rgba(15, 23, 42, .035);--pattern-shadow-primary: 0 12px 20px rgba(79, 70, 229, .18);--pattern-icon-inset: inset 0 0 0 1px rgba(255, 255, 255, .45);--pattern-focus-ring: 0 0 0 3px rgba(99, 91, 255, .12);--pattern-space-2: 8px;--pattern-space-3: 12px;--pattern-space-4: 16px;--pattern-space-5: 20px;--pattern-space-6: 24px;min-height:calc(100vh - 112px);display:grid;gap:var(--pattern-space-4);min-width:0;background:var(--pattern-bg);color:var(--pattern-text);font-size:14px}.pattern-library-page svg{stroke-width:2}.pattern-page-header{display:flex;align-items:center;justify-content:space-between;gap:var(--pattern-space-6);padding-bottom:var(--pattern-space-2)}.pattern-title-wrap{min-width:0;display:flex;align-items:center;gap:var(--pattern-space-4)}.pattern-title-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--pattern-primary-border);border-radius:var(--pattern-radius-section);background:var(--pattern-primary-soft-gradient);color:var(--pattern-primary-strong);box-shadow:var(--pattern-shadow-card)}.pattern-page-header h1{margin:0;color:var(--pattern-text);font-size:28px;font-weight:700;line-height:1.15}.pattern-page-header p{margin:6px 0 0;color:var(--pattern-muted);font-size:14px;line-height:1.45}.pattern-page-actions{display:flex;align-items:center;gap:var(--pattern-space-2);flex:0 0 auto}.pattern-page-actions .primary-button,.pattern-page-actions .secondary-button{min-height:40px;border-radius:var(--pattern-radius-control);padding:0 14px;font-size:13px;font-weight:800}.pattern-secondary-action{border-color:var(--pattern-border);background:var(--pattern-surface);color:var(--pattern-text-soft)}.pattern-primary-action{border-color:var(--pattern-primary);background:var(--pattern-primary-gradient);color:var(--pattern-text-inverse);box-shadow:var(--pattern-shadow-primary)}.pattern-toolbar{display:grid;grid-template-columns:minmax(220px,1.2fr) repeat(5,minmax(108px,128px)) auto;gap:var(--pattern-space-2);padding:var(--pattern-space-4);border:1px solid var(--pattern-border);border-radius:var(--pattern-radius-card);background:var(--pattern-surface);box-shadow:var(--pattern-shadow-card)}.pattern-toolbar>*{min-width:0}.pattern-toolbar label{display:grid;gap:6px}.pattern-toolbar label>span{color:var(--pattern-muted);font-size:12px;font-weight:800;line-height:1.2}.pattern-toolbar select{width:100%;height:40px;border:1px solid var(--pattern-border);border-radius:var(--pattern-radius-control);background:var(--pattern-surface);color:var(--pattern-neutral-strong);padding:0 10px;font-size:13px}.pattern-toolbar select:focus-visible,.pattern-search:focus-within,.pattern-page-size:focus-visible,.pattern-filter-button:focus-visible,.pattern-menu-button:focus-visible,.pattern-row-menu:focus-visible,.pattern-page-nav:focus-visible,.pattern-page-list button:focus-visible,.pattern-detail-action-button:focus-visible,.pattern-add-variable-button:focus-visible,.pattern-link-button:focus-visible,.pattern-promote-button:focus-visible{outline:none;box-shadow:var(--pattern-focus-ring)}.pattern-search{height:40px;min-height:40px;align-self:end;border-color:var(--pattern-border);border-radius:var(--pattern-radius-control);background:var(--pattern-surface);color:var(--pattern-muted)}.pattern-search input::placeholder{color:var(--pattern-subtle)}.pattern-toolbar-actions{display:flex;align-items:end;gap:var(--pattern-space-2);min-width:0}.pattern-filter-button,.pattern-menu-button,.pattern-row-menu,.pattern-page-nav,.pattern-page-list button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pattern-border);border-radius:var(--pattern-radius-control);background:var(--pattern-surface);color:var(--pattern-neutral-strong);font-size:13px;font-weight:700}.pattern-filter-button{gap:7px;padding:0 12px;white-space:nowrap}.pattern-menu-button,.pattern-row-menu{width:40px;padding:0;flex:0 0 auto}.pattern-split-view{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(420px,.9fr);gap:var(--pattern-space-6);align-items:start;min-width:0}.pattern-split-view>*{min-width:0}.pattern-table-panel{min-width:0;display:grid;gap:var(--pattern-space-4);align-content:start}.pattern-table-card{max-width:100%;overflow:hidden;border:1px solid var(--pattern-border-strong);border-radius:var(--pattern-radius-card);background:var(--pattern-surface);box-shadow:var(--pattern-shadow-raised)}.pattern-table-card-head{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:var(--pattern-space-4);padding:12px 16px;border-bottom:1px solid var(--pattern-border-strong)}.pattern-table-card-head strong{color:var(--pattern-text);font-size:14px;font-weight:800}.pattern-table-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.pattern-table{width:100%;min-width:1056px;border-collapse:separate;border-spacing:0}.pattern-table th,.pattern-table td{height:56px;padding:8px 12px;border-bottom:1px solid var(--pattern-line-soft);text-align:left;vertical-align:middle;font-size:13px}.pattern-table th{height:40px;background:var(--pattern-surface-muted);color:var(--pattern-muted);font-size:11px;font-weight:800;line-height:1.2;text-transform:uppercase;white-space:nowrap}.pattern-table tbody tr{cursor:pointer;transition:background-color .14s ease,box-shadow .14s ease}.pattern-table tbody tr:hover td{background:var(--pattern-surface-hover)}.pattern-table tbody tr:last-child td{border-bottom:0}.pattern-row-selected td{background:var(--pattern-selected-bg);border-top:1px solid var(--pattern-selected-border);border-bottom:1px solid var(--pattern-selected-border)}.pattern-row-selected td:first-child{border-left:1px solid var(--pattern-selected-border);border-radius:12px 0 0 12px}.pattern-row-selected td:last-child{border-right:1px solid var(--pattern-selected-border);border-radius:0 12px 12px 0}.pattern-check-col{width:44px;text-align:center!important}.pattern-actions-col{width:76px;text-align:center!important}.pattern-checkbox{width:16px;height:16px;margin:0;accent-color:var(--pattern-primary)}.pattern-id-button{min-height:28px;padding:0 8px;border-radius:8px;color:var(--pattern-text);font-weight:800}.pattern-id-button.active{background:var(--pattern-primary-soft);color:var(--pattern-primary-strong)}.pattern-name-cell{min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px}.pattern-name-icon{width:26px;height:26px;border-radius:8px;background:var(--pattern-icon-gradient),var(--pattern-primary-soft);box-shadow:var(--pattern-icon-inset)}.pattern-name-cell>div{min-width:0;display:grid;gap:3px}.pattern-name-cell strong{min-width:0;overflow:hidden;color:var(--pattern-text);font-size:13px;font-weight:800;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.pattern-name-cell span{min-width:0;overflow:hidden;color:var(--pattern-muted);font-size:12px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.pattern-intent-cell{max-width:152px;overflow:hidden;color:var(--pattern-neutral-strong);text-overflow:ellipsis;white-space:nowrap}.pattern-domain-pill,.pattern-quality-pill,.pattern-status-pill{min-height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:0 9px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.pattern-domain-pill{border:1px solid var(--pattern-info-border);background:var(--pattern-info-soft);color:var(--pattern-info)}.pattern-success-text{font-size:13px;font-weight:800}.pattern-success-text.good{color:var(--pattern-success)}.pattern-success-text.danger{color:var(--pattern-danger)}.pattern-usage-cell{color:var(--pattern-neutral-strong);font-weight:700}.pattern-quality-pill.good{background:var(--pattern-success-soft);color:var(--pattern-success-strong)}.pattern-quality-pill.warning{background:var(--pattern-warning-soft);color:var(--pattern-warning)}.pattern-quality-pill.danger{background:var(--pattern-danger-soft);color:var(--pattern-danger-strong)}.pattern-status-active{background:var(--pattern-success-soft);color:var(--pattern-success-strong)}.pattern-status-testing{background:var(--pattern-warning-soft);color:var(--pattern-warning)}.pattern-status-draft{background:var(--pattern-neutral-soft);color:var(--pattern-neutral-strong)}.pattern-status-archived{background:var(--pattern-neutral-muted);color:var(--pattern-text-soft)}.pattern-row-menu{width:32px;min-height:32px;border-color:transparent;border-radius:8px;background:transparent}.pattern-row-menu:hover{border-color:var(--pattern-border);background:var(--pattern-surface)}.pattern-pagination{min-height:64px;display:flex;align-items:center;justify-content:flex-end;gap:var(--pattern-space-2);padding:12px 16px;border-top:1px solid var(--pattern-border-strong)}.pattern-page-nav{padding:0 12px}.pattern-page-nav:disabled{cursor:not-allowed;color:var(--pattern-subtle)}.pattern-page-list{display:flex;align-items:center;gap:4px}.pattern-page-list button{width:36px;padding:0}.pattern-page-list button.active{border-color:var(--pattern-primary);background:var(--pattern-primary);color:var(--pattern-text-inverse)}.pattern-page-list span{min-width:24px;color:var(--pattern-muted);text-align:center;font-size:13px;font-weight:800}.pattern-page-size{height:40px;border:1px solid var(--pattern-border);border-radius:var(--pattern-radius-control);background:var(--pattern-surface);color:var(--pattern-neutral-strong);padding:0 10px;font-size:13px;font-weight:700}.pattern-detail-panel{position:sticky;top:88px;display:grid;gap:var(--pattern-space-4);max-width:100%;overflow:visible;padding:var(--pattern-space-6);border:1px solid var(--pattern-border-strong);border-radius:var(--pattern-radius-card);background:var(--pattern-surface);box-shadow:var(--pattern-shadow-raised)}.pattern-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--pattern-space-4);align-items:flex-start;padding-bottom:4px}.pattern-detail-title-block{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);gap:var(--pattern-space-3);align-items:flex-start}.pattern-detail-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--pattern-primary-border);border-radius:var(--pattern-radius-section);background:var(--pattern-primary-soft-gradient);color:var(--pattern-primary-strong)}.pattern-detail-title-row{min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pattern-detail-title-row h2{margin:0;min-width:0;color:var(--pattern-text);font-size:20px;font-weight:800;line-height:1.25}.pattern-detail-actions{display:flex;gap:var(--pattern-space-2)}.pattern-detail-action-button{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--pattern-border);border-radius:var(--pattern-radius-control);background:var(--pattern-surface);color:var(--pattern-neutral-strong)}.pattern-detail-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;color:var(--pattern-muted);font-size:12px;line-height:1.45}.pattern-detail-meta strong{color:var(--pattern-neutral-strong);font-weight:800}.pattern-detail-card{display:grid;gap:var(--pattern-space-3);padding:var(--pattern-space-4);border:1px solid var(--pattern-border-strong);border-radius:var(--pattern-radius-section);background:var(--pattern-surface)}.pattern-detail-card h3{margin:0;color:var(--pattern-text);font-size:15px;font-weight:800;line-height:1.3}.pattern-detail-card h3 span{color:var(--pattern-muted);font-weight:700}.pattern-detail-card p{margin:0;color:var(--pattern-neutral-strong);font-size:13px;line-height:1.55}.pattern-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--pattern-space-3)}.pattern-template-performance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:var(--pattern-space-4)}.pattern-template-card{align-content:start}.pattern-add-variable-button,.pattern-link-button{min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--pattern-border);border-radius:9px;background:var(--pattern-surface);color:var(--pattern-neutral-strong);padding:0 9px;font-size:12px;font-weight:800;white-space:nowrap}.pattern-template-editor{display:grid;gap:var(--pattern-space-3);min-height:240px;padding:14px;border:1px solid var(--pattern-primary-border);border-radius:var(--pattern-radius-section);background:var(--pattern-surface-muted);color:var(--pattern-text-soft);font-size:13px;line-height:1.6}.pattern-template-editor p,.pattern-template-editor ul{margin:0}.pattern-template-editor ul{display:grid;gap:4px;padding-left:18px}.pattern-template-editor span{color:var(--pattern-primary-strong);font-weight:800}.pattern-performance-card{align-content:start}.pattern-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px}.pattern-detail-metric-card{display:grid;gap:5px;padding:12px;border:1px solid var(--pattern-line-soft);border-radius:var(--pattern-radius-section);background:var(--pattern-surface-hover)}.pattern-detail-metric-card span{color:var(--pattern-muted);font-size:12px;font-weight:800;line-height:1.25}.pattern-detail-metric-card strong{color:var(--pattern-text);font-size:22px;font-weight:850;line-height:1.15}.pattern-detail-metric-card small{font-size:11px;font-weight:800;line-height:1.35}.delta-good{color:var(--pattern-success)}.delta-bad{color:var(--pattern-danger)}.pattern-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--pattern-space-4)}.pattern-context-list,.pattern-promote-checklist{display:grid;gap:9px;margin:0;padding:0;list-style:none}.pattern-context-list li,.pattern-promote-checklist div{display:flex;align-items:center;gap:var(--pattern-space-2);color:var(--pattern-text-soft);font-size:13px;font-weight:700;line-height:1.4}.context-check,.context-x,.pattern-promote-checklist span{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 auto;border-radius:999px}.context-check,.pattern-promote-checklist span{background:var(--pattern-success-soft);color:var(--pattern-success-strong)}.context-x{background:var(--pattern-danger-soft);color:var(--pattern-danger)}.pattern-version-card{gap:14px}.pattern-version-timeline{display:grid;gap:14px;margin:0;padding:0;list-style:none}.pattern-version-timeline li{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px}.pattern-version-timeline li:not(:last-child):before{content:"";position:absolute;top:18px;bottom:-14px;left:8px;border-left:1px solid var(--pattern-border)}.pattern-version-timeline>li>span{width:18px;height:18px;margin-top:1px;border:4px solid var(--pattern-primary-soft);border-radius:999px;background:var(--pattern-subtle);z-index:1}.pattern-version-timeline>li.current>span{background:var(--pattern-primary)}.pattern-version-timeline strong{color:var(--pattern-text);font-size:13px}.pattern-version-timeline p{margin-top:3px;color:var(--pattern-muted);font-size:12px;line-height:1.45}.pattern-promote-card{background:var(--pattern-surface-gradient)}.pattern-promote-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--pattern-primary);border-radius:var(--pattern-radius-section);background:var(--pattern-primary-gradient);color:var(--pattern-text-inverse);font-size:14px;font-weight:850;box-shadow:var(--pattern-shadow-primary)}.pattern-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--pattern-space-4)}.pattern-analytics-card{display:grid;gap:14px;padding:14px;border:1px solid var(--pattern-border-strong);border-radius:var(--pattern-radius-card);background:var(--pattern-surface);box-shadow:var(--pattern-shadow-card)}.pattern-analytics-card header{display:flex;align-items:center;justify-content:space-between;gap:var(--pattern-space-3)}.pattern-analytics-card h3{margin:0;color:var(--pattern-text);font-size:15px;font-weight:800;line-height:1.3}.pattern-analytics-card header button{border:0;background:transparent;color:var(--pattern-primary-strong);padding:0;font-size:12px;font-weight:800;white-space:nowrap}.pattern-analytics-list,.pattern-variant-list{display:grid;gap:10px}.pattern-analytics-row{display:grid;grid-template-columns:16px 20px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:42px}.pattern-rank{color:var(--pattern-subtle);font-size:12px;font-weight:850;text-align:center}.pattern-mini-icon{width:20px;height:20px;display:inline-block;border-radius:7px;background:var(--pattern-icon-gradient)}.pattern-mini-icon.danger{background:var(--pattern-danger-gradient)}.pattern-analytics-row strong,.pattern-variant-row strong{min-width:0;overflow:hidden;color:var(--pattern-text-soft);font-size:13px;font-weight:800;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.pattern-analytics-row em,.pattern-decline-metric em,.pattern-variant-row em{font-style:normal;font-size:13px;font-weight:850;white-space:nowrap}.analytics-good{color:var(--pattern-success)}.pattern-decline-metric{display:grid;gap:2px;justify-items:end}.pattern-decline-metric em,.pattern-decline-metric small{color:var(--pattern-danger)}.pattern-decline-metric small{font-size:11px;font-weight:800;line-height:1.1;white-space:nowrap}.pattern-variant-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--pattern-space-2);min-height:46px;padding:10px;border:1px solid var(--pattern-line-soft);border-radius:var(--pattern-radius-section);background:var(--pattern-surface-hover)}.pattern-variant-row>div{min-width:0;display:grid;gap:3px}.pattern-variant-row span{color:var(--pattern-muted);font-size:12px;font-weight:700}.pattern-variant-row em{color:var(--pattern-success)}.pattern-variant-badge{min-height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:0 8px;font-size:11px!important;font-weight:850!important;white-space:nowrap}.pattern-variant-badge.winner{background:var(--pattern-success-soft);color:var(--pattern-success-strong)}.pattern-variant-badge.runner{background:var(--pattern-primary-soft);color:var(--pattern-primary-strong)}.pattern-ab-card footer{padding-top:2px;color:var(--pattern-muted);font-size:12px;font-weight:700;line-height:1.4}.memory-page{min-width:0;--memory-navy: #071b49;--memory-text: #0f172a;--memory-muted: #64748b;--memory-blue: #2563eb;--memory-blue-strong: #3b82f6;--memory-green: #16a34a;--memory-orange: #f59e0b;--memory-red: #ef4444;--memory-purple: #7c3aed;--memory-border: #e5eaf3;--memory-line-soft: #edf1f7;--memory-card-shadow: 0 10px 24px rgba(7, 27, 73, .035);--memory-card-shadow-hover: 0 12px 28px rgba(37, 99, 235, .08);color:var(--memory-text)}.memory-page-header{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.memory-page-title-row{min-width:0;display:flex;align-items:center;gap:14px}.memory-page-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:#f3e8ff;color:var(--memory-purple)}.memory-page-header h1{margin:0;color:var(--memory-navy);font-size:24px;font-weight:750;line-height:1.2}.memory-page-header p{margin:6px 0 0;color:var(--memory-muted);font-size:13px;line-height:1.5}.memory-date-picker{height:42px;display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;padding:0 14px;border:1px solid var(--memory-border);border-radius:12px;background:#fff;color:var(--memory-navy);box-shadow:var(--memory-card-shadow);font-size:13px;font-weight:700;white-space:nowrap}.memory-browser-layout{min-width:0;display:grid;grid-template-columns:360px minmax(0,1fr) 300px;gap:20px;align-items:start}.memory-left-pane,.memory-main-detail,.memory-right-rail{min-width:0}.memory-left-pane{width:360px;display:flex;flex-direction:column;border:1px solid var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow);overflow:hidden}.memory-tabs{display:flex;gap:18px;padding:0 16px;border-bottom:1px solid var(--memory-border);background:#fff}.memory-tabs button{position:relative;min-width:0;flex:1;min-height:52px;border:0;border-radius:0;background:transparent;color:var(--memory-muted);font-size:13px;font-weight:700;line-height:1.2}.memory-tabs button.active{background:transparent;color:var(--memory-blue);box-shadow:none}.memory-tabs button.active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:999px;background:var(--memory-blue)}.memory-left-controls{display:grid;gap:14px;padding:16px 16px 12px}.memory-search-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:10px}.memory-entity-search{min-width:0;height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--memory-border);border-radius:10px;background:#fff;color:#94a3b8}.memory-entity-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--memory-text);font-size:14px}.memory-entity-search input::placeholder{color:#94a3b8}.memory-filter-button{width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid var(--memory-border);border-radius:10px;background:#fff;color:var(--memory-muted)}.memory-filter-button:hover{border-color:#bfdbfe;background:#eff6ff;color:var(--memory-blue)}.memory-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--memory-navy);font-size:13px;font-weight:750}.memory-list-summary strong{flex:0 0 auto;color:var(--memory-muted);font-size:13px}.memory-entity-list{display:grid;gap:8px;overflow:visible;padding:4px 12px 12px}.memory-entity-item{width:100%;min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;padding:12px;border:1px solid #eef2f7;border-radius:12px;background:#fff;color:var(--memory-text);text-align:left;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease}.memory-entity-item:hover{border-color:#bfdbfe;background:#eff6ff}.memory-entity-item.active{border-color:var(--memory-blue-strong);background:#eff6ff;box-shadow:var(--memory-card-shadow-hover)}.memory-list-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:999px;background:#eef4ff;color:var(--memory-blue);font-size:12px;font-weight:800;line-height:1}.memory-list-body{min-width:0;display:grid;gap:6px}.memory-entity-head{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.memory-name-badge{min-width:0;display:flex;align-items:center;gap:7px}.memory-name-badge strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750;line-height:1.2}.memory-entity-head time{flex:0 0 auto;color:var(--memory-muted);font-size:12px;font-weight:700;line-height:1.2}.memory-entity-badge{flex:0 0 auto;padding:3px 7px;border-radius:999px;font-size:11px;font-style:normal;font-weight:750;line-height:1.1}.badge-loyal{background:#ecfdf5;color:var(--memory-green)}.badge-champions{background:#dcfce7;color:#15803d}.badge-potential{background:#f3e8ff;color:var(--memory-purple)}.memory-entity-meta{min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--memory-muted);font-size:13px;line-height:1.45}.memory-left-pagination{display:grid;gap:12px;padding:12px 16px 16px;border-top:1px solid #eef2f7}.memory-left-pagination p{margin:0;color:var(--memory-muted);font-size:12px;font-weight:700;line-height:1.3}.memory-pagination{display:flex;align-items:center;gap:6px;min-width:0}.memory-pagination button,.memory-pagination span{min-width:28px;height:28px;display:inline-grid;place-items:center;border:1px solid var(--memory-border);border-radius:8px;background:#fff;color:var(--memory-muted);font-size:12px;font-weight:750;line-height:1}.memory-pagination button.active{border-color:var(--memory-blue);background:var(--memory-blue);color:#fff}.memory-pagination span{border-color:transparent;background:transparent}.memory-main-detail{container-type:inline-size;display:grid;gap:16px}.memory-profile,.memory-info-card,.memory-right-rail .panel{border-color:var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow)}.memory-profile{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.memory-profile-left{min-width:0;display:flex;align-items:center;gap:16px}.memory-profile-avatar{width:64px;height:64px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:linear-gradient(145deg,var(--memory-navy) 0%,var(--memory-blue) 100%);color:#fff;box-shadow:0 14px 28px #2563eb2e;font-size:18px;font-weight:800;line-height:1}.memory-profile-main{min-width:0;display:grid;gap:10px}.memory-profile-title{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:9px}.memory-profile-title h2{margin:0;color:var(--memory-navy);font-size:24px;font-weight:750;line-height:1.2}.memory-profile-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border:1px solid #b9e6d0;border-radius:999px;background:#ecfdf5;color:var(--memory-green);font-size:12px;font-weight:750;line-height:1.2}.memory-profile-star{flex:0 0 auto;color:var(--memory-orange)}.memory-contact-row{min-width:0;display:flex;flex-wrap:wrap;gap:9px 14px;color:var(--memory-muted);font-size:13px;line-height:1.35}.memory-contact-item{min-width:0;display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.memory-contact-item svg{flex:0 0 auto;color:#94a3b8}.memory-contact-item strong{color:#475569;font-weight:750}.memory-profile-updated{flex:0 0 auto;display:grid;gap:4px;text-align:right}.memory-profile-updated span{color:#94a3b8;font-size:12px;font-weight:700;line-height:1.3}.memory-profile-updated strong{color:var(--memory-navy);font-size:14px;font-weight:750;line-height:1.3}.memory-kpi-strip{min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow);overflow:hidden}.memory-kpi-block{position:relative;min-width:0;display:grid;align-content:start;gap:8px;min-height:142px;padding:18px}.memory-kpi-block+.memory-kpi-block{border-left:1px solid var(--memory-line-soft)}.memory-kpi-label{color:var(--memory-muted);font-size:12px;font-weight:700;letter-spacing:0;line-height:1.35}.memory-kpi-value{min-width:0;overflow:hidden;color:var(--memory-navy);font-size:22px;font-weight:750;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.memory-kpi-block p{margin:0;color:var(--memory-muted);font-size:12px;font-weight:650;line-height:1.4}.memory-health-row{min-width:0;display:flex;align-items:center;gap:9px}.memory-health-row strong{color:var(--memory-navy);font-size:32px;font-weight:800;line-height:1}.memory-health-row em{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:#ecfdf5;color:var(--memory-green);font-size:12px;font-style:normal;font-weight:750;line-height:1.2}.memory-sparkline{width:100%;max-width:132px;height:32px;margin-top:2px}.memory-sparkline path{fill:none;stroke:var(--memory-green);stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.memory-stage-progress{height:8px;overflow:hidden;border-radius:999px;background:#e8eef7}.memory-stage-progress span{display:block;width:40%;height:100%;border-radius:inherit;background:var(--memory-green)}.memory-sale-owner{min-width:0;display:flex;align-items:center;gap:10px}.memory-sale-owner>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:#eaf2ff;color:var(--memory-blue);font-size:11px;font-weight:800;line-height:1}.memory-sale-owner div{min-width:0}.memory-sale-owner strong{display:block;min-width:0;overflow:hidden;color:var(--memory-navy);font-size:14px;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.memory-domain-chip{width:fit-content;max-width:100%;overflow:hidden;padding:7px 10px;border-radius:999px;background:#f0e7ff;color:var(--memory-purple);font-size:13px;font-weight:750;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.memory-card-grid{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.memory-summary-card{width:100%;min-width:0;min-height:238px;display:flex;flex-direction:column;padding:16px;border:1px solid var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.memory-summary-card:hover{border-color:#dbeafe;box-shadow:var(--memory-card-shadow-hover)}.memory-summary-card-header{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:10px;margin-bottom:14px}.memory-summary-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px}.memory-summary-icon.icon-blue{background:#eff6ff;color:var(--memory-blue)}.memory-summary-icon.icon-green{background:#ecfdf5;color:var(--memory-green)}.memory-summary-icon.icon-amber{background:#fff7ed;color:var(--memory-orange)}.memory-summary-icon.icon-purple{background:#f0e7ff;color:var(--memory-purple)}.memory-summary-icon.icon-slate{background:#f1f5f9;color:#475569}.memory-summary-card-header h3{display:-webkit-box;min-width:0;overflow:hidden;margin:0;color:var(--memory-navy);font-size:15px;font-weight:750;line-height:1.25;overflow-wrap:normal;white-space:normal;word-break:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.memory-summary-card-header>strong{min-width:26px;min-height:24px;display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:var(--memory-navy);font-size:12px;font-weight:750;line-height:1}.memory-summary-list{min-width:0;display:grid;gap:10px;margin:0;padding:0;list-style:none}.memory-summary-list li{min-width:0;display:grid;grid-template-columns:7px minmax(0,1fr);gap:9px;color:#334155;font-size:13px;line-height:1.55;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-summary-list li:before{content:"";width:7px;height:7px;margin-top:7px;border-radius:999px;background:var(--memory-blue)}.memory-summary-link{width:fit-content;min-height:28px;margin-top:auto;padding:12px 0 0;border:0;background:transparent;color:var(--memory-blue);font-size:13px;font-weight:750;line-height:1.2}.memory-summary-link:hover,.memory-history-link:hover,.memory-rail-link:hover{color:var(--memory-blue-strong);text-decoration:underline;text-underline-offset:3px}.memory-source-list{min-width:0;display:grid;gap:13px}.memory-source-row{min-width:0;display:grid;gap:7px}.memory-source-row>div:first-child{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px}.memory-source-row span,.memory-source-row strong{font-size:13px;line-height:1.35}.memory-source-row span{min-width:0;color:#334155;font-weight:650;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-source-row strong{flex:0 0 auto;color:var(--memory-navy);font-weight:750}.memory-source-track{height:8px;overflow:hidden;border-radius:999px;background:#edf1f7}.memory-source-track span{display:block;height:100%;border-radius:inherit}@container (max-width: 700px){.memory-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (max-width: 520px){.memory-card-grid{grid-template-columns:1fr}}.memory-browser-fact-list{min-width:0;display:grid;gap:10px}.memory-fact-row{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--memory-border);border-radius:12px;background:#f8fafc}.memory-fact-row>div{min-width:0;flex:1;display:grid;gap:4px}.memory-fact-row .status-chip{flex:0 0 auto}.memory-fact-row span{color:var(--memory-muted);font-size:12px;font-weight:700;line-height:1.35}.memory-fact-row strong{min-width:0;font-size:13px;line-height:1.45}.memory-history-card{min-width:0;padding:18px;border:1px solid var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow)}.memory-history-card>header{margin-bottom:18px}.memory-history-card h2{margin:0;color:var(--memory-navy);font-size:16px;font-weight:750;line-height:1.3}.memory-history-timeline{position:relative;display:grid;gap:0;margin:0;padding:0;list-style:none}.memory-history-item{position:relative;min-width:0;display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;padding-bottom:18px}.memory-history-item:not(:last-child):before{content:"";position:absolute;top:18px;bottom:0;left:6px;width:1px;background:var(--memory-border)}.memory-history-marker{position:relative;z-index:1;width:13px;height:13px;margin-top:5px;border:3px solid #ffffff;border-radius:999px;box-shadow:0 0 0 1px #d8e4f4}.history-ai .memory-history-marker{background:var(--memory-blue)}.history-crm .memory-history-marker{background:var(--memory-purple)}.history-staff .memory-history-marker{background:var(--memory-orange)}.memory-history-content{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,auto);gap:16px;padding:0 0 2px}.memory-history-main{min-width:0;display:grid;gap:6px}.memory-history-meta{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.memory-history-meta time{color:var(--memory-muted);font-size:12px;font-weight:700;line-height:1.35}.memory-history-meta span{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:750;line-height:1}.history-ai .memory-history-meta span{background:#eff6ff;color:var(--memory-blue)}.history-crm .memory-history-meta span{background:#f0e7ff;color:var(--memory-purple)}.history-staff .memory-history-meta span{background:#fff7ed;color:var(--memory-orange)}.memory-history-main h3{min-width:0;margin:0;overflow:hidden;color:var(--memory-navy);font-size:14px;font-weight:750;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.memory-history-main p{margin:0;color:#334155;font-size:13px;line-height:1.55;overflow-wrap:normal;word-break:normal}.memory-history-content aside{min-width:0;color:var(--memory-muted);font-size:12px;font-weight:700;line-height:1.45;text-align:right}.memory-history-link{display:flex;align-items:center;justify-content:center;width:fit-content;min-height:34px;margin:2px auto 0;border:0;background:transparent;color:var(--memory-blue);font-size:13px;font-weight:750;line-height:1.2}@container (max-width: 620px){.memory-history-content{grid-template-columns:1fr;gap:8px}.memory-history-content aside{text-align:left}.memory-history-main h3{white-space:normal}}.memory-right-rail{width:300px;display:grid;align-items:start;gap:16px}.memory-right-rail .panel{min-width:0;border:1px solid var(--memory-border);border-radius:16px;background:#fff;box-shadow:var(--memory-card-shadow);padding:16px}.memory-rail-card-header{margin-bottom:14px}.memory-rail-card-header h2{margin:0;color:var(--memory-navy);font-size:16px;font-weight:750;line-height:1.3}.memory-action-list{display:grid;gap:10px}.memory-action-list button{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px;border:1px solid var(--memory-border);border-radius:12px;background:#f8fafc;color:var(--memory-text);padding:12px;text-align:left;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.memory-action-list button:hover{border-color:#bfdbfe;background:#fff;box-shadow:var(--memory-card-shadow-hover)}.memory-action-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px}.action-blue{background:#eff6ff;color:var(--memory-blue)}.action-indigo{background:#eef4ff;color:#4f46e5}.action-purple{background:#f0e7ff;color:var(--memory-purple)}.action-red{background:#fef2f2;color:var(--memory-red)}.memory-action-list button>span:last-child{min-width:0;display:grid;gap:3px}.memory-action-list strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.memory-action-list strong{color:var(--memory-navy);font-size:13px;font-weight:750;line-height:1.3;white-space:nowrap}.memory-action-list em{min-width:0;display:block;color:var(--memory-muted);font-size:12px;font-style:normal;font-weight:600;line-height:1.45;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-source-donut-wrap{display:grid;place-items:center;padding:4px 0 14px}.memory-source-donut{width:148px;height:148px;display:grid;place-items:center;border-radius:999px;background:radial-gradient(circle at center,#ffffff 0 51%,transparent 52%),conic-gradient(var(--memory-blue) 0 58%,var(--memory-green) 58% 85%,var(--memory-purple) 85% 100%);box-shadow:inset 0 0 0 1px var(--memory-line-soft),0 10px 22px #2563eb14}.memory-source-donut>div{width:92px;height:92px;display:grid;place-items:center;align-content:center;border-radius:999px;background:#fff}.memory-source-donut span,.memory-source-donut em{color:var(--memory-muted);font-size:11px;font-style:normal;font-weight:700;line-height:1.2}.memory-source-donut strong{color:var(--memory-navy);font-size:28px;font-weight:800;line-height:1}.memory-source-legend{display:grid;gap:10px}.memory-source-legend>div{min-width:0;display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px}.memory-source-legend span{width:10px;height:10px;border-radius:999px}.memory-source-legend p{min-width:0;margin:0;color:#334155;font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-source-legend strong{color:var(--memory-navy);font-size:13px;font-weight:750;line-height:1.35;white-space:nowrap}.memory-source-legend em{color:var(--memory-muted);font-style:normal;font-weight:700}.memory-rail-link{width:fit-content;min-height:30px;margin-top:12px;padding:0;border:0;background:transparent;color:var(--memory-blue);font-size:13px;font-weight:750;line-height:1.2}.memory-quality-list{min-width:0;display:grid;gap:10px}.memory-quality-row{min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 0}.memory-quality-row+.memory-quality-row{border-top:1px solid var(--memory-line-soft)}.memory-quality-row svg{color:var(--memory-green)}.memory-quality-row span{min-width:0;color:#334155;font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-quality-row strong{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:750;line-height:1;white-space:nowrap}.quality-good{background:#ecfdf5;color:var(--memory-green)}.quality-medium{background:#fff7ed;color:var(--memory-orange)}@container (max-width: 760px){.memory-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-kpi-block+.memory-kpi-block{border-left:0;border-top:1px solid var(--memory-line-soft)}}@media(max-width:1280px){.memory-browser-layout{grid-template-columns:360px minmax(0,1fr)}.memory-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-kpi-block+.memory-kpi-block{border-left:0;border-top:1px solid #edf1f7}.memory-right-rail{width:auto;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1120px){.memory-left-pane{width:100%}}@media(max-width:860px){.memory-page-header,.memory-profile{align-items:flex-start;flex-direction:column}.memory-profile-left{align-items:flex-start}.memory-profile-updated{text-align:left}.memory-right-rail,.memory-kpi-strip{grid-template-columns:1fr}.memory-pagination{flex-wrap:wrap}}.app-shell:has(.auto-reply-page){--ntl-navy: #071b3a;--ntl-navy-2: #061a3a;--ntl-purple: #7c3aed;--ntl-border: #e5eaf3;--ntl-text: #071b3a;--ntl-muted: #64748b;--ntl-success: #16a34a;--ntl-warning: #f97316;--ntl-danger: #ef4444;background:#f6f8fb}.app-shell:has(.auto-reply-page) .sidebar{width:252px;padding:16px 12px;border-right-color:#e5eaf3;background:#fff}.app-shell:has(.auto-reply-page) .brand{min-height:64px;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding-bottom:16px}.app-shell:has(.auto-reply-page) .brand-mark{width:48px;height:48px;border-radius:14px;background:#071b3a;box-shadow:0 12px 22px #071b3a29}.app-shell:has(.auto-reply-page) .brand-mark span{font-size:13px;font-weight:850}.app-shell:has(.auto-reply-page) .brand-copy strong{color:#071b3a;font-size:16px;font-weight:800}.app-shell:has(.auto-reply-page) .brand-copy span{color:#64748b;font-size:12px}.app-shell:has(.auto-reply-page) .side-nav{gap:5px;padding:8px 0}.app-shell:has(.auto-reply-page) .side-link{min-height:40px;padding:0 11px;border-radius:9px;color:#334155;font-size:13px;font-weight:700}.app-shell:has(.auto-reply-page) .side-link svg{color:#64748b}.app-shell:has(.auto-reply-page) .side-link:hover{background:#f6f8fb;color:#071b3a}.app-shell:has(.auto-reply-page) .side-link.active{border-radius:9px;background:#071b3a;color:#fff;box-shadow:0 10px 20px #071b3a24}.app-shell:has(.auto-reply-page) .side-link.active svg{color:#fff}.app-shell:has(.auto-reply-page) .side-link em{min-width:30px;padding:4px 8px;background:#eef4ff;color:#071b3a;font-size:11px}.app-shell:has(.auto-reply-page) .side-link.active em{background:#ffffff2e;color:#fff}.app-shell:has(.auto-reply-page) .plan-card{margin-top:14px;padding:14px;border-color:#e5eaf3;border-radius:14px;background:#fff;box-shadow:0 8px 20px #0f172a06}.app-shell:has(.auto-reply-page) .plan-card-head span,.app-shell:has(.auto-reply-page) .plan-expiry{color:#64748b;font-size:12px}.app-shell:has(.auto-reply-page) .plan-card-head strong{background:#eef4ff;color:#071b3a;font-size:12px;font-weight:800}.app-shell:has(.auto-reply-page) .plan-usage-row strong{color:#071b3a}.app-shell:has(.auto-reply-page) .mini-progress{background:#eef2f7}.app-shell:has(.auto-reply-page) .mini-progress span{background:#071b3a}.app-shell:has(.auto-reply-page) .plan-card button{height:38px;border-color:#e5eaf3;border-radius:10px;color:#071b3a;font-size:13px;font-weight:800}.app-shell:has(.auto-reply-page) .shell-main{margin-left:252px;background:#f6f8fb}.app-shell:has(.auto-reply-page) .topbar{height:62px;gap:12px;padding:0 20px;border-bottom-color:#e5eaf3;background:#fff}.app-shell:has(.auto-reply-page) .global-search{width:clamp(360px,31vw,420px);height:38px;border-color:#e5eaf3;border-radius:10px;color:#64748b}.app-shell:has(.auto-reply-page) .global-search input{color:#071b3a;font-size:13px}.app-shell:has(.auto-reply-page) .global-search input::placeholder{color:#94a3b8}.app-shell:has(.auto-reply-page) .search-shortcut{background:#f6f8fb;color:#64748b;font-size:11px;font-weight:800}.app-shell:has(.auto-reply-page) .workspace-switcher,.app-shell:has(.auto-reply-page) .icon-button,.app-shell:has(.auto-reply-page) .user-menu{height:38px;border-color:#e5eaf3;border-radius:10px;background:#fff;color:#071b3a}.app-shell:has(.auto-reply-page) .workspace-switcher{font-size:13px;font-weight:700}.app-shell:has(.auto-reply-page) .notification-button span{background:#ef4444}.app-shell:has(.auto-reply-page) .user-menu{min-width:174px;padding:0 9px}.app-shell:has(.auto-reply-page) .user-avatar{width:30px;height:30px;background:#071b3a;font-size:11px}.app-shell:has(.auto-reply-page) .user-copy strong{color:#071b3a;font-size:13px;font-weight:800}.app-shell:has(.auto-reply-page) .user-copy small{color:#64748b;font-size:11px}.content:has(.auto-reply-page){padding:20px 20px 32px;background:#f6f8fb}.auto-reply-page{width:100%;max-width:1508px;margin:0 auto;color:#071b3a}.auto-reply-page-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.auto-reply-title-group{min-width:0;display:flex;align-items:center;gap:13px}.auto-reply-title-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;border:1px solid #ddd6fe;background:#f3e8ff;color:#7c3aed}.auto-reply-page-header h1{margin:0;color:#071b3a;font-size:24px;font-weight:800;line-height:1.18}.auto-reply-page-header p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.45}.auto-reply-date-picker{min-width:214px;height:40px;display:inline-flex;align-items:center;justify-content:space-between;gap:9px;flex:0 0 auto;padding:0 12px;border:1px solid #e5eaf3;border-radius:10px;background:#fff;color:#334155;box-shadow:0 8px 20px #0f172a06;font-size:13px;font-weight:700}.auto-reply-date-picker svg{color:#64748b}.auto-rules-layout{display:grid;grid-template-columns:minmax(0,72fr) minmax(280px,28fr);gap:14px;align-items:start}.auto-rules-main{display:grid;grid-column:1;gap:14px;min-width:0}.auto-reply-page .panel,.auto-reply-page .table-wrap{border-color:#e5eaf3;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0f172a06}.auto-reply-page .panel .table-wrap{border:0;border-radius:12px;box-shadow:none}.auto-rules-main>.panel,.decision-simulator .panel{padding:16px}.auto-rules-metrics{display:grid;grid-column:1 / -1;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:0}.auto-kpi-card{min-width:0;min-height:98px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid #e5eaf3;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0f172a06}.auto-kpi-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px}.auto-kpi-icon-purple{background:#f3e8ff;color:#7c3aed}.auto-kpi-icon-green{background:#dcfce7;color:#16a34a}.auto-kpi-icon-amber{background:#ffedd5;color:#f97316}.auto-kpi-icon-blue{background:#dbeafe;color:#2563eb}.auto-kpi-content{min-width:0;display:grid;gap:4px}.auto-kpi-label{color:#64748b;font-size:11px;font-weight:800;line-height:1.25;text-transform:uppercase;white-space:nowrap;overflow-wrap:anywhere}.auto-kpi-content strong{color:#071b3a;font-size:26px;font-weight:850;line-height:1.08}.auto-kpi-delta{color:#16a34a;font-size:12px;font-weight:700;line-height:1.3}.auto-reply-page .panel-header{margin-bottom:14px}.auto-reply-page .panel-header h2{color:#071b3a;font-size:15px;font-weight:800;line-height:1.2}.decision-config-row{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:14px;align-items:stretch}.decision-config-row>.panel{min-width:0}.decision-mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.decision-mode-card{position:relative;min-height:136px;display:grid;grid-template-rows:36px auto minmax(34px,1fr) auto;align-items:start;gap:8px;padding:14px;border:1px solid #e5eaf3;border-radius:12px;background:#fff;color:#071b3a;text-align:left;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.decision-mode-card.selected{border-color:#7c3aed;background:#faf5ff;box-shadow:0 8px 20px #7c3aed14}.decision-mode-card:focus-visible{outline:3px solid rgba(124,58,237,.18);outline-offset:2px}.decision-mode-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px}.decision-mode-icon-blue{background:#dbeafe;color:#2563eb}.decision-mode-icon-green{background:#dcfce7;color:#16a34a}.decision-mode-icon-amber{background:#ffedd5;color:#f97316}.decision-mode-icon-purple{background:#f3e8ff;color:#7c3aed}.decision-mode-radio{position:absolute;top:14px;right:14px;width:18px;height:18px;border:2px solid #cbd5e1;border-radius:999px;background:#fff}.decision-mode-card.selected .decision-mode-radio{border-color:#7c3aed}.decision-mode-card.selected .decision-mode-radio:after{content:"";position:absolute;top:4px;right:4px;bottom:4px;left:4px;border-radius:inherit;background:#7c3aed}.decision-mode-card strong{color:#071b3a;font-size:15px;font-weight:800;line-height:1.25}.decision-mode-description{color:#64748b;font-size:12px;font-weight:500;line-height:1.45}.decision-mode-badge{width:fit-content;min-height:24px;display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.2}.decision-mode-badge-blue{background:#eff6ff;color:#2563eb}.decision-mode-badge-green{background:#ecfdf5;color:#16a34a}.decision-mode-badge-amber{background:#fff7ed;color:#f97316}.decision-mode-badge-purple{background:#f3e8ff;color:#7c3aed}.anti-loop-grid select,.anti-loop-grid input{width:100%;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:0 9px}.threshold-panel-header{margin-bottom:12px!important}.threshold-title-row{display:inline-flex;align-items:center;gap:6px}.threshold-title-row svg{color:#94a3b8}.threshold-list{display:grid;gap:9px}.threshold-row{min-height:32px;display:grid;grid-template-columns:minmax(74px,96px) minmax(90px,1fr) 56px;align-items:center;gap:10px}.threshold-label{min-width:0;overflow:hidden;color:#334155;font-size:13px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.threshold-slider{width:100%;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:999px;background:linear-gradient(90deg,#7c3aed 0 var(--threshold-value),#e5eaf3 var(--threshold-value) 100%);outline:0}.threshold-slider::-webkit-slider-thumb{width:12px;height:12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #ffffff;border-radius:999px;background:#7c3aed;box-shadow:0 0 0 1px #7c3aed3d}.threshold-slider::-moz-range-thumb{width:10px;height:10px;border:2px solid #ffffff;border-radius:999px;background:#7c3aed;box-shadow:0 0 0 1px #7c3aed3d}.threshold-slider::-moz-range-track{height:4px;border-radius:999px;background:#e5eaf3}.threshold-value-input{width:56px;height:32px;border:1px solid #e5eaf3;border-radius:8px;background:#fff;color:#071b3a;font-size:13px;font-weight:800;text-align:center}.threshold-value-input:focus,.threshold-slider:focus-visible{outline:3px solid rgba(124,58,237,.14);outline-offset:2px}.threshold-value-input::-webkit-outer-spin-button,.threshold-value-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.threshold-value-input[type=number]{-moz-appearance:textfield}.guardrail-loop-row{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(250px,.92fr);gap:14px;align-items:start}.guardrail-loop-row>.panel{min-width:0}.guardrails-panel-header{margin-bottom:12px!important}.guardrails-panel-header svg{color:#94a3b8}.guardrail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.guardrail-card{position:relative;min-height:92px;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto minmax(28px,1fr) auto;column-gap:9px;row-gap:5px;padding:12px;border:1px solid #e5eaf3;border-radius:12px;background:#fbfcff}.guardrail-checkbox{width:18px;height:18px;display:grid;place-items:center;grid-row:1 / span 3;margin-top:1px;border:1px solid #bbf7d0;border-radius:6px;background:#16a34a;color:#fff;padding:0}.guardrail-card:not(.checked) .guardrail-checkbox{border-color:#cbd5e1;background:#fff;color:transparent}.guardrail-checkbox:focus-visible{outline:3px solid rgba(22,163,74,.18);outline-offset:2px}.guardrail-radio{position:absolute;top:12px;right:12px;width:9px;height:9px;border:1px solid #cbd5e1;border-radius:999px;background:#fff}.guardrail-card strong{min-width:0;padding-right:16px;color:#071b3a;font-size:13px;font-weight:800;line-height:1.25}.guardrail-card p{grid-column:2;margin:0;color:#64748b;font-size:11.5px;font-weight:500;line-height:1.35}.guardrail-required-badge{width:fit-content;grid-column:2;min-height:22px;display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#16a34a;font-size:11px;font-weight:800;line-height:1}.anti-loop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.anti-loop-panel .anti-loop-grid{grid-template-columns:1fr}.anti-loop-panel .panel-header{margin-bottom:12px}.anti-loop-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.anti-loop-field,.anti-loop-action-field{min-width:0;display:grid;gap:6px}.anti-loop-field-label{color:#334155;font-size:12px;font-weight:800;line-height:1.25}.anti-loop-stepper{width:100%;height:32px;display:flex;align-items:center;overflow:hidden;border:1px solid #e5eaf3;border-radius:8px;background:#fff}.anti-loop-stepper button{width:26px;height:100%;flex:0 0 auto;border:0;border-right:1px solid #e5eaf3;background:#fff;color:#64748b;font-size:16px;font-weight:800;line-height:1}.anti-loop-stepper button+span{border-right:1px solid #e5eaf3}.anti-loop-stepper button:last-child{border-right:0}.anti-loop-stepper span{min-width:20px;flex:1 1 auto;color:#071b3a;font-size:13px;font-weight:800;text-align:center}.anti-loop-stepper em{min-width:22px;padding:0 3px;color:#64748b;font-size:11px;font-style:normal;font-weight:700;text-align:center}.anti-loop-field small{color:#64748b;font-size:11px;font-weight:600;line-height:1.3}.anti-loop-duplicate-row,.anti-loop-full-field,.anti-loop-action-field{grid-column:1 / -1}.anti-loop-duplicate-row{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:10px}.anti-loop-duplicate-controls{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.anti-loop-switch{width:38px;height:22px;display:inline-flex;align-items:center;padding:2px;border:0;border-radius:999px;background:#cbd5e1}.anti-loop-switch span{width:18px;height:18px;display:block;border-radius:999px;background:#fff;box-shadow:0 1px 3px #0f172a2e;transition:transform .16s ease}.anti-loop-switch.on{background:#16a34a}.anti-loop-switch.on span{transform:translate(16px)}.anti-loop-mini-select,.anti-loop-select-wrap{position:relative;display:block}.anti-loop-mini-select{width:74px}.anti-loop-mini-select select,.anti-loop-select-wrap select{width:100%;height:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #e5eaf3;border-radius:8px;background:#fff;color:#071b3a;font-size:12px;font-weight:800}.anti-loop-mini-select select{padding:0 24px 0 10px}.anti-loop-select-wrap select{padding:0 30px 0 10px}.anti-loop-mini-select svg,.anti-loop-select-wrap svg{position:absolute;top:50%;right:9px;color:#64748b;pointer-events:none;transform:translateY(-50%)}.anti-loop-stepper button:focus-visible,.anti-loop-switch:focus-visible,.anti-loop-mini-select select:focus,.anti-loop-select-wrap select:focus{outline:3px solid rgba(22,163,74,.16);outline-offset:2px}.anti-loop-grid label{display:grid;gap:6px}.anti-loop-grid label span{color:var(--muted);font-size:12px;font-weight:800}.anti-loop-toggle{display:flex;align-items:center;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.decision-simulator{display:grid;grid-column:2;gap:14px;min-width:0;padding-top:0}.decision-simulator-sticky{display:grid;gap:14px;position:sticky;top:82px}.auto-reply-page .simulator-card{display:grid;gap:0;padding:16px;position:static}.simulator-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px}.simulator-card-header h2{margin:0;color:#071b3a;font-size:16px;font-weight:800;line-height:1.2}.simulator-live{display:inline-flex;align-items:center;gap:5px;color:#16a34a;font-size:12px;font-weight:800;line-height:1}.simulator-live svg{color:#94a3b8}.simulator-section{display:grid;gap:10px;padding:14px 0;border-top:1px solid #e5eaf3}.simulator-section-title h3{margin:0;color:#071b3a;font-size:13px;font-weight:800;line-height:1.25}.simulator-message-box{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border:1px solid #ede9fe;border-radius:12px;background:#faf5ff}.simulator-message-box p{margin:0;color:#071b3a;font-size:13px;font-weight:700;line-height:1.45}.simulator-message-box span{display:block;margin-top:8px;color:#64748b;font-size:12px;font-weight:600;line-height:1.3}.simulator-message-box svg{flex:0 0 auto;margin-top:1px;color:#94a3b8}.simulator-evaluation-list{display:grid;gap:9px;margin:0}.simulator-evaluation-list>div{display:grid;grid-template-columns:minmax(112px,.86fr) minmax(0,1fr);align-items:center;gap:10px}.simulator-evaluation-list dt{color:#64748b;font-size:12px;font-weight:700;line-height:1.3}.simulator-evaluation-list dd{min-width:0;display:inline-flex;align-items:center;gap:7px;margin:0;color:#071b3a;font-size:12px;font-weight:800;line-height:1.35}.simulator-mode-badge,.simulator-confidence-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1}.simulator-mode-badge{background:#fff7ed;color:#f97316}.simulator-confidence-badge{background:#ecfdf5;color:#16a34a}.simulator-risk-dot{width:8px;height:8px;border-radius:999px;background:#facc15}.simulator-explanation-row{align-items:start!important}.simulator-explanation-row dd{display:block;color:#334155;font-weight:600}.simulator-risk-chips{display:flex;flex-wrap:wrap;gap:7px}.simulator-risk-chip{min-height:26px;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #e5eaf3;border-radius:999px;background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;line-height:1}.simulator-risk-chip svg{color:#94a3b8}.simulator-risk-chip.active{border-color:#bbf7d0;background:#ecfdf5;color:#16a34a}.simulator-risk-chip.active svg{color:#16a34a}.simulator-action-copy{margin:0;color:#334155;font-size:13px;font-weight:600;line-height:1.45}.simulator-action-stack{display:grid;gap:8px}.simulator-outline-button,.simulator-primary-button,.simulator-secondary-button{width:100%;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;padding:0 12px;font-size:13px;font-weight:800}.simulator-outline-button,.simulator-secondary-button{border:1px solid #e5eaf3;background:#fff;color:#071b3a}.simulator-primary-button{border:1px solid #7c3aed;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff}.simulator-outline-button:focus-visible,.simulator-primary-button:focus-visible,.simulator-secondary-button:focus-visible{outline:3px solid rgba(124,58,237,.16);outline-offset:2px}.rule-matrix-panel{overflow:hidden;padding:0!important}.rule-matrix-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e5eaf3}.rule-matrix-header h2{margin:0;color:#071b3a;font-size:15px;font-weight:800;line-height:1.2}.rule-add-button{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:0 11px;border:1px solid #7c3aed;border-radius:8px;background:#7c3aed;color:#fff;font-size:12px;font-weight:800;line-height:1}.rule-table-wrap{width:100%;overflow-x:auto}.rule-matrix-table{width:100%;min-width:800px;border-collapse:collapse;table-layout:fixed}.rule-matrix-table th,.rule-matrix-table td{padding:0 10px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:middle;white-space:nowrap}.rule-matrix-table th:nth-child(1),.rule-matrix-table td:nth-child(1){width:17%}.rule-matrix-table th:nth-child(2),.rule-matrix-table td:nth-child(2){width:17%}.rule-matrix-table th:nth-child(3),.rule-matrix-table td:nth-child(3){width:15%}.rule-matrix-table th:nth-child(4),.rule-matrix-table td:nth-child(4){width:13%}.rule-matrix-table th:nth-child(5),.rule-matrix-table td:nth-child(5){width:11%}.rule-matrix-table th:nth-child(6),.rule-matrix-table td:nth-child(6){width:13%}.rule-matrix-table th:nth-child(7),.rule-matrix-table td:nth-child(7){width:14%}.rule-matrix-table th{height:38px;background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;line-height:1.2}.rule-matrix-table td{height:46px;color:#334155;font-size:13px;font-weight:600}.rule-matrix-table tbody tr:last-child td{border-bottom:0}.rule-intent-cell{color:#071b3a!important;font-weight:800!important}.rule-action-badge{min-height:24px;display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1}.rule-badge-suggest{background:#ecfdf5;color:#16a34a}.rule-badge-auto{background:#f3e8ff;color:#7c3aed}.rule-badge-semi{background:#fff7ed;color:#f97316}.rule-badge-handover{background:#fef2f2;color:#ef4444}.rule-empty-fallback{color:#94a3b8;font-weight:800}.rule-status-active{display:inline-flex;align-items:center;gap:7px;color:#16a34a;font-size:12px;font-weight:800}.rule-status-active span{width:7px;height:7px;border-radius:999px;background:#16a34a}.rule-row-actions{display:inline-flex;align-items:center;gap:6px}.rule-row-actions button{width:30px;height:30px;display:inline-grid;place-items:center;border:1px solid #e5eaf3;border-radius:8px;background:#fff;color:#64748b}.rule-matrix-footer{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #e5eaf3}.rule-matrix-footer>span{color:#64748b;font-size:12px;font-weight:700}.rule-pagination{display:inline-flex;align-items:center;gap:6px}.rule-pagination button,.rule-pagination span{min-width:30px;height:30px;display:inline-grid;place-items:center;border:1px solid #e5eaf3;border-radius:8px;background:#fff;color:#64748b;font-size:12px;font-weight:800}.rule-pagination span{border-color:transparent;background:transparent}.rule-pagination button.active{border-color:#7c3aed;background:#7c3aed;color:#fff}.rule-add-button:focus-visible,.rule-row-actions button:focus-visible,.rule-pagination button:focus-visible{outline:3px solid rgba(124,58,237,.16);outline-offset:2px}@media(max-width:1439px){.auto-rules-layout{grid-template-columns:minmax(0,1fr) minmax(320px,34%)}.auto-rules-metrics{grid-template-columns:repeat(auto-fit,minmax(154px,1fr))}.decision-config-row{grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr)}.decision-mode-grid,.guardrail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1199px){.auto-rules-layout,.decision-config-row,.guardrail-loop-row{grid-template-columns:1fr}.auto-reply-page .auto-rules-main,.auto-reply-page .decision-simulator{grid-column:1}.auto-rules-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-simulator{padding-top:0}.decision-simulator-sticky{position:static;top:auto}.decision-mode-grid,.guardrail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.auto-reply-page .auto-rules-layout,.auto-reply-page .auto-rules-main{gap:12px}.auto-reply-page .auto-rules-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-reply-page .decision-mode-grid,.auto-reply-page .guardrail-grid,.auto-reply-page .anti-loop-compact-grid{grid-template-columns:1fr}.auto-reply-page .decision-mode-card{min-height:124px}.auto-reply-page .simulator-evaluation-list>div{grid-template-columns:1fr;gap:4px}}.app-shell:has(.workflows-page){--wf-page-bg: #f7f9fc;--wf-surface: #ffffff;--wf-surface-soft: #fbfcfe;--wf-surface-muted: #f8fbff;--wf-row-selected: #f4f8ff;--wf-hover-bg: #f3f7fd;--wf-muted-bg: #f1f5f9;--wf-border: #e5eaf3;--wf-border-control: #dfe6f1;--wf-border-soft: #edf1f7;--wf-border-hover: #cbd5e1;--wf-text: #061b49;--wf-navy: #061b49;--wf-navy-2: #09285a;--wf-text-soft: #334155;--wf-muted: #64748b;--wf-subtle: #94a3b8;--wf-blue: #2563eb;--wf-blue-bg: #eef4ff;--wf-blue-soft: #eaf2ff;--wf-blue-border: #c7d7fe;--wf-purple: #7c3aed;--wf-purple-bg: #ede9fe;--wf-success: #16a34a;--wf-success-bg: #ecfdf5;--wf-success-soft: #dcfce7;--wf-success-border: #b9e6d0;--wf-warning: #f97316;--wf-warning-bg: #fff7ed;--wf-warning-soft: #ffedd5;--wf-warning-border: #fed7aa;--wf-danger: #dc2626;--wf-danger-bg: #fef2f2;--wf-danger-soft: #fee2e2;--wf-danger-border: #fecaca;--wf-teal: #0284c7;--wf-teal-bg: #e0f2fe;--wf-focus-border: #bdd0ea;--wf-connector: #dbe5f3;--wf-connector-dot: #bfdbfe;--wf-selected-border: #d8e6ff;--wf-card-radius: 16px;--wf-inner-radius: 14px;--wf-control-radius: 12px;--wf-small-radius: 10px;--wf-pill-radius: 999px;--wf-page-padding: 24px;--wf-card-padding: 22px;--wf-table-cell-padding: 14px;--wf-gap: 16px;--wf-section-gap: 20px;--wf-card-shadow: 0 10px 30px rgba(6, 27, 73, .035);--wf-soft-shadow: 0 10px 24px rgba(6, 27, 73, .08);--wf-menu-shadow: 0 16px 34px rgba(6, 27, 73, .12);--wf-active-shadow: 0 12px 24px rgba(6, 27, 73, .18);--wf-active-badge-bg: rgba(255, 255, 255, .18);--wf-purple-shadow: 0 10px 22px rgba(124, 58, 237, .1);--wf-focus-ring: 0 0 0 3px rgba(37, 99, 235, .1);--wf-danger-ring: 0 0 0 3px var(--wf-danger-bg);--wf-primary-gradient: linear-gradient(135deg, var(--wf-navy) 0%, var(--wf-navy-2) 100%);--wf-success-gradient: linear-gradient(90deg, var(--wf-success) 0%, var(--wf-success) 100%)}.app-shell:has(.workflows-page) .shell-main,.app-shell:has(.workflows-page) .content{background:var(--wf-page-bg)}.app-shell:has(.workflows-page) .sidebar{width:272px;padding:18px 16px 16px;border-right-color:var(--wf-border);background:var(--wf-surface)}.app-shell:has(.workflows-page) .shell-main{margin-left:272px}.app-shell:has(.workflows-page) .content{padding:var(--wf-page-padding)}.app-shell:has(.workflows-page) .topbar{height:64px;align-items:center;gap:12px;padding:0 24px;background:var(--wf-surface);border-bottom:1px solid var(--wf-border)}.app-shell:has(.workflows-page) .brand{min-height:64px;grid-template-columns:50px minmax(0,1fr) 30px;gap:12px;padding-bottom:18px}.app-shell:has(.workflows-page) .brand-mark{width:50px;height:50px;border-radius:var(--wf-card-radius);background:var(--wf-primary-gradient);box-shadow:var(--wf-active-shadow)}.app-shell:has(.workflows-page) .brand-mark span{font-size:14px;font-weight:900}.app-shell:has(.workflows-page) .brand-copy strong{color:var(--wf-text);font-size:16px;font-weight:850}.app-shell:has(.workflows-page) .brand-copy span{color:var(--wf-muted);font-size:12px}.app-shell:has(.workflows-page) .sidebar-collapse{display:inline-grid!important;width:30px;height:30px;place-items:center;border:1px solid var(--wf-border);border-radius:var(--wf-small-radius);background:var(--wf-surface);color:var(--wf-muted)}.app-shell:has(.workflows-page) .side-nav{gap:7px;padding:12px 0}.app-shell:has(.workflows-page) .side-link{min-height:46px;grid-template-columns:19px minmax(0,1fr) auto;gap:12px;padding:0 13px;border-radius:var(--wf-control-radius);color:var(--wf-text-soft);font-size:14px;font-weight:500}.app-shell:has(.workflows-page) .side-link svg{width:19px;height:19px;color:var(--wf-muted);stroke-width:1.9}.app-shell:has(.workflows-page) .side-link:hover{background:var(--wf-hover-bg);color:var(--wf-text)}.app-shell:has(.workflows-page) .side-link.active{background:var(--wf-primary-gradient);color:var(--wf-surface);border-radius:var(--wf-control-radius);box-shadow:var(--wf-active-shadow);font-weight:750}.app-shell:has(.workflows-page) .side-link.active svg{color:var(--wf-surface)}.app-shell:has(.workflows-page) .side-link em{min-width:30px;min-height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;border-radius:var(--wf-pill-radius);background:var(--wf-blue-soft);color:var(--wf-navy-2);font-size:11px;font-weight:850}.app-shell:has(.workflows-page) .side-link.active em{background:var(--wf-active-badge-bg);color:var(--wf-surface)}.app-shell:has(.workflows-page) .plan-card{margin-top:16px;padding:15px;border:1px solid var(--wf-border);border-radius:var(--wf-card-radius);background:var(--wf-surface);box-shadow:var(--wf-card-shadow)}.app-shell:has(.workflows-page) .plan-card-head strong{background:var(--wf-blue-soft);color:var(--wf-navy-2);font-weight:850}.app-shell:has(.workflows-page) .plan-expiry,.app-shell:has(.workflows-page) .plan-card-head span{color:var(--wf-muted)}.app-shell:has(.workflows-page) .mini-progress{height:9px;background:var(--wf-border-soft)}.app-shell:has(.workflows-page) .mini-progress span{background:var(--wf-success-gradient)}.app-shell:has(.workflows-page) .plan-card button{min-height:40px;border-radius:var(--wf-control-radius);border-color:var(--wf-border-control);background:var(--wf-surface-muted);color:var(--wf-navy-2);font-weight:850}.app-shell:has(.workflows-page) .global-search{width:clamp(300px,26vw,370px);height:40px;margin-left:auto;border-color:var(--wf-border-control);border-radius:var(--wf-control-radius);background:var(--wf-surface);padding:0 12px}.app-shell:has(.workflows-page) .global-search input{color:var(--wf-text);font-size:14px}.app-shell:has(.workflows-page) .global-search input::placeholder{color:var(--wf-subtle)}.app-shell:has(.workflows-page) .search-shortcut{border-radius:var(--wf-small-radius);background:var(--wf-muted-bg);color:var(--wf-muted);font-weight:850}.app-shell:has(.workflows-page) .workspace-switcher,.app-shell:has(.workflows-page) .icon-button,.app-shell:has(.workflows-page) .user-menu{height:40px;border-color:var(--wf-border-control);border-radius:var(--wf-control-radius);background:var(--wf-surface);color:var(--wf-text-soft)}.app-shell:has(.workflows-page) .workspace-switcher{gap:9px;padding:0 13px;font-size:14px;font-weight:650}.app-shell:has(.workflows-page) .notification-button span{top:-5px;right:-5px;min-width:19px;height:19px;background:var(--wf-danger);font-size:10px}.app-shell:has(.workflows-page) .user-menu{min-width:180px;gap:10px;padding:0 10px}.app-shell:has(.workflows-page) .user-avatar{width:32px;height:32px;background:var(--wf-primary-gradient)}.app-shell:has(.workflows-page) .user-copy strong{color:var(--wf-text);font-size:13px;font-weight:800}.app-shell:has(.workflows-page) .user-copy small{color:var(--wf-muted)}.workflows-page{display:grid;gap:var(--wf-section-gap);min-width:0}.workflows-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px}.workflows-title-group{min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:14px}.workflows-title-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:var(--wf-card-radius);background:var(--wf-purple-bg);color:var(--wf-purple);box-shadow:var(--wf-purple-shadow)}.workflows-page-header h1{margin:0;color:var(--wf-text);font-size:30px;font-weight:800;line-height:1.16}.workflows-page-header p{margin:7px 0 0;color:var(--wf-muted);font-size:15px;line-height:1.42}.workflows-header-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 1 620px}.workflow-status-select,.workflow-header-search,.workflow-create-button{height:44px;border-radius:var(--wf-control-radius)}.workflow-status-select{width:178px;flex:0 0 178px;border:1px solid var(--wf-border-control);background:var(--wf-surface);color:var(--wf-text-soft);padding:0 13px;font-size:14px;font-weight:700;outline:0}.workflow-header-search{width:clamp(220px,22vw,300px);min-width:220px;display:flex;align-items:center;gap:9px;border:1px solid var(--wf-border-control);background:var(--wf-surface);color:var(--wf-muted);padding:0 12px}.workflow-header-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--wf-text);font-size:14px}.workflow-header-search input::placeholder{color:var(--wf-subtle)}.workflow-header-search span{min-width:34px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:3px 7px;border-radius:var(--wf-small-radius);background:var(--wf-muted-bg);color:var(--wf-muted);font-size:12px;font-weight:800;line-height:1}.workflow-create-button{min-width:148px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;border:1px solid var(--wf-text);background:var(--wf-primary-gradient);color:var(--wf-surface);padding:0 16px;box-shadow:var(--wf-active-shadow);font-size:14px;font-weight:800}.workflow-status-select:focus,.workflow-header-search:focus-within,.workflow-create-button:focus-visible{border-color:var(--wf-focus-border);box-shadow:var(--wf-focus-ring)}.workflow-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--wf-gap);margin-bottom:0}.workflow-metric-card,.workflows-page .panel,.workflows-page .table-wrap{border-color:var(--wf-border);box-shadow:var(--wf-card-shadow)}.workflow-metric-card{min-width:0;min-height:156px;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:54px auto auto;align-items:start;column-gap:14px;row-gap:14px;padding:var(--wf-card-padding);border:1px solid var(--wf-border);border-radius:var(--wf-card-radius);background:var(--wf-surface)}.workflow-metric-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:var(--wf-card-radius)}.workflow-metric-purple .workflow-metric-icon{background:var(--wf-purple-bg);color:var(--wf-purple)}.workflow-metric-green .workflow-metric-icon{background:var(--wf-success-soft);color:var(--wf-success)}.workflow-metric-blue .workflow-metric-icon{background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-metric-red .workflow-metric-icon{background:var(--wf-danger-soft);color:var(--wf-danger)}.workflow-metric-teal .workflow-metric-icon{background:var(--wf-teal-bg);color:var(--wf-teal)}.workflow-metric-copy{display:contents}.workflow-metric-copy>span{align-self:center;min-width:0;color:var(--wf-muted);font-size:11px;font-weight:800;letter-spacing:.04em;line-height:1.25;text-transform:uppercase;white-space:normal}.workflow-metric-copy strong{grid-column:1 / -1;color:var(--wf-text);font-size:31px;font-weight:800;line-height:1}.workflow-metric-trend{grid-column:1 / -1;min-height:18px;display:flex;align-items:center;gap:5px;margin:0;font-size:12px;font-weight:700;line-height:1.35}.workflow-metric-trend.trend-positive{color:var(--wf-success)}.workflow-metric-trend.trend-negative{color:var(--wf-danger)}.workflows-page .panel .table-wrap{box-shadow:none}.workflow-list-card{overflow:visible}.workflow-list-card .panel-header{margin-bottom:14px}.workflow-list-card .panel-header h2{color:var(--wf-text);font-size:18px;font-weight:800;line-height:1.25}.workflow-table-wrap{width:100%;overflow:visible}.workflow-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.workflow-table th:nth-child(1),.workflow-table td:nth-child(1){width:26%}.workflow-table th:nth-child(2),.workflow-table td:nth-child(2){width:18%}.workflow-table th:nth-child(3),.workflow-table td:nth-child(3){width:11%}.workflow-table th:nth-child(4),.workflow-table td:nth-child(4){width:11%}.workflow-table th:nth-child(5),.workflow-table td:nth-child(5){width:12%}.workflow-table th:nth-child(6),.workflow-table td:nth-child(6){width:14%}.workflow-table th:nth-child(7),.workflow-table td:nth-child(7){width:8%}.workflow-table th,.workflow-table td{text-align:left;vertical-align:middle}.workflow-table th{padding:12px 8px;background:var(--wf-surface-soft);color:var(--wf-muted);font-size:11px;font-weight:800;letter-spacing:.04em;line-height:1.2;text-transform:uppercase;white-space:normal}.workflow-table th:first-child{border-top-left-radius:12px}.workflow-table th:last-child{border-top-right-radius:12px}.workflow-table td{height:70px;padding:12px 8px;border-top:1px solid var(--wf-border-soft);color:var(--wf-text-soft);font-size:13px}.workflow-table tbody tr{position:relative;cursor:pointer;transition:background-color .16s ease,box-shadow .16s ease}.workflow-table tbody tr:hover td{background:var(--wf-surface-muted)}.workflow-table tbody tr.selected td{background:var(--wf-row-selected)}.workflow-table tbody tr.selected td:first-child{box-shadow:inset 3px 0 0 var(--wf-purple)}.workflow-name-cell,.workflow-last-run,.workflow-owner-cell,.workflow-success-cell{min-width:0}.workflow-name-cell{display:grid;gap:5px}.workflow-name-cell strong,.workflow-trigger-cell strong,.workflow-last-run strong,.workflow-owner-cell strong,.workflow-success-cell strong{color:var(--wf-text);font-weight:800;line-height:1.25}.workflow-name-cell strong{font-size:14px}.workflow-name-cell span,.workflow-trigger-cell span,.workflow-last-run span{color:var(--wf-muted);font-size:12px;line-height:1.35}.workflow-trigger-cell{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px}.workflow-trigger-cell>div{min-width:0;display:grid;gap:4px}.workflow-trigger-cell strong,.workflow-trigger-cell span,.workflow-name-cell strong,.workflow-name-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflow-trigger-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:var(--wf-pill-radius);background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-status-pill{min-height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid transparent;border-radius:var(--wf-pill-radius);font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.workflow-status-pill.status-active{border-color:var(--wf-success-border);background:var(--wf-success-bg);color:var(--wf-success)}.workflow-status-pill.status-draft{border-color:var(--wf-blue-border);background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-status-pill.status-paused{border-color:var(--wf-warning-border);background:var(--wf-warning-bg);color:var(--wf-warning)}.workflow-status-pill.status-failed{border-color:var(--wf-danger-border);background:var(--wf-danger-bg);color:var(--wf-danger)}.workflow-last-run{display:grid;gap:4px}.workflow-last-run strong{font-size:13px}.workflow-success-cell{display:inline-flex;align-items:center;gap:7px}.workflow-success-cell strong{min-width:34px;font-size:14px}.workflow-success-bars{width:27px;height:24px;display:inline-flex;align-items:flex-end;gap:3px;padding:4px;border-radius:var(--wf-small-radius);background:var(--wf-success-bg)}.workflow-success-bars i{width:5px;display:block;border-radius:var(--wf-pill-radius);background:var(--wf-success)}.workflow-success-bars i:nth-child(1){height:8px;opacity:.55}.workflow-success-bars i:nth-child(2){height:12px;opacity:.75}.workflow-success-bars i:nth-child(3){height:16px}.workflow-owner-cell{display:inline-flex;align-items:center;gap:7px;max-width:100%}.workflow-owner-avatar{width:30px;height:30px;display:inline-grid;place-items:center;flex:0 0 auto;border-radius:var(--wf-pill-radius);background:var(--wf-blue-soft);color:var(--wf-navy-2);font-size:11px;font-weight:900;line-height:1}.workflow-owner-cell strong{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.workflow-action-cell{position:relative;display:flex;justify-content:flex-end}.workflow-row-action-button{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid var(--wf-border);border-radius:var(--wf-small-radius);background:var(--wf-surface);color:var(--wf-muted)}.workflow-row-action-button:hover{border-color:var(--wf-border-hover);color:var(--wf-text)}.workflow-action-menu{position:absolute;top:40px;right:0;z-index:10;width:190px;display:grid;gap:4px;padding:6px;border:1px solid var(--wf-border);border-radius:var(--wf-control-radius);background:var(--wf-surface);box-shadow:var(--wf-menu-shadow)}.workflow-action-menu button{min-height:34px;width:100%;border:0;border-radius:var(--wf-small-radius);background:transparent;color:var(--wf-text-soft);padding:0 10px;text-align:left;font-size:13px;font-weight:700}.workflow-action-menu button:hover{background:var(--wf-muted-bg);color:var(--wf-text)}.workflow-table-empty{min-height:140px;display:grid;place-items:center;border-top:1px solid var(--wf-border-soft);color:var(--wf-muted);font-size:14px}.workflow-table-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--wf-gap);padding-top:16px;border-top:1px solid var(--wf-border-soft);color:var(--wf-muted);font-size:13px;line-height:1.4}.workflow-pagination{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.workflow-pagination button,.workflow-pagination span{min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--wf-small-radius);color:var(--wf-muted);font-size:13px;font-weight:800}.workflow-pagination button{border:1px solid var(--wf-border);background:var(--wf-surface)}.workflow-pagination button.active{border-color:var(--wf-navy-2);background:var(--wf-navy-2);color:var(--wf-surface)}.workflow-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(340px,1fr);gap:var(--wf-section-gap);align-items:start}.workflow-main{display:grid;gap:var(--wf-section-gap);min-width:0}.workflow-main>.panel,.workflow-detail-panel,.workflow-bottom-grid>.panel{padding:18px;border-radius:var(--wf-card-radius)}.workflow-bottom-grid{grid-template-columns:minmax(0,3fr) minmax(360px,2fr);gap:var(--wf-section-gap);align-items:stretch}.workflow-detail-panel{min-width:0;display:grid;gap:18px;position:sticky;top:90px;border:1px solid var(--wf-border);border-radius:var(--wf-card-radius);background:var(--wf-surface);box-shadow:var(--wf-card-shadow)}.workflow-detail-card-header,.workflow-detail-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.workflow-detail-card-header h2,.workflow-action-panel h3{margin:0;color:var(--wf-text);font-size:18px;font-weight:800;line-height:1.25}.workflow-detail-card-header button{min-height:30px;border:0;border-radius:var(--wf-small-radius);background:var(--wf-hover-bg);color:var(--wf-blue);padding:0 10px;font-size:12px;font-weight:800;white-space:nowrap}.workflow-detail-summary{align-items:center;padding:var(--wf-table-cell-padding);border:1px solid var(--wf-border-soft);border-radius:var(--wf-inner-radius);background:var(--wf-surface-soft)}.workflow-detail-summary>div{min-width:0}.workflow-detail-summary h3{margin:0;color:var(--wf-text);font-size:16px;font-weight:850;line-height:1.25}.workflow-detail-summary p,.workflow-detail-empty,.workflow-action-grid p{color:var(--wf-muted);font-size:13px;line-height:1.45}.workflow-detail-summary p{margin:7px 0 0}.workflow-pipeline{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:8px 0 2px}.workflow-pipeline-track{position:absolute;top:35px;right:12%;left:12%;z-index:0;display:flex;align-items:center;justify-content:space-between;border-top:2px solid var(--wf-connector)}.workflow-pipeline-track span{width:7px;height:7px;margin-top:-4px;border-radius:var(--wf-pill-radius);background:var(--wf-connector-dot)}.workflow-pipeline-track span:nth-child(2),.workflow-pipeline-track span:nth-child(4){background:var(--wf-purple)}.workflow-pipeline-node{position:relative;z-index:1;min-width:0;display:grid;justify-items:center;gap:10px;text-align:center}.workflow-pipeline-icon{width:54px;height:54px;display:grid;place-items:center;border:4px solid var(--wf-surface);border-radius:var(--wf-pill-radius);box-shadow:var(--wf-soft-shadow)}.pipeline-purple{background:var(--wf-purple-bg);color:var(--wf-purple)}.pipeline-orange{background:var(--wf-warning-soft);color:var(--wf-warning)}.pipeline-green{background:var(--wf-success-soft);color:var(--wf-success)}.pipeline-blue{background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-pipeline-node>div{min-width:0;display:grid;gap:4px}.workflow-pipeline-node span{color:var(--wf-muted);font-size:11px;font-weight:800;letter-spacing:.03em;line-height:1.25;text-transform:uppercase}.workflow-pipeline-node strong{color:var(--wf-text);font-size:12px;font-weight:850;line-height:1.25}.workflow-pipeline-node small{color:var(--wf-muted);font-size:11px;line-height:1.25}.workflow-action-panel{display:grid;gap:12px}.workflow-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workflow-action-grid article{min-width:0;display:grid;gap:8px;padding:12px;border:1px solid var(--wf-border);border-radius:var(--wf-control-radius);background:var(--wf-surface)}.workflow-action-grid article.enabled{border-color:var(--wf-selected-border);background:var(--wf-surface-muted)}.workflow-action-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.workflow-action-card-head span{width:30px;height:30px;display:grid;place-items:center;border-radius:var(--wf-small-radius);background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-action-card-head em{min-height:20px;display:inline-flex;align-items:center;padding:0 7px;border-radius:var(--wf-pill-radius);background:var(--wf-muted-bg);color:var(--wf-muted);font-style:normal;font-size:10px;font-weight:850;line-height:1;text-transform:uppercase}.workflow-action-grid article.enabled .workflow-action-card-head em{background:var(--wf-success-bg);color:var(--wf-success)}.workflow-action-grid strong{display:block;color:var(--wf-text);font-size:13px;font-weight:850;line-height:1.25}.workflow-action-grid p{display:-webkit-box;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.workflow-detail-empty{min-height:220px;display:grid;place-items:center;border:1px dashed var(--wf-connector);border-radius:var(--wf-inner-radius);background:var(--wf-surface-soft);text-align:center}.workflow-bottom-card{min-width:0;min-height:360px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;border:1px solid var(--wf-border);border-radius:var(--wf-card-radius);background:var(--wf-surface);box-shadow:var(--wf-card-shadow)}.workflow-bottom-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.workflow-bottom-card-header h2{margin:0;color:var(--wf-text);font-size:18px;font-weight:850;line-height:1.25}.workflow-bottom-card-header button{min-height:30px;border:0;border-radius:var(--wf-small-radius);background:var(--wf-hover-bg);color:var(--wf-blue);padding:0 10px;font-size:12px;font-weight:850;white-space:nowrap}.workflow-bottom-table-wrap{min-width:0;overflow:visible}.workflow-bottom-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.workflow-runs-table th:nth-child(1),.workflow-runs-table td:nth-child(1){width:26%}.workflow-runs-table th:nth-child(2),.workflow-runs-table td:nth-child(2){width:22%}.workflow-runs-table th:nth-child(3),.workflow-runs-table td:nth-child(3){width:14%}.workflow-runs-table th:nth-child(4),.workflow-runs-table td:nth-child(4){width:18%}.workflow-runs-table th:nth-child(5),.workflow-runs-table td:nth-child(5){width:20%}.workflow-errors-table th:nth-child(1),.workflow-errors-table td:nth-child(1){width:27%}.workflow-errors-table th:nth-child(2),.workflow-errors-table td:nth-child(2){width:28%}.workflow-errors-table th:nth-child(3),.workflow-errors-table td:nth-child(3){width:20%}.workflow-errors-table th:nth-child(4),.workflow-errors-table td:nth-child(4){width:25%}.workflow-bottom-table th,.workflow-bottom-table td{padding:12px 8px;border-top:1px solid var(--wf-border-soft);text-align:left;vertical-align:middle}.workflow-bottom-table th{background:var(--wf-surface-soft);color:var(--wf-muted);font-size:11px;font-weight:850;letter-spacing:.04em;line-height:1.2;text-transform:uppercase;white-space:nowrap}.workflow-bottom-table th:first-child{border-top-left-radius:12px}.workflow-bottom-table th:last-child{border-top-right-radius:12px}.workflow-bottom-table td{height:58px;color:var(--wf-text-soft);font-size:13px;line-height:1.35}.workflow-bottom-table tbody tr:hover td{background:var(--wf-surface-muted)}.workflow-bottom-table td strong{display:block;min-width:0;overflow:hidden;color:var(--wf-text);font-size:13px;font-weight:850;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.workflow-bottom-table td span{color:var(--wf-muted)}.workflow-run-status{min-height:26px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;border-radius:var(--wf-pill-radius);font-size:11px;font-weight:850;line-height:1;white-space:nowrap}.workflow-run-status.status-success{background:var(--wf-success-bg);color:var(--wf-success)}.workflow-run-status.status-failed{background:var(--wf-danger-bg);color:var(--wf-danger)}.workflow-run-status.status-running{background:var(--wf-blue-bg);color:var(--wf-blue)}.workflow-run-status.status-skipped{background:var(--wf-muted-bg);color:var(--wf-muted)}.workflow-run-result{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:108px}.workflow-run-result span{font-size:12px;font-weight:850;white-space:nowrap}.workflow-run-result .result-success{color:var(--wf-success)}.workflow-run-result .result-danger{color:var(--wf-danger)}.workflow-run-result .result-info{color:var(--wf-blue)}.workflow-run-result .result-neutral{color:var(--wf-muted)}.workflow-error-label{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-width:0;overflow:hidden;color:var(--wf-text-soft)!important;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.workflow-error-label i{width:7px;height:7px;display:block;flex:0 0 auto;border-radius:var(--wf-pill-radius);background:var(--wf-danger);box-shadow:var(--wf-danger-ring)}.workflow-retry-button{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--wf-blue-border);border-radius:var(--wf-small-radius);background:var(--wf-surface-muted);color:var(--wf-blue);padding:0 7px;font-size:12px;font-weight:850;white-space:nowrap}.content:has(.health-quality-page){padding:32px;background:#f8fafc}.health-quality-page{--hq-success: #16a34a;--hq-success-bg: #f0fdf4;--hq-success-border: #bbf7d0;--hq-warning: #f59e0b;--hq-warning-bg: #fffbeb;--hq-warning-border: #fde68a;--hq-critical: #ef4444;--hq-critical-bg: #fef2f2;--hq-critical-border: #fecaca;--hq-info: #3b82f6;--hq-info-bg: #eff6ff;--hq-info-border: #bfdbfe;--hq-purple-ai: #8b5cf6;--hq-purple-ai-bg: #f5f3ff;--hq-purple-ai-border: #ddd6fe;--hq-bg: #f8fafc;--hq-card: #ffffff;--hq-border: #e5e7eb;--hq-text: #111827;--hq-muted: #64748b;--hq-soft-line: #edf1f7;--hq-radius: 16px;--hq-shadow-sm: 0 1px 2px rgba(15, 23, 42, .08);display:grid;gap:24px;align-content:start;color:var(--hq-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500}.health-quality-page .page-header{margin-bottom:0}.health-quality-page .page-header>div:first-child{min-width:0}.health-quality-page .page-header h1,.health-quality-page .panel-header h2,.health-quality-page .audit-panel-header h2{font-weight:700}.health-quality-page .page-header p,.health-quality-page .panel-header p,.health-quality-page .audit-panel-header p,.health-quality-page table,.health-quality-page button{font-weight:500}.health-quality-page .health-date-picker,.health-quality-page .health-refresh-button,.health-quality-page .incident-view-all,.health-quality-page .recommendation-view-all{font-weight:700}.health-quality-page .panel{padding:16px;border-color:var(--hq-border);border-radius:var(--hq-radius);background:var(--hq-card);box-shadow:var(--hq-shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.health-quality-page .panel:hover{border-color:var(--hq-border);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.health-primary-grid,.health-secondary-grid{display:grid;gap:24px;align-items:start}.health-primary-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.health-secondary-grid{grid-template-columns:minmax(0,33fr) minmax(0,33fr) minmax(0,34fr)}.health-summary{display:grid;grid-template-columns:minmax(300px,1.45fr) repeat(3,minmax(160px,.75fr));overflow:hidden;margin-bottom:0;border:1px solid var(--hq-border);border-radius:var(--hq-radius);background:var(--hq-card);box-shadow:var(--hq-shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.health-summary:hover{border-color:var(--hq-border);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.health-summary article{min-width:0}.health-summary-score{min-height:128px;display:flex;align-items:center;gap:16px;padding:16px;border-right:1px solid var(--hq-border)}.health-score-circle{position:relative;width:96px;height:96px;display:grid;place-items:center;flex:0 0 96px}.health-score-circle svg{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotate(-90deg)}.health-score-circle-track,.health-score-circle-ring{fill:none;stroke-width:8;stroke-linecap:round}.health-score-circle-track{stroke:var(--hq-success-bg)}.health-score-circle-ring{stroke:var(--hq-success);transition:stroke-dashoffset .24s ease}.health-score-circle-icon{position:relative;width:56px;height:56px;display:grid;place-items:center;border-radius:999px;background:var(--hq-success-bg);color:var(--hq-success);box-shadow:inset 0 0 0 1px var(--hq-success-border)}.health-summary-score-copy{min-width:0;display:grid;gap:7px}.health-summary-title{color:var(--hq-muted);font-size:14px;font-weight:700;line-height:1.35}.health-summary-score-copy strong{color:var(--hq-text);font-size:32px;font-weight:700;line-height:1}.health-summary-status{display:inline-flex;align-items:center;gap:7px;width:fit-content;color:var(--hq-success);font-size:13px;font-weight:700;line-height:1.2}.health-summary-status i{width:8px;height:8px;display:block;border-radius:999px;background:var(--hq-success)}.health-summary-item{min-height:128px;display:flex;align-items:center;gap:14px;padding:16px;border-right:1px solid var(--hq-border)}.health-summary-item:last-child{border-right:0}.health-summary-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px}.health-summary-item>div:last-child{min-width:0;display:grid;gap:5px}.health-summary-item strong{color:var(--hq-text);font-size:30px;font-weight:700;line-height:1}.health-summary-item span{color:var(--hq-text);font-size:14px;font-weight:700;line-height:1.25}.health-summary-item p{margin:0;color:var(--hq-muted);font-size:13px;font-weight:500;line-height:1.35}.health-summary-item-critical .health-summary-icon{background:var(--hq-critical-bg);color:var(--hq-critical)}.health-summary-item-warning .health-summary-icon{background:var(--hq-warning-bg);color:var(--hq-warning)}.health-summary-item-recommendation .health-summary-icon{background:var(--hq-purple-ai-bg);color:var(--hq-purple-ai)}.health-service-panel,.quality-24h-panel{margin-bottom:0}.service-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.service-health-card{height:88px;min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) 16px;grid-template-rows:28px 16px 14px;align-items:center;gap:3px 8px;padding:12px;border:1px solid var(--hq-border);border-radius:var(--hq-radius);background:var(--hq-card);box-shadow:var(--hq-shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.service-health-card:hover{border-color:var(--hq-border);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.service-card-main,.service-card-title-row{min-width:0;display:contents}.service-health-card strong{grid-column:1 / 4;grid-row:2;min-width:0;overflow:hidden;color:var(--hq-text);font-size:12px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.service-status-badge{grid-column:2;grid-row:1;justify-self:start;min-height:22px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:0 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:700;line-height:1;white-space:nowrap}.service-status-ok{border-color:var(--hq-success-border);background:var(--hq-success-bg);color:var(--hq-success)}.service-status-warning{border-color:var(--hq-warning-border);background:var(--hq-warning-bg);color:var(--hq-warning)}.service-status-critical{border-color:var(--hq-critical-border);background:var(--hq-critical-bg);color:var(--hq-critical)}.service-card-metric{grid-column:1 / 4;grid-row:3;overflow:hidden;color:var(--hq-muted);font-size:12px;font-weight:500;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.service-icon{grid-column:1;grid-row:1;width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--hq-border);border-radius:12px;background:var(--hq-bg);color:var(--hq-info)}.service-health-card>svg{grid-column:3;grid-row:1;justify-self:end;color:var(--hq-muted)}.quality-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quality-metric-card{height:160px;min-width:0;display:grid;grid-template-rows:minmax(36px,auto) 42px minmax(28px,auto);align-content:stretch;gap:10px;padding:12px;border:1px solid var(--hq-border);border-radius:var(--hq-radius);background:var(--hq-card);box-shadow:var(--hq-shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.quality-metric-card:hover{border-color:var(--hq-border);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.quality-metric-top{min-width:0;display:flex;align-items:flex-start;gap:6px}.quality-metric-icon{width:26px;height:26px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--hq-purple-ai-border);border-radius:12px;background:var(--hq-purple-ai-bg);color:var(--hq-purple-ai)}.quality-metric-label{min-width:0;display:-webkit-box;overflow:hidden;color:var(--hq-text);font-size:11px;font-weight:700;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;white-space:normal}.quality-metric-card strong{color:var(--hq-text);font-size:36px;font-weight:700;line-height:1;letter-spacing:0}.quality-metric-trend{display:inline-flex;align-items:center;width:100%;gap:5px;font-size:12px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;white-space:normal}.quality-metric-trend-improved{color:var(--hq-success)}.quality-metric-trend-worse{color:var(--hq-critical)}.incident-card{height:320px;display:flex;flex-direction:column;overflow:hidden}.incident-card-header{flex:0 0 auto;align-items:center;margin-bottom:12px}.incident-view-all{min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--hq-border);border-radius:8px;background:var(--hq-card);color:var(--hq-text);box-shadow:var(--hq-shadow-sm);font-size:13px;font-weight:700;line-height:1;white-space:nowrap;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease}.incident-view-all:hover{background:var(--hq-bg);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.incident-table-scroll{min-height:0;flex:1;overflow:auto;border:1px solid var(--hq-border);border-radius:var(--hq-radius)}.incident-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;background:var(--hq-card)}.incident-table th,.incident-table td{padding:8px 6px;border-bottom:1px solid var(--hq-soft-line);color:var(--hq-text);font-size:12px;font-weight:500;line-height:1.35;overflow:hidden;text-align:left;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.incident-table th{position:sticky;top:0;z-index:1;background:var(--hq-bg);color:var(--hq-muted);font-size:10px;font-weight:700;line-height:1.2;text-transform:uppercase}.incident-table th:nth-child(1),.incident-table td:nth-child(1){width:54px;white-space:nowrap}.incident-table th:nth-child(2),.incident-table td:nth-child(2){width:102px;font-weight:700;white-space:nowrap}.incident-table th:nth-child(3),.incident-table td:nth-child(3){width:72px;white-space:nowrap}.incident-table tr:last-child td{border-bottom:0}.incident-table tbody tr:hover{background:var(--hq-bg)}.incident-severity{min-height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.incident-severity-high{border-color:var(--hq-critical-border);background:var(--hq-critical-bg);color:var(--hq-critical)}.incident-severity-medium{border-color:var(--hq-warning-border);background:var(--hq-warning-bg);color:var(--hq-warning)}.incident-severity-low{border-color:var(--hq-info-border);background:var(--hq-info-bg);color:var(--hq-info)}.recommendation-panel{min-width:0;height:320px;display:flex;flex-direction:column;overflow:hidden}.recommendation-card-header{flex:0 0 auto;align-items:center;margin-bottom:12px}.recommendation-view-all{min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--hq-border);border-radius:8px;background:var(--hq-card);color:var(--hq-text);box-shadow:var(--hq-shadow-sm);font-size:13px;font-weight:700;line-height:1;white-space:nowrap;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease}.recommendation-view-all:hover{background:var(--hq-bg);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.recommendation-list{min-height:0;flex:1;display:grid;align-content:start;gap:8px;overflow-y:auto;padding-right:2px}.recommendation-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:52px;padding:8px 10px;border:1px solid var(--hq-border);border-radius:var(--hq-radius);background:var(--hq-card);box-shadow:var(--hq-shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.recommendation-row:hover{border-color:var(--hq-border);box-shadow:var(--hq-shadow-sm);transform:translateY(-2px)}.recommendation-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--hq-purple-ai-border);border-radius:12px;background:var(--hq-purple-ai-bg);color:var(--hq-purple-ai)}.recommendation-copy{min-width:0;display:grid}.recommendation-row strong{display:-webkit-box;overflow:hidden;color:var(--hq-text);font-size:13px;font-weight:700;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;white-space:normal}.recommendation-priority{min-height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.recommendation-priority-high{border-color:var(--hq-critical-border);background:var(--hq-critical-bg);color:var(--hq-critical)}.recommendation-priority-medium{border-color:var(--hq-warning-border);background:var(--hq-warning-bg);color:var(--hq-warning)}.recommendation-priority-low{border-color:var(--hq-info-border);background:var(--hq-info-bg);color:var(--hq-info)}.audit-panel{height:320px;display:flex;flex-direction:column;gap:16px;overflow:hidden}.audit-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.audit-panel-header h2{margin:0;color:var(--hq-text);font-size:17px;font-weight:700;line-height:1.2}.audit-panel-header p{margin:6px 0 0;color:var(--hq-muted);font-size:14px;font-weight:500;line-height:1.45}.audit-severity-distribution{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.audit-distribution-item{min-height:28px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--hq-border);border-radius:999px;background:var(--hq-card);color:var(--hq-muted);font-size:13px;font-weight:700;line-height:1;white-space:nowrap}.audit-distribution-item i{width:8px;height:8px;display:block;border-radius:999px}.audit-distribution-high i{background:var(--hq-critical)}.audit-distribution-medium i{background:var(--hq-warning)}.audit-distribution-low i{background:var(--hq-info)}.audit-distribution-item strong{color:var(--hq-text);font-weight:700}.audit-table-scroll{min-height:0;flex:1;overflow:auto;border:1px solid var(--hq-border);border-radius:var(--hq-radius)}.audit-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;background:var(--hq-card)}.audit-table th,.audit-table td{padding:8px 10px;border-bottom:1px solid var(--hq-soft-line);color:var(--hq-text);font-size:12px;font-weight:500;line-height:1.35;overflow:hidden;text-align:left;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.audit-table th{position:sticky;top:0;z-index:1;background:var(--hq-bg);color:var(--hq-muted);font-size:11px;font-weight:700;line-height:1.2;text-transform:uppercase}.audit-table th:nth-child(1),.audit-table td:nth-child(1){width:58px;white-space:nowrap}.audit-table th:nth-child(2),.audit-table td:nth-child(2){width:124px;white-space:nowrap}.audit-table th:nth-child(4),.audit-table td:nth-child(4){width:82px;white-space:nowrap}.audit-table tr:last-child td{border-bottom:0}.audit-table tbody tr:hover{background:var(--hq-bg)}.audit-conversation-link{color:var(--hq-info);font-weight:700;text-decoration:none}.audit-conversation-link:hover{text-decoration:underline}.audit-severity{min-height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.audit-severity-high{border-color:var(--hq-critical-border);background:var(--hq-critical-bg);color:var(--hq-critical)}.audit-severity-medium{border-color:var(--hq-warning-border);background:var(--hq-warning-bg);color:var(--hq-warning)}.audit-severity-low{border-color:var(--hq-info-border);background:var(--hq-info-bg);color:var(--hq-info)}.sidebar-scrim{display:none}@media(max-width:1320px){.dashboard-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workflows-page-header{align-items:flex-start;flex-direction:column;gap:16px}.workflows-header-actions{width:100%;justify-content:flex-start}.reply-learning-main-grid,.reply-learning-bottom-grid{grid-template-columns:1fr}}@media(max-width:1180px){.pattern-split-view{grid-template-columns:1fr}.pattern-detail-panel{position:static;top:auto}.pattern-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.pattern-search{grid-column:span 2}.pattern-toolbar-actions{justify-content:flex-end}.pattern-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pattern-ab-card{grid-column:1 / -1}}@media(max-width:1120px){.metric-grid,.metric-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.reply-learning-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.learning-flow,.analysis-grid,.improvement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reply-learning-main-grid,.reply-learning-bottom-grid{grid-template-columns:1fr}.learning-flow-arrow{display:none!important}.dashboard-process-row,.dashboard-summary-row,.dashboard-bottom-row{grid-template-columns:1fr}.summary-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.two-col,.settings-grid,.omni-layout,.training-layout,.memory-browser-layout,.auto-rules-layout,.decision-config-row,.guardrail-loop-row,.workflow-layout,.workflow-bottom-grid,.style-learner-layout,.health-primary-grid,.health-secondary-grid{grid-template-columns:1fr}.style-side-stack{position:static}.style-row-one,.style-row-two{grid-template-columns:1fr}.omni-page,.omni-layout{height:auto;min-height:0}.omni-page{overflow:visible}.inbox-column,.chat-column,.copilot-column{height:auto}.copilot-column{overflow:visible}.auto-rules-metrics,.workflow-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-mode-grid,.threshold-grid,.guardrail-grid,.anti-loop-grid,.tone-score-grid,.style-profile-grid,.style-attribute-grid,.style-compare-grid,.style-score-row,.ab-variant-grid,.health-summary,.service-health-grid,.quality-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.health-summary-score,.health-summary-item{border-right:0}.health-summary-score,.health-summary-item-warning{border-right:1px solid var(--hq-border, #e5e7eb)}.health-summary-item-warning,.health-summary-item-recommendation{border-top:1px solid var(--hq-border, #e5e7eb)}.simulator-card,.decision-simulator-sticky,.workflow-detail-panel{position:static}.decision-simulator{padding-top:0}.memory-entity-list{max-height:none}.memory-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-kpi-block+.memory-kpi-block{border-left:0;border-top:1px solid #edf1f7}.pattern-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.pattern-search{grid-column:1 / -1}.pattern-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pattern-detail-panel{max-height:none;position:static}.inbox-column,.chat-column{min-height:auto}.conversation-list{max-height:460px}.training-layout{height:auto;min-height:0}.training-detail-grid{grid-template-columns:1fr;overflow:visible}.training-queue,.training-detail-shell,.training-workspace,.training-right-rail{height:auto;overflow:visible}.training-sample-list{max-height:420px}.training-metadata,.needs-grid,.pattern-variable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.sidebar{transform:translate(-100%);transition:transform .18s ease}.sidebar-open{transform:translate(0)}.sidebar-close,.menu-button{display:inline-grid!important}.sidebar-scrim.show{display:block;z-index:25}.shell-main{margin-left:0}.app-shell:has(.workflows-page) .shell-main{margin-left:0}.app-shell:has(.workflows-page) .sidebar-collapse{display:none!important}.app-shell:has(.auto-reply-page) .shell-main{margin-left:0}.topbar{padding:0 14px;gap:10px}.app-shell:has(.workflows-page) .topbar{padding:0 14px}.app-shell:has(.auto-reply-page) .topbar{padding:0 14px}.global-search{width:auto;flex:1;margin-left:0}.app-shell:has(.auto-reply-page) .global-search{width:auto}.app-shell:has(.auto-reply-page) .user-menu{min-width:44px;padding:0}.app-shell:has(.auto-reply-page) .user-copy,.app-shell:has(.auto-reply-page) .user-menu>svg{display:none}.workspace-switcher{display:none}.content{padding:22px 16px 36px}.app-shell:has(.workflows-page) .content{padding:22px 16px 36px}.content:has(.auto-reply-page){padding:18px 16px 34px}.auto-reply-page-header{align-items:flex-start;flex-direction:column;gap:12px}.auto-reply-date-picker{width:fit-content}.training-sticky-actions{left:0;padding:12px 16px}.dashboard-header{align-items:stretch;flex-direction:column}.reply-learning-page-header{align-items:flex-start;flex-direction:column}.dashboard-date-filter,.reply-learning-date-filter{width:fit-content}.dashboard-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-process-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}.workflow-process-steps:before,.workflow-step-check{display:none}.summary-kpi-grid,.dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-header,.omni-header,.filter-bar{align-items:stretch;flex-direction:column}.audit-panel-header{align-items:flex-start;flex-direction:column}.audit-severity-distribution{justify-content:flex-start}.omni-date-filter,.health-header-actions{width:fit-content}.filter-controls{flex-wrap:wrap}.filter-actions{margin-left:0}.pattern-page-header{align-items:flex-start;flex-direction:column}.pattern-page-actions{width:100%}.pattern-page-actions .primary-button,.pattern-page-actions .secondary-button{flex:1 1 0}.workflows-header-actions{flex-wrap:wrap}}@media(max-width:620px){.metric-grid,.metric-grid.compact,.dashboard-metric-grid,.reply-learning-main-grid,.reply-learning-bottom-grid,.reply-learning-metrics,.learning-flow,.analysis-grid,.improvement-grid,.tone-score-grid,.style-profile-grid,.style-attribute-grid,.style-compare-grid,.style-score-row,.style-tune-summary,.prompt-control-list,.ab-variant-grid{grid-template-columns:1fr}.prompt-control-footer,.ab-variant-card footer{align-items:stretch;flex-direction:column}.ab-variant-metrics{grid-template-columns:1fr}.style-learner-page{width:100%;max-width:100%;overflow-x:hidden}.content:has(.style-learner-page){padding:16px;overflow-x:hidden}.style-learner-layout,.style-main-stack,.style-side-stack,.style-row,.style-learner-page .panel{width:100%;max-width:100%}.style-learner-page .page-header{gap:16px;max-width:100%}.style-learner-page .page-header>div:first-child{width:100%}.style-learner-page .page-header h1,.style-learner-page .page-header p{max-width:100%;white-space:normal;overflow-wrap:anywhere}.style-learner-page .page-actions{flex-wrap:wrap}.style-learner-page .panel{padding:18px}.style-learner-page .status-chip{max-width:100%;white-space:normal}.reply-learning-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.global-search input::placeholder{color:transparent}.app-shell:has(.auto-reply-page) .global-search input::placeholder{color:transparent}.health-header-actions{width:100%;display:grid;grid-template-columns:1fr;flex-wrap:initial}.health-quality-page .page-actions{width:100%;min-width:0}.health-date-picker{width:100%;flex:initial;min-width:0}.health-refresh-button{flex:initial}.user-menu{min-width:44px;padding:0}.user-copy,.user-menu>svg{display:none}.dashboard-header h1{font-size:24px}.dashboard-date-filter,.omni-date-filter{width:100%;justify-content:center}.memory-page-header{gap:14px}.memory-page-title-row{align-items:flex-start;gap:10px;width:100%;max-width:100%}.memory-page-title-row>div{flex:1;min-width:0}.memory-page-header h1{font-size:22px}.memory-page-header p{max-width:100%;overflow-wrap:normal;white-space:normal;word-break:normal}.memory-date-picker{max-width:100%}.memory-left-pane{width:100%}.memory-tabs{gap:0;overflow-x:auto}.memory-tabs button{flex:1 1 0;min-width:0}.memory-left-controls{padding:14px 12px 10px}.memory-entity-list{padding:4px 10px 10px}.memory-entity-item{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:10px}.memory-list-avatar{width:36px;height:36px}.memory-entity-head{grid-template-columns:minmax(0,1fr);gap:4px}.memory-entity-head time{justify-self:start}.memory-left-pagination{padding:12px}.memory-profile{padding:18px}.memory-profile-left{flex-direction:column}.memory-profile-title h2{font-size:22px}.memory-contact-row{display:grid;gap:8px}.memory-contact-item{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:break-word}.memory-kpi-block,.memory-summary-card{min-height:auto}.dashboard-process-card,.dashboard-activity-card{padding:16px}.workflow-process-steps{grid-template-columns:1fr;gap:18px;padding:10px 0 0}.workflow-step{min-height:76px;grid-template-columns:56px minmax(0,1fr);justify-items:start;column-gap:14px;text-align:left}.workflow-step:not(:last-child):after{content:"";position:absolute;left:28px;top:62px;bottom:-18px;border-left:2px dotted #b7c4d8}.workflow-step-copy{margin-top:4px}.workflow-channel-list{justify-content:flex-start}.activity-item{grid-template-columns:28px minmax(0,1fr)}.activity-item time{grid-column:2;text-align:left}.summary-kpi-grid,.dashboard-action-grid{grid-template-columns:1fr}.dashboard-summary-card,.dashboard-suggestions-card,.dashboard-actions-card{padding:16px}.page-header h1{font-size:24px}.content:has(.auto-reply-page){padding:16px 12px 30px}.app-shell:has(.workflows-page) .content{padding:16px 12px 30px}.content:has(.health-quality-page){padding:16px 12px 30px}.workflows-page{gap:16px}.workflows-title-group{grid-template-columns:42px minmax(0,1fr);align-items:flex-start;gap:12px}.workflows-title-icon{width:42px;height:42px;border-radius:13px}.workflows-page-header h1{font-size:24px}.workflows-page-header p{font-size:13px}.workflows-header-actions,.workflow-status-select,.workflow-header-search,.workflow-create-button{width:100%}.workflow-status-select,.workflow-header-search,.workflow-create-button{flex:1 1 100%;min-width:0}.auto-reply-page .auto-rules-metrics{grid-template-columns:1fr}.auto-reply-title-group{align-items:flex-start}.auto-reply-title-icon{width:40px;height:40px;border-radius:12px}.auto-reply-page-header h1{font-size:22px}.auto-reply-page-header p{font-size:13px}.auto-reply-date-picker{width:100%;justify-content:center}.rule-matrix-header,.rule-matrix-footer{align-items:stretch;flex-direction:column}.rule-add-button,.rule-pagination{width:100%}.rule-pagination{justify-content:flex-start;overflow-x:auto}.row-actions{flex-direction:column}.chat-header,.bot-mode-banner,.composer-footer{align-items:stretch;flex-direction:column}.message-bubble{width:100%}.message-stack{max-width:calc(100% - 32px)}.inbox-filter-row{grid-template-columns:1fr}.inbox-unread-toggle{justify-content:flex-start}.conversation-pagination{align-items:flex-start;flex-direction:column}.copilot-overview-grid,.learning-result-table{grid-template-columns:1fr}.learning-result-table>div+div{border-top:1px solid var(--line-soft);border-left:0}.ai-reply-meta{align-items:flex-start;flex-direction:column}.copilot-quick-actions,.inbox-select-grid,.training-filter-grid,.training-metadata,.message-pair-grid,.training-insight-grid,.analysis-detail-grid,.needs-grid,.pattern-variable-grid,.pattern-toolbar,.pattern-context-grid,.pattern-bottom-grid,.memory-kpi-strip,.memory-card-grid,.memory-donut-block,.auto-rules-metrics,.decision-mode-grid,.threshold-grid,.guardrail-grid,.anti-loop-grid,.tone-score-grid,.style-profile-grid,.style-attribute-grid,.style-compare-grid,.style-score-row,.style-tune-summary,.prompt-control-list,.health-primary-grid,.health-secondary-grid,.health-summary,.service-health-grid,.quality-metric-grid,.workflow-metrics,.live-metric-grid,.live-main-grid,.live-bottom-grid{grid-template-columns:1fr}.health-summary-score,.health-summary-item,.health-summary-item-warning{border-right:0}.health-summary-item{min-height:118px;border-top:1px solid var(--hq-border, #e5e7eb)}.workflow-detail-panel>header{align-items:stretch;flex-direction:column}.pattern-search{grid-column:auto}.pattern-detail-hero,.pattern-card-title-row,.pattern-pagination,.pattern-detail-head,.section-title-row,.pattern-page-actions{align-items:stretch;flex-direction:column}.pattern-detail-hero{grid-template-columns:1fr}.pattern-library-page{gap:14px}.pattern-toolbar{padding:12px}.pattern-toolbar-actions{align-items:stretch}.pattern-filter-button{flex:1 1 auto}.pattern-table-card-head,.pattern-detail-panel,.pattern-analytics-card{padding:14px}.pattern-pagination{justify-content:flex-start}.pattern-page-list{width:100%;max-width:100%;overflow-x:auto;padding-bottom:2px}.pattern-page-nav,.pattern-page-size{width:100%}.pattern-title-wrap{align-items:flex-start}.pattern-page-actions .primary-button,.pattern-page-actions .secondary-button{width:100%}.pattern-ab-card{grid-column:auto}.training-sticky-actions{align-items:stretch;flex-direction:column}.training-inbox-page{padding-bottom:260px}.sticky-sample-state,.sticky-action-buttons{width:100%}.sticky-nav-actions{width:100%;margin-left:0}.sticky-nav-actions .secondary-button{flex:1}}@media(max-width:460px){.health-date-picker,.health-refresh-button{width:100%;flex:initial}.reply-learning-metrics{grid-template-columns:1fr}}
