:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-primary:#0f172a;--color-primary-hover:#1e293b;--color-on-primary:#fff;--color-on-danger:#fff;--color-accent:#0369a1;--color-accent-hover:#075985;--color-accent-strong:#075985;--color-accent-soft:#eaf6fc;--color-accent-soft-hover:#e0f2fe;--color-accent-border:#bae6fd;--color-background:#f8fafc;--color-surface:#fff;--color-surface-raised:#fff;--color-foreground:#020617;--color-ink:#020617;--color-secondary:#475569;--color-muted:#e8ecf1;--color-neutral-soft:#f1f5f9;--color-neutral-hover:#f8fbff;--color-border:#dbe3ec;--color-border-strong:#94a3b8;--color-success:#047857;--color-success-soft:#ecfdf5;--color-success-border:#a7f3d0;--color-danger:#b91c1c;--color-danger-soft:#fef2f2;--color-danger-border:#fecaca;--color-danger-hover:#991b1b;--color-warning:#9a3412;--color-warning-soft:#fff7ed;--color-warning-border:#fbbf24;--color-ring:#0369a1;--color-header:#fffffff0;--color-skeleton-edge:#e8ecf1;--color-skeleton-center:#f4f6f8;--color-message-user:#0f172a;--color-message-user-text:#fff;--select-chevron:url(/icons/chevron-down.svg);--shadow-card:0 18px 45px #0f172a14;--shadow-medium:0 16px 38px #0f172a1f;--shadow-large:-20px 0 60px #0f172a2e;--color-focus-ring:#0369a133;--radius-sm:8px;--radius-md:14px;--radius-lg:20px;--font-sans:"-apple-system-body", ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-size-body:15px;--font-size-page-title:clamp(28px, 3vw, 36px);--font-size-section-title:18px;--font-size-control:14px;--font-size-label:13px;--font-weight-heading:700;--font-weight-label:650;--font-weight-control:500;--control-height:44px;--page-padding-top:36px;--page-padding-bottom:56px;--panel-padding:22px}.managed-connectors-workspace{gap:20px;display:grid}.managed-connectors-toolbar,.managed-connectors-toolbar .section-heading,.managed-connector-card>header,.managed-connector-editor>header{align-items:center;display:flex}.managed-connectors-toolbar{justify-content:space-between;gap:20px;padding:22px}.managed-connectors-toolbar .section-heading{margin:0}.managed-connector-editor{gap:20px;padding:24px;display:grid}.managed-connector-editor>header{justify-content:space-between;gap:16px}.managed-connector-editor h2,.managed-connector-editor p{margin:0}.managed-connector-editor p{color:var(--color-secondary);margin-top:5px}.managed-connector-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.managed-connector-editor-grid label{color:var(--color-primary);gap:7px;font-weight:750;display:grid}.managed-connector-editor-grid input,.managed-connector-editor-grid select,.managed-connector-editor-grid textarea{width:100%;min-height:var(--control-height);border:1px solid var(--color-border);color:var(--color-primary);background:var(--color-surface);font:inherit;border-radius:12px;padding:9px 13px}.managed-connector-editor-grid select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--color-secondary) 50%), linear-gradient(135deg, var(--color-secondary) 50%, transparent 50%);background-position:calc(100% - 19px) calc(50% - 2px),calc(100% - 13px) calc(50% - 2px);background-repeat:no-repeat;background-size:6px 6px,6px 6px;padding-right:42px}.managed-connector-editor-grid textarea{resize:vertical;min-height:100px}.managed-connector-editor-grid small{color:var(--color-secondary);font-weight:500}.managed-connector-wide{grid-column:1/-1}.managed-connectors-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.managed-connector-card{flex-direction:column;gap:18px;min-height:360px;padding:22px;display:flex}.managed-connector-card>header{gap:12px}.managed-connector-card>header>div{gap:3px;min-width:0;display:grid}.managed-connector-card h2{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:1.15rem;overflow:hidden}.managed-connector-card a{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;overflow:hidden}.managed-connector-card>header .runtime-badge{margin-left:auto}.managed-connector-stats{border:1px solid var(--color-border);border-radius:12px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.managed-connector-stats span{justify-items:center;gap:3px;padding:13px;display:grid}.managed-connector-stats span+span{border-left:1px solid var(--color-border)}.managed-connector-stats strong{font-size:1.12rem}.managed-connector-stats small,.managed-connector-run small{color:var(--color-secondary)}.managed-connector-scope,.managed-connector-run{color:var(--color-secondary);gap:6px;font-size:.88rem;line-height:1.45;display:grid}.managed-connector-scope span{overflow-wrap:anywhere}.managed-connector-run{border-top:1px solid var(--color-border);padding-top:14px}.managed-connector-card>footer{flex-wrap:wrap;gap:9px;margin-top:auto;display:flex}.managed-connector-card>footer .button,.managed-connector-card>footer .icon-button{min-height:42px}.managed-connectors-empty{color:var(--color-secondary);text-align:center;grid-column:1/-1;justify-items:center;gap:10px;padding:48px 24px;display:grid}.managed-connectors-empty h2,.managed-connectors-empty p{margin:0}@media (max-width:1100px){.managed-connectors-grid{grid-template-columns:1fr}}@media (max-width:720px){.managed-connectors-toolbar,.managed-connector-editor>header{flex-direction:column;align-items:stretch}.managed-connector-editor-grid{grid-template-columns:1fr}.managed-connector-wide{grid-column:auto}}.plugins-page,.plugin-detail-page{align-content:start;gap:22px;display:grid}.plugin-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),448px));align-items:stretch;gap:24px;display:grid}.plugin-card{border-radius:16px;flex-direction:column;gap:20px;width:100%;min-width:0;min-height:0;padding:24px;display:flex}.plugin-card-header{justify-content:space-between;align-items:start;gap:16px;min-width:0;display:flex}.plugin-card-heading{align-items:center;gap:16px;min-width:0;display:flex}.plugin-card-icon{width:56px;height:56px;color:var(--color-accent);background:var(--color-accent-soft);border-radius:12px;flex:none;place-items:center;display:grid}.plugin-card-icon svg{width:24px;height:24px}.plugin-card-identity{gap:4px;min-width:0;display:grid}.plugin-card-category{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:.75rem;font-weight:800}.plugin-card h2,.plugin-card p,.plugin-card dl,.plugin-card dd{margin:0}.plugin-card h2{text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem;line-height:1.2;overflow:hidden}.plugin-card-controls{flex:none;align-items:center;gap:4px;display:flex}.plugin-status{border:1px solid var(--color-border);min-height:32px;color:var(--color-secondary);background:var(--color-neutral-soft);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:6px 12px;font-size:.75rem;font-weight:800;line-height:1;display:inline-flex}.plugin-status svg{width:12px;height:12px}.plugin-card-settings{width:36px;height:36px;color:var(--color-secondary);border-radius:8px;place-items:center;text-decoration:none;transition:color .16s,background-color .16s;display:inline-grid}.plugin-card-settings:hover{color:var(--color-primary);background:var(--color-accent-soft)}.plugin-card-settings:focus-visible{color:var(--color-primary);outline:3px solid var(--color-focus-ring);outline-offset:2px}.plugin-card-settings svg{width:20px;height:20px}.plugin-status.is-success{border-color:var(--color-success-border);color:var(--color-success);background:var(--color-success-soft)}.plugin-status.is-warning{border-color:var(--color-warning-border);color:var(--color-warning);background:var(--color-warning-soft)}.plugin-status.is-danger{border-color:var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft)}.plugin-card-description{color:var(--color-secondary);font-size:.875rem;line-height:1.55}.plugin-card-stats{flex-direction:column;margin-top:0;display:flex}.plugin-card-stats>div{justify-content:space-between;align-items:center;gap:16px;min-width:0;min-height:42px;padding:8px 0;display:flex}.plugin-card-stats>div+div{border-top:1px solid color-mix(in srgb, var(--color-border) 55%, transparent)}.plugin-card-stats dt{min-width:0;max-width:100%;color:var(--color-secondary);white-space:nowrap;align-items:center;gap:10px;font-size:.75rem;font-weight:750;line-height:1.2;display:flex}.plugin-card-stats dt svg{flex:none;width:16px;height:16px}.plugin-card-stats dd{color:var(--color-primary);font-size:1rem;font-weight:850;line-height:1}.plugin-catalog-empty{color:var(--color-secondary);text-align:center;justify-items:center;gap:10px;padding:48px 24px;display:grid}.plugin-catalog-empty>svg{width:34px;height:34px;color:var(--color-accent)}.plugin-catalog-empty h2,.plugin-catalog-empty p{margin:0}.plugin-back-link{width:fit-content;min-height:44px;color:var(--color-secondary);align-items:center;gap:8px;font-weight:750;text-decoration:none;display:inline-flex}.plugin-back-link:hover{color:var(--color-accent)}.plugin-back-link:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:3px;border-radius:8px}.plugin-back-link svg{width:20px;height:20px}.plugin-security-note{border-color:var(--color-accent-border);background:var(--color-accent-soft);justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;display:flex}.plugin-security-note>div{gap:4px;display:grid}.plugin-security-note strong,.plugin-security-note p{margin:0}.plugin-security-note p,.plugin-security-note>span{color:var(--color-secondary);font-size:.82rem;line-height:1.45}.plugin-security-note>span{border:1px solid var(--color-accent-border);white-space:nowrap;border-radius:999px;flex:none;padding:7px 10px;font-weight:750}.amocrm-plugin-workspace{gap:18px;display:grid}.plugin-detail-tabs{border:1px solid var(--color-border);background:var(--color-surface);scrollbar-width:thin;border-radius:13px;width:fit-content;max-width:100%;display:flex;overflow-x:auto}.plugin-detail-tabs button{min-height:46px;color:var(--color-secondary);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:10px 16px;font-size:.85rem;font-weight:800}.plugin-detail-tabs button+button{border-left:1px solid var(--color-border)}.plugin-detail-tabs button:hover{color:var(--color-primary);background:var(--color-neutral-soft)}.plugin-detail-tabs button:focus-visible{z-index:1;outline:3px solid var(--color-focus-ring);outline-offset:-3px;position:relative}.plugin-detail-tabs button.is-active{color:var(--color-accent);background:var(--color-accent-soft)}.plugin-access-panel{gap:18px;padding:22px;display:grid}.plugin-access-panel>header{justify-content:space-between;align-items:center;gap:18px;display:flex}.plugin-access-panel>header>div{gap:4px;display:grid}.plugin-access-panel>header h2,.plugin-access-panel>header p,.plugin-access-empty p{margin:0}.plugin-access-panel>header p,.plugin-access-empty p{color:var(--color-secondary);line-height:1.45}.plugin-access-panel>header>svg{width:28px;height:28px;color:var(--color-accent)}.plugin-access-list{border:1px solid var(--color-border);border-radius:14px;display:grid}.plugin-access-row{align-items:center;gap:16px;min-width:0;padding:15px;display:grid}.plugin-access-row+.plugin-access-row{border-top:1px solid var(--color-border)}.plugin-assistant-row{grid-template-columns:minmax(170px,1fr) auto minmax(220px,1fr) auto}.plugin-user-row{grid-template-columns:minmax(220px,1fr) minmax(210px,.6fr) auto}.plugin-profile-row{grid-template-columns:minmax(220px,1fr) auto minmax(190px,auto)}.plugin-sync-status{min-height:30px;color:var(--color-secondary);background:var(--color-neutral-soft);white-space:nowrap;border-radius:999px;align-items:center;padding:5px 9px;font-size:.72rem;font-weight:750;display:inline-flex}.plugin-sync-status.is-synced{color:var(--color-success);background:var(--color-success-soft)}.plugin-sync-status.is-error,.plugin-sync-error{color:var(--color-danger)}.plugin-sync-error{margin-top:3px;line-height:1.35}.plugin-access-identity{gap:3px;min-width:0;display:grid}.plugin-access-identity strong,.plugin-access-identity span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.plugin-access-identity span{color:var(--color-secondary);font-size:.78rem}.plugin-checkbox-field{min-height:44px;color:var(--color-primary);white-space:nowrap;align-items:center;gap:8px;font-size:.8rem;font-weight:750;display:inline-flex}.plugin-checkbox-field input{width:18px;height:18px;accent-color:var(--color-accent)}.plugin-pipeline-field,.plugin-user-select-field{color:var(--color-secondary);gap:5px;font-size:.72rem;font-weight:750;display:grid}.plugin-pipeline-field input,.plugin-user-select-field select,.plugin-user-search input{border:1px solid var(--color-border);width:100%;min-height:44px;color:var(--color-primary);background:var(--color-surface);font:inherit;border-radius:10px;padding:9px 12px}.plugin-pipeline-field input:focus-visible,.plugin-user-select-field select:focus-visible,.plugin-user-search input:focus-visible{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring);outline-offset:0}.plugin-pipeline-field input:disabled{opacity:.5;cursor:not-allowed}.plugin-user-select-field select:disabled{opacity:.6;cursor:not-allowed}.plugin-amocrm-users-state{min-height:44px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:10px 12px;font-size:.8rem;line-height:1.4;display:flex}.plugin-amocrm-users-state.is-error{color:var(--color-danger);background:var(--color-danger-soft)}.plugin-amocrm-users-state .button{flex:none}.plugin-access-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.plugin-access-actions .button{white-space:nowrap;min-height:44px;padding-left:13px;padding-right:13px}.plugin-user-search{width:min(100%,420px);display:block;position:relative}.plugin-user-search>svg{width:19px;height:19px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:13px;transform:translateY(-50%)}.plugin-user-search input{padding-left:42px}.plugin-access-empty{border:1px dashed var(--color-border-strong);text-align:center;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:140px;padding:24px;display:flex}.plugin-access-empty>svg{width:30px;height:30px;color:var(--color-accent)}.plugin-access-empty>strong{color:var(--color-primary);font-size:1rem}.plugin-access-heading .plugin-add-profiles{flex:none}.plugin-access-summary{flex-wrap:wrap;gap:8px;display:flex}.plugin-access-summary>span{border:1px solid var(--color-border);min-height:34px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;align-items:center;gap:5px;padding:7px 11px;font-size:.76rem;font-weight:650;display:inline-flex}.plugin-access-summary>span strong{color:var(--color-primary);font-size:.82rem}.plugin-access-summary>span.is-warning{border-color:var(--color-warning-border);color:var(--color-warning);background:var(--color-warning-soft)}.plugin-access-summary>span.is-warning strong,.plugin-access-summary>span.is-complete strong{color:currentColor}.plugin-access-summary>span.is-complete{border-color:var(--color-success-border);color:var(--color-success);background:var(--color-success-soft)}.plugin-profile-access-list{gap:12px;display:grid}.plugin-profile-access-card{border:1px solid var(--color-border);background:var(--color-background);border-radius:14px;transition:border-color .16s,box-shadow .16s;overflow:hidden}.plugin-profile-access-card.is-expanded{border-color:var(--color-border-strong);box-shadow:0 12px 34px #0206171f}.plugin-profile-access-header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;display:grid}.plugin-profile-access-toggle{min-width:0;color:var(--color-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:18px;padding:6px;display:grid}.plugin-profile-access-toggle:hover{background:var(--color-neutral-soft)}.plugin-profile-access-toggle:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:0}.plugin-profile-access-state{color:var(--color-secondary);white-space:nowrap;justify-content:flex-end;align-items:center;gap:10px;font-size:.76rem;font-weight:750;display:flex}.plugin-profile-access-state>span.is-complete{color:var(--color-success)}.plugin-profile-access-state>svg{flex:none;width:19px;height:19px;transition:transform .16s}.plugin-profile-access-toggle[aria-expanded=false] .plugin-profile-access-state>svg{transform:rotate(180deg)}.plugin-remove-profile{min-height:42px}.plugin-profile-access-actions{align-items:center;gap:8px;display:flex}.plugin-profile-access-body{border-top:1px solid var(--color-border);background:var(--color-surface);gap:12px;padding:14px;display:grid}.plugin-profile-sync-error{border:1px solid var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft);border-radius:10px;margin:0;padding:10px 12px;font-size:.78rem;line-height:1.45}.plugin-profile-assistants{gap:10px;display:grid}.plugin-profile-assistant{border:1px solid var(--color-border);background:var(--color-background);border-radius:12px;grid-template-columns:minmax(190px,.8fr) minmax(330px,1.35fr) auto;align-items:center;gap:16px;min-width:0;padding:14px;display:grid}.plugin-assistant-summary{align-items:center;gap:10px;min-width:0;display:flex}.plugin-assistant-summary .plugin-access-identity{flex:1}.plugin-assistant-status{min-height:28px;color:var(--color-warning);background:var(--color-warning-soft);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:5px 8px;font-size:.68rem;font-weight:800;display:inline-flex}.plugin-assistant-status.is-complete{color:var(--color-success);background:var(--color-success-soft)}.plugin-assistant-policy-editor{grid-template-columns:auto minmax(180px,1fr);align-items:end;gap:12px;min-width:0;display:grid}.plugin-assistant-tools{border:1px solid var(--color-border);background:var(--color-surface);border-radius:11px;grid-column:1/-1}.plugin-personal-data-policy{border:1px solid color-mix(in srgb, var(--color-warning) 35%, var(--color-border));background:color-mix(in srgb, var(--color-warning-soft) 35%, var(--color-surface));color:var(--color-primary);cursor:pointer;border-radius:11px;grid-column:1/-1;align-items:flex-start;gap:10px;padding:11px 12px;display:flex}.plugin-personal-data-policy input{width:17px;height:17px;accent-color:var(--color-accent);flex:none;margin-top:2px}.plugin-personal-data-policy span{gap:4px;min-width:0;display:grid}.plugin-personal-data-policy strong{font-size:.74rem}.plugin-personal-data-policy small{color:var(--color-secondary);font-size:.68rem;line-height:1.45}.plugin-assistant-tools>summary{min-height:42px;color:var(--color-primary);cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;font-size:.75rem;font-weight:800;list-style:none;display:flex}.plugin-assistant-tools>summary::-webkit-details-marker{display:none}.plugin-assistant-tools>summary:before{content:"▸";color:var(--color-secondary)}.plugin-assistant-tools[open]>summary:before{transform:rotate(90deg)}.plugin-assistant-tools>summary>span{color:var(--color-secondary);margin-left:auto;font-size:.7rem}.plugin-assistant-tools-panel{border-top:1px solid var(--color-border);gap:10px;padding:0 12px 12px;display:grid}.plugin-assistant-tools-heading{justify-content:space-between;align-items:center;gap:12px;padding-top:10px;display:flex}.plugin-assistant-tools-heading p{color:var(--color-secondary);margin:0;font-size:.7rem;line-height:1.4}.plugin-assistant-tools-heading button{color:var(--color-accent);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-size:.7rem;font-weight:800}.plugin-assistant-tools-heading button:disabled{opacity:.5;cursor:not-allowed}.plugin-assistant-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;display:grid}.plugin-assistant-tool{min-width:0;color:var(--color-primary);cursor:pointer;align-items:center;gap:7px;font-size:.72rem;display:flex}.plugin-assistant-tool input{width:16px;height:16px;accent-color:var(--color-accent);flex:none}.plugin-assistant-tool span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.plugin-pipeline-mode{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:11px;min-height:44px;padding:3px;display:inline-flex}.plugin-pipeline-mode button{color:var(--color-secondary);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;padding:7px 10px;font-size:.73rem;font-weight:750}.plugin-pipeline-mode button:hover{color:var(--color-primary)}.plugin-pipeline-mode button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:0}.plugin-pipeline-mode button.is-active{color:var(--color-accent);background:var(--color-surface);box-shadow:0 2px 8px #0206171f}.plugin-profile-empty-assistants{border:1px dashed var(--color-border-strong);min-height:92px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:12px;align-items:center;gap:12px;padding:16px;display:flex}.plugin-profile-empty-assistants>svg{width:25px;height:25px;color:var(--color-accent);flex:none}.plugin-profile-empty-assistants strong,.plugin-profile-empty-assistants p{margin:0}.plugin-profile-empty-assistants strong{color:var(--color-primary)}.plugin-profile-empty-assistants p{margin-top:3px;font-size:.78rem;line-height:1.45}.plugin-profile-picker-modal{width:min(100%,680px)}.plugin-profile-picker-search{display:block;position:relative}.plugin-profile-picker-search>svg{width:19px;height:19px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:13px;transform:translateY(-50%)}.plugin-profile-picker-search input{border:1px solid var(--color-border);width:100%;min-height:46px;color:var(--color-primary);background:var(--color-background);font:inherit;border-radius:11px;padding:10px 13px 10px 42px}.plugin-profile-picker-search input:focus-visible{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring)}.plugin-profile-picker-list{gap:8px;max-height:min(430px,50dvh);padding-right:3px;display:grid;overflow:auto}.plugin-profile-picker-option{border:1px solid var(--color-border);background:var(--color-background);cursor:pointer;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:11px 13px;transition:border-color .14s,background .14s;display:grid}.plugin-profile-picker-option:hover{border-color:var(--color-border-strong);background:var(--color-neutral-soft)}.plugin-profile-picker-option.is-selected{border-color:var(--color-accent-border);background:var(--color-accent-soft)}.plugin-profile-picker-option>input{width:19px;height:19px;accent-color:var(--color-accent)}.plugin-profile-picker-option:focus-within{outline:3px solid var(--color-focus-ring);outline-offset:0}.plugin-profile-kind{color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;padding:5px 8px;font-size:.68rem;font-weight:750}.plugin-profile-picker-empty{border:1px dashed var(--color-border-strong);min-height:180px;color:var(--color-secondary);text-align:center;border-radius:12px;align-content:center;place-items:center;gap:6px;padding:24px;display:grid}.plugin-profile-picker-empty>svg{width:30px;height:30px;color:var(--color-accent);margin-bottom:5px}.plugin-profile-picker-empty strong,.plugin-profile-picker-empty p{margin:0}.plugin-profile-picker-empty strong{color:var(--color-primary)}.plugin-profile-picker-empty p{font-size:.8rem}.plugin-profile-picker-modal>footer{justify-content:space-between;align-items:center}.plugin-profile-picker-modal>footer>div{gap:9px;display:flex}.plugin-profile-picker-count{color:var(--color-secondary);font-size:.8rem}.plugin-profile-picker-count strong{color:var(--color-primary)}.plugin-diagnostics-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.plugin-diagnostic-card{gap:6px;padding:20px;display:grid}.plugin-diagnostic-card>svg{width:26px;height:26px;color:var(--color-accent);margin-bottom:6px}.plugin-diagnostic-card>span,.plugin-diagnostic-card>small,.plugin-tools-card header span{color:var(--color-secondary)}.plugin-diagnostic-card>span{letter-spacing:.06em;text-transform:uppercase;font-size:.72rem;font-weight:800}.plugin-tools-card{grid-column:1/-1;gap:16px;padding:20px;display:grid}.plugin-tools-card header{align-items:center;gap:12px;display:flex}.plugin-tools-card header>svg{width:24px;height:24px;color:var(--color-success)}.plugin-tools-card header>div{gap:3px;display:grid}.plugin-tools-card ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.plugin-tools-card li{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:9px;padding:9px 11px;font-size:.78rem}@media (max-width:1180px){.plugin-assistant-row{grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto}.plugin-assistant-row .plugin-checkbox-field{grid-column:1/-1}.plugin-profile-assistant{grid-template-columns:minmax(190px,.8fr) minmax(300px,1.2fr)}.plugin-profile-assistant .plugin-access-actions{grid-column:1/-1}}@media (max-width:1000px){.plugin-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),448px))}}@media (max-width:760px){.plugin-card{min-height:0}.plugin-security-note{flex-direction:column;align-items:flex-start}.plugin-assistant-row,.plugin-profile-row,.plugin-user-row,.plugin-diagnostics-grid{grid-template-columns:1fr}.plugin-access-heading{flex-direction:column;align-items:stretch}.plugin-add-profiles{justify-content:center}.plugin-profile-access-header,.plugin-profile-access-toggle,.plugin-profile-assistant,.plugin-assistant-policy-editor,.plugin-assistant-tools-grid{grid-template-columns:1fr}.plugin-profile-access-state{justify-content:flex-start}.plugin-profile-access-header .plugin-profile-access-actions,.plugin-profile-access-header .plugin-profile-access-actions .button{justify-content:center;width:100%}.plugin-profile-access-header .plugin-profile-access-actions{flex-direction:column}.plugin-assistant-summary{align-items:flex-start}.plugin-profile-assistant .plugin-access-actions,.plugin-assistant-row .plugin-checkbox-field{grid-column:auto}.plugin-access-actions{flex-direction:column-reverse;align-items:stretch}.plugin-access-actions .button{justify-content:center}.plugin-tools-card{grid-column:auto}.plugin-tools-card ul{grid-template-columns:1fr}}@media (max-width:480px){.plugin-profile-picker-modal>footer{align-items:stretch}.plugin-profile-picker-modal>footer>div{flex-direction:column-reverse}.plugin-profile-picker-option{grid-template-columns:auto minmax(0,1fr)}.plugin-profile-kind{grid-column:2;justify-self:start}}@media (max-width:440px){.plugin-card-header{flex-direction:column;align-items:stretch}.plugin-card-controls{justify-content:space-between}.plugin-card{gap:18px;padding:20px}}.amocrm-admin-page{max-width:1280px}.amocrm-settings-panel{border-color:var(--color-accent-border);gap:24px;padding:clamp(22px,3vw,32px);display:grid}.amocrm-settings-heading{align-items:center;gap:16px;display:flex}.amocrm-settings-icon{width:54px;height:54px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:15px;flex:none;place-items:center;display:grid}.amocrm-settings-icon svg{width:27px;height:27px}.amocrm-settings-heading h2,.amocrm-settings-heading p,.amocrm-connection-status strong,.amocrm-connection-status small{margin:0}.amocrm-settings-heading h2{color:var(--color-primary);font-size:clamp(20px,2.2vw,28px)}.amocrm-settings-heading p{color:var(--color-secondary);margin-top:4px;font-size:14px}.amocrm-settings-panel>.form-feedback{margin:0}.amocrm-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.amocrm-settings-grid label{align-content:start;gap:8px;min-width:0;display:grid}.amocrm-settings-grid label.is-wide{grid-column:1/-1}.amocrm-settings-grid label>span{color:var(--color-primary);letter-spacing:.035em;text-transform:uppercase;font-size:13px;font-weight:800}.amocrm-settings-grid input{width:100%;min-height:var(--control-height);border:1px solid var(--color-border);color:var(--color-primary);background:var(--color-background);font:inherit;border-radius:12px;outline:none;padding:9px 13px;transition:border-color .16s,box-shadow .16s,background .16s}.amocrm-settings-grid input::placeholder{color:var(--color-secondary);opacity:.72}.amocrm-settings-grid input:hover{border-color:var(--color-border-strong)}.amocrm-settings-grid input:focus-visible{border-color:var(--color-accent);background:var(--color-surface);box-shadow:0 0 0 3px var(--color-focus-ring)}.amocrm-settings-grid small{color:var(--color-secondary);font-size:12px;line-height:1.45}.amocrm-settings-footer{border-top:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:20px;padding-top:22px;display:flex}.amocrm-connection-status{border:1px solid var(--color-border);min-width:0;max-width:620px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:12px;align-items:center;gap:12px;padding:12px 14px;display:flex}.amocrm-connection-status>svg{flex:none;width:22px;height:22px}.amocrm-connection-status>span{gap:2px;min-width:0;display:grid}.amocrm-connection-status strong{color:currentColor;font-size:13px}.amocrm-connection-status small{color:var(--color-secondary);font-size:11px;line-height:1.4}.amocrm-connection-status.is-success{border-color:var(--color-success-border);color:var(--color-success);background:var(--color-success-soft)}.amocrm-connection-status.is-warning{border-color:var(--color-warning-border);color:var(--color-warning);background:var(--color-warning-soft)}.amocrm-connection-status.is-danger{border-color:var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft)}.amocrm-settings-actions{flex:none;justify-content:flex-end;align-items:center;gap:10px;display:flex}.amocrm-callback-page{background:var(--color-background);place-items:center;min-height:100dvh;padding:24px;display:grid}.amocrm-callback-card{text-align:center;justify-items:center;gap:14px;width:min(100%,520px);padding:34px;display:grid}.amocrm-callback-icon{width:58px;height:58px;color:var(--color-success);background:var(--color-success-soft);border-radius:50%;place-items:center;display:grid}.amocrm-callback-card.is-error .amocrm-callback-icon{color:var(--color-danger);background:var(--color-danger-soft)}.amocrm-callback-icon svg{width:28px;height:28px}.amocrm-callback-card h1,.amocrm-callback-card p{margin:0}.amocrm-callback-card p{color:var(--color-secondary);line-height:1.55}.amocrm-callback-close-hint{font-size:12px}@media (max-width:900px){.amocrm-settings-grid{grid-template-columns:1fr}.amocrm-settings-grid label.is-wide{grid-column:auto}.amocrm-settings-footer{flex-direction:column;align-items:stretch}.amocrm-connection-status{max-width:none}.amocrm-settings-actions{width:100%}.amocrm-settings-actions .button{flex:1 1 0}}@media (max-width:620px){.amocrm-settings-heading{align-items:flex-start}.amocrm-settings-actions{flex-direction:column-reverse;align-items:stretch}.amocrm-callback-page{padding:14px}.amocrm-callback-card{padding:26px 20px}}.mcp-workspace{gap:18px;display:grid}.mcp-toolbar{grid-template-columns:minmax(230px,.7fr) minmax(280px,1fr) auto auto;align-items:end;gap:14px;padding:18px;display:grid}.mcp-profile-select,.mcp-search,.mcp-form-grid label{align-content:start;gap:7px;min-width:0;display:grid}.mcp-profile-select>span,.mcp-form-grid label>span{color:var(--color-secondary);letter-spacing:.04em;font-size:12px;font-weight:800}.mcp-profile-select select,.mcp-search input,.mcp-form-grid input,.mcp-form-grid select,.mcp-form-grid textarea{border:1px solid var(--color-border);width:100%;min-height:46px;color:var(--color-primary);background-color:var(--color-surface);font:inherit;border-radius:11px;outline:none;padding:10px 13px}.mcp-profile-select select,.mcp-form-grid select{appearance:none;background-image:var(--select-chevron);background-position:right 13px center;background-repeat:no-repeat;background-size:18px;padding-right:40px}.mcp-profile-select select:focus,.mcp-search input:focus,.mcp-form-grid input:focus,.mcp-form-grid select:focus,.mcp-form-grid textarea:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-focus-ring)}.mcp-server-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.mcp-server-card{flex-direction:column;gap:12px;min-width:0;min-height:252px;padding:16px;display:flex}.mcp-server-card>header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;display:grid}.mcp-server-icon{width:38px;height:38px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:11px;place-items:center;display:grid}.mcp-server-icon svg{width:20px;height:20px}.mcp-server-heading{align-items:center;gap:7px;min-width:0;display:flex}.mcp-server-card h2,.mcp-server-target,.mcp-server-meta dt,.mcp-server-meta dd,.mcp-test-result{margin:0}.mcp-server-card h2{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:16px;overflow:hidden}.mcp-transport-badge{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-neutral-soft);letter-spacing:.04em;border-radius:7px;flex:none;padding:3px 6px;font-size:9px;font-weight:800}.mcp-server-target{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;overflow:hidden}.mcp-server-meta{border:1px solid var(--color-border);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid;overflow:hidden}.mcp-server-meta>div{gap:3px;min-width:0;padding:9px 10px;display:grid}.mcp-server-meta>div+div{border-left:1px solid var(--color-border)}.mcp-server-meta dt{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:9px;font-weight:800}.mcp-server-meta dd{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;overflow:hidden}.mcp-test-result{border:1px solid var(--color-success-border);color:var(--color-success);background:var(--color-success-soft);text-overflow:ellipsis;white-space:nowrap;border-radius:10px;padding:7px 9px;font-size:10px;overflow:hidden}.mcp-test-result.is-failed{border-color:var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft)}.mcp-server-card>footer{border-top:1px solid var(--color-border);align-items:center;gap:7px;margin-top:auto;padding-top:11px;display:flex}.mcp-server-card .icon-button{border:1px solid var(--color-border);border-radius:10px;flex:none;width:40px;height:40px;position:static;top:auto;right:auto}.mcp-server-card .icon-button.danger{color:var(--color-danger)}.mcp-server-card .icon-button.danger:hover:not(:disabled){border-color:var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft)}.mcp-server-card .icon-button:disabled{cursor:not-allowed;opacity:.45}.mcp-card-actions{gap:6px;margin-left:auto;display:inline-flex}.mcp-profile-bindings{gap:10px;min-width:0;display:grid}.mcp-profile-summary{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px;padding:9px 10px}.mcp-profile-bindings>header{justify-content:space-between;align-items:center;gap:12px;min-height:30px;display:flex}.mcp-profile-bindings h3,.mcp-profile-bindings p{margin:0}.mcp-profile-bindings h3{color:var(--color-primary);font-size:11px}.mcp-profile-bindings p{color:var(--color-secondary);margin-top:2px;font-size:10px}.mcp-profile-binding-list{border:1px solid var(--color-border);border-radius:12px;overflow:hidden}.mcp-profile-binding{justify-content:space-between;align-items:center;gap:14px;min-width:0;padding:10px 12px;display:flex}.mcp-profile-binding+.mcp-profile-binding{border-top:1px solid var(--color-border)}.mcp-profile-binding>div{gap:2px;min-width:0;display:grid}.mcp-profile-binding>div strong,.mcp-profile-binding>div span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mcp-profile-binding>div strong{color:var(--color-primary);font-size:12px}.mcp-profile-binding>div span{color:var(--color-secondary);font-size:10px}.mcp-profile-binding .mcp-toggle{flex:none;margin-left:auto}.mcp-toggle{cursor:pointer;min-height:34px;color:var(--color-secondary);background:0 0;border:0;align-items:center;gap:8px;margin-left:auto;padding:0;display:inline-flex}.mcp-toggle>span{border:1px solid var(--color-border-strong);background:var(--color-neutral-soft);border-radius:999px;width:38px;height:22px;position:relative}.mcp-toggle>span:after{background:var(--color-secondary);content:"";border-radius:50%;width:14px;height:14px;transition:transform .14s,background .14s;position:absolute;top:3px;left:3px}.mcp-toggle.is-enabled{color:var(--color-success)}.mcp-toggle.is-enabled>span{border-color:var(--color-success);background:var(--color-success-soft)}.mcp-toggle.is-enabled>span:after{background:var(--color-success);transform:translate(16px)}.mcp-toggle:disabled{cursor:not-allowed;opacity:.55}.mcp-toggle strong{font-size:10px}.mcp-empty{min-height:150px;padding:28px}.mcp-empty h2,.mcp-empty p{margin:0}.mcp-empty h2{color:var(--color-primary);font-size:20px}.mcp-empty p{max-width:560px;font-size:14px}.mcp-server-modal{width:min(100%,760px)}.hermes-profile-modal.mcp-server-modal>header{grid-template-columns:minmax(0,1fr) auto}.mcp-server-modal .hermes-profile-modal-close{place-self:start end}.mcp-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px;display:grid}.mcp-form-grid label.is-wide{grid-column:1/-1}.mcp-auth-field,.mcp-tools-field{min-width:0}.mcp-form-grid textarea{resize:vertical;min-height:88px}.mcp-form-grid small{color:var(--color-secondary);font-size:11px;font-weight:500}.mcp-advanced-toggle{cursor:pointer;width:fit-content;color:var(--color-accent-strong);font:inherit;background:0 0;border:0;padding:0;font-size:12px;font-weight:800}.mcp-advanced-toggle:hover{color:var(--color-accent)}.mcp-advanced-fields{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;padding:15px}.mcp-enabled-row{align-items:center;gap:9px;display:flex}.mcp-profile-picker{border:1px solid var(--color-border);border-radius:14px;gap:10px;min-width:0;margin:0;padding:15px;display:grid}.mcp-profile-picker legend{color:var(--color-primary);padding:0 6px;font-size:13px;font-weight:800}.mcp-profile-picker>p{color:var(--color-secondary);margin:0;font-size:12px}.mcp-profile-picker>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.mcp-profile-picker .checkbox-row{border:1px solid var(--color-border);border-radius:10px;min-width:0;padding:10px}.mcp-profile-picker .checkbox-row>span{gap:2px;min-width:0;display:grid}.mcp-profile-picker .checkbox-row strong,.mcp-profile-picker .checkbox-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mcp-profile-picker .checkbox-row small{color:var(--color-secondary);font-size:10px}@media (max-width:1280px){.mcp-toolbar{grid-template-columns:minmax(220px,.7fr) minmax(260px,1fr) auto}.mcp-toolbar>.button{grid-column:3}}@media (max-width:1100px){.mcp-server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.mcp-toolbar,.mcp-server-grid,.mcp-form-grid{grid-template-columns:1fr}.mcp-toolbar>.button,.mcp-form-grid label.is-wide,.mcp-profile-picker>div{grid-column:auto}.mcp-profile-picker>div{grid-template-columns:1fr}.mcp-server-card>footer{flex-wrap:wrap}.mcp-server-modal{padding:16px}}.analog-catalog-page{width:100%}.analog-catalog-stack{gap:18px;display:grid}.analog-panel{border:1px solid var(--color-border);background:var(--color-surface);min-width:0;box-shadow:var(--shadow-card);border-radius:20px;padding:24px}.analog-panel-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px;display:flex}.analog-panel-heading h2{margin:0 0 5px;font-size:clamp(20px,1.8vw,28px)}.analog-panel-heading p,.analog-version-list article span{color:var(--color-secondary);margin:0}.analog-import-controls{grid-template-columns:minmax(220px,.7fr) minmax(300px,1.4fr) auto;align-items:end;gap:14px;display:grid}.analog-import-controls label{color:var(--color-secondary);gap:8px;font-weight:700;display:grid}.analog-import-controls select,.analog-import-controls input[type=file]{width:100%;min-height:var(--control-height);border:1px solid var(--color-border);color:var(--color-foreground);background:var(--color-neutral-soft);font:inherit;border-radius:12px;padding:9px 13px}.analog-schema-hint{color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:12px;margin-top:16px;padding:12px 14px;line-height:1.5}.analog-diff{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.analog-diff span,.analog-version-diff{color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;padding:5px 9px;font-size:13px;font-weight:700}.analog-preview-panel>.analog-panel{box-shadow:none;border:0;padding:0}.analog-version-list{gap:8px;display:grid}.analog-version-list article{border-bottom:1px solid var(--color-border);grid-template-columns:minmax(240px,1fr) auto auto auto;align-items:center;gap:14px;padding:13px 0;display:grid}.analog-version-list article>div:first-child{gap:3px;display:grid}.analog-version-badge{border-radius:999px;padding:6px 10px;font-size:13px;font-weight:800}.analog-version-badge.is-active{color:var(--color-success);background:var(--color-success-soft)}.analog-version-badge.is-preview{color:var(--color-accent-strong);background:var(--color-accent-soft)}.analog-version-badge.is-superseded{color:var(--color-secondary);background:var(--color-neutral-soft)}.analog-table-scroll{width:100%;overflow-x:auto}.analog-table{border-collapse:collapse;width:100%;min-width:1120px}.analog-table th,.analog-table td{border-bottom:1px solid var(--color-border);text-align:left;vertical-align:top;white-space:nowrap;padding:12px 14px}.analog-table th{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:12px}.analog-table code{color:var(--color-foreground);font-size:13px}.analog-empty{border:1px dashed var(--color-border);color:var(--color-secondary);text-align:center;border-radius:14px;padding:22px}@media (max-width:1000px){.analog-import-controls{grid-template-columns:1fr 1fr}.analog-import-controls>.button{grid-column:1/-1}.analog-version-list article{grid-template-columns:1fr auto}}@media (max-width:720px){.analog-panel{border-radius:16px;padding:17px}.analog-panel-heading,.analog-import-controls{flex-direction:column;grid-template-columns:1fr}.analog-panel-heading .button,.analog-import-controls>.button{width:100%}.analog-version-list article{grid-template-columns:1fr}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-primary:#f8fafc;--color-primary-hover:#e2e8f0;--color-on-primary:#082f49;--color-on-danger:#450a0a;--color-accent:#38bdf8;--color-accent-hover:#7dd3fc;--color-accent-strong:#7dd3fc;--color-accent-soft:#0c2a3b;--color-accent-soft-hover:#10374d;--color-accent-border:#1c526c;--color-background:#0b1120;--color-surface:#111827;--color-surface-raised:#172033;--color-foreground:#f8fafc;--color-ink:#f8fafc;--color-secondary:#a8b5c7;--color-muted:#1e293b;--color-neutral-soft:#172033;--color-neutral-hover:#1b2639;--color-border:#334155;--color-border-strong:#64748b;--color-success:#6ee7b7;--color-success-soft:#0f2f26;--color-success-border:#166534;--color-danger:#fca5a5;--color-danger-soft:#35181c;--color-danger-border:#7f1d1d;--color-danger-hover:#fecaca;--color-warning:#fdba74;--color-warning-soft:#3b2412;--color-warning-border:#a16207;--color-ring:#38bdf8;--color-header:#111827f0;--color-skeleton-edge:#1e293b;--color-skeleton-center:#334155;--color-message-user:#075985;--color-message-user-text:#f8fafc;--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a8b5c7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--shadow-card:0 18px 48px #00000047;--shadow-medium:0 18px 42px #00000052;--shadow-large:-22px 0 64px #0000006b;--color-focus-ring:#38bdf838}*{box-sizing:border-box}html{background:var(--color-background)}body{color:var(--color-foreground);background:var(--color-background);font-family:Fira Sans,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:var(--font-size-body);text-rendering:optimizelegibility;margin:0;line-height:1.5}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--color-accent);text-underline-offset:3px;font-weight:600}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb, var(--color-ring) 30%, transparent);outline-offset:2px}h1,h2,p{margin-top:0}h1,h2,h3{font-weight:var(--font-weight-heading);letter-spacing:-.025em}.brand{color:var(--color-primary);font-size:18px;font-weight:var(--font-weight-heading);letter-spacing:-.02em;align-items:center;gap:10px;display:inline-flex}.brand-inverse{color:#fff}.brand-mark{color:#fff;background:var(--color-accent);border-radius:11px;place-items:center;width:36px;height:36px;display:grid;box-shadow:0 8px 24px #0369a147}.eyebrow{color:var(--color-accent);font-size:11px;font-weight:var(--font-weight-heading);letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px;display:block}.eyebrow-inverse{color:#7dd3fc}.auth-shell{grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);min-height:100dvh;display:grid}.auth-intro{color:#e2e8f0;background:radial-gradient(circle at 78% 18%,#0ea5e933,#0000 32%),linear-gradient(145deg,#0f172a 0%,#172554 100%);flex-direction:column;justify-content:space-between;min-height:100%;padding:clamp(32px,5vw,72px);display:flex}.auth-copy{max-width:620px;padding:80px 0}.auth-copy h1{color:#fff;max-width:590px;margin-bottom:22px;font-size:clamp(34px,4.5vw,52px);line-height:1.04}.auth-copy p{color:#cbd5e1;max-width:540px;margin-bottom:0;font-size:19px;line-height:1.65}.trust-note,.setup-badge{align-items:center;gap:10px;font-size:14px;font-weight:600;display:inline-flex}.trust-note svg,.setup-badge svg{width:20px;height:20px}.auth-panel{background:var(--color-surface);place-items:center;padding:clamp(24px,6vw,80px);display:grid}.auth-card{width:min(100%,460px)}.auth-card h2,.setup-card h1{margin-bottom:12px;font-size:clamp(30px,4vw,42px);line-height:1.12}.card-lead{color:var(--color-secondary);margin-bottom:32px}.form-stack{gap:20px;display:grid}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;display:grid}.field{align-content:start;gap:8px;display:grid}.field label{color:var(--color-primary);font-size:14px;font-weight:700}.field input,.field select,.field textarea{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;min-height:48px;color:var(--color-foreground);background:var(--color-surface);font:inherit;padding:11px 14px;transition:border-color .18s,box-shadow .18s}.field input,.field select{height:48px}.field select{appearance:none;background-image:var(--select-chevron);background-position:right 14px center;background-repeat:no-repeat;background-size:20px 20px;padding-right:48px}.field select:disabled{cursor:not-allowed;color:var(--color-secondary);background-color:var(--color-background);opacity:1}.field textarea{resize:vertical;min-height:96px;line-height:1.45}.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--color-border-strong)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--color-ring);outline:none;box-shadow:0 0 0 3px #0369a11f}.field-hint{color:var(--color-secondary);font-size:13px}.knowledge-search-panel{gap:20px;padding:26px;display:grid}.knowledge-search-form{grid-template-columns:minmax(0,1fr) auto;gap:12px;display:grid}.knowledge-search-form input{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);min-height:48px;padding:11px 14px}.knowledge-results{gap:12px;padding:0;list-style:none;display:grid}.knowledge-results li{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);gap:8px;padding:16px;display:grid}.knowledge-result-heading{justify-content:space-between;gap:16px;display:flex}.knowledge-result-heading span,.knowledge-results p{color:var(--color-secondary)}.document-error-code{color:var(--color-danger);margin-top:6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;display:block}.document-graph-status{color:var(--color-secondary);margin-top:6px;font-size:11px;font-weight:500;line-height:1.35;display:block}.document-graph-status.graph-status-ready{color:var(--color-success)}.document-graph-status.graph-status-failed{color:var(--color-danger)}.knowledge-results p{white-space:pre-wrap;margin:0}@media (max-width:640px){.knowledge-search-form{grid-template-columns:1fr}}.hermes-profiles-workspace{gap:16px;display:grid}.hermes-profiles-toolbar{justify-content:space-between;align-items:center;gap:16px;min-height:78px;padding:16px 18px;display:flex}.hermes-profiles-toolbar .section-heading{gap:12px;margin:0}.hermes-profiles-toolbar .section-icon{border-radius:11px;width:42px;height:42px}.hermes-profiles-toolbar h1{color:var(--color-primary);margin:0;font-size:20px}.hermes-profiles-toolbar p{color:var(--color-secondary);margin:3px 0 0;font-size:12px}.hermes-profiles-toolbar>.button{min-height:40px;padding:8px 13px;font-size:12px}.hermes-profiles-toolbar-summary{color:var(--color-secondary);align-items:center;gap:10px;font-size:12px;display:flex}.hermes-profile-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.hermes-profile-form-grid>label:not(.checkbox-row){gap:7px;display:grid}.hermes-profile-form-grid label>span:first-child,.hermes-profile-modal-field>span:first-child{color:var(--color-primary);font-size:12px;font-weight:750}.hermes-profile-form-grid input,.hermes-profile-form-grid select,.hermes-profile-form-grid textarea,.hermes-profile-modal-field input,.hermes-profile-modal-field select,.hermes-profile-modal-field textarea{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;min-height:46px;color:var(--color-primary);background:var(--color-surface);font:inherit;padding:10px 13px;font-size:13px}.hermes-profile-form-grid select,.hermes-profile-modal-field select{appearance:none;background-image:var(--select-chevron);cursor:pointer;background-position:right 10px center;background-repeat:no-repeat;background-size:17px 17px;padding-right:36px}.hermes-profile-form-grid small,.hermes-profile-modal-field small{color:var(--color-secondary);font-size:10px;line-height:1.4}.hermes-profile-description-field{grid-column:1/-1}.hermes-profile-description-field textarea{resize:vertical;min-height:90px}.hermes-profile-empty-toggle{min-height:42px;color:var(--color-secondary);grid-column:1/-1;align-items:center;gap:10px;font-size:12px;display:flex}.hermes-profile-empty-toggle input{width:18px;height:18px;min-height:auto;accent-color:var(--color-accent);flex:none}.hermes-profiles-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.hermes-profile-card{flex-direction:column;min-width:0;min-height:360px;padding:0;display:flex;position:relative;overflow:hidden}.hermes-profile-card.is-default:before{z-index:1;background:var(--color-success);content:"";height:4px;position:absolute;top:0;left:0;right:0}.hermes-profile-card-hero{text-align:center;flex-direction:column;align-items:center;min-width:0;padding:18px 16px 0;display:flex;position:relative}.hermes-profile-system-badge{min-height:25px;padding:4px 8px;font-size:10px;position:absolute;top:12px;right:12px}.hermes-profile-avatar{border:3px solid var(--color-border-strong);background:var(--color-neutral-soft);width:64px;height:64px;box-shadow:0 6px 18px color-mix(in srgb, var(--color-primary) 12%, transparent);border-radius:50%;place-items:center;margin-top:0;display:grid;position:relative}.hermes-profile-card.is-default .hermes-profile-avatar{border-color:var(--color-success);box-shadow:0 8px 24px color-mix(in srgb, var(--color-success) 22%, transparent)}.hermes-profile-avatar>span{width:50px;height:50px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:50%;place-items:center;display:grid}.hermes-profile-avatar svg{width:25px;height:25px}.hermes-profile-avatar>strong{border:2px solid var(--color-surface);min-width:max-content;color:var(--color-on-primary);background:var(--color-success);letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:3px 8px;font-size:8px;font-weight:850;position:absolute;bottom:-10px;left:50%;transform:translate(-50%)}.hermes-profile-card-hero h2{width:100%;color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;margin:12px 0 0;font-size:20px;line-height:1.25;overflow:hidden}.hermes-profile-title-row{justify-content:center;align-items:center;gap:7px;width:100%;min-width:0;display:flex}.hermes-profile-title-row h2{flex:0 auto;width:auto;min-width:0}.hermes-profile-edit-trigger{cursor:pointer;width:30px;height:30px;color:var(--color-secondary);background:0 0;border:0;border-radius:8px;flex:none;place-items:center;margin-top:12px;padding:0;transition:color .16s,background .16s;display:grid}.hermes-profile-edit-trigger:hover:not(:disabled){color:var(--color-primary);background:var(--color-neutral-hover)}.hermes-profile-edit-trigger:disabled{cursor:not-allowed;opacity:.4}.hermes-profile-edit-trigger svg{width:16px;height:16px}.hermes-profile-card-hero>code{width:100%;color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;overflow:hidden}.hermes-profile-provider{min-height:25px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;align-items:center;margin-top:6px;padding:3px 9px;font-size:10px;font-weight:700;display:inline-flex}.hermes-profile-card-hero>p{min-height:36px;color:var(--color-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:10px 0 0;font-size:12px;line-height:1.55;display:-webkit-box;overflow:hidden}.hermes-profile-stats{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 14px 0;display:grid;overflow:hidden}.hermes-profile-stats div{text-align:center;align-content:center;gap:4px;min-width:0;padding:9px 5px;display:grid}.hermes-profile-stats div+div{border-left:1px solid var(--color-border)}.hermes-profile-stats dt{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:9px;font-weight:750}.hermes-profile-stats dd{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;font-weight:800;overflow:hidden}.hermes-profile-updated{min-height:34px;color:var(--color-secondary);text-align:center;justify-content:center;align-items:center;padding:8px 16px;font-size:10px;display:flex}.hermes-profile-card-actions{border-top:1px solid var(--color-border);grid-template-columns:repeat(3,minmax(0,1fr));min-height:48px;margin-top:auto;display:grid}.hermes-profile-card-actions>a,.hermes-profile-card-actions>button{cursor:pointer;border:0;border-right:1px solid var(--color-border);min-width:0;min-height:48px;color:var(--color-secondary);font:inherit;text-align:center;background:0 0;justify-content:center;align-items:center;gap:5px;padding:7px 6px;font-size:10px;font-weight:750;text-decoration:none;transition:color .16s,background .16s;display:inline-flex}.hermes-profile-card-actions>:last-child{border-right:0}.hermes-profile-card-actions>a:hover,.hermes-profile-card-actions>button:hover:not(:disabled){color:var(--color-primary);background:var(--color-neutral-hover)}.hermes-profile-card-actions>:last-child:not(:disabled){color:var(--color-danger)}.hermes-profile-card-actions>button:disabled{cursor:not-allowed;opacity:.4}.hermes-profile-card-actions svg{flex:none;width:15px;height:15px}.hermes-profiles-empty{min-height:240px;color:var(--color-secondary);text-align:center;align-content:center;place-items:center;display:grid}.hermes-profiles-empty>svg{width:36px;height:36px;color:var(--color-accent);margin-bottom:10px}.hermes-profiles-empty p{margin:5px 0 0}.hermes-profile-modal-backdrop{z-index:160;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#020617b8;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.hermes-profile-modal{border:1px solid var(--color-border);background:var(--color-surface);border-radius:20px;gap:20px;width:min(100%,620px);max-height:calc(100dvh - 40px);padding:22px;display:grid;overflow:auto;box-shadow:0 28px 80px #0206176b}.hermes-profile-modal.is-compact{width:min(100%,520px)}.hermes-profile-modal>header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;display:grid}.hermes-profile-modal>header h2,.hermes-profile-modal>header p{margin:0}.hermes-profile-modal>header h2{color:var(--color-primary);font-size:20px}.hermes-profile-modal>header p{color:var(--color-secondary);margin-top:3px;font-size:12px}.hermes-profile-modal-close{cursor:pointer;border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:10px;place-items:center;padding:0;display:grid}.hermes-profile-modal-close:hover{color:var(--color-primary);background:var(--color-neutral-hover)}.hermes-profile-modal-close svg{width:18px;height:18px}.hermes-profile-modal-field{gap:7px;display:grid}.hermes-profile-settings-fields{gap:16px;display:grid}.hermes-profile-modal-field textarea{resize:vertical;min-height:130px}.hermes-profile-model-grid{gap:14px;display:grid}.hermes-profile-model-grid .hermes-profile-modal-field select{appearance:none;height:var(--control-height);min-height:var(--control-height);border:1px solid var(--color-border);color:var(--color-primary);background-color:var(--color-neutral-soft);background-position:right 14px center;background-size:20px 20px;border-radius:12px;padding:0 42px 0 13px;font-size:15px;font-weight:650;line-height:1;transition:border-color .16s,background-color .16s,box-shadow .16s}.hermes-profile-model-grid .hermes-profile-modal-field select:hover:not(:disabled){border-color:var(--color-border-strong);background-color:var(--color-neutral-hover)}.hermes-profile-model-grid .hermes-profile-modal-field select:focus{border-color:var(--color-ring);background-color:var(--color-surface-raised);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}.hermes-profile-model-grid .hermes-profile-modal-field select:disabled{cursor:not-allowed;opacity:.55}.hermes-profile-model-grid .hermes-profile-modal-field select option{color:var(--color-primary);background:var(--color-surface-raised)}.hermes-profile-model-notice,.hermes-profile-model-confirmation,.hermes-profile-model-error,.hermes-profile-model-loading{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:12px;margin:0;padding:12px 14px;font-size:12px;line-height:1.5}.hermes-profile-model-confirmation{border-color:color-mix(in srgb, var(--color-warning) 55%, var(--color-border));color:var(--color-primary)}.hermes-profile-model-error{border-color:var(--color-danger);color:var(--color-danger)}.hermes-profile-model-loading{text-align:center;justify-content:center;align-items:center;gap:10px;min-height:90px;display:flex}.hermes-profile-modal>footer{border-top:1px solid var(--color-border);justify-content:flex-end;gap:9px;padding-top:15px;display:flex}@media (max-width:1280px){.hermes-profiles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.hermes-profiles-toolbar{flex-direction:column;align-items:stretch;gap:14px}.hermes-profile-form-grid,.hermes-profiles-grid{grid-template-columns:1fr}.hermes-profile-card{min-height:340px}}@media (max-width:480px){.hermes-profiles-toolbar,.hermes-profile-modal{padding:16px}.hermes-profile-modal>footer{flex-direction:column-reverse;align-items:stretch}.hermes-profile-modal>footer .button{justify-content:center;width:100%}}.password-control{position:relative}.password-control input{padding-right:54px}.icon-button{cursor:pointer;width:44px;height:44px;color:var(--color-secondary);background:0 0;border:0;border-radius:7px;place-items:center;transition:color .18s,background .18s;display:grid;position:absolute;top:2px;right:2px}.icon-button:hover{color:var(--color-primary);background:var(--color-background)}.icon-button svg{width:20px;height:20px}.button{min-height:var(--control-height);cursor:pointer;border-radius:var(--radius-sm);font-size:var(--font-size-control);font-weight:var(--font-weight-label);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:9px 15px;text-decoration:none;transition:background .18s,border-color .18s,color .18s,opacity .18s;display:inline-flex}.button:disabled{cursor:not-allowed;opacity:.55}.button-primary{color:var(--color-on-primary);background:var(--color-accent)}.button-primary:hover:not(:disabled){background:var(--color-accent-hover)}.button-secondary{color:var(--color-primary);border-color:var(--color-border);background:var(--color-surface)}.button-secondary:hover{border-color:var(--color-border-strong);background:var(--color-background)}.button svg{width:18px;height:18px}.form-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.action-dialog-backdrop{z-index:220;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#020617b8;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.action-dialog{border:1px solid var(--color-danger-border);width:min(100%,560px);max-height:calc(100dvh - 40px);color:var(--color-primary);background:var(--color-surface);border-radius:20px;gap:20px;padding:24px;display:grid;overflow:auto;box-shadow:0 30px 90px #02061773}.action-dialog-header{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;display:grid}.action-dialog-icon{width:44px;height:44px;color:var(--color-danger);background:var(--color-danger-soft);border-radius:12px;place-items:center;display:grid}.action-dialog-icon svg,.action-dialog-close svg{width:20px;height:20px}.action-dialog-header h2{color:var(--color-primary);margin:1px 0 7px;font-size:21px;line-height:1.25}.action-dialog-description{color:var(--color-secondary);font-size:14px;line-height:1.55}.action-dialog-description p{margin:0}.action-dialog-description p+p{margin-top:8px}.action-dialog-close{cursor:pointer;border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:10px;place-items:center;padding:0;display:grid}.action-dialog-close:hover:not(:disabled){color:var(--color-primary);background:var(--color-neutral-hover)}.action-dialog-close:disabled{cursor:not-allowed;opacity:.55}.action-dialog-field{color:var(--color-primary);gap:7px;font-size:13px;font-weight:750;display:grid}.action-dialog-field textarea{resize:vertical;border:1px solid var(--color-border-strong);width:100%;min-height:94px;color:var(--color-primary);background:var(--color-background);font:inherit;border-radius:12px;padding:12px 14px;font-weight:500;line-height:1.45}.action-dialog-field textarea:focus{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring)}.action-dialog-field small{color:var(--color-secondary);font-size:11px;font-weight:500}.action-dialog-error{border:1px solid var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft);border-radius:11px;margin:0;padding:11px 13px;font-size:13px;line-height:1.45}.action-dialog-actions{border-top:1px solid var(--color-border);justify-content:flex-end;gap:10px;padding-top:18px;display:flex}.action-dialog-confirm{border-color:var(--color-danger);color:var(--color-on-danger);background:var(--color-danger)}.action-dialog-confirm:hover:not(:disabled){border-color:var(--color-danger-hover);background:var(--color-danger-hover)}.action-dialog-confirm:focus-visible,.action-dialog-close:focus-visible{outline:3px solid color-mix(in srgb, var(--color-danger) 28%, transparent);outline-offset:2px}.action-dialog-accent{border-color:var(--color-accent-border)}.action-dialog-accent .action-dialog-icon{color:var(--color-accent);background:var(--color-accent-soft)}.action-dialog-confirm-accent{border-color:var(--color-accent);color:#fff;background:var(--color-accent)}.action-dialog-confirm-accent:hover:not(:disabled){border-color:var(--color-accent-hover);background:var(--color-accent-hover)}.action-dialog-accent :is(.action-dialog-confirm,.action-dialog-close):focus-visible{outline-color:var(--color-focus-ring)}@media (max-width:560px){.action-dialog{border-radius:16px;padding:18px}.action-dialog-actions{flex-direction:column-reverse}.action-dialog-actions .button{width:100%}}.spinner{border:2px solid color-mix(in srgb, currentColor 35%, transparent);border-top-color:currentColor;border-radius:50%;width:17px;height:17px;animation:.7s linear infinite spin}.spinner-accent{border-color:color-mix(in srgb, var(--color-accent) 25%, transparent);border-top-color:var(--color-accent)}.form-feedback{border-radius:var(--radius-sm);margin:0;padding:11px 13px;font-size:14px;font-weight:600}.form-feedback-error{color:var(--color-danger);background:var(--color-danger-soft)}.form-feedback-warning{color:var(--color-warning);background:var(--color-warning-soft)}.form-feedback-warning p{margin:0}.form-feedback-warning p+p{margin-top:6px}.form-feedback-success{color:var(--color-success);background:var(--color-success-soft)}.form-footnote{color:var(--color-secondary);text-align:center;margin:2px 0 0;font-size:14px}.setup-shell{background:radial-gradient(circle at 50% 0%, #0369a117, transparent 30%), var(--color-background);min-height:100dvh;padding:28px clamp(20px,5vw,72px) 64px}.setup-header{justify-content:space-between;align-items:center;max-width:900px;margin:0 auto 42px;display:flex}.setup-badge{color:var(--color-success)}.setup-card{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);max-width:760px;box-shadow:var(--shadow-card);margin:0 auto;padding:clamp(28px,5vw,52px)}.auth-recovery-card{max-width:620px}.auth-recovery-message{margin-bottom:0}.app-shell{grid-template-columns:224px minmax(0,1fr);min-height:100dvh;display:grid}.app-shell-assistant{grid-template-columns:clamp(280px,20vw,320px) minmax(0,1fr)}.skip-link{z-index:1000;color:var(--color-on-primary);background:var(--color-accent);border-radius:8px;padding:9px 12px;transition:transform .15s;position:fixed;top:10px;left:10px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.app-sidebar{z-index:20;border-right:1px solid var(--color-border);background:var(--color-surface);height:100dvh;min-height:0;font-family:var(--font-sans);grid-template-rows:auto minmax(0,1fr) auto;gap:18px;padding:18px 12px 14px;display:grid;position:sticky;top:0;overflow:hidden}.sidebar-brand-row{gap:6px;padding:0 6px;display:grid}.sidebar-brand-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.sidebar-brand-actions .brand-mark{display:none}.overview-header-status{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:14px;display:flex}.runtime-version{color:var(--color-secondary);letter-spacing:.03em;font-size:12px;font-weight:700}.sidebar-product-label{color:var(--color-secondary);letter-spacing:.11em;text-transform:uppercase;font-size:10px;font-weight:750}.sidebar-module-header{gap:12px;display:grid}.sidebar-back{min-height:44px;color:var(--color-secondary);border-radius:9px;align-items:center;gap:10px;padding:9px 10px;font-size:13px;font-weight:400;text-decoration:none;transition:color .18s,background-color .18s;display:flex}.sidebar-back:hover{color:var(--color-primary);background:var(--color-background)}.sidebar-back svg{flex:none;width:19px;height:19px}.sidebar-module-identity{border:1px solid var(--color-accent-border);background:var(--color-accent-soft);border-radius:9px;gap:3px;padding:10px 12px;display:grid}.sidebar-module-identity span{color:var(--color-accent);letter-spacing:.1em;text-transform:uppercase;font-size:10px;font-weight:600}.sidebar-module-identity strong{color:var(--color-primary);font-size:14px;font-weight:600;line-height:1.25}.sidebar-navigation{scrollbar-gutter:stable;align-content:start;gap:18px;min-height:0;padding:2px 0;display:grid;overflow:hidden auto}.sidebar-navigation-assistant{grid-template-rows:minmax(0,1fr);align-content:stretch;padding:0;overflow:hidden}.assistant-dialog-sidebar-slot,.assistant-dialog-sidebar{width:100%;height:100%;min-height:0}.assistant-dialog-sidebar{grid-template-rows:auto minmax(0,1fr);display:grid;overflow:hidden}.sidebar-group{gap:7px;display:grid}.sidebar-group-title{color:var(--color-secondary);letter-spacing:.09em;text-transform:uppercase;margin:0;padding:0 10px;font-size:10px;font-weight:600;display:block}.sidebar-group-items{gap:3px;display:grid}.sidebar-group a{min-height:40px;color:var(--color-secondary);border-radius:10px;align-items:center;gap:9px;padding:8px 10px;font-size:13px;font-weight:400;text-decoration:none;transition:color .18s,background-color .18s,box-shadow .18s;display:flex;position:relative}.sidebar-group a:hover{color:var(--color-primary);background:var(--color-background)}.sidebar-group a.is-active{color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:inset 3px 0 0 var(--color-accent);font-weight:500}.sidebar-group a svg{flex:none;width:18px;height:18px}.sidebar-user{border-top:1px solid var(--color-border);grid-template-columns:36px minmax(0,1fr) 40px 40px;align-items:center;gap:9px;min-width:0;padding:12px 8px 0;display:grid}.sidebar-user-avatar{width:36px;height:36px;color:var(--color-accent-strong);background:var(--color-accent-soft-hover);border-radius:10px;place-items:center;font-size:14px;font-weight:600;display:grid}.sidebar-user-copy{min-width:0;display:grid}.sidebar-user-copy strong,.sidebar-user-copy span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-user-copy strong{color:var(--color-primary);font-size:12px;font-weight:600}.sidebar-user-copy span{color:var(--color-secondary);font-size:10px}.theme-toggle{cursor:pointer;border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-secondary);background:var(--color-surface);border-radius:10px;place-items:center;padding:0;transition:color .18s,border-color .18s,background-color .18s;display:grid;position:relative;overflow:hidden}.theme-toggle:hover{color:var(--color-accent-strong);border-color:var(--color-accent-border);background:var(--color-accent-soft)}.theme-toggle svg{width:20px;height:20px;transition:opacity .18s,transform .18s;position:absolute}.theme-toggle-sun{opacity:0;transform:rotate(-35deg)scale(.72)}:root[data-theme=dark] .theme-toggle-moon{opacity:0;transform:rotate(35deg)scale(.72)}:root[data-theme=dark] .theme-toggle-sun{opacity:1;transform:rotate(0)scale(1)}.sidebar-logout{cursor:pointer;width:40px;height:40px;color:var(--color-secondary);background:0 0;border:1px solid #0000;border-radius:9px;place-items:center;padding:0;transition:color .18s,border-color .18s,background-color .18s;display:grid}.sidebar-logout:hover{color:var(--color-danger);border-color:var(--color-danger-border);background:var(--color-danger-soft)}.sidebar-logout svg{width:19px;height:19px}.app-content{min-width:0;min-height:100dvh}.impersonation-banner{z-index:40;border-bottom:1px solid var(--color-warning-border);min-height:64px;color:var(--color-primary);background:var(--color-warning-soft);align-items:center;gap:12px;padding:10px clamp(18px,2vw,32px);display:flex;position:sticky;top:0;box-shadow:0 8px 22px #0f172a14}.impersonation-banner-icon{width:38px;height:38px;color:var(--color-warning);background:color-mix(in srgb, var(--color-warning) 11%, transparent);border-radius:10px;flex:none;place-items:center;display:grid}.impersonation-banner-icon svg,.impersonation-banner-exit svg{width:19px;height:19px}.impersonation-banner-copy{flex:1;gap:1px;min-width:0;font-size:13px;display:grid}.impersonation-banner-copy strong,.impersonation-banner-copy span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.impersonation-banner-copy span{color:var(--color-secondary);font-size:12px}.impersonation-banner-exit{border-color:var(--color-warning-border);min-height:42px;color:var(--color-warning);background:0 0}.impersonation-banner-exit:hover:not(:disabled){background:color-mix(in srgb, var(--color-warning) 9%, transparent)}.app-header{z-index:10;border-bottom:1px solid var(--color-border);background:var(--color-header);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:20px;width:100%;min-height:64px;margin:0 auto;padding:0 clamp(18px,2vw,32px);display:flex}.header-start{align-items:center;gap:24px;min-width:0;display:flex}.brand-link{text-decoration:none}.app-nav{align-items:center;gap:6px;display:flex}.app-nav a{border-radius:var(--radius-sm);min-height:40px;color:var(--color-secondary);align-items:center;gap:8px;padding:8px 11px;font-size:13px;text-decoration:none;transition:color .18s,background .18s;display:inline-flex}.app-nav a:hover,.app-nav a.is-active{color:var(--color-primary);background:var(--color-background)}.app-nav a.is-active{box-shadow:inset 0 0 0 1px var(--color-border)}.app-nav svg{width:18px;height:18px}.header-user{align-items:center;gap:18px;display:flex}.header-user>div{text-align:right;display:grid}.header-user strong{font-size:14px}.header-user span{color:var(--color-secondary);font-size:12px}.dashboard{width:100%;padding:var(--page-padding-top) clamp(18px, 2vw, 32px) var(--page-padding-bottom);margin:0 auto}.overview-page{max-width:1152px}.overview-page-header h1{font-size:var(--font-size-page-title);line-height:1.08}.overview-page-header p{font-size:15px;line-height:1.45}.welcome-row{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px;display:flex}.welcome-row h1{font-size:var(--font-size-page-title);margin-bottom:5px;line-height:1.1}.welcome-row p{max-width:680px;color:var(--color-secondary);margin-bottom:0;font-size:15px;line-height:1.45}.welcome-row.page-header{margin-bottom:24px}.welcome-row.page-header h1{font-size:var(--font-size-page-title);margin:0 0 5px;line-height:1.1}.welcome-row.page-header p{max-width:680px;color:var(--color-secondary);margin:0;font-size:15px;line-height:1.45}.overall-status{border:1px solid var(--color-border);background:var(--color-surface);border-radius:999px;flex:none;align-items:center;gap:9px;min-height:38px;padding:8px 12px;font-size:13px;font-weight:700;display:inline-flex}.status-dot,.service-indicator{background:var(--color-danger);border-radius:50%;width:9px;height:9px;display:inline-block}.is-ok .status-dot,.service-indicator.is-ok{background:var(--color-success);box-shadow:0 0 0 4px #0478571c}.is-error .status-dot,.service-indicator.is-error{background:var(--color-danger);box-shadow:0 0 0 4px #b91c1c17}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:18px;display:grid}.overview-grid{grid-template-columns:minmax(0,3fr) minmax(360px,2fr);align-items:start;gap:20px}.panel{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);box-shadow:0 8px 28px #0f172a0b}.status-panel,.account-panel,.user-panel{padding:var(--panel-padding)}.overview-panel{min-width:0;box-shadow:none;border-radius:16px;padding:24px}.generated-documents-layout{grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr);align-items:start;gap:20px;display:grid}.generated-documents-layout.is-list-only{grid-template-columns:minmax(0,1fr)}.generated-document-form-panel,.generated-document-list-panel{min-width:0;padding:var(--panel-padding)}.generated-document-form-panel textarea{resize:vertical;min-height:112px}.generated-document-list-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.generated-document-list-heading h2{margin:0 0 4px;font-size:22px}.generated-document-list-heading p{color:var(--color-secondary);margin:0;font-size:13px}.generated-refresh-button{flex:none}.generated-refresh-button svg,.generated-document-review svg,.generated-document-download svg{width:18px;height:18px}.generated-document-cards{gap:12px;display:grid}.generated-document-card{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);gap:12px;padding:16px;display:grid}.generated-document-card-main{grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;display:grid}.generated-document-format{width:52px;height:44px;color:var(--color-accent-strong);background:var(--color-accent-soft-hover);letter-spacing:.04em;border-radius:9px;place-items:center;font-size:11px;font-weight:850;display:grid}.generated-document-card h3{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;margin:0 0 4px;font-size:15px;overflow:hidden}.generated-document-card-main p,.generated-document-review-note,.generated-document-hint{color:var(--color-secondary);margin:0;font-size:12px;line-height:1.45}.generated-document-status{white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:5px 9px;font-size:11px;font-weight:750;display:inline-flex}.generated-document-status.is-draft{color:var(--color-warning);background:var(--color-warning-soft)}.generated-document-status.is-approved{color:var(--color-success);background:var(--color-success-soft)}.generated-document-status.is-rejected{color:var(--color-danger);background:var(--color-danger-soft)}.generated-document-review-note{background:var(--color-background);border-radius:8px;padding:10px 12px}.generated-document-review{grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:8px;display:grid}.generated-document-review label{min-width:0}.generated-document-review input{width:100%;min-height:42px}.generated-document-review .button,.generated-document-download .button{min-height:42px;padding:8px 12px;font-size:12px}.review-reject-button:hover{color:var(--color-danger);border-color:var(--color-danger-border);background:var(--color-danger-soft)}.generated-document-download{justify-content:flex-end;display:flex}.generated-document-hint{padding-left:64px}.work-practice-panel{padding:26px}.work-practice-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:14px;display:grid}.work-practice-card{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);align-content:start;gap:14px;padding:18px;display:grid}.work-practice-card-heading{grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;display:grid}.work-practice-icon{width:46px;height:46px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:11px;place-items:center;display:grid}.work-practice-icon svg{width:23px;height:23px}.work-practice-card h3{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;margin:0 0 4px;font-size:16px;overflow:hidden}.work-practice-card-heading p,.work-practice-purpose{color:var(--color-secondary);margin:0;font-size:12px;line-height:1.5}.work-practice-purpose{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.work-practice-status{white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:5px 9px;font-size:11px;font-weight:750;display:inline-flex}.work-practice-status.is-candidate{color:var(--color-warning);background:var(--color-warning-soft)}.work-practice-status.is-approved{color:var(--color-success);background:var(--color-success-soft)}.work-practice-status.is-rejected{color:var(--color-danger);background:var(--color-danger-soft)}.work-practice-status.is-archived{color:var(--color-secondary);background:var(--color-neutral-soft)}.work-practice-actions{justify-content:flex-end;display:flex}.work-practice-actions .button{min-height:40px;padding:8px 12px;font-size:12px}.work-practice-actions svg{width:17px;height:17px}.documents-hero{align-items:flex-start}.documents-layout{display:block}.documents-layout-single{grid-template-columns:minmax(0,1fr)}.documents-main-column,.knowledge-sources-workspace{gap:20px;min-width:0;display:grid}.knowledge-topics-browser{padding:var(--panel-padding)}.knowledge-topics-heading,.knowledge-topic-sources-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.knowledge-topics-heading h2,.knowledge-topic-sources h3{margin:0}.knowledge-topics-heading p,.knowledge-topics-scope,.knowledge-topics-empty,.knowledge-topic-sources p{color:var(--color-secondary);max-width:72ch;line-height:1.6}.knowledge-topics-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);gap:28px;margin-top:24px;display:grid}.knowledge-topics-navigation,.knowledge-topic-sources{min-width:0}.knowledge-topics-search{gap:8px;font-weight:600;display:grid}.knowledge-topics-search input{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);width:100%;min-width:0;min-height:44px;color:var(--color-foreground);font:inherit;padding:10px 12px}.knowledge-topics-search input::placeholder{color:var(--color-secondary)}.knowledge-topics-search input:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.knowledge-topic-list,.knowledge-topic-document-list{margin:16px 0 0;padding:0;list-style:none}.knowledge-topic-list{max-height:480px;overflow-y:auto}.knowledge-topic-choice{border-radius:var(--radius-sm);width:100%;min-height:44px;color:var(--color-foreground);font:inherit;text-align:start;cursor:pointer;background:0 0;border:1px solid #0000;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.knowledge-topic-choice>span:first-child{overflow-wrap:anywhere}.knowledge-topic-choice:hover{background:var(--color-neutral-soft)}.knowledge-topic-choice[aria-pressed=true]{color:var(--color-accent-strong);background:var(--color-accent-soft);border-color:var(--color-accent-border)}.knowledge-topic-choice:focus-visible,.knowledge-topic-sources h3:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.knowledge-topic-count{font-variant-numeric:tabular-nums;flex-shrink:0}.knowledge-topic-unassigned{border-top-color:var(--color-border);margin-top:16px}.knowledge-topic-sources{border-inline-start:1px solid var(--color-border);padding-inline-start:28px}.knowledge-topic-sources h3{overflow-wrap:anywhere}.knowledge-topic-document-list li{border-bottom:1px solid var(--color-border);overflow-wrap:anywhere;gap:8px;padding:16px 0;display:grid}.knowledge-topic-document-list li>span{color:var(--color-secondary)}.knowledge-topic-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;display:flex}@media (max-width:760px){.knowledge-topics-layout{grid-template-columns:minmax(0,1fr);gap:24px}.knowledge-topic-list{max-height:280px}.knowledge-topic-sources{border-inline-start:0;border-top:1px solid var(--color-border);padding-inline-start:0;padding-top:24px}.knowledge-topics-heading,.knowledge-topic-sources-heading{flex-wrap:wrap}}.knowledge-sources-tabs{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:max-content;max-width:100%;box-shadow:var(--shadow-soft);scrollbar-width:thin;gap:4px;padding:4px;display:inline-flex;overflow-x:auto}.knowledge-sources-tabs button{cursor:pointer;border-radius:calc(var(--radius-md) - 5px);min-height:44px;color:var(--color-secondary);font:inherit;white-space:nowrap;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-size:14px;font-weight:750;transition:color .16s,background .16s,box-shadow .16s;display:inline-flex}.knowledge-sources-tabs button:hover{color:var(--color-primary);background:var(--color-surface-muted)}.knowledge-sources-tabs button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.knowledge-sources-tabs button.is-active{color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:0 1px 4px color-mix(in srgb, var(--color-primary) 10%, transparent)}.knowledge-sources-tabs svg{flex-shrink:0;width:18px;height:18px}.knowledge-sources-workspace>[role=tabpanel]{outline:none;min-width:0}@media (max-width:640px){.knowledge-sources-tabs{flex-wrap:wrap;width:100%}.knowledge-sources-tabs button{flex:1 0 auto;min-width:min-content;padding-inline:10px}}.document-upload-panel,.document-list-panel{padding:var(--panel-padding)}.upload-progress{border-radius:var(--radius-sm);min-height:48px;color:var(--color-accent);background:var(--color-accent-soft);justify-content:space-between;align-items:center;gap:16px;padding:10px 12px;font-size:14px;font-weight:700;display:flex}.upload-progress progress{width:min(180px,45%);accent-color:var(--color-accent)}.spinner-accent{border-color:#0369a140;border-top-color:var(--color-accent);flex:none}.document-list-heading{align-items:center}.document-list-heading>div{flex:1}.document-heading-actions{flex:none;justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:flex}.document-list-heading>.document-heading-actions{flex:none}.document-heading-actions .button{align-items:center;gap:8px;display:inline-flex}.document-heading-actions .button svg{width:18px;height:18px}.documents-feedback{margin:0 0 16px}.documents-toast-region{z-index:140;right:max(16px, env(safe-area-inset-right));bottom:max(16px, env(safe-area-inset-bottom));pointer-events:none;width:min(480px,100vw - 32px);position:fixed}.documents-toast{border-radius:var(--radius-sm);background:var(--color-surface);border:1px solid var(--color-success);pointer-events:auto;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;display:flex}.documents-toast p{overflow-wrap:anywhere;flex:240px;min-width:0;margin:0}.documents-toast .button{flex-shrink:0;min-height:44px}.knowledge-source-dialog-backdrop{z-index:145;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#020617b3;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.knowledge-source-dialog{border:1px solid var(--color-border);width:min(100%,920px);max-height:calc(100dvh - 40px);color:var(--color-primary);background:var(--color-surface);border-radius:18px;gap:16px;padding:22px;display:grid;overflow:auto;box-shadow:0 30px 90px #0206176b}.knowledge-source-dialog-header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.knowledge-source-dialog-header h2{margin:4px 0 3px;font-size:clamp(22px,2.5vw,28px)}.knowledge-source-dialog-header p{color:var(--color-secondary);margin:0}.knowledge-source-dialog-header>button{border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-secondary);background:var(--color-neutral-soft);cursor:pointer;border-radius:11px;flex:none;place-items:center;padding:0;display:grid}.knowledge-source-dialog-header>button:hover:not(:disabled){color:var(--color-foreground);background:var(--color-muted)}.knowledge-source-dialog-header>button svg{width:18px;height:18px}.publication-dialog{width:min(100%,760px)}.publication-form{gap:18px;display:grid}.publication-form>label,.publication-form fieldset{border:0;gap:9px;margin:0;padding:0;display:grid}.publication-form>label>span,.publication-form legend{color:var(--color-primary);font-size:14px;font-weight:800}.publication-form select{border:1px solid var(--color-border);min-height:44px;color:var(--color-primary);background:var(--color-surface-raised);font:inherit;border-radius:11px;padding:0 12px}.publication-form small{color:var(--color-secondary);line-height:1.45}.publication-choice{border:1px solid var(--color-border);background:var(--color-neutral-soft);cursor:pointer;border-radius:11px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.publication-choice input{margin-top:3px}.publication-choice span{gap:2px;display:grid}.publication-audience-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.publication-audience-grid fieldset{border:1px solid var(--color-border);border-radius:14px;align-content:start;max-height:260px;padding:14px;overflow:auto}.publication-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.access-groups-panel{gap:0;display:grid}.access-groups-panel .user-directory-toolbar{padding:20px 22px}.access-groups-panel>.form-feedback{margin:0 22px 20px}.access-groups-summary{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.access-groups-summary span{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;padding:7px 10px;font-size:13px}.access-groups-summary strong{color:var(--color-primary)}.access-group-members{gap:3px;max-width:320px;display:grid}.access-group-members span{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.access-group-dialog{width:min(100%,820px)}.access-group-form-grid{grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:16px;display:grid}.access-group-form-grid>label{gap:7px;display:grid}.access-group-form-grid>label>span,.access-group-member-picker legend{color:var(--color-primary);font-size:14px;font-weight:800}.access-group-form-grid input,.access-group-form-grid select,.access-group-form-grid textarea{border:1px solid var(--color-border);width:100%;color:var(--color-primary);background:var(--color-surface-raised);font:inherit;border-radius:11px;padding:11px 13px}.access-group-form-grid textarea{resize:vertical}.access-group-wide{grid-column:1/-1}.access-group-member-picker{border:1px solid var(--color-border);border-radius:14px;gap:10px;min-width:0;margin:0;padding:14px;display:grid}.access-group-member-picker>div{gap:7px;max-height:300px;display:grid;overflow:auto}.access-group-member-picker .user-role-option{grid-template-columns:auto minmax(0,1fr) auto}.access-group-member-picker .user-role-option>svg{width:18px;color:var(--color-success)}@media (max-width:680px){.publication-audience-grid,.access-group-form-grid{grid-template-columns:1fr}.access-group-wide{grid-column:auto}}.knowledge-source-url-form,.knowledge-source-file-form,.knowledge-source-text-form{gap:12px;display:grid}.knowledge-source-mode-tabs{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;padding:5px;display:grid}.knowledge-source-mode-tabs button{min-height:42px;color:var(--color-secondary);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:8px 14px;font-size:14px;font-weight:800}.knowledge-source-mode-tabs button.is-active{color:var(--color-accent-strong);background:var(--color-surface);box-shadow:var(--shadow-soft)}.knowledge-source-mode-tabs button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.knowledge-source-text-form>label{color:var(--color-primary);gap:8px;font-size:14px;font-weight:800;display:grid}.knowledge-source-text-form>label textarea{resize:vertical;border:1px solid var(--color-border);width:100%;min-height:220px;color:var(--color-primary);background:var(--color-surface-raised);font:inherit;border-radius:14px;padding:14px 16px;line-height:1.55}.knowledge-source-form-actions{justify-content:flex-end;display:flex}.knowledge-curator-panel,.knowledge-required-actions{gap:18px;display:grid}.knowledge-action-sections{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;gap:5px;width:max-content;max-width:100%;padding:5px;display:inline-flex}.knowledge-action-sections button{cursor:pointer;min-height:42px;color:var(--color-secondary);font:inherit;background:0 0;border:0;border-radius:10px;align-items:center;gap:8px;padding:8px 14px;font-size:14px;font-weight:800;display:inline-flex}.knowledge-action-sections button:hover{color:var(--color-primary)}.knowledge-action-sections button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.knowledge-action-sections button.is-active{color:var(--color-accent-strong);background:var(--color-surface);box-shadow:var(--shadow-soft)}.knowledge-action-sections button span{font-variant-numeric:tabular-nums}.knowledge-action-panel{gap:18px;display:grid}.embedded-curator-heading{justify-content:space-between;align-items:center;gap:18px;display:flex}.embedded-curator-heading p{max-width:72ch;color:var(--color-secondary);margin:0;line-height:1.5}.curator-page-heading{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.curator-page-heading h2,.curator-page-heading p,.curator-task-title h3,.curator-detail-heading h3,.curator-detail-heading p,.curator-detail-section h4,.curator-detail-section p{margin:0}.curator-page-heading h2{color:var(--color-primary);font-size:clamp(26px,3vw,34px);line-height:1.15}.curator-page-heading p{color:var(--color-secondary);margin-top:8px;line-height:1.5}.curator-diagnostics-link{cursor:pointer;min-height:40px;color:var(--color-accent);font:inherit;background:0 0;border:0;flex:none;padding:6px 0;font-size:14px;font-weight:700}.curator-diagnostics-link:hover,.curator-diagnostics-link:focus-visible{color:var(--color-accent-hover);text-underline-offset:4px;text-decoration:underline}.curator-diagnostics-panel{gap:16px;padding:20px 22px;display:grid}.curator-diagnostics-panel .section-heading{margin:0}.curator-diagnostics-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0;padding:0;list-style:none;display:grid}.curator-diagnostics-list li{border-top:1px solid var(--color-border);gap:4px;padding:12px 0;display:grid}.curator-diagnostics-list strong{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.curator-diagnostics-list span{color:var(--color-secondary);font-size:13px;line-height:1.45}.curator-workspace{grid-template-columns:minmax(320px,.78fr) minmax(0,1.42fr);align-items:stretch;gap:14px;min-height:680px;display:grid}.curator-task-panel,.curator-detail-panel{min-width:0;padding:0;overflow:hidden}.curator-task-panel{flex-direction:column;display:flex}.curator-task-header{gap:16px;padding:22px;display:grid}.curator-task-title{justify-content:space-between;align-items:center;gap:16px;display:flex}.curator-task-title h3,.curator-task-title strong{color:var(--color-primary);font-size:20px}.curator-filter-row{flex-wrap:wrap;gap:8px;display:flex}.curator-filter-row button{cursor:pointer;border:1px solid var(--color-border);min-height:36px;color:var(--color-secondary);background:var(--color-surface);font:inherit;border-radius:10px;align-items:center;gap:6px;padding:7px 11px;font-size:13px;font-weight:700;display:inline-flex}.curator-filter-row button:hover{border-color:var(--color-border-strong);color:var(--color-primary)}.curator-filter-row button.is-active{border-color:var(--color-accent);color:var(--color-accent-strong);background:var(--color-accent-soft)}.curator-filter-row button span{font-variant-numeric:tabular-nums}.curator-search{border:1px solid var(--color-border);min-height:46px;color:var(--color-secondary);background:var(--color-surface-raised);border-radius:11px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:0 13px;display:grid}.curator-search:focus-within{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring)}.curator-search svg{width:19px;height:19px}.curator-search input{width:100%;min-width:0;color:var(--color-primary);font:inherit;background:0 0;border:0;outline:0}.curator-search input::placeholder{color:var(--color-secondary)}.curator-task-list{border-top:1px solid var(--color-border);margin:0;padding:0;list-style:none}.curator-task-list li+li{border-top:1px solid var(--color-border)}.curator-task-list button{cursor:pointer;width:100%;min-height:82px;color:var(--color-primary);text-align:left;background:0 0;border:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px 20px;display:grid}.curator-task-list button:hover{background:var(--color-neutral-hover)}.curator-task-list button:disabled{cursor:wait}.curator-task-list button.is-active{box-shadow:inset 3px 0 0 var(--color-accent);background:var(--color-accent-soft)}.curator-task-list .source-file-visual{width:42px;height:42px}.curator-task-copy{gap:5px;min-width:0;display:grid}.curator-task-copy strong,.curator-task-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.curator-task-copy strong{font-size:14px;font-weight:750}.curator-task-copy small{color:var(--color-secondary);font-size:12px}.curator-task-chevron{width:18px;height:18px;color:var(--color-secondary);transform:rotate(-90deg)}.curator-proposal-icon{border:1px solid var(--color-warning-border);width:42px;height:42px;color:var(--color-warning);background:var(--color-warning-soft);border-radius:11px;flex:none;place-items:center;display:grid}.curator-proposal-icon svg{width:23px;height:23px}.curator-proposal-icon.is-large{width:48px;height:48px}.curator-task-empty,.curator-detail-empty{min-height:220px;color:var(--color-secondary);text-align:center;place-content:center;gap:6px;padding:28px;display:grid}.curator-task-empty strong,.curator-detail-empty strong{color:var(--color-primary);font-size:17px}.curator-task-empty>svg,.curator-detail-empty>svg{width:32px;height:32px;color:var(--color-accent);justify-self:center;margin-bottom:6px}.curator-pagination{border-top:1px solid var(--color-border);min-height:64px;color:var(--color-secondary);justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding:12px 20px;font-size:13px;display:flex}.curator-pagination>div{align-items:center;gap:7px;display:flex}.curator-pagination button{cursor:pointer;border:1px solid var(--color-border);width:34px;height:34px;color:var(--color-primary);background:var(--color-surface);border-radius:8px;place-items:center;padding:0;display:grid}.curator-pagination button:disabled{cursor:not-allowed;opacity:.4}.curator-pagination button:first-of-type svg{transform:rotate(90deg)}.curator-pagination button:last-of-type svg{transform:rotate(-90deg)}.curator-pagination svg{width:17px;height:17px}.curator-pagination strong{border:1px solid var(--color-accent);min-width:34px;height:34px;color:var(--color-accent-strong);font-variant-numeric:tabular-nums;border-radius:8px;place-items:center;display:grid}.curator-detail-panel{flex-direction:column;display:flex}.curator-detail-heading{align-items:center;gap:14px;padding:24px 26px;display:flex}.curator-detail-heading .source-file-visual{width:48px;height:48px}.curator-detail-heading h3{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:21px;line-height:1.25;overflow:hidden}.curator-detail-heading p{color:var(--color-secondary);margin-top:6px;font-size:13px}.curator-detail-section{border-top:1px solid var(--color-border);padding:22px 26px}.curator-detail-section h4{color:var(--color-primary);font-size:15px}.curator-detail-section>p{color:var(--color-secondary);margin-top:9px;font-size:14px;line-height:1.55}.curator-model-suggestion{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 18px;display:grid}.curator-model-suggestion>div{gap:9px;display:grid}.curator-model-suggestion strong{color:var(--color-primary);font-size:17px}.curator-model-suggestion b{color:var(--color-accent-strong);font-variant-numeric:tabular-nums;font-size:20px}.curator-model-suggestion>p{color:var(--color-secondary);grid-column:1/-1;margin:3px 0 0;font-size:13px;line-height:1.5}.curator-domain-field{gap:9px;display:grid}.curator-domain-field label{color:var(--color-primary);font-size:15px;font-weight:750}.curator-domain-field select{border:1px solid var(--color-border);width:100%;min-height:48px;color:var(--color-primary);background:var(--color-surface-raised) var(--select-chevron) no-repeat right 13px center / 18px;appearance:none;font:inherit;border-radius:10px;padding:9px 42px 9px 13px}.curator-domain-field select:focus{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring)}.curator-source-preview{gap:12px;display:grid}.curator-source-preview>div{border:1px solid var(--color-border);max-height:180px;color:var(--color-secondary);background:var(--color-background);white-space:pre-wrap;border-radius:10px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.6;overflow:auto}.curator-source-preview>div.is-loading{min-height:86px;animation:1.2s ease-in-out infinite alternate curator-preview-pulse}@keyframes curator-preview-pulse{0%{opacity:.55}to{opacity:1}}.curator-proposal-evidence p{overflow-wrap:anywhere}.curator-detail-actions{border-top:1px solid var(--color-border);grid-template-columns:minmax(0,auto) minmax(120px,.45fr);gap:10px;margin-top:auto;padding:20px 26px;display:grid}.curator-detail-actions small{color:var(--color-secondary);grid-column:1/-1;font-size:12px}.knowledge-action-reasons ul{gap:14px;margin:14px 0 0;padding:0;list-style:none;display:grid}.knowledge-action-reasons li{border-top:1px solid var(--color-border);gap:5px;padding-top:14px;display:grid}.knowledge-action-reasons li strong{color:var(--color-primary);font-size:15px}.knowledge-action-reasons li span{max-width:72ch;color:var(--color-secondary);font-size:14px;line-height:1.5}.knowledge-action-buttons{grid-template-columns:repeat(2,minmax(0,auto));justify-content:start}.knowledge-redaction-review-dialog{grid-template-rows:auto auto minmax(120px,1fr) auto auto auto}.knowledge-redaction-review-intro{color:var(--color-secondary);background:var(--color-accent-soft);border-radius:12px;align-items:flex-start;gap:11px;padding:13px 15px;display:flex}.knowledge-redaction-review-intro svg{width:22px;height:22px;color:var(--color-accent-strong);flex:none}.knowledge-redaction-review-intro p{max-width:72ch;margin:0;line-height:1.5}.knowledge-redaction-review-note{color:var(--color-primary);gap:7px;font-size:14px;font-weight:750;display:grid}.knowledge-redaction-review-note textarea{resize:vertical;border:1px solid var(--color-border);min-height:86px;color:var(--color-primary);background:var(--color-surface-raised);font:inherit;border-radius:11px;padding:11px 13px;line-height:1.5}.knowledge-redaction-review-note textarea:focus{border-color:var(--color-accent);outline:3px solid var(--color-focus-ring)}.curator-proposal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width:1120px){.curator-workspace{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)}.curator-task-header,.curator-task-list button{padding-left:16px;padding-right:16px}}@media (max-width:900px){.curator-workspace{grid-template-columns:1fr;min-height:0}.curator-task-panel{min-height:560px}.knowledge-action-workspace .curator-task-panel{min-height:0}.curator-diagnostics-list{grid-template-columns:1fr}}@media (max-width:640px){.curator-page-heading,.curator-diagnostics-panel .section-heading,.curator-pagination{flex-direction:column;align-items:stretch}.curator-diagnostics-link{align-self:flex-start}.knowledge-action-sections{flex-wrap:wrap;width:100%}.knowledge-action-sections button{flex:auto;justify-content:center;min-width:min-content}.embedded-curator-heading{flex-direction:column;align-items:stretch}.curator-filter-row button{flex:auto;justify-content:center}.curator-task-panel{min-height:520px}.curator-detail-heading,.curator-detail-section,.curator-detail-actions{padding-left:18px;padding-right:18px}.curator-detail-heading h3{white-space:normal}.curator-detail-actions,.curator-proposal-actions,.knowledge-action-buttons{grid-template-columns:1fr}.curator-detail-actions small{grid-column:1}}.knowledge-catalog-filters{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;display:grid}.knowledge-catalog-filters select,.classification-editor-grid select{border:1px solid var(--color-border);width:100%;min-height:40px;color:var(--color-primary);background:var(--color-surface) var(--select-chevron) no-repeat right 11px center / 15px;appearance:none;font:inherit;border-radius:9px;padding:7px 36px 7px 11px;font-size:13px}.source-stage-track{grid-template-columns:repeat(4,1fr);gap:3px;width:96px;margin-top:7px;display:grid}.source-stage-track i{background:var(--color-muted);border-radius:999px;height:4px}.source-stage-track i.is-done{background:var(--color-accent)}.classification-editor-dialog{width:min(100%,860px)}.classification-editor-form{gap:18px;display:grid}.classification-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.classification-editor-grid label{color:var(--color-primary);gap:7px;font-size:13px;font-weight:750;display:grid}.classification-editor-form fieldset{border:1px solid var(--color-border);border-radius:12px;margin:0;padding:14px}.classification-editor-form legend{color:var(--color-primary);padding:0 6px;font-size:13px;font-weight:800}.classification-choice-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;display:grid}.classification-choice-grid label{color:var(--color-secondary);align-items:center;gap:8px;font-size:13px;display:flex}.classification-editor-actions{border-top:1px solid var(--color-border);justify-content:flex-end;gap:10px;padding-top:16px;display:flex}.collection-asset-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (max-width:760px){.classification-editor-grid{grid-template-columns:1fr}}.knowledge-source-url-form>label{color:var(--color-primary);font-size:14px;font-weight:800}.knowledge-source-url-box{border:2px solid var(--color-accent);background:var(--color-surface-raised);border-radius:18px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:60px;padding:8px 10px 8px 14px;transition:box-shadow .14s,border-color .14s;display:grid;box-shadow:0 0 0 4px #0000}.knowledge-source-url-box:focus-within{box-shadow:0 0 0 4px var(--color-focus-ring)}.knowledge-source-url-box>svg{width:22px;height:22px;color:var(--color-secondary)}.knowledge-source-url-box input{width:100%;min-height:44px;color:var(--color-primary);font:inherit;background:0 0;border:0;outline:0;padding:0;font-size:17px}.knowledge-source-url-box input::placeholder{color:var(--color-secondary)}.knowledge-source-submit-icon{width:44px;height:44px;color:var(--color-on-primary);background:var(--color-accent);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.knowledge-source-submit-icon:disabled{color:var(--color-secondary);background:var(--color-muted);cursor:not-allowed}.knowledge-source-submit-icon svg{width:19px;height:19px}.knowledge-source-advanced{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px}.knowledge-source-advanced summary{min-height:44px;color:var(--color-secondary);cursor:pointer;padding:12px 14px;font-size:13px;font-weight:750}.knowledge-source-advanced[open] summary{border-bottom:1px solid var(--color-border);color:var(--color-primary)}.knowledge-source-advanced-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding:16px;display:grid}.knowledge-source-advanced-grid>label{grid-column:span 3}.knowledge-source-advanced-grid>.knowledge-source-title-field{grid-column:span 4}.knowledge-source-advanced-grid>.knowledge-source-class-field{grid-column:span 2}.knowledge-source-advanced-grid label,.knowledge-source-file-settings label{color:var(--color-primary);gap:7px;font-size:13px;font-weight:750;display:grid}.knowledge-source-advanced-grid input,.knowledge-source-advanced-grid select,.knowledge-source-advanced-grid textarea,.knowledge-source-file-settings input,.knowledge-source-file-settings select{border:1px solid var(--color-border);width:100%;min-height:44px;color:var(--color-primary);background-color:var(--color-surface);font:inherit;border-radius:10px;padding:9px 12px;font-size:14px}.knowledge-source-advanced-grid select,.knowledge-source-file-settings select{appearance:none;background-image:var(--select-chevron);background-position:right 13px center;background-repeat:no-repeat;background-size:16px;padding-right:40px}.knowledge-source-advanced-grid textarea{resize:vertical;min-height:82px}.knowledge-source-advanced>p{color:var(--color-secondary);margin:10px 16px 15px;font-size:12px}.knowledge-source-divider{color:var(--color-secondary);text-transform:uppercase;align-items:center;gap:12px;font-size:12px;font-weight:800;display:flex}.knowledge-source-divider:before,.knowledge-source-divider:after{background:var(--color-border);content:"";flex:1;height:1px}.knowledge-source-dropzone{border:2px dashed var(--color-border);min-height:240px;color:var(--color-secondary);background:var(--color-neutral-soft);text-align:center;border-radius:18px;align-content:center;place-items:center;gap:9px;padding:28px;transition:border-color .14s,background .14s,transform .14s;display:grid}.knowledge-source-dropzone.is-dragging{border-color:var(--color-accent);background:var(--color-accent-soft);transform:scale(1.005)}.knowledge-source-dropzone-icon{width:54px;height:54px;color:var(--color-accent);background:var(--color-accent-soft);border-radius:15px;place-items:center;margin-bottom:2px;display:grid}.knowledge-source-dropzone-icon svg{width:28px;height:28px}.knowledge-source-dropzone strong{color:var(--color-primary);font-size:20px}.knowledge-source-dropzone>span:not(.knowledge-source-dropzone-icon){font-size:13px}.knowledge-source-dropzone .button{align-items:center;gap:8px;margin-top:8px;display:inline-flex}.knowledge-source-dropzone .button svg{width:18px;height:18px}.knowledge-source-file-list{border:1px solid var(--color-border);background:var(--color-surface-raised);border-radius:14px;max-height:228px;margin:0;padding:6px;list-style:none;display:grid;overflow-y:auto}.knowledge-source-file-list li{border-radius:10px;grid-template-columns:22px minmax(0,1fr) 36px;align-items:center;gap:10px;min-width:0;padding:8px 10px;display:grid}.knowledge-source-file-list li+li{border-top:1px solid var(--color-border);border-radius:0}.knowledge-source-file-list li>svg{width:20px;color:var(--color-accent)}.knowledge-source-file-list li>span{gap:2px;min-width:0;display:grid}.knowledge-source-file-list strong{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.knowledge-source-file-list small{color:var(--color-secondary);font-size:12px}.knowledge-source-file-list button{width:36px;height:36px;color:var(--color-secondary);cursor:pointer;background:0 0;border:0;border-radius:9px;place-items:center;display:grid}.knowledge-source-file-list button:hover:not(:disabled){color:var(--color-danger);background:var(--color-danger-soft)}.knowledge-source-file-list button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.knowledge-source-file-list button svg{width:17px;height:17px}.knowledge-source-file-settings{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;grid-template-columns:minmax(0,1fr) minmax(190px,.45fr) auto;align-items:end;gap:12px;padding:14px;display:grid}.knowledge-source-file-batch-note{align-self:center;gap:4px;min-width:0;display:grid}.knowledge-source-file-batch-note strong{color:var(--color-primary);font-size:13px}.knowledge-source-file-batch-note span{color:var(--color-secondary);font-size:12px;line-height:1.4}.knowledge-source-file-settings .button{justify-content:center;align-items:center;gap:8px;min-height:44px;display:inline-flex}.knowledge-source-file-settings .button svg{width:18px;height:18px}.empty-state{min-height:180px;color:var(--color-secondary);text-align:center;align-content:center;place-items:center;gap:8px;margin:0;display:grid}.empty-state svg{width:34px;height:34px;color:var(--color-secondary)}.empty-state strong{color:var(--color-primary)}.document-table-wrap{max-width:100%;overflow-x:auto}.document-pagination{justify-content:center;padding-top:20px;display:flex}.document-table{border-collapse:collapse;width:100%;font-size:14px}.document-table th,.document-table td{border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle;padding:14px 10px}.document-table th{color:var(--color-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:12px}.document-table td:first-child{min-width:190px}.document-table td:first-child>strong,.document-table td:first-child>span,.document-source-copy>strong,.document-source-copy>span{display:block}.document-table td:first-child>span,.document-source-copy>span{color:var(--color-secondary);overflow-wrap:anywhere;margin-top:2px;font-size:12px}.document-source-summary{align-items:center;gap:12px;min-width:0;display:flex}.document-source-copy{min-width:0}.source-type{border:1px solid var(--color-border);min-height:28px;color:var(--color-secondary);background:var(--color-neutral-soft);white-space:nowrap;border-radius:999px;align-items:center;padding:4px 8px;font-size:12px;font-weight:700;display:inline-flex}.document-status{min-height:28px;color:var(--color-secondary);background:var(--color-muted);white-space:nowrap;border-radius:999px;align-items:center;padding:4px 8px;font-size:12px;font-weight:700;display:inline-flex}.status-uploaded,.status-ready,.status-active{color:var(--color-success);background:var(--color-success-soft)}.status-failed,.status-revoked{color:var(--color-danger);background:var(--color-danger-soft)}.status-inactive,.status-paused{color:var(--color-secondary);background:var(--color-muted)}.status-blocked{color:var(--color-danger);background:var(--color-danger-soft)}.status-processing,.status-queued,.status-syncing{color:var(--color-accent);background:var(--color-accent-soft)}.connector-settings-dialog{width:min(100%,760px)}.connector-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.connector-settings-grid label{color:var(--color-primary);gap:7px;font-size:13px;font-weight:750;display:grid}.connector-settings-grid input,.connector-settings-grid select,.connector-settings-grid textarea{border:1px solid var(--color-border);width:100%;min-height:44px;color:var(--color-primary);background:var(--color-surface);font:inherit;border-radius:10px;padding:9px 12px;font-size:14px}.connector-settings-grid select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--color-secondary) 50%), linear-gradient(135deg, var(--color-secondary) 50%, transparent 50%);background-position:calc(100% - 18px) 18px,calc(100% - 13px) 18px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:38px}.connector-settings-grid input[readonly]{color:var(--color-secondary);background:var(--color-neutral-soft)}.connector-settings-grid textarea{resize:vertical;min-height:100px}.connector-settings-grid small{color:var(--color-secondary);font-weight:500}.connector-settings-wide{grid-column:1/-1}.connector-settings-footer,.connector-settings-footer>div{align-items:center;gap:10px;display:flex}.connector-settings-footer{border-top:1px solid var(--color-border);justify-content:space-between;padding-top:16px}.document-actions{white-space:nowrap;width:1%;text-align:right!important}.document-actions-inner{justify-content:flex-end;align-items:center;gap:8px;display:flex}.button-compact{min-height:40px;padding:7px 10px;font-size:13px}.document-action-icon{width:40px;min-width:40px;padding:7px}.document-action-delete{color:var(--color-danger)}.document-action-delete:hover:not(:disabled){border-color:var(--color-danger);background:var(--color-danger-soft)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.section-heading{align-items:flex-start;gap:12px;margin-bottom:20px;display:flex}.compact-heading{margin-bottom:2px}.section-heading h2{font-size:var(--font-size-section-title);margin-bottom:3px}.section-heading p{color:var(--color-secondary);margin-bottom:0;font-size:13px;line-height:1.45}.section-icon{width:38px;height:38px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:11px;flex:none;place-items:center;display:grid}.section-icon svg{width:19px;height:19px}.overview-page .section-heading{align-items:center;gap:14px;margin-bottom:24px}.overview-page .section-heading h2{overflow-wrap:anywhere;margin:0;font-size:20px;line-height:1.2}.overview-page .section-heading>div{min-width:0}.overview-page .section-heading p{margin-top:5px;line-height:1.45}.overview-page .section-icon{border-radius:12px;width:42px;height:42px}.overview-page .section-icon svg{width:21px;height:21px}.service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.service-item{border:1px solid var(--color-border);background:var(--color-background);border-radius:10px;align-items:center;gap:13px;min-height:76px;padding:14px;display:flex}.service-item>div{display:grid}.service-item strong{font-size:14px}.service-item span:last-child{color:var(--color-secondary);font-variant-numeric:tabular-nums;font-size:12px}.overview-page .service-grid{gap:16px}.overview-page .service-item{background:0 0;border-radius:12px;min-height:74px;padding:16px}.overview-page .service-indicator{width:10px;height:10px;box-shadow:none;flex:none}.overview-page .service-item strong{font-size:14px;line-height:1.25}.overview-page .service-item span:last-child{margin-top:2px}.tag-group{flex-wrap:wrap;gap:8px;display:flex}.tag{border:1px solid var(--color-border);min-height:28px;color:var(--color-secondary);background:var(--color-background);border-radius:7px;align-items:center;padding:4px 9px;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;display:inline-flex}.tag-primary{color:var(--color-accent-strong);border-color:var(--color-accent-border);background:var(--color-accent-soft)}.access-summary{gap:12px;margin:0;display:grid}.overview-page .access-summary{gap:16px}.access-summary>div{border:1px solid var(--color-border);background:var(--color-background);border-radius:10px;grid-template-columns:minmax(112px,.5fr) minmax(0,1fr);align-items:start;gap:14px;padding:12px 14px;display:grid}.overview-page .access-summary>div{background:0 0;border-radius:12px;min-height:86px;padding:20px}.overview-page .access-summary>.access-department{grid-template-columns:1fr;gap:5px}.overview-page .access-summary>.access-roles{grid-template-columns:minmax(112px,1fr) minmax(0,auto);align-items:center}.access-summary dt,.permission-label{color:var(--color-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:700}.access-summary dd{color:var(--color-primary);margin:0;font-size:14px;font-weight:700}.overview-page .access-department dd{font-size:18px;line-height:1.25}.access-role-list{flex-wrap:wrap;gap:7px;display:flex}.access-role{border:1px solid var(--color-accent-border);min-height:28px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:999px;align-items:center;padding:4px 9px;font-size:12px;font-weight:700;display:inline-flex}.overview-page .access-role{text-align:center;border-radius:12px;justify-content:center;min-height:38px;padding:8px 14px}.access-role.is-muted{color:var(--color-secondary);border-color:var(--color-border);background:var(--color-neutral-soft)}.access-explanation{color:var(--color-secondary);margin-top:16px;font-size:13px;line-height:1.55}.overview-page .access-explanation{color:color-mix(in srgb, var(--color-primary) 82%, var(--color-secondary));margin-top:24px;font-size:14px;line-height:1.6}.access-explanation p{margin:0}.access-explanation p+p{margin-top:6px}.access-help{color:var(--color-secondary);justify-content:space-between;align-items:center;gap:14px;margin-top:18px;font-size:12px;line-height:1.45;display:flex}.overview-page .access-help{margin-top:16px;font-size:13px;line-height:1.55}.access-manage-link{flex:none;min-height:38px;padding:7px 11px;font-size:12px}.overview-page .access-manage-link{border-radius:12px;min-height:42px;padding:9px 14px;font-size:13px}.permission-details{border-top:1px solid var(--color-border);margin-top:24px;padding-top:20px}.overview-page .permission-details{margin-top:24px;padding-top:24px}.permission-details summary{cursor:pointer;color:var(--color-secondary);justify-content:space-between;align-items:center;gap:12px;font-size:12px;font-weight:700;list-style:none;display:flex}.overview-page .permission-details summary{border:1px solid var(--color-border);min-height:48px;color:var(--color-primary);background:var(--color-neutral-soft);border-radius:12px;padding:11px 13px;font-size:14px;font-weight:600;transition:border-color .16s,background-color .16s}.overview-page .permission-details summary:hover{border-color:var(--color-border-strong);background:var(--color-neutral-hover)}.permission-details summary::-webkit-details-marker{display:none}.permission-details summary:before{content:"›";color:var(--color-accent);font-size:19px;line-height:1;transition:transform .16s}.overview-page .permission-details summary:before{font-size:22px}.permission-details[open] summary:before{transform:rotate(90deg)}.permission-details summary>span{min-width:26px;height:26px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:999px;place-items:center;margin-left:auto;font-size:11px;display:grid}.overview-page .permission-details summary>span{border-radius:6px}.permission-details .tag-group{margin-top:14px}.empty-inline{color:var(--color-secondary);font-size:12px}@media (max-width:560px){.access-summary>div{grid-template-columns:1fr;gap:7px}.access-help{flex-direction:column;align-items:stretch}.access-manage-link{width:100%}}.user-panel{max-width:820px;margin-top:20px}.user-management-panel{margin-top:0;overflow:hidden}.directory-hero{margin-bottom:24px}.organization-section-tabs{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:max-content;max-width:100%;box-shadow:var(--shadow-soft);scrollbar-width:thin;gap:4px;margin-bottom:20px;padding:4px;display:inline-flex;overflow-x:auto}.organization-section-tabs a{border-radius:calc(var(--radius-md) - 5px);min-height:44px;color:var(--color-secondary);white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-size:14px;font-weight:750;text-decoration:none;transition:color .16s,background .16s,box-shadow .16s;display:inline-flex}.organization-section-tabs a:hover{color:var(--color-primary);background:var(--color-neutral-soft)}.organization-section-tabs a:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.organization-section-tabs a.is-active{color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:0 1px 4px color-mix(in srgb, var(--color-primary) 10%, transparent)}.organization-section-tabs svg{width:18px;height:18px}@media (max-width:640px){.organization-section-tabs{width:100%}.organization-section-tabs a{flex:1;min-width:0;padding-inline:10px}.user-management-panel.access-groups-panel{padding:0}.access-groups-panel .user-directory-toolbar{padding:16px}}.user-directory{gap:20px;display:grid}.user-directory-toolbar{grid-template-columns:minmax(260px,1fr) 46px auto;align-items:center;gap:10px;display:grid}.user-directory-search{display:block;position:relative}.user-directory-search>svg{width:20px;height:20px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.user-directory-search input{border:1px solid var(--color-border);width:100%;min-height:48px;color:var(--color-primary);background:var(--color-surface);border-radius:12px;padding:11px 14px 11px 44px}.user-directory-search input:focus{border-color:var(--color-ring);outline:none;box-shadow:0 0 0 3px #0369a11a}.user-refresh-button{cursor:pointer;border:1px solid var(--color-border);width:46px;height:46px;color:var(--color-secondary);background:var(--color-surface);border-radius:11px;place-items:center;padding:0;display:grid}.user-refresh-button:hover:not(:disabled){color:var(--color-accent);border-color:var(--color-accent-border);background:var(--color-accent-soft)}.user-refresh-button:disabled{cursor:not-allowed;opacity:.55}.user-refresh-button svg{width:19px;height:19px}.is-spinning{animation:.7s linear infinite spin}.user-add-button{white-space:nowrap;min-height:48px;text-decoration:none}.user-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.user-stat-card{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;align-items:center;gap:15px;min-height:104px;padding:18px;display:flex;box-shadow:0 6px 22px #0f172a0a}.user-stat-icon{width:48px;height:48px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:12px;flex:none;place-items:center;display:grid}.user-stat-card.is-success .user-stat-icon{color:var(--color-success);background:var(--color-success-soft)}.user-stat-card.is-inactive .user-stat-icon{color:var(--color-secondary);background:var(--color-muted)}.user-stat-card.is-blocked .user-stat-icon{color:var(--color-danger);background:var(--color-danger-soft)}.user-stat-icon svg{width:23px;height:23px}.user-stat-card>div{display:grid}.user-stat-card small{color:var(--color-secondary);letter-spacing:.045em;text-transform:uppercase;font-size:11px;font-weight:750}.user-stat-card strong{color:var(--color-primary);font-variant-numeric:tabular-nums;font-size:28px;line-height:1.15}.user-table-heading{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;display:flex}.user-table-heading h2{margin:0;font-size:19px}.user-table-heading p{color:var(--color-secondary);margin:2px 0 0;font-size:12px}.admin-directory-layout{grid-template-columns:minmax(0,1.6fr) minmax(320px,.65fr);align-items:start;gap:20px;display:grid}.admin-directory-layout .user-management-panel,.admin-directory-layout .user-panel{max-width:none;margin-top:0}.admin-create-panel,.organization-list-panel{padding:26px}.organization-directory-layout{grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr)}.organization-list{gap:8px;display:grid}.organization-item{border:1px solid var(--color-border);background:var(--color-background);border-radius:10px;grid-template-columns:minmax(180px,.75fr) minmax(200px,1fr) auto;align-items:center;gap:18px;min-width:0;padding:14px 16px;display:grid}.organization-item>div{min-width:0;display:grid}.organization-item strong{color:var(--color-primary);font-size:14px}.organization-item code{color:var(--color-secondary);font-size:11px}.organization-item p{color:var(--color-secondary);margin:0;font-size:13px}.organization-table{table-layout:fixed}.organization-table th:first-child{width:39%}.organization-table th:nth-child(3){width:13%}.organization-table th:last-child{width:68px}.organization-avatar{border-radius:11px}.organization-tree-identity{position:relative}.organization-name-tooltip{min-width:0;display:block;position:relative}.organization-name-truncate{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.organization-name-tooltip-content{z-index:30;border:1px solid var(--color-border);width:max-content;max-width:min(380px,70vw);color:var(--color-primary);background:var(--color-surface-raised,var(--color-surface));box-shadow:0 10px 28px color-mix(in srgb, var(--color-primary) 18%, transparent);overflow-wrap:anywhere;white-space:normal;pointer-events:none;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:650;line-height:1.4;position:absolute;top:calc(100% + 7px);left:0}.organization-tree-branch{color:var(--color-secondary);flex:none;font-size:16px}.organization-description{color:var(--color-secondary);overflow-wrap:anywhere;font-size:13px;line-height:1.45}.organization-view-switch{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:10px;flex:none;gap:3px;padding:3px;display:inline-flex}.organization-view-switch button{cursor:pointer;min-height:36px;color:var(--color-secondary);font:inherit;background:0 0;border:0;border-radius:7px;align-items:center;gap:7px;padding:7px 11px;font-size:12px;font-weight:750;transition:color .18s,background-color .18s,box-shadow .18s;display:inline-flex}.organization-view-switch button:hover{color:var(--color-primary);background:var(--color-neutral-hover)}.organization-view-switch button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.organization-view-switch button.is-active{color:var(--color-accent-strong);background:var(--color-surface);box-shadow:0 1px 4px color-mix(in srgb, var(--color-primary) 12%, transparent)}.organization-view-switch svg{width:17px;height:17px}.organization-tree-wrap{padding:20px 22px 24px;overflow-x:auto}.organization-tree,.organization-tree-children{gap:9px;min-width:0;margin:0;padding:0;list-style:none;display:grid}.organization-tree-children{margin-top:9px;margin-inline-start:27px;padding-inline-start:28px;position:relative}.organization-tree-children:before{background:var(--color-border);content:"";width:1px;position:absolute;inset-block:-9px 24px;inset-inline-start:0}.organization-tree-node{min-width:0;position:relative}.organization-tree-children>.organization-tree-node:before{top:30px;background:var(--color-border);content:"";width:28px;height:1px;position:absolute;inset-inline-start:-28px}.organization-tree-card{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;grid-template-columns:34px 40px minmax(190px,1fr) auto auto;align-items:center;gap:11px;min-width:520px;padding:11px 12px;transition:border-color .18s,background-color .18s;display:grid}.organization-tree-node.is-highlighted>.organization-tree-card{border-color:var(--color-accent);background:var(--color-accent-soft);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);animation:3.2s ease-out both organization-node-highlight}@keyframes organization-node-highlight{0%,55%{border-color:var(--color-accent);background:var(--color-accent-soft);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent)}to{border-color:var(--color-border);background:var(--color-surface);box-shadow:0 0 #0000}}.organization-tree-card:hover{border-color:color-mix(in srgb, var(--color-accent) 45%, var(--color-border));background:var(--color-neutral-hover)}.organization-tree-toggle{cursor:pointer;width:34px;height:34px;color:var(--color-secondary);background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:grid}.organization-tree-toggle:hover:not(:disabled){color:var(--color-accent-strong);background:var(--color-accent-soft)}.organization-tree-toggle:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.organization-tree-toggle:disabled{cursor:default}.organization-tree-toggle svg{width:18px;height:18px;transition:transform .18s}.organization-tree-toggle svg.is-collapsed{transform:rotate(-90deg)}.organization-tree-main{gap:2px;min-width:0;display:grid}.organization-tree-main>strong,.organization-tree-main .organization-name-truncate{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.organization-tree-main span{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.organization-tree-meta{white-space:nowrap;justify-content:flex-end;align-items:center;gap:9px;display:flex}.organization-tree-meta>span:not(.document-status){color:var(--color-secondary);font-size:11px;font-weight:700}.organization-tree-actions{align-items:center;gap:8px;display:flex}@media (max-width:720px){.organization-view-switch{width:100%}.organization-view-switch button{flex:1;justify-content:center}.organization-tree-wrap{padding:14px}.organization-tree-children{margin-inline-start:14px;padding-inline-start:18px}.organization-tree-children>.organization-tree-node:before{width:18px;inset-inline-start:-18px}.organization-tree-card{grid-template-columns:30px 36px minmax(150px,1fr) auto;gap:8px;min-width:0;padding:10px}.organization-tree-card .organization-avatar{width:36px;height:36px}.organization-tree-meta{grid-area:2/3/auto/-1;justify-content:flex-start}.organization-tree-actions{grid-area:1/4}}@media (prefers-reduced-motion:reduce){.organization-tree-node.is-highlighted>.organization-tree-card{animation:none}}.user-table-wrap{overflow-x:auto}.user-table{border-collapse:collapse;width:100%}.user-table th,.user-table td{border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle;padding:12px 16px}.user-table th{background:var(--color-neutral-soft);color:var(--color-secondary);letter-spacing:.05em;text-transform:uppercase;font-size:11px}.user-table tbody tr{transition:background-color .18s}.user-table tbody tr:hover{background:var(--color-neutral-hover)}.user-role-badges{flex-wrap:wrap;align-items:flex-start;gap:6px;min-width:0;display:flex}.user-role-badge{border:1px solid var(--color-border);width:max-content;max-width:100%;min-height:27px;color:var(--color-primary);background:var(--color-neutral-soft);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.2;display:inline-flex}.user-identity{align-items:center;gap:12px;min-width:220px;display:flex}.user-avatar{width:40px;height:40px;color:var(--color-accent-strong);background:var(--color-accent-soft-hover);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:800;display:grid}.user-identity>div{min-width:0;display:grid}.user-identity strong,.user-identity span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-identity strong{color:var(--color-primary);font-size:14px}.user-identity span{color:var(--color-secondary);font-size:12px}.user-actions{white-space:nowrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.user-action-button{cursor:pointer;width:40px;height:40px;color:var(--color-accent);background:0 0;border:0;border-radius:9px;place-items:center;padding:0;transition:color .18s,background-color .18s;display:grid}.user-action-button:hover:not(:disabled){color:var(--color-accent-hover);background:var(--color-accent-soft-hover)}.user-action-button.is-danger{color:var(--color-danger)}.user-action-button.is-danger:hover:not(:disabled){color:var(--color-danger-hover);background:var(--color-danger-soft)}.user-action-button:disabled{cursor:not-allowed;opacity:.35}.user-action-button svg{width:19px;height:19px}.user-form-page{max-width:1040px;margin:0 auto}.breadcrumbs{color:var(--color-secondary);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:18px;font-size:12px;display:flex}.breadcrumbs a{color:var(--color-secondary);text-decoration:none}.breadcrumbs a:hover{color:var(--color-accent)}.breadcrumbs span[aria-current=page]{color:var(--color-primary);font-weight:700}.user-form-card{padding:clamp(20px,3vw,30px)}.user-detail-form>.section-heading{justify-content:space-between}.user-impersonation-button{white-space:nowrap;flex:none;min-height:42px}.user-impersonation-button svg{width:18px;height:18px}@media (max-width:720px){.impersonation-banner{flex-wrap:wrap}.impersonation-banner-exit{width:100%}.user-detail-form>.section-heading{flex-direction:column;align-items:stretch}.user-impersonation-button{width:100%}}.user-detail-form{gap:18px}.user-password-reset-form{border-top:1px solid var(--color-border);margin-top:32px;padding-top:32px}.user-detail-form .field{gap:7px}.user-detail-form .field>label{align-items:flex-end;min-height:22px;line-height:1.3;display:flex}.user-detail-form .field input,.user-detail-form .field select{height:var(--control-height);min-height:var(--control-height);border-color:var(--color-border-strong);border-radius:10px;padding-top:0;padding-bottom:0}.user-detail-form .field select{background-position:right 16px center;padding-right:52px}.user-detail-form .field textarea{border-color:var(--color-border-strong);border-radius:10px}.user-detail-form .field-hint{min-height:18px;line-height:1.4}.user-account-status-grid>.user-role-selector{grid-column:1/-1}.user-role-selector{border:0;gap:10px;min-width:0;margin:0;padding:0;display:grid}.user-role-selector legend{color:var(--color-primary);margin:0;padding:0;font-size:14px;font-weight:700}.user-role-selector>p,.user-preserved-roles{color:var(--color-secondary);margin:0;font-size:12px;line-height:1.4}.user-role-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.user-role-option{cursor:pointer;border:1px solid var(--color-border-strong);background:var(--color-surface);border-radius:10px;align-items:flex-start;gap:11px;min-width:0;padding:13px 14px;transition:border-color .18s,background-color .18s,box-shadow .18s;display:flex}.user-role-option:hover{border-color:color-mix(in srgb, var(--color-accent) 55%, var(--color-border));background:var(--color-neutral-hover)}.user-role-option.is-selected{border-color:var(--color-accent);background:var(--color-accent-soft);box-shadow:inset 3px 0 0 var(--color-accent)}.user-role-option.is-locked{cursor:not-allowed}.user-role-option input[type=checkbox],.user-detail-form .user-role-option input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--color-accent);flex:none;margin:2px 0 0;padding:0}.user-role-option>span{gap:3px;min-width:0;display:grid}.user-role-option strong{color:var(--color-primary);font-size:13px;line-height:1.3}.user-role-option small{color:var(--color-secondary);font-size:11px;font-weight:500;line-height:1.4}.user-password-grid{border-top:1px solid var(--color-border);padding-top:22px}.password-generator{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px;gap:12px;min-width:0;margin:0;padding:18px;display:grid}.password-generator legend{color:var(--color-primary);padding:0 6px;font-size:14px;font-weight:750}.password-generator-controls{grid-template-columns:minmax(0,1fr) 92px auto;align-items:end;gap:16px;min-width:0;display:grid}.password-character-groups{gap:8px;min-width:0;display:grid}.password-generator-label,.password-length-control>span{color:var(--color-secondary);font-size:12px;font-weight:700}.password-character-options{flex-wrap:wrap;gap:8px 16px;min-width:0;display:flex}.password-character-option{cursor:pointer;min-height:44px;color:var(--color-primary);align-items:center;gap:8px;font-size:14px;font-weight:650;display:inline-flex}.password-character-option input{cursor:pointer;width:20px;height:20px;accent-color:var(--color-accent);flex:none;margin:0}.password-length-control{gap:8px;display:grid}.password-length-control input{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);width:92px;height:44px;color:var(--color-foreground);background:var(--color-surface);padding:9px 12px}.password-length-control input:focus{border-color:var(--color-ring);outline:none;box-shadow:0 0 0 3px #0369a11f}.password-generate-button{min-height:44px}.password-generator .field-hint,.password-generator-feedback{margin:0;font-size:13px}.password-generator-feedback{color:var(--color-success);font-weight:650}.password-generator-feedback.is-error{color:var(--color-danger)}.user-detail-form input[readonly]{color:var(--color-secondary);background:var(--color-neutral-soft)}.organization-detail-form .field textarea{min-height:132px}.organization-status-field,.user-status-field{max-width:calc(50% - 8px)}.user-blocked-reason-field{max-width:none}.user-form-actions{border-top:1px solid var(--color-border);justify-content:flex-end;gap:12px;padding-top:22px;display:flex}.error-shell{place-items:center;min-height:100dvh;padding:24px;display:grid}.error-card{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);width:min(100%,580px);box-shadow:var(--shadow-card);padding:clamp(28px,5vw,48px)}.error-card .brand{margin-bottom:48px}.error-card h1{margin-bottom:12px;font-size:clamp(30px,5vw,42px);line-height:1.12}.error-card p{color:var(--color-secondary);margin-bottom:28px}.loading-shell{width:min(100% - 40px,1180px);min-height:100dvh;margin:0 auto;padding:32px 0}.skeleton{border-radius:var(--radius-md);background:linear-gradient(90deg, var(--color-skeleton-edge) 25%, var(--color-skeleton-center) 50%, var(--color-skeleton-edge) 75%);background-size:200% 100%;animation:1.4s ease-in-out infinite skeleton-pulse}.loading-header{width:180px;height:42px;margin-bottom:80px}.loading-title{width:min(520px,80%);height:68px;margin-bottom:32px}.loading-grid{grid-template-columns:1.5fr .8fr;gap:20px;display:grid}.loading-card{height:280px}.app-shell-viewport-locked{height:100dvh;min-height:0;display:grid;overflow:hidden}.app-shell-viewport-locked .app-content{flex-direction:column;height:100dvh;min-height:0;display:flex;overflow:hidden}.app-shell-viewport-locked .app-content>.chat-page,.app-shell-viewport-locked .app-content>.project-chat-page{flex:1 1 0;width:100%;height:auto;min-height:0}.chat-page{height:100%;min-height:0;padding:12px clamp(12px,1.3vw,20px) 16px;overflow:hidden}.chat-layout{--font-weight-heading:500;--font-weight-label:400;--font-weight-control:400;font-family:var(--font-sans);grid-template-columns:minmax(0,1fr);height:100%;min-height:0;font-size:16px;font-weight:400;display:grid}.chat-sidebar-top{border-bottom:1px solid var(--color-border);padding:0 0 12px;display:grid}.chat-assistant-selector{border:1px solid var(--color-border);background:var(--color-surface);border-radius:999px;align-items:center;gap:7px;max-width:260px;min-height:38px;padding:0 10px;transition:border-color .16s,box-shadow .16s;display:inline-flex}.chat-assistant-selector:focus-within{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-focus-ring)}.chat-assistant-selector>svg{width:17px;height:17px;color:var(--color-accent-strong);flex:none}.chat-assistant-selector select{cursor:pointer;appearance:none;min-width:0;color:var(--color-primary);background:linear-gradient(45deg, transparent 50%, var(--color-secondary) 50%) calc(100% - 5px) calc(50% - 1px) / 5px 5px no-repeat, linear-gradient(135deg, var(--color-secondary) 50%, transparent 50%) 100% calc(50% - 1px) / 5px 5px no-repeat;font:inherit;border:0;padding:0 18px 0 0;font-size:13px;font-weight:500}.chat-assistant-selector select:focus-visible{outline:none}.chat-assistant-selector select:disabled{cursor:default;opacity:.75}.chat-sidebar-controls{grid-template-columns:minmax(0,1fr) 1px 42px;align-items:center;gap:10px;min-width:0;display:grid}.chat-sidebar-control-divider{background:var(--color-border);width:1px;height:24px}.chat-new-button{border-radius:11px;width:42px;min-height:42px;padding:0}.chat-new-button svg{width:20px;height:20px}.chat-session-search{min-width:0;display:block;position:relative}.chat-session-search>svg{z-index:1;width:19px;height:19px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.chat-session-search input{border:1px solid var(--color-border);width:100%;min-height:42px;color:var(--color-foreground);background:var(--color-background);border-radius:11px;padding:9px 12px 9px 38px;font-size:13px;font-weight:400}.chat-session-search input:focus{border-color:var(--color-ring);outline:none;box-shadow:0 0 0 3px #0369a11a}.assistant-dialog-sidebar .chat-session-search input{background:0 0;border-color:#0000}.assistant-dialog-sidebar .chat-session-search input:hover{background:var(--color-background)}.assistant-dialog-sidebar .chat-session-search input:focus{background:var(--color-background);border-color:#0000}.chat-dialog-group-toggle{cursor:pointer;width:100%;min-height:38px;color:var(--color-secondary);font:inherit;text-align:left;background:0 0;border:0;border-radius:9px;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;gap:8px;padding:7px 8px;font-size:13px;font-weight:600;transition:color .16s,background-color .16s;display:grid}.chat-dialog-group-toggle:hover,.chat-dialog-group-toggle:focus-visible{color:var(--color-primary);background:var(--color-background)}.chat-dialog-group-toggle:focus-visible{box-shadow:0 0 0 2px var(--color-focus-ring);outline:none}.chat-dialog-group-toggle>svg{width:18px;height:18px}.chat-dialog-group-chevron{transition:transform .16s}.chat-dialog-group-toggle[aria-expanded=false] .chat-dialog-group-chevron{transform:rotate(180deg)}.chat-session-list{overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;gap:3px;min-height:0;padding:8px 2px 4px 0;display:grid;overflow:hidden auto}.chat-session-list[hidden],.chat-session-groups[hidden],.chat-pinned-session-list[hidden]{display:none}.chat-session-collection,.chat-session-groups,.chat-pinned-session-list{min-width:0;display:grid}.chat-session-collection{gap:2px}.chat-session-collection+.chat-dialog-group-toggle{margin-top:5px}.chat-session-groups{gap:4px}.chat-pinned-session-list{gap:2px}.chat-session-group{gap:2px;display:grid}.chat-session-group+.chat-session-group{margin-top:5px}.chat-session-date{color:var(--color-secondary);letter-spacing:.01em;margin:0;padding:6px 10px 3px;font-size:11px;font-weight:500}.chat-session-group-items{gap:2px;display:grid}.chat-session-row{min-width:0;color:var(--color-secondary);background:0 0;border:1px solid #0000;border-radius:9px;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:2px;padding-inline-end:4px;transition:border-color .16s,background-color .16s,box-shadow .16s;display:grid}.chat-session-row:hover,.chat-session-row:focus-within,.chat-session-row.is-active{color:var(--color-primary);border-color:var(--color-border);background:var(--color-background)}.chat-session-row.is-active{box-shadow:inset 3px 0 0 var(--color-accent)}.chat-session-row.is-running:not(.is-active){border-color:color-mix(in srgb, var(--color-accent) 24%, transparent);background:color-mix(in srgb, var(--color-accent) 5%, transparent)}.chat-session-row.is-editing{border-color:color-mix(in srgb, var(--color-accent) 36%, var(--color-border));background:var(--color-surface);grid-template-columns:minmax(0,1fr);box-shadow:0 0 0 3px #0369a114}.chat-session-inline-edit{grid-template-columns:minmax(0,1fr) 28px 28px;align-items:center;gap:4px;min-width:0;min-height:40px;padding:4px 4px 4px 8px;display:grid}.chat-session-inline-edit input{border:1px solid var(--color-border-strong);width:100%;min-width:0;height:32px;color:var(--color-foreground);background:var(--color-surface);border-radius:7px;padding:5px 8px;font-size:13px;font-weight:400}.chat-session-inline-edit input:focus{border-color:var(--color-ring);outline:none;box-shadow:0 0 0 2px #0369a11f}.chat-session-inline-action{cursor:pointer;width:28px;height:28px;color:var(--color-secondary);background:0 0;border:0;border-radius:7px;place-items:center;padding:0;display:grid}.chat-session-inline-action:hover:not(:disabled),.chat-session-inline-action:focus-visible{color:var(--color-primary);background:var(--color-muted);outline:none}.chat-session-inline-action.is-save{color:var(--color-success)}.chat-session-inline-action.is-save:hover:not(:disabled),.chat-session-inline-action.is-save:focus-visible{background:var(--color-success-soft)}.chat-session-inline-action:disabled{cursor:not-allowed;opacity:.45}.chat-session-inline-action svg,.chat-session-inline-action .spinner{width:18px;height:18px}.chat-session-select{cursor:pointer;width:100%;min-height:40px;color:inherit;text-align:left;background:0 0;border:0;border-radius:9px 0 0 9px;align-items:center;gap:7px;padding:7px 4px 7px 10px;display:flex}.chat-session-select>span{min-width:0;display:grid}.chat-session-actions{align-items:center;gap:0;display:flex}.chat-session-pin-trigger,.chat-session-menu-trigger{cursor:pointer;width:28px;height:28px;color:var(--color-secondary);opacity:0;background:0 0;border:0;border-radius:7px;place-items:center;padding:0;transition:color .15s,background-color .15s,opacity .15s,transform .15s;display:grid}.chat-session-row:hover .chat-session-menu-trigger,.chat-session-row:hover .chat-session-pin-trigger,.chat-session-row:focus-within .chat-session-menu-trigger,.chat-session-row:focus-within .chat-session-pin-trigger,.chat-session-menu-trigger[aria-expanded=true]{opacity:1}.chat-session-pin-trigger:hover,.chat-session-pin-trigger:focus-visible,.chat-session-menu-trigger:hover,.chat-session-menu-trigger:focus-visible,.chat-session-menu-trigger[aria-expanded=true]{color:var(--color-accent);background:var(--color-accent-soft-hover);outline:none;transform:translateY(-1px)}.chat-session-pin-trigger:disabled,.chat-session-menu-trigger:disabled{cursor:not-allowed;opacity:.35}.chat-session-select>.chat-session-running-indicator{width:18px;min-width:18px;height:18px;color:var(--color-accent);flex:0 0 18px;place-items:center;display:grid}.chat-session-running-indicator>span{border:2px solid color-mix(in srgb, currentColor 25%, transparent);width:15px;height:15px;box-shadow:0 0 0 3px color-mix(in srgb, currentColor 8%, transparent);border-top-color:currentColor;border-radius:50%;animation:.7s linear infinite spin}.chat-session-pin-trigger svg,.chat-session-menu-trigger svg{width:16px;height:16px}@media (hover:none){.chat-session-pin-trigger,.chat-session-menu-trigger{opacity:1}}.chat-session-select strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:20px;overflow:hidden}.chat-session-row.is-active .chat-session-select strong{font-weight:500}.chat-session-empty{color:var(--color-secondary);text-align:center;padding:18px 10px;font-size:12px}.chat-session-loading-more{min-height:42px;color:var(--color-secondary);justify-content:center;align-items:center;gap:8px;margin:0;font-size:11px;display:flex}.chat-session-loading-more .spinner{border-width:2px;width:16px;height:16px}.chat-session-sentinel{width:100%;height:1px}.chat-session-menu{z-index:80;border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;width:220px;padding:6px;animation:.12s ease-out chat-menu-enter;display:grid;position:fixed;box-shadow:0 18px 45px #0f172a2e}.chat-session-menu button{cursor:pointer;min-height:44px;color:var(--color-primary);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:9px 11px;display:flex}.chat-session-menu button:hover,.chat-session-menu button:focus-visible{background:var(--color-background);outline:none}.chat-session-menu button.is-danger{color:var(--color-danger)}.chat-session-menu button.is-danger:hover,.chat-session-menu button.is-danger:focus-visible{background:var(--color-danger-soft)}.chat-session-menu svg{width:19px;height:19px}.chat-session-modal-backdrop{z-index:90;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172a6b;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.chat-session-modal{border:1px solid var(--color-border);background:var(--color-surface);border-radius:18px;width:min(100%,440px);padding:24px;animation:.15s ease-out chat-modal-enter;box-shadow:0 24px 70px #0f172a3d}.chat-session-modal h2{margin-bottom:8px;font-size:22px}.chat-session-modal>p{color:var(--color-secondary);margin-bottom:20px;font-size:14px}.chat-session-modal-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.chat-delete-button{color:var(--color-on-danger);background:var(--color-danger)}.chat-delete-button:hover:not(:disabled){background:var(--color-danger-hover)}@keyframes chat-menu-enter{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes chat-modal-enter{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.chat-conversation{--chat-content-gutter:clamp(20px, 4vw, 64px);--chat-content-right-gutter:clamp(72px, 5vw, 80px);border-radius:22px;grid-template-rows:minmax(0,1fr) auto;min-width:0;height:100%;min-height:0;display:grid;position:relative;overflow:hidden}.chat-conversation-toolbar{z-index:8;justify-content:flex-end;align-items:center;display:flex;position:absolute;top:12px;right:18px}.chat-share-trigger{color:var(--color-accent)}.chat-share-trigger svg{width:21px;height:21px}.chat-share-backdrop{z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#070f1ead;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow-y:auto}.chat-share-dialog{box-sizing:border-box;border:1px solid var(--color-border-strong);background:var(--color-surface-raised);border-radius:16px;flex-direction:column;width:min(768px,100%);max-height:calc(100dvh - 48px);padding:32px;animation:.16s ease-out chat-modal-enter;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 80px #0000004d}.chat-share-header{flex:none;margin-bottom:24px;padding-right:44px}.chat-share-header h2{max-width:620px;color:var(--color-primary);margin:0;font-size:24px;font-weight:700;line-height:1.25}.chat-share-close-button,.chat-share-copy-button{flex:0 0 44px;width:44px;height:44px;position:static}.chat-share-close-button{position:absolute;top:16px;right:16px}.chat-share-copy-button{color:var(--color-accent)}.chat-share-scroll-region{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:0 4px 0 0;overflow-y:auto}.chat-share-access-options{gap:16px;display:grid}.chat-share-access-options>button{cursor:pointer;border:1px solid var(--color-border-strong);width:100%;color:var(--color-primary);background:var(--color-surface);text-align:left;border-radius:12px;grid-template-columns:40px 1fr;align-items:start;gap:16px;padding:16px;display:grid}.chat-share-access-options>button:hover,.chat-share-access-options>button.is-selected{border-color:var(--color-accent);background:var(--color-background)}.chat-share-option-icon{width:40px;height:40px;color:var(--color-accent);background:var(--color-background);border-radius:12px;place-items:center;display:grid}.chat-share-access-options>button.is-selected .chat-share-option-icon{background:var(--color-surface-raised)}.chat-share-option-icon svg{width:22px;height:22px}.chat-share-access-options strong,.chat-share-access-options small,.chat-share-user-list strong,.chat-share-user-list small{display:block}.chat-share-access-options strong{margin-bottom:4px;font-size:18px;line-height:1.25}.chat-share-access-options small,.chat-share-user-list small,.chat-share-link-block small{color:var(--color-secondary)}.chat-share-access-options small{font-size:14px;line-height:1.45}.chat-share-warning{color:var(--color-warning);background:var(--color-warning-soft);border-radius:12px;margin:24px 0 0;padding:16px}.chat-share-users{margin-top:24px}.chat-share-link-block{margin-top:32px}.chat-share-users>label,.chat-share-link-block>label{margin-bottom:8px;font-weight:700;display:block}.chat-share-users>input,.chat-share-link-block input{width:100%}.chat-share-user-list{border:1px solid var(--color-border);border-radius:14px;gap:6px;max-height:200px;margin-top:10px;padding:6px;display:grid;overflow-y:auto}.chat-share-user-list label{cursor:pointer;border-radius:10px;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:10px;display:grid}.chat-share-user-list label:hover{background:var(--color-accent-soft)}.chat-share-user-list input{width:18px;height:18px}.chat-share-user-list p{color:var(--color-secondary);margin:10px}.chat-share-link-block>div{grid-template-columns:minmax(0,1fr) auto;gap:12px;display:grid}.chat-share-link-block small{margin-top:6px;display:block}.chat-share-loading{min-height:180px;color:var(--color-secondary);justify-content:center;align-items:center;gap:10px;display:flex}.chat-share-actions{z-index:1;border-top:1px solid var(--color-border);background:var(--color-surface-raised);flex:none;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding-top:24px;display:flex;position:relative}.chat-share-actions>div{align-items:center;gap:8px;display:flex}.chat-share-actions>div>span{color:var(--color-danger);font-size:13px;font-weight:700}@media (max-width:680px){.chat-share-backdrop{padding:10px}.chat-share-dialog{max-height:calc(100dvh - 20px);padding:24px}.chat-share-header{padding-right:36px}.chat-share-header h2{font-size:20px}.chat-share-close-button{top:12px;right:12px}.chat-share-link-block>div{grid-template-columns:1fr}.chat-share-copy-button{justify-self:end}.chat-share-actions{flex-direction:column-reverse;align-items:stretch}.chat-share-actions>div{flex-wrap:wrap}.chat-share-actions>.button{width:100%}}.published-chat-shell{min-height:100dvh;color:var(--color-primary);background:var(--color-background);padding-bottom:72px}.published-chat-header{z-index:10;border-bottom:1px solid var(--color-border);background:color-mix(in srgb, var(--color-background) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);justify-content:space-between;align-items:center;gap:16px;padding:14px clamp(20px,5vw,72px);display:flex;position:sticky;top:0}.published-chat-brand,.published-chat-access{align-items:center;gap:10px;display:flex}.published-chat-brand>span{color:#fff;background:var(--color-accent);border-radius:11px;place-items:center;width:36px;height:36px;font-weight:800;display:grid}.published-chat-access{color:var(--color-secondary);font-size:13px;font-weight:700}.published-chat-access svg{width:18px;height:18px}.published-chat-intro,.published-chat-messages{width:min(980px,100% - 40px);margin-inline:auto}.published-chat-intro{padding:clamp(40px,8vw,84px) 0 28px}.published-chat-intro h1{letter-spacing:-.045em;margin:8px 0 10px;font-size:clamp(30px,5vw,48px);line-height:1.02}.published-chat-intro>p{color:var(--color-secondary);margin:0}.published-chat-notice{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-surface);border-radius:13px;margin-top:22px;padding:13px 16px;font-size:14px}.published-chat-messages{gap:24px;display:grid}.published-chat-message{border:1px solid var(--color-border);background:var(--color-surface);border-radius:22px;padding:clamp(20px,4vw,34px);box-shadow:0 8px 30px #0f172a0f}.published-chat-message.is-user{border-color:var(--color-accent);background:var(--color-accent-soft);margin-left:clamp(0px,10vw,100px)}.published-chat-message>span:first-child{color:var(--color-secondary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px;font-size:12px;font-weight:800;display:block}.published-chat-input-images{gap:12px;margin:0 0 16px;display:grid}.published-chat-message.is-user .published-chat-input-images{justify-items:end}.published-chat-input-image{gap:8px;width:min(720px,100%);margin:0;display:grid}.published-chat-input-image img{border:1px solid var(--color-border);background:var(--color-neutral-soft);object-fit:contain;border-radius:16px;width:100%;height:auto;max-height:640px;display:block}.published-chat-input-image figcaption{min-width:0;color:var(--color-secondary);justify-content:flex-end;align-items:baseline;gap:8px;padding-inline:3px;font-size:12px;display:flex}.published-chat-input-image figcaption strong{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.published-chat-input-image figcaption small{font-size:inherit;flex:none}.published-chat-assets{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.published-chat-assets span{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-surface-raised);border-radius:999px;align-items:center;gap:6px;padding:7px 10px;font-size:12px;display:inline-flex}.published-chat-assets svg{width:15px;height:15px}.published-chat-tools{gap:8px;margin-top:16px;display:grid}.published-chat-tools details{border:1px solid var(--color-border);background:var(--color-surface-raised);border-radius:12px;overflow:hidden}.published-chat-tools summary{cursor:pointer;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:52px;padding:8px 12px;list-style:none;display:grid}.published-chat-tools summary::-webkit-details-marker{display:none}.published-chat-tools summary>svg{width:18px;height:18px;color:var(--color-primary)}.published-chat-tools summary>span{min-width:0;display:grid}.published-chat-tools summary strong,.published-chat-tools summary small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.published-chat-tools summary strong{font-size:13px}.published-chat-tools summary small{color:var(--color-secondary);font-size:11px}.published-chat-tools details>div{border-top:1px solid var(--color-border);background:var(--color-neutral-soft);gap:10px;padding:12px 16px 14px 56px;display:grid}.published-chat-tools details p{gap:2px;margin:0;display:grid}.published-chat-tools details p>span{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:700}.published-chat-tools details strong,.published-chat-tools details a{overflow-wrap:anywhere;font-size:12px}.published-chat-tools details a svg{width:14px;height:14px}.published-chat-tool-sources{gap:6px;display:grid}.published-chat-tool-sources>span{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:700}.published-chat-tool-sources ol{gap:5px;margin:0;padding-left:20px;display:grid}.published-chat-tool-sources li{color:var(--color-secondary);font-size:12px}.published-chat-sources{border-top:1px solid var(--color-border);margin-top:16px;padding-top:14px}.published-chat-sources summary{cursor:pointer;color:var(--color-secondary);font-weight:700}.published-chat-sources li{padding-block:7px;scroll-margin-block:88px}.published-chat-sources a{align-items:center;gap:5px;display:inline-flex}.published-chat-sources a svg{width:14px;height:14px}.published-chat-sources small{color:var(--color-secondary);margin-top:2px;display:block}.chat-message-viewport{min-width:0;min-height:0;position:relative;overflow:hidden}.chat-empty-state h2{margin-bottom:2px;font-size:18px;font-weight:500}.chat-empty-state p{color:var(--color-secondary);margin:0;font-size:13px}.chat-messages{height:100%;min-height:0;padding:28px var(--chat-content-right-gutter) 34px var(--chat-content-gutter);overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none;flex-direction:column;gap:22px;scroll-padding-block:24px;display:flex;overflow-y:auto}.chat-scroll-navigation{z-index:4;cursor:pointer;border:1px solid var(--color-border-strong);width:44px;height:44px;color:var(--color-primary);background:var(--color-surface-raised);box-shadow:var(--shadow-medium);font:inherit;border-radius:999px;justify-content:center;align-items:center;padding:0;animation:.14s ease-out chat-scroll-enter;display:inline-flex;position:absolute;left:50%;right:auto;transform:translate(-50%)}.chat-scroll-to-start{top:18px}.chat-scroll-to-latest{bottom:18px}@keyframes chat-scroll-enter{0%{opacity:0;transform:translate(-50%)translateY(4px)scale(.96)}to{opacity:1;transform:translate(-50%)translateY(0)scale(1)}}.chat-scroll-navigation:hover{border-color:var(--color-accent);color:var(--color-accent);background:var(--color-neutral-hover)}.chat-scroll-navigation:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.chat-scroll-navigation svg{width:20px;height:20px}.chat-empty-state,.chat-status{text-align:center;align-content:center;place-items:center;gap:8px;min-height:100%;display:grid}.chat-empty-state>svg{width:36px;height:36px;color:var(--color-accent);margin-bottom:6px}.chat-status{color:var(--color-secondary)}.chat-suggestions{flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px;margin-top:16px;display:flex}.chat-suggestions button{cursor:pointer;border:1px solid var(--color-border);min-height:42px;color:var(--color-primary);background:var(--color-surface);border-radius:999px;padding:9px 13px;font-size:13px;font-weight:400;transition:border-color .18s,background .18s,color .18s}.chat-suggestions button:hover{border-color:var(--color-accent-border);color:var(--color-accent-hover);background:var(--color-accent-soft)}.chat-message{gap:6px;width:fit-content;max-width:min(78%,760px);display:grid;position:relative}.chat-message-user{align-self:flex-end}.chat-message-assistant{align-self:flex-start;width:min(100%,980px);max-width:980px}.chat-message-author{color:var(--color-secondary);font-size:11px;font-weight:500}.chat-message-user .chat-message-author{text-align:right}.chat-message-content{border:1px solid var(--color-border);background:var(--color-surface);overflow-wrap:anywhere;white-space:pre-wrap;border-radius:14px;padding:13px 15px;line-height:1.6}.chat-message-user .chat-message-content{color:var(--color-message-user-text);border-color:var(--color-message-user);background:var(--color-message-user);border-bottom-right-radius:4px}.chat-message-assistant .chat-message-content{white-space:normal;background:0 0;border:0;border-radius:0;min-width:0;padding:6px 0;font-size:16px;line-height:1.72}.chat-message-actions{min-height:44px;color:var(--color-secondary);align-items:center;gap:2px;display:flex}.chat-message-actions-user{justify-content:flex-end;justify-self:end;min-height:44px}.chat-message-actions button{width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;padding:0;transition:color .18s,background .18s,opacity .18s;display:inline-grid}.chat-message-actions button:hover:not(:disabled){color:var(--color-accent-strong);background:var(--color-accent-soft)}.chat-message-actions button:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.chat-message-actions button.is-active{color:var(--color-accent-strong);background:var(--color-accent-soft)}.chat-message-actions button:disabled{opacity:.48;cursor:not-allowed}.chat-message-actions svg,.chat-message-actions .spinner{width:19px;height:19px}.chat-message-edit{border:1px solid var(--color-accent-border);background:var(--color-surface);width:min(720px,74vw);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-accent) 12%, transparent);border-radius:14px 14px 4px;gap:10px;padding:12px;display:grid}.chat-message-edit textarea{resize:vertical;width:100%;min-height:112px;color:var(--color-primary);border:1px solid var(--color-border);background:var(--color-surface-raised);font:inherit;border-radius:10px;outline:none;padding:10px 12px;line-height:1.55}.chat-message-edit textarea:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-accent) 16%, transparent)}.chat-message-edit>div{justify-content:flex-end;gap:8px;display:flex}.chat-message-edit .button{min-height:42px}.chat-message-edit .button svg,.chat-message-edit .button .spinner{width:18px;height:18px}.chat-markdown{min-width:0}.chat-markdown>p,.chat-markdown>ul,.chat-markdown>ol,.chat-markdown>blockquote,.chat-markdown>h1,.chat-markdown>h2,.chat-markdown>h3,.chat-markdown>h4,.chat-markdown>h5,.chat-markdown>h6{max-width:82ch}.chat-markdown>:first-child{margin-top:0}.chat-markdown>:last-child{margin-bottom:0}.chat-markdown p,.chat-markdown ul,.chat-markdown ol,.chat-markdown blockquote,.chat-markdown pre,.chat-markdown h1,.chat-markdown h2,.chat-markdown h3,.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{margin:0 0 .9em}.chat-markdown h1,.chat-markdown h2,.chat-markdown h3,.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{color:var(--color-foreground);letter-spacing:-.012em;font-weight:750;line-height:1.3}.chat-markdown p{line-height:1.72}.chat-markdown p+p{margin-top:.15em}.chat-markdown h1{font-size:1.45em}.chat-markdown h2{font-size:1.3em}.chat-markdown h3{font-size:1.16em}.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{font-size:1em}.chat-markdown ul,.chat-markdown ol{gap:.48em;padding-left:1.55em;line-height:1.62;display:grid}.chat-markdown li{padding-left:.16em}.chat-markdown li::marker{color:var(--color-accent);font-weight:750}.chat-markdown li>p{margin:0}.chat-markdown strong{color:var(--color-foreground);font-weight:750}.chat-markdown blockquote{border-left:3px solid var(--color-accent-border);color:var(--color-secondary);padding:.15em 0 .15em 1em}.chat-markdown a{color:var(--color-accent);text-underline-offset:3px;text-decoration-thickness:1px}.chat-markdown a:hover{color:var(--color-accent-hover)}.chat-markdown .chat-inline-citation{border:1px solid var(--color-border-strong);min-width:1.65rem;height:1.35rem;color:var(--color-secondary);background:var(--color-neutral-soft);vertical-align:.14em;white-space:nowrap;border-radius:999px;place-items:center;margin-inline:.14rem;padding-inline:.4rem;font-size:.68em;font-weight:800;line-height:1;text-decoration:none;display:inline-grid}.chat-markdown .chat-inline-citation:hover{border-color:var(--color-accent-border);color:var(--color-accent);background:var(--color-accent-soft-hover)}.chat-markdown a:focus-visible,.chat-markdown-table-scroll:focus-visible{outline:3px solid color-mix(in srgb, var(--color-ring) 32%, transparent);outline-offset:3px}.chat-markdown code{background:var(--color-neutral-soft);border-radius:5px;padding:.12em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88em}.chat-markdown pre{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:10px;max-width:100%;padding:14px 16px;line-height:1.55;overflow-x:auto}.chat-markdown pre code{background:0 0;padding:0}.chat-markdown .chat-code-block{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px;max-width:100%;margin:0 0 .9em;overflow:hidden}.chat-code-block-header{border-bottom:1px solid var(--color-border);background:var(--color-surface-raised);justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:6px 8px 6px 14px;display:flex}.chat-code-block-language{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;font-weight:700;line-height:1.3;overflow:hidden}.chat-code-block-copy{cursor:pointer;min-width:44px;min-height:44px;color:var(--color-secondary);font:inherit;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:0;text-decoration:none;display:inline-flex}.chat-code-block-copy:hover{color:var(--color-foreground);background:var(--color-neutral-soft)}.chat-code-block-copy:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:1px}.chat-code-block-copy.is-copied{color:var(--color-success)}.chat-code-block-copy.is-error{color:var(--color-danger)}.chat-code-block-copy svg{flex:none;width:17px;height:17px}.chat-markdown .chat-code-block pre{background:0 0;border:0;border-radius:0;margin:0;padding:16px}.chat-markdown hr{border:0;border-top:1px solid var(--color-border);margin:1.25em 0}.chat-markdown-table-scroll{border:1px solid var(--color-border);background:var(--color-surface);scrollbar-gutter:stable;border-radius:12px;max-width:100%;margin:1em 0;overflow-x:auto}.chat-markdown table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;color:var(--color-foreground);font-size:.92em;line-height:1.48}.chat-markdown th,.chat-markdown td{border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);text-align:left;vertical-align:top;overflow-wrap:anywhere;min-width:128px;max-width:420px;padding:10px 12px}.chat-markdown th{background:var(--color-neutral-soft);font-weight:750}.chat-markdown tr>:last-child{border-right:0}.chat-markdown tbody tr:last-child>td{border-bottom:0}.chat-markdown tbody tr:nth-child(2n){background:color-mix(in srgb, var(--color-neutral-soft) 48%, transparent)}.chat-markdown input[type=checkbox]{accent-color:var(--color-accent)}.chat-thinking{max-width:100%;color:var(--color-secondary);display:inline-flex}.chat-thinking-visual{border:1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));background:color-mix(in srgb, var(--color-accent-soft) 66%, var(--color-surface));border-radius:15px;align-items:center;gap:11px;max-width:100%;min-height:42px;padding:9px 14px;line-height:1.35;display:inline-flex}.chat-thinking-dots{flex:none;align-items:center;gap:5px;display:inline-flex}.chat-thinking-dots>span{background:var(--color-primary);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite chat-thinking-dot}.chat-thinking-dots>span:nth-child(2){animation-delay:.15s}.chat-thinking-dots>span:nth-child(3){animation-delay:.3s}.chat-thinking-time{min-width:3.5ch;color:color-mix(in srgb, var(--color-secondary) 78%, transparent);font-variant-numeric:tabular-nums;white-space:nowrap}@keyframes chat-thinking-dot{0%,60%,to{opacity:.4;transform:translateY(0)scale(.72)}30%{opacity:1;transform:translateY(-4px)scale(1)}}.chat-tool-progress{color:var(--color-secondary);margin:0;font-size:12px}.chat-tool-activities{gap:8px;margin:4px 0 8px;display:grid}.chat-tool-activity{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;transition:border-color .18s,background-color .18s;overflow:hidden}.chat-tool-activity.is-running{border-color:color-mix(in srgb, var(--color-primary) 38%, var(--color-border))}.chat-tool-activity.is-failed{border-color:color-mix(in srgb, var(--color-danger) 45%, var(--color-border))}.chat-tool-activity>summary,.chat-tool-activity-summary{min-height:52px;color:var(--color-foreground);cursor:pointer;-webkit-user-select:none;user-select:none;grid-template-columns:18px 36px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px 12px;list-style:none;display:grid}.chat-tool-activity-summary{cursor:default;grid-template-columns:36px minmax(0,1fr) 20px}.chat-tool-activity>summary::-webkit-details-marker{display:none}.chat-tool-activity>summary:before{content:"";border-bottom:2px solid;border-right:2px solid;width:8px;height:8px;transition:transform .18s;transform:rotate(-45deg)}.chat-tool-activity[open]>summary:before{transform:rotate(45deg)}.chat-tool-activity>summary:hover{background:var(--color-neutral-soft)}.chat-tool-activity>summary:focus-visible{outline:3px solid color-mix(in srgb, var(--color-ring) 28%, transparent);outline-offset:-3px}.chat-tool-activity-icon{width:36px;height:36px;color:var(--color-primary);background:var(--color-primary-soft);border-radius:10px;place-items:center;display:grid}.chat-tool-activity-icon svg{width:19px;height:19px}.chat-tool-activity>summary>span:nth-of-type(2),.chat-tool-activity-summary>span:nth-of-type(2){min-width:0;display:grid}.chat-tool-activity>summary strong,.chat-tool-activity>summary small,.chat-tool-activity-summary strong,.chat-tool-activity-summary small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-tool-activity>summary strong,.chat-tool-activity-summary strong{font-size:13px}.chat-tool-activity>summary small,.chat-tool-activity-summary small{color:var(--color-secondary);font-size:11px}.chat-tool-activity>summary>svg,.chat-tool-activity-summary>svg{width:18px;height:18px;color:var(--color-success)}.chat-tool-activity.is-failed>summary>svg,.chat-tool-activity.is-failed .chat-tool-activity-summary>svg{color:var(--color-danger)}.chat-tool-activity-details{border-top:1px solid var(--color-border);background:var(--color-neutral-soft);gap:10px;padding:12px 16px 14px 76px;display:grid}.chat-tool-activity-details p{gap:2px;margin:0;display:grid}.chat-tool-activity-details p>span{color:var(--color-secondary);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:700}.chat-tool-activity-details strong,.chat-tool-activity-details a{overflow-wrap:anywhere;color:var(--color-foreground);font-size:12px}.chat-tool-activity-details a:hover{color:var(--color-primary)}.chat-tool-activity-details ol{color:var(--color-secondary);gap:6px;margin:0;padding-left:18px;display:grid}@media (max-width:640px){.chat-tool-activity-details{padding-left:16px}}.chat-approval{border:1px solid var(--color-warning-border);border-radius:var(--radius-sm);background:var(--color-warning-soft);gap:10px;padding:14px;display:grid}.chat-approval>strong{color:var(--color-warning);font-size:13px}.chat-approval p,.chat-approval>span{color:var(--color-secondary);margin:0;font-size:13px}.chat-approval>div{flex-wrap:wrap;gap:8px;display:flex}.chat-approval .button{min-height:38px;padding:8px 12px;font-size:12px}.chat-interaction{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-raised);gap:14px;margin-top:8px;padding:18px;display:grid;box-shadow:0 10px 28px #0f172a14}.chat-interaction-heading{color:var(--color-secondary);align-items:center;gap:10px;display:flex}.chat-interaction-heading>span{color:var(--color-primary);background:var(--color-accent-soft);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;display:inline-flex}.chat-interaction-heading small{font-size:13px}.chat-interaction>p{color:var(--color-primary);margin:0;font-size:clamp(15px,1.3vw,18px);font-weight:650;line-height:1.5}.chat-interaction-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.chat-interaction-options .button{text-align:left;white-space:normal;justify-items:start;height:auto;min-height:48px;padding:10px 13px;display:grid}.chat-interaction-options small{color:var(--color-secondary);font-weight:500}.chat-interaction-custom{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.chat-interaction-custom input{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;min-height:44px;color:var(--color-primary);background:var(--color-surface);font:inherit;padding:9px 12px}.chat-interaction-custom .button{width:44px;min-width:44px;min-height:44px;padding:10px}.chat-interaction-custom svg{width:18px;height:18px}.chat-interaction-secondary-actions{flex-wrap:wrap;gap:18px;display:flex}.chat-interaction-secondary-actions button{color:var(--color-secondary);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.chat-interaction-secondary-actions button:hover{color:var(--color-accent)}.chat-interaction-secondary-actions button:disabled{cursor:not-allowed;opacity:.55}.chat-interaction-result{width:fit-content;color:var(--color-secondary);background:var(--color-surface-muted);border-radius:999px;padding:7px 10px;font-size:13px}@media (max-width:700px){.chat-interaction-options{grid-template-columns:1fr}}.chat-attachments{gap:10px;margin-top:4px;display:grid}.chat-context-proposals{gap:10px;margin-top:8px;display:grid}.chat-propose-context{border:1px solid var(--color-border);width:fit-content;min-height:34px;color:var(--color-secondary);background:var(--color-surface);font:inherit;cursor:pointer;border-radius:9px;align-items:center;gap:7px;padding:6px 10px;font-size:11px;font-weight:700;display:inline-flex}.chat-propose-context:hover:not(:disabled){border-color:var(--color-accent-border);color:var(--color-accent-strong);background:var(--color-accent-soft)}.chat-propose-context:disabled{opacity:.55;cursor:not-allowed}.chat-propose-context svg{width:16px;height:16px}.context-proposal-card{border:1px solid var(--color-accent-border);background:var(--color-accent-soft);border-radius:14px;overflow:hidden}.context-proposal-accepted{border-color:color-mix(in srgb, var(--color-success) 42%, var(--color-border));background:var(--color-success-soft)}.context-proposal-discarded,.context-proposal-expired{border-color:var(--color-border);background:var(--color-neutral-soft)}.context-proposal-summary{grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;display:grid}.context-proposal-summary>div{gap:3px;min-width:0;display:grid}.context-proposal-summary strong,.context-proposal-summary p,.context-proposal-summary small{margin:0}.context-proposal-summary p{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.context-proposal-summary small{color:var(--color-accent-strong);font-size:11px;font-weight:700}.context-proposal-icon{width:42px;height:42px;color:var(--color-accent);background:var(--color-surface);border-radius:11px;place-items:center;display:grid}.context-proposal-icon svg,.context-proposal-status svg,.context-proposal-actions svg{width:18px;height:18px}.context-proposal-status{color:var(--color-secondary);align-items:center;gap:7px;font-size:12px;font-weight:700;display:inline-flex}.context-proposal-form{border-top:1px solid var(--color-accent-border);background:var(--color-surface);gap:14px;padding:16px;display:grid}.context-proposal-form>p,.context-proposal-error{margin:0;font-size:13px}.context-proposal-form>p{color:var(--color-secondary)}.context-proposal-form label,.context-proposal-entity{min-width:0;color:var(--color-primary);gap:7px;font-size:12px;font-weight:700;display:grid}.context-proposal-form input,.context-proposal-form select,.context-proposal-form textarea{border:1px solid var(--color-border-strong);width:100%;min-height:42px;color:var(--color-foreground);background-color:var(--color-surface);font:inherit;border-radius:9px;padding:9px 12px;font-weight:500}.context-proposal-form select{padding-right:42px}.context-proposal-form textarea{resize:vertical}.context-proposal-entity{border:1px solid var(--color-border);border-radius:10px;margin:0;padding:12px}.context-proposal-entity legend{padding:0 5px}.context-proposal-checkbox{grid-template-columns:18px minmax(0,1fr);align-items:center}.context-proposal-checkbox input{width:18px;min-height:18px;accent-color:var(--color-accent)}.context-proposal-resolved{color:var(--color-success)}.context-proposal-error{color:var(--color-danger);background:var(--color-danger-soft);padding:10px 12px}.context-proposal-actions{justify-content:flex-end;gap:8px;display:flex}.context-proposal-actions .button,.context-proposal-summary .button{min-height:40px;padding:8px 12px;font-size:12px}.chat-attachment{border:1px solid var(--color-accent-border);background:var(--color-accent-soft);border-radius:14px;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;display:grid}.chat-attachment-icon{width:44px;height:44px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:11px;place-items:center;display:grid}.chat-attachment-icon svg{width:22px;height:22px}.chat-attachment-copy{gap:2px;min-width:0;display:grid}.chat-attachment-copy strong,.chat-attachment-copy span,.chat-attachment-copy small{text-overflow:ellipsis;overflow:hidden}.chat-attachment-copy strong{color:var(--color-primary);white-space:nowrap;font-size:13px}.chat-attachment-copy span,.chat-attachment-copy small{color:var(--color-secondary);font-size:11px}.chat-attachment-download{background:var(--color-surface);min-height:40px;padding:8px 12px;font-size:12px}.chat-attachment-actions{align-items:center;gap:8px;display:flex}.chat-attachment-practice,.chat-attachment-download{white-space:nowrap}.chat-attachment-practice svg,.chat-attachment-download svg{width:17px;height:17px}.chat-sources,.chat-context-facts{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);margin-top:4px}.chat-project-memory{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);gap:9px;margin-top:4px;padding:11px 12px;display:grid}.chat-project-memory>div{color:var(--color-secondary);align-items:center;gap:8px;display:flex}.chat-project-memory>div svg{width:17px;height:17px;color:var(--color-accent)}.chat-project-memory>div strong{font-size:12px}.chat-project-memory ul{flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none;display:flex}.chat-project-memory a{border:1px solid var(--color-border);min-width:0;color:inherit;background:var(--color-surface-raised);border-radius:8px;align-items:center;gap:8px;padding:7px 9px;text-decoration:none;display:flex}.chat-project-memory a:hover{border-color:var(--color-accent);color:var(--color-accent)}.chat-project-memory a>span:first-child{color:var(--color-accent);font-size:11px;font-weight:800}.chat-project-memory a>span:last-child{gap:1px;min-width:0;display:grid}.chat-project-memory a strong,.chat-project-memory a small{text-overflow:ellipsis;white-space:nowrap;max-width:260px;overflow:hidden}.chat-project-memory a strong{font-size:12px}.chat-project-memory a small{color:var(--color-secondary);font-size:10px}.chat-message:target{box-shadow:0 0 0 5px var(--color-accent-soft-hover);border-radius:10px}.chat-context-facts summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:46px;padding:10px 12px;list-style:none;display:flex}.chat-context-facts summary::-webkit-details-marker{display:none}.chat-context-facts summary>span:first-child{align-items:center;gap:9px;display:flex}.chat-context-facts summary svg{width:18px;height:18px;color:var(--color-accent)}.chat-context-facts summary strong{font-size:12px}.chat-context-facts summary>span:last-child{min-width:24px;height:24px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:999px;place-items:center;font-size:10px;font-weight:800;display:grid}.chat-context-facts ul{gap:8px;margin:0;padding:0 12px 12px;list-style:none;display:grid}.chat-context-facts li{border:1px solid var(--color-border);border-radius:8px;gap:5px;padding:10px;display:grid}.chat-context-facts li>div{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.chat-context-facts li>div span,.chat-context-facts li small{color:var(--color-secondary);font-size:11px}.chat-context-facts li p{overflow-wrap:anywhere;margin:0;font-size:13px}.chat-context-facts .chat-context-fact-sources{flex-wrap:wrap;gap:6px;padding:2px 0 0;display:flex}.chat-context-facts .chat-context-fact-sources li{background:var(--color-accent-soft-hover);border:0;border-radius:999px;align-items:center;gap:5px;min-width:0;padding:4px 7px;display:inline-flex}.chat-context-facts .chat-context-fact-sources span,.chat-context-facts .chat-context-fact-sources small{text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:10px;overflow:hidden}.chat-sources summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:10px 12px;list-style:none;display:flex}.chat-sources summary::-webkit-details-marker{display:none}.chat-sources summary strong{color:var(--color-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:11px}.chat-sources summary span{min-width:24px;height:24px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:999px;place-items:center;font-size:10px;font-weight:800;display:grid}.chat-sources ol{gap:7px;margin:0;padding:0 12px 12px;list-style:none;display:grid}.chat-sources li{align-items:center;gap:9px;scroll-margin-block:88px;display:flex}.chat-sources li:target,.published-chat-sources li:target{background:var(--color-accent-soft-hover);box-shadow:0 0 0 5px var(--color-accent-soft-hover);border-radius:8px}.chat-sources li>span{width:29px;height:25px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:6px;flex:none;place-items:center;font-size:10px;font-weight:800;display:grid}.chat-sources li>.chat-source-content{flex:1;gap:2px;min-width:0;display:grid}.chat-sources li strong,.chat-sources li small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-sources li strong{font-size:12px}.chat-sources li small{color:var(--color-secondary);font-size:11px}.chat-source-content>a{min-width:0;color:inherit;-webkit-text-decoration-color:var(--color-border-strong);text-decoration-color:var(--color-border-strong);text-underline-offset:3px}.chat-source-content>a:hover{color:var(--color-accent)}.chat-source-assets{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.chat-source-assets a{border:1px solid var(--color-border);background:var(--color-surface-muted);border-radius:8px;width:112px;height:72px;display:block;overflow:hidden}.chat-source-assets img{object-fit:cover;width:100%;height:100%}.memory-page{width:100%;max-width:none}.memory-hero{padding-bottom:22px}.memory-layout{grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);align-items:start;gap:24px;display:grid}.memory-form,.memory-list-panel,.memory-disabled{padding:28px}.memory-panel-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.memory-panel-heading h2{margin:5px 0 0;font-size:24px}.memory-list-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.memory-list-toolbar .button{min-height:38px;padding:8px 12px;font-size:12px}.memory-list-toolbar svg,.memory-delete-all-confirm svg{width:17px;height:17px}.memory-delete-all-confirm{border:1px solid var(--color-danger);background:var(--color-danger-soft);border-radius:12px;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;padding:14px;display:flex}.memory-delete-all-confirm>div{align-items:center;gap:8px;display:flex}.memory-delete-all-confirm>div:first-child{display:grid}.memory-delete-all-confirm span{color:var(--color-secondary);font-size:12px}.memory-counter{min-width:48px;height:34px;color:var(--color-accent);background:var(--color-accent-soft-hover);border-radius:999px;place-items:center;font-size:12px;font-weight:800;display:grid}.memory-form{gap:18px;display:grid}.memory-form label,.memory-inline-edit{color:var(--color-ink);gap:8px;font-size:13px;font-weight:750;display:grid}.memory-form-row{grid-template-columns:1fr 1fr;gap:14px;display:grid}.memory-form select,.memory-form textarea,.memory-inline-edit textarea{border:1px solid var(--color-border);width:100%;color:var(--color-ink);background:var(--color-surface);font:inherit;border-radius:12px;font-weight:500}.memory-form select{min-height:46px;padding:0 12px}.memory-form textarea,.memory-inline-edit textarea{resize:vertical;padding:12px 14px;line-height:1.5}.memory-form select:focus-visible,.memory-form textarea:focus-visible,.memory-inline-edit textarea:focus-visible{border-color:var(--color-primary);outline:3px solid #0ea5e92e}.memory-form-footer{justify-content:space-between;align-items:center;gap:18px;display:flex}.memory-form-footer small,.memory-empty span{color:var(--color-secondary);line-height:1.5}.memory-list{gap:10px;display:grid}.memory-item{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:16px;display:grid}.memory-item-meta{align-items:center;gap:8px;display:flex}.memory-item-meta span,.memory-item-meta small{letter-spacing:.035em;text-transform:uppercase;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.memory-item-meta span{color:var(--color-accent);background:var(--color-accent-soft-hover)}.memory-item-meta small{color:var(--color-success);background:var(--color-success-soft)}.memory-item>p{overflow-wrap:anywhere;grid-column:1;margin:0;line-height:1.55}.memory-item-actions{grid-area:1/2/span 2;align-items:flex-start;gap:5px;display:flex}.memory-item-actions button,.memory-inline-edit button{cursor:pointer;min-width:36px;height:36px;color:var(--color-secondary);background:0 0;border:0;border-radius:9px;justify-content:center;align-items:center;gap:5px;display:inline-flex}.memory-item-actions button:hover,.memory-inline-edit button:hover{color:var(--color-primary);background:var(--color-accent-soft)}.memory-item-actions button.is-confirm{width:auto;color:var(--color-danger);background:var(--color-danger-soft);padding:0 10px}.memory-item-actions svg,.memory-inline-edit svg{width:18px;height:18px}.memory-inline-edit{grid-column:1;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}.memory-empty{text-align:center;place-content:center;min-height:180px;display:grid}.memory-empty p,.memory-disabled h2{margin:0 0 6px}.context-memory-page{gap:0;display:grid}.context-review-layout{gap:14px;display:grid}.context-review-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:16px;display:grid}.context-review-card{gap:18px;padding:22px;display:grid}.context-review-card>header,.context-review-card>footer{justify-content:space-between;align-items:center;gap:12px;display:flex}.context-review-card header>div{min-width:0}.context-review-card header span,.context-review-card header h2{margin:0}.context-review-card header>div>span{color:var(--color-secondary);font-size:12px}.context-review-card header h2{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:20px;overflow:hidden}.context-review-badge{color:var(--color-warning);background:var(--color-warning-soft);border-radius:999px;flex:none;padding:6px 9px;font-size:11px;font-weight:750}.context-review-fact{border:1px solid var(--color-accent-border);background:var(--color-accent-soft);border-radius:12px;gap:5px;padding:14px;display:grid}.context-review-fact span{color:var(--color-accent-strong);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px}.context-review-fact strong{overflow-wrap:anywhere;white-space:pre-wrap}.context-review-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0;display:grid}.context-review-meta div{min-width:0}.context-review-meta dt{color:var(--color-secondary);font-size:11px}.context-review-meta dd{overflow-wrap:anywhere;margin:3px 0 0;font-size:13px;font-weight:650}.context-review-conflict{border:1px solid var(--color-warning-border);color:var(--color-warning);background:var(--color-warning-soft);border-radius:10px;gap:4px;padding:12px;font-size:12px;display:grid}.context-review-note{color:var(--color-primary);gap:7px;font-size:12px;font-weight:700;display:grid}.context-review-note textarea{resize:vertical;border:1px solid var(--color-border-strong);width:100%;min-height:72px;color:var(--color-foreground);background:var(--color-surface);font:inherit;border-radius:10px;padding:10px 12px;font-weight:500}.context-review-card footer{justify-content:flex-end}.context-review-card footer .button{min-height:42px}.context-review-card footer svg,.context-review-empty svg{width:20px;height:20px}.context-review-empty{align-items:center;gap:14px;padding:24px;display:flex}.context-review-empty>svg{color:var(--color-success)}.context-review-empty h2,.context-review-empty p{margin:0}.context-review-empty h2{font-size:18px}.context-review-empty p{color:var(--color-secondary);margin-top:4px}@media (max-width:960px){.memory-layout{grid-template-columns:1fr}}@media (max-width:640px){.memory-form,.memory-list-panel,.memory-disabled{padding:20px}.memory-form-row{grid-template-columns:1fr}.memory-form-footer{flex-direction:column;align-items:stretch}.memory-item{grid-template-columns:minmax(0,1fr)}.memory-item-actions{grid-area:auto/1}}.chat-composer-wrap{background:var(--color-surface);padding:10px clamp(16px,3vw,48px) 12px}.chat-context-diagnostics{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px;width:min(100%,1120px);margin:0 auto 8px;font-size:12px}.chat-context-diagnostics>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:40px;padding:7px 11px;list-style:none;display:flex}.chat-context-diagnostics>summary::-webkit-details-marker{display:none}.chat-context-diagnostics>summary>span:first-child{align-items:baseline;gap:8px;min-width:0;display:flex}.chat-context-diagnostics>summary strong{color:var(--color-foreground);font-size:12px;font-weight:500}.chat-context-diagnostics>summary small,.chat-context-diagnostics-grid small,.chat-context-diagnostics-grid em,.chat-context-diagnostics>p{color:var(--color-secondary)}.chat-context-diagnostics>summary>span:last-child{color:var(--color-warning);background:var(--color-warning-soft);text-transform:uppercase;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:500}.chat-context-diagnostics>summary>span:last-child.is-native{color:var(--color-success);background:var(--color-success-soft)}.chat-context-diagnostics-grid{border-top:1px solid var(--color-border);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.chat-context-egress-event{border-top:1px solid var(--color-warning-border);background:var(--color-warning-soft);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.chat-context-egress-event>span{border-right:1px solid var(--color-warning-border);gap:2px;min-width:0;padding:9px 11px;display:grid}.chat-context-egress-event>span:last-child{border-right:0}.chat-context-egress-event small{color:var(--color-secondary);font-size:10px}.chat-context-egress-event strong{color:var(--color-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.chat-context-diagnostics-grid>span{border-right:1px solid var(--color-border);gap:2px;min-width:0;padding:9px 11px;display:grid}.chat-context-diagnostics-grid>span:last-child{border-right:0}.chat-context-diagnostics-grid small,.chat-context-diagnostics-grid em{text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal;overflow:hidden}.chat-context-diagnostics-grid strong{color:var(--color-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.chat-context-diagnostics>p{border-top:1px solid var(--color-border);margin:0;padding:7px 11px;font-size:10px}.chat-runtime-status{border:1px solid var(--color-warning-border);width:min(100%,1120px);color:var(--color-warning);background:var(--color-warning-soft);border-radius:12px;align-items:center;gap:10px;margin:0 auto 8px;padding:8px 12px;font-size:12px;display:flex}.chat-runtime-status.is-unavailable{border-color:color-mix(in srgb, var(--color-danger) 35%, var(--color-border));color:var(--color-danger);background:var(--color-danger-soft)}.chat-runtime-status>.spinner{flex:none}.chat-runtime-status>span:last-child{gap:1px;display:grid}.chat-runtime-status strong{color:currentColor;font-size:12px}.chat-runtime-status small{color:var(--color-secondary);font-size:11px;line-height:1.35}.chat-composer{border:1px solid var(--color-border);background:var(--color-surface);border-radius:20px;width:min(100%,1120px);margin:0 auto;padding:9px 10px 8px 16px;transition:border-color .18s,box-shadow .18s;display:grid;position:relative;box-shadow:0 12px 34px #0f172a1c}.chat-composer-documents,.chat-input-documents,.chat-input-project-sources{flex-wrap:wrap;gap:8px;min-width:0;display:flex}.chat-composer-documents{padding:4px 0 8px}.chat-composer-document,.chat-input-document,.chat-input-project-source{border:1px solid var(--color-border);min-width:0;max-width:min(100%,320px);color:var(--color-foreground);background:var(--color-neutral-soft);border-radius:11px;align-items:center;gap:8px;padding:7px 9px;display:inline-flex}.chat-composer-document>svg,.chat-input-document>svg,.chat-input-project-source>svg{width:18px;height:18px;color:var(--color-primary);flex:none}.chat-composer-document>span,.chat-input-document>span,.chat-input-project-source>span{min-width:0;display:grid}.chat-composer-document strong,.chat-input-document strong,.chat-input-project-source strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.chat-composer-document small,.chat-input-document small,.chat-input-project-source small{color:var(--color-secondary);font-size:10px}.chat-composer-document.is-pending{border-style:dashed}.chat-composer-document>button{width:24px;height:24px;color:var(--color-secondary);cursor:pointer;background:0 0;border:0;border-radius:7px;flex:none;place-items:center;padding:0;display:grid}.chat-composer-document>button:not(.is-publish):hover:not(:disabled){color:var(--color-danger);background:var(--color-danger-soft)}.chat-composer-document>button.is-publish:hover:not(:disabled){color:var(--color-primary);background:var(--color-primary-soft)}.chat-composer-document>button svg{width:15px;height:15px}.chat-input-documents,.chat-input-project-sources{margin-top:10px}.chat-composer-project-source,.chat-input-project-source{border-color:color-mix(in srgb, var(--color-primary) 32%, var(--color-border));background:color-mix(in srgb, var(--color-primary-soft) 62%, var(--color-surface))}.chat-source-mention-menu{z-index:1100;border:1px solid var(--color-border);max-height:min(420px,52vh);color:var(--color-foreground);background:var(--color-surface);border-radius:14px;position:fixed;overflow:hidden;transform:translateY(-100%);box-shadow:0 16px 40px #0f172a38}.chat-source-mention-menu>header{border-bottom:1px solid var(--color-border);gap:2px;padding:12px 14px 10px;display:grid}.chat-source-mention-menu>header strong{font-size:13px}.chat-source-mention-menu>header small,.chat-source-mention-options button small{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.chat-source-mention-options{max-height:min(350px,44vh);padding:6px;overflow-y:auto}.chat-source-mention-options>p{color:var(--color-secondary);margin:0;padding:16px 12px;font-size:13px}.chat-source-mention-options>p.is-error{color:var(--color-danger)}.chat-source-mention-options button{width:100%;min-width:0;color:var(--color-foreground);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:9px 10px;display:flex}.chat-source-mention-options button:hover,.chat-source-mention-options button.is-active{background:var(--color-primary-soft)}.chat-source-mention-options button:focus-visible{outline:2px solid var(--color-ring);outline-offset:-2px}.chat-source-mention-options button>svg{width:20px;height:20px;color:var(--color-primary);flex:none}.chat-source-mention-options button>span{gap:2px;min-width:0;display:grid}.chat-source-mention-options button strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.chat-composer-document>img{object-fit:cover;border-radius:8px;flex:none;width:42px;height:42px}.chat-input-images{flex-wrap:wrap;gap:8px;min-width:0;margin-top:10px;display:flex}.chat-input-image{border:1px solid var(--color-border);min-width:0;max-width:min(100%,360px);color:var(--color-foreground);background:var(--color-neutral-soft);border-radius:11px;align-items:center;gap:9px;padding:8px 10px;display:inline-flex}.chat-input-image>img,.chat-input-image>svg{object-fit:cover;border-radius:9px;flex:none;width:48px;height:48px}.chat-input-image>svg{color:var(--color-primary);background:var(--color-primary-soft);padding:11px}.chat-input-image>span{min-width:0;display:grid}.chat-input-image strong,.chat-input-image small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-input-image strong{font-size:12px}.chat-input-image small{color:var(--color-secondary);font-size:10px}.chat-message-user .chat-input-images,.chat-message-user .chat-input-documents{justify-content:flex-end;margin:0 0 4px}.chat-message-user .chat-input-image{background:0 0;border:0;border-radius:18px;gap:6px;max-width:min(100%,360px);padding:0;display:grid;overflow:hidden}.chat-message-user .chat-input-image>img{border:1px solid var(--color-border);background:var(--color-neutral-soft);object-fit:contain;border-radius:18px;width:min(360px,100%);height:auto;max-height:300px}.chat-message-user .chat-input-image>span{text-align:right;justify-items:end;padding:0 3px}.chat-message-user .chat-input-document{max-width:min(100%,420px)}.chat-composer:focus-within{border-color:color-mix(in srgb, var(--color-ring) 55%, var(--color-border));box-shadow:0 14px 36px #0f172a21,0 0 0 3px #0369a114}.chat-composer textarea{resize:none;width:100%;min-height:52px;max-height:144px;color:var(--color-foreground);background:var(--color-surface);font:inherit;border:0;padding:8px 2px;font-size:16px;font-weight:400;line-height:1.5;overflow-y:auto}.chat-composer textarea:focus{outline:none}.chat-composer-actions{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.chat-composer.is-voice-active{min-height:148px;padding-top:14px}.chat-voice-waveform{align-items:center;min-height:82px;display:grid;overflow:hidden}.chat-voice-waveform canvas{width:100%;height:64px;display:block}.chat-composer-primary-actions{align-items:center;gap:10px;min-width:0;display:flex}.chat-composer-primary-actions>span{color:var(--color-secondary);font-size:11px}.chat-attach-control{z-index:4;flex:none;position:relative}.chat-attach-trigger{border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-foreground);background:var(--color-surface);cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:border-color .16s,background .16s,color .16s;display:grid}.chat-attach-trigger:hover:not(:disabled),.chat-attach-trigger[aria-expanded=true]{border-color:var(--color-accent-border);color:var(--color-primary);background:var(--color-accent-soft)}.chat-attach-trigger:disabled{cursor:not-allowed;opacity:.45}.chat-attach-trigger svg{width:21px;height:21px}.chat-attach-menu{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;width:min(340px,100vw - 40px);padding:6px;display:grid;position:absolute;bottom:calc(100% + 12px);left:-8px;overflow:hidden;box-shadow:0 18px 48px #0f172a2e}.chat-attach-menu:after{border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);background:var(--color-surface);content:"";width:11px;height:11px;position:absolute;bottom:-6px;left:27px;transform:rotate(45deg)}.chat-attach-menu button{z-index:1;color:var(--color-foreground);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;padding:10px;display:grid;position:relative}.chat-attach-menu button:hover:not(:disabled){color:var(--color-primary);background:var(--color-accent-soft)}.chat-attach-menu button:disabled{cursor:not-allowed;opacity:.48}.chat-attach-menu button>svg{justify-self:center;width:22px;height:22px}.chat-attach-menu button>span{gap:2px;min-width:0;display:grid}.chat-attach-menu strong{font-size:13px}.chat-attach-menu small{color:var(--color-secondary);font-size:10px}.chat-document-modal-backdrop{z-index:120;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172a75;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.chat-document-modal{border:1px solid var(--color-border);background:var(--color-surface);border-radius:20px;gap:18px;width:min(100%,560px);max-height:min(760px,100dvh - 40px);padding:24px;display:grid;overflow:auto;box-shadow:0 28px 80px #0f172a47}.chat-document-modal-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.chat-document-modal-header h2{margin:3px 0 0;font-size:24px}.chat-document-modal-header>button{width:36px;height:36px;color:var(--color-secondary);background:var(--color-neutral-soft);cursor:pointer;border:0;border-radius:10px;flex:none;place-items:center;padding:0;display:grid}.chat-document-modal-header>button:hover:not(:disabled){color:var(--color-foreground);background:var(--color-muted)}.chat-document-modal-header>button svg{width:18px;height:18px}.chat-upload-file-summary{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:13px;align-items:center;gap:12px;min-width:0;padding:13px 14px;display:flex}.chat-upload-file-summary>svg{width:24px;height:24px;color:var(--color-primary);flex:none}.chat-upload-file-summary>span{min-width:0;display:grid}.chat-upload-file-summary strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-upload-file-summary small{color:var(--color-secondary)}.chat-document-modal .field>span{color:var(--color-primary);font-size:14px;font-weight:700}.chat-document-modal .field>small{color:var(--color-secondary);font-size:12px;line-height:1.45}.chat-document-progress,.chat-document-empty{color:var(--color-secondary);justify-content:center;align-items:center;gap:9px;margin:0;font-size:13px;display:flex}.chat-document-modal-actions{justify-content:flex-end;align-items:center;gap:10px;padding-top:4px;display:flex}.chat-document-modal-actions .button{align-items:center;gap:8px;display:inline-flex}.chat-document-modal-actions .button svg{width:18px;height:18px}.chat-document-picker{width:min(100%,680px)}.chat-document-search{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:12px;align-items:center;gap:10px;height:48px;padding:0 14px;display:flex}.chat-document-search:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 3px #0369a11a}.chat-document-search svg{width:20px;height:20px;color:var(--color-secondary)}.chat-document-search input{width:100%;min-width:0;color:var(--color-foreground);font:inherit;background:0 0;border:0;outline:0}.chat-document-picker-list{gap:7px;min-height:180px;max-height:min(440px,48dvh);display:grid;overflow-y:auto}.chat-document-picker-item{color:var(--color-foreground);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:12px;padding:11px 12px;display:grid}.chat-document-picker-item:hover:not(:disabled){background:var(--color-accent-soft)}.chat-document-picker-item.is-selected{border-color:var(--color-accent-border);background:var(--color-accent-soft)}.chat-document-picker-item:disabled{cursor:not-allowed;opacity:.48}.chat-document-picker-item>span:nth-child(2){gap:2px;min-width:0;display:grid}.chat-document-picker-item strong,.chat-document-picker-item small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-document-picker-item small{color:var(--color-secondary);font-size:11px}.chat-document-picker-icon{width:40px;height:40px;color:var(--color-primary);background:var(--color-accent-soft-hover);border-radius:10px;place-items:center;display:grid}.chat-document-picker-icon svg,.chat-document-picker-check svg{width:20px;height:20px}.chat-document-picker-check{border:1px solid var(--color-border);width:26px;height:26px;color:var(--color-message-user-text);background:var(--color-surface);border-radius:8px;place-items:center;display:grid}.chat-document-picker-item.is-selected .chat-document-picker-check{border-color:var(--color-message-user);background:var(--color-message-user)}.chat-document-selection-count{color:var(--color-secondary);margin-right:auto;font-size:12px}.chat-composer-submit-actions{flex:none;align-items:center;gap:8px;display:flex}.chat-voice-trigger,.chat-voice-action{cursor:pointer;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;padding:0;transition:border-color .16s,color .16s,background .16s,transform .16s;display:grid}.chat-voice-trigger{border:1px solid var(--color-border);color:var(--color-foreground);background:var(--color-surface)}.chat-voice-trigger:hover:not(:disabled){border-color:var(--color-accent-border);color:var(--color-primary);background:var(--color-accent-soft)}.chat-voice-trigger:focus-visible,.chat-voice-action:focus-visible{outline:3px solid color-mix(in srgb, var(--color-ring) 28%, transparent);outline-offset:2px}.chat-voice-trigger:disabled,.chat-voice-action:disabled{cursor:not-allowed;opacity:.5}.chat-voice-trigger svg,.chat-voice-action svg{width:21px;height:21px}.chat-voice-action{color:var(--color-secondary);background:0 0;border:0}.chat-voice-action:hover:not(:disabled){background:var(--color-neutral-soft);transform:translateY(-1px)}.chat-voice-action.is-cancel:hover:not(:disabled){color:var(--color-danger);background:var(--color-danger-soft)}.chat-voice-action.is-accept{color:var(--color-success)}.chat-voice-action.is-accept:hover:not(:disabled){color:var(--color-success);background:var(--color-success-soft)}.chat-send-button{border-radius:14px;flex:none;width:44px;height:44px;min-height:44px;padding:0}.chat-stop-button{border:1px solid color-mix(in srgb, var(--color-danger) 82%, var(--color-border));color:#fff;background:var(--color-danger);cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}.chat-stop-button:hover:not(:disabled){border-color:var(--color-danger);background:color-mix(in srgb, var(--color-danger) 88%, #000);box-shadow:0 8px 18px color-mix(in srgb, var(--color-danger) 22%, transparent);transform:translateY(-1px)}.chat-stop-button:focus-visible{outline:3px solid color-mix(in srgb, var(--color-danger) 30%, transparent);outline-offset:2px}.chat-stop-button:disabled{cursor:wait;opacity:.78}.chat-stop-button svg{width:17px;height:17px}.chat-composer-wrap>p{color:var(--color-secondary);text-align:center;margin:7px 0 0;font-size:11px}.chat-error{border-radius:var(--radius-sm);color:var(--color-danger);background:var(--color-danger-soft);justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;padding:10px 12px;font-size:13px;display:flex}.chat-error button{cursor:pointer;color:var(--color-danger);background:0 0;border:0;font-weight:800;text-decoration:underline}.chat-unavailable{text-align:center;align-content:center;place-items:center;min-height:320px;padding:30px;display:grid}.chat-unavailable>svg{width:38px;height:38px;color:var(--color-secondary)}.chat-unavailable h2{margin:12px 0 4px}.chat-unavailable p{color:var(--color-secondary)}@keyframes skeleton-pulse{to{background-position:-200% 0}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:900px){.app-shell{grid-template-columns:84px minmax(0,1fr)}.app-shell-assistant{grid-template-columns:270px minmax(0,1fr)}.app-sidebar{gap:18px;padding:18px 10px 12px}.sidebar-brand-row{justify-items:center;padding:0}.sidebar-brand-actions{justify-content:center}.sidebar-brand-actions .brand-mark{display:grid}.sidebar-brand-actions .theme-toggle{display:none}.sidebar-brand-row .brand>span:last-child,.sidebar-product-label,.sidebar-back span,.sidebar-module-identity,.sidebar-group-title,.sidebar-group a span,.sidebar-user-copy{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.sidebar-group a{justify-content:center;padding:10px}.sidebar-module-header{justify-items:center}.sidebar-back{justify-content:center;width:44px;padding:10px}.app-shell-assistant .app-sidebar{gap:16px;padding:18px 12px 12px}.app-shell-assistant .sidebar-module-header{justify-items:stretch}.app-shell-assistant .sidebar-back{justify-content:flex-start;width:auto}.app-shell-assistant .sidebar-back span,.app-shell-assistant .sidebar-module-identity{clip:auto;white-space:normal;width:auto;height:auto;margin:0;position:static;overflow:visible}.sidebar-user{grid-template-columns:40px 40px;justify-content:center;justify-items:center;gap:6px;padding:12px 0 0}.sidebar-user-avatar{grid-column:1/-1}.auth-shell{grid-template-columns:1fr}.auth-intro{min-height:380px}.auth-copy{padding:56px 0}.dashboard-grid,.admin-directory-layout,.organization-directory-layout{grid-template-columns:1fr}.user-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.loading-grid,.documents-layout,.generated-documents-layout{grid-template-columns:1fr}}@media (max-width:640px){.app-shell{grid-template-columns:68px minmax(0,1fr)}.app-shell-assistant{grid-template-columns:240px minmax(0,1fr)}.app-sidebar{padding-left:7px;padding-right:7px}.brand-mark{width:38px;height:38px}.sidebar-group a{min-height:46px;padding:10px 7px}.sidebar-user-avatar{width:34px;height:34px}.sidebar-logout{width:38px;height:38px}.auth-intro{min-height:330px;padding:24px}.auth-copy{padding:38px 0 28px}.auth-copy h1{font-size:34px}.auth-copy p{font-size:16px}.auth-panel{padding:40px 20px 56px}.field-grid,.service-grid,.user-role-options{grid-template-columns:1fr}.password-generator-controls{grid-template-columns:minmax(0,1fr) 84px}.password-length-control input{width:84px}.password-generate-button{grid-column:1/-1}.user-directory-toolbar{grid-template-columns:minmax(0,1fr) 46px}.user-add-button{grid-column:1/-1}.user-stats-grid{grid-template-columns:1fr}.user-stat-card{min-height:86px}.user-status-field,.organization-status-field{max-width:none}.user-form-actions{flex-direction:column-reverse;align-items:stretch}.user-form-actions .button{width:100%}.chat-attachment{grid-template-columns:40px minmax(0,1fr)}.chat-attachment-actions{flex-wrap:wrap;grid-column:1/-1;width:100%}.chat-attachment-actions .button{flex:180px}.setup-header{align-items:flex-start;gap:18px}.setup-badge{text-align:right;max-width:150px}.header-inner{width:100%;padding-left:12px;padding-right:12px}.dashboard{width:100%;padding-left:14px;padding-right:14px}.header-user>div{display:none}.header-start{gap:10px}.brand-link>span:last-child{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.app-nav a{justify-content:center;width:44px;padding:10px}.app-nav a span,.logout-button span{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.logout-button{width:46px;padding:10px}.welcome-row{flex-direction:column;align-items:flex-start}.status-panel,.account-panel,.user-panel,.document-upload-panel,.document-list-panel,.knowledge-search-panel{padding:20px}.document-heading-actions{width:100%}.document-heading-actions .button{flex:1;justify-content:center}.knowledge-source-dialog-backdrop{padding:8px}.knowledge-source-dialog{border-radius:16px;gap:14px;max-height:calc(100dvh - 16px);padding:18px}.knowledge-source-dialog-header p{font-size:13px}.knowledge-collection-actions,.collection-editor-actions{flex-direction:column;align-items:stretch}.knowledge-collection-actions .button,.collection-editor-actions .button{width:100%}.knowledge-source-url-box{border-radius:14px;min-height:64px;padding:8px 10px 8px 14px}.knowledge-source-url-box>svg{display:none}.knowledge-source-advanced-grid,.knowledge-source-file-settings,.connector-settings-grid{grid-template-columns:1fr}.knowledge-source-advanced-grid>label,.knowledge-source-advanced-grid>.knowledge-source-title-field,.knowledge-source-advanced-grid>.knowledge-source-class-field{grid-column:1/-1}.connector-settings-wide{grid-column:auto}.connector-settings-footer{flex-direction:column;align-items:stretch}.connector-settings-footer>div,.connector-settings-footer .button{width:100%}.connector-settings-footer>div .button{flex:1}.knowledge-source-dropzone{min-height:210px;padding:20px 14px}.knowledge-source-file-settings .button{width:100%}.admin-create-panel,.organization-list-panel,.user-management-panel{padding:20px}.organization-item{grid-template-columns:minmax(0,1fr) auto;gap:8px 14px}.organization-item p{grid-column:1/-1}.document-list-heading{flex-wrap:wrap;align-items:flex-start}.document-table,.document-table tbody,.document-table tr,.document-table td{display:block}.document-table thead{display:none}.document-table tr{border-bottom:1px solid var(--color-border);padding:14px 0}.document-table td{text-align:right;border:0;justify-content:space-between;align-items:center;gap:16px;padding:5px 0;display:flex;min-width:0!important}.document-table td:before{content:attr(data-label);color:var(--color-secondary);text-align:left;font-size:12px;font-weight:700}.document-table td:first-child{text-align:left;padding-bottom:10px;display:block}.document-table td:first-child:before,.document-actions:before{display:none}.document-actions{width:100%;margin-top:8px}.document-actions-inner{flex-wrap:wrap;width:100%}.document-actions-inner>.button:not(.document-action-icon){flex:1;width:auto}.document-actions-inner .document-action-icon{flex:0 0 40px;width:40px}.generated-document-form-panel,.generated-document-list-panel{padding:20px}.generated-document-list-heading{flex-direction:column;align-items:stretch}.generated-refresh-button{width:100%}.generated-document-card-main{grid-template-columns:48px minmax(0,1fr)}.generated-document-format{width:48px;height:42px}.generated-document-status{grid-column:1/-1;justify-self:start}.generated-document-review{grid-template-columns:1fr}.generated-document-review .button,.generated-document-download .button{width:100%}.generated-document-hint{padding-left:0}.chat-page{padding:8px}.chat-sidebar-top{padding-bottom:8px}.chat-sidebar-controls{grid-template-columns:minmax(0,1fr) 1px 40px;gap:8px}.chat-new-button{width:40px;min-height:40px;padding:0}.chat-session-search input{min-height:40px}.chat-session-list{padding-top:6px}.chat-session-inline-edit{grid-template-columns:minmax(0,1fr) 28px 28px;min-height:40px;padding:5px 5px 5px 8px}.chat-session-inline-action{width:28px;height:28px}.chat-session-select{min-height:40px;padding:6px 4px 6px 8px}.chat-session-date{font-size:10px}.chat-session-pin-trigger,.chat-session-menu-trigger{opacity:1}.chat-conversation{--chat-content-gutter:14px;--chat-content-right-gutter:72px;border-radius:16px}.chat-messages{min-height:0;padding:18px var(--chat-content-right-gutter) 24px var(--chat-content-gutter);gap:18px}.chat-scroll-navigation{width:44px;height:44px;padding:0;left:50%;right:auto}.chat-scroll-to-start{top:12px}.chat-scroll-to-latest{bottom:12px}.chat-message{max-width:92%}.chat-message-assistant{width:100%;max-width:100%}.chat-message-edit{width:min(100%,86vw)}.chat-composer-wrap{padding:8px}.chat-context-diagnostics>summary>span:first-child{flex-direction:column;align-items:flex-start;gap:1px}.chat-context-diagnostics-grid,.chat-context-egress-event{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-context-diagnostics-grid>span,.chat-context-egress-event>span{border-bottom:1px solid var(--color-border)}.chat-context-diagnostics-grid>span:nth-child(2n),.chat-context-egress-event>span:nth-child(2n){border-right:0}.chat-context-diagnostics-grid>span:nth-last-child(-n+2),.chat-context-egress-event>span:nth-last-child(-n+2){border-bottom:0}.chat-composer{border-radius:16px;padding:6px 7px 6px 12px}.chat-composer.is-voice-active{min-height:124px;padding-top:10px}.chat-voice-waveform{min-height:62px}.chat-voice-waveform canvas{height:52px}.chat-composer textarea{min-height:42px;padding:6px 2px}.chat-composer-actions{min-height:40px}.chat-composer-primary-actions>span,.chat-composer-wrap>p{display:none}.chat-composer-documents{flex-wrap:nowrap;overflow-x:auto}.chat-composer-document{min-width:210px}.chat-attach-menu{left:-4px}.chat-document-modal-backdrop{padding:8px}.chat-document-modal{border-radius:16px;gap:14px;max-height:calc(100dvh - 16px);padding:18px}.chat-document-modal-actions{flex-wrap:wrap}.chat-document-selection-count{width:100%}.chat-send-button{width:40px;height:40px;min-height:40px}.chat-voice-trigger,.chat-voice-action{width:40px;height:40px}}.hermes-admin-grid{grid-template-columns:minmax(320px,.8fr) minmax(560px,1.2fr);align-items:start;gap:20px;display:grid}.hermes-release-panel,.hermes-auth-panel,.codex-device-panel,.hermes-unavailable{padding:24px}.hermes-release-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:16px;margin-top:22px;display:grid}.hermes-release-row>div{gap:4px;display:grid}.hermes-release-row .runtime-badge{grid-column:1/-1;justify-self:start}.runtime-badge{white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:5px 10px;font-size:12px;font-weight:750;display:inline-flex}.runtime-badge.is-ok{color:var(--color-success);background:var(--color-success-soft)}.runtime-badge.is-error{color:var(--color-danger);background:var(--color-danger-soft)}.runtime-badge.is-warning{color:var(--color-warning);background:var(--color-warning-soft)}.runtime-badge.is-neutral{color:var(--color-secondary);background:var(--color-neutral-soft)}.hermes-release-actions{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}.hermes-release-actions a{text-decoration:none}.hermes-update-disabled{color:var(--color-warning);margin:14px 0 0;font-size:13px}.hermes-release-confirmation{border:1px solid var(--color-warning);border-radius:var(--radius-sm);background:color-mix(in srgb, var(--color-warning) 8%, var(--color-surface));gap:10px;margin-top:18px;padding:16px;display:grid}.hermes-release-confirmation.is-rollback{border-color:var(--color-danger-border);background:var(--color-danger-soft)}.hermes-release-confirmation p{color:var(--color-secondary);margin:0;font-size:13px}.hermes-release-confirmation label{color:var(--color-secondary);font-size:13px;font-weight:700}.hermes-release-confirmation code{color:var(--color-primary)}.hermes-release-confirmation input{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);width:100%;min-height:46px;color:var(--color-primary);background:var(--color-surface);font:inherit;padding:10px 12px}.hermes-release-confirmation-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.hermes-release-progress{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-background);gap:8px;margin-top:18px;padding:14px;display:grid}.hermes-release-progress.is-success{border-color:var(--color-success);background:var(--color-success-soft)}.hermes-release-progress.is-error{border-color:var(--color-danger-border);background:var(--color-danger-soft)}.hermes-release-progress>span{align-items:center;gap:9px;display:flex}.hermes-release-progress>span svg{width:18px;height:18px}.hermes-release-progress small,.hermes-release-progress p{color:var(--color-secondary);margin:0;font-size:13px}.hermes-policy-note{border-top:1px solid var(--color-border);color:var(--color-secondary);margin:18px 0 0;padding-top:16px;font-size:13px}.hermes-profile-list{border-top:1px solid var(--color-border);margin-top:22px;display:grid}.hermes-profile-row{border-bottom:1px solid var(--color-border);grid-template-columns:minmax(170px,1fr) minmax(150px,auto) auto;align-items:center;gap:18px;min-width:0;padding:16px 0;display:grid}.hermes-profile-copy,.hermes-profile-state{gap:3px;min-width:0;display:grid}.hermes-profile-copy span,.hermes-profile-state small{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.hermes-profile-state{justify-items:start}.hermes-reauth-button{min-height:40px;padding:8px 12px;font-size:13px}.codex-account-metadata{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);margin:16px 0 0;overflow:hidden}.codex-account-metadata>div{border-bottom:1px solid var(--color-border);grid-template-columns:minmax(190px,.35fr) minmax(0,1fr);align-items:start;gap:20px;min-width:0;padding:13px 16px;display:grid}.codex-account-metadata>div:last-child{border-bottom:0}.codex-account-metadata dt{color:var(--color-secondary);letter-spacing:.05em;text-transform:uppercase;font-size:11px;font-weight:750}.codex-account-metadata dd{color:var(--color-primary);overflow-wrap:anywhere;white-space:normal;margin:0;font-size:13px;font-weight:650;line-height:1.5}@media (max-width:640px){.codex-account-metadata>div{grid-template-columns:1fr;gap:5px}}.codex-device-panel{border-color:color-mix(in srgb, var(--color-accent) 30%, var(--color-border));grid-column:1/-1}.codex-device-heading{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.codex-device-heading h2{margin-bottom:0}.codex-device-heading .icon-button{flex:none;position:static}.codex-device-steps{color:var(--color-secondary);margin:22px 0;padding-left:22px}.codex-device-code-row{align-items:stretch;gap:10px;max-width:620px;display:flex}.codex-device-code-row code{border:1px solid var(--color-border);border-radius:var(--radius-sm);min-width:230px;min-height:56px;color:var(--color-primary);background:var(--color-background);letter-spacing:.12em;place-items:center;padding:10px 18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;font-weight:750;display:grid}.codex-open-button{margin-top:12px;text-decoration:none}.codex-waiting{color:var(--color-secondary);align-items:center;gap:9px;margin:18px 0 0;font-size:13px;display:flex}.codex-waiting .spinner{border-color:color-mix(in srgb, var(--color-accent) 25%, transparent);border-top-color:var(--color-accent)}.hermes-global-error{grid-column:1/-1}.skill-governance-panel{margin-top:20px;padding:24px}.skill-governance-heading,.skill-candidate-summary,.skill-review-actions,.skill-review-scope{align-items:center;gap:14px;display:flex}.skill-governance-heading{justify-content:space-between}.skill-governance-heading h2{margin:4px 0}.skill-governance-heading p,.skill-candidate-gist,.skill-empty{color:var(--color-secondary);margin:0}.skill-empty{margin-top:20px}.skill-candidate-list{gap:12px;margin-top:20px;display:grid}.skill-candidate{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-background);padding:16px}.skill-candidate-summary>div{gap:2px;min-width:0;margin-right:auto;display:grid}.skill-candidate-summary>div span,.skill-candidate details summary{color:var(--color-secondary);font-size:12px}.skill-candidate-gist{margin-top:10px;font-size:13px}.skill-candidate-source{color:var(--color-secondary);margin:6px 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.skill-findings{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.skill-finding{color:var(--color-secondary);background:var(--color-surface);border-radius:8px;padding:5px 8px;font-size:11px}.skill-finding.is-blocker{color:var(--color-danger);background:var(--color-danger-soft)}.skill-candidate details{margin-top:12px}.skill-candidate details summary{cursor:pointer}.skill-candidate pre{color:#e5e7eb;white-space:pre-wrap;word-break:break-word;background:#111827;border-radius:8px;max-height:300px;padding:12px;overflow:auto}.skill-candidate details code{color:var(--color-secondary);word-break:break-all;font-size:11px}.skill-review-form{border-top:1px solid var(--color-border);gap:12px;margin-top:16px;padding-top:16px;display:grid}.skill-review-form label{color:var(--color-primary);flex:260px;gap:6px;font-size:12px;font-weight:700;display:grid}.skill-review-form input,.skill-review-form textarea,.skill-review-form select{border:1px solid var(--color-border);width:100%;color:var(--color-primary);background:var(--color-surface);font:inherit;border-radius:8px;padding:10px 12px;font-weight:400}.skill-review-form textarea{resize:vertical}.skill-review-actions{justify-content:flex-end}.button-danger{color:var(--color-danger)}@media (max-width:1050px){.hermes-admin-grid{grid-template-columns:1fr}.codex-device-panel,.hermes-global-error{grid-column:1}}@media (max-width:720px){.skill-governance-heading,.skill-candidate-summary,.skill-review-scope{flex-direction:column;align-items:stretch}.skill-candidate-summary .runtime-badge{align-self:flex-start}.hermes-profile-row{grid-template-columns:1fr auto}.hermes-profile-state{grid-area:2/1}.hermes-reauth-button{grid-area:1/2/span 2}.hermes-release-row{grid-template-columns:1fr}.codex-device-code-row{flex-direction:column;align-items:stretch}.codex-device-code-row code{min-width:0}}@media (max-width:520px){.hermes-profile-row{grid-template-columns:1fr}.hermes-profile-state,.hermes-reauth-button{grid-area:auto/1}.hermes-reauth-button{width:100%}}.hermes-skills-panel{padding:18px;container:hermes-skills-panel/inline-size}.hermes-skills-workspace{gap:16px;display:grid}.hermes-skills-primary-tabs{justify-self:start}.hermes-skills-primary-tabs button{justify-content:center;align-items:center;gap:7px;display:inline-flex}.hermes-skills-primary-tabs button>span{min-width:22px;color:var(--color-secondary);background:var(--color-background);font-variant-numeric:tabular-nums;border-radius:999px;padding:2px 6px;font-size:10px}.hermes-skills-primary-tabs button>span.has-items{color:var(--color-warning);background:var(--color-warning-soft)}.hermes-skills-primary-tabs button.is-active>span{color:var(--color-accent-strong);background:var(--color-accent-soft)}.hermes-skills-workspace-panel{min-width:0}.hermes-skills-workspace-panel>.skill-governance-panel{margin-top:0}.hermes-skills-summary,.hermes-skills-summary-actions,.hermes-skills-profile-meta,.hermes-skills-context-row,.hermes-skills-context-actions{align-items:center;display:flex}.hermes-skills-summary{justify-content:space-between;gap:16px}.hermes-skills-summary .section-heading{gap:12px;margin-bottom:0}.hermes-skills-summary .section-icon{border-radius:11px;width:42px;height:42px}.hermes-skills-summary .section-heading h2{font-size:20px}.hermes-skills-summary .section-heading p{margin-top:2px;font-size:12px}.hermes-skills-summary-actions{flex:none;gap:8px}.hermes-skills-summary-actions .runtime-badge{min-height:30px;padding:5px 10px;font-size:11px}.hermes-skills-summary-actions .button,.hermes-profile-sync-button{min-height:38px;padding:7px 12px;font-size:12px}.hermes-skills-control-panel{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);margin-top:16px;overflow:hidden;container:hermes-skills-controls/inline-size}.hermes-profile-selector{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);align-items:center;gap:7px;min-width:0;height:40px;padding:4px 4px 4px 9px;display:flex}.hermes-control-prefix{color:var(--color-secondary);letter-spacing:.1em;text-transform:uppercase;flex:none;font-size:9px;font-weight:800}.hermes-profile-select-control{flex:auto;min-width:0;display:block;position:relative}.hermes-profile-select-control>svg{z-index:1;width:16px;height:16px;color:var(--color-accent-strong);pointer-events:none;position:absolute;top:7px;left:7px}.hermes-profile-select-control select{cursor:pointer;appearance:none;border:1px solid var(--color-border);width:100%;height:30px;color:var(--color-primary);background-color:var(--color-neutral-soft);background-image:var(--select-chevron);font:inherit;background-position:right 7px center;background-repeat:no-repeat;background-size:15px 15px;border-radius:7px;padding:4px 30px 4px 29px;font-size:12px;font-weight:700}.hermes-profile-select-control select:hover{border-color:var(--color-border-strong)}.hermes-skills-profile-meta{flex-wrap:wrap;flex:auto;gap:7px;min-width:0}.hermes-skills-profile-meta strong{color:var(--color-primary);font-size:13px}.hermes-skills-profile-meta code,.hermes-skills-profile-meta small{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.hermes-skills-profile-meta .runtime-badge{min-height:27px;padding:4px 8px;font-size:10px}.hermes-skills-context-row{border-top:1px solid var(--color-border);justify-content:space-between;gap:12px;min-height:50px;padding:7px 10px}.hermes-skills-context-actions{flex:none;justify-content:flex-end;gap:8px}.hermes-skill-contract-alert{border:1px solid color-mix(in srgb, var(--color-warning) 45%, var(--color-border));border-radius:var(--radius-sm);color:var(--color-primary);background:color-mix(in srgb, var(--color-warning) 9%, var(--color-surface));gap:5px;margin-top:12px;padding:10px 12px;display:grid}.hermes-skill-contract-alert p{margin:0;font-size:12px;line-height:1.45}.hermes-skills-view-tabs{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-neutral-soft);gap:3px;margin:0;padding:3px;display:inline-flex}.hermes-skills-view-tabs button{cursor:pointer;min-height:32px;color:var(--color-secondary);font:inherit;background:0 0;border:0;border-radius:7px;padding:5px 11px;font-size:11px;font-weight:750;transition:color .18s,background .18s,box-shadow .18s}.hermes-skills-view-tabs button:hover{color:var(--color-primary)}.hermes-skills-view-tabs button.is-active{color:var(--color-accent-strong);background:var(--color-surface);box-shadow:0 1px 4px color-mix(in srgb, var(--color-primary) 12%, transparent)}.hermes-skills-filters{grid-template-columns:minmax(220px,.9fr) minmax(250px,1.35fr) repeat(4,minmax(132px,.65fr));gap:7px;padding:9px;display:grid}.hermes-marketplace-filters{grid-template-columns:minmax(220px,.9fr) minmax(300px,1.5fr) minmax(170px,.65fr)}.hermes-skills-filters label{min-width:0;position:relative}.hermes-skills-filters input,.hermes-skills-filters select{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;height:40px;color:var(--color-primary);background-color:var(--color-surface);font:inherit;padding:7px 10px;font-size:12px}.hermes-skills-filters select{cursor:pointer;appearance:none;background-image:var(--select-chevron);background-position:right 8px center;background-repeat:no-repeat;background-size:16px 16px;padding-right:32px}.hermes-skills-filters .hermes-profile-select-control select{background-color:var(--color-neutral-soft);background-position:right 7px center;background-size:15px 15px;border-radius:7px;height:30px;padding:4px 30px 4px 29px;font-size:12px;font-weight:700}.hermes-skills-search svg{width:18px;height:18px;color:var(--color-secondary);pointer-events:none;position:absolute;top:11px;left:11px}.hermes-skills-search input{padding-left:36px}.hermes-skills-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:12px;display:grid}.hermes-skill-card{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-width:0;min-height:288px;box-shadow:0 2px 8px color-mix(in srgb, var(--color-primary) 8%, transparent);flex-direction:column;padding:18px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex}.hermes-skill-card:hover{border-color:var(--color-border-strong);box-shadow:0 8px 22px color-mix(in srgb, var(--color-primary) 12%, transparent);transform:translateY(-1px)}.hermes-skill-card-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;min-width:0;display:grid}.hermes-skill-card-icon{width:38px;height:38px;color:var(--color-accent-strong);background:var(--color-accent-soft);border-radius:10px;place-items:center;display:grid}.hermes-skill-card-icon svg{width:20px;height:20px}.hermes-skill-card-title{gap:3px;min-width:0;display:grid}.hermes-skill-card-title strong{color:var(--color-primary);text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.35;overflow:hidden}.hermes-skill-card-title code{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.hermes-skill-card-badges{flex-wrap:wrap;grid-column:1/-1;gap:6px;min-width:0;display:flex}.skill-origin-badge{border:1px solid var(--color-border);min-height:28px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;align-items:center;padding:4px 9px;font-size:11px;font-weight:700;display:inline-flex}.skill-origin-badge.is-ok{border-color:color-mix(in srgb, var(--color-success) 32%, var(--color-border));color:var(--color-success);background:var(--color-success-soft)}.skill-origin-badge.is-warning{border-color:color-mix(in srgb, var(--color-warning) 35%, var(--color-border));color:var(--color-warning);background:color-mix(in srgb, var(--color-warning) 10%, var(--color-surface))}.hermes-skill-card-description{min-height:60px;color:var(--color-secondary);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:14px 0 0;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.hermes-skill-card-tags{flex-wrap:wrap;gap:6px;margin-top:14px;display:flex}.hermes-skill-card-tags span{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:999px;padding:4px 8px;font-size:11px;font-weight:650}.hermes-skill-card-footer{flex-direction:column;align-items:stretch;gap:9px;min-width:0;margin-top:auto;padding-top:16px;display:flex}.hermes-marketplace-card-action{justify-content:space-between;align-items:center;gap:12px;width:100%;min-width:0;display:flex}.hermes-marketplace-card-action>span{min-width:0;color:var(--color-secondary);font-size:12px;line-height:1.45}.hermes-marketplace-card-action .button{flex:none}.hermes-skill-card-actions{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.hermes-skill-details-button{flex:none;align-items:center;min-height:44px;padding:8px 13px;font-size:13px;display:inline-flex}.hermes-skill-mutations{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:9px;min-width:0;display:flex}.hermes-skill-toggle{cursor:pointer;min-height:44px;color:var(--color-secondary);font:inherit;background:0 0;border:0;flex:none;align-items:center;gap:7px;padding:6px 2px;font-size:12px;font-weight:700;display:inline-flex}.hermes-skill-card-toggle{place-self:start end;margin-top:-3px}.hermes-skill-toggle-track{border:1px solid var(--color-border-strong);background:var(--color-neutral-soft);border-radius:999px;flex:none;align-items:center;width:40px;height:23px;padding:2px;transition:border-color .16s,background .16s;display:inline-flex;position:relative}.hermes-skill-toggle-track>span{background:var(--color-surface);width:17px;height:17px;box-shadow:0 1px 3px color-mix(in srgb, var(--color-primary) 24%, transparent);border-radius:50%;transition:transform .16s;transform:translate(0)}.hermes-skill-toggle[aria-checked=true]{color:var(--color-success)}.hermes-skill-toggle[aria-checked=true] .hermes-skill-toggle-track{border-color:var(--color-success);background:var(--color-success)}.hermes-skill-toggle[aria-checked=true] .hermes-skill-toggle-track>span{transform:translate(17px)}.hermes-skill-toggle:hover:not(:disabled) .hermes-skill-toggle-track{border-color:var(--color-accent)}.hermes-skill-toggle:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px;border-radius:8px}.hermes-skill-toggle:disabled,.hermes-skill-uninstall:disabled{cursor:not-allowed;opacity:.55}.hermes-skill-uninstall{border:1px solid var(--color-border);width:40px;height:40px;min-height:40px;color:var(--color-danger);background:0 0;border-radius:10px;flex:none;padding:0;position:static;top:auto;right:auto}.hermes-skill-uninstall svg{width:20px;height:20px}.hermes-skill-uninstall:hover:not(:disabled){border-color:var(--color-danger-border);color:var(--color-danger);background:var(--color-danger-soft)}.hermes-skill-card-footer>small{color:var(--color-secondary);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.hermes-skills-empty{min-height:260px;color:var(--color-secondary);text-align:center;align-content:center;place-items:center;padding:32px;display:grid}.hermes-skills-empty svg{width:34px;height:34px;color:var(--color-accent);margin-bottom:10px}.hermes-skills-empty p{margin:4px 0 0}.hermes-skill-modal-backdrop{z-index:150;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#020617b3;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.hermes-skill-modal{border:1px solid var(--color-border);background:var(--color-surface);border-radius:20px;gap:20px;width:min(100%,760px);max-height:calc(100dvh - 40px);padding:28px;display:grid;overflow:auto;box-shadow:0 28px 80px #0206176b}.hermes-custom-skill-modal{width:min(100%,680px)}.hermes-custom-skill-modal .hermes-skill-modal-title p{color:var(--color-secondary);margin:0;font-size:12px}.hermes-custom-skill-dropzone{cursor:pointer;border:2px dashed var(--color-border-strong);border-radius:var(--radius-md);min-height:190px;color:var(--color-secondary);background:var(--color-neutral-soft);text-align:center;align-content:center;place-items:center;gap:8px;padding:28px;transition:border-color .16s,background .16s;display:grid;position:relative}.hermes-custom-skill-dropzone:hover,.hermes-custom-skill-dropzone:focus-within{border-color:var(--color-accent);background:var(--color-accent-soft)}.hermes-custom-skill-dropzone:focus-within{outline:3px solid var(--color-focus-ring);outline-offset:2px}.hermes-custom-skill-dropzone input{cursor:pointer;opacity:0;width:100%;height:100%;position:absolute;inset:0}.hermes-custom-skill-dropzone>svg{width:34px;height:34px;color:var(--color-accent-strong)}.hermes-custom-skill-dropzone strong{overflow-wrap:anywhere;max-width:100%;color:var(--color-primary);font-size:16px}.hermes-custom-skill-dropzone span{font-size:12px}.hermes-custom-skill-notice,.hermes-custom-skill-success,.hermes-custom-skill-warnings{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-neutral-soft);gap:6px;padding:14px 16px;display:grid}.hermes-custom-skill-notice p,.hermes-custom-skill-success p,.hermes-custom-skill-install-note,.hermes-custom-skill-warnings ul{color:var(--color-secondary);margin:0;font-size:12px;line-height:1.55}.hermes-custom-skill-success{border-color:color-mix(in srgb, var(--color-success) 32%, var(--color-border));background:var(--color-success-soft)}.hermes-custom-skill-success>div{flex-wrap:wrap;align-items:baseline;gap:8px;min-width:0;display:flex}.hermes-custom-skill-success code,.hermes-custom-skill-warnings code{color:var(--color-secondary);font-size:11px}.hermes-custom-skill-warnings{border-color:color-mix(in srgb, var(--color-warning) 40%, var(--color-border));background:color-mix(in srgb, var(--color-warning) 9%, var(--color-surface))}.hermes-custom-skill-warnings ul{gap:6px;padding-left:18px;display:grid}.hermes-custom-skill-warnings li code{overflow-wrap:anywhere;display:block}.hermes-custom-skill-digest{grid-column:1/-1}.hermes-custom-skill-digest code{overflow-wrap:anywhere}.hermes-skill-modal-header,.hermes-skill-modal-title,.hermes-skill-modal-badges,.hermes-skill-modal-footer{align-items:center;display:flex}.hermes-skill-modal-header{justify-content:space-between;align-items:flex-start;gap:18px}.hermes-skill-modal-title{gap:12px;min-width:0}.hermes-skill-modal-title>div{min-width:0}.hermes-skill-modal-title h2{overflow-wrap:anywhere;color:var(--color-primary);margin:0 0 4px;font-size:25px}.hermes-skill-modal-title code{color:var(--color-secondary);font-size:12px}.hermes-skill-modal-header>button{cursor:pointer;border:1px solid var(--color-border);width:40px;height:40px;color:var(--color-secondary);background:var(--color-neutral-soft);border-radius:10px;flex:none;place-items:center;padding:0;display:grid}.hermes-skill-modal-header>button:hover{color:var(--color-primary);background:var(--color-neutral-hover)}.hermes-skill-modal-header>button svg{width:18px;height:18px}.hermes-skill-modal-badges{flex-wrap:wrap;gap:7px}.hermes-skill-modal-description{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);padding:18px}.hermes-skill-modal-description>span{color:var(--color-secondary);letter-spacing:.1em;text-transform:uppercase;font-size:11px;font-weight:800}.hermes-skill-modal-description p{color:var(--color-primary);margin:10px 0 0;line-height:1.65}.hermes-skill-modal-metadata{border:1px solid var(--color-border);border-radius:var(--radius-md);margin:0;display:grid;overflow:hidden}.hermes-skill-modal-metadata>div{border-bottom:1px solid var(--color-border);grid-template-columns:150px minmax(0,1fr);gap:14px;min-width:0;padding:13px 16px;display:grid}.hermes-skill-modal-metadata>div:last-child{border-bottom:0}.hermes-skill-modal-metadata dt{color:var(--color-secondary);font-size:12px;font-weight:700}.hermes-skill-modal-metadata dd{min-width:0;color:var(--color-primary);overflow-wrap:anywhere;margin:0;font-size:12px}.hermes-skill-modal-metadata code{color:inherit;font-size:11px}.hermes-skill-modal-footer{flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:2px}@media (max-width:1200px){.hermes-skills-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.hermes-skills-search{grid-column:span 2}}@media (max-width:900px){.hermes-skills-filters{grid-template-columns:1fr 1fr}.hermes-skills-search{grid-column:1/-1}.hermes-skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.hermes-skills-summary,.hermes-skills-context-row{flex-direction:column;align-items:stretch}.hermes-skills-summary-actions,.hermes-skills-context-actions{justify-content:space-between}.hermes-skills-view-tabs{flex:auto;grid-template-columns:1fr 1fr;display:inline-grid}.hermes-skills-primary-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:520px){.hermes-skills-panel{padding:18px}.hermes-skills-summary-actions,.hermes-skills-filters,.hermes-marketplace-filters{grid-template-columns:1fr}.hermes-skills-summary-actions{display:grid}.hermes-skills-search{grid-column:auto}.hermes-skills-grid{grid-template-columns:1fr}.hermes-skill-card{min-height:0}.hermes-skill-card-footer,.hermes-skill-card-actions,.hermes-skill-mutations,.hermes-marketplace-card-action{flex-direction:column;align-items:stretch}.hermes-skills-view-tabs{width:100%;display:grid}.hermes-skills-primary-tabs{grid-template-columns:1fr}.hermes-skills-context-actions{flex-direction:column;align-items:stretch}.hermes-profile-sync-button,.hermes-marketplace-card-action .button{justify-content:center;width:100%}.hermes-skill-mutations{flex:0 auto}.hermes-skill-details-button{justify-content:center;width:100%}.hermes-skill-card-footer>small{text-align:left}.hermes-skill-modal-metadata>div{grid-template-columns:1fr}.hermes-skill-modal{padding:20px}.hermes-skill-modal-footer{flex-direction:column-reverse;align-items:stretch}.hermes-skill-modal-footer .button{justify-content:center}}@container hermes-skills-controls (max-width:900px){.hermes-skills-context-row{flex-direction:column;align-items:stretch}.hermes-skills-context-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%;display:grid}.hermes-skills-context-actions .hermes-profile-sync-button{justify-content:center;width:100%;min-width:0}.hermes-skills-context-actions .hermes-skills-view-tabs{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;display:grid}}@container hermes-skills-controls (max-width:520px){.hermes-skills-context-actions{grid-template-columns:1fr}.hermes-skills-context-actions .hermes-skills-view-tabs{width:100%}}@container hermes-skills-panel (max-width:1040px){.hermes-skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@container hermes-skills-panel (max-width:700px){.hermes-skills-grid{grid-template-columns:1fr}}.assistant-admin-workspace{gap:22px;display:grid}.assistant-editor-page{padding-top:32px;display:grid}.assistant-editor-page .breadcrumbs{margin-bottom:14px}.assistant-editor-page .directory-hero{margin-bottom:18px}.assistant-editor-page .directory-hero .eyebrow{margin-bottom:6px;font-size:10px}.assistant-editor-page .directory-hero h1{font-size:var(--font-size-page-title);font-weight:var(--font-weight-heading);margin:0 0 4px;line-height:1.1}.assistant-editor-page .directory-hero p{font-size:14px;line-height:1.45}.assistant-back-link{width:max-content;min-height:32px;color:var(--color-secondary);align-items:center;gap:8px;margin-bottom:12px;font-size:13px;font-weight:650;text-decoration:none;display:inline-flex}.assistant-back-link:hover{color:var(--color-accent)}.assistant-back-link svg{width:18px;height:18px}.assistant-admin-toolbar,.assistant-admin-toolbar .section-heading{align-items:center;display:flex}.assistant-admin-toolbar{justify-content:space-between;gap:20px;padding:24px}.assistant-admin-toolbar .section-heading{margin:0}.assistant-editor{gap:18px;padding:22px;display:grid}.assistant-editor-page-form{min-width:0}.assistant-editor header p,.assistant-editor header h2{margin:0}.assistant-editor header p{color:var(--color-secondary);margin-top:3px;font-size:13px;line-height:1.4}.assistant-editor .section-heading{align-items:center;gap:12px}.assistant-editor .section-heading h2{font-size:var(--font-size-section-title);font-weight:var(--font-weight-heading);line-height:1.25}.assistant-editor .section-icon{border-radius:10px;width:38px;height:38px}.assistant-editor .section-icon svg{width:19px;height:19px}.assistant-editor-grid,.assistant-access-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;display:grid}.assistant-editor-grid label{color:var(--color-primary);gap:6px;display:grid}.assistant-editor-grid label>span{font-size:var(--font-size-label);font-weight:var(--font-weight-label);line-height:1.35}.assistant-editor-grid input,.assistant-editor-grid select,.assistant-editor-grid textarea{width:100%;min-height:var(--control-height);border:1px solid var(--color-border);color:var(--color-primary);background:var(--color-surface);font:inherit;font-size:var(--font-size-control);font-weight:var(--font-weight-control);border-radius:11px;padding:9px 13px;line-height:1.45}.assistant-editor-grid select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--color-secondary) 50%), linear-gradient(135deg, var(--color-secondary) 50%, transparent 50%);background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 12px) calc(50% - 2px);background-repeat:no-repeat;background-size:6px 6px,6px 6px;padding-right:40px}.assistant-editor-grid textarea{resize:vertical;min-height:144px;line-height:1.5}.assistant-editor-wide{grid-column:1/-1}.assistant-editor-flags{flex-wrap:wrap;gap:10px 18px;font-size:14px;display:flex}.assistant-editor-flags .checkbox-row,.assistant-access-grid .checkbox-row{align-items:center;gap:8px;min-height:32px;font-weight:500;display:inline-flex}.assistant-editor-flags input[type=checkbox],.assistant-access-grid input[type=checkbox]{width:17px;height:17px;accent-color:var(--color-accent);margin:0}.assistant-access-grid fieldset{border:1px solid var(--color-border);border-radius:11px;align-content:start;gap:6px;max-height:220px;padding:14px;font-size:14px;display:grid;overflow:auto}.assistant-access-grid legend{padding:0 6px;font-size:13px;font-weight:700}.assistant-knowledge-fieldset{border:1px solid var(--color-border);border-radius:11px;grid-template-columns:minmax(150px,auto) minmax(0,1fr);align-items:center;gap:8px 18px;min-width:0;padding:13px 15px;display:grid}.assistant-knowledge-fieldset h3{margin:0;font-size:15px;font-weight:700;line-height:1.35}.assistant-knowledge-fieldset>p{color:var(--color-secondary);margin:0;font-size:13px;line-height:1.45}.assistant-editor-actions{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:16px}.assistant-editor-actions .button{min-height:42px;padding:8px 14px;font-size:14px}.assistant-knowledge-list{gap:10px;display:grid}.assistant-knowledge-row{background:var(--color-surface-muted);border-radius:12px;grid-template-columns:minmax(0,1fr) minmax(220px,320px);align-items:center;gap:14px;padding:12px;display:grid}.assistant-knowledge-row .checkbox-row span{gap:3px;min-width:0;display:grid}.assistant-knowledge-row small{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.assistant-knowledge-row select{border:1px solid var(--color-border);min-height:44px;color:var(--color-primary);background-color:var(--color-surface);font:inherit;border-radius:12px;padding:9px 38px 9px 12px}.assistant-knowledge-row select:disabled{cursor:not-allowed;opacity:.55}.assistant-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.assistant-admin-card{flex-direction:column;gap:20px;min-height:240px;padding:24px;display:flex}.assistant-admin-card header{min-width:0}.assistant-admin-card header h3{overflow-wrap:anywhere;margin:0;font-size:1.15rem;line-height:1.35}.assistant-admin-card-metadata{grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;display:grid}.assistant-admin-card-identity{justify-items:start;gap:8px;min-width:0;display:grid}.assistant-admin-card-controls{flex:none;align-items:center;gap:4px;margin-left:auto;display:flex}.assistant-admin-card-identity code{max-width:100%;color:var(--color-secondary);overflow-wrap:anywhere}.assistant-admin-card-settings{min-width:44px;min-height:44px;color:var(--color-secondary);border-radius:10px;place-items:center;text-decoration:none;transition:color .16s,background-color .16s;display:inline-grid}.assistant-admin-card-settings:hover{color:var(--color-primary);background:var(--color-accent-soft)}.assistant-admin-card-settings:focus-visible{color:var(--color-primary);outline:3px solid var(--color-focus-ring);outline-offset:2px}.assistant-admin-card-settings svg{width:20px;height:20px}.assistant-admin-card>p{color:var(--color-secondary);margin:0;line-height:1.55}.assistant-admin-badges{flex-wrap:wrap;gap:10px;display:flex}.assistant-admin-card-delete{width:44px;min-width:44px;padding:0}.assistant-admin-card-delete svg{width:20px;height:20px}@media (max-width:1280px){.assistant-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.assistant-admin-toolbar,.assistant-editor-flags{flex-direction:column;align-items:stretch}.assistant-editor-grid,.assistant-access-grid,.assistant-admin-grid{grid-template-columns:1fr}.assistant-admin-card-metadata{grid-template-columns:44px minmax(0,1fr)}.assistant-admin-card-controls{grid-column:2;justify-self:start;margin-left:0}.assistant-knowledge-row{grid-template-columns:1fr}.assistant-editor-page{padding-top:24px}.assistant-editor{gap:16px;padding:18px}.assistant-knowledge-fieldset{grid-template-columns:1fr}.assistant-editor-actions .button{flex:180px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.chat-thinking-dots>span{opacity:.72;transform:none}}.context-memory-page{min-width:0}.corporate-memory-workspace{gap:18px;min-width:0;display:grid}.corporate-memory-heading{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.corporate-memory-heading h1,.corporate-memory-heading p{margin:0}.corporate-memory-heading h1{font-size:var(--font-size-page-title);letter-spacing:-.03em;margin-top:7px}.corporate-memory-heading p{max-width:780px;color:var(--color-secondary);margin-top:9px;line-height:1.55}.corporate-memory-trust{border:1px solid var(--color-success-border);min-height:44px;color:var(--color-success);background:var(--color-success-soft);border-radius:999px;flex:none;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:750;display:inline-flex}.corporate-memory-trust svg{width:18px;height:18px}.corporate-memory-tabs{border:1px solid var(--color-border);background:var(--color-surface);scrollbar-width:thin;border-radius:14px;gap:6px;padding:5px;display:flex;overflow-x:auto}.corporate-memory-tabs button{cursor:pointer;min-height:44px;color:var(--color-secondary);font:inherit;white-space:nowrap;background:0 0;border:0;border-radius:10px;padding:0 17px;font-size:14px;font-weight:750;transition:color .18s,background .18s}.corporate-memory-tabs button:hover{color:var(--color-primary);background:var(--color-surface-muted)}.corporate-memory-tabs button.is-active{color:var(--color-accent-strong);background:var(--color-accent-soft)}.corporate-memory-toolbar{grid-template-columns:minmax(260px,1.6fr) minmax(180px,.8fr) minmax(210px,.9fr) auto auto auto;align-items:center;gap:10px;padding:14px;display:grid}.corporate-memory-toolbar label{min-width:0}.corporate-memory-toolbar input,.corporate-memory-toolbar select,.context-detail-action input,.context-detail-action textarea{border:1px solid var(--color-border-strong);width:100%;min-height:46px;color:var(--color-foreground);background:var(--color-surface);font:inherit;border-radius:10px;outline:none;font-size:14px}.corporate-memory-toolbar input,.corporate-memory-toolbar select,.context-detail-action input{padding:0 12px}.corporate-memory-toolbar input:focus,.corporate-memory-toolbar select:focus,.context-detail-action input:focus,.context-detail-action textarea:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-focus-ring)}.corporate-memory-search{position:relative}.corporate-memory-search svg{width:19px;height:19px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:13px;transform:translateY(-50%)}.corporate-memory-search input{padding-left:42px}.corporate-memory-date{color:var(--color-secondary);grid-template-columns:auto 140px;align-items:center;gap:7px;font-size:12px;font-weight:700;display:grid}.corporate-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.corporate-memory-card{cursor:pointer;border-color:var(--color-border);min-width:0;min-height:230px;color:var(--color-foreground);text-align:left;align-content:start;gap:10px;padding:20px;transition:border-color .18s,box-shadow .18s,transform .18s;display:grid;position:relative}.corporate-memory-card:hover{border-color:var(--color-accent-border);box-shadow:var(--shadow-medium);transform:translateY(-2px)}.corporate-memory-card:focus-visible{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}.corporate-memory-card h2,.corporate-memory-card p,.corporate-memory-card strong{margin:0}.corporate-memory-card h2{text-overflow:ellipsis;white-space:nowrap;margin-top:34px;font-size:20px;overflow:hidden}.corporate-memory-card>p{color:var(--color-secondary);-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;display:-webkit-box;overflow:hidden}.corporate-memory-card>strong{overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.45;display:-webkit-box;overflow:hidden}.corporate-memory-card footer{border-top:1px solid var(--color-border);color:var(--color-secondary);justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:14px;font-size:12px;display:flex}.context-status,.context-classification{border-radius:999px;align-items:center;min-height:28px;font-size:11px;font-weight:800;display:inline-flex;position:absolute;top:18px}.context-status{color:var(--color-secondary);background:var(--color-surface-muted);padding:0 10px;left:18px}.context-classification{border:1px solid var(--color-border);padding:0 9px;right:18px}.context-status.is-approved{color:var(--color-success);background:var(--color-success-soft)}.context-status.is-candidate{color:var(--color-warning);background:var(--color-warning-soft)}.context-status.is-rejected,.context-status.is-invalidated{color:var(--color-danger);background:var(--color-danger-soft)}.corporate-memory-predicate{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:var(--color-accent-strong)!important}.corporate-memory-empty{min-height:280px;color:var(--color-secondary);text-align:center;place-content:center;gap:8px;padding:32px;display:grid}.corporate-memory-empty svg{width:34px;height:34px;color:var(--color-accent);margin:0 auto 6px}.corporate-memory-empty strong{color:var(--color-primary);font-size:18px}.corporate-memory-skeletons{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.corporate-memory-skeletons span{border:1px solid var(--color-border);background:linear-gradient(100deg, var(--color-surface) 20%, var(--color-surface-muted) 40%, var(--color-surface) 60%);background-size:200% 100%;border-radius:16px;min-height:230px;animation:1.2s ease-in-out infinite context-skeleton}@keyframes context-skeleton{to{background-position-x:-200%}}.corporate-memory-sentinel{height:1px}.corporate-memory-loading-more{min-height:44px;color:var(--color-secondary);justify-content:center;align-items:center;gap:9px;margin:0;display:flex}.corporate-memory-dialog-backdrop{z-index:800;background:#02061794;justify-content:flex-end;padding-left:min(20vw,320px);display:flex;position:fixed;inset:0}.corporate-memory-dialog{border-left:1px solid var(--color-border);width:min(760px,100%);height:100%;color:var(--color-foreground);background:var(--color-background);box-shadow:var(--shadow-large);grid-template-rows:auto minmax(0,1fr);display:grid}.corporate-memory-dialog>header{border-bottom:1px solid var(--color-border);background:var(--color-surface);justify-content:space-between;align-items:center;gap:16px;min-height:92px;padding:20px 24px;display:flex}.corporate-memory-dialog>header h2{overflow-wrap:anywhere;margin:5px 0 0}.corporate-memory-dialog>header .icon-button{flex:none}.corporate-memory-detail{align-content:start;gap:20px;padding:24px;display:grid;overflow-y:auto}.context-detail-statement{border:1px solid var(--color-accent-border);background:var(--color-accent-soft);border-radius:14px;gap:7px;padding:18px;display:grid}.context-detail-statement span{color:var(--color-accent-strong);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.context-detail-statement strong{overflow-wrap:anywhere;font-size:18px;line-height:1.5}.context-detail-meta{border:1px solid var(--color-border);background:var(--color-border);border-radius:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;display:grid;overflow:hidden}.context-detail-meta div{background:var(--color-surface);min-width:0;padding:13px}.context-detail-meta dt{color:var(--color-secondary);font-size:11px;font-weight:700}.context-detail-meta dd{overflow-wrap:anywhere;margin:5px 0 0;font-size:13px;font-weight:700}.context-detail-section{gap:11px;padding-top:3px;display:grid}.context-detail-section h3,.context-detail-section p{margin:0}.context-source-list,.context-related-facts{gap:8px;display:grid}.context-source-list article{border:1px solid var(--color-border);background:var(--color-surface);border-radius:11px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:11px 13px;display:flex}.context-source-list article.is-revoked{opacity:.62}.context-source-list article>div:first-child{gap:3px;min-width:0;display:grid}.context-source-list article span{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.context-source-list article small{color:var(--color-danger);font-size:11px}.context-source-actions{flex:none;gap:7px;display:flex}.context-source-actions a,.context-source-actions button{cursor:pointer;border:1px solid var(--color-border-strong);min-height:40px;color:var(--color-foreground);font:inherit;background:0 0;border-radius:9px;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:700;text-decoration:none;display:inline-flex}.context-source-actions svg{width:16px;height:16px}.context-source-revoke{border-top:1px solid var(--color-border);gap:9px;width:100%;padding-top:11px;display:grid}.context-source-revoke label{color:var(--color-secondary);gap:7px;font-size:12px;font-weight:700;display:grid}.context-source-revoke textarea{resize:vertical;border:1px solid var(--color-border-strong);width:100%;min-height:72px;color:var(--color-foreground);background:var(--color-background);font:inherit;border-radius:9px;padding:10px 11px}.context-source-revoke textarea:focus{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}.context-source-revoke>div{justify-content:flex-end;gap:7px;display:flex}.context-source-revoke button{cursor:pointer;border:1px solid var(--color-border-strong);min-height:40px;color:var(--color-foreground);font:inherit;background:0 0;border-radius:9px;padding:0 11px;font-size:12px;font-weight:700}.context-source-revoke button:last-child{border-color:var(--color-danger);color:var(--color-on-danger);background:var(--color-danger)}.context-history-list{gap:0;margin:0;padding:0;list-style:none;display:grid}.context-history-list li{gap:3px;padding:0 0 18px 25px;display:grid;position:relative}.context-history-list li:before{border:2px solid var(--color-accent);background:var(--color-background);content:"";border-radius:50%;width:9px;height:9px;position:absolute;top:4px;left:2px}.context-history-list li:not(:last-child):after{background:var(--color-border-strong);content:"";width:1px;position:absolute;top:15px;bottom:0;left:6px}.context-history-list span,.context-history-list small{color:var(--color-secondary);overflow-wrap:anywhere}.context-detail-actions,.context-detail-action>div:last-child{flex-wrap:wrap;justify-content:flex-end;gap:9px;display:flex}.context-detail-action{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;gap:12px;padding:17px;display:grid}.context-detail-action h3,.context-detail-action p{margin:0}.context-detail-action label{gap:7px;font-size:13px;font-weight:700;display:grid}.context-detail-action textarea{resize:vertical;min-height:86px;padding:11px 12px;line-height:1.45}.context-entity-picker{position:relative}.context-entity-picker>div{z-index:10;border:1px solid var(--color-border-strong);background:var(--color-surface);max-height:220px;box-shadow:var(--shadow-medium);border-radius:10px;padding:5px;display:grid;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.context-entity-picker>div button{cursor:pointer;min-height:42px;color:var(--color-foreground);font:inherit;text-align:left;background:0 0;border:0;border-radius:7px;padding:0 10px}.context-entity-picker>div button:hover{background:var(--color-accent-soft)}.context-aliases{flex-wrap:wrap;gap:7px;display:flex}.context-aliases span{border:1px solid var(--color-border);color:var(--color-secondary);background:var(--color-surface);border-radius:999px;padding:6px 9px;font-size:12px}.context-related-facts button{cursor:pointer;border:1px solid var(--color-border);min-height:64px;color:var(--color-foreground);background:var(--color-surface);font:inherit;text-align:left;border-radius:10px;gap:5px;padding:11px 13px;display:grid}.context-related-facts button:hover{border-color:var(--color-accent-border);background:var(--color-accent-soft)}.context-related-facts span{color:var(--color-accent-strong);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px}@media (max-width:1440px){.corporate-memory-toolbar{grid-template-columns:minmax(240px,1fr) repeat(2,minmax(180px,.7fr)) repeat(2,auto)}.corporate-memory-toolbar>.button{grid-column:-2/-1}}@media (max-width:1100px){.corporate-memory-grid,.corporate-memory-skeletons,.corporate-memory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.corporate-memory-toolbar>.button{grid-column:auto}}@media (max-width:720px){.corporate-memory-heading{flex-direction:column;align-items:flex-start}.corporate-memory-trust{justify-content:center;align-self:stretch}.corporate-memory-toolbar,.corporate-memory-grid,.corporate-memory-skeletons,.context-detail-meta{grid-template-columns:1fr}.corporate-memory-date{grid-template-columns:26px minmax(0,1fr)}.corporate-memory-dialog-backdrop{padding-left:0}.corporate-memory-dialog{width:100%}.corporate-memory-dialog>header,.corporate-memory-detail{padding:17px}.context-source-list article{flex-direction:column;align-items:stretch}.context-source-actions a,.context-source-actions button{min-height:44px}}@media (max-width:1180px){.overview-grid{grid-template-columns:1fr}.overview-page .service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.overview-page{padding-top:32px}.overview-page-header{align-items:flex-start}.overview-page .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-panel{padding:24px}}@media (max-width:560px){.overview-page .service-grid{grid-template-columns:1fr}.overview-page .access-summary>.access-roles{grid-template-columns:1fr;gap:10px}}.app-content :is(h1,h2,h3){font-weight:var(--font-weight-heading)}.app-content :is(label,legend),.app-content label>span:first-child,.app-content button{font-weight:var(--font-weight-label)}.app-content input:not([type=checkbox]):not([type=radio]),.app-content select,.app-content textarea{font-weight:var(--font-weight-control)}@media (max-width:760px){.app-content input:not([type=checkbox]):not([type=radio]),.app-content select,.app-content textarea{font-size:16px}}.projects-page{max-width:1320px}.projects-workspace{gap:24px;display:grid}.projects-header,.projects-toolbar,.project-row,.projects-dialog>header,.projects-dialog>footer{align-items:center;display:flex}.projects-header{justify-content:space-between;gap:28px}.projects-header h1,.projects-header p,.projects-dialog h2{margin:0}.projects-header h1{font-size:var(--font-size-page-title);margin-top:5px}.projects-header p{color:var(--color-secondary);margin-top:8px}.projects-primary-button,.projects-secondary-button,.project-settings-button,.projects-dialog>header>button{cursor:pointer;border:0;justify-content:center;align-items:center;display:inline-flex}.projects-primary-button,.projects-secondary-button{min-height:var(--control-height);border-radius:var(--radius-md);font-size:var(--font-size-control);gap:8px;padding:0 18px}.projects-primary-button{color:var(--color-on-primary);background:var(--color-primary)}.projects-primary-button:hover:not(:disabled){background:var(--color-primary-hover)}.projects-primary-button svg{width:19px;height:19px}.projects-secondary-button{color:var(--color-foreground);background:var(--color-neutral-soft)}.projects-secondary-button.danger{color:var(--color-danger)}.projects-primary-button:disabled,.projects-secondary-button:disabled{cursor:not-allowed;opacity:.55}.projects-toolbar{gap:12px}.projects-search{flex:1;position:relative}.projects-search svg{width:20px;height:20px;color:var(--color-secondary);pointer-events:none;position:absolute;top:50%;left:15px;transform:translateY(-50%)}.projects-search input,.projects-sort select,.projects-field input,.projects-field select,.projects-field textarea{border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;color:var(--color-foreground);background:var(--color-surface)}.projects-search input,.projects-sort select,.projects-field input,.projects-field select{min-height:var(--control-height)}.projects-search input{padding:0 16px 0 45px}.projects-sort{min-width:220px}.projects-sort select,.projects-field select{padding:0 38px 0 13px}.projects-tabs{border-bottom:1px solid var(--color-border);align-items:center;gap:8px;padding-bottom:16px;display:flex}.projects-tabs button{min-height:40px;color:var(--color-secondary);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:0 16px}.projects-tabs button:hover{background:var(--color-neutral-soft)}.projects-tabs button.is-active{border-color:var(--color-border);color:var(--color-foreground);background:var(--color-surface)}.projects-list{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);box-shadow:var(--shadow-card);overflow:hidden}.projects-list-heading,.project-row{align-items:center;gap:16px;display:grid}.projects-list-heading{color:var(--color-secondary);background:var(--color-neutral-soft);font-size:var(--font-size-label);grid-template-columns:48px minmax(220px,1fr) 130px 160px 52px;padding:13px 22px}.projects-list-heading>span:first-child{grid-column:1/3}.project-row{border-top:1px solid var(--color-border);grid-template-columns:48px minmax(220px,1fr) 130px 160px 52px;min-height:84px;padding:14px 16px 14px 22px;position:relative}.project-row.is-deleted{grid-template-columns:48px minmax(220px,1fr) 130px 160px 140px}.projects-list-heading+.project-row{border-top:0}.project-folder{border:1px solid var(--color-border);width:42px;height:42px;color:var(--color-accent);background:var(--color-accent-soft);border-radius:12px;justify-content:center;align-items:center;display:inline-flex}[data-project-color=slate]{--project-color:#64748b}[data-project-color=blue]{--project-color:#3b82f6}[data-project-color=emerald]{--project-color:#10b981}[data-project-color=amber]{--project-color:#d97706}[data-project-color=violet]{--project-color:#8b5cf6}[data-project-color=rose]{--project-color:#e11d48}.project-visual.project-folder,.project-visual.project-chat-folder{border:1px solid color-mix(in srgb, var(--project-color) 28%, transparent);color:var(--project-color);background:color-mix(in srgb, var(--project-color) 13%, transparent)}.project-folder svg{width:22px;height:22px}.project-row-main{min-width:0;color:inherit;gap:5px;text-decoration:none;display:grid}.project-row-main:hover strong{color:var(--color-accent)}.project-row-main strong,.project-row-main span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-row-main span,.project-date,.project-members,.project-role{color:var(--color-secondary);font-size:var(--font-size-control)}.project-members{align-items:center;gap:7px;display:inline-flex}.project-members svg{width:18px;height:18px}.project-settings-button,.projects-dialog>header>button{width:40px;height:40px;color:var(--color-secondary);background:0 0;border-radius:12px}.project-settings-button:hover,.projects-dialog>header>button:hover{color:var(--color-foreground);background:var(--color-neutral-soft)}.project-settings-button svg,.projects-dialog>header>button svg{width:20px;height:20px}.projects-empty{min-height:240px;color:var(--color-secondary);text-align:center;place-items:center;gap:12px;margin:0;padding:32px;display:grid}.projects-empty svg{width:42px;height:42px;color:var(--color-border-strong)}.projects-notice,.projects-error{border-radius:var(--radius-md);margin:0;padding:12px 14px}.projects-notice{color:var(--color-warning);background:var(--color-warning-soft)}.projects-error{color:var(--color-danger);background:var(--color-danger-soft)}.project-notifications{gap:8px;display:grid}.project-notifications article{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-accent-soft);grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 15px;display:grid}.project-notifications article>div{gap:3px;min-width:0;display:grid}.project-notifications strong,.project-notifications span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-notifications span{color:var(--color-secondary);font-size:var(--font-size-label)}.project-notifications a,.project-notifications button{color:var(--color-accent);font:inherit;cursor:pointer;background:0 0;border:0;text-decoration:none}.projects-dialog-backdrop{z-index:80;background:#0206178f;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.projects-dialog{border:1px solid var(--color-border);border-radius:var(--radius-lg);width:min(620px,100%);max-height:calc(100vh - 48px);color:var(--color-foreground);background:var(--color-surface-raised);box-shadow:var(--shadow-large);gap:20px;padding:26px;display:grid;overflow:auto}.projects-dialog>header{justify-content:space-between;gap:20px}.projects-dialog h2{margin-top:4px;font-size:24px}.projects-field{gap:8px;display:grid}.projects-field>span{font-size:var(--font-size-label)}.projects-field input,.projects-field textarea{padding:11px 13px}.projects-field textarea{resize:vertical;min-height:130px}.projects-field small{color:var(--color-secondary)}.projects-memory-setting{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px;display:grid}.projects-memory-setting>div{gap:6px;display:grid}.projects-memory-setting small{color:var(--color-secondary);line-height:1.45}.projects-memory-toggle{min-height:38px;color:var(--color-secondary);cursor:pointer;background:0 0;border:0;align-items:center;gap:9px;padding:0;display:inline-flex}.projects-memory-toggle>span{border:1px solid var(--color-border-strong);background:var(--color-neutral-soft);border-radius:999px;width:42px;height:24px;padding:3px;transition:border-color .16s,background .16s;display:inline-flex;position:relative}.projects-memory-toggle>span>span{background:var(--color-secondary);border-radius:50%;width:16px;height:16px;transition:transform .16s,background .16s}.projects-memory-toggle[aria-checked=true]{color:var(--color-success)}.projects-memory-toggle[aria-checked=true]>span{border-color:var(--color-success);background:var(--color-success-soft)}.projects-memory-toggle[aria-checked=true]>span>span{background:var(--color-success);transform:translate(18px)}.projects-memory-toggle:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:3px;border-radius:8px}.projects-memory-toggle:disabled{cursor:not-allowed;opacity:.55}.projects-memory-toggle strong{font-size:var(--font-size-label)}.projects-appearance{border:0;gap:10px;margin:0;padding:0;display:grid}.projects-appearance legend{font-size:var(--font-size-label);margin-bottom:8px;padding:0}.projects-icon-options,.projects-color-options{flex-wrap:wrap;gap:8px;display:flex}.projects-icon-options button,.projects-color-options button{border:1px solid var(--color-border);width:42px;height:42px;color:var(--color-secondary);background:var(--color-surface);cursor:pointer;border-radius:10px;place-items:center;padding:0;display:inline-grid}.projects-icon-options button:hover,.projects-icon-options button.is-selected,.projects-color-options button:hover,.projects-color-options button.is-selected{border-color:var(--color-accent);color:var(--color-accent);box-shadow:0 0 0 2px var(--color-accent-soft)}.projects-icon-options svg{width:21px;height:21px}.projects-color-options button>span{background:var(--project-color);border-radius:999px;width:22px;height:22px;box-shadow:inset 0 0 0 1px #ffffff3d}.projects-dialog>footer{justify-content:flex-end;gap:10px;padding-top:4px}@media (max-width:760px){.projects-header,.projects-toolbar{flex-direction:column;align-items:stretch}.projects-header .projects-primary-button,.projects-sort{width:100%}.projects-tabs{overflow-x:auto}.projects-tabs button{flex:none}.projects-list-heading{display:none}.project-row{grid-template-columns:42px minmax(0,1fr) 40px;gap:12px}.project-row.is-deleted{grid-template-columns:42px minmax(0,1fr) 124px}.project-members,.project-date,.project-role{display:none}.projects-dialog-backdrop{padding:12px}.projects-dialog{padding:20px}.projects-memory-setting{grid-template-columns:1fr}.projects-memory-toggle{justify-self:start}.project-notifications article{grid-template-columns:minmax(0,1fr) auto}.project-notifications button{grid-column:2}}.project-workspace{--project-content-width:1080px;flex-direction:column;flex:1;min-height:0;display:flex}.project-workspace-tabs{width:min(var(--project-content-width), 100%);gap:.4rem;margin:0 auto;padding:0 0 .8rem;display:flex}.project-workspace-tabs button{color:var(--color-secondary);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:.55rem 1rem;font-weight:650}.project-workspace-tabs button:hover,.project-workspace-tabs button.active{border-color:var(--color-border);background:var(--color-neutral-soft);color:var(--color-foreground)}.project-workspace>div:not([hidden]){flex-direction:column;flex:1;min-height:0;display:flex}.project-workspace-scroll-region{overscroll-behavior:contain;scrollbar-gutter:stable;overflow-y:auto}.project-section{width:min(var(--project-content-width), 100%);margin:0 auto;padding:1.25rem 0 3rem}.project-section-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.project-section-header h2{margin:0;font-size:1.45rem}.project-section-header p{color:var(--color-secondary);margin:.35rem 0 0}.project-section-panel{border:1px solid var(--color-border);background:var(--color-surface);min-height:0;box-shadow:var(--shadow-card);border-radius:18px;margin-top:1.25rem;overflow:hidden}.project-sources-header p,.project-source-quota{color:var(--color-secondary);margin:.35rem 0 0}.project-source-upload-controls,.project-source-actions{align-items:center;gap:.55rem;display:flex}.project-source-row select{border:1px solid var(--color-border);background:var(--color-surface);min-height:2.5rem;color:var(--color-foreground);border-radius:.75rem;padding:0 .7rem}.project-source-upload-controls .button{white-space:nowrap;align-items:center;gap:.5rem;display:inline-flex}.project-source-upload-controls svg,.project-source-actions svg,.project-source-file svg,.project-source-empty svg{width:1.25rem;height:1.25rem}.project-source-quota{font-size:.86rem}.project-source-panel{padding:0 1rem}.project-source-list{margin:0}.project-source-row{border-bottom:1px solid var(--color-border);grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.85rem;padding:1rem .2rem;display:grid}.source-file-visual{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:.7rem;flex:none;place-items:center;width:2.5rem;height:2.5rem;display:grid}.source-file-visual>svg{flex:none;width:1.5rem;height:1.5rem}.source-file-visual.is-pdf{color:var(--color-danger)}.source-file-visual.is-word,.source-file-visual.is-url,.source-file-visual.is-image{color:var(--color-accent)}.source-file-visual.is-spreadsheet,.source-file-visual.is-csv{color:var(--color-success)}.source-file-visual.is-text,.source-file-visual.is-markdown,.source-file-visual.is-document{color:var(--color-secondary)}.source-file-visual .source-file-processing-icon{transform-origin:50%;width:1.7rem;height:1.7rem;animation:.8s linear infinite spin}.source-file-progress{place-items:center;width:2.15rem;height:2.15rem;display:grid;position:relative}.source-file-progress-ring{width:100%;height:100%;position:absolute;inset:0;overflow:visible;transform:rotate(-90deg)}.source-file-progress-ring circle{fill:none;stroke-width:3px}.source-file-progress-track{stroke:color-mix(in srgb, currentColor 20%, transparent)}.source-file-progress-value{stroke:currentColor;stroke-linecap:round;stroke-dasharray:100;transition:stroke-dashoffset .24s ease-out}.source-file-progress-kind{place-items:center;width:1rem;height:1rem;display:grid}.source-file-progress-kind svg{width:1rem;height:1rem}@media (prefers-reduced-motion:reduce){.source-file-visual .source-file-processing-icon{animation:none}.source-file-progress-value{transition:none}}.document-source-summary>.source-file-visual{font-size:inherit;margin-top:0}.project-source-details{gap:.22rem;min-width:0;display:grid}.project-source-details strong,.project-source-details span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-source-details span,.project-source-level{color:var(--color-secondary);font-size:.87rem}.project-source-level{text-align:center;min-width:2.5rem}.project-source-actions button,.project-source-actions a{border:1px solid var(--color-border);width:2.35rem;height:2.35rem;color:var(--color-foreground);cursor:pointer;background:0 0;border-radius:.7rem;place-items:center;text-decoration:none;display:grid}.project-source-actions button:hover,.project-source-actions a:hover{background:var(--color-neutral-soft)}.project-source-actions button.danger{color:var(--color-danger)}.project-source-empty{min-height:16rem;color:var(--color-secondary);text-align:center;justify-content:center;align-items:center;gap:.55rem;display:flex}.project-source-actions .project-source-review-button{white-space:nowrap;width:auto;padding:0 14px;font-weight:700}.project-redaction-dialog{width:min(980px,100vw - 32px);max-height:min(860px,100vh - 32px)}.project-redaction-blocks{gap:12px;padding-right:4px;display:grid;overflow:auto}.project-redaction-blocks article{border:1px solid var(--color-border);background:var(--color-neutral-soft);border-radius:14px;gap:6px;padding:14px;display:grid}.project-redaction-blocks span{color:var(--color-secondary);font-size:13px}.project-redaction-blocks pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0;line-height:1.55;overflow:auto}div.project-source-empty{flex-direction:column}.project-members-panel{width:min(var(--project-content-width), 100%)}.project-members-panel h2,.project-members-panel p{margin:0}.project-members-panel h2{font-size:1.45rem}.project-members-panel header p{color:var(--color-secondary);margin-top:.35rem}.project-member-picker{background:0 0;border:0;gap:.75rem;margin:0;padding:1rem;display:grid}.project-member-picker>label{font-size:var(--font-size-label);gap:.45rem;display:grid}.project-member-picker input{width:100%;min-height:var(--control-height);border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-foreground);background:var(--color-surface);padding:0 .8rem}.project-member-candidates{scrollbar-gutter:stable;gap:.4rem;max-height:min(420px,48dvh);padding-right:.35rem;display:grid;overflow-y:auto}.project-member-candidates>div{border-top:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 0;display:flex}.project-member-candidates>div>span,.project-member-list article>div{gap:.2rem;min-width:0;display:grid}.project-member-candidates small,.project-member-list small{color:var(--color-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-member-candidates>p{color:var(--color-secondary);padding:.75rem 0}.project-member-list{border-top:1px solid var(--color-border);margin:0;padding:0 1rem}.project-members-content>.project-member-list:first-child{border-top:0}.project-member-list article{border-bottom:1px solid var(--color-border);grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.85rem;min-height:72px;display:grid}.project-member-avatar{width:2.6rem;height:2.6rem;color:var(--color-on-primary);background:var(--color-primary);border-radius:50%;place-items:center;font-weight:700;display:grid}.project-member-role{color:var(--color-secondary);background:var(--color-neutral-soft);font-size:var(--font-size-label);border-radius:999px;padding:.3rem .55rem}.project-member-actions{gap:.4rem;display:flex}.project-member-actions button{color:var(--color-secondary);cursor:pointer;background:0 0;border:0;padding:.45rem .6rem}.project-member-actions button:hover:not(:disabled){color:var(--color-foreground);background:var(--color-neutral-soft)}.project-member-actions button.danger{color:var(--color-danger)}.project-member-actions button:disabled{cursor:not-allowed;opacity:.5}@media (max-width:760px){.project-section-header{flex-direction:column}.project-source-row{grid-template-columns:auto minmax(0,1fr) auto}.project-source-actions{grid-column:2/-1;justify-content:flex-end}.project-member-candidates>div{flex-direction:column;align-items:stretch}.project-member-list article{grid-template-columns:auto minmax(0,1fr) auto}.project-member-actions{grid-column:2/-1;justify-content:flex-end}}.project-chat-page{grid-template-rows:auto minmax(0,1fr);gap:14px;height:100%;min-height:0;padding:12px clamp(12px,1.3vw,20px) 16px;display:grid;overflow:hidden}.project-page-mode{grid-row:1/-1;grid-template-rows:auto minmax(0,1fr);gap:14px;height:100%;min-height:0;display:grid}.project-chat-focus-shell{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(150px,1fr) minmax(0,960px) minmax(24px,1fr);gap:16px;height:100%;min-height:0}.project-chat-focus-shell .project-chat-focus-header{grid-area:1/1;place-self:start end;padding-top:2px}.project-chat-focus-shell .project-workspace{grid-area:1/2;width:100%;height:100%;min-height:0}.project-chat-header{grid-template-columns:40px 42px minmax(0,1fr);align-items:center;gap:12px;min-width:0;display:grid}.project-chat-title{align-items:center;gap:8px;min-width:0;display:flex}.project-chat-title h1{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:24px;overflow:hidden}.project-chat-settings-button{border:1px solid var(--color-border);background:var(--color-surface);flex:none}.project-chat-settings-button:hover{border-color:var(--color-border-strong)}.project-chat-focus-header{align-items:center;min-width:0;display:flex}.project-chat-focus-header button{min-height:40px;color:var(--color-secondary);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:9px;padding:0 12px 0 9px;font-weight:650;display:inline-flex}.project-chat-focus-header button:hover{border-color:var(--color-border);color:var(--color-foreground);background:var(--color-neutral-soft)}.project-chat-focus-header svg{width:20px;height:20px}.project-chat-back,.project-chat-folder{border-radius:12px;place-items:center;width:40px;height:40px;display:inline-grid}.project-chat-back{color:var(--color-secondary)}.project-chat-back:hover{color:var(--color-foreground);background:var(--color-neutral-soft)}.project-chat-back svg,.project-chat-folder svg{width:21px;height:21px}.project-chat-folder{color:var(--color-accent);background:var(--color-accent-soft)}.project-chat-layout{grid-template-columns:minmax(0,1fr)}.project-chat-browser{flex-direction:column;height:100%;min-height:0;display:flex}.project-chat-browser>.project-section-header .button{white-space:nowrap;align-items:center;gap:.5rem;display:inline-flex}.project-chat-browser>.project-section-header svg{width:1.15rem;height:1.15rem}.project-chat-sidebar{flex:1;width:100%;min-width:0;min-height:0;padding:14px 12px;overflow:hidden}.project-chat-sidebar .chat-sidebar-controls{grid-template-columns:minmax(0,1fr)}.project-chat-layout:not(.is-project-chat-focused) .chat-conversation{display:none}.project-chat-layout.is-project-chat-focused{gap:0}.project-chat-layout.is-project-chat-focused .project-chat-sidebar,.project-chat-layout.is-project-chat-focused .project-chat-browser{display:none}@media (max-width:900px){.project-section{width:100%}.project-chat-focus-shell{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:8px}.project-chat-focus-shell .project-chat-focus-header{grid-area:1/1;justify-self:start;padding-top:0}.project-chat-focus-shell .project-workspace{grid-area:2/1}}@media (max-width:680px){.project-chat-page{overflow:hidden}.project-chat-layout{grid-template-columns:minmax(0,1fr);height:100%}.project-chat-sidebar{height:100%}.project-chat-layout .chat-conversation{min-height:0}}
