/* generated by scripts/build-startup-css.mjs; sources: features,answers,answer-inspector,agent-trace,artifact-cards,charts,history-rail,composer,catalog-browser,library,news,file-preview; source-sha256: 2e6017f56d354a6a4d4a61aade948287635c962cc9ac3a9e7d0767ca3c13d556 */
body { background: var(--surface-page); color: var(--ink); }
#chat-area { background: transparent; }
.left-rail { background: var(--surface-rail); border-right-color: var(--rail-border); box-shadow: none; }
.brand-title { color: var(--ink); }
.mode-btn { color: var(--ink); font-weight: 450; }
.mode-btn:hover { background: var(--rail-hover-bg); color: var(--ink); }
.mode-btn.active { background: var(--rail-active-bg); color: var(--ink); box-shadow: none; }
.mode-btn-icon { opacity: 1; }
@media (max-width: 1100px) {
:root { --rail-width: clamp(224px, 22vw, 248px); --main-pad: 20px; }
}
@media (max-width: 720px) {
:root { --rail-width: 260px; --main-pad: 18px; }
.mobile-rail-toggle { display: grid; }
.rail-backdrop { display: block; z-index: 61; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
body.rail-open .rail-backdrop { opacity: 1; pointer-events: auto; }
.left-rail { z-index: 62; transform: translateX(calc(-100% - 14px)); transition: transform 0.2s, box-shadow 0.2s; box-shadow: none; }
body.rail-open .left-rail { transform: translateX(0px); box-shadow: rgba(15, 23, 42, 0.14) 18px 0px 44px; }
body.rail-open .mobile-rail-toggle { visibility: hidden; pointer-events: none; }
#chat-area { padding-left: var(--main-pad); }
}
.loading, .empty-state { color: var(--muted) !important; }
.empty-state { background: transparent; border: 0px; box-shadow: none; }
.empty-state h2 { color: var(--ink); }
.empty-state p { color: var(--muted); }
body.chat-empty #input-area { background: transparent; }
@media (min-width: 721px) {
body.chat-empty #input-area { top: calc(-84px + 50vh); }
body.chat-empty .empty-state { transform: translateY(-84px); }
body:not(.chat-empty) #input-area { padding-bottom: 26px; }
body:not(.chat-empty) #chat-area { padding-bottom: 114px; }
}
@media (max-width: 720px) {
:root { --rail-toggle-slot: calc(60px + env(safe-area-inset-left, 0px)); }
.mobile-rail-toggle { top: auto; left: calc(12px + env(safe-area-inset-left, 0px)); right: auto; bottom: calc(21px + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
body[data-mode="library"] .mobile-rail-toggle { bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
body[data-mode="zpravy"] .mobile-rail-toggle { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
body[data-mode="datasources"] .mobile-rail-toggle { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
body.chat-empty #input-area { top: auto; bottom: 0px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column-reverse; align-items: stretch; }
body.chat-empty #input-area form { width: 100%; }
body.chat-empty #input-area .chat-suggestions { margin: 0px auto 22px; gap: 1px; }
body.chat-empty #input-area .empty-suggestion { padding: 11px 12px; }
body.chat-empty #chat-area { justify-content: flex-start; padding-top: 10vh; padding-bottom: 104px; }
body.chat-empty .empty-state { margin: 0px auto; transform: none; }
}
body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="chat"] #input-area, body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="chat"].chat-empty #input-area { bottom: var(--phone-keyboard-inset, 0px); padding-bottom: 4px; }
@media (max-width: 720px) {
body.phone-composer-layout.phone-keyboard-open .mobile-rail-toggle, body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="library"] .library-toolbar-shell, body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="zpravy"] .zpravy-toolbar, body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="datasources"] .datasources-sidebar-controls, body.phone-composer-layout.phone-keyboard-open[data-phone-keyboard-owner="datasources"] .ds-detail-tabs { transform: translateY(calc(-1 * var(--phone-keyboard-inset, 0px))); }
}
.shared-chat-badge { display: none; position: fixed; top: 14px; left: calc(var(--rail-width) + var(--main-pad)); z-index: 40; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border: 1px solid var(--green-border); border-radius: var(--r-pill); background: var(--green-soft); color: var(--green-deep); font-size: var(--text-sm); font-weight: 560; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 1px 2px rgba(var(--muted-rgb) / .08), 0 6px 16px rgba(var(--muted-rgb) / .10); pointer-events: none; }
.shared-chat-badge svg { width: 15px; height: 15px; fill: none; stroke: currentcolor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; opacity: 0.85; }
@media (max-width: 720px) {
.shared-chat-badge { left: auto; right: var(--main-pad); }
}
@keyframes voice-transcribing { 
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes voice-word-in { 
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}
body.answer-inspector-open #input-area { right: var(--answer-inspector-width); }
@media (max-width: 720px) {
body.answer-inspector-modal-open .rail-backdrop { z-index: 119; opacity: 1; pointer-events: auto; }
body.answer-inspector-modal-open .mobile-rail-toggle { visibility: hidden; pointer-events: none; }
body.answer-inspector-open #input-area { right: 0px; }
}
.chat-history-rail { margin-top: 10px; padding-top: 8px; border-top: 0px; display: flex; flex-direction: column; min-height: 0px; min-width: 0px; flex: 1 1 0%; overflow-y: auto; scrollbar-gutter: stable; }
.chat-history-rail.is-loading, .chat-history-rail.is-empty { display: none; }
.chat-history-title { display: block; font-size: var(--text-xs); font-weight: 600; text-transform: none; letter-spacing: 0px; padding: 8px 8px 6px; }
.chat-history-head { position: relative; }
.chat-history-list { display: flex; flex-direction: column; flex: 0 0 auto; gap: 0px; overflow-y: visible; padding: 0px 0px 6px; min-height: auto; }
.upload-modal.share-modal { width: 424px; }
.share-modal .upload-modal-header { padding: 20px 22px 2px; border-bottom: 0px; }
.share-modal .upload-modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.share-modal .upload-modal-body { padding: 8px 22px 0px; }
.share-modal .upload-modal-footer { padding: 16px 22px 20px; border-top: 0px; justify-content: flex-end; }
.upload-btn.share-modal-copy { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 13px; border-radius: var(--r-md); }
.share-modal-copy svg { width: 14px; height: 14px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-modal-intro { margin: 0px 0px 14px; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.share-modal-link { display: block; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: var(--surface-inset); color: var(--ink); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.4; overflow-x: auto; white-space: nowrap; user-select: all; }
.share-modal .upload-modal-close svg { width: 17px; height: 17px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; }
.chat-history-rail { border-top-color: transparent; }
.chat-history-title, .chat-history-empty, .chat-history-loading, .chat-history-error { color: var(--muted); }
.history-search-btn { flex: 0 0 auto; margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0px; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.history-search-btn svg { width: 17px; height: 17px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; }
.history-search-btn:hover, .history-search-btn:focus-visible { background: var(--hover-bg); color: var(--ink); }
.history-search-overlay { position: fixed; inset: 0px; z-index: 1200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; background: rgb(var(--muted-rgb) / .22); }
.history-search-overlay[hidden] { display: none; }
.history-search-panel { width: min(620px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-pop); }
.history-search-field { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--border-soft); }
.history-search-icon { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: var(--faint); stroke-width: 1.7; stroke-linecap: round; }
#history-search-input { flex: 1 1 auto; min-width: 0px; border: 0px; outline: none; background: transparent; color: var(--ink); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-base); }
#history-search-input::placeholder { color: var(--faint); }
.history-search-close { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border: 0px; border-radius: var(--r-sm); background: transparent; color: var(--faint); cursor: pointer; }
.history-search-close svg { width: 15px; height: 15px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; }
.history-search-close:hover { background: var(--hover-bg); color: var(--ink); }
.history-search-results { flex: 1 1 auto; min-height: 0px; overflow-y: auto; padding: 6px; }
@media (max-width: 560px) {
.history-search-overlay { padding: 8vh 12px 12px; }
.history-search-panel { max-height: 80vh; }
}
#input-area { position: fixed; left: var(--rail-width); right: 14px; bottom: 0px; z-index: 55; padding: 14px var(--main-pad) 16px; pointer-events: none; transition: right 180ms; }
#input-area form { max-width: var(--content-width); margin: 0px auto; display: flex; position: relative; gap: 0px; border-top-width: medium; border-top-style: none; border-top-color: currentcolor; padding-top: 0px; pointer-events: auto; }
.question-input { width: 100%; display: block; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: var(--r-2xl); padding: 13px 50px; font-size: var(--text-base); font-weight: 450; outline: none; min-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow: hidden; line-height: 22px; box-sizing: border-box; }
.question-input:focus { outline: none; }
.question-input::selection, .question-input ::selection { background: rgba(15, 23, 42, 0.14); color: inherit; }
.question-input:empty::before { content: attr(data-placeholder); pointer-events: none; }
#send-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: var(--r-pill); padding: 0px; font-size: 17px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none; transition: background 0.16s, transform 0.16s, opacity 0.16s; }
#send-btn:hover { transform: translateY(-1px); }
#send-btn svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#send-btn .send-icon { width: 19px; height: 19px; fill: currentcolor; stroke: none; }
#send-btn.is-voice-entry svg { stroke-width: 2.2; }
#send-btn.is-voice-loading svg { display: none; }
#send-btn.is-voice-loading::before { content: ""; width: 13px; height: 13px; box-sizing: border-box; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-bottom-width: ; border-left-color: ; border-left-style: ; border-left-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-top-color: var(--on-accent); border-radius: 50%; animation: 0.72s linear 0s infinite normal none running voice-input-spin; }
@media (prefers-reduced-motion: reduce) {
#send-btn.is-voice-loading::before { animation: auto ease 0s 1 normal none running none; }
}
#send-btn:disabled { opacity: 0.45; cursor: wait; transform: none; }
#send-btn.is-stop::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--surface); display: block; }
#send-btn.is-uploading, #send-btn.is-uploading:hover { background: var(--muted); color: var(--surface); cursor: default; opacity: 1; transform: none; }
#send-btn.is-uploading::before { content: ""; width: 13px; height: 13px; box-sizing: border-box; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-bottom-width: ; border-left-color: ; border-left-style: ; border-left-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-top-color: var(--surface); border-radius: 50%; animation: 0.72s linear 0s infinite normal none running voice-input-spin; }
@media (prefers-reduced-motion: reduce) {
#send-btn.is-uploading::before { animation: auto ease 0s 1 normal none running none; }
}
.input-wrap { flex: 1 1 0%; position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-2xl); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, border-radius 0.18s; min-height: 52px; }
.input-wrap.composer-resizing { overflow: hidden; }
.composer-text-pane { flex: 0 0 auto; min-height: 50px; max-height: 50px; overflow: hidden; scrollbar-gutter: stable; }
.composer-text-pane.is-scrolled { mask-image: linear-gradient(transparent 0px, transparent 4px, rgb(0, 0, 0) 16px, rgb(0, 0, 0) 100%); }
.composer-footer { position: absolute; inset: 50% 8px auto; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; z-index: 2; padding: 0px; pointer-events: none; }
.composer-footer::before { content: none; }
.composer-footer > * { pointer-events: auto; position: relative; z-index: 1; }
.composer-footer-spacer { display: block; flex: 1 1 0%; min-width: 12px; pointer-events: none; }
.voice-input-status { overflow: hidden; color: var(--muted); font-size: var(--text-xs); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.input-wrap:has(.voice-input-status:not([hidden]):not(.is-listening)) .question-input:empty::before { visibility: hidden; }
body.voice-mode-active #chat-suggestions, body.voice-mode-active .empty-state { display: none; }
body.voice-mode-active.chat-empty #input-area { top: auto; bottom: 0px; padding-top: 14px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.input-wrap.multiline { min-height: 82px; border-radius: var(--r-2xl); }
.input-wrap.multiline .composer-text-pane { flex: 0 0 auto; min-height: 0px; max-height: min(42vh, 320px); overflow-y: auto; }
.input-wrap.multiline .question-input { padding: 10px 18px; }
.input-wrap.multiline .composer-footer { position: relative; inset: auto; transform: none; flex: 0 0 44px; width: 100%; height: 44px; padding: 0px 8px 8px; }
.input-wrap.multiline .composer-footer::before { content: none; }
.source-picker-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0px; border-radius: var(--r-pill); cursor: pointer; transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur) ease; padding: 0px; line-height: 1; }
.source-picker-btn svg { width: 24px; height: 24px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; }
.source-picker-btn:hover { transform: translateY(-1px); }
.source-picker-popup { display: none; position: absolute; left: 0px; right: 0px; bottom: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); z-index: 70; overflow: hidden; box-shadow: var(--shadow-pop); }
.source-picker-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.source-picker-filter { width: auto; flex: 1 1 auto; min-width: 0px; min-height: 38px; background-color: var(--surface); background-image: var(--search-icon); background-repeat: no-repeat; background-position: 12px center; background-size: 15px 15px; border: 1px solid var(--border-input); border-radius: var(--r-md); color: var(--ink); padding: 8px 12px 8px 34px; font-size: var(--text-sm); outline: none; transition: border-color var(--dur); }
.source-picker-filter::placeholder { color: var(--faint); }
.source-picker-filter:focus { border-color: var(--border-focus); box-shadow: none; }
.source-picker-filter::selection { background: rgba(15, 23, 42, 0.14); color: inherit; }
.source-picker-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.source-picker-action { flex: 0 0 auto; min-width: 0px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0px 10px; border: 0px; border-radius: var(--r-sm); background: transparent; color: var(--text); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.source-picker-action:hover { background: var(--hover-bg); color: var(--ink); }
.source-picker-action svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
.source-picker-action { padding: 0px 9px; }
.source-picker-action span { display: none; }
}
.source-picker-list { flex: 1 1 auto; min-height: 0px; max-height: 340px; overflow-y: auto; padding: 6px; }
.model-mode-sprite { position: absolute; width: 0px; height: 0px; overflow: hidden; }
.model-mode-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0px 8px 0px 12px; border: 0px; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.model-mode-btn:hover, .model-mode-btn.is-open { background: var(--hover-bg); color: var(--ink); }
.model-mode-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.model-mode-btn svg { fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; }
.model-mode-chevron { width: 14px; height: 14px; stroke-width: 2; transition: transform var(--dur) var(--ease-out); }
.input-wrap:not(.multiline) .question-input { padding-right: 144px; }
.model-mode-popup { position: absolute; right: 0px; bottom: calc(100% + 8px); z-index: 70; width: 300px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); }
.model-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--hover-bg); }
.model-mode-option { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 8px 10px; border: 0px; border-radius: var(--r-md); background: transparent; color: var(--muted); font: inherit; text-align: center; cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.model-mode-option:hover { color: var(--ink); }
.model-mode-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.model-mode-option svg { width: 19px; height: 19px; margin-bottom: 2px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-mode-option-name { font-size: var(--text-sm); font-weight: 600; }
.model-mode-option-desc { color: var(--muted); font-size: var(--text-2xs); line-height: 1.35; }
@media (prefers-reduced-motion: reduce) {
.model-mode-option, .model-mode-chevron { transition: none; }
}
.input-wrap, .question-input { background-color: var(--surface); border-color: var(--border-input); color: var(--ink); }
#input-area form { border-top-color: transparent; }
.question-input:empty::before { color: var(--faint); }
.input-wrap, .question-input { background: var(--surface); }
.input-wrap .question-input { background: transparent; }
.input-wrap { border-color: var(--border); box-shadow: rgba(15, 23, 42, 0.08) 0px 18px 42px; }
.input-wrap:focus-within { border-color: var(--border-input); box-shadow: rgba(15, 23, 42, 0.11) 0px 20px 46px; }
.input-wrap.multiline .composer-footer::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface) 84%); }
@media (max-width: 720px) {
#input-area { left: 0px; right: 0px; padding-inline: 10px; }
}
.source-picker-btn { background: var(--surface); border-color: var(--border-input); color: var(--text); }
.composer-footer .source-picker-btn { background: transparent; border-color: transparent; color: var(--ink-strong); box-shadow: none; }
.source-picker-btn:hover { background: var(--card-hover-bg); border-color: var(--green); color: var(--ink); }
.composer-footer .source-picker-btn:hover { background: var(--hover-bg); border-color: transparent; color: var(--accent-hover); }
#send-btn { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.composer-footer #send-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); border-radius: var(--r-pill); box-shadow: none; }
#send-btn:hover { background: var(--green-hover); border-color: var(--green-hover); }
.composer-footer #send-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#send-btn:disabled { background: var(--border-soft); color: var(--faint); }
.composer-footer #send-btn.is-uploading, .composer-footer #send-btn.is-uploading:hover { background: var(--muted); border-color: var(--muted); color: var(--surface); opacity: 1; }
.source-picker-header, .source-picker-item { border-color: var(--border); }
#send-btn.is-stop { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#send-btn.is-stop:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#input-area { background: linear-gradient(
    to top,
    var(--surface-page) 0%,
    rgb(var(--surface-page-rgb) / .96) 74%,
    rgb(var(--surface-page-rgb) / 0) 100%
  ); }
.chat-attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px 10px 0px; }
.chat-attachments[hidden] { display: none; }
.input-wrap.has-attachments:not(.multiline) { min-height: 110px; border-radius: var(--r-2xl); }
.input-wrap.has-attachments:not(.multiline) .composer-text-pane { min-height: 50px; max-height: 50px; margin-top: auto; }
.input-wrap.has-attachments:not(.multiline) .composer-footer { top: auto; bottom: 9px; transform: none; }
.chat-drop-overlay { position: fixed; inset: 0px; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(247, 246, 240, 0.78); backdrop-filter: blur(4px); pointer-events: none; }
.chat-drop-overlay[hidden] { display: none; }
.chat-drop-overlay-card { min-width: min(360px, -48px + 100vw); padding: 30px 42px; border: 1px dashed var(--border-focus); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow-pop); text-align: center; color: var(--ink); }
.chat-drop-overlay-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0px auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--green); }
.chat-drop-overlay-icon svg { width: 20px; height: 20px; fill: none; stroke: currentcolor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.chat-drop-overlay-title { margin-top: 12px; font-size: var(--text-base); font-weight: 600; }
#ask-form { flex-direction: column; }
.graph-command-palette, .command-palette { position: absolute; left: 0px; right: 0px; bottom: calc(100% + 10px); z-index: 120; padding: 8px; border: 1px solid var(--border-input); border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.98); box-shadow: rgba(15, 23, 42, 0.14) 0px 18px 48px; backdrop-filter: blur(14px); }
.graph-command-palette[hidden], .command-palette[hidden] { display: none; }
.graph-command-options, .command-palette-options { display: grid; grid-template-columns: repeat(5, minmax(0px, 1fr)); gap: 8px; }
.command-palette-options.is-templates { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
.command-palette-option .template-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-xs); border: 1px solid var(--border-soft); overflow: hidden; background: var(--surface); box-shadow: rgba(15, 23, 42, 0.06) 0px 1px 2px; }
.command-palette-option .template-preview svg { display: block; width: 100%; height: 100%; }
.tpl-ground { fill: var(--surface-rail); }
.tpl-custom { fill: rgb(255, 255, 255); }
.tpl-light { fill: rgb(247, 246, 240); }
.tpl-kicker { font-family: var(--font-sans); font-size: 5px; font-weight: 700; letter-spacing: 0.7px; }
.tpl-heading { font-family: var(--font-display); font-size: 8px; font-weight: 650; }
.tpl-stat { font-family: var(--font-sans); font-size: var(--text-2xs); font-weight: 700; }
.tpl-source { font-family: var(--font-sans); font-size: 4px; }
.tpl-grid, .tpl-chart { fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.tpl-chart { stroke-width: 2; }
.tpl-neutral { fill: rgb(105, 112, 106); }
.tpl-neutral-strong { fill: rgb(36, 40, 36); }
.tpl-neutral-grid { stroke: rgb(228, 231, 228); }
.tpl-neutral-chart { stroke: rgb(105, 112, 106); }
.tpl-neutral-dot { fill: rgb(105, 112, 106); }
.tpl-green { fill: rgb(65, 112, 46); }
.tpl-ink { fill: rgb(27, 30, 22); }
.tpl-ink-soft-fill { fill: rgb(104, 107, 95); }
.tpl-light-grid { stroke: rgb(221, 222, 213); }
.tpl-green-chart { stroke: rgb(65, 112, 46); }
.tpl-mark { fill: rgb(62, 158, 54); }
.template-option-copy { display: block; min-width: 0px; text-align: left; }
.template-option-copy strong { font-size: var(--text-xs); font-weight: 650; color: var(--text); }
.graph-command-option, .command-palette-option { min-width: 0px; height: 96px; display: grid; grid-template-rows: minmax(0px, 1fr) auto; gap: 5px; padding: 9px 9px 8px; border: 1px solid transparent; border-radius: var(--r-md); background: var(--card-hover-bg); color: var(--text); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; cursor: pointer; transition: background 140ms, border-color 140ms, transform 140ms; }
.command-palette-options.is-templates .command-palette-option { height: auto; min-height: 150px; grid-template-rows: auto auto; align-content: start; gap: 7px; }
.graph-command-option:hover, .graph-command-option:focus-visible, .graph-command-option.is-active, .command-palette-option:hover, .command-palette-option:focus-visible, .command-palette-option.is-active { border-color: var(--border-card-hover); background: var(--active-bg); outline: none; }
.graph-command-option:hover, .command-palette-option:hover { transform: translateY(-1px); }
.graph-command-option svg, .command-palette-option svg { width: 100%; height: 54px; overflow: visible; }
.gp-grid { fill: none; stroke: rgb(230, 227, 214); stroke-width: 1; }
.gp-axis { fill: none; stroke: rgb(216, 212, 195); stroke-linecap: round; stroke-width: 1.2; }
.gp-line { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.gp-bar, .gp-dot { fill: var(--accent); }
.gp-slice-0, .gp-slice-1, .gp-slice-2, .gp-slice-3 { stroke: var(--surface); stroke-width: 1.6; }
.gp-slice-0 { fill: var(--accent); }
.gp-slice-1 { fill: var(--blue); }
.gp-slice-2 { fill: var(--gold); }
.gp-slice-3 { fill: rgb(128, 67, 166); }
.graph-command-option [class^="gp-map-"] { stroke: var(--surface); stroke-width: 0.5; stroke-linejoin: round; }
.gp-map-0 { fill: rgb(222, 235, 247); }
.gp-map-1 { fill: rgb(198, 219, 239); }
.gp-map-2 { fill: rgb(158, 202, 225); }
.gp-map-3 { fill: rgb(107, 174, 214); }
.gp-map-4 { fill: rgb(66, 146, 198); }
.gp-map-5 { fill: rgb(33, 113, 181); }
@media (max-width: 680px) {
.graph-command-palette, .command-palette { left: 8px; right: 8px; }
.graph-command-options, .command-palette-options { grid-auto-flow: column; grid-auto-columns: 126px; grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline; }
.graph-command-option { scroll-snap-align: start; }
.command-palette-options.is-templates { grid-template-columns: none; grid-auto-columns: 210px; }
.command-palette-options.is-templates .command-palette-option { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
.graph-command-option { transition: none; }
}
@media (max-width: 720px) {
body[data-mode="chat"] #input-area { padding-left: var(--rail-toggle-slot); }
}
.datasources-area { flex: 1 1 0%; overflow: hidden; display: none; }
.datasources-wrap { width: 100%; max-width: none; margin: 0px; }
.datasources-wrap { min-height: 0px; display: flex; flex-direction: column; }
.ds-filter { width: 100%; min-width: 0px; outline: none; box-sizing: border-box; }
.ds-filter:focus { box-shadow: none; }
.ds-filter::selection { background: rgba(15, 23, 42, 0.14); color: inherit; }
.datasources-sidebar { min-height: 0px; display: flex; flex-direction: column; gap: 0px; overflow: hidden; }
.datasources-sidebar-controls { display: flex; flex-direction: column; border-radius: 0px; }
.ds-type-dd-chev { width: 11px; height: 11px; stroke: currentcolor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ds-type-menu { position: fixed; z-index: 60; display: none; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; min-width: 172px; }
.datasources-body { flex: 1 1 0%; min-height: 0px; display: grid; }
.ds-list { display: flex; flex-direction: column; height: 100%; overflow-y: auto; min-width: 0px; }
.eurostat-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid; border-radius: 5px; color: currentcolor; font-family: var(--font-sans); font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.ds-type-seg-btn .eurostat-mark { width: 16px; height: 16px; border-radius: 4.5px; font-size: 7px; }
.ds-detail { display: flex; flex-direction: column; padding: 0px; min-height: 0px; height: 100%; min-width: 0px; overflow: visible; }
.ds-detail-empty { text-align: center; padding: 60px 20px; font-size: var(--text-md); }
.ds-detail > .ds-detail-empty { margin: auto; padding: 0px 20px; }
.datasources-sidebar { border-color: var(--border); box-shadow: rgba(15, 23, 42, 0.05) 0px 14px 34px; }
.datasources-sidebar-controls { border-color: var(--border); }
@media (max-width: 1100px) {
.datasources-area { padding: var(--main-pad) var(--main-pad) var(--main-pad) calc(var(--rail-width) + var(--main-pad)); }
.datasources-wrap { height: auto; }
.datasources-body { grid-template-columns: 1fr; }
.ds-list { max-height: 260px; height: auto; }
.ds-detail { height: auto; min-height: 320px; }
}
.ds-type-menu { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-float); }
.ds-filter, .ds-detail-desc { background-color: var(--surface); border-color: var(--border-input); color: var(--ink); }
.ds-item, .ds-detail, .ds-sheet { background: var(--surface); border-color: var(--border); color: var(--ink); box-shadow: rgba(15, 23, 42, 0.04) 0px 1px 2px; }
@media (max-width: 720px) {
.datasources-area { padding-left: var(--main-pad); }
}
.ds-detail:has(> .ds-detail-empty) { background: var(--surface); border-color: var(--border); box-shadow: none; }
.ds-detail-empty { color: var(--muted) !important; }
.datasources-area { padding: 0 0 0 var(--rail-width); background: var(--surface-page); }
.datasources-wrap { height: 100%; padding: 18px 20px 20px; box-sizing: border-box; }
.datasources-body { height: 100%; grid-template-columns: clamp(15.5rem, 18vw, 19rem) minmax(0px, 1fr); gap: 0px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-card); }
.datasources-sidebar { border: 0px; border-radius: var(--r-xl) 0 0 var(--r-xl); background: var(--surface-inset); }
.datasources-sidebar-controls { gap: 8px; box-sizing: border-box; padding: 1.05rem 0.95rem 0.9rem; border-top: 0px; border-right: 0px; border-left: 0px; border-image: none; border-bottom: 1px solid var(--border-soft); background: var(--surface-inset); }
.ds-search-row { display: flex; align-items: center; gap: 6px; }
.ds-search-row .ds-filter { flex: 1 1 auto; }
.ds-type-seg { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-md); background: var(--active-bg); }
.ds-type-seg-btn { flex: 1 1 0px; display: grid; place-items: center; height: 28px; min-width: 0px; padding: 0px; border: 0px; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.ds-type-seg-btn svg { width: 16px; height: 16px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ds-type-seg-btn:hover { color: var(--ink); }
.ds-type-seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.ds-filter { min-height: 38px; padding: 8px 12px 8px 34px; border: 1px solid var(--border-input); border-radius: var(--r-md); background-color: rgba(254, 253, 251, 0.82); background-image: var(--search-icon); background-repeat: no-repeat; background-position: 12px center; background-size: 15px 15px; color: var(--ink); font-size: var(--text-sm); }
.ds-filter:focus { border-color: var(--border-focus); }
.ds-list { gap: 2px; padding: 7px 10px 16px; scrollbar-gutter: stable; }
.ds-detail { border-top: 0px; border-right: 0px; border-bottom: 0px; border-image: none; border-left: 1px solid var(--border-soft); border-radius: 0px; background: var(--surface); box-shadow: none; }
@media (max-width: 760px) {
.datasources-body { grid-template-columns: minmax(0px, 1fr); }
.datasources-sidebar { max-height: 17rem; border-bottom: 1px solid var(--border); }
.ds-list { height: auto; }
.ds-detail { min-height: 26rem; border-top: 0px; border-left: 0px; }
}
@media (max-width: 720px) {
.datasources-area { padding: 0px; }
.datasources-wrap { padding: 0px; }
.datasources-body { border: 0px; border-radius: 0px; box-shadow: none; }
.datasources-sidebar { border-radius: 0px; }
}
@media (max-width: 1100px) {
.datasources-body { display: block; position: relative; height: auto; max-height: none; overflow: visible; }
.datasources-sidebar, .ds-detail { width: 100%; max-width: none; border: 0px; }
.ds-list { max-height: none; height: auto; overflow-y: visible; }
.datasources-wrap, .datasources-sidebar { height: auto; max-height: none; overflow: visible; }
.datasources-area { overflow-y: auto; }
body:not(.ds-detail-open) .ds-detail, body:not(.ds-detail-open) .ds-detail-back { display: none; }
.ds-detail-back { display: none; align-items: center; gap: 6px; margin: 0px 0px 4px; padding: 8px 12px 8px 4px; border: 0px; background: transparent; color: var(--accent); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-md); font-weight: 550; cursor: pointer; }
.ds-detail-back svg { width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
.ds-detail-back { display: none; }
@media (max-width: 720px) {
body[data-mode="datasources"] .datasources-sidebar-controls { padding-left: var(--rail-toggle-slot); }
.datasources-area, .datasources-wrap, .datasources-body { height: 100%; min-height: 0px; }
.datasources-area { overflow: hidden; }
.datasources-body { --ds-mobile-control-height: calc(59px + env(safe-area-inset-bottom, 0px)); --ds-mobile-detail-controls-height: 50px; display: grid; grid-template-columns: minmax(0px, 1fr); grid-template-rows: minmax(0px, 1fr) auto; position: relative; overflow: hidden; }
.datasources-sidebar, body.ds-detail-open .datasources-sidebar { display: contents; }
.ds-detail, body:not(.ds-detail-open) .ds-detail { display: grid; grid-template-columns: minmax(0px, 1fr) auto; grid-template-rows: auto minmax(0px, 1fr) auto; grid-area: 1 / 1; width: 100%; height: auto; min-height: 0px; overflow: hidden; }
.ds-detail-back, body.ds-detail-open .ds-detail-back { display: none; }
.datasources-sidebar-controls { position: static; grid-area: 2 / 1; flex: 0 0 auto; z-index: 50; flex-direction: column; align-items: stretch; gap: 8px; min-height: 0px; padding: 10px var(--main-pad) calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-soft); border-bottom: 0px; background: rgb(var(--surface-page-rgb) / .96); backdrop-filter: blur(10px); }
.datasources-sidebar-controls .ds-search-row { width: 100%; flex: 1 1 auto; max-width: none; min-width: 0px; margin-left: auto; }
.ds-list, body:not(.ds-detail-open) .ds-list { position: absolute; z-index: 55; left: var(--main-pad); right: var(--main-pad); bottom: calc(var(--ds-mobile-control-height) + var(--ds-mobile-detail-controls-height) + 6px); display: none; max-height: min(52vh, 420px); height: auto; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop); }
.ds-type-seg { display: none; order: -1; margin-left: calc(12px + env(safe-area-inset-left, 0px) - var(--rail-toggle-slot)); }
.ds-detail-back { margin-left: 0px; }
}
.ds-export-create:hover:not(:disabled) { background: var(--accent-hover); }
.library-area { flex: 1 1 0%; overflow: hidden auto; padding: 0 var(--library-gutter) var(--main-pad) calc(var(--rail-width) + var(--library-gutter)); display: none; }
.library-wrap { width: 100%; margin: 0px auto; }
.library-toolbar-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0px 0px 22px; padding: 32px 0px 18px; background: transparent; border-bottom: 1px solid var(--border-soft); }
.library-toolbar { display: flex; align-items: center; gap: 18px; flex: 0 1 18rem; min-width: 12rem; margin-left: auto; }
.library-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 auto; min-width: 0px; }
.library-upload-btn { width: 36px; height: 36px; min-height: 36px; padding: 0px; border-radius: var(--r-md); font-size: 0px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.library-upload-btn:hover { border-color: rgba(34, 197, 94, 0.58); transform: translateY(-1px); }
.library-upload-btn svg { width: 18px; height: 18px; stroke: currentcolor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.library-filter { width: min(20rem, 100%); flex: 0 1 20rem; max-width: 20rem; padding: 9px 12px 9px 34px; border-radius: var(--r-md); border: 1px solid var(--border-input); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-sm); outline: none; background-image: var(--search-icon); background-repeat: no-repeat; background-position: 12px center; background-size: 15px 15px; }
.library-filter::placeholder { color: var(--faint); }
.library-list { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; align-items: stretch; padding-top: 0px; }
.upload-btn { border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: var(--r-sm); padding: 9px 18px; font-size: var(--text-sm); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.upload-btn:disabled { cursor: not-allowed; }
.upload-modal-overlay { display: none; position: fixed; inset: 0px; z-index: 100; align-items: center; justify-content: center; }
.upload-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); width: 560px; max-width: 90vw; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.upload-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.upload-modal-title { font-size: var(--text-lg); font-weight: 650; }
.upload-modal-close { background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); transition: background var(--dur), color var(--dur); }
.upload-modal-close:hover { background: var(--hover-bg); color: var(--ink); }
.upload-modal-body { padding: 20px; overflow-y: auto; flex: 1 1 0%; }
.upload-modal-wide { width: 640px; }
.upload-modal-dropzone { border: 1px dashed var(--border-card-hover); border-radius: var(--r-lg); text-align: center; cursor: pointer; transition: border-color var(--dur), background var(--dur); }
.upload-modal-dropzone-icon { margin-bottom: 8px; }
.upload-modal-filelist { flex-direction: column; gap: 8px; }
.upload-modal-footer { padding: 12px 20px 16px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.library-filter:focus { border-color: var(--border-input); box-shadow: none; }
.library-filter::selection { background: rgba(15, 23, 42, 0.14); color: inherit; }
.upload-modal-title { color: var(--ink); }
.library-filter { background-color: var(--surface); border-color: var(--border-input); color: var(--ink); }
.library-toolbar-shell::before { display: none; }
.library-area { background: transparent; }
.library-upload-btn { border: 0px; background: transparent; color: var(--muted); box-shadow: none; }
.library-upload-btn[hidden] { display: none !important; }
.library-upload-btn:hover { background: var(--hover-bg); color: var(--ink); }
.library-cats { order: -1; display: flex; align-items: center; gap: 6px; flex: 1 1 0px; min-width: 0px; }
.library-cat-chips { display: flex; gap: 6px; min-width: 0px; flex-wrap: nowrap; }
.library-cat-chip { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; height: 30px; padding: 0px 13px; border: 1px solid var(--border-input); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: var(--text-sm); font-weight: 450; white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.library-cat-chip:hover { border-color: var(--border-focus); color: var(--ink); }
.library-cat-more[hidden] { display: none; }
.library-cat-chip .ds-type-dd-chev { width: 14px; height: 14px; margin-right: -3px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }
@media (prefers-reduced-motion: reduce) {
.library-cat-chip, .library-cat-chip .ds-type-dd-chev { transition: none; }
}
.library-list { display: block; }
@media (max-width: 1100px) {
.library-wrap { max-width: 100%; }
.library-list { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (max-width: 720px) {
.library-area { padding-left: var(--main-pad); }
.library-area { padding: 18px; }
.library-toolbar-shell { margin-bottom: 20px; }
.library-toolbar { flex-flow: column wrap; align-items: stretch; gap: 10px; }
.library-toolbar-actions { width: 100%; flex-basis: 100%; flex-wrap: wrap; }
.library-filter { width: 100%; flex: 1 1 100%; }
.library-upload-btn { width: 40px; }
.library-list { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (max-width: 520px) {
.library-list { grid-template-columns: 1fr; }
}
.upload-modal-dropzone-text, .upload-modal-dropzone-hint, .upload-modal-file-name { color: var(--muted) !important; }
.upload-btn { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.upload-btn:hover { background: var(--green-hover); border-color: var(--green-hover); }
.upload-btn:disabled { background: var(--border-soft); color: var(--faint); }
.upload-modal-dropzone { background: var(--surface-inset); border-color: var(--border-card-hover); color: var(--muted); }
.upload-modal-dropzone:hover, .upload-modal-dropzone.drag-over { background: var(--green-soft); border-color: var(--green); }
.upload-modal-overlay { background: rgba(15, 23, 42, 0.36); }
.upload-modal-header, .upload-modal-footer, .upload-modal-file-item { border-color: var(--border); }
#upload-modal-overlay .upload-modal { width: min(540px, -32px + 100vw); font-family: var(--font-sans); color: var(--text); }
#upload-modal-overlay .upload-modal-header { padding: 18px 20px 14px; border-bottom: 0px; }
#upload-modal-overlay .upload-modal-title { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; }
#upload-modal-overlay .upload-modal-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0px; border-radius: var(--r-md); }
#upload-modal-overlay .upload-modal-close svg { width: 17px; height: 17px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; }
#upload-modal-overlay .upload-modal-body { padding: 4px 20px 8px; }
.upload-modal-dropzone { padding: 26px 20px; margin-bottom: 14px; }
.upload-modal-dropzone-icon { width: 34px; height: 34px; display: grid; place-items: center; margin: 0px auto 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 0px; }
.upload-modal-dropzone-icon svg { width: 19px; height: 19px; fill: none; stroke: currentcolor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.upload-modal-dropzone-text { font-size: var(--text-sm); font-weight: 500; color: var(--ink) !important; }
.upload-modal-dropzone-hint { margin-top: 3px; font-size: var(--text-xs); }
.upload-modal-filelist { display: block; }
#upload-modal-overlay .upload-modal-footer { justify-content: flex-end; padding: 12px 20px 18px; border-top: 0px; }
@media (max-width: 720px) {
body[data-mode="library"] .library-toolbar-shell { padding-left: var(--rail-toggle-slot); }
.library-area { padding-top: 0px; padding-bottom: 0px; overflow: hidden; }
.library-wrap { height: 100%; min-height: 0px; display: flex; flex-direction: column; }
.library-toolbar-shell { position: static; order: 2; flex: 0 0 auto; margin: 0 calc(var(--main-pad) * -1); padding: 10px var(--main-pad) calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-soft); border-bottom: 0px; background: rgb(var(--surface-page-rgb) / .96); backdrop-filter: blur(10px); flex-flow: column; align-items: stretch; gap: 10px; }
.library-cats { flex: 0 0 auto; margin: 0 0 0 calc(12px + env(safe-area-inset-left, 0px) - var(--rail-toggle-slot)); }
.library-list { order: 1; flex: 1 1 auto; min-height: 0px; overflow-y: auto; align-content: start; margin-inline: calc(var(--main-pad) * -1); padding-inline: var(--main-pad); padding-top: 12px; padding-bottom: 18px; }
.library-toolbar { flex-flow: row; align-items: center; gap: 10px; flex: 0 0 auto; max-width: none; margin-left: 0px; padding: 0px; }
.library-toolbar-actions { width: auto; max-width: none; min-width: 0px; flex: 1 1 auto; margin-left: 0px; display: flex; flex-flow: row; align-items: center; gap: 8px; }
.library-toolbar-actions .library-filter { width: auto; flex: 1 1 auto; max-width: none; min-width: 0px; }
.library-toolbar-actions .library-upload-btn { flex: 0 0 auto; order: 1; }
}
#library-cat-dd { position: relative; }
#library-cat-menu { min-width: 240px; }
@media (max-width: 720px) {
#library-cat-menu { min-width: 0px; max-width: calc(-20px + 100vw); }
}
.zpravy-area { flex: 1 1 0%; overflow: hidden; padding: var(--main-pad) 0 0 calc(var(--rail-width) + var(--main-pad)); display: none; }
.zpravy-wrap { width: 100%; }
.zpravy-main { display: flex; flex-direction: column; }
.zpravy-side { top: 0px; display: flex; flex-direction: column; }
.zpravy-upload-btn { border-radius: var(--r-sm); border: 1px solid rgba(34, 197, 94, 0.42); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.zpravy-title { color: var(--ink); }
.zpravy-area { background: transparent; }
.zpravy-side-controls { border-color: var(--border-input); }
@media (max-width: 1100px) {
.zpravy-area { padding: var(--main-pad) var(--main-pad) var(--main-pad) calc(var(--rail-width) + var(--main-pad)); }
.zpravy-layout { grid-template-columns: 1fr; }
.zpravy-side { position: static; max-height: none; }
}
@media (max-width: 720px) {
.zpravy-area { padding-left: var(--main-pad); }
}
.zpravy-wrap { max-width: none; }
.zpravy-layout { --zpravy-measure: var(--section-measure); grid-template-rows: auto minmax(0px, 1fr); gap: 0px; }
.zpravy-area { overflow-y: auto; padding-top: 0px; scrollbar-gutter: stable; }
.zpravy-wrap, .zpravy-layout { height: auto; min-height: 0px; }
.news-brief-scroll { flex: 0 0 auto; min-height: 0px; max-height: none; overflow: visible; padding-right: 0px; }
.zpravy-main, .zpravy-side { height: auto; }
.zpravy-main, .zpravy-side { width: 100%; margin: 0px; }
#news-brief-content, #zpravy-feed { width: 100%; max-width: var(--zpravy-measure); margin: 0px auto; }
.zpravy-layout { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0px, 1.2fr); align-items: start; gap: 28px; }
.zpravy-toolbar { flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; margin: 0px; padding: 10px 16px 10px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.zpravy-wrap { padding-top: 28px; }
.news-brief-nav { margin: 0px 0px 0px -10px; padding-top: 0px; border-top: 0px; width: auto; flex-wrap: nowrap; justify-content: flex-start; }
.news-brief-nav-btn { flex: 0 0 auto; }
.news-brief-nav { grid-area: auto; margin-left: auto; }
@media (min-width: 721px) {
.news-brief-nav { margin-left: 0px; }
.zpravy-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0px; border: 0px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.zpravy-title { display: flex; align-items: baseline; gap: 10px; grid-area: auto; flex: 0 0 auto; margin: 0px; font-family: var(--font-display); font-size: 27px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; white-space: nowrap; }
.zpravy-side-controls { flex-direction: row; }
.zpravy-main, .zpravy-side { min-width: 0px; min-height: 0px; }
.zpravy-main { padding: 0px; }
.zpravy-side { position: static; max-height: none; gap: 0px; padding: 0px; border-right: 0px; }
.zpravy-side-controls { grid-area: auto; width: 100%; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0px; padding: 0px; border: 0px; border-radius: 0px; background: transparent; box-shadow: none; }
.zpravy-upload-btn { display: none; min-height: 38px; padding: 8px 13px; border-color: var(--border-input); background: var(--surface); color: var(--text); white-space: nowrap; }
.zpravy-upload-btn:hover { border-color: var(--border-focus); background: var(--surface-page); color: var(--ink); }
.zpravy-upload-btn .btn-loading-ring { display: none; flex: 0 0 auto; border-color: rgb(39, 50, 68) rgba(39, 50, 68, 0.22) rgba(39, 50, 68, 0.22); }
.news-brief-nav { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0px; }
.news-brief-nav-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0px; border: 0px; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.news-brief-nav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-brief-nav-btn:hover:not(:disabled) { background: var(--hover-bg); color: var(--ink); }
.news-brief-nav-btn:disabled { color: var(--faint); cursor: default; }
.news-brief-scroll { flex: 0 0 auto; min-height: 0px; overflow: visible; overscroll-behavior: auto; }
.news-brief-content { width: 100%; min-height: 100%; padding: 18px 42px 56px 18px; }
@media (max-width: 1119px) {
.zpravy-area { overflow: hidden; padding-right: var(--main-pad); padding-bottom: 0px; }
.zpravy-wrap, .zpravy-layout { height: 100%; min-height: 0px; }
.zpravy-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0px, 1fr); }
.zpravy-toolbar { grid-area: 1 / 1; grid-template-columns: 1fr; }
.news-brief-nav { padding: 0px; border-right: 0px; }
.zpravy-side-controls { grid-area: 2 / 1; padding: 0px 0px 10px; }
.zpravy-side, .zpravy-main { grid-area: 2 / 1; min-height: 0px; margin-right: calc(var(--main-pad) * -1); padding: 0px; border-right: 0px; }
.news-brief-scroll { min-height: 0px; max-height: none; }
.news-brief-content { padding: 10px var(--main-pad) 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
.news-brief-nav-btn { transition: none; }
body[data-mode="zpravy"] .zpravy-side, body[data-mode="zpravy"] .zpravy-main { animation: auto ease 0s 1 normal none running none; }
}
@media (max-width: 720px) {
.zpravy-area { padding-top: 0px; }
.zpravy-toolbar { position: static; grid-row: 2; z-index: 50; border-top: 1px solid var(--border-soft); border-bottom: 0px; background: rgb(var(--surface-page-rgb) / .96); backdrop-filter: blur(10px); }
.zpravy-layout { grid-template-rows: minmax(0px, 1fr) auto; }
.zpravy-side, .zpravy-main { grid-row: 1; }
.news-brief-content { padding-top: 18px; }
}
body[data-mode="zpravy"] .zpravy-area { overflow: hidden auto; padding: 0 var(--main-pad) 0 calc(var(--rail-width) + var(--main-pad)); scrollbar-gutter: stable; }
body[data-mode="zpravy"] .zpravy-wrap { box-sizing: border-box; width: min(100%, 1140px); max-width: 1140px; height: auto; min-height: 0px; margin: 0px auto; padding: 0px; }
body[data-mode="zpravy"] .zpravy-toolbar { z-index: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, var(--zpravy-measure)); max-width: none; margin: 0px auto; padding: 42px 0px 18px; border-top: 0px; border-right: 0px; border-left: 0px; border-image: none; border-bottom: 1px solid var(--border); border-radius: 0px; background: transparent; box-shadow: none; position: static !important; inset: auto !important; transform: none !important; }
body[data-mode="zpravy"] .zpravy-title { position: static; display: block; width: auto; height: auto; min-width: 0px; clip-path: none; margin: 0px auto 0px 0px; padding: 0px; overflow: hidden; color: var(--ink); font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.3; letter-spacing: -0.022em; text-overflow: ellipsis; white-space: nowrap; }
body[data-mode="zpravy"] .news-brief-nav { position: static; display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin: 0px; padding: 0px; border: 0px; background: transparent; }
body[data-mode="zpravy"] .news-brief-nav-btn { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); box-shadow: none; }
body[data-mode="zpravy"] .zpravy-layout { --zpravy-measure: 780px; display: flex; flex-direction: column; gap: 0px; width: 100%; height: auto; min-height: 0px; margin: 0px; }
body[data-mode="zpravy"] .zpravy-side, body[data-mode="zpravy"] .zpravy-main { position: static; width: 100%; height: auto; min-width: 0px; margin: 0px; padding: 0px; border: 0px; }
body[data-mode="zpravy"] .zpravy-main[hidden] { display: none; }
body[data-mode="zpravy"] .news-brief-scroll { width: 100%; height: auto; overflow: visible; padding: 0px; }
body[data-mode="zpravy"] .news-brief-content { box-sizing: border-box; width: min(100%, var(--zpravy-measure)); max-width: var(--zpravy-measure); min-height: 0px; margin: 0px auto; padding: 24px 0px 8px; }
body[data-mode="zpravy"] .zpravy-side-controls { display: none !important; }
body[data-mode="zpravy"] .zpravy-main { width: 100%; margin: 0px auto; padding: 22px 0px 40px; border-top: 1px solid var(--border); }
body[data-mode="zpravy"] #zpravy-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; width: 100%; max-width: none; margin: 0px; padding: 0px; }
@media (max-width: 900px) {
body[data-mode="zpravy"] .zpravy-wrap { width: 100%; }
}
@media (max-width: 720px) {
body[data-mode="zpravy"] .zpravy-area { padding: 0px 16px; }
body[data-mode="zpravy"] .zpravy-wrap { padding: 0 0 calc(74px + env(safe-area-inset-bottom, 0px)); }
body[data-mode="zpravy"] .zpravy-toolbar { z-index: 50; gap: 10px; width: 100%; margin: 0px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) var(--rail-toggle-slot, 16px); border-radius: 0px; border-top: 1px solid var(--border-soft); background: rgb(var(--surface-page-rgb) / .96); backdrop-filter: blur(10px); position: fixed !important; inset: auto 0px 0px !important; }
body[data-mode="zpravy"] .zpravy-title { font-size: clamp(18px, 5.4vw, 22px); }
body[data-mode="zpravy"] .news-brief-content { padding: 32px 2px 8px; }
body[data-mode="zpravy"] .zpravy-main { padding: 18px 0px 28px; }
body[data-mode="zpravy"] #zpravy-feed { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 10px; }
}
@media (max-width: 410px) {
body[data-mode="zpravy"] .zpravy-area { padding: 0px 13px; }
}
.workbook-panel[hidden] { display: none; }
.workbook-panel { position: fixed; top: 0px; right: 0px; bottom: 0px; width: var(--workbook-panel-width); z-index: 130; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-float); }
.workbook-panel-head { flex: 0 0 auto; padding: 12px 14px 0px; border-bottom: 1px solid var(--border); background: var(--surface); }
.workbook-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0px; }
.workbook-panel-name { min-width: 0px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workbook-panel-title { display: flex; align-items: baseline; gap: 8px; min-width: 0px; }
.workbook-panel-status { flex: 0 0 auto; color: var(--muted); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; }
.workbook-panel-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.workbook-panel-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0px; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; transition: background var(--dur), color var(--dur); }
.workbook-panel-action[hidden], .workbook-panel-action svg[hidden] { display: none !important; }
.workbook-panel-action:hover { background: var(--hover-bg); color: var(--ink); }
.workbook-panel-action svg { width: 17px; height: 17px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workbook-history-control { position: relative; flex: 0 0 30px; width: 30px; height: 30px; }
.workbook-history-control:has(.workbook-panel-action[hidden]) { display: none; }
.workbook-panel-history-menu { position: absolute; top: calc(100% + 8px); right: 0px; z-index: 2; width: max-content; min-width: 112px; max-width: min(280px, -28px + 100vw); max-height: min(360px, 55vh); overflow-y: auto; padding: 5px; border: 1px solid var(--border); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow-float); }
.workbook-panel-history-menu[hidden] { display: none; }
body.file-preview-open #input-area { right: var(--workbook-panel-width); }
@media (max-width: 900px) {
.workbook-panel { width: 100%; }
body.file-preview-open #input-area { right: 0px; }
}
@media (max-aspect-ratio: 4 / 5) {
#file-preview-expand { display: none; }
.workbook-panel { flex-direction: column-reverse; }
.workbook-panel-head { padding: 0px 14px 12px; border-top: 1px solid var(--border); border-bottom: 0px; }
#file-preview-panel .workbook-panel-head { padding-top: 12px; }
.workbook-panel-history-menu { top: auto; bottom: calc(100% + 8px); }
}
.file-preview-body { flex: 1 1 auto; min-height: 0px; display: flex; overflow: auto; background: var(--surface-page); }
