.ui-preview{background:var(--background);color:var(--foreground);font-family:var(--font-public-sans), system-ui, sans-serif;isolation:isolate;height:100dvh;font-size:.875rem;position:relative;overflow:clip}.ui-preview *,.ui-preview :before,.ui-preview :after{box-sizing:border-box}.ui-preview *{scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent}.ui-preview ::selection{background:var(--brand-soft);color:var(--foreground)}.ui-preview :is(input,textarea){caret-color:var(--primary)}.ui-preview :is(input,textarea)::placeholder{color:var(--placeholder);opacity:1}.ui-preview :is(.preview-table,.admin-kpis,.analytics-rankings,.analytics-topics){font-variant-numeric:tabular-nums}.ui-preview button,.ui-preview input,.ui-preview select,.ui-preview textarea{font-family:inherit}.ui-preview button,.ui-preview summary,.ui-preview select{cursor:pointer}.ui-preview :is(h1,h2,h3){text-wrap:balance}.ui-preview button:disabled{cursor:default;opacity:.5}.ui-preview :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ring);outline-offset:3px}.ui-preview .preview-table-wrap[tabindex="0"]:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}html{-webkit-tap-highlight-color:transparent}.ui-preview h1,.ui-preview h2,.ui-preview h3,.ui-preview p{margin:0}.ui-preview button,.ui-preview a{transition:background-color .15s, border-color .15s, color .15s, transform .12s var(--ease-out)}.ui-preview [hidden]{display:none!important}
.preview-shell{--sidebar-width:264px;grid-template-columns:var(--sidebar-width) minmax(0, 1fr);height:100dvh;display:grid;overflow:clip}.preview-shell[data-collapsed]{grid-template-columns:0 minmax(0,1fr)}.preview-shell[data-collapsed] .preview-sidebar{visibility:hidden}.preview-shell-admin .preview-profile>div>span:last-child{white-space:nowrap}.preview-sidebar{background:var(--sidebar);flex-direction:column;gap:4px;min-width:0;min-height:0;padding:12px 10px;display:flex;overflow:clip}.preview-sidebar-header{justify-content:space-between;align-items:center;gap:8px;padding-bottom:12px;display:flex}.preview-collapse,.preview-expand{width:32px;height:32px}.ezcurra-mark{aspect-ratio:74/60;background:currentColor;flex:none;width:26px;display:inline-block;-webkit-mask:url(/brand/ezcurra-mark.png) 50%/contain no-repeat;mask:url(/brand/ezcurra-mark.png) 50%/contain no-repeat}.preview-brand{border-radius:var(--radius-control);min-width:0;color:var(--foreground);align-items:center;gap:8px;padding:4px 6px;text-decoration:none;display:flex}.preview-brand .ezcurra-mark{color:var(--primary)}.preview-brand>span:last-child{font:900 .875rem / 1 var(--font-archivo), sans-serif}.preview-sidebar-content{flex:1;min-height:0;overflow-y:auto}.preview-sidebar-footer{border-top:1px solid var(--sidebar-border);flex-direction:column;gap:12px;padding:12px 6px 0;display:flex}.preview-profile{align-items:center;gap:10px;display:flex}.preview-avatar{background:var(--foreground);width:32px;height:32px;color:var(--background);font-size:var(--type-meta);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid}.preview-profile>div{flex-direction:column;gap:2px;min-width:0;display:flex}.preview-profile-name{align-items:center;gap:6px;min-width:0;display:flex}.preview-profile strong{min-width:0;font-size:var(--type-ui);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.preview-profile>div>span:last-child{font-size:var(--type-meta);color:var(--muted-foreground)}.preview-profile-trigger{margin-left:auto}.preview-icon-button[data-popup-open]{background:var(--muted);color:var(--foreground)}.ui-preview [data-slot=select-value]{text-overflow:ellipsis;min-width:0;display:block;overflow:hidden}[data-slot=select-content],[data-slot=dropdown-menu-content]{border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-popup)}[data-slot=select-content]{width:auto;min-width:var(--anchor-width);max-width:var(--available-width)}[data-slot=select-item],[data-slot=dropdown-menu-item],[data-slot=dropdown-menu-radio-item]{padding-block:8px;min-height:36px;padding-left:10px;font-size:.875rem}[data-slot=select-item]>span{white-space:normal}[data-slot=select-item] svg{color:var(--primary)}[data-slot=select-label],[data-slot=dropdown-menu-label]{color:var(--muted-foreground);padding:8px 10px 4px;font-size:.8125rem;font-weight:600}@media (pointer:coarse){[data-slot=select-item],[data-slot=dropdown-menu-item],[data-slot=dropdown-menu-radio-item]{min-height:44px}}@media (prefers-reduced-motion:reduce){[data-slot=select-content],[data-slot=dropdown-menu-content],[data-slot=popover-content],.preview-note-popup{--tw-enter-scale:1!important;--tw-enter-translate-y:0!important;--tw-exit-scale:1!important;--tw-exit-translate-y:0!important}}.preview-workspace{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex;overflow:clip}.preview-topbar{flex:none;align-items:center;gap:8px;min-height:48px;padding:6px 16px;display:flex}.preview-main{outline:none;flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.preview-topbar-admin{border-bottom:1px solid var(--border);min-height:56px;padding:8px 24px}.admin-title{min-width:0;font-size:var(--type-title);text-overflow:ellipsis;white-space:nowrap;font-weight:600;line-height:1.3;overflow:hidden}.admin-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.admin-actions:empty{display:none}.preview-shell-admin .preview-main{scrollbar-gutter:stable;background:var(--background);overflow-y:auto}.preview-icon-button{border-radius:var(--radius-control);width:34px;height:34px;color:var(--muted-foreground);background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover) and (pointer:fine){.preview-icon-button:hover{background:var(--muted);color:var(--foreground)}}.preview-icon-button[aria-pressed=true]{background:var(--control-fill);color:var(--foreground)}
.preview-button{border-radius:var(--radius-control);background:var(--control-fill);min-height:40px;color:var(--foreground);white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-weight:600;display:inline-flex}@media (hover:hover) and (pointer:fine){.preview-button:hover{background:var(--control-fill-hover)}}.ui-preview :is(.preview-button,.preview-icon-button,.chat-send,.document-view-toggle button):active:not(:disabled){transform:scale(.96)}.preview-button-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}@media (hover:hover) and (pointer:fine){.preview-button-primary:hover:not(:disabled){background:var(--primary-hover)}}.ui-preview .preview-button-primary:disabled{opacity:1;background:var(--control-fill);border-color:var(--control-fill);color:var(--text-disabled)}.preview-button-danger{background:var(--destructive-fill);border-color:var(--destructive-fill);color:var(--primary-foreground)}@media (hover:hover) and (pointer:fine){.preview-button-danger:hover{background:var(--destructive-fill-hover);border-color:var(--destructive-fill-hover)}}.preview-text-button{color:var(--foreground);font-size:var(--type-ui);text-align:left;text-decoration:underline;-webkit-text-decoration-color:var(--border-hover);text-decoration-color:var(--border-hover);text-underline-offset:3px;background:0 0;border:0;padding:0;font-weight:600}@media (hover:hover) and (pointer:fine){.preview-text-button:hover{text-decoration-color:currentColor}}.preview-muted{color:var(--muted-foreground);font-size:.8125rem;line-height:1.5}.preview-success{color:var(--success)}.preview-danger{color:var(--destructive)}.preview-demo-badge{border:1px solid var(--border);color:var(--muted-foreground);font-size:var(--type-meta);border-radius:999px;flex:none;padding:1px 7px;font-weight:500;line-height:16px}.preview-skip{z-index:50;color:var(--primary-foreground);background:var(--primary);border-radius:var(--radius-control);padding:12px 16px;position:fixed;top:16px;left:16px;transform:translateY(-200%)}.preview-skip:focus{transform:translateY(0)}
.preview-mobile-menu,.admin-mobile-navigation{display:none}@media (max-width:767px){.preview-expand{display:none}}@media (max-width:1023px){.preview-shell-admin .preview-expand{display:none}}.preview-drawer{background:var(--sidebar);color:var(--foreground);width:min(320px,90vw);max-width:none;height:100dvh;max-height:none;transition:transform .28s var(--ease-drawer), overlay .28s var(--ease-drawer) allow-discrete, display .28s var(--ease-drawer) allow-discrete;border:0;margin:0;padding:0;transform:translate(-100%)}.preview-drawer[open]{transform:none}@starting-style{.preview-drawer[open]{transform:translate(-100%)}}.preview-drawer::backdrop,.preview-modal::backdrop{transition:background-color .2s var(--ease-out), overlay .28s allow-discrete, display .28s allow-discrete;background:0 0}.preview-drawer[open]::backdrop,.preview-modal[open]::backdrop{background:var(--backdrop)}@starting-style{.preview-drawer[open]::backdrop,.preview-modal[open]::backdrop{background:0 0}}dialog:modal{overscroll-behavior:contain}dialog::backdrop{overscroll-behavior:contain;overflow:hidden}.preview-drawer-inner{height:100%;padding:12px 10px max(16px, env(safe-area-inset-bottom));flex-direction:column;gap:4px;display:flex}.preview-drawer-inner .preview-sidebar-header{padding-right:44px}.preview-drawer-close{position:absolute;top:8px;right:10px}.preview-modal[open]{transition:opacity .2s var(--ease-out), transform .2s var(--ease-out)}@starting-style{.preview-modal[open]{opacity:0;transform:scale(.96)}}.preview-modal{border:1px solid var(--border);width:min(560px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--foreground);background:var(--popover);border-radius:14px;margin:auto;padding:0;scroll-padding-bottom:96px;position:fixed}.preview-modal-content{padding:24px}.preview-modal-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.preview-modal-heading h2{font:800 1.375rem / 1.2 var(--font-archivo), sans-serif}
.preview-form{flex-direction:column;gap:16px;display:flex}.preview-form>p{font-size:.875rem;line-height:1.5}.preview-form label,.preview-form-field{flex-direction:column;gap:6px;min-width:0;font-size:.8125rem;font-weight:600;display:flex}.preview-form :is(select,[data-slot=select-trigger],input:not([type=file]),textarea),.preview-input{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);width:100%;min-width:0;color:var(--foreground);padding:10px 12px;font-size:.875rem;font-weight:400}.preview-form textarea{resize:vertical}.preview-form [data-slot=select-trigger]{height:auto;box-shadow:none}.document-oppositions{border-radius:var(--radius-control);background:var(--surface);border:0;grid-template-columns:1fr 1fr;gap:14px 20px;min-width:0;margin:0;padding:14px 16px;display:grid}.document-oppositions>legend{float:left;grid-column:1/-1;padding:0;font-size:.8125rem;font-weight:600}.document-oppositions fieldset{border:0;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;display:flex}.document-oppositions fieldset legend{color:var(--muted-foreground);margin-bottom:4px;font-size:.8125rem;font-weight:600}.preview-form .document-oppositions label{flex-direction:row;align-items:center;gap:8px;min-height:24px;font-weight:400}.preview-form .document-oppositions input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);flex:none;padding:0}.document-oppositions:disabled{opacity:.6}.document-category .preview-segments,.document-kind-field .preview-segments{background:var(--control-fill)}.document-category .preview-segments{width:100%}.document-category .preview-segments button,.document-kind-field .preview-segments button{flex:1;min-height:40px;font-size:.875rem}.document-kind-field{flex-direction:column;gap:6px;font-size:.8125rem;font-weight:600;display:flex}.document-scope{grid-column:1/-1}.document-areas{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.document-areas>legend{margin-bottom:6px;font-size:.8125rem;font-weight:600}.preview-form .document-areas label{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);cursor:pointer;flex-direction:row;align-items:center;gap:12px;min-height:48px;padding:8px 14px;font-size:.9375rem;font-weight:600;transition:border-color .15s,background-color .15s}@media (hover:hover) and (pointer:fine){.preview-form .document-areas label:hover{border-color:var(--border-hover)}}.preview-form .document-areas label:has(input:checked){border-color:var(--primary);background:color-mix(in srgb, var(--primary) 5%, var(--card))}.preview-form .document-areas input[type=checkbox],.preview-form .document-areas input[type=radio]{width:18px;height:18px;accent-color:var(--primary);flex:none;padding:0}.document-areas label span{flex-direction:column;display:flex}.document-areas small{color:var(--muted-foreground);font-size:.8125rem;font-weight:400}.document-areas p{margin:4px 0 0;font-size:.875rem}.document-areas:disabled{opacity:.6}.preview-form-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.preview-form-actions{justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.preview-modal .preview-form-actions{z-index:1;background:var(--surface);margin:8px -24px -24px;padding:16px 24px 24px;position:sticky;bottom:0}.preview-form-error{border-radius:var(--radius-control);color:var(--primary);background:var(--danger-soft);padding:12px}.document-boe{border:0;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;display:flex}.document-boe>legend{margin-bottom:6px;font-size:.8125rem;font-weight:600}.document-boe-query{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.document-boe-query input{flex:16rem;min-width:0}.document-boe>p{margin:0;font-size:.875rem}.document-boe-results{flex-direction:column;gap:6px;max-height:17.5rem;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.preview-form .document-boe-results label{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);cursor:pointer;flex-direction:row;align-items:flex-start;gap:12px;padding:10px 14px;font-size:.9375rem}.preview-form .document-boe-results label:has(input:checked){border-color:var(--primary);background:color-mix(in srgb, var(--primary) 5%, var(--card))}.preview-form .document-boe-results input[type=radio]{width:18px;height:18px;accent-color:var(--primary);flex:none;margin-top:2px;padding:0}.document-boe-results label span{flex-direction:column;gap:2px;display:flex}.document-boe-results small{color:var(--muted-foreground);font-size:.8125rem}
.chat-new-button{border-radius:var(--radius-control);width:100%;min-height:36px;color:var(--foreground);font-size:var(--type-base);text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:0 10px;font-weight:500;display:flex}.chat-kbd{border:1px solid var(--border);border-radius:calc(var(--radius-control) / 2);background:var(--background);color:var(--muted-foreground);font:500 var(--type-meta) / 1 var(--font-sans,sans-serif);font-variant-numeric:tabular-nums;margin-left:auto;padding:2px 5px}@media (hover:hover) and (pointer:fine){.chat-new-button:hover{background:var(--sidebar-item-active)}}.chat-search{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--background);min-height:36px;color:var(--muted-foreground);cursor:text;align-items:center;gap:8px;margin:4px 0 6px;padding:0 8px 0 10px;display:flex}.chat-search:has(input:focus-visible){outline:2px solid var(--ring);outline-offset:1px}.chat-search input{min-width:0;height:34px;color:var(--foreground);font-size:var(--type-base);background:0 0;border:0;flex:1;padding:0;outline:none!important}.chat-search input::placeholder{color:var(--placeholder)}.chat-search input::-webkit-search-cancel-button{cursor:pointer}.chat-history h2{font-size:var(--type-meta);color:var(--muted-foreground);padding:16px 10px 6px;font-weight:500}.chat-history ul{grid-template-columns:minmax(0,1fr);gap:1px;margin:0;padding:0;list-style:none;display:grid}.chat-history-row{border-radius:var(--radius-control);align-items:center;display:flex}.chat-history-row:has(>[aria-current=page]){background:var(--sidebar-item-active)}.chat-history-item{border-radius:var(--radius-control);min-width:0;min-height:34px;color:var(--text-secondary);font-size:var(--type-base);text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;flex:1;padding:0 4px 0 10px;overflow:hidden}.chat-history-item[aria-current=page]{color:var(--foreground)}.chat-history-menu.preview-icon-button{width:28px;height:28px;margin-right:3px}@media (hover:hover) and (pointer:fine){.chat-history-row:hover{background:var(--sidebar-item-active)}.chat-history-row:not(:hover,:focus-within) .chat-history-menu:not([data-popup-open]){opacity:0}}.chat-history-more{margin:8px 10px}.chat-rename{width:100%;min-height:34px;font-size:var(--type-base)}.preview-empty-small{color:var(--muted-foreground);font-size:var(--type-ui);padding:12px 10px}.chat-usage{gap:6px;display:grid}.chat-usage-line{color:var(--muted-foreground);font-size:var(--type-ui)}.chat-usage-line strong{color:var(--foreground);font-variant-numeric:tabular-nums;font-weight:600}.chat-usage-renewal{color:var(--muted-foreground);font-size:var(--type-meta);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 8px;display:flex}.chat-usage-renewal .preview-text-button{font-size:var(--type-meta)}.chat-usage progress{--usage-left:var(--chart-2);appearance:none;background:var(--usage-left);border:0;border-radius:2px;width:100%;height:4px;overflow:hidden}.chat-usage[data-near] progress{--usage-left:var(--attention)}.chat-usage progress::-webkit-progress-bar{background:var(--usage-left)}.chat-usage progress::-webkit-progress-value{background:var(--meter-track)}.chat-usage progress::-moz-progress-bar{background:var(--meter-track)}.chat-usage[data-near] strong{color:var(--attention)}
.chat-header{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.chat-title{min-width:0;font-size:var(--type-base);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.chat-title-rename{max-width:420px}.chat-header-actions{align-items:center;gap:2px;margin-left:auto;display:flex}.chat-header-new{display:none}.chat-thread-wrap{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.chat-thread{overscroll-behavior:contain;scrollbar-gutter:stable both-edges;flex:1;min-height:0;padding:32px 24px 40px;overflow-y:auto;-webkit-mask-image:linear-gradient(#0000,#000 32px calc(100% - 40px),#0000);mask-image:linear-gradient(#0000,#000 32px calc(100% - 40px),#0000)}.chat-messages{flex-direction:column;gap:32px;width:100%;max-width:720px;margin:0 auto;display:flex}.chat-user-message{border-radius:var(--radius-message);background:var(--surface);max-width:85%;font-size:var(--type-body);white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-end;padding:10px 16px;line-height:1.55}.chat-assistant-message{min-width:0;font-size:var(--type-body);flex-direction:column;gap:12px;line-height:1.65;display:flex}.chat-skeleton-question{width:45%}.chat-skeleton-answer{flex-direction:column;gap:10px;display:flex}.chat-markdown{flex-direction:column;gap:14px;max-width:68ch;display:flex}.chat-markdown>*{margin:0}.chat-markdown p{text-wrap:pretty;overflow-wrap:anywhere}.chat-markdown :is(h1,h2,h3,h4){margin-top:6px;font-size:1.05em;font-weight:600;line-height:1.4}.chat-markdown strong{font-weight:600}.chat-markdown :is(ul,ol){gap:6px;padding-left:1.4rem;list-style-position:outside;display:grid}.chat-markdown li::marker{color:var(--muted-foreground)}.chat-answer-actions{align-items:center;gap:2px;min-height:32px;margin:-4px 0 0 -8px;display:flex}.chat-answer-actions .preview-icon-button{width:32px;height:32px}@media (hover:hover) and (pointer:fine){.chat-assistant-message:not([data-last]) .chat-answer-actions{opacity:0;transition:opacity .15s var(--ease-out)}.chat-assistant-message:is(:hover,:focus-within) .chat-answer-actions{opacity:1}.chat-answer-actions:has([aria-expanded=true]){opacity:1}}.chat-vote-note{color:var(--muted-foreground);font-size:var(--type-meta);padding-left:6px}.chat-feedback{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--background);max-width:68ch;animation:chat-fade-in .15s var(--ease-out);gap:12px;padding:14px 16px;display:grid}.chat-feedback-title{font-size:var(--type-base);font-weight:500}.chat-feedback-reasons{flex-wrap:wrap;gap:6px;display:flex}.chat-chip{border:1px solid var(--border);min-height:32px;color:var(--text-secondary);font-size:var(--type-ui);background:0 0;border-radius:999px;padding:0 12px}.chat-chip[aria-pressed=true]{border-color:var(--foreground);background:var(--foreground);color:var(--background)}@media (hover:hover) and (pointer:fine){.chat-chip:not([aria-pressed=true]):hover{background:var(--muted);color:var(--foreground)}}.chat-feedback-comment{resize:vertical;min-height:60px;font-size:var(--type-base)}.chat-feedback-actions{justify-content:flex-end;gap:8px;display:flex}.chat-feedback-actions .preview-button{min-height:32px;font-size:var(--type-ui);padding:0 12px}.chat-waiting{color:var(--muted-foreground);font-size:var(--type-base)}.chat-shimmer{animation:1.4s ease-in-out infinite alternate chat-breathe}@keyframes chat-breathe{0%{opacity:.45}}.preview-main:has(.chat-empty){justify-content:center;padding-bottom:8vh}.preview-main:has(.chat-empty) .chat-thread-wrap{flex:none}.preview-main:has(.chat-empty) .chat-thread{flex:none;padding-bottom:16px;overflow:visible;-webkit-mask-image:none;mask-image:none}.chat-empty{text-align:center;max-width:560px;animation:chat-fade-in .15s var(--ease-out);flex-direction:column;align-items:center;gap:8px;margin:0 auto;display:flex}.chat-empty .ezcurra-mark{width:40px;color:var(--primary);margin-bottom:8px}.ui-preview .chat-empty h2{font:800 1.875rem / 1.15 var(--font-archivo), sans-serif;letter-spacing:-.01em;text-wrap:balance}.chat-empty>p{color:var(--muted-foreground);font-size:var(--type-base);text-wrap:balance}.chat-suggestions{width:calc(100% - 48px);max-width:720px;animation:chat-fade-in .15s var(--ease-out);gap:2px;margin:4px auto 0;padding:0;list-style:none;display:grid}.chat-suggestions button{border-radius:var(--radius-control);width:100%;color:var(--text-secondary);font-size:var(--type-base);text-align:left;background:0 0;border:0;align-items:flex-start;gap:12px;padding:10px 12px;line-height:1.45;display:flex}.chat-suggestions svg{color:var(--muted-foreground);flex:none;margin-top:2px}@media (hover:hover) and (pointer:fine){.chat-suggestions button:hover{background:var(--surface-soft);color:var(--foreground)}.chat-suggestions button:hover svg{color:var(--primary)}}@keyframes chat-fade-in{0%{opacity:0}}.chat-copy-check{animation:chat-copy-check .16s var(--ease-out)}@keyframes chat-copy-check{0%{opacity:0;transform:scale(.6)}}.chat-to-end{border:1px solid var(--border);background:var(--background);min-height:32px;color:var(--foreground);font-size:var(--type-ui);box-shadow:var(--shadow-popup);animation:chat-fade-in .15s var(--ease-out);border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-weight:500;display:inline-flex;position:absolute;bottom:12px;left:50%;translate:-50%}
.chat-composer-area{flex-direction:column;flex:none;align-items:center;gap:8px;padding:8px 24px 16px;display:flex}.chat-composer{border:1px solid var(--border);border-radius:var(--radius-composer);background:var(--background);width:100%;max-width:720px;box-shadow:var(--shadow-soft);align-items:flex-end;gap:8px;padding:8px 8px 8px 16px;display:flex}.chat-composer:focus-within{border-color:var(--border-hover);outline:1px solid var(--ring)}.chat-composer:has(textarea:disabled){background:var(--surface-soft);box-shadow:none}.chat-composer textarea:disabled{cursor:not-allowed}@supports not (field-sizing:content){.chat-composer textarea{min-height:3.5rem}}.chat-composer textarea{field-sizing:content;resize:none;width:100%;min-width:0;min-height:32px;max-height:200px;font-size:var(--type-body);background:0 0;border:0;flex:1;padding:5px 0;line-height:1.4;outline:none!important}.chat-send{background:var(--primary);width:32px;height:32px;color:var(--primary-foreground);border:0;border-radius:50%;flex:none;place-items:center;display:grid}@media (hover:hover) and (pointer:fine){.chat-send:not(:disabled,.chat-stop):hover{background:var(--primary-hover)}}.chat-send:disabled{background:var(--control-fill-hover);color:var(--text-disabled);opacity:1}.chat-stop{background:var(--foreground);color:var(--background)}.chat-counter,.chat-counter-warning{width:100%;max-width:720px;font-size:var(--type-meta);text-align:right;overflow-wrap:anywhere;color:var(--muted-foreground);font-variant-numeric:tabular-nums;margin:0;padding:0 16px}.chat-counter-warning{text-align:left;color:var(--destructive)}.user-test-account{border:1px solid var(--border);color:var(--muted-foreground);font-size:var(--type-meta);border-radius:999px;margin-left:6px;padding:0 6px;font-weight:400}.chat-legal-notice{color:var(--muted-foreground);font-size:var(--type-ui);margin:0;line-height:1.45}.chat-state{color:var(--muted-foreground);font-size:var(--type-ui);flex-wrap:wrap;align-items:center;gap:8px;line-height:1.45;display:flex}.chat-state svg{flex:none}.chat-state-dot{background:var(--attention);border-radius:50%;flex:none;width:6px;height:6px}.chat-state-error .chat-state-dot{background:var(--destructive)}.chat-retry.preview-button{min-height:30px;font-size:var(--type-ui);gap:6px;padding:0 10px}.chat-notice{width:100%;max-width:720px;color:var(--muted-foreground);font-size:var(--type-ui);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:0 4px;line-height:1.4;display:flex}.chat-notice-error{border-radius:var(--radius-control);background:var(--danger-soft);color:var(--danger);padding:8px 12px}.chat-notice-near{color:var(--attention)}.chat-limit{border:1px solid var(--border);border-radius:var(--radius-composer);background:var(--surface);width:100%;max-width:720px;color:var(--text-secondary);font-size:var(--type-base);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;line-height:1.45;display:flex}@media (prefers-reduced-motion:reduce){.chat-shimmer,.chat-empty,.chat-suggestions,.chat-feedback,.chat-to-end{animation:none}}@media (pointer:coarse){.chat-kbd{display:none}.chat-new-button,.chat-history-item,.chat-search,.chat-suggestions button{min-height:44px}.chat-history-menu.preview-icon-button{width:44px;height:44px;margin-right:0}.chat-chip,.chat-feedback-actions .preview-button{min-height:44px}}
.plan-sheet{flex-direction:column;gap:20px;margin-top:4px;display:flex}.plan-summary{flex-direction:column;gap:10px;display:flex}.plan-name{font:800 1.25rem / 1.2 var(--font-archivo), sans-serif}.plan-features{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.plan-features li{align-items:center;gap:8px;font-size:.8125rem;line-height:1.4;display:flex}.plan-features svg{color:var(--primary);flex:none}.plan-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.plan-option{border-radius:var(--radius-card);background:var(--surface);flex-direction:column;align-items:flex-start;gap:8px;padding:16px;display:flex}.plan-option-name{color:var(--muted-foreground);font-size:.8125rem;font-weight:600}.plan-option-price{flex-wrap:wrap;align-items:baseline;gap:2px 4px;display:flex}.plan-option-price b{font:900 1.75rem / 1 var(--font-archivo), sans-serif}.plan-option-price span{color:var(--muted-foreground);font-size:.8125rem}.plan-option-details{color:var(--muted-foreground);flex-direction:column;gap:2px;font-size:.8125rem;line-height:1.4;display:flex}.plan-option-saving{background:var(--brand-soft);color:var(--primary);border-radius:999px;margin-top:auto;padding:3px 8px;font-size:.8125rem;font-weight:600}.plan-note{color:var(--muted-foreground);font-size:.8125rem}
.admin-navigation{flex-direction:column;gap:2px;display:flex}.admin-navigation a{border-radius:var(--radius-control);width:100%;min-height:36px;color:var(--text-secondary);font-size:var(--type-ui);text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:8px 10px;font-weight:500;text-decoration:none;display:flex}.admin-navigation a svg{color:var(--muted-foreground);flex:none}.admin-navigation a[aria-current=page]{background:var(--sidebar-accent);color:var(--sidebar-accent-foreground);font-weight:600}.admin-navigation a[aria-current=page] svg{color:var(--foreground)}@media (hover:hover) and (pointer:fine){.admin-navigation a:hover{background:var(--sidebar-accent);color:var(--foreground)}}.preview-mode-switch{border-radius:var(--radius-control);background:var(--control-fill);grid-template-columns:1fr 1fr;gap:2px;margin-top:8px;padding:2px;display:grid}.preview-mode-switch>*{border-radius:calc(var(--radius-control) - 2px);min-width:0;min-height:32px;font-size:var(--type-ui);white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:4px 6px;font-weight:500;text-decoration:none;display:flex}.preview-mode-switch svg{flex:none}.preview-mode-current{background:var(--background);color:var(--foreground);box-shadow:0 0 0 1px var(--border);font-weight:600}.preview-mode-link{color:var(--muted-foreground)}@media (hover:hover) and (pointer:fine){.preview-mode-link:hover{color:var(--foreground);background:var(--control-fill-hover)}}.document-results{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:12px;font-size:.8125rem;display:flex}.preview-skeleton{background:linear-gradient(90deg, transparent 0%, var(--skeleton-shine) 50%, transparent 100%) var(--border);background-size:200% 100%;border-radius:6px;max-width:100%;height:12px;animation:1.4s ease-in-out infinite preview-skeleton;display:block}@keyframes preview-skeleton{0%{background-position:150% 0}to{background-position:-50% 0}}.admin-kpi-value>.preview-skeleton{height:26px;margin:4px 0}.skeleton-rows>div{grid-template-columns:2fr 1fr .6fr;align-items:center;gap:24px;min-height:64px;padding:0 16px;display:grid}.skeleton-rows>div+div{border-top:1px solid var(--border)}.skeleton-card{min-height:128px}.skeleton-block{min-height:300px}.report-skeleton{flex-direction:column;gap:18px;display:flex}.document-view-toggle button{justify-content:center;align-items:center;width:36px;padding:0;display:inline-flex}.document-filter-summary:empty{display:none}.admin-content{flex-direction:column;gap:18px;padding:22px 28px 28px;display:flex}
.settings-group{border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden}.settings-group-header{background:var(--surface-soft);flex-direction:column;gap:2px;padding:12px 20px;display:flex}.settings-group-header h2{font-size:var(--type-base);font-weight:600;line-height:1.35}.settings-group-header p,.settings-label p{color:var(--muted-foreground);font-size:.8125rem;line-height:1.4}.settings-row{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) minmax(240px,360px);align-items:center;gap:8px 32px;padding:14px 20px;display:grid}.settings-label{flex-direction:column;gap:2px;display:flex}.settings-label :is(label,strong){font-weight:600}.settings-control{justify-content:flex-end;display:flex}.settings-input-unit{color:var(--muted-foreground);align-items:center;gap:8px;display:flex}.settings-input-unit>span[aria-hidden=true]{min-width:15ch;font-size:var(--type-ui)}.settings-input-unit input{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);width:120px;min-height:44px;color:var(--foreground);font:inherit;font-variant-numeric:tabular-nums;text-align:right;padding:8px 12px;font-size:1rem}.settings-group-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px 20px;padding:12px 20px;display:flex}.settings-input-unit input[aria-invalid=true]{border-color:var(--destructive)}.settings-hint{color:var(--muted-foreground);align-items:center;gap:6px;font-size:.75rem;display:inline-flex}.settings-hint svg{flex:none}.settings-error{margin:0 20px 14px}.settings-saved:empty{display:none}.settings-saved{color:var(--success);font-weight:600}.settings-actions{flex-wrap:wrap;gap:10px;display:flex}
.document-reindex{border-radius:var(--radius-card);background:var(--surface);align-items:center;gap:12px;padding:12px 16px;display:flex}.document-reindex>svg{color:var(--primary);flex:none}.document-reindex>div{min-width:0}.document-reindex strong{font-size:.875rem;font-weight:600}.document-reindex p{color:var(--muted-foreground);margin-top:3px;font-size:.8125rem;line-height:1.4}.document-reindex.is-paused>svg{color:var(--muted-foreground)}.document-activity:not(:empty){border-radius:var(--radius-card);background:var(--surface);flex-direction:column;gap:6px;margin-bottom:12px;padding:10px 14px;font-size:.8125rem;display:flex}.document-activity p{align-items:flex-start;gap:8px;line-height:1.4;display:flex}.document-activity svg{color:var(--muted-foreground);flex:none;margin-top:1px}.document-activity .document-added svg{color:var(--success)}.document-table tr:has(>td[data-recent]){animation:2.4s ease-out document-recent}@keyframes document-recent{0%{background-color:var(--brand-soft)}to{background-color:#0000}}.preview-switch{background:var(--control-border);border:0;border-radius:999px;flex:none;width:42px;height:24px;margin-left:auto;padding:3px}.preview-switch[aria-checked=true]{background:var(--foreground)}.preview-switch span{background:var(--background);width:18px;height:18px;transition:transform .15s var(--ease-out);border-radius:50%;display:block}.preview-switch[aria-checked=true] span{transform:translate(18px)}@media (forced-colors:active){.preview-switch span{border:2px solid buttontext}.preview-switch[aria-checked=true] span{border-color:highlight}}
.document-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.document-filter-search{flex:0 300px;align-items:center;gap:8px;min-width:220px;display:flex}.document-filter-query{flex:1}.document-filter-query>search{flex:1;min-width:0}.preview-search{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--background);align-items:center;gap:8px;width:100%;min-width:0;height:36px;padding:0 10px;display:flex}@media (hover:hover) and (pointer:fine){.preview-search:hover{border-color:var(--border-hover)}}.preview-search>svg{width:16px;height:16px;color:var(--muted-foreground);flex:none}.preview-search input{width:100%;min-width:0;color:var(--foreground);font-size:var(--type-ui);background:0 0;border:0;outline:none;padding:6px 0}.preview-search:focus-within{outline:2px solid var(--ring);outline-offset:2px}.document-filter-toggle{display:none}.document-filter-fields{flex-wrap:wrap;gap:8px;min-width:0;display:flex}.document-filter-field{min-width:0;display:flex}.document-filter-field [data-slot=select-trigger]{border:1px solid var(--border);background:var(--background);min-width:0;max-width:260px;height:36px;box-shadow:none;color:var(--foreground);font-size:var(--type-ui);letter-spacing:0;text-transform:none;border-radius:999px;gap:6px;padding:0 10px 0 12px;font-weight:600}@media (hover:hover) and (pointer:fine){.document-filter-field [data-slot=select-trigger]:hover{border-color:var(--border-hover)}}.document-filter-field [data-prefix]:before{content:attr(data-prefix) " ·";color:var(--muted-foreground);flex:none;font-weight:400}.document-filter-summary{font-size:var(--type-ui);flex-wrap:wrap;flex-basis:100%;align-items:center;gap:6px;display:flex}.document-filter-summary>.preview-text-button{margin-left:4px}
.preview-table-wrap{border:1px solid var(--border);border-radius:var(--radius-card);overflow-x:auto}.preview-table{border-collapse:collapse;text-align:left;width:100%;font-size:.8125rem;line-height:1.4}.preview-table th{z-index:1;background:var(--surface-soft);height:36px;box-shadow:inset 0 -1px 0 var(--border);color:var(--muted-foreground);font-size:var(--type-meta);white-space:nowrap;padding:0 12px;font-weight:600;position:sticky;top:0}.preview-table td{border-top:1px solid var(--border-subtle);vertical-align:middle;height:40px;padding:6px 12px}.preview-table tbody tr:first-child td{border-top:0}@media (hover:hover) and (pointer:fine){.preview-table tbody tr:hover td{background:var(--surface-soft)}}.preview-table td strong{font-weight:600}.document-table td:first-child{width:58%}.document-table td:nth-child(2){width:16%;font-size:.8125rem}.document-table td:nth-child(3){white-space:nowrap;font-size:.8125rem}.document-table td:last-child{width:1%}.document-table td,.document-table th{padding-left:12px;padding-right:12px}.document-name{align-items:center;gap:10px;min-width:0;display:flex}.document-name>div{min-width:0}.document-name strong{text-wrap:pretty;overflow-wrap:anywhere;font-size:.8125rem;line-height:1.35;display:block}.document-name strong a{color:inherit;text-decoration:none}@media (hover:hover) and (pointer:fine){.document-name strong a:hover{text-decoration:underline}}.document-name p{color:var(--muted-foreground);flex-wrap:wrap;align-items:center;gap:2px 6px;margin-top:1px;font-size:.75rem;display:flex}.document-name p .preview-note{min-height:0;font-size:inherit;margin:0 -3px;padding:0 3px}.preview-status{color:var(--foreground);white-space:nowrap;vertical-align:middle;align-items:center;gap:7px;font-size:.8125rem;display:inline-flex}.preview-status>span{background:var(--status-off);border-radius:50%;flex:none;width:7px;height:7px}.preview-status[data-tone=success]>span{background:var(--success)}.preview-status[data-tone=warning]>span,.preview-status[data-tone=progress]>span{background:var(--attention)}.preview-status[data-tone=info]>span{background:var(--foreground)}.preview-status[data-tone=pending]>span{box-shadow:inset 0 0 0 1.5px var(--attention);background:0 0}.preview-status[data-tone=danger]>span{background:var(--destructive)}.preview-status[data-tone=off]{color:var(--muted-foreground)}.preview-status[data-tone=off]>span{box-shadow:inset 0 0 0 1.5px var(--status-off);background:0 0}.preview-status[data-tone=progress]>span{animation:1.4s ease-in-out infinite status-pulse}@keyframes status-pulse{50%{opacity:.35}}.preview-note{min-height:24px;color:var(--attention);text-underline-offset:3px;vertical-align:middle;white-space:nowrap;background:0 0;border:0;border-radius:4px;align-items:center;padding:0 4px;font-size:.75rem;font-weight:500;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;display:inline-flex}.preview-note[data-popup-open]{background:var(--attention-soft)}@media (hover:hover) and (pointer:fine){.preview-note:hover{background:var(--attention-soft)}}.preview-note-popup{border:1px solid var(--border);width:auto;max-width:min(260px,100vw - 32px);box-shadow:var(--shadow-soft);border-radius:8px;gap:8px;padding:12px;font-size:.8125rem;line-height:1.45}.preview-note-popup [data-slot=popover-title]{font-weight:600}.preview-note-popup [data-slot=popover-description]{font-size:.75rem}.preview-note-popup ul{flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none;display:flex}.preview-note-popup li{border:1px solid var(--border);background:var(--surface-soft);text-align:center;border-radius:4px;min-width:26px;padding:1px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;font-weight:500;line-height:1.5}.document-actions{justify-content:flex-end;display:flex}.document-actions .preview-icon-button{position:relative}.document-actions .preview-icon-button:before{content:"";position:absolute;inset:-3px}.document-name .document-boe-status{color:var(--muted-foreground)}.document-name .document-boe-warning{color:var(--destructive)}
@keyframes document-view-enter{0%{opacity:0;transform:translateY(6px)}}.document-view{animation:document-view-enter .2s var(--ease-out)}.document-folder[open]>div{animation:document-view-enter .18s var(--ease-out)}.document-folders{border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden}.document-folder>summary{cursor:pointer;align-items:center;gap:8px;min-height:44px;padding:8px 14px;font-weight:600;list-style:none;display:flex}.document-folder>summary::-webkit-details-marker{display:none}@media (hover:hover) and (pointer:fine){.document-folder>summary:hover{background:var(--surface-soft)}}.document-folder>summary>svg{color:var(--muted-foreground);flex:none}.document-folder[open]>summary>svg:first-child{transform:rotate(90deg)}.document-folder-count{font-variant-numeric:tabular-nums;color:var(--muted-foreground);white-space:nowrap;margin-left:auto;font-size:.8125rem;font-weight:400}.document-folders>.document-folder+.document-folder{border-top:1px solid var(--border)}.document-folder .document-folder>summary{padding-left:34px}.document-folder .document-folder .document-folder>summary{padding-left:54px}.document-folder-list{margin:0;padding:0 0 4px;list-style:none}.document-folder-list>li{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:16px;padding:10px 14px 10px 74px;display:grid}.document-folder-date{color:var(--muted-foreground);white-space:nowrap}@media (pointer:coarse){.document-actions-menu [data-slot=dropdown-menu-item],[data-slot=dropdown-menu-content] [data-slot=dropdown-menu-item],[data-slot=select-content] [data-slot=select-item]{min-height:44px}}
.document-dropzone{border:2px dashed var(--control-border);background:var(--surface-soft);text-align:center;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:10px;min-height:156px;padding:20px;display:flex;position:relative}@media (hover:hover) and (pointer:fine){.document-dropzone:hover{border-color:var(--border-hover)}}.document-dropzone>svg{color:var(--primary)}.document-dropzone>strong{overflow-wrap:anywhere;max-width:100%}.document-dropzone>span{color:var(--muted-foreground);font-size:.8125rem;font-weight:400}.document-dropzone input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.document-dropzone:focus-within{outline:2px solid var(--ring);outline-offset:3px}.document-dropzone.is-dragging,.document-dropzone.is-invalid{border-color:var(--primary);background:var(--brand-soft)}.document-upload-queue{border:0;gap:8px;min-width:0;margin:0;padding:0;display:grid}.document-upload-queue legend{font-size:var(--type-ui);margin-bottom:6px;font-weight:600}.document-upload-queue ul{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--border-subtle);gap:1px;display:grid;overflow:hidden}.document-upload-queue li{background:var(--background);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;padding:8px 12px;display:grid}.document-upload-name{overflow-wrap:anywhere;min-width:0;font-size:var(--type-ui);flex-direction:column;display:flex}.document-upload-name small{color:var(--muted-foreground);font-size:var(--type-meta)}.document-upload-queue input{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);width:100%;min-width:0;height:36px;font-size:var(--type-ui);padding:0 10px}@media (max-width:640px){.document-upload-queue li{grid-template-columns:1fr;gap:6px}.document-upload-queue input{height:44px;font-size:max(1rem,16px)}}
.preview-empty-state{text-align:center;color:var(--muted-foreground);flex-direction:column;align-items:center;gap:12px;padding:40px 16px;display:flex}.preview-empty-state h2{color:var(--foreground);font-size:var(--type-base);font-weight:600}.preview-empty-state>p{text-wrap:balance;max-width:44ch}.preview-empty-icon{background:var(--control-fill);width:40px;height:40px;color:var(--text-secondary);border-radius:999px;place-items:center;margin-bottom:4px;display:grid}.admin-kpis{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--border-subtle);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;display:grid;overflow:hidden}.admin-kpis[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-kpis[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-kpis[data-count="1"]{grid-template-columns:minmax(0,1fr)}.admin-kpis>div{background:var(--background);flex-direction:column;gap:6px;padding:14px 16px;display:flex}.admin-kpis>div[data-selected]{background:var(--surface-soft);box-shadow:inset 0 -2px 0 var(--foreground)}@media (forced-colors:active){.admin-kpis>div[data-selected]{outline-offset:-2px;outline:2px solid highlight}}.admin-kpis dt{color:var(--muted-foreground);font-size:var(--type-meta);line-height:1.3}.admin-kpis dd{flex-direction:column;gap:4px;margin:0;display:flex}.admin-kpi-value{color:var(--foreground);font-size:var(--type-kpi);font-variant-numeric:tabular-nums;font-weight:600;line-height:1.15;display:block}.admin-kpi-link{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;width:fit-content;min-height:28px;margin:-2px -4px;padding:2px 4px;display:block}@media (hover:hover) and (pointer:fine){.admin-kpi-link:hover .admin-kpi-value{text-underline-offset:4px;text-decoration:underline;text-decoration-thickness:1px}}.admin-kpis p,.admin-kpi-note{color:var(--muted-foreground);font-variant-numeric:tabular-nums;font-weight:400;font-size:var(--type-meta);line-height:1.4}.filter-pill{border:1px solid var(--border);background:var(--background);max-width:100%;min-height:28px;font-size:var(--type-meta);border-radius:999px;align-items:stretch;display:inline-flex}.filter-pill-label{border-right:1px solid var(--border-subtle);background:var(--surface-soft);color:var(--muted-foreground);border-radius:999px 0 0 999px;align-items:center;padding:0 8px 0 10px;display:flex}.filter-pill-value{text-overflow:ellipsis;white-space:nowrap;align-items:center;min-width:0;padding:0 4px 0 8px;font-weight:600;display:flex;overflow:hidden}.filter-pill button{width:28px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:0;border-radius:0 999px 999px 0;place-items:center;display:grid}@media (hover:hover) and (pointer:fine){.filter-pill button:hover{color:var(--foreground)}}.admin-toolbar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.admin-toolbar>search{flex:1;min-width:180px;max-width:280px}.admin-toolbar>:is(.preview-button,.report-export):last-child{margin-left:auto}.preview-segments{border-radius:var(--radius-control);background:var(--muted);gap:4px;padding:4px;display:flex}.preview-segments button{min-height:32px;color:var(--muted-foreground);white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:6px 12px;font-size:.8125rem;font-weight:600}.preview-segments button[aria-pressed=true]{background:var(--card);color:var(--foreground);box-shadow:0 0 0 1px var(--border)}.table-sort{min-height:28px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:4px;margin:0 -4px;padding:0 4px;display:inline-flex}@media (hover:hover) and (pointer:fine){.table-sort:hover{color:var(--foreground)}}.table-number{font-variant-numeric:tabular-nums;white-space:nowrap}.table-number[data-near]{color:var(--attention);font-weight:600}.table-actions{text-align:right;width:1%}.admin-filter-pills{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.admin-filter-toggle{display:none}.admin-filter-fields{display:contents}.user-identity{align-items:center;gap:10px;display:flex}.user-identity .preview-avatar{background:var(--muted);color:var(--muted-foreground)}.user-identity>div{flex-direction:column;gap:3px;min-width:0;display:flex}.user-identity strong{white-space:nowrap;font-size:.8125rem}.user-identity>div>span{color:var(--muted-foreground);font-size:.75rem}.admin-card{border-radius:var(--radius-card);background:var(--surface);flex-direction:column;gap:16px;min-width:0;padding:18px 20px;display:flex}.admin-card h2{font:700 1rem / 1.3 var(--font-archivo), sans-serif;align-items:center;gap:8px;display:flex}.admin-card-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.admin-card-heading p{color:var(--muted-foreground);font-size:.8125rem}
.report{gap:16px}.analytics-toolbar{justify-content:space-between;align-items:center}.report-caption{color:var(--muted-foreground);font-size:var(--type-meta);font-variant-numeric:tabular-nums}.report-card{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--background);flex-direction:column;gap:14px;min-width:0;padding:16px;display:flex}.report-card-heading,.report-group-heading{flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:24px;display:flex}.report-card-heading h2,.report-group-heading h2{font-size:var(--type-base);font-weight:600;line-height:1.4}.report-card-heading p,.report-group-heading p{color:var(--muted-foreground);font-size:var(--type-meta);font-variant-numeric:tabular-nums}.report-card-actions{align-items:center;gap:12px;margin-left:auto;display:flex}.report-export{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--background);height:32px;color:var(--foreground);font:inherit;font-size:var(--type-ui);cursor:pointer;align-items:center;gap:6px;padding:0 10px;font-weight:500;display:inline-flex}.report-export svg{color:var(--muted-foreground)}@media (hover:hover) and (pointer:fine){.report-export:hover{border-color:var(--border-hover);background:var(--surface-soft)}}.analytics-kpi-groups{flex-wrap:wrap;gap:16px 12px;display:flex}.analytics-kpi-group{flex-direction:column;flex:180px;gap:8px;min-width:0;display:flex}.analytics-kpi-group[data-count="2"]{flex:2 374px}.analytics-kpi-group[data-count="3"]{flex:3 568px}.analytics-kpi-group[data-count="4"]{flex:4 762px}.analytics-kpi-groups:has(>:nth-child(3))>:first-child{flex-basis:100%}@media (min-width:1024px){.analytics-kpi-groups:has(>:nth-child(3)){grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:dense;display:grid}.analytics-kpi-groups:has(>:nth-child(3))>[data-count="1"]{grid-column:span 1}.analytics-kpi-groups:has(>:nth-child(3))>[data-count="2"]{grid-column:span 2}.analytics-kpi-groups:has(>:nth-child(3))>[data-count="3"]{grid-column:span 3}.analytics-kpi-groups:has(>:nth-child(3))>[data-count="4"]{grid-column:span 4}.analytics-kpi-groups:has(>:first-child[data-count="2"])>[data-count="1"]{grid-column:span 2}}.analytics-kpi-group .admin-kpis{flex:1}.analytics-period{flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;display:flex}.analytics-dates{border-radius:var(--radius-control);background:var(--control-fill);align-items:center;gap:4px;min-width:0;padding:2px 2px 2px 10px;display:flex}.analytics-date{min-width:0;color:var(--muted-foreground);font-size:var(--type-ui);align-items:center;gap:4px;font-weight:500;display:flex}.analytics-date button{border-radius:calc(var(--radius-control) - 2px);width:124px;min-width:0;height:32px;color:var(--foreground);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:8px;padding:0 8px;display:inline-flex}.analytics-date button svg{opacity:.5;flex:none;width:16px;height:16px}.analytics-date button:focus-visible,.analytics-date button[aria-expanded=true]{background:var(--background)}@media (hover:hover) and (pointer:fine){.analytics-date button:hover{background:var(--background)}}.analytics-date button[aria-invalid=true]{background:var(--danger-soft);color:var(--danger)}
.analytics-split{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px;display:grid}.analytics-plot{color:var(--muted-foreground);font-size:var(--type-meta);font-variant-numeric:tabular-nums;grid-template-columns:auto minmax(0,1fr);gap:8px;display:grid}.analytics-axis{text-align:right;white-space:nowrap;flex-direction:column;justify-content:space-between;margin:-8px 0;line-height:16px;display:flex}.analytics-bars{background:linear-gradient(var(--border-subtle) 1px, transparent 1px) 0 0 / 100% 50%;height:200px;box-shadow:inset 0 -1px var(--border);cursor:crosshair;touch-action:pan-y;border-radius:2px;align-items:flex-end;display:flex;position:relative}.analytics-bars:focus-visible{outline:none}.analytics-bars:focus-visible .analytics-bar-column[data-active]{outline:2px solid var(--ring);outline-offset:2px;border-radius:3px}.analytics-bar-column{border-radius:3px 3px 0 0;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;min-width:0;height:100%;display:flex}.analytics-bar-column[data-active]{background:color-mix(in oklab, var(--foreground) 5%, transparent)}.analytics-bar,.analytics-bar-stack{border-radius:3px 3px 0 0;width:min(64%,32px);min-width:1px;min-height:2px;overflow:hidden}.analytics-bar{background:var(--chart-1)}.analytics-bar-stack{flex-direction:column-reverse;display:flex}.analytics-bar-stack>div{min-height:1px}.analytics-bar-zero{background:var(--chart-3);opacity:.5;border-radius:1px;width:min(64%,32px);height:2px}.analytics-tooltip{z-index:2;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--popover);min-width:140px;box-shadow:var(--shadow-popup);color:var(--foreground);font-size:var(--type-meta);white-space:nowrap;pointer-events:none;flex-direction:column;gap:2px;padding:8px 10px;display:flex;position:absolute;top:4px}.analytics-tooltip[data-side=right]{transform:translate(-12px)}.analytics-tooltip[data-side=left]{transform:translate(calc(12px - 100%))}.analytics-tooltip strong{font-weight:600}.analytics-tooltip-part{color:var(--muted-foreground);align-items:center;gap:6px;display:flex}.analytics-tooltip-part i,.report-legend span{border-radius:2px;flex:none;width:8px;height:8px}.report-legend{color:var(--muted-foreground);font-size:var(--type-meta);flex-wrap:wrap;gap:4px 12px;margin:0;padding:0;list-style:none;display:flex}.report-legend li{align-items:center;gap:6px;display:flex}.analytics-bar-labels{grid-column:2;display:flex}.analytics-bar-labels>span{white-space:nowrap;flex:1;justify-content:center;min-width:0;display:flex}.analytics-empty{border:1px dashed var(--border);border-radius:var(--radius-control);min-height:200px;color:var(--muted-foreground);font-size:var(--type-ui);place-items:center;display:grid}.analytics-data{color:var(--muted-foreground);font-size:var(--type-ui)}.analytics-data summary{cursor:pointer;width:fit-content}.analytics-data table{margin-top:12px}.analytics-data th{position:sticky;top:0}.analytics-data :is(th,td):not(:first-child),.report-table :is(th,td):not(:first-child){text-align:right;font-variant-numeric:tabular-nums}:is(.cost-models,.cost-users) .report-table :is(th,td):nth-child(2){text-align:left}.cost-models :is(th,td):nth-child(3){white-space:nowrap}.report-table td small{color:var(--muted-foreground);font-size:var(--type-meta);display:block}.analytics-rankings{flex-direction:column;gap:14px;display:flex}.analytics-rankings>div{flex-direction:column;gap:6px;display:flex}.analytics-rankings>div>div{font-size:var(--type-ui);justify-content:space-between;align-items:baseline;gap:10px;display:flex}.analytics-rankings>div>div>span{flex-direction:column;gap:2px;min-width:0;display:flex}.analytics-rankings small{color:var(--muted-foreground);font-size:var(--type-meta)}.analytics-rankings strong{font-variant-numeric:tabular-nums;font-weight:600}.ui-preview .report meter{border-radius:3px;height:6px}.ui-preview .report meter::-webkit-meter-bar{background:var(--meter-track);border-radius:3px;height:6px}.ui-preview .report meter::-webkit-meter-optimum-value{background:var(--chart-1);border-radius:3px}.ui-preview .report meter::-moz-meter-bar{background:var(--chart-1);border-radius:3px}.analytics-topics{counter-reset:topics;margin:0;padding:0;list-style:none}.analytics-topics li{counter-increment:topics;border-top:1px solid var(--border-subtle);font-size:var(--type-ui);grid-template-columns:20px minmax(0,1fr) 120px 36px;align-items:center;gap:12px;padding:8px 0;display:grid}.analytics-topics li:first-child{border-top:0}.analytics-topics li:before{content:counter(topics);color:var(--muted-foreground);font-variant-numeric:tabular-nums}.analytics-topics li>div{flex-direction:column;gap:2px;min-width:0;display:flex}.analytics-topics li strong{font-weight:600}.analytics-topics li span{color:var(--muted-foreground);font-size:var(--type-meta)}.analytics-topics li>strong{text-align:right;font-variant-numeric:tabular-nums}.analytics-unanswered ul{margin:0;padding:0;list-style:none}.analytics-unanswered li{border-top:1px solid var(--border-subtle);flex-direction:column;gap:2px;padding:8px 0;display:flex}.analytics-unanswered li:first-child{border-top:0;padding-top:0}.analytics-unanswered li p{font-size:var(--type-ui);line-height:1.4}.analytics-unanswered li span{color:var(--muted-foreground);font-size:var(--type-meta)}.report-table-card{padding-bottom:0}.report-table-card>.report-table-wrap{border:0;border-top:1px solid var(--border);border-radius:0 0 var(--radius-card) var(--radius-card);margin:0 -16px}.report-table-card>.preview-muted{padding-bottom:16px}.report-share{justify-content:flex-end;align-items:center;gap:8px;display:inline-flex}.report-share>span{background:var(--meter-track);border-radius:3px;width:56px;height:6px;overflow:hidden}.report-share i{background:var(--chart-1);height:100%;display:block}.report-heatmap-scroll{overflow-x:auto}.report-heatmap table{border-collapse:separate;border-spacing:3px;table-layout:fixed;width:100%;min-width:560px;font-size:var(--type-meta);font-variant-numeric:tabular-nums}.report-heatmap th{color:var(--muted-foreground);font-weight:400}.report-heatmap thead th{text-align:left;height:16px}.report-heatmap thead td,.report-heatmap tbody th{width:20px}.report-heatmap tbody th{text-align:left}.report-heatmap :is(td,i)[data-level]{background:var(--surface);border-radius:3px;height:18px}.report-heatmap :is(td,i)[data-level="1"]{background:color-mix(in oklab, var(--chart-1) 25%, var(--surface))}.report-heatmap :is(td,i)[data-level="2"]{background:color-mix(in oklab, var(--chart-1) 48%, var(--surface))}.report-heatmap :is(td,i)[data-level="3"]{background:color-mix(in oklab, var(--chart-1) 72%, var(--surface))}.report-heatmap :is(td,i)[data-level="4"]{background:var(--chart-1)}.report-heatmap-scale{color:var(--muted-foreground);font-size:var(--type-meta);justify-content:flex-end;align-items:center;gap:3px;display:flex}.report-heatmap-scale i[data-level]{width:12px;height:12px}.report-heatmap-scale i:first-of-type{margin-left:4px}.report-heatmap-scale i:last-of-type{margin-right:4px}.ui-preview meter{background:var(--meter-track);border:0;border-radius:4px;width:100%;height:8px}.ui-preview meter::-webkit-meter-bar{background:var(--muted);border:0;border-radius:4px;height:8px}.ui-preview meter::-webkit-meter-optimum-value{background:var(--primary);border-radius:4px}.ui-preview meter::-moz-meter-bar{background:var(--primary)}
.feedback-tabs{border-bottom:1px solid var(--border);gap:4px;margin-top:8px;display:flex}.feedback-tabs button{min-height:40px;color:var(--muted-foreground);font-size:var(--type-ui);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;margin-bottom:-1px;padding:8px 12px;font-weight:600}.feedback-tabs button[aria-pressed=true]{border-bottom-color:var(--foreground);color:var(--foreground)}@media (hover:hover) and (pointer:fine){.feedback-tabs button:hover{color:var(--foreground)}}.feedback-tab-count{background:var(--control-fill);min-width:20px;color:var(--muted-foreground);font-size:var(--type-meta);font-variant-numeric:tabular-nums;border-radius:999px;margin-left:6px;padding:0 6px;font-weight:500;line-height:18px;display:inline-block}.feedback-tab-count:empty{display:none}.feedback-list{border:1px solid var(--border);border-radius:var(--radius-card);flex-direction:column;display:flex;overflow:hidden}.feedback-list:empty{display:none}.feedback-more{align-self:center}.feedback-card{background:var(--background);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.feedback-card+.feedback-card{border-top:1px solid var(--border-subtle)}.feedback-card-heading{align-items:center;gap:12px;display:flex}.feedback-rating{width:72px;color:var(--muted-foreground);font-size:var(--type-meta);flex:none;align-items:center;gap:6px;display:inline-flex}.feedback-card:not([data-useful]) .feedback-rating{color:var(--foreground);font-weight:600}.feedback-card-text{flex:1;min-width:0}.feedback-card h2{font-size:var(--type-ui);text-overflow:ellipsis;white-space:nowrap;font-weight:600;line-height:1.45;overflow:hidden}.feedback-card-heading p{color:var(--muted-foreground);font-size:var(--type-meta);flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:2px;line-height:1.5;display:flex}.feedback-reason{border:1px solid var(--border);color:var(--foreground);font-size:var(--type-meta);border-radius:999px;padding:0 6px}.feedback-card-actions{flex:none;align-items:center;gap:4px;display:flex}.feedback-card-actions .preview-button{min-height:32px;font-size:var(--type-ui);padding:4px 10px}.feedback-card blockquote,.feedback-note-preview,.feedback-answer{margin:0 0 0 84px}.feedback-card blockquote{border-left:2px solid var(--border);color:var(--text-secondary);font-size:var(--type-ui);padding-left:10px;line-height:1.5}.feedback-note-preview{color:var(--muted-foreground);font-size:var(--type-meta)}.feedback-note-preview span{font-weight:600}.feedback-answer{border-radius:var(--radius-control);background:var(--surface-soft);flex-direction:column;gap:8px;padding:12px;display:flex}.feedback-answer h3,.feedback-note label{color:var(--muted-foreground);font-size:var(--type-meta);font-weight:600}.feedback-answer>p{font-size:var(--type-ui);white-space:pre-wrap;line-height:1.6}.feedback-note{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 8px;margin-top:4px;display:grid}.feedback-note label{grid-column:1/-1}.feedback-note textarea{border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--card);width:100%;min-height:40px;font:inherit;font-size:var(--type-ui);resize:vertical;padding:8px 10px}.feedback-note .preview-button{min-height:36px}.is-rotated{transform:rotate(180deg)}
@media (max-width:1199px){.admin-kpis[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.document-table th,.document-table td{padding:10px 8px}.document-table td:nth-child(3),.document-table th:nth-child(3){display:none}.analytics-split{grid-template-columns:1fr}}@media (max-width:1023px){.document-folder .document-folder>summary{padding-left:24px}.document-folder .document-folder .document-folder>summary{padding-left:34px}.document-folder-list>li{grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;padding:12px 14px}.document-folder-list>li>.document-name{grid-column:1/-1}.preview-shell-admin,.preview-shell-admin[data-collapsed]{grid-template-columns:minmax(0,1fr)}.preview-shell-admin .preview-sidebar{display:none}.admin-mobile-navigation{padding:4px 4px max(4px, env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--background);flex:none;grid-template-columns:repeat(5,minmax(0,1fr));display:grid}.admin-mobile-navigation :is(a,button){border-radius:var(--radius-control);min-width:0;min-height:52px;color:var(--muted-foreground);font-size:var(--type-meta);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:4px 0;font-weight:500;text-decoration:none;display:flex}.admin-mobile-navigation span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.admin-mobile-navigation :is(a[aria-current=page],button[data-current]){color:var(--foreground);font-weight:600}.document-table,.document-table tbody,.document-table tr,.document-table td{display:block;width:100%!important}.document-table thead{display:none}.document-table tr{background:var(--surface);border-radius:12px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2px 8px;padding:10px 4px 2px 12px;display:grid}.document-table tbody{flex-direction:column;gap:8px;display:flex}.document-table td{border:0;height:auto;padding:0}.document-table td:first-child{grid-column:1/-1}.document-table td:nth-child(2){min-width:0;color:var(--muted-foreground);text-overflow:ellipsis;white-space:nowrap;grid-area:2/1;font-size:.8125rem;overflow:hidden}.document-table td:nth-child(4){grid-area:2/2;align-items:center;display:flex}.document-table td:last-child{grid-area:2/3}.document-table .document-size{display:none}.document-actions .preview-icon-button{width:44px;height:44px}.preview-table-wrap:has(.document-table){border:0;border-radius:0;overflow:visible}.document-name{align-items:flex-start}}@media (max-width:767px){.preview-shell,.preview-shell[data-collapsed]{grid-template-columns:minmax(0,1fr)}.preview-sidebar{display:none}.preview-mobile-menu{display:inline-flex}.preview-topbar{gap:4px;min-height:52px;padding:4px 8px}.chat-thread{padding:16px 16px 32px;-webkit-mask-image:linear-gradient(#0000,#000 24px calc(100% - 32px),#0000);mask-image:linear-gradient(#0000,#000 24px calc(100% - 32px),#0000)}.chat-messages{gap:28px}.chat-user-message,.chat-assistant-message{font-size:var(--type-body-mobile)}.chat-user-message{max-width:88%}.chat-header-new{display:inline-flex}.chat-title{font-size:var(--type-base)}.ui-preview .chat-empty h2{font-size:1.5rem}.chat-empty .ezcurra-mark{width:32px}.preview-main:has(.chat-empty){justify-content:flex-end;padding-bottom:0}.preview-main:has(.chat-empty) .chat-thread-wrap{flex:1;justify-content:center}.chat-suggestions{order:1;width:calc(100% - 32px);margin-bottom:8px}.preview-main:has(.chat-empty) .chat-composer-area{order:2}.chat-composer-area{padding:8px 16px max(10px, env(safe-area-inset-bottom))}.chat-composer{padding:6px 6px 6px 14px}.chat-composer textarea{min-height:44px;font-size:var(--type-body-mobile);padding:11px 0}.chat-answer-actions .preview-icon-button,.chat-history-menu.preview-icon-button{width:44px;height:44px}.chat-history-menu.preview-icon-button{margin-right:0}.chat-new-button,.chat-history-item,.chat-search{min-height:44px}.plan-options{grid-template-columns:1fr}.preview-modal-content{padding:20px}.preview-modal{scroll-padding-bottom:136px}.preview-modal .preview-form-actions{flex-direction:column-reverse;margin:8px -20px -20px;padding:12px 20px 20px}.document-oppositions,.preview-form-grid{grid-template-columns:1fr}.preview-icon-button,.chat-send{width:44px;height:44px}.preview-topbar-admin{min-height:56px;padding:6px max(16px, env(safe-area-inset-right,0px)) 6px max(16px, env(safe-area-inset-left,0px))}.admin-upload-button{width:44px;min-width:44px;min-height:44px;padding:0}.admin-upload-button span{display:none}.admin-upload-button:after{content:""}.admin-content{gap:14px;padding:16px 16px 24px}.document-reindex{gap:10px;padding:12px}.document-reindex strong,.document-reindex p{font-size:.8125rem}.preview-switch{background:0 0;width:48px;height:44px;padding:13px 6px;position:relative}.preview-switch[aria-checked=true]{background:0 0}.preview-switch:before{content:"";background:var(--control-border);border-radius:999px;position:absolute;inset:10px 3px}.preview-switch[aria-checked=true]:before{background:var(--foreground)}.preview-switch span{position:relative}.preview-search{height:44px}.document-filter-search{flex:100%}.document-filter-toggle{padding:8px;font-size:.8125rem;display:inline-flex}.document-filter-fields{border-radius:var(--radius-card);background:var(--surface-soft);gap:10px;padding:12px;display:none}.document-filter-fields.is-open{animation:document-filters-in .18s var(--ease-out);flex-basis:100%;grid-template-columns:1fr;display:grid}@keyframes document-filters-in{0%{opacity:0;transform:translateY(-4px)}}.document-filter-field [data-slot=select-trigger]{border-radius:var(--radius-control);width:100%;max-width:none;height:44px}.document-filter-summary{gap:8px;font-size:.8125rem}.filter-pill{min-height:32px;font-size:var(--type-ui)}.document-name strong,.document-name p{font-size:.8125rem}.admin-kpis,.admin-kpis[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-kpis[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-kpis>div{gap:6px;padding:12px}.admin-kpis dt{font-size:.8125rem;line-height:1.3}.admin-kpi-value{font-size:1.25rem}.analytics-kpi-group[data-count]{flex-basis:100%}.analytics-kpi-group .admin-kpis[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-kpi-group .admin-kpis>div:last-child:nth-child(odd){grid-column:1/-1}.admin-toolbar{gap:10px}.admin-toolbar>search{flex:auto;width:100%;max-width:none}.admin-toolbar>.preview-button{padding:8px 10px;font-size:.8125rem}.admin-toolbar>search{flex:1 1 0;max-width:none}.admin-filter-toggle{min-height:44px;display:inline-flex}.admin-filter-fields{display:none}.admin-toolbar:has(>.admin-filter-toggle)>:is(.preview-muted,.report-export,.preview-button:not(.admin-filter-toggle)){order:2}.admin-toolbar:has(>.admin-filter-toggle):after{content:"";flex-basis:100%;order:1;margin-top:-10px}.admin-toolbar:has(>.admin-filter-toggle)>.preview-muted{flex:auto}.admin-filter-fields[data-open]{animation:document-filters-in .18s var(--ease-out);flex-basis:100%;order:1;gap:8px;display:grid}.admin-filter-fields [data-slot=select-trigger]{border-radius:var(--radius-control);width:100%;max-width:none;height:44px}.preview-segments{max-width:100%}.preview-segments button{min-height:44px;padding:6px 10px;font-size:.8125rem}.user-table,.user-table tbody,.user-table tr,.user-table td{width:100%;display:block}.user-table thead{display:none}.user-table tbody{flex-direction:column;gap:12px;display:flex}.user-table tr{background:var(--surface);border-radius:12px;flex-wrap:wrap;gap:8px 12px;padding:12px;display:flex;position:relative}.user-table td{border:0;height:auto;padding:0;font-size:.8125rem}.user-table td:first-child{padding-right:44px}.user-table td:not(:first-child){width:auto}.user-table td:nth-child(4){display:none}.user-table td:nth-child(5):before{content:"Hoy: ";color:var(--muted-foreground)}.user-table td:nth-child(6):before{content:"Cupo: ";color:var(--muted-foreground);font-weight:400}.user-table td:last-child{width:auto;position:absolute;top:6px;right:4px}.preview-table-wrap:has(.user-table){border:0;overflow:visible}.admin-card{padding:14px}.admin-card h2{font-size:.9375rem}.analytics-bars{height:160px}.analytics-empty{min-height:160px}.analytics-bar-labels{gap:3px;font-size:.75rem}.admin-card-heading p,.analytics-data{font-size:.8125rem}.analytics-data summary{line-height:44px}.analytics-period{width:100%}.analytics-period .preview-segments{flex:100%}.analytics-period .preview-segments button,.analytics-dates{flex:auto}.analytics-date,.analytics-date button{flex:1}.analytics-topics li{grid-template-columns:18px minmax(0,1fr) 35px;gap:10px;font-size:.8125rem}.analytics-topics meter{display:none}.analytics-topics li span{font-size:.8125rem}.report-card{padding:14px}.report-table-card{padding-bottom:0}.report-table-card>.report-table-wrap{margin:0 -14px}.report-table,.report-table tbody{min-width:0;display:block}.report-table thead{display:none}.report-table tr{border-top:1px solid var(--border-subtle);flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:10px 14px;display:flex}.report-table td{text-align:left;height:auto;color:var(--muted-foreground);font-size:var(--type-meta);border:0;padding:0;display:block}.report-table td:first-child{min-width:0;color:var(--foreground);font-size:var(--type-ui);flex:auto;order:-2}.report-table td[data-primary]{color:var(--foreground);font-size:var(--type-ui);font-variant-numeric:tabular-nums;order:-1;font-weight:600}.report-table td:not(:first-child,[data-primary]):before{content:attr(data-label) " "}.report-table td:nth-child(2):not([data-primary]){flex-basis:100%}.report-table .report-share>span{display:none}.report-card-actions{flex-basis:100%;margin-left:0}.report-export{height:44px}.analytics-period>.document-filter-field{flex:100%}.feedback-card-heading{flex-wrap:wrap;gap:6px 10px}.feedback-card-text{flex-basis:100%;order:-1}.feedback-card h2{white-space:normal}.feedback-card-actions{margin-left:auto}.feedback-card-actions .preview-button{min-height:44px}.feedback-card blockquote,.feedback-note-preview,.feedback-answer{margin-left:0}.feedback-note{grid-template-columns:1fr}.feedback-note textarea{font-size:1rem}.feedback-note .preview-button{min-height:44px}.preview-profile>div>span,.preview-table th,.user-identity>div>span,.feedback-card-heading p{font-size:.8125rem}}@media (max-width:1023px){.preview-table td{height:auto}}@media (max-width:480px){.feedback-tabs{border-bottom:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;display:grid}.feedback-tabs button{border-bottom:1px solid var(--border);min-height:44px;margin-bottom:0}.feedback-tabs button[aria-pressed=true]{border-bottom:2px solid var(--foreground)}}@media (max-width:359px){.preview-demo-badge{display:none}.preview-topbar{gap:4px}.preview-segments button{padding:6px 8px;font-size:.75rem}.document-reindex>svg{display:none}}
@media (prefers-reduced-motion:reduce){.ui-preview *,.ui-preview :before,.ui-preview :after{scroll-behavior:auto!important;transition-property:color,background-color,border-color,opacity!important;animation:none!important}.ui-preview .document-table tr:has(>td[data-recent]){animation:2.4s step-end document-recent!important}.ui-preview .preview-modal[open]{transition:opacity .15s var(--ease-out)!important}.ui-preview .preview-drawer{opacity:0;transform:none;transition:opacity .15s var(--ease-out), overlay .15s allow-discrete, display .15s allow-discrete!important}.ui-preview .preview-drawer[open]{opacity:1}@starting-style{.ui-preview .preview-modal[open]{transform:none}.ui-preview .preview-drawer[open]{opacity:0;transform:none}}}@media (pointer:coarse),(max-width:1023px){.document-view-toggle button{width:44px}}@media (max-width:640px){.settings-row{grid-template-columns:minmax(0,1fr);padding:14px 16px}.settings-control{justify-content:flex-start}.settings-row-switch{grid-template-columns:minmax(0,1fr) auto}.settings-group-header,.settings-group-footer{padding-inline:16px}.settings-group-footer{flex-wrap:wrap}}.preview-drawer::backdrop{transition-duration:.28s;transition-timing-function:var(--ease-drawer)}.preview-shell-admin .preview-main,.preview-sidebar-content,.preview-modal{overscroll-behavior-y:contain}.ui-preview :is(button,a,summary,label,[role=button]){touch-action:manipulation}.ui-preview :is(button,[role=button],.admin-mobile-navigation a){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ui-preview :is(.chat-history-item,.chat-new-button,.chat-chip,.chat-suggestions button,.admin-navigation a,.preview-mode-link,.admin-mobile-navigation :is(a,button),.auth-submit,.auth-google):active{opacity:.75}@media (pointer:coarse){.ui-preview :is(input:not([type=checkbox],[type=radio],[type=file]),textarea,select){font-size:max(1rem,16px)}.preview-icon-button{min-width:44px;min-height:44px}.analytics-date button{min-height:44px}.preview-text-button,.filter-pill button{position:relative}.preview-text-button:before,.filter-pill button:before{content:"";position:absolute;inset:-11px -4px}}.report-error{flex-wrap:wrap;align-items:center;gap:12px;display:flex}@media (pointer:coarse),(max-width:1023px){.admin-navigation a,.preview-mode-switch>*{min-height:44px}}@media (min-width:768px){.admin-actions .preview-button{min-height:36px;font-size:var(--type-ui);padding:6px 12px}}
.auth-page{overscroll-behavior-y:contain;background:var(--background);flex-direction:column;height:100%;display:flex;overflow-y:auto}.auth-header{flex:none;justify-content:space-between;align-items:center;gap:24px;min-height:64px;padding:12px 40px;display:flex}.auth-brand{color:var(--foreground);align-items:center;gap:10px;text-decoration:none;display:flex}.auth-brand .ezcurra-mark{width:30px;color:var(--primary)}.auth-brand>span:last-child{flex-direction:column;gap:4px;display:flex}.auth-brand strong{font:900 1rem/1 var(--font-archivo), sans-serif}.auth-brand small{font-size:var(--type-meta);color:var(--muted-foreground)}.auth-back{min-height:44px;color:var(--muted-foreground);font-size:var(--type-ui);align-items:center;gap:8px;text-decoration:none;display:flex}@media (hover:hover) and (pointer:fine){.auth-back:hover{color:var(--foreground)}}.auth-grid{flex:1 0 auto;grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.auth-brand-panel{background:color-mix(in srgb, var(--primary) 5%, var(--surface-soft));color:var(--foreground);flex-direction:column;justify-content:center;gap:32px;padding:56px;display:flex}.auth-brand-panel>:is(.auth-brand-title,.auth-conversation,.auth-brand-footnote){width:100%;max-width:460px;margin-inline:auto}.auth-brand-title{color:var(--primary);font:800 2.75rem / 1.06 var(--font-archivo), sans-serif;letter-spacing:-.02em;text-wrap:balance}.auth-conversation{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--background);box-shadow:var(--shadow-popup);color:var(--foreground);font-size:var(--type-base);flex-direction:column;gap:14px;padding:20px;line-height:1.65;display:flex}.auth-example-question{border-radius:var(--radius-message);background:var(--surface);align-self:flex-end;max-width:85%;padding:9px 14px}.auth-example-answer{color:var(--text-secondary);gap:6px;display:grid}.auth-example-author{color:var(--foreground);font-size:var(--type-meta);align-items:center;gap:6px;font-weight:600;display:flex}.auth-example-author .ezcurra-mark{width:18px;color:var(--primary)}.auth-example-answer strong{color:var(--foreground);font-weight:600}.auth-brand-footnote{font-size:var(--type-meta);color:var(--muted-foreground)}
.auth-main{justify-content:center;align-items:center;min-width:0;padding:48px 56px;display:flex}.auth-form{flex-direction:column;gap:16px;width:100%;max-width:400px;display:flex}.auth-form-heading h1{letter-spacing:-.01em;font-size:1.5rem;font-weight:600;line-height:1.25}.auth-form-heading h1:focus{outline:none}.auth-form-heading p{color:var(--muted-foreground);font-size:var(--type-base);margin-top:6px;line-height:1.6}.auth-field{flex-direction:column;gap:6px;min-width:0;display:flex}.auth-field>label{font-size:var(--type-ui);font-weight:600}.auth-field :is(input,select){border:1px solid var(--input);border-radius:var(--radius-control);background:var(--background);width:100%;min-width:0;height:44px;color:var(--foreground);font-family:inherit;font-size:var(--type-base);transition:border-color .12s var(--ease-out);padding:0 12px}.auth-field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:36px}@media (hover:hover) and (pointer:fine){.auth-field :is(input,select):hover{border-color:var(--foreground)}}.auth-field :is(input,select):focus-visible{outline:2px solid var(--ring);outline-offset:1px}.auth-field :is(input,select)[aria-invalid=true]{border-color:var(--destructive)}.auth-field :is(input,select)[aria-invalid=true]:focus-visible{outline-color:var(--destructive)}.auth-field ::placeholder{color:var(--placeholder)}.auth-field select option:disabled{color:var(--text-disabled)}.auth-field-error{color:var(--destructive);font-size:var(--type-ui);align-items:flex-start;gap:6px;line-height:1.45;display:flex}.auth-field-error svg{flex:none;margin-top:2px}.auth-password{position:relative}.auth-password input{padding-right:48px}.auth-password button{border-radius:var(--radius-control);width:44px;color:var(--muted-foreground);background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;inset:0 0 0 auto}@media (hover:hover) and (pointer:fine){.auth-password button:hover{color:var(--foreground)}}.auth-strength{color:var(--muted-foreground);font-size:var(--type-meta);align-items:center;gap:8px;display:flex}.auth-strength>div{grid-template-columns:repeat(4,1fr);gap:3px;width:64px;display:grid}.auth-strength>div span{background:var(--border);border-radius:3px;height:3px}.auth-strength span[data-active=true]{background:var(--foreground)}.auth-name-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.auth-login-options a,.auth-switch a,.auth-text-button{color:var(--foreground);text-decoration:underline;-webkit-text-decoration-color:var(--border-hover);text-decoration-color:var(--border-hover);text-underline-offset:3px;font-weight:600}@media (hover:hover) and (pointer:fine){.auth-login-options a:hover,.auth-switch a:hover,.auth-text-button:hover{text-decoration-color:currentColor}}.auth-login-options{font-size:var(--type-ui);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.auth-checkbox{color:var(--text-secondary);font-size:var(--type-ui);align-items:center;gap:8px;line-height:1.55;display:flex}.auth-checkbox input{width:16px;height:16px;accent-color:var(--foreground);cursor:pointer;flex:none}.auth-terms{align-items:flex-start}.auth-terms input{margin-top:3px}.auth-text-button{font:inherit;background:0 0;border:0;padding:0;display:inline}.auth-submit,.auth-google{border:1px solid var(--primary);border-radius:var(--radius-control);background:var(--primary);width:100%;min-height:44px;color:var(--primary-foreground);font-size:var(--type-base);transition:background-color .12s var(--ease-out), transform .12s var(--ease-out);justify-content:center;align-items:center;gap:10px;padding:10px 16px;font-weight:600;text-decoration:none;display:flex}.auth-submit:active,.auth-google:active{transform:scale(.99)}.auth-submit:disabled{opacity:.7}@media (hover:hover) and (pointer:fine){.auth-submit:hover{background:var(--primary-hover);border-color:var(--primary-hover)}}.auth-google{border-color:var(--input);background:var(--background);color:var(--foreground)}@media (hover:hover) and (pointer:fine){.auth-google:hover{background:var(--surface-soft)}}.auth-divider{color:var(--muted-foreground);font-size:var(--type-meta);align-items:center;gap:12px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.auth-switch{text-align:center;color:var(--muted-foreground);font-size:var(--type-ui);line-height:1.6}.auth-demo-note{color:var(--muted-foreground);font-size:var(--type-meta);line-height:1.6}.auth-notice{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);color:var(--foreground);font-size:var(--type-ui);align-items:flex-start;gap:8px;padding:10px 12px;line-height:1.55;display:flex}.auth-notice svg{color:var(--muted-foreground);flex:none;margin-top:2px}.auth-notice-error{border-color:var(--danger-border);background:var(--danger-soft)}.auth-notice-error svg{color:var(--destructive)}
.auth-plan-picker{border:0;gap:8px;min-width:0;margin:0;padding:0;display:grid}.auth-plan-picker legend{font-size:var(--type-ui);margin-bottom:6px;padding:0;font-weight:600}.auth-plan-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.auth-plan{min-width:0;display:flex}.auth-plan-core{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--background);cursor:pointer;min-width:0;transition:border-color .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .12s var(--ease-out);flex-direction:column;flex:1;gap:2px;padding:12px 14px;display:flex}@media (hover:hover) and (pointer:fine){.auth-plan-core:hover{border-color:var(--border-hover)}}.auth-plan:has(input:checked) .auth-plan-core{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);background:color-mix(in srgb, var(--primary) 4%, var(--background))}.auth-plan-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.auth-plan-radio{border:1.5px solid var(--control-border);width:16px;height:16px;transition:border-color .12s var(--ease-out), box-shadow .12s var(--ease-out);border-radius:50%;flex:none}.auth-plan:has(input:checked) .auth-plan-radio{border-color:var(--primary);box-shadow:inset 0 0 0 3.5px var(--background);background:var(--primary)}@media (forced-colors:active){.auth-plan:has(input:checked) .auth-plan-core{outline:2px solid highlight}.auth-plan:has(input:checked) .auth-plan-radio{border:5px solid highlight}}.auth-plan:has(input:focus-visible) .auth-plan-core{outline:2px solid var(--ring);outline-offset:2px}.auth-plan-core input{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.auth-plan-name{font-size:var(--type-ui);font-weight:600}.auth-plan-price{white-space:nowrap;align-items:baseline;gap:2px;margin-top:6px;display:flex}.auth-plan-price b{letter-spacing:-.01em;font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:700;line-height:1.1}.auth-plan-price>span,.auth-plan-total{color:var(--muted-foreground);font-size:var(--type-meta);line-height:1.4}.auth-plan-tag-row{min-height:22px;margin-top:auto;padding-top:8px;display:flex}.auth-plan-tag{background:var(--brand-soft);color:var(--primary-hover);font-size:var(--type-meta);white-space:nowrap;border-radius:999px;align-self:flex-start;padding:2px 8px;font-weight:600;line-height:18px}.auth-plan-tag.auth-plan-soon{background:var(--control-fill);color:var(--muted-foreground);font-weight:500}.auth-plan-features{color:var(--text-secondary);font-size:var(--type-meta);grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:6px 0 0;padding:0;line-height:1.45;list-style:none;display:grid}.auth-plan-features li{align-items:flex-start;gap:6px;display:flex}.auth-plan-features svg{color:var(--success);flex:none;margin-top:2px}
.preview-session-loading{grid-template-columns:264px minmax(0,1fr);height:100%;min-height:100dvh;display:grid}.preview-session-skeleton-sidebar,.preview-session-skeleton-main{flex-direction:column;gap:14px;padding:20px 16px;display:flex}.preview-session-skeleton-sidebar{background:var(--sidebar)}.preview-session-skeleton-main{justify-content:flex-end;align-items:center;padding-bottom:32px}.preview-session-loading span:not(.sr-only){background:var(--control-fill);border-radius:6px;width:70%;height:12px;animation:1.6s ease-in-out infinite auth-skeleton;display:block}.preview-session-skeleton-sidebar span:first-child{width:50%;height:20px}.preview-session-skeleton-main span{max-width:720px}.preview-session-skeleton-main span:last-child{border-radius:var(--radius-composer);width:100%;height:52px}@keyframes auth-skeleton{50%{opacity:.55}}.preview-route-message{padding:48px 24px;line-height:1.6}.preview-route-message h1{margin-bottom:12px;font-size:1.5rem;font-weight:600;line-height:1.25}.preview-route-message a{color:var(--foreground);text-underline-offset:3px;margin-top:16px;font-weight:600;display:inline-block}
.auth-grid{grid-template-rows:minmax(0,1fr) auto}.auth-brand-panel{grid-row:span 2}.auth-footer{grid-column:2;justify-content:center;padding:0 56px 24px;display:flex}.legal-links ul{flex-wrap:wrap;justify-content:center;gap:4px 20px;margin:0;padding:0;list-style:none;display:flex}.legal-links a{color:var(--muted-foreground);font-size:var(--type-meta);text-decoration:underline;-webkit-text-decoration-color:var(--border-hover);text-decoration-color:var(--border-hover);text-underline-offset:3px;line-height:1.6}.legal-links a[aria-current=page]{color:var(--foreground);font-weight:600;text-decoration:none}@media (hover:hover) and (pointer:fine){.legal-links a:hover{color:var(--foreground);text-decoration-color:currentColor}}.legal-main{flex:1 0 auto;justify-content:center;padding:32px 40px 48px;display:flex}.legal-document{flex-direction:column;gap:20px;width:100%;max-width:68ch;display:flex}.legal-document h1{letter-spacing:-.01em;font-size:1.5rem;font-weight:600;line-height:1.25}.legal-markdown{color:var(--text-secondary);font-size:var(--type-body);flex-direction:column;gap:14px;line-height:1.7;display:flex}.legal-markdown>*{margin:0}.legal-markdown p{text-wrap:pretty;overflow-wrap:anywhere}.legal-markdown :is(h2,h3,h4){color:var(--foreground);margin-top:12px;font-weight:600;line-height:1.35}.legal-markdown h2{font-size:1.125rem}.legal-markdown :is(h3,h4){font-size:var(--type-body)}.legal-markdown strong{color:var(--foreground);font-weight:600}.legal-markdown :is(ul,ol){gap:6px;padding-left:1.4rem;list-style-position:outside;display:grid}.legal-markdown li::marker{color:var(--muted-foreground)}.legal-markdown a{color:var(--foreground);text-underline-offset:3px;overflow-wrap:anywhere;text-decoration:underline}.legal-footer{padding:0 40px 32px}@media (max-width:1100px){.auth-footer{padding-inline:32px}}@media (max-width:767px){.auth-footer,.legal-footer{padding:0 16px 24px}.legal-links a{align-items:center;min-height:44px;display:inline-flex}.legal-links ul{gap:0 20px}.legal-main{padding:24px 16px 32px}.legal-document h1{font-size:1.375rem}.legal-markdown{font-size:var(--type-body-mobile)}}
.auth-page-register .auth-main{padding-block:24px}.auth-page-register .auth-form{gap:14px}.auth-page-register .auth-brand-title{font-size:2.375rem}@media (max-width:1100px){.auth-brand-panel,.auth-main{padding:40px 32px}.auth-brand-title,.auth-page-register .auth-brand-title{font-size:2.25rem}}@media (min-width:768px) and (max-height:820px){.auth-header{min-height:56px;padding-block:8px}.auth-brand-panel{gap:24px;padding-block:32px}.auth-main{padding-block:24px}.auth-form{gap:14px}}@media (max-width:767px){.auth-header{gap:12px;min-height:60px;padding:10px 16px}.auth-brand strong{font-size:.875rem}.auth-brand .ezcurra-mark{width:26px}.auth-back span{display:none}.auth-back{justify-content:center;width:44px}.auth-grid{display:block}.auth-brand-panel{display:none}.auth-main,.auth-page-register .auth-main{align-items:flex-start;padding:24px 16px 40px}.auth-form-heading h1{font-size:1.375rem}.auth-field :is(input,select){height:48px;font-size:1rem}.auth-login-options :is(a,.auth-checkbox),.auth-switch a{align-items:center;min-height:44px;display:inline-flex}.auth-submit{min-height:48px}.auth-plan-core{padding:10px 8px}.preview-session-loading{grid-template-columns:minmax(0,1fr)}.preview-session-skeleton-sidebar{display:none}}@media (max-width:359px){.auth-name-grid{grid-template-columns:minmax(0,1fr)}.auth-plan-price b{font-size:1.125rem}.auth-plan-features{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){.auth-page *,.auth-page :before,.auth-page :after{transition:none!important}.preview-session-loading span:not(.sr-only){animation:none}}
