:root {
  --bg: #f7f8fb; --panel: #ffffff; --panel-soft: #fff4e6; --line: #e4e8ef;
  --text: #172033; --muted: #64748b; --accent: #FD6500; --green: #15966c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 82% 0%, #fff1dc 0, var(--bg) 48%); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #fd65004d; outline-offset: 2px; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex: 0 0 264px; display: flex; flex-direction: column; padding: 24px 16px 18px; background: #ffffff; border-right: 1px solid var(--line); }
.brand-row { display: flex; gap: 12px; align-items: center; padding: 1px 8px 28px; letter-spacing: .09em; font-size: 11px; }
.brand-row strong, .brand-row span { display: block; }
.brand-row span { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 15px; color: #5a3108; font-size: 23px; font-weight: 800; background: linear-gradient(145deg, #ffd27f, var(--accent)); box-shadow: 0 6px 28px #FD650028; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
.brand-mark img { width: 78%; height: 78%; object-fit: contain; }
.brand-mark.robot-mark { background: #fff2eb; box-shadow: none; }
.new-chat { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: #ffffff; padding: 11px 12px; text-align: center; font-size: 12px; font-weight: 750; box-shadow: 0 7px 18px #FD650028; }
.new-chat:hover:not(:disabled) { background: #e95c00; border-color: #e95c00; }
.new-chat:disabled, .tool-button:disabled, .mode-select-wrap select:disabled { opacity: .58; }
.new-chat span { color: #ffffff; font-size: 22px; line-height: 1; font-weight: 500; }
.side-caption { color: #657182; font-size: 9px; letter-spacing: .14em; margin: 28px 10px 12px; }
.project-badge { display: flex; align-items: center; gap: 10px; border: 1px solid #dce3ec; background: #ffffff; padding: 12px 10px; border-radius: 8px; font-size: 11px; }
.project-select-content { min-width: 0; flex: 1; }
.project-field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.project-select-content small { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.project-picker { position: relative; min-width: 0; }
.project-picker-button { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--text); text-align: left; }
.project-picker-button:disabled { cursor: wait; opacity: .65; }
.project-picker-button > img { width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid #e8edf3; border-radius: 7px; background: #fff7f2; object-fit: contain; }
.project-picker-copy { min-width: 0; flex: 1; }
.project-picker-copy strong, .project-picker-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-picker-copy strong { font-size: 11px; font-weight: 700; }
.project-picker-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.project-chevron { flex: 0 0 auto; color: var(--accent); font-size: 17px; line-height: 1; }
.project-picker-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; display: grid; width: max(100%, 270px); max-height: 310px; overflow: auto; padding: 5px; border: 1px solid #dce3ec; border-radius: 10px; background: #ffffff; box-shadow: 0 15px 35px #17203325; }
.project-picker-option { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 7px; padding: 8px; background: transparent; color: var(--text); text-align: left; }
.project-picker-option:hover, .project-picker-option.active { background: var(--panel-soft); }
.project-picker-option > img { width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid #e8edf3; border-radius: 7px; background: #fff7f2; object-fit: contain; }
.project-picker-option-copy { min-width: 0; }
.project-picker-option-copy strong, .project-picker-option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-picker-option-copy strong { font-size: 10px; font-weight: 700; }
.project-picker-option-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #15966ca0; }
.history-caption { margin: 20px 10px 8px; }
.conversation-history { min-height: 0; display: flex; flex-direction: column; }
.conversation-history-list { min-height: 0; max-height: 34vh; overflow: auto; display: grid; gap: 2px; padding: 0 1px 8px; }
.conversation-history-list::-webkit-scrollbar { width: 5px; }
.conversation-history-list::-webkit-scrollbar-thumb { border-radius: 8px; background: #d8dee8; }
.history-empty { padding: 9px 10px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.history-item { width: 100%; border: 0; border-radius: 8px; background: transparent; padding: 9px 10px; color: #475569; text-align: left; font-size: 10px; }
.history-item:hover, .history-item.active { background: var(--panel-soft); color: var(--text); }
.history-item-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.history-item-date { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.privacy-note { display: flex; gap: 9px; padding: 12px 10px; margin-bottom: 16px; border-radius: 9px; background: #ecfdf5; color: #23634f; }
.privacy-note span { color: var(--green); font-size: 17px; }
.privacy-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.privacy-note b { color: #124735; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #64748b; padding: 10px; text-align: left; font-size: 11px; border-radius: 7px; }
.side-link:hover { background: var(--panel-soft); color: var(--text); }
.workspace { display: flex; flex: 1; min-width: 0; height: 100vh; flex-direction: column; }
.topbar { height: 62px; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; border-bottom: 1px solid var(--line); background: #ffffffd9; }
.crumb { display: flex; gap: 11px; align-items: center; color: var(--muted); font-size: 11px; }
.crumb b { color: #c6d0dd; font-weight: 400; }
.crumb strong { color: #172033; font-weight: 550; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.connection { color: #64748b; font-size: 10px; display: flex; gap: 7px; align-items: center; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.connection.warn i { background: var(--accent); }
.connection.busy i { background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 7px; width: 31px; height: 31px; color: #64748b; font-size: 16px; }
.icon-button:disabled { opacity: .45; cursor: not-allowed; }
.toolbar-button { border: 1px solid #ffd0b2; border-radius: 8px; background: #fff8f3; color: #8b3d12; padding: 7px 10px; font-size: 10px; white-space: nowrap; }
.toolbar-button:hover { border-color: var(--accent); background: #fff0e5; color: #6f2e0b; }
.conversation { flex: 1; overflow: auto; padding: 32px 24px; }
.welcome { max-width: 680px; margin: min(9vh, 78px) auto 40px; text-align: center; }
.welcome-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 21px; border-radius: 20px; border: 1px solid #ffd0b2; color: var(--accent); background: #fff2eb; }
.welcome-icon img { width: 52px; height: 52px; object-fit: contain; }
.eyebrow { color: var(--accent); font-size: 9px; letter-spacing: .19em; }
.welcome h1 { margin: 12px 0 10px; font-size: 29px; letter-spacing: -.035em; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 31px; text-align: left; }
.suggestions button { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 9px; background: #ffffff; padding: 14px 12px; font-size: 11px; color: #243044; }
.suggestions button:hover { border-color: var(--accent); background: #fff7eb; }
.suggestions button b { color: var(--accent); font-size: 13px; min-width: 18px; }
.suggestions button span { line-height: 1.45; }
.suggestions small { display: block; color: var(--muted); margin-top: 5px; font-size: 9px; }
.messages { max-width: 1080px; margin: 0 auto; }
.message { display: flex; gap: 13px; width: 100%; margin: 24px 0; }
.message-avatar { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #ffd0b2; border-radius: 9px; background: #fff2eb; color: var(--accent); font-size: 9px; font-weight: 650; }
.message-avatar img { width: 24px; height: 24px; object-fit: contain; }
.user-message .message-avatar { color: #344054; border-color: #d6dce5; background: #f0f2f6; font-size: 8px; }
.message-body { min-width: 0; flex: 0 1 min(820px, 82%); }
.assistant-message { justify-content: flex-start; }
.user-message { justify-content: flex-end; }
.user-message .message-body { order: 1; max-width: min(700px, 78%); padding: 11px 14px; border: 1px solid #ffd8bd; border-radius: 14px 14px 3px 14px; background: #fff7f1; }
.user-message .message-avatar { order: 2; }
.message-meta { color: #64748b; font-size: 10px; margin: 4px 0 9px; }
.message-content { color: #243044; font-size: 13px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-content p { margin: 0 0 10px; }
.message-attachments { color: var(--muted); font-size: 10px; margin-top: 8px; }
.generated-image, .generated-video { display: block; max-width: min(100%, 700px); max-height: 520px; border: 1px solid var(--line); border-radius: 9px; margin-top: 10px; }
.generated-audio { width: min(100%, 520px); margin: 7px 0; }
.composer-wrap { width: min(1080px, calc(100% - 44px)); flex: 0 0 auto; margin: 0 auto 15px; }
.composer { background: #ffffff; border: 1px solid #d5dce6; border-radius: 12px; box-shadow: 0 10px 36px #0004; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { display: block; width: 100%; min-height: 53px; max-height: 180px; resize: none; border: 0; outline: 0; padding: 16px 17px 8px; background: transparent; color: var(--text); font-size: 13px; }
.composer textarea::placeholder { color: #94a3b8; }
.composer-controls { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px 9px 13px; }
.control-group, .send-group { display: flex; gap: 8px; align-items: center; }
.mode-select-wrap { display: flex; align-items: center; gap: 7px; color: #65758b; font-size: 9px; }
.mode-select-wrap select { max-width: 190px; border: 0; outline: 0; background: transparent; color: #344054; font-size: 10px; }
.mode-select-wrap option { background: #ffffff; }
.tool-button, .secondary { border: 1px solid #d7deea; border-radius: 7px; padding: 7px 10px; background: #f6f8fb; color: #475569; font-size: 10px; }
.tool-button:hover, .secondary:hover { border-color: var(--accent); color: #5a3108; }
.privacy-chip { color: #138a62; font-size: 8px; letter-spacing: .08em; padding-right: 7px; }
.send-button { width: 33px; height: 33px; border: 0; border-radius: 9px; background: var(--accent); color: #5a3108; font-size: 20px; font-weight: 700; line-height: 1; }
.send-button:disabled { opacity: .6; cursor: wait; }
.send-button.working { background: var(--accent); }
.footnote { margin: 9px 0 0; text-align: center; color: #7c8798; font-size: 9px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 7px; }
.attachment-chip { border: 1px solid #d7deea; border-radius: 15px; padding: 5px 7px 5px 10px; background: #f6f8fb; color: #344054; font-size: 9px; }
.attachment-chip button { border: 0; background: transparent; color: #64748b; font-size: 14px; margin-left: 5px; }
.login-shell { display: block; min-height: 100vh; padding: 10vh 5vw; background: #ffffff; }
.login-wrap { width: min(900px, 100%); margin: 0 auto; }
.login-robot { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 20px; border-radius: 24px; background: #fff2eb; border: 1px solid #ffd0b2; }
.login-robot img { width: 66px; height: 66px; object-fit: contain; }
.login-kicker { margin: 0; color: #667085; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.login-brand-title { margin: 24px 0 0; color: #111827; font-size: clamp(36px, 6vw, 58px); letter-spacing: -2px; line-height: 1.02; }
.login-brand-title span { color: var(--accent); }
.login-subtitle { margin: 14px 0 0; color: #667085; font-size: 17px; line-height: 1.5; }
.login-card { width: min(100%, 680px); margin: 35px auto 0; padding: 30px; border: 1px solid #e7e9ed; border-radius: 20px; background: #ffffff; box-shadow: 0 18px 48px #11182717; text-align: left; }
.login-card h2 { margin: 0 0 8px; color: #111827; font-size: 24px; letter-spacing: -.4px; }
.login-card .muted { max-width: 520px; margin: 0; color: #667085; line-height: 1.6; }
.login-card label { display: block; margin: 22px 0 8px; color: #111827; font-size: 12px; font-weight: 700; text-align: left; }
.settings-dialog label { display: block; margin: 20px 0 8px; color: #344054; font-size: 10px; }
.login-card input { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; outline: 0; padding: 13px 14px; background: #ffffff; color: var(--text); font-size: 13px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-card input::placeholder { color: #98a2b3; }
.settings-dialog input, .settings-dialog select { width: 100%; border: 1px solid #d7deea; border-radius: 7px; outline: 0; padding: 11px 12px; background: #ffffff; color: var(--text); font-size: 12px; }
.login-card input:focus { border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 4px #fd65001f; }
.settings-dialog input:focus, .settings-dialog select:focus { border-color: var(--accent); }
.primary { border: 0; border-radius: 7px; background: var(--accent); color: #5a3108; padding: 10px 15px; font-size: 11px; font-weight: 700; }
.primary.wide { width: 100%; margin-top: 20px; }
.login-card .primary { color: #ffffff; box-shadow: 0 8px 20px #fd650033; }
.login-card .primary:hover:not(:disabled) { background: #e95c00; transform: translateY(-1px); }
.login-card .primary:disabled { opacity: .72; }
.error { min-height: 17px; color: #b9382b; font-size: 10px; }
.login-card .error { margin: 12px 0 0; text-align: left; }
.settings-dialog { width: min(92vw, 700px); max-height: 88vh; padding: 24px; border: 1px solid #d7deea; border-radius: 13px; background: #ffffff; color: var(--text); box-shadow: 0 30px 90px #0009; }
.settings-dialog::backdrop { background: #1e293b66; backdrop-filter: blur(3px); }
.server-dialog { width: min(92vw, 720px); }
.gallery-dialog { width: min(94vw, 1040px); }
.server-projects { display: grid; gap: 9px; max-height: 58vh; overflow: auto; margin-top: 17px; }
.server-project { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.server-project.current { border-color: #ffc29d; background: #fff8f3; }
.server-project-info { min-width: 0; }
.server-project-info strong, .server-project-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-project-info strong { color: var(--text); font-size: 12px; }
.server-project-info small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.server-project .secondary { flex: 0 0 auto; }
.server-backdrop { position: fixed; inset: 0; z-index: 40; background: #17203366; backdrop-filter: blur(2px); }
.server-panel { position: fixed; top: 0; right: 0; z-index: 41; display: flex; flex-direction: column; width: min(470px, 94vw); height: 100vh; padding: 24px; border-left: 1px solid #d7deea; background: #ffffff; box-shadow: -22px 0 60px #1720332b; transform: translateX(100%); transition: transform .25s ease; }
.server-panel.open { transform: translateX(0); }
.server-project-label { display: block; margin-top: 23px; color: #694b3d; font-size: 11px; font-weight: 650; }
.server-project-picker { margin-top: 8px; border: 1px solid #f0d9cd; border-radius: 8px; padding: 10px; background: #fffaf7; }
.server-project-picker .project-picker-menu { width: 100%; }
.server-files-toolbar { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; }
.server-files-toolbar .secondary { padding: 6px 8px; font-size: 9px; }
.server-files-toolbar .secondary:disabled { cursor: not-allowed; opacity: .45; }
.server-files-toolbar > span { min-width: 0; overflow: hidden; margin-left: 3px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.server-files { min-height: 0; flex: 1; overflow: auto; margin: 4px -10px 0; padding: 3px 10px 15px; }
.server-file-row { display: flex; align-items: center; gap: 9px; min-height: 42px; border-bottom: 1px solid #f0f2f6; }
.server-folder-row { width: 100%; border-top: 0; border-right: 0; border-left: 0; background: transparent; color: inherit; text-align: left; }
.server-file-row:hover { background: #fff8f3; }
.server-file-icon { flex: 0 0 auto; color: var(--accent); font-size: 16px; }
.server-file-info { min-width: 0; }
.server-file-info strong, .server-file-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-file-info strong { color: var(--text); font-size: 11px; font-weight: 600; }
.server-file-info small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.server-files-empty, .server-files-notice { padding: 28px 12px; color: var(--muted); text-align: center; font-size: 11px; }
.server-files-notice { padding: 14px 12px; color: #8b3d12; }
.gallery-toolbar { display: flex; align-items: center; gap: 9px; margin-top: 17px; }
.gallery-toolbar label { margin: 0; color: #694b3d; font-size: 11px; font-weight: 650; }
.gallery-toolbar select { min-width: min(100%, 360px); flex: 1; border: 1px solid #f0d9cd; border-radius: 8px; padding: 9px 10px; background: #fffaf7; color: var(--text); font-size: 11px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; max-height: 58vh; overflow: auto; margin-top: 16px; padding: 2px; }
.gallery-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.gallery-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px #fd65001c; transform: translateY(-2px); }
.gallery-card img { display: block; width: 100%; height: 132px; object-fit: cover; background: #fff7f2; }
.gallery-card span { display: block; overflow: hidden; padding: 9px 10px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.gallery-empty { grid-column: 1 / -1; padding: 35px 15px; border: 1px dashed #efc8b2; border-radius: 11px; color: var(--muted); text-align: center; font-size: 12px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head .eyebrow { margin: 0 0 6px; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.settings-dialog > form > .muted { max-width: 610px; }
.user-management { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading .eyebrow { margin: 0 0 5px; }
.section-heading h3 { margin: 0; font-size: 15px; }
.users-list { display: grid; gap: 7px; margin: 12px 0 15px; }
.user-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fffaf3; font-size: 11px; }
.user-row span { color: var(--muted); font-size: 10px; }
.user-create-grid { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 8px 12px; margin: 12px 0; }
.user-create-grid label { margin: 0; }
.user-create-grid input { width: 100%; }
.field-note { color: var(--green); margin-left: 6px; font-weight: 400; }
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; }
.model-preferences { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-height: 36vh; overflow: auto; margin-top: 14px; padding-right: 6px; }
.model-field { margin: 8px 0 !important; }
.model-field select { display: block; margin-top: 7px; font-size: 10px; }
.model-field small { display: block; color: #7c8798; font-size: 9px; margin-top: 5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.usage-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.usage-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fffaf3; }
.usage-card strong, .usage-card span { display: block; }
.usage-card strong { color: #7c4a0c; font-size: 10px; }
.usage-card span { margin-top: 7px; color: var(--text); font-size: 14px; font-weight: 650; }
.usage-limits { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.command-approval { margin-top: 12px; padding: 12px; border: 1px solid #f0c78b; border-radius: 9px; background: #fff7eb; }
.command-approval p { margin: 0 0 8px; color: #704310; font-size: 11px; }
.command-approval code { display: block; padding: 9px; border-radius: 6px; background: #ffffff; color: #243044; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-approval button { margin-top: 9px; }
@media (max-width: 760px) {
  .sidebar { display: none; }
  .topbar { padding: 0 15px; }
  .conversation { padding: 21px 14px; }
  .welcome { margin-top: 5vh; }
  .welcome h1 { font-size: 24px; }
  .suggestions { grid-template-columns: 1fr; }
  .composer-wrap { width: calc(100% - 24px); }
  .message-body { flex-basis: 90%; }
  .user-message .message-body { max-width: 90%; }
  .mode-select-wrap { gap: 3px; }
  .mode-select-wrap span, .tool-button span { display: none; }
  .tool-button { padding: 7px 9px; }
  .privacy-chip { font-size: 7px; }
  .model-preferences { grid-template-columns: 1fr; max-height: 42vh; }
  .settings-dialog { padding: 18px; }
  .top-actions { gap: 8px; }
  .top-actions .connection { display: none; }
  .toolbar-button span { display: none; }
  .toolbar-button { padding: 7px 9px; }
  .gallery-toolbar { flex-wrap: wrap; }
  .gallery-toolbar select { min-width: 0; }
  .user-create-grid { grid-template-columns: 1fr; gap: 4px; }
  .user-create-grid label { margin-top: 8px; }
}

.task-progress { margin: 8px 0; padding: 12px; border: 1px solid var(--border, #444); border-radius: 12px; }
.task-progress[hidden] { display: none; }
.task-progress-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.task-progress-head strong { flex: 1; }
#taskEvents { max-height: 140px; overflow: auto; font-size: .85rem; }
#changesList pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; padding: 10px; }
#changesList section { padding: 12px 0; border-bottom: 1px solid #555; }

.task-archive { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border, #444); border-radius: 10px; font-size: .85rem; }
.task-archive summary { cursor: pointer; font-weight: 600; }
.task-archive ol { max-height: 280px; overflow: auto; padding-left: 22px; }
.task-archive li { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
