:root{--slate-50:#f8fafc;--slate-100:#f1f5f9;--slate-200:#e2e8f0;--slate-300:#cbd5e1;--slate-400:#94a3b8;--slate-500:#64748b;--slate-600:#475569;--slate-700:#334155;--slate-800:#1e293b;--slate-900:#0f172a;--blue-50:#eff6ff;--blue-100:#dbeafe;--blue-200:#bfdbfe;--blue-400:#60a5fa;--blue-500:#3b82f6;--blue-600:#2563eb;--blue-700:#1d4ed8;--emerald-50:#ecfdf5;--emerald-100:#d1fae5;--emerald-500:#10b981;--emerald-600:#059669;--emerald-700:#047857;--red-50:#fef2f2;--red-100:#fee2e2;--red-400:#f87171;--red-500:#ef4444;--red-600:#dc2626;--red-700:#b91c1c;--amber-50:#fffbeb;--amber-100:#fef3c7;--amber-400:#fbbf24;--amber-500:#f59e0b;--amber-600:#d97706;--amber-700:#b45309;--orange-50:#fff7ed;--orange-500:#f97316;--orange-700:#c2410c;--background:#fff;--surface-card:#fff;--surface-muted:var(--slate-50);--surface-subtle:#f8fafc80;--surface-inverse:var(--slate-900);--text-strong:var(--slate-900);--text-body:var(--slate-700);--text-muted:var(--slate-500);--text-faint:var(--slate-400);--text-on-primary:#fff;--border:var(--slate-200);--border-subtle:var(--slate-100);--input-border:var(--slate-200);--ring:var(--blue-600);--primary:var(--blue-600);--primary-hover:var(--blue-700);--primary-fg:#fff;--success-fg:var(--emerald-700);--success-surface:var(--emerald-50);--success-border:var(--emerald-100);--danger-fg:var(--red-700);--danger-surface:var(--red-50);--danger-border:var(--red-100);--warning-fg:var(--amber-700);--warning-surface:var(--amber-50);--warning-border:var(--amber-100);--info-fg:var(--blue-700);--info-surface:var(--blue-50);--info-border:var(--blue-100);--priority-high:var(--orange-500);--priority-medium:var(--amber-500);--priority-low:var(--slate-400);--font-sans:"Inter",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;--font-mono:ui-monospace,"SF Mono","Menlo","Consolas",monospace;--text-2xs:10px;--text-xs:12px;--text-13:13px;--text-sm:14px;--text-base:16px;--text-lg:18px;--text-xl:20px;--text-2xl:24px;--text-3xl:30px;--weight-normal:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--leading-none:1;--leading-tight:1.2;--leading-snug:1.35;--leading-normal:1.5;--tracking-wider:0.05em;--tracking-normal:0;--eyebrow-size:var(--text-2xs);--eyebrow-weight:var(--weight-semibold);--metric-size:var(--text-2xl);--metric-weight:var(--weight-semibold);--space-0:0;--space-1:4px;--space-1-5:6px;--space-2:8px;--space-2-5:10px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--topbar-height:48px;--control-sm:36px;--control-md:40px;--row-padding-y:8px;--radius-sm:4px;--radius:6px;--radius-md:8px;--radius-lg:12px;--radius-full:9999px;--border-width:1px;--focus-ring-width:2px;--focus-ring-offset:2px;--shadow-xs:0 1px 2px -1px rgba(0,0,0,.08);--shadow-sm:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--shadow-md:0 4px 6px -1px rgba(0,0,0,.08),0 2px 4px -2px rgba(0,0,0,.06);--shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.05);--focus-ring:0 0 0 var(--focus-ring-offset) var(--background),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--ring);--ease-standard:cubic-bezier(0.4,0,0.2,1);--ease-out:ease-out;--ease-spring:cubic-bezier(0.34,1.56,0.64,1);--duration-fast:150ms;--duration-normal:200ms;--duration-slow:500ms;--transition-colors:color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}@keyframes pol-fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes pol-slideIn{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}*,:after,:before{box-sizing:border-box}.tabular,[data-numeric]{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1,"tnum"}.eyebrow{font-size:var(--eyebrow-size);font-weight:var(--eyebrow-weight);letter-spacing:var(--tracking-wider);text-transform:uppercase;color:var(--text-muted)}.scenario-library{max-width:1380px;width:100%;margin:0 auto;padding:24px 28px 40px;color:var(--text-strong,#0f172a);min-height:0;overflow-y:auto;background:var(--background,#fff)}.scenario-library-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:8px}.scenario-library h1{font-size:clamp(26px,3vw,38px);font-weight:600;line-height:1.2;letter-spacing:-.035em;margin:10px 0 12px}.scenario-library-detail-header{margin-bottom:4px}.scenario-library-detail-header h1{font-size:18px;font-weight:600;letter-spacing:-.022em;line-height:1.35;margin:0}.scenario-library-detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.scenario-library-detail-toolbar{display:flex;align-items:center;gap:4px;flex:none}.scenario-library .scenario-library-detail-toolbar button:not(.scenario-library-primary){height:28px;width:28px;padding:0;border-color:transparent;background:transparent;color:var(--text-muted,#64748b)}.scenario-library .scenario-library-detail-toolbar button:not(.scenario-library-primary):hover{background:var(--slate-100,#f1f5f9);color:var(--text-strong,#0f172a)}.scenario-library .scenario-library-detail-toolbar .scenario-library-primary{height:28px;padding:0 10px;font-size:12px}.scenario-library-detail-meta{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:12px;color:var(--text-muted,#64748b);margin-bottom:8px}.scenario-library-detail-meta>span{white-space:nowrap}.scenario-library-detail-meta>span+span:before{content:"·";margin-right:4px;color:var(--text-faint,#94a3b8)}.scenario-library-detail-badge{display:inline-flex;align-items:center;gap:5px;padding:1px 7px;border-radius:4px;font-size:11px;font-weight:500;background:var(--slate-100,#f1f5f9);color:var(--text-body,#334155)}.scenario-library-detail-badge+span:before{content:"·"!important}.scenario-library-detail-badge[data-kind=starter]{background:#eff6ff;color:#2563eb}.scenario-library-detail-badge[data-kind=archived]{background:#fef3c7;color:#92400e}.scenario-library-detail-description{font-size:13px;line-height:1.55;color:var(--text-muted,#64748b);margin:0 0 6px;max-width:680px}.scenario-library-detail-notice{font-size:12px;line-height:1.5;color:var(--text-faint,#94a3b8);margin:0 0 4px}.scenario-library .scenario-library-detail-notice button{height:auto;padding:0;border:none;background:none;color:var(--primary,#3b82f6);font-size:12px;text-decoration:underline;text-underline-offset:2px}.scenario-library .scenario-library-detail-notice button:hover{background:none;color:var(--primary-hover,#2563eb)}.scenario-library-index h1{font-size:20px;font-weight:600;letter-spacing:-.022em;line-height:1.25;margin:2px 0 4px}.scenario-library h2{font-size:18px;font-weight:600}.scenario-library h3{font-size:18px;line-height:1.4;margin:12px 0 8px}.scenario-library p{line-height:1.65;margin:8px 0 16px}.scenario-library-index .scenario-library-heading p{margin:0;max-width:520px;color:var(--text-muted,#64748b);font-size:13px;line-height:1.45}.scenario-library-eyebrow{color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:600}.scenario-library-muted{color:#667085;font-size:13px}.scenario-library button,.scenario-library-dialog button,.scenario-library-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border,#e2e8f0);border-radius:6px;height:32px;padding:0 10px;background:#fff;color:var(--text-strong,#0f172a);font:inherit;font-size:13px;font-weight:500;cursor:pointer;text-decoration:none}.scenario-library button:not(.scenario-library-primary):hover,.scenario-library-dialog button:not(.scenario-library-primary):hover{background:#f4f6f8}.scenario-library button:focus-visible,.scenario-library input:focus-visible,.scenario-library select:focus-visible,.scenario-library-dialog button:focus-visible{outline:2px solid #496f99;outline-offset:3px}.scenario-library button:disabled,.scenario-library-dialog button:disabled{opacity:.5;cursor:not-allowed}.scenario-library .scenario-library-primary,.scenario-library-dialog .scenario-library-primary{background:var(--primary);color:var(--primary-fg);border-color:var(--primary);white-space:nowrap}.scenario-library .scenario-library-primary:hover:not(:disabled),.scenario-library-dialog .scenario-library-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);color:var(--primary-fg)}.scenario-library-toolbar{display:flex;align-items:center;gap:4px;min-height:40px;margin:4px 0 8px;flex-wrap:wrap;position:-webkit-sticky;position:sticky;top:0;z-index:4;background:var(--background,#fff);padding:4px 0}.scenario-library-toolbar-spacer{flex:1 1 12px}.scenario-library-views{display:flex;align-items:center;margin-right:8px}.scenario-library .scenario-library-views button{height:28px;border:none;border-radius:0;background:transparent;color:var(--text-muted,#64748b);padding:0 8px;font-size:13px;font-weight:500;box-shadow:inset 0 -1px 0 transparent}.scenario-library .scenario-library-views button:hover{color:var(--text-body,#334155);background:transparent}.scenario-library .scenario-library-views button[aria-pressed=true]{color:var(--text-strong,#0f172a);background:transparent;box-shadow:inset 0 -1px 0 currentColor}.scenario-library .scenario-library-ghost{height:28px;border-color:transparent;background:transparent;color:var(--text-body,#334155);padding:0 8px}.scenario-library .scenario-library-ghost:hover,.scenario-library .scenario-library-ghost[aria-expanded=true]{background:var(--slate-100,#f1f5f9)}.scenario-library-menu{position:relative}.scenario-library-popover{position:absolute;top:calc(100% + 4px);left:0;z-index:5;min-width:220px;padding:6px;background:#fff;border:1px solid var(--border,#e2e8f0);border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.08)}.scenario-library-display-menu .scenario-library-popover,.scenario-library-toolbar>.scenario-library-menu .scenario-library-popover{right:0;left:auto}.scenario-library-popover-label{margin:6px 8px 4px;color:var(--text-faint,#94a3b8);font-size:11px;font-weight:500;letter-spacing:.01em}.scenario-library .scenario-library-popover button{width:100%;justify-content:flex-start;height:30px;border:none;background:transparent;padding:0 8px;border-radius:6px;color:var(--text-strong,#0f172a);font-weight:500}.scenario-library .scenario-library-popover button:hover,.scenario-library .scenario-library-popover button[aria-checked=true],.scenario-library .scenario-library-popover button[aria-selected=true]{background:var(--slate-100,#f1f5f9)}.scenario-library-popover-back{color:var(--text-muted,#64748b);margin-bottom:4px}.scenario-library-op{display:grid;grid-template-columns:1fr 1fr;grid-gap:2px;gap:2px;margin:0 4px 6px;padding:2px;background:var(--slate-100,#f1f5f9);border-radius:6px}.scenario-library .scenario-library-op button{justify-content:center;height:24px;font-size:12px}.scenario-library .scenario-library-op button[aria-pressed=true]{background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.08)}.scenario-library-layout{display:grid;grid-template-columns:1fr 1fr;grid-gap:4px;gap:4px;margin-bottom:8px}.scenario-library .scenario-library-layout button{justify-content:center;border:1px solid transparent}.scenario-library .scenario-library-layout button[aria-checked=true]{border-color:var(--border,#e2e8f0);background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}.scenario-library-chip{display:inline-flex;align-items:center;height:24px;border-radius:6px;background:var(--slate-100,#f1f5f9);padding-right:2px}.scenario-library .scenario-library-chip button{height:22px;border:none;background:transparent;padding:0 6px;border-radius:4px;font-size:12px;font-weight:500;color:var(--text-body,#334155)}.scenario-library .scenario-library-chip button:hover{background:var(--slate-200,#e2e8f0)}.scenario-library-chip-op{color:var(--text-muted,#64748b);font-weight:400}.scenario-library .scenario-library-icon-btn{width:28px;height:28px;padding:0;flex:none}.scenario-library .scenario-library-primary.scenario-library-icon-btn{width:28px;height:28px;padding:0;border-radius:6px}.scenario-library-active-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 0 4px}.scenario-library-filter-tag{display:inline-flex;align-items:center;height:26px;border-radius:6px;border:1px solid var(--border,#e2e8f0);background:#fff;overflow:visible}.scenario-library-filter-tag-field{padding:0 6px 0 8px;font-size:12px;font-weight:500;color:var(--text-muted,#64748b);white-space:nowrap}.scenario-library .scenario-library-filter-tag-op{height:20px;border:none;border-radius:4px;background:var(--slate-100,#f1f5f9);padding:0 6px;font-size:11px;font-weight:500;color:var(--text-muted,#64748b);cursor:pointer;white-space:nowrap;margin:0 2px}.scenario-library .scenario-library-filter-tag-op:hover{background:var(--slate-200,#e2e8f0);color:var(--text-strong,#0f172a)}.scenario-library .scenario-library-filter-tag-value{height:24px;border:none;border-radius:0;background:transparent;padding:0 4px;font-size:12px;font-weight:500;color:var(--text-strong,#0f172a);cursor:pointer;white-space:nowrap}.scenario-library .scenario-library-filter-tag-value:hover{background:var(--slate-100,#f1f5f9)}.scenario-library .scenario-library-filter-tag-remove{height:22px;width:22px;border:none;border-radius:0 5px 5px 0;background:transparent;padding:0;color:var(--text-faint,#94a3b8);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.scenario-library .scenario-library-filter-tag-remove:hover{background:var(--slate-100,#f1f5f9);color:var(--text-strong,#0f172a)}.scenario-library label,.scenario-library-dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:500}.scenario-library input,.scenario-library select,.scenario-library textarea,.scenario-library-dialog input,.scenario-library-dialog select,.scenario-library-dialog textarea{background:#fff;color:#253047;border:1px solid #dce1e7;padding:10px 12px;border-radius:6px;font:inherit;font-size:14px;min-width:0}.scenario-library .scenario-library-search{position:relative;width:180px;flex:none}.scenario-library-search svg{position:absolute;top:7px;left:8px;color:var(--text-faint,#94a3b8);pointer-events:none}.scenario-library .scenario-library-search input{width:100%;height:28px;border:none;background:transparent;padding:0 8px 0 26px;border-radius:6px;font-size:13px}.scenario-library .scenario-library-search input:focus,.scenario-library .scenario-library-search input:hover{background:var(--slate-100,#f1f5f9)}.scenario-library-count{margin:0 0 4px;color:var(--text-muted,#64748b);font-size:12px}.scenario-library button.scenario-library-row,.scenario-library-list-head{display:grid;grid-template-columns:minmax(160px,1.5fr) 112px minmax(120px,1fr) 128px;grid-column-gap:16px;column-gap:16px;align-items:center;padding:0 8px}.scenario-library-list-head{position:-webkit-sticky;position:sticky;top:0;z-index:1;height:28px;color:var(--text-faint,#94a3b8);font-size:12px;font-weight:500;background:var(--background,#fff)}.scenario-library button.scenario-library-row{width:100%;height:36px;border:none;border-radius:6px;background:transparent;justify-content:stretch;text-align:left;font-weight:400;color:var(--text-strong,#0f172a)}.scenario-library button.scenario-library-row:hover{background:var(--slate-100,#f1f5f9)}.scenario-library-row-title{font-weight:500;font-size:13px;letter-spacing:-.011em}.scenario-library button.scenario-library-row>span,.scenario-library-ellipsis,.scenario-library-row-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scenario-library button.scenario-library-row>span:not(.scenario-library-row-title){color:var(--text-muted,#64748b);font-size:13px}.scenario-library-kind{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--text-body,#334155)}.scenario-library-kind:before{content:"";width:6px;height:6px;border-radius:99px;background:var(--slate-400,#94a3b8);flex:none}.scenario-library-kind[data-kind=starter]:before{background:var(--blue-500,#3b82f6)}.scenario-library-kind[data-kind=shared]:before{background:var(--amber-500,#f59e0b)}.scenario-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-gap:8px;gap:8px}.scenario-library-group{margin:16px 0 8px}.scenario-library .scenario-library-group h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px;font-weight:500;color:var(--text-muted,#64748b)}.scenario-library .scenario-library-group h2 span{color:var(--text-faint,#94a3b8);font-weight:400}.scenario-library button.scenario-library-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px;width:100%;min-height:76px;height:auto;padding:10px 12px;border:1px solid var(--border,#e2e8f0);border-radius:8px;background:#fff;box-shadow:none;text-align:left;font-weight:400;color:var(--text-strong,#0f172a)}.scenario-library button.scenario-library-card:hover{background:var(--slate-50,#f8fafc);border-color:var(--slate-300,#cbd5e1)}.scenario-library-card-title{font-size:13px;font-weight:500;line-height:1.35;letter-spacing:-.011em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.scenario-library-card-meta{display:flex;align-items:center;gap:8px;min-width:0;color:var(--text-muted,#64748b);font-size:12px}.scenario-library-card-meta>span{min-width:0}.scenario-library-card-meta .scenario-library-ellipsis{flex:1 1}.scenario-library-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px}.scenario-library-tags span{font-size:11px;line-height:1.5;padding:3px 8px;background:#f1f4f7;border-radius:4px;color:#526077}.scenario-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.scenario-library-empty{text-align:center;padding:48px 16px 24px;margin-top:8px}.scenario-library-empty h2{font-size:14px;font-weight:500;margin:8px 0 4px}.scenario-library-empty p{color:var(--text-muted,#64748b);font-size:13px;margin:0 auto 12px;max-width:420px}.scenario-library-empty svg{color:var(--text-faint,#94a3b8)}.scenario-library-back{margin-bottom:12px;height:26px;border-color:transparent;background:transparent;color:var(--text-muted,#64748b);font-size:12px;padding:0 4px}.scenario-library .scenario-library-back:hover{background:transparent;color:var(--text-strong,#0f172a)}.scenario-library-canvas{margin-top:16px;padding:16px 18px 24px;border:1px solid #e1e5eb;border-radius:10px;overflow:visible}.scenario-library-canvas .case-canvas-comms,.scenario-library-canvas .case-canvas-drail,.scenario-library-canvas .case-canvas-grid-wrap,.scenario-library-canvas .case-canvas-pane-scroll,.scenario-library-canvas .case-canvas-transcript{max-height:none;overflow-x:visible;overflow-y:visible}.scenario-library-canvas .case-canvas-grid-wrap{overflow-x:auto}.scenario-library-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:1px solid #dfe5ec;border-radius:12px;padding:28px;color:#253047;background:#fff;box-shadow:0 20px 80px #12243833}.scenario-library-dialog::-webkit-backdrop{background:#15293e66}.scenario-library-dialog::backdrop{background:#15293e66}.scenario-library-dialog label{margin-bottom:16px}.scenario-library-dialog p{font-size:14px;line-height:1.65;color:#667085}.scenario-library-dialog h2{font-size:22px;margin:0}.scenario-library-edit{display:grid;grid-gap:14px;gap:14px;padding:22px;background:#f7f9fb;border:1px solid #e1e5eb;border-radius:8px;margin-top:18px}.scenario-library-dialog [role=alert],.scenario-library-error{color:#a33131;padding:14px;background:#fff4f2;border-radius:6px;margin:16px 0}.scenario-variation-banner{padding:10px 22px;border-bottom:1px solid #dfe5ec;background:#edf3f8;color:#3c5268;font-size:13px}@media (max-width:700px){.scenario-library{padding:20px 16px 32px}.scenario-library-heading{align-items:flex-start;flex-direction:column;gap:12px}.scenario-library-grid{grid-template-columns:1fr}}