@tailwind base;@tailwind components;@tailwind utilities;:root{color-scheme:light dark;--bg: #f6f4f0;--bg-accent: rgba(17, 17, 17, .05);--surface: rgba(255, 255, 255, .92);--surface-strong: #ffffff;--surface-muted: rgba(248, 250, 252, .92);--topbar-bg: rgba(255, 255, 255, .94);--topbar-border: rgba(15, 23, 42, .08);--topbar-text: #111111;--topbar-muted: rgba(17, 17, 17, .58);--topbar-chip: rgba(17, 17, 17, .05);--topbar-chip-border: rgba(17, 17, 17, .08);--text: #111111;--muted: #6b7280;--muted-strong: #374151;--border: rgba(15, 23, 42, .08);--border-strong: rgba(15, 23, 42, .14);--primary: #111111;--primary-strong: #000000;--primary-soft: rgba(17, 17, 17, .08);--danger: #b42318;--danger-soft: #fef2f2;--success: #166534;--success-soft: #ecfdf5;--warning: #92400e;--warning-soft: #fffbeb;--shadow: 0 18px 50px rgba(15, 23, 42, .08);--shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);--radius-lg: 16px;--radius-md: 12px;--radius-sm: 8px}[data-theme=dark]{--bg: #0f0f10;--bg-accent: rgba(255, 255, 255, .04);--surface: rgba(24, 24, 27, .88);--surface-strong: #1f1f23;--surface-muted: rgba(39, 39, 42, .82);--topbar-bg: rgba(24, 24, 27, .96);--topbar-border: rgba(255, 255, 255, .08);--topbar-text: #f4f4f5;--topbar-muted: rgba(244, 244, 245, .62);--topbar-chip: rgba(255, 255, 255, .06);--topbar-chip-border: rgba(255, 255, 255, .08);--text: #f5f5f5;--muted: #a1a1aa;--muted-strong: #d4d4d8;--border: rgba(255, 255, 255, .12);--border-strong: rgba(255, 255, 255, .18);--primary: #111111;--primary-strong: #000000;--primary-soft: rgba(255, 255, 255, .08);--danger: #fb7185;--danger-soft: rgba(251, 113, 133, .12);--success: #4ade80;--success-soft: rgba(74, 222, 128, .12);--warning: #fbbf24;--warning-soft: rgba(251, 191, 36, .12);--shadow: 0 20px 44px rgba(0, 0, 0, .32);--shadow-soft: 0 10px 24px rgba(0, 0, 0, .22)}[data-theme=dark] .admin-nav{background:#ffffff0a;border:1px solid rgba(255,255,255,.08)}[data-theme=dark] .admin-nav__link:hover{background:#ffffff14}[data-theme=dark] .admin-nav__link.is-active{color:#111;background:linear-gradient(180deg,#fff,#f3f4f6);box-shadow:0 6px 14px #0000002e}[data-theme=dark] .hero-panel,[data-theme=dark] .surface-panel,[data-theme=dark] .card-panel,[data-theme=dark] .table-panel,[data-theme=dark] .modal-panel{background:#141418e6;border-color:#ffffff14}[data-theme=dark] .summary-card,[data-theme=dark] .field,[data-theme=dark] .timeline-item,[data-theme=dark] .report-day-row,[data-theme=dark] .chat-thread-card,[data-theme=dark] .chat-transcript-panel,[data-theme=dark] .chat-message,[data-theme=dark] .prompt-item,[data-theme=dark] .empty-state,[data-theme=dark] .widget-empty-card{background:#18181cf5;border-color:#ffffff14}[data-theme=dark] .chat-message--user{background:#fff;color:#111}[data-theme=dark] .chat-message--user .chat-message__bubble,[data-theme=dark] .chat-message--user .chat-message__meta strong{color:#111}[data-theme=dark] .chat-message--user .chat-message__meta,[data-theme=dark] .chat-message--user .chat-message__meta .muted{color:#111111a3}[data-theme=dark] .chat-message--bot{background:#18181cf5;color:var(--text)}[data-theme=dark] .chat-transcript-panel__header{border-color:#ffffff14}[data-theme=dark] .field input,[data-theme=dark] .field textarea,[data-theme=dark] .field select,[data-theme=dark] .panel-input,[data-theme=dark] .panel-textarea,[data-theme=dark] .chat-input textarea,[data-theme=dark] .importInput{background:#0c0c0ef0;color:var(--text);border-color:#ffffff1f}[data-theme=dark] .field input::placeholder,[data-theme=dark] .field textarea::placeholder,[data-theme=dark] .panel-input::placeholder,[data-theme=dark] .panel-textarea::placeholder,[data-theme=dark] .prompt-editor-panel .prompt-editor__input::placeholder,[data-theme=dark] .chat-input textarea::placeholder,[data-theme=dark] .importInput::placeholder{color:#a1a1aae6}[data-theme=dark] .prompt-editor-panel .prompt-editor__input{background:transparent;border-color:transparent}[data-theme=dark] .tabs{background:#ffffff0a;border-color:#ffffff14}[data-theme=dark] .tab-button{color:var(--muted)}[data-theme=dark] .tab-button.is-active{color:#111;background:linear-gradient(180deg,#fff,#e5e7eb)}[data-theme=dark] .tab-button--ops,[data-theme=dark] .tab-button--dev{background:#fbbf2414;border-color:#fbbf2424}[data-theme=dark] .tab-button--dev:hover,[data-theme=dark] .tab-button--dev.is-active,[data-theme=dark] .tab-button--ops:hover,[data-theme=dark] .tab-button--ops.is-active{color:#b45309;background:#fbbf2429}[data-theme=dark] .admin-table thead th{background:#ffffff0a}[data-theme=dark] .admin-table tbody tr:hover{background:#ffffff08}[data-theme=dark] .code-preview,[data-theme=dark] .code-block{background:linear-gradient(180deg,#09090b,#050507);color:#e5e7eb}[data-theme=dark] .status-banner{background:#18181cf0}[data-theme=dark] .button-pill--primary,[data-theme=dark] .mini-button--primary{background:linear-gradient(180deg,#fafafa,#d4d4d8);color:#111}[data-theme=dark] .button-pill,[data-theme=dark] .mini-button{background:#ffffff0a;border-color:#ffffff14;color:var(--text)}[data-theme=dark] .button-pill--ops,[data-theme=dark] .mini-button--ops{background:#fbbf241f;color:#fbbf24}html{font-size:15px}html,body,#root{min-height:100%;margin:0}body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;line-height:1.45;color:var(--text);background:radial-gradient(circle at top left,var(--bg-accent),transparent 28%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 76%,#ffffff 24%) 0%,var(--bg) 100%);transition:background-color .2s ease,color .2s ease}*{box-sizing:border-box}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.admin-app-shell{min-height:100vh;display:flex;flex-direction:column}.admin-topbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.9rem;align-items:center;padding:.9rem 1.1rem;margin:.4rem;background:var(--topbar-bg);color:var(--topbar-text);border:1px solid var(--topbar-border);border-radius:14px;box-shadow:0 12px 28px #0f172a14;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.admin-topbar__brand{display:flex;align-items:center;gap:.8rem;min-width:0}.admin-logo{width:2.2rem;height:2.2rem;border-radius:12px;background:linear-gradient(180deg,#fff,#f3f4f6);border:1px solid rgba(15,23,42,.08);display:grid;place-items:center;box-shadow:0 10px 24px #0f172a1f;flex:0 0 auto}.admin-logo img{width:1.35rem;height:1.35rem;object-fit:contain;display:block}.admin-eyebrow{margin:0 0 .12rem;font-size:.68rem;letter-spacing:0;text-transform:uppercase;color:var(--topbar-muted)}.admin-topbar__brand h1{margin:0;font-size:1rem;line-height:1.1;letter-spacing:0}.admin-nav{display:inline-flex;justify-content:center;gap:.35rem;padding:.2rem;background:#fff9;border:1px solid rgba(15,23,42,.06);border-radius:14px}.admin-nav__link{position:relative;display:inline-flex;align-items:center;gap:.45rem;padding:.62rem .9rem;border-radius:12px;color:var(--topbar-muted);font-size:.84rem;font-weight:600;transition:background .15s ease,color .15s ease,transform .15s ease}.admin-nav__link:hover{color:var(--topbar-text);background:#1111110f;transform:translateY(-1px)}.admin-nav__link.is-active{color:#111;background:linear-gradient(180deg,#fff,#f3f4f6);box-shadow:0 6px 14px #0f172a14}.admin-nav__badge{display:inline-grid;min-width:1.25rem;height:1.25rem;place-items:center;padding:0 .34rem;border-radius:999px;background:#dc2626;color:#fff;font-size:.7rem;font-weight:800;line-height:1;box-shadow:0 0 0 2px #dc26262e}.admin-nav__link--ops{background:#ea580c14;border:1px solid rgba(234,88,12,.16)}.admin-nav__link--ops:hover{color:#9a3412;background:#ea580c24}.admin-nav__link--ops.is-active{color:#9a3412;background:#ea580c2e;box-shadow:0 6px 14px #ea580c1f}.admin-topbar__user{display:flex;align-items:center;justify-content:flex-end;gap:.65rem}.admin-user-chip{display:flex;align-items:center;gap:.6rem;min-width:0;padding:.45rem .65rem;border-radius:14px;background:var(--topbar-chip);border:1px solid var(--topbar-chip-border)}.admin-user-chip__icon{width:1.75rem;height:1.75rem;border-radius:10px;background:#ffffff14;display:grid;place-items:center;flex:0 0 auto}.admin-user-chip__icon svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.admin-user-chip__label{display:block;font-size:.66rem;color:var(--topbar-muted);line-height:1}.admin-user-chip strong{display:block;font-size:.85rem;line-height:1.1;font-weight:600;max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.35rem;padding:.58rem .9rem;border-radius:11px;border:1px solid transparent;font-weight:600;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.admin-button:hover{transform:translateY(-1px)}.admin-button--danger{color:#fff;background:linear-gradient(180deg,#dc2626,#b91c1c);box-shadow:0 12px 24px #dc26262e}.theme-toggle{width:2.35rem;height:2.35rem;display:grid;place-items:center;border-radius:12px;border:1px solid var(--topbar-chip-border);background:var(--topbar-chip);color:var(--topbar-text);box-shadow:none}.theme-toggle svg{width:1.05rem;height:1.05rem;fill:currentColor}.admin-main{width:min(1760px,calc(100vw - .75rem));margin:0 auto;padding:0 0 1.75rem}.page-shell{display:grid;gap:.85rem}.invite-page{min-height:calc(100vh - 1.25rem);display:grid;place-items:center;padding:1.25rem 1rem 2rem}.invite-page__inner{width:min(100%,42rem);display:grid;gap:.85rem}.invite-page .hero-panel,.invite-page .card-panel{width:100%}.hero-panel,.surface-panel,.card-panel,.table-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.hero-panel{padding:1.1rem 1.15rem}.hero-title{margin:0;font-size:clamp(1.45rem,2.1vw,2.2rem);line-height:1.08;letter-spacing:0}.hero-copy{margin:.65rem 0 0;color:var(--muted);line-height:1.5}.hero-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.button-pill{display:inline-flex;align-items:center;justify-content:center;min-height:2.35rem;padding:.58rem .9rem;border-radius:11px;border:1px solid var(--border);background:var(--surface-strong);color:var(--text);font-weight:600;cursor:pointer}.button-pill--primary{border-color:transparent;background:linear-gradient(180deg,var(--primary) 0%,var(--primary-strong) 100%);color:#fff;box-shadow:0 12px 24px #0f172a29}.button-pill--ops{border-color:#ea580c38;background:#ea580c14;color:#9a3412}.button-pill--ops:hover{background:#ea580c24}.section-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:.85rem}.summary-list,.key-list{display:grid;gap:.65rem}.summary-list--spaced{margin-top:.75rem}.summary-list--columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.summary-list--four{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.summary-list--compact{gap:.55rem}.summary-card--compact{padding:.75rem .8rem}.summary-card--compact .summary-card__value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.92rem}.summary-card--compact .summary-card__note{display:none}.summary-card{padding:.9rem;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-strong)}.summary-card__label{display:block;margin-bottom:.3rem;font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:0}.summary-card__value{margin:0;font-size:.92rem;line-height:1.35;font-weight:600;color:var(--text);overflow-wrap:anywhere;word-break:break-word}.summary-card__note{margin:.3rem 0 0;color:var(--muted);line-height:1.4;font-size:.85rem}.code-preview{margin:0;padding:1rem;border-radius:var(--radius-md);border:1px solid var(--border);background:#0f172a;color:#e2e8f0;overflow:auto;white-space:pre-wrap;word-break:break-word;line-height:1.55}.code-preview code{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.8rem}.code-preview ::selection{background:#94a3b852;color:#fff}.code-preview code::selection{background:#94a3b852;color:#fff}.page-heading{margin:0;font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:0;color:var(--muted)}.page-title{margin:.15rem 0 0;font-size:1.32rem;line-height:1.18;letter-spacing:0}.page-subtitle{margin:.42rem 0 0;color:var(--muted);line-height:1.45}.bot-tab-actions{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.9rem}.bot-tab-actions__leading,.bot-tab-actions__main{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.bot-tab-actions__leading{min-width:0}.bot-tab-actions__main{margin-left:auto}.inline-actions{display:flex;flex-wrap:wrap;gap:.5rem}.inline-actions--spaced{margin-top:.65rem}.toggle-row{display:flex;align-items:center;gap:.55rem;color:var(--text);text-transform:none;font-size:.92rem;font-weight:500}.toggle-row__copy{display:grid;gap:.18rem}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.widget-field-groups{display:grid;gap:.95rem}.widget-field-group{display:grid;gap:.65rem}.widget-field-group__title{margin:0;color:var(--muted-strong);font-size:.7rem;font-weight:850;letter-spacing:0;text-transform:uppercase}.field--span-2{grid-column:1 / -1}.field{display:grid;gap:.45rem;padding:.8rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-strong);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.field:focus-within{border-color:#2563eb52;box-shadow:0 0 0 4px #2563eb14;background:var(--surface-muted)}.field label,.field-title{font-size:.7rem;text-transform:uppercase;color:var(--muted);letter-spacing:0;font-weight:700}.field-label-row{display:flex;justify-content:space-between;gap:.75rem;align-items:center}.field input,.field textarea,.field select,.panel-input,.panel-textarea{width:100%;border:1px solid var(--border-strong);border-radius:11px;background:var(--surface-muted);color:var(--text);padding:.7rem .85rem;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.range-control,.field input[type=checkbox],.toggle-row input[type=checkbox]{accent-color:var(--primary-strong)}.range-control:focus-visible{outline:none}.field input:focus,.field textarea:focus,.field select:focus,.panel-input:focus,.panel-textarea:focus{border-color:#2563eb80;box-shadow:0 0 0 4px #2563eb1f}.field textarea,.panel-textarea{min-height:7rem;resize:vertical;line-height:1.4}.field-control-stack{display:grid;gap:.55rem}.slider-control{width:100%;accent-color:var(--primary-strong)}.field-control-row{display:flex;align-items:center;gap:.6rem;min-width:0;flex-wrap:wrap}.color-picker{width:100%;height:2.7rem;padding:.2rem;border:1px solid var(--border-strong);border-radius:11px;background:var(--surface-muted);flex:1 1 100%}.color-picker::-webkit-color-swatch-wrapper{padding:0}.color-picker::-webkit-color-swatch{border:0;border-radius:8px}.field-readout{min-width:0;display:inline-flex;flex:1 1 0;align-items:center;padding:.55rem .8rem;border-radius:11px;border:1px solid var(--border);background:var(--surface-muted);color:var(--text);font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.8rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-action-button{min-height:2.35rem;padding-inline:.8rem;flex:0 0 auto}.field-control-stack .field-control-row .field-readout{min-width:0}.preview-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.preview-meta{margin:.25rem 0 0;color:var(--muted);font-size:.76rem;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;line-height:1.35}.widget-preview-frame{width:100%;height:44rem;border:1px solid var(--border);border-radius:var(--radius-md);background:#eef2f7}.field-helper{color:var(--muted);font-size:.76rem;line-height:1.35}.field-inline-meta{display:flex;justify-content:space-between;gap:.75rem;margin-top:.35rem}.field-helper--warning{color:var(--warning)}.field-helper--danger{color:var(--danger)}.config-section{gap:.85rem}.chip-row{display:flex;flex-wrap:wrap;gap:.5rem}.chip{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;border-radius:12px;background:var(--primary-soft);color:var(--primary-strong);font-size:.82rem;font-weight:600}.tabs{display:flex;gap:.35rem;flex-wrap:nowrap;overflow-x:auto;align-items:stretch;padding:.3rem;background:var(--surface);border:1px solid var(--border);border-radius:13px}.tabs .tab-button:focus-visible{outline:2px solid rgba(37,99,235,.4);outline-offset:2px}.tab-button{display:inline-flex;align-items:center;justify-content:center;height:2.4rem;padding:.5rem .85rem;border-radius:12px;color:var(--muted-strong);background:transparent;border:1px solid transparent;font-weight:600;white-space:nowrap;line-height:1;flex:0 0 auto;font-size:.9rem}.tab-button.is-active{background:var(--surface-strong);color:var(--text);border-color:var(--border);box-shadow:inset 0 0 0 1px #0f172a05}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}.toolbar .left,.toolbar .right{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.data-grid{display:grid;gap:.65rem}.stack{display:grid;gap:.85rem}.card-panel{padding:.9rem}.table-panel{overflow:hidden}.table-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem .9rem 0}.table-meta{color:var(--muted);font-size:.85rem}.table-wrap{overflow-x:auto}table.admin-table{width:100%;border-collapse:collapse;min-width:760px}.admin-table thead th{padding:.8rem .9rem;text-align:left;font-size:.68rem;text-transform:uppercase;letter-spacing:0;color:var(--muted);background:var(--surface-muted);border-bottom:1px solid var(--border)}.admin-table tbody td{padding:.85rem .9rem;vertical-align:top;border-bottom:1px solid rgba(148,163,184,.12)}.admin-table tbody tr.is-selected-row{background:#0f11150a}.admin-table tbody tr.admin-table-group-row{background:var(--surface-muted)}.admin-table tbody tr.admin-table-group-row td{color:var(--muted-strong);font-weight:800;text-transform:uppercase;font-size:.72rem;letter-spacing:.02em}.status-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .65rem;border-radius:12px;font-size:.78rem;font-weight:700}.status-badge--success{background:var(--success-soft);color:var(--success)}.status-badge--warning{background:var(--warning-soft);color:var(--warning)}.status-badge--danger{background:var(--danger-soft);color:var(--danger)}.status-badge--info{background:var(--primary-soft);color:var(--primary-strong)}.status-badge--neutral{background:var(--surface-muted);color:var(--muted-strong)}.muted{color:var(--muted)}.subtle{color:var(--muted);font-size:.9rem;line-height:1.55}.kb-error{margin-top:.35rem}.code-block{display:block;padding:.85rem .95rem;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);color:var(--text);font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.82rem;word-break:break-all}.empty-state{padding:1rem;border:1px dashed rgba(100,116,139,.35);border-radius:var(--radius-md);background:var(--surface-muted);color:var(--muted)}.empty-state__title{display:block;margin-bottom:.35rem;color:var(--text);font-size:.95rem;font-weight:700}.empty-state__copy{margin:0;line-height:1.5}.empty-state--danger{color:var(--danger)}.split-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:.85rem;align-items:start}.prompt-versions-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr)}.chat-visibility-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:.9rem;align-items:stretch;min-height:min(34rem,calc(100svh - 20rem));max-height:calc(100svh - 20rem);overflow:hidden}.chat-visibility-controls{display:grid;grid-template-columns:minmax(18rem,1fr) minmax(10rem,.35fr) minmax(14rem,.5fr) auto;gap:.75rem;align-items:stretch}.chat-visibility-search input{min-height:2.7rem}.chat-visibility-controls__meta{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.hitl-status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.hitl-controls{margin-bottom:0}.report-controls .summary-card--compact{min-height:5rem}.hitl-workspace{grid-template-columns:minmax(18rem,.72fr) minmax(0,1.28fr);height:100%;min-height:0;max-height:none}.hitl-workspace .chat-thread-list{min-height:0;overflow:auto;padding-right:.2rem;align-content:start}.hitl-case-card{gap:.5rem;padding:.82rem}.hitl-case-card .chat-thread-card__title{word-break:normal}.hitl-case-card .chat-thread-card__preview{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.hitl-detail-stack{grid-template-rows:auto minmax(0,1fr) auto;gap:.75rem;overflow:hidden}.hitl-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}.hitl-case-meta{display:flex;flex-wrap:wrap;flex:1 1 auto;gap:.5rem;min-width:0}.hitl-case-meta span{max-width:min(100%,18rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.45rem .65rem;border-radius:999px;background:var(--surface-strong);border:1px solid var(--border);color:var(--muted);font-size:.78rem;font-weight:650}.hitl-thread-actions{align-items:center;flex:0 0 auto;justify-content:flex-end;margin-left:auto}.hitl-transcript-panel{min-height:0}.hitl-response-panel{display:grid;grid-template-columns:1fr;gap:.7rem;min-height:0;padding:1rem;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-soft)}.hitl-composer-label{color:var(--muted);font-size:.76rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.hitl-suggestion-row{gap:.45rem}.hitl-suggestion-row .mini-button{min-height:2.3rem;padding:0 .75rem}.hitl-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:.6rem}.hitl-composer textarea{width:100%;min-height:5.6rem;max-height:10rem;resize:vertical;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface-strong);color:var(--text);padding:.85rem .9rem;outline:none}.hitl-composer textarea:focus{border-color:var(--text);box-shadow:0 0 0 3px #11111114}.hitl-composer-actions{display:grid;grid-template-rows:1fr 1fr;gap:.6rem}.hitl-resolve-button{width:5.2rem;min-width:5.2rem;min-height:0;padding:0;border-radius:14px}.hitl-send-button{width:5.2rem;min-width:5.2rem;height:auto;min-height:0;padding:0;border-radius:14px;box-shadow:0 12px 26px #0f172a2e}.hitl-send-button svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.provider-picker{position:relative;width:100%}.provider-picker__trigger,.provider-picker__option{width:100%;min-height:2.8rem;display:inline-flex;align-items:center;justify-content:space-between;gap:.6rem;padding:0 .75rem;border-radius:14px;border:1px solid var(--border);background:var(--surface-strong);color:var(--text);cursor:pointer}.provider-picker__trigger:hover,.provider-picker__option:hover,.provider-picker__option.is-selected{border-color:var(--border-strong);background:var(--surface-muted)}.provider-picker__chevron{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);flex:0 0 auto}.provider-picker__menu{position:absolute;top:calc(100% + .35rem);left:0;right:0;z-index:20;display:grid;gap:.3rem;padding:.35rem;border:1px solid var(--border);border-radius:16px;background:var(--surface-strong);box-shadow:var(--shadow-soft)}.provider-picker__option{justify-content:flex-start;border-radius:12px;border-color:transparent;box-shadow:none}.provider-logo{min-width:0;display:inline-flex;align-items:center;gap:.5rem;color:inherit;font-size:.9rem;font-weight:750}.provider-logo img{width:1.25rem;height:1.25rem;object-fit:contain;flex:0 0 auto}.report-grid{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);align-items:start}.assistant-home-search{display:grid;gap:.75rem}.assistant-home-controls{display:grid;grid-template-columns:minmax(20rem,1fr) minmax(22rem,.8fr);gap:.75rem;align-items:stretch;padding:0 .9rem .9rem}.assistant-home-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.access-state-icon{width:2.2rem;height:2.2rem;display:grid;place-items:center;border-radius:999px;border:1px solid var(--border);background:var(--surface-strong);color:var(--muted);flex:0 0 auto}.access-state-icon svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.access-state-icon--active{border-color:#16653438;background:var(--success-soft);color:var(--success)}.access-state-icon--pending{border-color:#92400e38;background:var(--warning-soft);color:var(--warning)}.access-state-icon--topbar{width:auto;min-width:2.35rem;height:2.35rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:0 .65rem;border-radius:12px;background:var(--topbar-chip);border-color:var(--topbar-chip-border);color:var(--topbar-text);font-size:.78rem;font-weight:700}.access-state-icon--topbar.access-state-icon--active{background:#1665341f;border-color:#16653433;color:#166534}.access-state-icon--topbar.access-state-icon--pending{background:#92400e1f;border-color:#92400e33;color:#92400e}.access-state-icon--topbar svg{width:.95rem;height:.95rem}.assistant-search-field{display:grid;align-content:center;gap:.35rem;min-height:4.2rem;padding:.65rem .75rem}.assistant-search-field input{min-height:2.35rem;font-size:1rem}.assistant-health-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;padding:0}.assistant-health-pill{min-height:4.2rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .85rem;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-strong);color:var(--muted-strong);cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}.assistant-health-pill:hover,.assistant-health-pill.is-active{border-color:var(--border-strong);background:var(--surface-muted);transform:translateY(-1px)}.assistant-health-pill span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;font-weight:700}.assistant-health-pill strong{color:var(--text);font-size:1.1rem}.assistant-home-list{display:grid;gap:.9rem}.assistant-home-list__body{margin:0 .9rem .9rem;min-width:0}.assistant-chat-page .table-panel{display:grid;gap:.9rem;min-height:calc(100vh - 7.5rem)}.assistant-chat-frame{width:100%;min-height:calc(100vh - 12rem);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted)}.report-controls{display:grid;gap:1rem;margin-bottom:1rem}.report-controls__header{padding:0}.report-filter-grid--inline{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end}.report-filter-grid--inline .field{padding:.75rem}.report-filter-grid--inline .field input,.report-filter-grid--inline .field select{min-height:2.7rem}.report-filter-grid--compact{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.report-filter-grid--compact .field{padding:.75rem}.report-filter-grid--compact .field input,.report-filter-grid--compact .field select{min-height:2.7rem}.report-overview-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(26rem,.95fr);gap:1rem}.report-bi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.report-kpi-card,.report-bi-card{min-height:7rem}.report-metric-list{display:flex;flex-wrap:wrap;gap:.45rem .75rem;color:var(--muted);font-size:.84rem;line-height:1.4}.report-metric-list strong{color:var(--text);font-weight:800}.report-timeline{display:grid;gap:.8rem}.report-timeline--compact{max-height:24rem;overflow:auto;padding-right:.15rem}.knowledge-signal-list{max-height:32rem;overflow-y:auto;padding-right:.25rem}.knowledge-review-panel{padding:1rem;border-radius:var(--radius-md);border:1px solid var(--border);background:linear-gradient(180deg,#fffffff5,#f8fafceb)}.knowledge-review-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(100,116,139,.14)}.knowledge-review-panel__title-block{min-width:0}.knowledge-review-panel__summary{margin:.45rem 0 0;color:var(--muted);line-height:1.5;max-width:64ch}.knowledge-review-panel__badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.knowledge-review-panel__examples{display:flex;flex-direction:column;gap:.75rem}.knowledge-review-panel__examples-header{padding-inline:0}.knowledge-review-example{padding:.9rem 1rem;border-radius:var(--radius-md);border:1px solid rgba(100,116,139,.16);background:#ffffffbf}.knowledge-review-example__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.85rem}.knowledge-review-example__bot{margin:.2rem 0 0;font-size:1rem;line-height:1.35}.knowledge-review-example__badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.knowledge-review-example__messages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.knowledge-review-example__message{min-width:0}.knowledge-review-example__message p{margin:.25rem 0 0;line-height:1.55;font-size:.96rem;color:var(--text)}.knowledge-review-example__footer{display:flex;flex-wrap:wrap;gap:.5rem .75rem;margin-top:.85rem;color:var(--muted);font-size:.82rem;line-height:1.4}.report-day-row{display:grid;gap:.5rem;padding:.9rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-strong)}.report-day-row__top,.report-day-row__meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem;align-items:center;font-size:.9rem}.report-bar-track{display:grid;gap:.35rem}.report-bar{min-height:.7rem;border-radius:999px}.report-bar--messages{background:linear-gradient(90deg,#111111eb,#1111116b)}.report-bar--conversations{background:linear-gradient(90deg,#6b7280eb,#6b72806b)}.report-filter-grid{display:grid;gap:.75rem}.report-preview-cell{max-width:none;color:var(--muted);line-height:1.5;word-break:break-word;min-width:0}.report-source-cell{max-width:none;color:var(--muted);line-height:1.5;word-break:break-word}.report-table-shell .admin-table{table-layout:fixed;min-width:0}.report-table-shell--bots .admin-table th:first-child,.report-table-shell--bots .admin-table td:first-child{width:18%}.report-table-shell--bots .admin-table th:nth-child(2),.report-table-shell--bots .admin-table td:nth-child(2){width:10%}.report-table-shell--bots .admin-table th:nth-child(3),.report-table-shell--bots .admin-table td:nth-child(3){width:20%}.report-table-shell--bots .admin-table th:nth-child(4),.report-table-shell--bots .admin-table td:nth-child(4){width:18%}.report-table-shell--bots .admin-table th:nth-child(5),.report-table-shell--bots .admin-table td:nth-child(5){width:18%}.report-table-shell--bots .admin-table th:nth-child(6),.report-table-shell--bots .admin-table td:nth-child(6){width:10%}.report-table-shell--conversations .admin-table th:first-child,.report-table-shell--conversations .admin-table td:first-child{width:16%}.report-table-shell--conversations .admin-table th:nth-child(2),.report-table-shell--conversations .admin-table td:nth-child(2){width:16%}.report-table-shell--conversations .admin-table th:nth-child(3),.report-table-shell--conversations .admin-table td:nth-child(3){width:16%}.report-table-shell--conversations .admin-table th:nth-child(4),.report-table-shell--conversations .admin-table td:nth-child(4){width:8%}.report-table-shell--conversations .admin-table th:nth-child(5),.report-table-shell--conversations .admin-table td:nth-child(5){width:8%}.report-table-shell--conversations .admin-table th:nth-child(6),.report-table-shell--conversations .admin-table td:nth-child(6){width:34%}.card-panel--ops{border-color:#ea580c38;background:linear-gradient(180deg,rgba(234,88,12,.08),transparent 42%)}.card-panel--ops-full{grid-column:1 / -1}.chat-thread-panel,.chat-detail-panel{display:grid;grid-template-rows:auto minmax(0,1fr);gap:.85rem;min-width:0;min-height:0}.chat-thread-list{display:grid;gap:.75rem}.chat-thread-group-list{display:grid;gap:.9rem;min-height:0;overflow:auto;padding-right:.2rem;align-content:start}.chat-thread-group{display:grid;gap:.75rem}.chat-thread-group__header{align-items:flex-start}.chat-thread-group__actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:flex-end}.chat-thread-card{display:grid;gap:.65rem;width:100%;padding:.95rem;text-align:left;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-strong);color:var(--text);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background .15s ease}.chat-thread-card:hover{transform:translateY(-1px);border-color:#2563eb3d;box-shadow:var(--shadow-soft)}.chat-thread-card:focus-visible{outline:2px solid rgba(37,99,235,.42);outline-offset:2px}.chat-thread-card.is-active{border-color:#2563eb57;background:#2563eb0a}.chat-thread-card__top{display:grid;gap:.5rem}.chat-thread-card__meta{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.chat-thread-card__title{display:block;font-size:.98rem;line-height:1.3;word-break:break-all}.chat-thread-card__preview{margin:0;color:var(--muted);line-height:1.5;font-size:.9rem}.chat-thread-card__footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.45rem;color:var(--muted);font-size:.82rem}.chat-thread-card__footer-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:flex-end}.chat-detail-stack{display:grid;grid-template-rows:auto minmax(0,1fr);gap:.9rem;min-height:0;overflow:hidden}.chat-transcript-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;height:100%;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-md);background:linear-gradient(180deg,#f8fafcf5,#ffffffeb);box-shadow:var(--shadow-soft)}.chat-transcript-panel__header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem .85rem;border-bottom:1px solid var(--border);color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase}.chat-message-stream{display:grid;gap:.7rem;min-height:0;overflow:auto;padding:.9rem;align-content:start}.chat-message{display:grid;gap:.35rem;padding:.72rem .82rem;max-width:min(100%,34rem);border-radius:16px;border:1px solid transparent;background:var(--surface-strong);color:var(--text);min-width:0}.chat-message--user{justify-self:end;margin-left:2.5rem;background:var(--primary-strong);color:#fff}.chat-message--user .chat-message__bubble,.chat-message--user .chat-message__meta,.chat-message--user .chat-message__meta strong{color:#fff}.chat-message--bot{justify-self:start;margin-right:2.5rem;border-color:var(--border);background:var(--surface-strong);color:var(--text)}.chat-message--human{margin-right:2rem;border-color:#0891b22e;background:#0891b20d}.chat-message__meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.45rem;color:var(--muted);font-size:.78rem;min-width:0;max-width:100%}.chat-message__meta strong{color:inherit;font-size:.84rem}.chat-message__bubble{margin:0;overflow-wrap:anywhere;word-break:break-word;line-height:1.55;color:inherit;min-width:0;max-width:100%}.chat-message__bubble>:first-child{margin-top:0}.chat-message__bubble>:last-child{margin-bottom:0}.chat-message__bubble p,.chat-message__bubble ul,.chat-message__bubble ol,.chat-message__bubble pre,.chat-message__bubble table{margin:.45rem 0}.chat-message__bubble ul,.chat-message__bubble ol{padding-left:1.2rem}.chat-message__bubble code{padding:.1rem .25rem;border-radius:5px;background:#0f172a14;font-size:.92em}.chat-message__bubble pre{overflow:auto;padding:.65rem;border-radius:10px;background:#0f172a14}.chat-message__bubble pre code{padding:0;background:transparent}.chat-message__bubble table{width:100%;border-collapse:collapse;font-size:.92em}.chat-message__bubble th,.chat-message__bubble td{padding:.35rem .45rem;border:1px solid rgba(100,116,139,.22);text-align:left}.chat-message--user .chat-message__bubble code,.chat-message--user .chat-message__bubble pre{background:#ffffff29}[data-theme=dark] .chat-message--user .chat-message__bubble code,[data-theme=dark] .chat-message--user .chat-message__bubble pre{background:#11111114}.bots-layout{display:grid;gap:1rem}.prompt-list{display:grid;gap:.75rem}.prompt-item{padding:.88rem;background:var(--surface-strong);border:1px solid var(--border);border-radius:12px;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,transform .15s ease}.prompt-item:hover{transform:translateY(-1px);border-color:var(--border-strong);box-shadow:var(--shadow-soft)}.prompt-item--featured{padding:1rem;background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 1px #2563eb14}.prompt-item--compact{padding:.75rem}.bot-card__title{margin:.45rem 0 0;font-size:1rem;line-height:1.2;letter-spacing:0}.bot-card__description{margin-top:.35rem}.prompt-item__body{padding:.8rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted)}.prompt-item--featured .prompt-item__body{padding:.9rem}.prompt-item--compact .prompt-item__body{padding:.68rem .75rem}.prompt-item__snippet{margin:0;white-space:pre-wrap;word-break:break-word;line-height:1.68;max-height:14rem;overflow:auto;color:var(--text);font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.88rem}.prompt-item--featured .prompt-item__snippet{max-height:28rem}.prompt-item--compact .prompt-item__snippet{max-height:9rem;font-size:.92rem}.prompt-item__meta-line{margin-top:.65rem;font-size:.84rem}.prompt-item__top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.75rem}.prompt-item__top .mini-button{flex:0 0 auto}.prompt-item__top--interactive:focus-visible{outline:2px solid var(--border-strong);outline-offset:6px;border-radius:10px}.prompt-item__meta{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.prompt-editor-panel{gap:.95rem}.prompt-editor__header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem}.prompt-editor__status{display:grid;gap:.35rem;justify-items:end}.prompt-editor__meta,.prompt-editor__context-line{color:var(--muted);font-size:.84rem;line-height:1.35}.prompt-editor__frame{display:grid;grid-template-columns:3.25rem minmax(0,1fr);min-height:30rem;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,#0e0e10f5,#0a0a0cfa);box-shadow:inset 0 1px #ffffff08,var(--shadow-soft)}.prompt-editor__gutter{padding:.95rem .55rem .95rem .9rem;border-right:1px solid rgba(255,255,255,.06);background:#ffffff05;color:#a1a1aadb;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.8rem;line-height:1.68;text-align:right;-webkit-user-select:none;user-select:none;overflow:hidden}.prompt-editor__gutter span{display:block;height:1.68em}.prompt-editor-panel .prompt-editor__input{min-height:30rem;resize:vertical;border:0;border-radius:0;background:transparent;box-shadow:none;padding:.95rem 1rem .95rem .9rem;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.92rem;line-height:1.68;letter-spacing:0;color:#f5f5f5;caret-color:#f5f5f5;-webkit-text-fill-color:#f5f5f5}.prompt-editor-panel .prompt-editor__input::selection{background:#ffffff47;color:#fff;-webkit-text-fill-color:#ffffff}.prompt-editor-panel .prompt-editor__input:focus{box-shadow:none}.prompt-editor-panel .prompt-editor__input::placeholder{color:#ffffff6b;opacity:1;font-style:normal}.prompt-editor__footer-meta{margin-top:-.1rem}.prompt-item__chevron{width:.7rem;height:.7rem;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin-top:.15rem;transition:transform .15s ease,border-color .15s ease}.prompt-item__chevron.is-open{transform:rotate(225deg);margin-top:.35rem}.prompt-item__top--interactive:hover .prompt-item__chevron,.prompt-item__top--interactive:focus-visible .prompt-item__chevron{border-color:var(--text)}.prompt-content{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.55;color:inherit;min-width:0;max-width:100%}.chat-message__bubble a,.chat-message__bubble strong{color:inherit}.chat-message__bubble a{text-decoration:underline;text-underline-offset:.12em}.chat-message--user .chat-message__meta,.chat-message--user .chat-message__meta .muted{color:#ffffffb8}.chat-message--user .chat-message__meta strong{color:#fff}.prompt-version-table th:first-child,.prompt-version-table td:first-child{width:42%}.prompt-version-table th:nth-child(3),.prompt-version-table td:nth-child(3){width:10rem}.prompt-active-check{display:inline-flex;align-items:center;gap:.45rem;color:var(--muted-strong);font-weight:600;white-space:nowrap}.prompt-active-check input{width:1rem;height:1rem;accent-color:var(--primary-strong)}.workflow-version-table th:first-child,.workflow-version-table td:first-child{width:34%}.workflow-version-table th:last-child,.workflow-version-table td:last-child{width:13rem}.workflow-version-table .inline-actions{flex-wrap:nowrap}.kb-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.65rem;align-items:center}.kb-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.status-banner{padding:.8rem .9rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted);color:var(--muted)}.status-banner--neutral{background:var(--surface-muted);color:var(--muted)}.status-banner--success{border-color:#15803d29;background:#15803d14;color:#166534}.status-banner--warning{border-color:#d9770629;background:#d9770614;color:#92400e}.status-banner--danger{border-color:#b91c1c29;background:#b91c1c14;color:#991b1b}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;padding:1rem;z-index:40}.modal-panel{width:min(100%,34rem);max-height:min(90vh,42rem);overflow:auto;padding:1rem;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface-strong);box-shadow:var(--shadow)}.kb-preview-modal{width:min(86vw,54rem);max-height:80vh;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.85rem}.kb-preview-modal__header{padding:0}.kb-preview-frame{width:100%;height:min(58vh,34rem);min-height:22rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted)}.delete-confirm-modal{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.9rem;align-items:start;width:min(100%,30rem)}.delete-confirm-modal__icon{width:2.65rem;height:2.65rem;display:grid;place-items:center;border-radius:999px;background:var(--danger-soft);color:var(--danger)}.delete-confirm-modal__icon svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.delete-confirm-modal__copy{display:grid;gap:.35rem;min-width:0}.delete-confirm-modal__copy p{margin:0;color:var(--muted)}.delete-confirm-modal__actions{grid-column:1 / -1;justify-content:flex-end;padding-top:.2rem}.prompt-delete-modal{width:min(100%,40rem);display:grid;gap:.85rem}.prompt-delete-modal__summary{gap:.55rem}.prompt-delete-modal__preview{padding:.85rem;border:1px solid var(--border);border-radius:16px;background:var(--surface-muted)}.prompt-delete-modal__code{margin:0;padding:0;max-height:14rem;overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.82rem;line-height:1.55;color:var(--text)}.prompt-delete-modal__actions{justify-content:flex-end}.kb-status-stack{display:grid;gap:.4rem}.kb-file-name{font-weight:700;color:var(--text);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kb-file-cell{display:grid;gap:.15rem;min-width:0}.kb-file-meta{font-size:.76rem;font-style:italic;color:var(--muted);line-height:1.25;min-width:0}.kb-source-meta{display:block;font-style:normal;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kb-row-actions{align-items:center}.prompt-editor-panel{position:sticky;top:5.25rem;align-self:start}.panel-textarea--prompt{min-height:26rem;border-radius:14px;background:var(--surface-strong);box-shadow:inset 0 1px #ffffff73}.mini-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.2rem;padding:.55rem .85rem;border-radius:12px;background:var(--surface-strong);color:var(--text);border:1px solid var(--border);font-weight:600;cursor:pointer}.mini-button--primary{border-color:transparent;background:linear-gradient(180deg,var(--primary) 0%,var(--primary-strong) 100%);color:#fff;box-shadow:0 12px 24px #0f172a29}.mini-button--ops{border-color:#ea580c38;background:#ea580c14;color:#9a3412}.mini-button--ops:hover{background:#ea580c24}.mini-button--danger{border-color:#b4231829;background:var(--surface-strong);color:var(--danger)}.sidebar{display:grid;gap:1rem;align-self:start}.hero-figure{display:grid;gap:.9rem}.timeline{display:grid;gap:.55rem}.timeline--spaced{margin-top:.7rem}.timeline-item{display:flex;gap:.65rem;align-items:flex-start;padding:.85rem;border-radius:12px;border:1px solid var(--border);background:var(--surface-strong)}.timeline-item__dot{width:.75rem;height:.75rem;border-radius:999px;margin-top:.35rem;flex:0 0 auto;background:var(--primary);box-shadow:0 0 0 4px #2563eb1f}.timeline-item__dot.is-muted{background:#94a3b8;box-shadow:0 0 0 4px #94a3b824}.timeline-item__dot.is-success{background:#16a34a;box-shadow:0 0 0 4px #16a34a24}.timeline-item__dot.is-warning{background:#d97706;box-shadow:0 0 0 4px #d9770624}.timeline-item strong{display:block;margin-bottom:.15rem}.timeline-item p{margin:0;color:var(--muted);line-height:1.45;font-size:.85rem}.inline-code{padding:.2rem .45rem;border-radius:12px;background:#2563eb14;color:var(--primary-strong);font-size:.8rem;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}@media (max-width: 1024px){.admin-topbar{grid-template-columns:1fr;justify-items:stretch}.admin-nav{justify-content:flex-start;overflow-x:auto}.admin-topbar__user{justify-content:space-between}.section-grid,.split-layout,.chat-visibility-layout,.chat-visibility-controls,.report-grid,.field-grid{grid-template-columns:1fr}.chat-visibility-layout{max-height:none;overflow:visible}.chat-thread-panel,.chat-detail-panel,.chat-detail-stack{overflow:visible}.chat-thread-group-list{overflow:visible;padding-right:0}.chat-transcript-panel{min-height:22rem}.hitl-status-strip,.hitl-response-panel,.assistant-home-controls{grid-template-columns:1fr}.hitl-workspace{max-height:none}.hitl-workspace .chat-thread-list,.hitl-detail-stack{overflow:visible}.summary-list--columns{grid-template-columns:1fr}.summary-list--four{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-grid--inline{grid-template-columns:1fr}.prompt-editor-panel{position:static;top:auto}.prompt-versions-layout{grid-template-columns:1fr}.admin-main{width:min(1680px,calc(100vw - 1rem))}}@media (max-width: 640px){.admin-topbar{margin:.35rem;padding:.85rem}.admin-main{width:calc(100vw - .5rem)}.hero-panel,.surface-panel,.card-panel,.table-panel{border-radius:16px}.table-header,.card-panel,.hero-panel{padding:.85rem}.admin-user-chip strong{max-width:9rem}.chat-message--user,.chat-message--bot{margin-left:0;margin-right:0}.summary-list--four{grid-template-columns:1fr}}:root{color-scheme:light dark;--bg: #efede8;--bg-accent: rgba(17, 17, 17, .035);--surface: rgba(255, 255, 255, .9);--surface-strong: #ffffff;--surface-muted: rgba(248, 250, 252, .96);--topbar-bg: rgba(9, 9, 10, .92);--topbar-border: rgba(255, 255, 255, .08);--topbar-text: #fafafa;--topbar-muted: rgba(250, 250, 250, .68);--topbar-chip: rgba(255, 255, 255, .08);--topbar-chip-border: rgba(255, 255, 255, .1);--text: #0f1115;--muted: #5f6672;--muted-strong: #2f3640;--border: rgba(15, 23, 42, .08);--border-strong: rgba(15, 23, 42, .15);--primary: #0f1115;--primary-strong: #050506;--primary-soft: rgba(15, 17, 21, .08);--danger: #b42318;--danger-soft: #fef2f2;--success: #166534;--success-soft: #ecfdf5;--warning: #a16207;--warning-soft: #fefce8;--shadow: 0 30px 90px rgba(15, 23, 42, .11);--shadow-soft: 0 16px 40px rgba(15, 23, 42, .07);--radius-lg: 22px;--radius-md: 16px;--radius-sm: 12px}[data-theme=dark]{--bg: #050507;--bg-accent: rgba(255, 255, 255, .03);--surface: rgba(18, 18, 21, .88);--surface-strong: #1b1b20;--surface-muted: rgba(32, 32, 38, .9);--topbar-bg: rgba(8, 8, 9, .94);--topbar-border: rgba(255, 255, 255, .08);--topbar-text: #fafafa;--topbar-muted: rgba(250, 250, 250, .66);--topbar-chip: rgba(255, 255, 255, .07);--topbar-chip-border: rgba(255, 255, 255, .08);--text: #f5f5f5;--muted: #a1a1aa;--muted-strong: #e4e4e7;--border: rgba(255, 255, 255, .1);--border-strong: rgba(255, 255, 255, .16);--primary: #f5f5f5;--primary-strong: #ffffff;--primary-soft: rgba(255, 255, 255, .08);--danger: #fb7185;--danger-soft: rgba(251, 113, 133, .12);--success: #4ade80;--success-soft: rgba(74, 222, 128, .12);--warning: #fbbf24;--warning-soft: rgba(251, 191, 36, .12);--shadow: 0 28px 72px rgba(0, 0, 0, .42);--shadow-soft: 0 16px 38px rgba(0, 0, 0, .26)}html{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:radial-gradient(circle at top center,rgba(255,255,255,.55),transparent 30%),radial-gradient(circle at 20% 0%,var(--bg-accent),transparent 22%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 88%,#ffffff 12%) 0%,var(--bg) 100%)}::selection{background:#0f111529;color:var(--text)}a{transition:color .15s ease,opacity .15s ease}button,input,textarea,select{transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease,color .15s ease,transform .15s ease}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.chat-thread-card:focus-visible,.tab-button:focus-visible,.mini-button:focus-visible,.button-pill:focus-visible,.admin-nav__link:focus-visible,.theme-toggle:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 72%,transparent);outline-offset:2px}.admin-app-shell{position:relative;isolation:isolate}.admin-topbar{margin:.75rem;padding:1rem 1.1rem;border-radius:20px;border:1px solid var(--topbar-border);background:linear-gradient(180deg,#0c0c0ef5,#070708e6);box-shadow:0 18px 54px #0f172a2e;-webkit-backdrop-filter:blur(20px) saturate(1.15);backdrop-filter:blur(20px) saturate(1.15)}.admin-topbar__brand{gap:.9rem}.admin-logo{width:2.45rem;height:2.45rem;border-radius:15px;border-color:#ffffff14;background:linear-gradient(180deg,#fffffffa,#f4f4f5eb);box-shadow:0 14px 30px #0f172a38}.admin-logo img{width:1.42rem;height:1.42rem}.admin-eyebrow{font-size:.66rem;letter-spacing:.02em}.admin-topbar__brand h1{font-size:1.03rem;font-weight:650}.admin-nav{padding:.3rem;border-radius:14px;gap:.3rem;background:#ffffff0f;border-color:#ffffff14;overflow:auto;scrollbar-width:none}.admin-nav::-webkit-scrollbar{display:none}.admin-nav__link{border-radius:10px;padding:.64rem .95rem;color:var(--topbar-muted);background:transparent}.admin-nav__link:hover{color:var(--topbar-text);background:#ffffff14}.admin-nav__link.is-active{color:#111;background:linear-gradient(180deg,#fff,#eceef2);box-shadow:0 10px 24px #00000029}.admin-nav__link--ops{background:#fbbf2414;border-color:#fbbf2424}.admin-nav__link--ops:hover,.admin-nav__link--ops.is-active{color:#b45309;background:#fbbf2429}.admin-topbar__user{gap:.7rem}.admin-user-chip{padding:.48rem .7rem;border-radius:14px;background:#ffffff0f;border:1px solid rgba(255,255,255,.08)}.admin-user-chip__icon{width:1.85rem;height:1.85rem;border-radius:10px}.admin-user-chip__label{font-size:.62rem}.admin-user-chip strong{font-size:.86rem}.admin-button,.button-pill,.mini-button,.tab-button,.theme-toggle{border-radius:12px}.admin-button:hover,.button-pill:hover,.mini-button:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}.admin-button:active,.button-pill:active,.mini-button:active{transform:translateY(0) scale(.98);box-shadow:0 6px 16px #0f172a1f}.admin-button--danger{box-shadow:0 16px 30px #b423182e}.theme-toggle{border-color:#ffffff14;background:#ffffff14}.admin-main{width:min(1760px,calc(100vw - .75rem));padding-bottom:2rem}.page-shell{gap:1rem}.hitl-page-shell{height:calc(100svh - 9.75rem);grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;gap:.6rem}.hero-panel,.surface-panel,.card-panel,.table-panel,.modal-panel,.summary-card,.field,.timeline-item,.report-day-row,.chat-thread-card,.chat-message,.prompt-item,.status-banner,.empty-state,.widget-empty-card{border-radius:18px}.hero-panel,.surface-panel,.card-panel,.table-panel,.modal-panel,.summary-card,.field,.timeline-item,.report-day-row,.chat-thread-card,.chat-message,.prompt-item{box-shadow:var(--shadow-soft)}.hero-panel{padding:1.35rem 1.4rem;background:linear-gradient(180deg,#fffffff0,#f9fafbe0)}.hero-title{letter-spacing:-.02em}.hero-copy{max-width:70ch}.hero-actions,.inline-actions,.chip-row,.toolbar .left,.toolbar .right{gap:.6rem}.button-pill,.mini-button{min-height:2.45rem;padding-inline:1rem;border:1px solid var(--border);cursor:pointer}.button-pill--primary,.mini-button--primary{background:linear-gradient(180deg,#111,#050506);color:#fff;border-color:transparent;box-shadow:0 16px 28px #0f172a2e}.button-pill--ops,.mini-button--ops{border-color:#fbbf2438;background:#fbbf2414;color:#92400e}.summary-card{background:var(--surface-strong);border:1px solid var(--border);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.summary-card:hover{transform:translateY(-1px);border-color:#0f172a24}.summary-card__label,.page-heading,.field label,.field-title{letter-spacing:.02em}.summary-card__value{font-size:1rem}.code-preview,.code-block{border-color:#0f172a14;background:linear-gradient(180deg,#0f1115,#0b0c10);color:#e5e7eb}.field{padding:.92rem;background:var(--surface-strong);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.field:hover{border-color:#0f172a24;transform:translateY(-1px)}.field:focus-within{border-color:#0f11153d;box-shadow:0 0 0 4px #0f111514,var(--shadow-soft)}.field input,.field textarea,.field select,.panel-input,.panel-textarea{min-height:2.8rem;border-radius:14px;background:#f8fafcf2}.field textarea,.panel-textarea{min-height:8rem}.tabs{padding:.35rem;border-radius:18px;background:#ffffffb8}.tab-button{height:2.65rem;padding-inline:1rem;color:var(--muted-strong);font-size:.92rem;font-weight:750}.field input[type=range]{accent-color:var(--primary-strong)}.tab-button:hover{color:var(--text);background:#0f11150f;transform:translateY(-1px)}.tab-button.is-active{color:#111;background:#fff;border-color:#0f172a14;box-shadow:0 10px 22px #0f172a14}.tab-button--dev{background:#ea580c14;border:1px solid rgba(234,88,12,.16)}.tab-button--dev:hover{color:#9a3412;background:#ea580c24}.tab-button--dev.is-active{color:#9a3412;background:#ea580c2e;border-color:#ea580c38;box-shadow:0 6px 14px #ea580c1f}.tab-button--ops{background:#ea580c14;border:1px solid rgba(234,88,12,.16)}.tab-button--ops:hover{color:#9a3412;background:#ea580c24}.tab-button--ops.is-active{color:#9a3412;background:#ea580c2e;border-color:#ea580c38;box-shadow:0 6px 14px #ea580c1f}.table-panel,.card-panel,.surface-panel{background:#ffffffe0;border-color:var(--border);-webkit-backdrop-filter:blur(16px) saturate(1.1);backdrop-filter:blur(16px) saturate(1.1)}.table-header{padding-inline:1rem;padding-top:1rem}table.admin-table{color:var(--text)}.admin-table thead th{background:#f8fafceb}.admin-table tbody tr{transition:background-color .15s ease,transform .15s ease}.admin-table tbody tr:hover{background:#0f111506}.admin-table tbody td{border-bottom-color:#0f172a14}.status-banner{border-radius:16px;box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.empty-state{border-color:#64748b29;background:#ffffffd1}.chat-thread-card{padding:1rem;background:linear-gradient(180deg,#ffffffeb,#f8fafcf5);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}.chat-thread-card:hover{transform:translateY(-2px);border-color:#0f111524;box-shadow:0 18px 40px #0f172a14}.chat-thread-card.is-active{border-color:#0f11153d;background:#0f111508}.chat-message{background:var(--surface-strong)}.chat-message--user{background:var(--primary-strong)}.chat-message--bot{background:var(--surface-strong)}.prompt-item{background:#ffffffeb;border-color:var(--border)}.prompt-item--featured{box-shadow:0 0 0 1px #0f111514,var(--shadow-soft)}.prompt-item__top--interactive{width:100%;padding:0;border:0;background:transparent;color:inherit;display:flex;justify-content:space-between;align-items:flex-start;gap:.9rem;text-align:left}.prompt-item__meta--right{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;min-width:0}.prompt-item__body{display:grid;gap:.8rem;margin-top:.85rem}.timeline-item,.report-day-row{background:#ffffffeb}[data-theme=dark] .prompt-item{background:#18181cf5}[data-theme=dark] .prompt-delete-modal__preview{background:#0f0f12f5;border-color:#ffffff14}[data-theme=dark] .prompt-item__meta--right .muted{color:var(--muted)}.modal-backdrop{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.modal-panel{background:#fffffff5}.invite-page{padding-inline:1rem}.invite-page__inner{width:min(100%,45rem)}.kbd,code{font-feature-settings:"ss01" 1,"cv02" 1}@media (max-width: 1024px){.admin-topbar{margin:.45rem;padding:.95rem}.admin-main{width:min(1680px,calc(100vw - 1rem))}.hero-panel{padding:1.2rem}}@media (max-width: 640px){.admin-topbar__user{justify-content:flex-start;flex-wrap:wrap}.assistant-health-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-user-chip strong{max-width:12rem}.button-pill,.mini-button,.tab-button{min-height:2.35rem}.hero-panel,.surface-panel,.card-panel,.table-panel{border-radius:18px}.table-header,.card-panel,.hero-panel{padding-inline:.9rem}.knowledge-review-panel__header,.knowledge-review-example__header{flex-direction:column}.knowledge-review-panel__badges,.knowledge-review-example__badges{justify-content:flex-start}.knowledge-review-example__messages{grid-template-columns:1fr}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}.config-page{display:grid;gap:1rem}.config-panel{display:grid;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:18px;background:var(--surface-strong);box-shadow:var(--shadow-soft)}.config-panel__header{display:flex;justify-content:space-between;align-items:flex-start;gap:.85rem;flex-wrap:wrap}.config-panel__header-copy{display:grid;gap:.25rem;min-width:0}.config-panel__body{display:grid;gap:.9rem;min-width:0}.config-savebar{display:flex;justify-content:flex-end;align-items:center;gap:.6rem;flex-wrap:wrap;padding-top:.85rem;border-top:1px solid var(--border);margin-top:.15rem}.config-savebar--between{justify-content:space-between}.config-savebar__meta{color:var(--muted);font-size:.8rem;line-height:1.4}.config-savebar__actions{display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}@media (max-width: 640px){.config-panel{padding:.9rem}.config-savebar,.config-savebar--between{justify-content:stretch}.config-savebar__actions{width:100%;justify-content:stretch}.config-savebar__actions>*{flex:1 1 0}}.config-panel__header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;align-items:flex-start}.widget-config-layout{align-items:start}.widget-config-aside{display:grid;gap:.85rem;min-width:0;align-self:start;position:sticky;top:6rem;max-height:calc(100svh - 7rem);overflow:auto;padding-right:.15rem;scrollbar-gutter:stable}.widget-config-aside>*{min-width:0}.widget-config-aside .widget-preview-frame{height:clamp(30rem,62svh,44rem)}@media (max-width: 1024px){.widget-config-aside{position:static;top:auto;max-height:none;overflow:visible;padding-right:0;scrollbar-gutter:auto}.widget-config-aside .widget-preview-frame{height:38rem}}
