/* BrioFab idea workspace: spacious conversation, project-scoped materials. */
main.chat-mode { width:min(1680px,100%); padding:24px 28px; }
.workspace-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.workspace-heading { display:flex; align-items:center; gap:16px; min-width:0; }
.workspace-heading h1 { font-size:25px; letter-spacing:-.8px; margin:0 0 2px; line-height:1.4; }
.workspace-heading p { color:var(--muted); font-size:12px; margin:0; }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:20px; height:calc(100dvh - 215px); min-height:470px; }
.conversation { background:#ffffffdb; border:1px solid var(--line); border-radius:20px; display:flex; flex-direction:column; min-width:0; overflow:hidden; box-shadow:0 10px 32px #29415e04; }
.conversation-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:16px 24px; border-bottom:1px solid #edf1f4; gap:10px; }
.conversation-identity { display:flex; align-items:center; gap:11px; }
.conversation-identity .chat-avatar { width:36px; height:36px; border-radius:12px; }
.conversation-identity strong { font-size:14px; display:block; }.conversation-identity small { color:var(--muted); font-size:11px; display:block; }
.api-status { color:#8b6233; background:#fff6e9; border:1px solid #f1e4d1; border-radius:20px; font-size:11px; padding:5px 10px; display:flex; align-items:center; gap:6px; }
.api-status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }.api-status.ready { background:#eaf9f3; color:var(--success); border-color:#d6eee4; }
.workspace-messages { flex:1; min-height:0; overflow-y:auto; padding:30px clamp(20px,4vw,70px); scroll-behavior:auto; }
.workspace-message { margin:0 0 30px; max-width:100%; overflow-wrap:anywhere; }
.message-author { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:600; color:var(--muted); margin:0 0 8px; }.message-author .icon { height:15px; width:15px; color:var(--brand); }
.message-body { white-space:pre-wrap; font-size:14px; line-height:1.9; }
.workspace-message.user { margin-left:auto; width:fit-content; max-width:85%; }.workspace-message.user .message-body { padding:12px 18px; background:#edf3ff; border:1px solid #dfE9ff; border-radius:15px 15px 3px 15px; }.workspace-message.user .message-author { justify-content:flex-end; }
.message-actions { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }.quiet-button { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border:1px solid var(--line); border-radius:7px; background:transparent; color:var(--muted); font-size:11px; line-height:1.5; text-decoration:none; }
.quiet-button:hover { color:var(--brand); border-color:#9db7f3; background:#f4f7ff; }.quiet-button:disabled { cursor:default; }.quiet-button.saved { color:var(--success); border-color:#cee9dc; background:#f2fbf7; }.quiet-button .icon { width:14px; height:14px; }
.generated-figure { margin:14px 0 0; max-width:430px; }.generated-figure > button { padding:0; display:block; width:100%; background:#f2f6f8; border:1px solid var(--line); border-radius:14px; overflow:hidden; }.generated-figure img { display:block; width:100%; max-height:430px; object-fit:contain; }.generated-figure figcaption { color:var(--muted); font-size:11px; margin-top:5px; }
.generated-document { margin-top:14px; max-width:430px; padding:13px 15px; border:1px solid var(--line); border-radius:12px; background:#f8fbff; }.generated-document-title { display:flex; align-items:center; gap:10px; }.generated-document-title > .icon { color:var(--brand); }.generated-document-title strong,.generated-document-title small { display:block; overflow-wrap:anywhere; }.generated-document-title strong { font-size:12px; }.generated-document-title small { color:var(--muted); font-size:10px; }
.setup-notice { margin:0 24px 12px; padding:12px 15px; border:1px solid #e2eaf3; border-radius:10px; background:#f5f8fd; font-size:12px; color:#5a6e88; }
.project-ready { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 24px 12px; padding:13px 15px; border:1px solid #bfe8d8; border-radius:12px; background:linear-gradient(110deg,#f0fcf7,#f4f8ff); }
.project-ready strong { display:block; font-size:13px; color:#16674f; }.project-ready p { margin:2px 0; color:#496e69; font-size:11px; }.project-ready small { display:block; color:var(--muted); font-size:10px; }.project-ready .button { flex-shrink:0; font-size:11px; padding:9px 12px; }.project-ready .icon { width:16px; height:16px; }
.workspace-composer { margin:0 24px 12px; padding:12px 14px; border:1px solid #cfdde9; border-radius:14px; background:#fff; box-shadow:0 3px 15px #2552aa05; }
.id-starters { flex-shrink:0; margin:0 24px 12px; display:flex; align-items:center; gap:11px; flex-wrap:wrap; }.id-starters>span { color:#8296a4; font-size:10px; white-space:nowrap; }.id-starters>div { display:flex; gap:7px; flex-wrap:wrap; }.id-starters button { display:inline-flex; align-items:center; gap:6px; border:1px solid #dce7f3; border-radius:9px; padding:7px 10px; background:#f8fbff; color:#52708e; font-size:11px; line-height:1.4; }.id-starters button:hover { color:#275bc6; border-color:#a7c3f3; background:#f0f6ff; }.id-starters button .icon { width:12px; height:12px; }.id-starters button:focus-visible { outline:3px solid #658cf3; outline-offset:2px; }
.workspace-composer:focus-within { border-color:#89a8f7; box-shadow:0 0 0 3px #235ef50a; }
.workspace-composer textarea { display:block; width:100%; min-height:72px; max-height:180px; resize:vertical; border:0; padding:4px; border-radius:4px; background:transparent; font-size:14px; line-height:1.7; }.workspace-composer textarea:focus-visible { outline:none; }
.composer-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }.composer-tools select { max-width:230px; font-size:12px; background:#f3f7fa; padding:7px 10px; }.composer-tools .button { padding:9px 16px; font-size:12px; }.composer-tools .icon { width:17px; height:17px; }
.composer-tools .button { flex-shrink:0; }.composer-tools .button span { white-space:nowrap; }
.composer-hint { color:var(--muted); font-size:11px; line-height:1.5; }
.keyboard-hint { display:block; color:#758c98; font-size:10px; }
.composer-note { color:var(--muted); font-size:10px; margin:0 26px 12px; line-height:1.6; }.cost-note { margin:6px 4px 0; color:#936c37; font-size:11px; }
.workspace-error { padding:0 24px; margin:0 0 10px; font-size:12px; }.workspace-error:empty { display:none; }
.pending-message { color:var(--muted); font-size:13px; display:flex; align-items:center; gap:10px; }.pending-dot { display:inline-block; width:7px; height:7px; background:var(--brand); border-radius:50%; animation:idea-pulse 1.4s ease-in-out infinite; } @keyframes idea-pulse { 50% { opacity:.25; transform:scale(.8); } }
.asset-sidebar { min-width:0; border:1px solid var(--line); background:#fafeffbd; border-radius:20px; display:flex; flex-direction:column; overflow:hidden; }
.library-heading { padding:22px 20px 16px; }.library-heading h2 { font-size:16px; margin:0 0 3px; display:flex; align-items:center; gap:9px; }.library-heading h2 .icon { color:var(--brand); width:19px; height:19px; }.library-heading p { font-size:11px; color:var(--muted); margin:0; }
.project-picker { padding:0 20px 18px; border-bottom:1px solid var(--line); }.project-picker label { display:block; color:var(--muted); font-size:11px; margin:0 0 5px; }.project-picker select { width:100%; max-width:none; background:white; padding:9px 10px; border:1px solid var(--line); border-radius:9px; font-size:12px; }.project-picker p { color:var(--muted); font-size:10px; margin:7px 0 8px; }.history-picker { margin-top:12px; }
.asset-filters { display:flex; gap:4px; padding:15px 16px 7px; }.asset-filters button { flex:1; border:0; border-radius:7px; color:var(--muted); background:transparent; padding:7px 3px; font-size:11px; }.asset-filters button.active { color:var(--brand); background:#eaf1ff; }.asset-filters span { font-size:10px; margin-left:4px; opacity:.75; }
.asset-list { flex:1; overflow-y:auto; padding:10px 16px 18px; min-height:120px; }.library-empty { padding:42px 6px; text-align:center; color:var(--muted); }.library-empty > .icon { width:34px; height:34px; color:#a6bdcc; margin:0 auto 15px; }.library-empty strong { font-size:12px; display:block; color:#5d7381; font-weight:500; }.library-empty p { font-size:11px; line-height:1.8; margin:8px 0 0; }
.asset-card { padding:10px; border:1px solid var(--line); border-radius:11px; background:white; margin-bottom:10px; }.asset-card-image { display:block; width:100%; border:0; border-radius:7px; padding:0; background:#f1f5f8; overflow:hidden; }.asset-card-image img { width:100%; height:130px; object-fit:cover; display:block; }.asset-card-title { overflow-wrap:anywhere; font-weight:500; font-size:12px; line-height:1.7; margin:8px 0 3px; }.asset-card-meta { color:var(--muted); font-size:10px; }.asset-card-actions { display:flex; gap:5px; flex-wrap:wrap; margin-top:9px; }.asset-card-actions .quiet-button { font-size:10px; padding:4px 7px; }.asset-source { border:0; background:none; color:var(--muted); padding:0; font-size:10px; margin-top:8px; text-decoration:underline; text-underline-offset:3px; }
.library-footer { padding:12px 16px; font-size:10px; color:var(--muted); border-top:1px solid var(--line); }
.library-heading,.project-picker,.asset-filters,.library-footer { flex-shrink:0; }
.asset-list { min-height:0; }.asset-list:has(.library-empty) { padding-block:0; }.library-empty { padding:18px 3px; }.library-empty > .icon { width:26px; height:26px; margin-bottom:8px; }
.asset-dialog { width:min(850px,calc(100vw - 28px)); max-height:90dvh; padding:22px; border:1px solid var(--line); border-radius:18px; color:var(--ink); box-shadow:0 30px 100px #10213b30; }.asset-dialog::backdrop { background:#1c30425e; backdrop-filter:blur(4px); }.dialog-top { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }.dialog-top h2 { font-size:16px; margin:0; overflow-wrap:anywhere; }.asset-dialog img { max-width:100%; max-height:65dvh; display:block; margin:auto; border-radius:9px; }.asset-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; line-height:1.9; }.asset-dialog .dialog-download { margin-top:18px; }
.message-highlight { outline:2px solid #a5c0ff; outline-offset:12px; border-radius:8px; }
.history-manage { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid #dce8ef; border-radius:10px; background:#fff; color:#426275; font-size:12px; text-align:left; }
.history-manage > span { display:flex; align-items:center; gap:8px; }.history-manage .icon { width:16px; height:16px; color:#6089bd; }.history-manage:hover { border-color:#a9c3ee; background:#f5f9ff; }.history-manage:disabled { opacity:.5; }
.history-count { color:#92a6b1; font-size:11px; flex-shrink:0; }.history-count .icon { width:14px; height:14px; }
.history-dialog { width:min(620px,calc(100vw - 28px)); padding:28px; background:#fbfdff; }
.history-dialog-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }.history-eyebrow { color:#5a80be; font-size:10px; font-weight:700; letter-spacing:.08em; }.history-dialog h2 { margin:7px 0 4px; font-size:21px; letter-spacing:-.3px; }.history-dialog-header p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.history-close { width:34px; height:34px; display:grid; place-items:center; flex-shrink:0; border:1px solid #e1ebf1; border-radius:10px; color:#728897; background:#fff; }.history-close .icon { width:17px; height:17px; }.history-close:hover { color:var(--ink); border-color:#b7cede; }
.history-list { display:grid; gap:8px; list-style:none; padding:0; margin:22px 0 0; max-height:min(48dvh,440px); overflow-y:auto; }.history-row { display:flex; align-items:center; min-width:0; border:1px solid #e2ebf1; border-radius:13px; background:#fff; }.history-row.is-current { border-color:#bbd2fb; background:#f4f8ff; }.history-row:hover { border-color:#a8c3ed; }
.history-open { display:flex; align-items:center; flex:1; min-width:0; gap:12px; border:0; background:transparent; text-align:left; padding:12px; color:var(--ink); }.history-row-icon { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; border-radius:11px; background:#edf4ff; color:#5980bc; }.history-row-icon .icon { width:17px; height:17px; }.history-row-copy { display:block; min-width:0; }.history-row-copy strong { display:block; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }.history-row-copy > span { display:block; color:#8aa0af; font-size:11px; margin-top:3px; }
.history-delete { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; margin:0 10px; border:0; border-radius:9px; color:#9aafb9; background:transparent; }.history-delete .icon { width:17px; height:17px; }.history-delete:hover,.history-delete:focus-visible { color:#ae4a4a; background:#fff1f1; }.history-empty { padding:26px; color:var(--muted); text-align:center; font-size:13px; }.history-error { margin:14px 0 0; color:#a53f3f; font-size:12px; line-height:1.6; }.history-error:empty { display:none; }
.delete-chat-dialog { width:min(480px,calc(100vw - 28px)); }
.delete-chat-dialog p { color:var(--muted); font-size:13px; line-height:1.7; }
.delete-chat-dialog .delete-chat-name { color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
.delete-chat-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:22px; }
.delete-chat-actions .danger { background:#aa3c3c; color:#fff; border-color:#aa3c3c; }
@media(min-width:1500px) { .workspace { grid-template-columns:minmax(0,1fr) 360px; } }
@media(max-width:1000px) { .workspace { grid-template-columns:minmax(0,1fr) 290px; gap:14px; }.workspace-messages { padding:24px; }.workspace-composer { margin-inline:16px; }.conversation-bar { padding:14px 16px; }.workspace-top .button { font-size:12px; padding:9px 12px; } }
@media(max-width:760px) { main.chat-mode { padding:22px 14px; }.workspace-top { align-items:flex-start; gap:10px; }.workspace-heading { gap:10px; }.workspace-heading h1 { font-size:21px; }.workspace-heading p { font-size:11px; }.workspace-top > .button { max-width:115px; flex-shrink:0; }.workspace { display:flex; flex-direction:column; height:auto; min-height:0; }.conversation { height:75dvh; min-height:560px; }.workspace-messages { padding:22px 18px; }.asset-sidebar { min-height:350px; max-height:760px; }.asset-list { min-height:170px; }.workspace-message.user { max-width:92%; }.composer-note { margin-inline:18px; }.setup-notice { margin-inline:16px; }.conversation-bar { gap:8px; }.workspace-heading .back { flex-shrink:0; } }
@media(max-width:760px) { .project-ready { margin-inline:16px; align-items:flex-start; flex-direction:column; }.project-ready .button { width:100%; justify-content:center; } }
@media(max-width:760px) { .id-starters { margin-inline:16px; gap:7px; }.id-starters>div { gap:5px; }.id-starters button { font-size:10px; padding:6px 8px; } }
@media(prefers-reduced-motion:reduce) { .pending-dot { animation:none; } }
.image-editor-dialog { width:min(1240px,calc(100vw - 28px)); max-height:94dvh; overflow:auto; }
.image-editor-dialog .dialog-top { margin-bottom:8px; }
.editor-hint,.editor-privacy,.editor-empty { color:var(--muted); font-size:12px; line-height:1.6; }
.editor-tools { display:flex; gap:7px; margin:12px 0; }
.editor-tools button { border:1px solid #dbe5ef; background:#fff; border-radius:9px; padding:8px 14px; color:#5c7489; font-size:12px; }
.editor-tools button[aria-pressed=true] { color:#235ee6; border-color:#9dbdff; background:#edf4ff; }
.editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; align-items:start; }
.editor-image-wrap { min-width:0; display:flex; justify-content:center; align-items:center; padding:10px; background:#edf2f7; border-radius:12px; }
.editor-stage { display:inline-block; position:relative; line-height:0; max-width:100%; }
.asset-dialog .editor-stage img { max-width:100%; max-height:54dvh; width:auto; height:auto; border-radius:6px; }
.editor-stage svg { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.editor-mark { fill:none; stroke:#1767ff; stroke-width:4; vector-effect:non-scaling-stroke; }.editor-mark .editor-label { fill:#1767ff; stroke:white; stroke-width:2; }.editor-mark text { stroke:none; fill:white; font:bold 26px sans-serif; }
.editor-side { max-height:56dvh; overflow:auto; padding:4px; }.editor-side h3 { font-size:13px; margin:0 0 12px; }
.editor-note { padding:10px; margin-bottom:9px; border:1px solid #e1eaf3; border-radius:11px; background:#fafcff; }.editor-note>div { display:flex; gap:8px; align-items:center; font-size:12px; }.editor-note strong { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#1767ff; color:white; }.editor-note label { flex:1; }.editor-note button { background:transparent; border:0; color:#8094a6; font-size:20px; }.editor-note textarea { margin-top:8px; width:100%; min-height:75px; padding:8px; border:1px solid #d7e4ef; border-radius:8px; resize:vertical; font:inherit; font-size:12px; }
.editor-privacy { margin:14px 0 6px; }.editor-actions { display:flex; justify-content:flex-end; }.editor-actions .button { font-size:12px; }.image-editor-dialog #editorError:empty { display:none; }
.editor-model { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; color:var(--muted); font-size:12px; }.editor-model select { max-width:100%; border:1px solid #dbe5ef; border-radius:9px; background:#fff; padding:8px 10px; color:var(--ink); font:inherit; }
.editor-result-heading { margin:12px 0 4px; font-size:16px; font-weight:600; color:var(--ink); }
.editor-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:20px; }
.editor-comparison figure { min-width:0; margin:0; overflow:hidden; border:1px solid #dce6ee; border-radius:14px; background:#f4f7fa; }
.editor-comparison figcaption { min-height:48px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 12px; padding:12px 16px; font-size:13px; font-weight:600; color:var(--ink); border-bottom:1px solid #e2eaf0; background:#fff; }
.editor-comparison figcaption span { font-size:10px; font-weight:500; color:#477bb7; background:#edf4ff; border-radius:6px; padding:3px 7px; }
.editor-comparison .editor-new-result { border-color:#a9c7f6; }
.editor-compare-image { display:flex; align-items:center; justify-content:center; height:clamp(220px,46dvh,560px); padding:10px; }
.asset-dialog .editor-compare-image img { width:100%; height:100%; max-height:none; object-fit:contain; border-radius:5px; }
.editor-review-notes { margin-top:16px; font-size:12px; color:var(--muted); }.editor-review-notes summary { cursor:pointer; }.editor-review-notes li { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:4px; }
.editor-result-actions { flex-wrap:wrap; gap:10px; margin-top:20px; }.editor-result-actions #editorDiscard { margin-right:auto; }
.image-editor-dialog [hidden] { display:none!important; }
@media(max-width:600px) { .editor-comparison { grid-template-columns:1fr; gap:12px; }.editor-compare-image { height:32dvh; min-height:180px; }.editor-result-actions .button { flex:1 1 100%; }.editor-result-actions #editorDiscard { margin-right:0; } }
@media(max-width:760px) { .editor-layout { grid-template-columns:1fr; }.asset-dialog .editor-stage img { max-height:42dvh; }.editor-side { max-height:220px; }.image-editor-dialog { padding:16px; } }
