/* Yenni application interface. */
:root {
  color-scheme: light; --bg:#f7f6f2; --surface:#fff; --surface-strong:#fff; --ink:#252827;
  --muted:#6d7471; --line:#e3e1dc; --accent:#4f8f83; --accent-soft:#dcede7; --coral:#f28c70; --yellow:#f4c95d; --green:#4f8f83;
  --shadow: 0 22px 70px rgba(39, 35, 27, .11); --mono: "DM Mono", monospace; --sans: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background:var(--bg); overscroll-behavior:none; }
html.workspace-open { background:var(--surface); }
body { margin:0; min-width:320px; min-height:100vh; background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:16px; transition:background .25s,color .25s; }
body.workspace-open { height:100vh; overflow:hidden; background:var(--surface); }
body.workspace-open main { height:100vh; overflow:hidden; }
button,input,textarea { font:inherit; } button { color:inherit; }
.noise { position:fixed; inset:0; pointer-events:none; opacity:.22; z-index:20; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.landing-topbar { position:relative; z-index:25; min-height:72px; padding:0 34px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:var(--bg); }
body.workspace-open .landing-topbar { display:none; }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:700; letter-spacing:-.04em; font-size:21px; }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--accent); color:white; font-size:15px; letter-spacing:0; }
.settings-button { width:36px; height:36px; padding:0; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--ink) 42%,var(--line)); border-radius:10px; background:var(--surface); color:var(--ink); cursor:pointer; transition:border-color .18s,background .18s,color .18s; }.settings-button:hover { border-color:color-mix(in srgb,var(--accent) 72%,var(--ink)); background:var(--accent-soft); color:color-mix(in srgb,var(--ink) 82%,var(--accent)); }.settings-button:focus-visible { outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }.settings-button svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; transition:transform .35s ease; }#settingsButton:hover svg { transform:rotate(180deg); }
.auth-control,.account-control { position:relative; display:flex; align-items:center; }
.create-account-button { height:38px; padding:0 13px; border:1px solid color-mix(in srgb,var(--accent) 52%,var(--line)); border-radius:10px; background:var(--accent-soft); color:var(--ink); display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px; font-weight:700; white-space:nowrap; cursor:pointer; }.create-account-button svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.create-account-button:hover { border-color:var(--accent); transform:translateY(-1px); }
.account-button { position:relative; z-index:1; width:36px; height:36px; min-width:36px; padding:0; overflow:hidden; border:1px solid color-mix(in srgb,var(--ink) 72%,var(--line)); border-radius:50%; background:var(--accent-soft); display:grid; place-items:center; color:var(--ink); cursor:pointer; }
.account-button:hover { box-shadow:0 0 0 3px var(--accent-soft); }.account-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }.account-button img,.account-avatar-fallback { width:100%; height:100%; border-radius:50%; }.account-button img { display:block; background:var(--accent-soft); object-fit:cover; }.account-avatar-fallback { display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:750; }
.account-menu { position:absolute; z-index:60; top:46px; right:0; width:240px; padding:16px; border:1px solid var(--line); border-radius:13px; background:var(--surface); box-shadow:var(--shadow); }.account-menu strong,.account-menu span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.account-menu strong { margin-bottom:4px; font-size:15px; }.account-menu span { color:var(--muted); font-size:12px; }.account-menu button { width:100%; margin-top:14px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); font-size:13px; font-weight:600; cursor:pointer; }
.hero { width:min(790px,calc(100% - 36px)); margin:0 auto; padding:clamp(72px,11vh,132px) 0 80px; animation:rise .65s both; }
.eyebrow { width:max-content; margin:0 auto 25px; padding:7px 11px; border:1px solid var(--line); border-radius:100px; color:var(--muted); font:12px var(--mono); text-transform:uppercase; letter-spacing:.055em; }
.eyebrow span { color:var(--accent); margin-right:6px; }
h1 { margin:0; text-align:center; font-size:clamp(54px,8vw,70px); line-height:.92; letter-spacing:-.075em; font-weight:600; }
h1 em { font-style:normal; color:var(--accent); }
.hero-copy { max-width:560px; margin:28px auto 36px; text-align:center; color:var(--muted); line-height:1.65; font-size:18px; }
.composer { position:relative; padding:8px; background:var(--surface-strong); border:1px solid color-mix(in srgb,var(--ink) 30%,var(--line)); border-radius:20px; box-shadow:var(--shadow); }
.composer:focus-within { border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); }
.composer textarea { width:100%; min-height:116px; resize:none; padding:18px 19px 10px; border:0; outline:0; background:transparent; color:var(--ink); font-size:18px; line-height:1.55; }
.composer textarea::placeholder { color:var(--green); font-family:var(--sans); font-weight:500; opacity:.78; }
.composer-footer { display:flex; justify-content:space-between; align-items:center; padding:7px 7px 7px 10px; }
.composer-tools { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
.composer-submit { display:flex; align-items:center; gap:8px; }
.reasoning-control { position:relative; flex:0 0 auto; color:var(--muted); }
.reasoning-toggle { min-width:108px; height:42px; padding:0 9px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); border-radius:11px; background:var(--bg); color:var(--muted); cursor:pointer; }
.reasoning-toggle [data-reasoning-value] { overflow:hidden; font:10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.reasoning-toggle:hover,.reasoning-toggle[aria-expanded="true"] { border-color:var(--accent); background:var(--accent-soft); color:var(--ink); }
.reasoning-toggle:focus-visible,.reasoning-panel button:focus-visible,.reasoning-panel input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.reasoning-toggle:disabled { opacity:.55; cursor:wait; }
.reasoning-panel { position:absolute; z-index:45; right:0; bottom:calc(100% + 8px); width:220px; padding:11px 12px 9px; border:1px solid var(--line); border-radius:12px; background:var(--surface-strong); box-shadow:0 12px 30px rgba(29,27,21,.15); color:var(--ink); pointer-events:auto; }
.reasoning-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; }
.reasoning-panel-heading button { width:23px; height:23px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:18px; line-height:1; cursor:pointer; }
.reasoning-panel-heading button:hover { background:var(--accent-soft); color:var(--ink); }
.reasoning-panel input { width:100%; margin:11px 0 2px; accent-color:var(--accent); cursor:pointer; }
.reasoning-scale { display:flex; justify-content:space-between; color:var(--muted); font:10px var(--mono); }
.studio-picker { position:relative; display:flex; align-items:center; gap:5px; }
.studio-picker-trigger { width:33px; height:33px; padding:0; display:grid; place-items:center; border:0; border-radius:9px; background:var(--bg); color:var(--ink); cursor:pointer; transition:background .16s,color .16s,transform .16s; }
.studio-picker-trigger:hover { background:color-mix(in srgb,var(--ink) 5%,var(--bg)); color:var(--ink); }
.studio-picker-trigger[aria-expanded="true"] { background:var(--accent-soft); color:#225e54; }
.studio-picker-trigger[aria-expanded="true"] { transform:rotate(45deg); }
.studio-picker-trigger svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.studio-active-icon { width:25px; height:25px; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--accent) 36%,var(--line)); border-radius:8px; background:color-mix(in srgb,var(--accent-soft) 58%,var(--surface)); color:var(--accent); font-size:13px; line-height:1; }
.studio-menu { position:absolute; z-index:90; left:0; bottom:calc(100% + 10px); width:280px; padding:7px; border:1px solid var(--line); border-radius:13px; background:var(--surface-strong); box-shadow:0 18px 48px rgba(29,27,21,.18); }
.studio-menu button { width:100%; min-height:48px; padding:7px 9px; display:grid; grid-template-columns:30px minmax(0,1fr) 18px; align-items:center; gap:9px; border:0; border-radius:9px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.studio-menu button:hover,.studio-menu button[aria-checked="true"] { background:var(--accent-soft); }
.studio-menu button>span:first-child { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; background:var(--bg); color:var(--accent); font-size:14px; }
.studio-menu button strong,.studio-menu button small { display:block; }.studio-menu button strong { font-size:13px; }.studio-menu button small { margin-top:2px; color:var(--muted); font-size:11px; line-height:1.3; }.studio-menu button i { visibility:hidden; color:var(--accent); font-style:normal; }.studio-menu button[aria-checked="true"] i { visibility:visible; }
.tool-button { border:0; background:var(--bg); width:33px; height:33px; border-radius:9px; cursor:pointer; display:grid; place-items:center; }
.image-upload-button.has-attachment { background:var(--accent-soft); color:#225e54; }
.attachment-menu { position:relative; flex:0 0 auto; margin-left:auto; }
.attachment-menu summary { display:grid; place-items:center; width:27px; height:27px; border-radius:7px; color:var(--accent); font-size:18px; line-height:1; list-style:none; cursor:pointer; }
.attachment-menu summary::-webkit-details-marker { display:none; }
.attachment-menu summary:hover,.attachment-menu summary:focus-visible,.attachment-menu[open] summary { background:var(--accent-soft); outline-offset:2px; }
.attachment-menu-options { position:fixed; z-index:120; display:grid; min-width:126px; max-width:calc(100vw - 16px); padding:5px; border:1px solid var(--line); border-radius:9px; background:var(--surface-strong); box-shadow:0 8px 24px rgba(29,27,21,.16); }
.attachment-menu-options[hidden] { display:none; }
.attachment-menu-options button { width:100%; height:auto; margin:0; padding:7px 9px; border:0; border-radius:5px; background:transparent; color:var(--ink); font:12px var(--sans); text-align:left; white-space:nowrap; cursor:pointer; }
.attachment-menu-options button:hover,.attachment-menu-options button:focus-visible { background:var(--accent-soft); color:#225e54; }
.file-attachments { display:flex; flex-wrap:wrap; gap:12px; width:max-content; max-width:calc(100% - 26px); margin:0 13px 8px; overflow:visible; }
.file-attachments[hidden] { display:none; }
.file-attachment { position:relative; display:flex; align-items:center; gap:9px; min-width:0; max-width:100%; padding:7px 8px; border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line)); border-radius:11px; background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface)); color:var(--ink); font:12px var(--sans); }
.file-attachment.has-selection { width:min(340px,100%); display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; border-color:var(--accent); }
.file-attachment.has-selection .file-attachment-thumbnail { grid-column:1/-1; width:100%; height:140px; object-fit:contain; }
.file-attachment-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:7px; background:var(--bg); color:var(--green); font:700 9px var(--sans); }
.file-attachment-thumbnail { display:block; width:38px; height:38px; flex:0 0 38px; border-radius:7px; object-fit:cover; background:var(--bg); }
.file-attachment-details { display:flex; flex-direction:column; gap:2px; min-width:0; }
.file-attachment-name { display:block; max-width:190px; overflow:hidden; font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.file-attachment-status { color:var(--muted); font-size:11px; white-space:nowrap; }
.file-attachment-actions { display:flex; gap:5px; margin-left:5px; margin-right:0; }
.file-attachment-actions button { border:0; border-radius:6px; padding:4px 5px; background:transparent; color:var(--accent); font:700 10px var(--sans); cursor:pointer; }
.file-attachment-actions button:hover,.file-attachment-actions button:focus-visible { background:var(--accent-soft); color:#225e54; }
.file-attachment [data-file-attachment-remove] { position:absolute; z-index:1; top:0; right:0; width:26px; height:26px; padding:0; border:1px solid var(--accent); border-radius:50%; background:var(--surface); box-shadow:0 2px 6px rgba(29,27,21,.12); color:var(--muted); font-size:17px; line-height:1; cursor:pointer; opacity:0; pointer-events:none; transform:translate(50%,-50%); transition:opacity .15s ease,background-color .15s ease,color .15s ease; }
.file-attachment:hover [data-file-attachment-remove],.file-attachment:focus-within [data-file-attachment-remove] { opacity:1; pointer-events:auto; }
.file-attachment [data-file-attachment-remove]:hover,.file-attachment [data-file-attachment-remove]:focus-visible { background:var(--accent-soft); color:#225e54; }
@media (hover:none) { .file-attachment [data-file-attachment-remove] { opacity:1; pointer-events:auto; } }
.tool-button.recording { background:var(--accent); color:white; animation:pulse 1.2s infinite; }
.tool-button svg,.build-button svg,.share-button svg,.refine-form svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.build-button { width:42px; height:42px; border:1px solid color-mix(in srgb,var(--green) 35%,var(--line)); padding:0; border-radius:12px; background:color-mix(in srgb,var(--green) 14%,var(--surface-strong)); color:var(--green); cursor:pointer; display:grid; place-items:center; }
.build-button:hover { transform:translateY(-1px); }
.suggestions { display:flex; gap:8px; justify-content:center; margin-top:20px; flex-wrap:wrap; }
.suggestions button { min-height:36px; padding:8px 14px; border:1px solid color-mix(in srgb,var(--ink) 30%,var(--line)); border-radius:100px; background:var(--surface); color:var(--ink); font-size:13px; font-weight:500; cursor:pointer; }
.suggestions button:hover { border-color:var(--ink); background:var(--surface-strong); transform:translateY(-1px); }
.recent { margin-top:70px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; }
.section-heading h2 { font-size:14px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.section-heading button { border:0; background:transparent; color:var(--muted); font-size:13px; cursor:pointer; }
.recent-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.recent-card { text-align:left; padding:18px; border:1px solid var(--line); background:var(--surface); border-radius:14px; cursor:pointer; min-width:0; }
.recent-card:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(30,28,20,.06); }
.recent-card strong,.recent-card span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-card strong { font-size:15px; margin-bottom:7px; }.recent-card span { font:11px var(--mono); color:var(--muted); }
.workspace { --sidebar-width:280px; --chat-panel-width:360px; --workspace-toolbar-height:68px; --workspace-content-bg:#f1f2f3; height:100vh; min-height:0; overflow:hidden; display:grid; grid-template-columns:var(--sidebar-width) var(--chat-panel-width) minmax(0,1fr); grid-template-rows:minmax(0,1fr); background:var(--workspace-content-bg); animation:fade .35s both; transition:grid-template-columns .22s ease; }
.workspace.sidebar-collapsed { --sidebar-width:64px; }
body.workspace-open .workspace { height:100%; }
.workspace[data-view="chat"] { --chat-gutter:max(22px,calc((100vw - var(--sidebar-width) - 840px)/2)); --reader-bg:#f1f2f3; grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.workspace[data-page="home"] { grid-template-columns:var(--sidebar-width) minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
.workspace[data-page="home"] .build-panel,.workspace[data-page="home"] .preview-panel,.workspace[data-page="home"] .stacked-workspace-divider { display:none; }
.home-panel { grid-column:2/-1; grid-row:1; min-width:0; min-height:0; overflow-y:auto; background:var(--bg); }
.home-content { width:min(1140px,100%); margin:0 auto; padding:clamp(28px,5vw,64px) clamp(22px,5vw,68px) 80px; }
.home-library { padding-top:0; }
.home-library-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:17px; }
.home-library-heading h1 { margin:0; font-size:24px; letter-spacing:-.035em; }
.home-library-heading span { color:var(--muted); font:11px var(--mono); }
.home-library-controls { display:flex; align-items:center; gap:9px; }
.home-library-controls label { color:var(--muted); font-size:12px; }
.home-resume-chat { min-height:32px; padding:5px 10px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }
.home-resume-chat:hover,.home-resume-chat:focus-visible { border-color:var(--accent); background:var(--accent-soft); }
.home-resume-chat[hidden] { display:none; }
.home-library-controls select,.sidebar-history-heading select { max-width:100%; min-height:32px; padding:4px 26px 4px 9px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:12px var(--sans); cursor:pointer; }
.home-more,.history-more { min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }
.home-more { display:block; margin:24px auto 0; }
.history-more { margin:0 12px 8px; }
.home-more[hidden],.history-more[hidden] { display:none; }
.home-more:hover,.history-more:hover { border-color:var(--accent); background:var(--accent-soft); }
.home-library-controls select:focus-visible,.sidebar-history-heading select:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.sidebar-history-heading { display:flex; align-items:center; justify-content:space-between; gap:4px; padding-right:12px; }
.sidebar-history-heading select { width:78px; min-height:28px; padding:2px 16px 2px 6px; font-size:11px; }
.sidebar-folder-controls { display:flex; gap:6px; padding:3px 12px 8px; }
.workspace[data-page="home"] .sidebar-current,.workspace[data-page="home"] .sidebar-history-heading,.workspace[data-page="home"] .sidebar-folder-controls,.workspace[data-page="home"] .history-list,.workspace[data-page="home"] .history-more,.workspace[data-page="home"] .history-empty,.workspace[data-page="home"] .sidebar-note { display:none; }
.sidebar-folder-controls select { min-width:0; flex:1; height:32px; padding:3px 6px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:12px var(--sans); }
.sidebar-folder-controls select.folder-drop-target { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent); }
.sidebar-folder-controls button { flex:0 0 32px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:19px; cursor:pointer; }
.sidebar-folder-controls button:hover,.sidebar-folder-controls button:focus-visible { border-color:var(--accent); background:var(--accent-soft); }
.workspace.sidebar-collapsed .sidebar-history-heading { display:none; }
.delete-chat-dialog,.folder-dialog { width:min(460px,calc(100vw - 32px)); padding:26px; border:1px solid var(--line); border-radius:15px; background:var(--surface); color:var(--ink); box-shadow:0 22px 70px rgba(29,27,21,.19); }
.delete-chat-dialog::backdrop,.folder-dialog::backdrop { background:rgba(25,31,29,.36); }
.delete-chat-dialog h2,.folder-dialog h2 { margin:0 0 10px; font-size:21px; }
.delete-chat-dialog p,.folder-dialog p { margin:0 0 24px; color:var(--muted); font-size:14px; line-height:1.5; }
.folder-dialog form { display:grid; gap:10px; }.folder-dialog label { font-size:13px; font-weight:700; }.folder-dialog input,.folder-dialog select { width:100%; min-height:42px; padding:8px 11px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font:14px var(--sans); }.folder-dialog #folderDialogError { margin:0; color:#9c3333; }.folder-dialog #folderDialogError[hidden] { display:none; }
.folder-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:16px; }.folder-dialog-actions button { min-height:38px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }.folder-dialog-actions button:hover,.folder-dialog-actions button:focus-visible { border-color:var(--accent); background:var(--accent-soft); }.folder-dialog-actions button[type="submit"],#deleteFolderConfirm { border-color:var(--accent); background:var(--accent); color:white; }
.delete-chat-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.delete-chat-actions button { min-height:38px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }
.delete-chat-actions button:hover,.delete-chat-actions button:focus-visible { border-color:var(--accent); background:var(--accent-soft); }
.delete-chat-actions [data-delete-chat-choice="both"] { border-color:#af6262; color:#9c3333; }
.home-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr)); align-items:start; gap:24px 18px; min-width:0; }
.home-folder-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }.home-folder-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-width:0; }.home-root-button,.home-folder-actions button,.home-chat-move { min-height:32px; max-width:100%; padding:5px 10px; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-size:12px; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }.home-root-button[aria-current="page"] { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:700; }.home-root-button:hover,.home-folder-actions button:hover,.home-chat-move:hover { border-color:var(--accent); }.home-root-button.folder-drop-target { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent); }.home-folder-actions button[hidden] { display:none; }
.home-folder-hint { margin:7px 0 18px; color:var(--muted); font-size:12px; }
.home-folder-card.home-chat-card { cursor:pointer; }
.home-folder-card:hover .home-folder-tile,.home-folder-card:focus-visible .home-folder-tile,.home-folder-card.folder-drop-target .home-folder-tile { border-color:var(--accent); box-shadow:0 12px 25px rgba(29,27,21,.1); }
.home-folder-card.folder-drop-target .home-folder-tile { background:var(--accent-soft); }
.home-folder-icon { width:76px; height:76px; display:grid; place-items:center; border-radius:18px; background:color-mix(in srgb,var(--surface) 62%,var(--accent-soft)); color:var(--accent); }
.home-folder-icon svg { width:44px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.home-chat-item { position:relative; min-width:0; max-width:100%; }
.home-chat-card { width:100%; min-width:0; max-width:100%; padding:0; display:flex; flex-direction:column; align-items:stretch; border:0; background:transparent; text-align:left; cursor:grab; }
.home-chat-card:active { cursor:grabbing; }
.home-chat-item.chat-dragging { opacity:.5; }
.home-chat-tile { width:100%; min-width:0; aspect-ratio:1; padding:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:linear-gradient(145deg,#e5eee8,#f3f6ed 62%,#e9e7f0); color:#33544f; box-shadow:0 3px 9px rgba(29,27,21,.045); transition:transform .18s,box-shadow .18s,border-color .18s; }
.home-chat-item:nth-child(3n+2) .home-chat-tile { background:linear-gradient(145deg,#ece8f4,#f8f2ea 74%); color:#57506b; }
.home-chat-item:nth-child(3n+3) .home-chat-tile { background:linear-gradient(145deg,#f5eadd,#eef1e6 72%); color:#645440; }
.home-folder-item:nth-child(n) .home-chat-tile { justify-content:center; background:linear-gradient(145deg,#dcebe4,#ecf4ed 62%,#e2ece9); color:var(--accent); }
.home-folder-item .home-folder-card.folder-drop-target .home-folder-tile { background:var(--accent-soft); }
.home-new-chat-item:nth-child(n) .home-new-chat-tile { background:var(--surface); color:var(--accent); border-style:dashed; }
.home-new-chat-card { cursor:pointer; }
.home-new-chat-icon { width:72px; height:72px; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--accent) 38%,transparent); border-radius:50%; background:var(--accent-soft); font-size:48px; font-weight:300; line-height:1; }
.home-chat-card:hover .home-chat-tile,.home-chat-card:focus-visible .home-chat-tile { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 12px 25px rgba(29,27,21,.1); }
.home-chat-card:focus-visible { outline:2px solid var(--accent); outline-offset:5px; border-radius:13px; }
.home-chat-tile strong { display:-webkit-box; max-width:100%; overflow:hidden; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:5; text-align:center; line-height:1.3; font-size:clamp(16px,1.55vw,21px); }
.home-chat-date { margin:10px 2px 0; color:var(--muted); font-size:11px; line-height:16px; }
.home-chat-move { position:absolute; top:10px; right:10px; width:36px; height:36px; min-height:0; padding:8px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--muted); opacity:0; cursor:pointer; transition:opacity .15s; }
.home-chat-move svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.home-chat-item:hover .home-chat-move,.home-chat-item:focus-within .home-chat-move { opacity:1; }
.home-chat-move:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (hover:none) { .home-chat-move { opacity:1; } }
.home-empty { padding:52px 24px; border:1px dashed var(--line); border-radius:14px; background:var(--surface); text-align:center; }
.home-empty>span { color:var(--accent); font-size:29px; }.home-empty h3 { margin:7px 0; font-size:18px; }.home-empty p { margin:0; color:var(--muted); font-size:13px; }
.home-storage-note { margin:24px 0 0; color:var(--muted); font-size:11px; }
.workspace[data-view="chat"] .preview-panel,.workspace[data-view="preview"] .build-panel,.workspace[data-view="chat"] .workspace-divider { display:none; }
.workspace[data-view="preview"] { grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.workspace[data-view="chat"] .build-panel { border-right:0; background:var(--reader-bg); }
.workspace[data-view="chat"] .conversation { background:var(--reader-bg); }
.workspace[data-view="chat"] .conversation,.workspace[data-view="split"] .conversation { scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--ink) 38%,transparent) transparent; scrollbar-gutter:stable; }
.workspace[data-view="chat"] .conversation::-webkit-scrollbar,.workspace[data-view="split"] .conversation::-webkit-scrollbar { display:block; width:10px; }
.workspace[data-view="chat"] .conversation::-webkit-scrollbar-thumb,.workspace[data-view="split"] .conversation::-webkit-scrollbar-thumb { border:2px solid var(--workspace-content-bg); border-radius:10px; background:color-mix(in srgb,var(--ink) 38%,transparent); }
.workspace[data-view="chat"] .message,.workspace[data-view="split"] .message { width:min(100%,840px); margin-left:auto; margin-right:auto; }
.workspace[data-view="chat"] .message.agent .message-content,.workspace[data-view="split"] .message.agent .message-content { max-width:100%; }
.workspace[data-view="chat"] .refine-form { width:100%; padding-left:var(--chat-gutter); padding-right:var(--chat-gutter); background:transparent; }
.workspace[data-view="split"] .refine-form { right:auto; left:50%; width:min(100%,870px); transform:translateX(-50%); }
.workspace[data-view="chat"] .refine-form>.refine-send-button { right:calc(var(--chat-gutter) + 8px); }
.workspace[data-view="chat"] .refine-reasoning-control { right:calc(var(--chat-gutter) + 49px); }
.workspace[data-view="chat"] .refine-studio-picker { left:calc(var(--chat-gutter) + 8px); }
.workspace[data-view="chat"] .refine-image-upload-button { left:calc(var(--chat-gutter) + 43px); }
.workspace[data-view="chat"] .refine-studio-picker.has-selection~.refine-image-upload-button { left:calc(var(--chat-gutter) + 73px); }
.workspace[data-view="chat"] .refine-attachments { right:var(--chat-gutter); left:var(--chat-gutter); }
.conversation-sidebar { position:relative; z-index:25; min-width:0; min-height:0; grid-column:1; grid-row:1; display:flex; flex-direction:column; overflow:visible; border-right:1px solid var(--line); background:var(--surface); box-shadow:8px 0 24px rgba(29,27,21,.035); transition:width .22s ease,box-shadow .22s ease; }
.sidebar-brand-row { min-height:66px; padding:14px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid var(--line); }.sidebar-brand-row .brand { min-width:0; }.sidebar-brand-row .brand>span:last-child { overflow:hidden; text-overflow:ellipsis; }.sidebar-actions { padding:12px 12px 5px; display:flex; align-items:center; }.sidebar-toggle,.sidebar-new-chat { height:36px; border:1px solid var(--line); border-radius:10px; background:var(--surface-strong); color:var(--ink); cursor:pointer; }.sidebar-toggle { flex:0 0 36px; width:36px; padding:0; display:grid; place-items:center; }.sidebar-toggle:hover,.sidebar-new-chat:hover { border-color:var(--accent); background:var(--accent-soft); }.sidebar-toggle svg,.sidebar-new-chat svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }.sidebar-new-chat { min-width:0; width:100%; padding:0 12px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px; font-weight:700; white-space:nowrap; }
.sidebar-current { margin:14px 12px 8px; padding:13px 14px; border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line)); border-radius:12px; background:color-mix(in srgb,var(--accent-soft) 34%,var(--surface)); }.sidebar-current span,.sidebar-section-label { color:var(--muted); font:10px var(--mono); text-transform:uppercase; letter-spacing:.08em; }.sidebar-current h2 { margin:5px 0 0; overflow:hidden; color:var(--ink); font-size:15px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }.sidebar-section-label { padding:10px 17px 5px; }
.sidebar-note { padding:14px 16px 17px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.45; }
.sidebar-footer { position:relative; z-index:30; margin-top:auto; padding:12px; display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; gap:8px; border-top:1px solid var(--line); background:var(--surface); }.sidebar-footer .auth-control { min-width:0; width:100%; justify-content:flex-start; }.sidebar-footer .account-control { width:auto; }.sidebar-footer .create-account-button { min-width:0; width:100%; }.sidebar-footer .account-button { width:36px; }.sidebar-footer .account-menu { top:auto; right:auto; bottom:44px; left:0; }
.workspace.sidebar-collapsed .sidebar-brand-row { padding-left:14px; padding-right:14px; flex-direction:column; }.workspace.sidebar-collapsed .sidebar-brand-row .brand>span:last-child { display:none; }.workspace.sidebar-collapsed .sidebar-actions { padding-left:14px; padding-right:14px; }.workspace.sidebar-collapsed .sidebar-new-chat { width:36px; padding:0; }.workspace.sidebar-collapsed .sidebar-new-chat span,.workspace.sidebar-collapsed .sidebar-current,.workspace.sidebar-collapsed .sidebar-section-label,.workspace.sidebar-collapsed .history-list,.workspace.sidebar-collapsed .history-empty,.workspace.sidebar-collapsed .sidebar-note { display:none; }.workspace.sidebar-collapsed .sidebar-footer { padding:12px 14px; }.workspace.sidebar-collapsed .create-account-button { width:36px; padding:0; }.workspace.sidebar-collapsed .account-button { width:36px; padding:0; }.workspace.sidebar-collapsed .create-account-button span { display:none; }.workspace.sidebar-collapsed .sidebar-footer .account-menu { right:auto; left:42px; bottom:0; }
.workspace.sidebar-collapsed .history-more,.workspace.sidebar-collapsed .sidebar-folder-controls { display:none; }
.build-panel { position:relative; min-width:0; min-height:0; grid-column:2; grid-row:1; display:flex; flex-direction:column; container:chat-pane / inline-size; background:var(--workspace-content-bg); }
.restore-preview-handle { position:absolute; z-index:31; top:50%; right:-2px; width:26px; height:92px; padding:0; border:0; background:transparent; color:var(--accent); cursor:col-resize; touch-action:none; transform:translateY(-50%); }
.restore-preview-handle::before { content:""; position:absolute; top:8px; right:0; width:16px; height:76px; border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line)); border-right:0; border-radius:9px 0 0 9px; background:var(--surface); box-shadow:-3px 0 9px rgba(29,27,21,.07); transition:width .18s,border-color .18s; }
.restore-preview-handle::after { content:""; position:absolute; top:34px; right:7px; width:2px; height:24px; border-radius:2px; background:currentColor; opacity:.7; transition:opacity .18s; }
.restore-preview-handle:hover::before,.restore-preview-handle:focus-visible::before { width:18px; border-color:var(--accent); }
.restore-preview-handle:hover::after,.restore-preview-handle:focus-visible::after { opacity:1; }
.restore-preview-handle:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.workspace[data-view="split"] .build-panel { overflow:hidden; }
.workspace[data-restore-dragging="true"] .workspace-divider { visibility:hidden; }
.workspace[data-restore-dragging="true"] .build-panel { overflow:visible; }
.conversation { flex:1; min-height:0; padding:22px 22px max(100px,var(--chat-composer-clearance,100px)); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; background:var(--workspace-content-bg); }.conversation::-webkit-scrollbar { display:none; }.message { margin-bottom:22px; display:flex; flex-direction:column; align-items:flex-start; font-size:18px; line-height:1.7; animation:rise .3s both; }.message.user { align-items:flex-end; }
.workspace[data-view="chat"] .conversation,.workspace[data-view="split"] .conversation { width:min(calc(100% - 48px),890px); align-self:center; }
.workspace[data-view="split"] .conversation { padding-left:8px; padding-right:0; }
.workspace.has-composer-attachments .conversation { padding-bottom:max(100px,var(--chat-composer-clearance,100px),var(--composer-attachment-clearance,100px)); }
.message .message-content { max-width:94%; padding:14px 17px; border:1px solid var(--line); background:var(--surface-strong); box-shadow:0 3px 10px rgba(29,27,21,.035); }
.message.agent .message-content { border-radius:6px 17px 17px 17px; }.message.user .message-content { max-width:86%; border-radius:17px 6px 17px 17px; border-color:#bcdcf4; background:#dceeff; color:#173247; }
.message.user p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message.agent { color:#171a19; }.message.agent strong,.message.agent h3,.message.agent h4,.message.agent h5 { color:#171a19; }
.message-content > :first-child { margin-top:0; }.message-content > :last-child { margin-bottom:0; }
.message.agent p { margin:0 0 11px; }.message.agent h3,.message.agent h4,.message.agent h5 { margin:18px 0 7px; line-height:1.25; letter-spacing:-.02em; }.message.agent h3 { font-size:23px; }.message.agent h4 { font-size:20px; }.message.agent h5 { font-size:18px; }
.message.agent .message-content>p:last-child { margin-bottom:0; }
.message.agent .streaming-answer { overflow-wrap:anywhere; }
.message.agent .streaming-answer > :first-child { margin-top:0; }
.message.agent .streaming-answer > :last-child { margin-bottom:0; }
.message.agent ul,.message.agent ol { margin:8px 0 13px; padding-left:21px; }.message.agent li { margin:5px 0; padding-left:2px; }.message.agent li::marker { color:var(--accent); font-weight:700; }
.message.agent a { color:var(--accent); text-underline-offset:2px; }.message.agent a:hover { text-decoration-thickness:2px; }
.message.agent code { padding:2px 5px; border:1px solid var(--line); border-radius:5px; background:var(--bg); color:var(--ink); font:14px/1.5 var(--mono); }
.message.agent pre { max-width:100%; margin:11px 0 14px; padding:13px 14px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); }.message.agent pre code { padding:0; border:0; background:transparent; white-space:pre; }
.message.agent .markdown-table-wrap { max-width:100%; margin:12px 0 15px; overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface-strong); container-type:inline-size; }
.message.agent .markdown-table-wrap:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.message.agent table { width:100%; border-collapse:collapse; table-layout:auto; font-size:var(--table-font-size,16px); line-height:1.5; }
.message.agent th,.message.agent td { min-width:0; padding:var(--table-cell-padding,10px 13px); overflow-wrap:normal; word-break:normal; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.message.agent th code,.message.agent td code { white-space:nowrap; }
.message.agent .table-wrap-cell code { white-space:normal; overflow-wrap:normal; }
.message.agent .table-nowrap-cell { white-space:nowrap; overflow-wrap:normal; }
@container (max-width: 520px) { .message.agent .table-nowrap-cell,.message.agent .table-nowrap-cell code { white-space:normal; overflow-wrap:normal; } }
.message.agent th { background:var(--accent-soft); font-weight:700; }.message.agent tr:last-child td { border-bottom:0; }.message.agent th:last-child,.message.agent td:last-child { border-right:0; }
.message.agent [data-align="center"] { text-align:center; }.message.agent [data-align="right"] { text-align:right; }
.message.agent blockquote { margin:11px 0 14px; padding:3px 0 3px 12px; border-left:3px solid var(--accent); color:var(--ink); }.message.agent hr { margin:17px 0; border:0; border-top:1px solid var(--line); }
.message.agent .math-display { max-width:100%; margin:10px 0 14px; padding:9px 4px; overflow-x:auto; color:var(--ink); }.message.agent mjx-container { max-width:100%; overflow-x:auto; overflow-y:hidden; }
.message.thinking p { animation:pulse-text 1s ease-in-out infinite; }
.message-copy { display:inline-flex; align-items:center; gap:5px; margin:4px 4px 0; padding:3px 5px; border:0; border-radius:5px; background:transparent; color:var(--muted); font:12px/1.4 var(--sans); cursor:pointer; }
.message-copy svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.message-copy:hover { color:var(--accent); background:var(--accent-soft); }.message-copy:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.build-steps { display:grid; gap:9px; margin-top:12px; }.build-step { display:flex; align-items:center; gap:9px; font:12px var(--mono); }
.build-step i { width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:var(--accent-soft); color:var(--green); font-style:normal; font-size:10px; }
.refine-form { position:absolute; z-index:30; right:0; bottom:0; left:0; width:100%; margin:0; padding:15px; border:0; background:transparent; pointer-events:none; }.refine-form>textarea { display:block; width:100%; height:49px; min-height:49px; max-height:min(240px,40vh); padding:11px 188px 10px 91px; overflow-y:auto; resize:none; border:1px solid var(--line); background:var(--surface-strong); border-radius:14px; outline:none; color:var(--ink); font-size:15px; line-height:26px; box-shadow:0 4px 10px rgba(29,27,21,.08); pointer-events:auto; }
.refine-studio-picker { position:absolute; z-index:2; left:23px; bottom:23px; pointer-events:auto; }.refine-studio-picker .studio-picker-trigger { background:transparent; }.refine-studio-picker .studio-picker-trigger:hover { background:color-mix(in srgb,var(--ink) 5%,transparent); color:var(--ink); }.refine-studio-picker .studio-picker-trigger[aria-expanded="true"] { background:var(--accent-soft); color:#225e54; }.refine-studio-picker.has-selection~textarea { padding-left:121px; }
.refine-image-upload-button { position:absolute; z-index:2; left:58px; bottom:23px; background:transparent; pointer-events:auto; }.refine-studio-picker.has-selection~.refine-image-upload-button { left:88px; }
.refine-attachments { position:absolute; right:15px; bottom:calc(100% - 7px); left:15px; display:flex; flex-direction:column; align-items:flex-start; gap:12px; pointer-events:none; }
.refine-file-attachments { order:-1; max-width:100%; max-height:min(35vh,180px); margin:0; padding:13px 13px 0 0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; pointer-events:auto; }
.refine-form>.refine-send-button { position:absolute; right:23px; bottom:23px; width:33px; height:33px; border:0; border-radius:9px; background:var(--ink); color:var(--bg); display:grid; place-items:center; cursor:pointer; pointer-events:auto; }
.refine-reasoning-control { position:absolute; z-index:2; right:64px; bottom:23px; pointer-events:auto; }
.refine-reasoning-control .reasoning-toggle { min-width:96px; height:33px; border:0; border-radius:8px; background:color-mix(in srgb,var(--bg) 86%,transparent); }
@container chat-pane (max-width:540px) { .refine-form>textarea { min-height:84px; padding:10px 14px 46px; }.refine-studio-picker.has-selection~textarea { padding-left:14px; } }
.refine-reasoning-control .reasoning-panel { width:min(220px,calc(100vw - var(--sidebar-width) - 72px)); }
.workspace-divider { position:absolute; z-index:12; top:14px; bottom:14px; left:0; width:32px; min-width:32px; transform:translateX(-50%); cursor:col-resize; touch-action:none; background:transparent; outline:0; }
.workspace[data-view="preview"] .workspace-divider { z-index:31; }
.workspace-divider::before { content:""; position:absolute; top:50%; right:calc(50% - 2px); width:16px; height:76px; border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line)); border-right:0; border-radius:9px 0 0 9px; background:var(--surface); box-shadow:-3px 0 9px rgba(29,27,21,.07); transform:translateY(-50%); transition:width .18s,border-color .18s; }
.workspace-divider::after { content:""; position:absolute; top:50%; right:calc(50% + 5px); width:2px; height:24px; border-radius:2px; background:var(--accent); opacity:.7; transform:translateY(-50%); }
.workspace-divider:hover::before,.workspace-divider:focus-visible::before { width:18px; border-color:var(--accent); }
.workspace-divider:hover::after,.workspace-divider:focus-visible::after { opacity:1; }
.workspace-divider:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
body.resizing-panes { cursor:col-resize; user-select:none; }body.resizing-panes .workspace { transition:none; }body.resizing-panes iframe { pointer-events:none; }
.stacked-workspace-divider { display:none; }
body.resizing-stacked-panes { cursor:row-resize; user-select:none; }body.resizing-stacked-panes .workspace { transition:none; }body.resizing-stacked-panes iframe { pointer-events:none; }
.preview-panel { position:relative; min-width:0; min-height:0; grid-column:3; grid-row:1; overflow:visible; display:flex; flex-direction:column; container:preview-pane / inline-size; background:var(--workspace-content-bg); }
.workspace[data-view="chat"] .build-panel,.workspace[data-view="preview"] .preview-panel { grid-column:2; }
.preview-shell { min-width:0; min-height:0; flex:1; margin:14px 16px 14px 0; overflow:hidden; display:flex; flex-direction:column; border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line)); border-radius:16px; background:var(--surface); box-shadow:0 0 18px rgba(29,27,21,.08); }
@media (min-width:1121px) { .workspace[data-view="split"] .preview-shell { min-width:344px; } }
@media (max-width:1120px) { .preview-shell { margin-left:12px; } }
@media (max-width:1120px) { .workspace[data-view="split"] .preview-shell { margin-bottom:0; } }
.preview-toolbar { height:var(--workspace-toolbar-height); min-height:var(--workspace-toolbar-height); display:flex; justify-content:space-between; align-items:center; padding:0 20px 0 14px; gap:14px; border-bottom:1px solid var(--line); background:var(--surface); }
.artifact-picker { min-width:0; max-width:min(320px,55%); display:flex; align-items:center; gap:8px; color:var(--muted); }.artifact-picker>span { flex:0 0 auto; color:var(--accent); font-size:16px; }.artifact-picker select { min-width:0; width:100%; height:36px; padding:0 32px 0 10px; overflow:hidden; border:1px solid var(--line); border-radius:9px; outline:0; background:var(--surface-strong); color:var(--ink); font-size:13px; font-weight:600; text-overflow:ellipsis; cursor:pointer; }.artifact-picker select:hover:not(:disabled),.artifact-picker select:focus { border-color:var(--accent); }.artifact-picker select:disabled { color:var(--muted); cursor:default; }
.preview-actions { display:flex; align-items:center; gap:7px; }
.pane-button { flex:0 0 auto; width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:8px; background:transparent; display:grid; place-items:center; cursor:pointer; }.pane-button:hover { background:var(--surface-strong); }.pane-button svg { width:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.share-button { padding:7px 11px; border:0; border-radius:8px; background:var(--ink); color:var(--bg); font-size:13px; display:flex; gap:7px; align-items:center; cursor:pointer; }.share-button svg { width:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@container preview-pane (max-width:520px) { .preview-toolbar { gap:8px; padding:0 10px; }.artifact-picker { flex:1; max-width:none; }.artifact-picker>span { display:none; }.preview-actions { flex:0 0 auto; gap:4px; }.share-button { width:32px; height:32px; padding:0; justify-content:center; font-size:0; }.share-button svg { flex:0 0 16px; width:16px; } }
.preview-canvas { --preview-inset:clamp(10px,1.25vw,20px); position:relative; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:var(--preview-inset); background:var(--workspace-content-bg); }
.generated-frame { display:block; width:100%; height:100%; margin:0 auto; border:0; border-radius:12px; background:white; box-shadow:0 20px 60px rgba(29,27,21,.14); }
.preview-canvas:has(> .generated-frame) { display:flex; flex-direction:column; overflow:hidden; }
.preview-canvas>.generated-frame { flex:1 1 0; height:0; min-height:0; }
.build-loader { width:min(680px,100%); min-height:430px; margin:clamp(20px,6vh,70px) auto; padding:clamp(35px,6vw,70px); display:flex; flex-direction:column; justify-content:center; border:1px solid rgba(30,28,20,.1); border-radius:18px; background:var(--surface-strong); color:var(--ink); box-shadow:0 20px 60px rgba(29,27,21,.1); }.builder-orbit { position:relative; width:66px; height:66px; margin-bottom:27px; display:grid; place-items:center; }.builder-orbit span { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--coral); color:var(--ink); font-weight:700; }.builder-orbit i { position:absolute; inset:0; border:1px solid var(--accent); border-top-color:transparent; border-radius:50%; animation:spin 1.5s linear infinite; }.loader-kicker { color:var(--accent); font:12px var(--mono); letter-spacing:.1em; text-transform:uppercase; }.build-loader h2 { margin:10px 0 9px; font-size:clamp(24px,4vw,36px); letter-spacing:-.04em; }.build-loader>p { margin:0; color:var(--muted); line-height:1.6; }.loader-prompt { max-width:540px; }.loader-track { height:4px; margin:34px 0 14px; overflow:hidden; border-radius:10px; background:var(--line); }.loader-track i { display:block; width:38%; height:100%; border-radius:inherit; background:var(--accent); animation:loading-slide 1.5s ease-in-out infinite; }.loader-status { display:flex; justify-content:space-between; gap:20px; color:var(--muted); font:12px var(--mono); }.build-loader.error { min-height:300px; }.build-loader.error .loader-kicker { color:#c9533e; }
.image-loader .image-spark { width:58px; height:58px; margin-bottom:25px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(135deg,var(--yellow),var(--coral)); color:var(--ink); font-size:25px; box-shadow:0 12px 30px rgba(242,140,112,.24); animation:pulse 1.7s ease-in-out infinite; }
.image-result { width:100%; margin:0 auto; overflow:hidden; border:1px solid rgba(30,28,20,.12); border-radius:18px; background:var(--surface-strong); box-shadow:0 20px 60px rgba(29,27,21,.14); }
.generated-image { display:block; width:100%; max-height:calc(100vh - 210px); object-fit:contain; background:linear-gradient(135deg,#eef2ef,#f7eee8); }
.image-result footer { min-height:72px; padding:14px 16px 14px 19px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); }
.image-result footer div { min-width:0; }.image-result footer strong { display:block; overflow:hidden; color:var(--ink); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.image-download { flex:0 0 auto; padding:9px 13px; border-radius:9px; background:var(--ink); color:var(--bg); font-size:13px; font-weight:700; text-decoration:none; }.image-download:hover { transform:translateY(-1px); }
.image-result-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.image-select-button { min-height:36px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-size:13px; font-weight:700; cursor:pointer; }.image-select-button:hover,.image-select-button.has-selection { border-color:var(--accent); background:var(--accent-soft); color:#225e54; }
.image-selection-dialog { width:min(940px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; border:1px solid var(--line); border-radius:18px; background:var(--surface-strong); color:var(--ink); box-shadow:0 22px 70px rgba(29,27,21,.27); }.image-selection-dialog::backdrop { background:rgba(18,25,24,.62); }.image-selection-header { padding:17px 20px 12px; display:flex; justify-content:space-between; gap:16px; }.image-selection-header h2 { margin:0; font-size:21px; letter-spacing:-.03em; }.image-selection-header p { margin:5px 0 0; color:var(--muted); font-size:13px; }.image-selection-header button { width:32px; height:32px; border:0; border-radius:8px; background:var(--bg); color:var(--ink); font-size:23px; cursor:pointer; }
.image-selection-tools { padding:9px 20px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.image-selection-tools button,.image-selection-tools label { min-height:34px; padding:6px 10px; display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:650; }.image-selection-tools button { cursor:pointer; }.image-selection-tools button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft); color:#225e54; }.image-selection-tools input { width:100px; accent-color:var(--accent); }
.image-selection-stage { min-height:180px; max-height:62dvh; padding:14px; display:grid; place-items:center; overflow:auto; background:var(--workspace-content-bg); }.image-selection-artboard { position:relative; width:max-content; max-width:100%; max-height:calc(62dvh - 28px); }.image-selection-artboard img { display:block; max-width:100%; max-height:calc(62dvh - 28px); width:auto; height:auto; }.image-selection-artboard canvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }.image-selection-actions { padding:12px 20px 16px; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:9px; }.image-selection-actions span { margin-right:auto; color:var(--muted); font-size:12px; }.image-selection-actions button { min-height:36px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-weight:700; cursor:pointer; }.image-selection-actions #imageSelectionDone { border-color:var(--accent); background:var(--accent); color:white; }.image-selection-actions #imageSelectionDone:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:520px) { .image-selection-header { padding:14px 15px 10px; }.image-selection-tools { padding:8px 15px; }.image-selection-stage { padding:8px; }.image-selection-actions { padding:10px 15px 13px; } }
.pdf-loader .pdf-sheet { width:54px; height:66px; margin-bottom:24px; padding:16px 11px; display:grid; align-content:start; gap:7px; border:1px solid var(--line); border-radius:5px; background:white; box-shadow:8px 9px 0 var(--accent-soft),0 14px 30px rgba(29,27,21,.12); transform:rotate(-2deg); }.pdf-sheet i { height:3px; border-radius:3px; background:var(--coral); animation:pulse-text 1.3s ease-in-out infinite; }.pdf-sheet i:nth-child(2) { width:75%; background:var(--accent); animation-delay:.15s; }.pdf-sheet i:nth-child(3) { width:88%; background:var(--yellow); animation-delay:.3s; }
.pdf-result { width:100%; margin:0 auto; overflow:hidden; border:1px solid rgba(30,28,20,.12); border-radius:18px; background:var(--surface-strong); box-shadow:0 20px 60px rgba(29,27,21,.14); }.generated-pdf { display:block; width:100%; height:max(650px,calc(100vh - 240px)); border:0; background:#e8e8e8; }.pdf-result footer { min-height:72px; padding:14px 16px 14px 19px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); }.pdf-result footer div { min-width:0; }.pdf-result footer strong,.pdf-result footer span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.pdf-result footer strong { color:var(--ink); font-size:15px; }.pdf-result footer span { margin-top:3px; color:var(--muted); font:11px var(--mono); text-transform:uppercase; letter-spacing:.07em; }
.preview-canvas>.pdf-result { height:100%; min-height:220px; display:flex; flex-direction:column; }
.preview-canvas>.pdf-result>.generated-pdf { flex:1 1 0; min-height:0; height:0; }
.preview-canvas>.pdf-result>footer { flex:0 0 auto; }
.sketch-loader .sketch-squiggle { position:relative; width:68px; height:54px; margin-bottom:23px; border-bottom:4px solid var(--accent); border-radius:50%; transform:rotate(-7deg); }.sketch-loader .sketch-squiggle::before,.sketch-loader .sketch-squiggle::after,.sketch-loader .sketch-squiggle i { content:""; position:absolute; border:3px solid var(--coral); border-color:var(--coral) transparent transparent; border-radius:50%; }.sketch-loader .sketch-squiggle::before { width:26px; height:22px; left:2px; top:19px; }.sketch-loader .sketch-squiggle::after { width:31px; height:27px; right:1px; top:6px; border-top-color:var(--yellow); }.sketch-loader .sketch-squiggle i { width:18px; height:16px; left:25px; top:14px; border-top-color:var(--accent); animation:spin 2.2s linear infinite; }
.sketch-result { width:100%; margin:0 auto; overflow:hidden; border:1px solid rgba(30,28,20,.17); border-radius:18px; background:var(--surface-strong); box-shadow:0 20px 60px rgba(29,27,21,.14); }.sketch-toolbar { min-height:64px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); background:var(--surface); }.sketch-tools,.sketch-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }.sketch-toolbar button,.sketch-color,.sketch-size { min-height:36px; padding:0 11px; border:1px solid var(--line); border-radius:9px; background:var(--surface-strong); color:var(--ink); font-size:12px; font-weight:650; }.sketch-toolbar button { cursor:pointer; }.sketch-toolbar button:hover:not(:disabled),.sketch-toolbar button.active { border-color:var(--accent); background:var(--accent-soft); color:#225e54; }.sketch-toolbar button:disabled { opacity:.42; cursor:not-allowed; }.sketch-color,.sketch-size { display:flex; align-items:center; gap:7px; color:var(--muted); }.sketch-color input { width:25px; height:25px; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }.sketch-size input { width:82px; accent-color:var(--accent); }.sketch-toolbar .sketch-export { border-color:var(--accent); background:var(--accent); color:white; }.sketch-toolbar .sketch-export:hover:not(:disabled) { background:#39796e; color:white; }.sketch-artboard { position:relative; width:100%; aspect-ratio:3/2; background:white; }.sketch-artboard iframe,.sketch-artboard canvas { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }.sketch-artboard iframe { pointer-events:none; }.sketch-artboard canvas { z-index:1; touch-action:none; cursor:crosshair; }.sketch-artboard canvas[data-tool="eraser"] { cursor:cell; }.sketch-result>footer { min-height:72px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); }.sketch-result>footer div { min-width:0; }.sketch-result>footer strong,.sketch-result>footer span { display:block; }.sketch-result>footer strong { color:var(--ink); font-size:15px; }.sketch-result>footer span { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.45; }.sketch-result>footer small { flex:0 0 auto; color:var(--muted); font:11px var(--mono); text-transform:uppercase; letter-spacing:.06em; }
.sketch-toolbar { position:relative; z-index:5; }.sketch-add { position:relative; }.sketch-add summary { min-height:36px; padding:0 11px; border:1px solid var(--line); border-radius:9px; background:var(--surface-strong); color:var(--ink); display:flex; align-items:center; font-size:12px; font-weight:650; list-style:none; cursor:pointer; }.sketch-add summary::-webkit-details-marker { display:none; }.sketch-add summary:hover,.sketch-add[open]>summary { border-color:var(--accent); background:var(--accent-soft); color:#225e54; }.sketch-add>div { position:absolute; z-index:20; top:calc(100% + 6px); left:0; width:150px; padding:6px; display:grid; gap:3px; border:1px solid var(--line); border-radius:10px; background:var(--surface-strong); box-shadow:0 12px 30px rgba(29,27,21,.16); }.sketch-add>div button { width:100%; min-height:32px; border:0; text-align:left; }.sketch-artboard { overflow:hidden; outline:0; }.sketch-artboard:focus-visible { box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 60%,transparent); }.sketch-svg-layer,.sketch-artboard canvas { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }.sketch-svg-layer { z-index:1; }.sketch-svg-layer svg { display:block; width:100%; height:100%; }.sketch-artboard[data-mode="select"] .sketch-svg-layer [data-sketch-object="true"] { cursor:move; }.sketch-artboard canvas { z-index:2; pointer-events:none; touch-action:none; cursor:crosshair; }.sketch-artboard[data-mode="pen"] canvas,.sketch-artboard[data-mode="eraser"] canvas { pointer-events:auto; }.sketch-artboard canvas[data-tool="eraser"] { cursor:cell; }.sketch-selection { position:absolute; z-index:3; border:1.5px solid var(--accent); box-shadow:0 0 0 1px rgba(255,255,255,.85); cursor:move; touch-action:none; pointer-events:auto; }.sketch-selection[hidden] { display:none; }.sketch-selection>span { position:absolute; left:-1px; bottom:calc(100% + 5px); padding:3px 6px; border-radius:5px; background:var(--accent); color:white; font:10px var(--mono); text-transform:capitalize; pointer-events:none; }.sketch-selection>button { position:absolute; width:12px; height:12px; min-height:0; padding:0; border:2px solid var(--accent); border-radius:50%; background:white; }.sketch-selection>[data-resize="nw"] { left:0; top:0; transform:translate(-50%,-50%); cursor:nwse-resize; }.sketch-selection>[data-resize="ne"] { right:0; top:0; transform:translate(50%,-50%); cursor:nesw-resize; }.sketch-selection>[data-resize="sw"] { left:0; bottom:0; transform:translate(-50%,50%); cursor:nesw-resize; }.sketch-selection>[data-resize="se"] { right:0; bottom:0; transform:translate(50%,50%); cursor:nwse-resize; }
.sketch-svg-layer { contain:layout paint; }
.sandbox-sketch-frame { display:block; width:100%; height:clamp(420px,70vh,780px); border:0; background:#fff; }
.refine-progress { position:absolute; z-index:6; top:clamp(12px,3vw,28px); right:clamp(12px,3vw,28px); width:min(360px,calc(100% - 24px)); padding:14px 16px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-strong); color:var(--ink); box-shadow:0 12px 35px rgba(29,27,21,.18); }.refine-progress>i { width:18px; height:18px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin .9s linear infinite; }.refine-progress div { min-width:0; }.refine-progress strong,.refine-progress span { display:block; }.refine-progress strong { margin-bottom:3px; font-size:12px; }.refine-progress span { overflow:hidden; color:var(--muted); font:11px; text-overflow:ellipsis; white-space:nowrap; }.refine-progress time { color:var(--muted); font:11px var(--mono); }
.preview-canvas>.generated-frame,.preview-canvas>.build-loader,.preview-canvas>.image-result,.preview-canvas>.pdf-result,.preview-canvas>.sketch-result { box-shadow:0 0 0 1px rgba(30,28,20,.08),0 7px 14px -10px rgba(29,27,21,.32); }
dialog { width:min(470px,calc(100% - 32px)); padding:32px; border:1px solid var(--line); border-radius:17px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow); }dialog::backdrop { background:rgba(18,18,15,.45); backdrop-filter:blur(4px); }
.dialog-close { float:right; width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:transparent; cursor:pointer; }.dialog-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:var(--accent-soft); color:var(--accent); }dialog h2 { margin:20px 0 7px; font-size:21px; }dialog p,dialog small { color:var(--muted); line-height:1.5; }
.account-dialog { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:clamp(28px,8vw,90px); border:0; border-radius:0; text-align:center; }.account-dialog[open] { display:flex; flex-direction:column; align-items:center; justify-content:center; }.account-dialog .dialog-close { position:absolute; top:24px; right:28px; }.account-dialog-mark { width:48px; height:48px; margin:2px auto 18px; display:grid; place-items:center; border-radius:14px; background:var(--accent); color:white; font-weight:700; }.account-dialog h2 { margin:0 0 9px; font-size:25px; letter-spacing:-.035em; }.account-dialog p { max-width:350px; margin:0 auto; }.provider-list { width:min(360px,100%); min-height:44px; margin:27px auto 18px; display:grid; place-items:center; }.google-sign-in { min-width:230px; min-height:40px; display:grid; place-items:center; }.google-setup-button { width:min(320px,100%); min-height:42px; padding:0 16px; border:1px solid var(--line); border-radius:100px; background:var(--surface); color:var(--ink); display:flex; justify-content:center; align-items:center; gap:11px; font-size:13px; font-weight:600; cursor:pointer; }.google-setup-button span { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:#4285f4; font-size:15px; font-weight:700; }.account-dialog small { display:block; }
.settings-dialog { width:min(620px,calc(100% - 32px)); max-height:calc(100vh - 32px); padding:0; overflow-y:auto; }.settings-heading { min-height:92px; padding:20px 22px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--accent-soft) 32%,var(--surface)); }.settings-heading>div>span { color:var(--accent); font:11px var(--mono); text-transform:uppercase; letter-spacing:.1em; }.settings-heading h2 { margin:3px 0 0; font-size:24px; }.settings-heading .dialog-close { float:none; }.settings-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--accent); color:white; }.settings-mark svg { width:21px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }.settings-intro { margin:0; padding:22px 22px 8px; color:var(--muted); font-size:15px; }.settings-list { padding:10px 22px 22px; display:grid; gap:10px; }.settings-card { min-height:82px; padding:14px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }.settings-card-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:18px; }.settings-card h3 { margin:0 0 4px; font-size:15px; }.settings-card p { margin:0; font-size:13px; line-height:1.45; }.settings-card>span { padding:5px 8px; border-radius:100px; background:var(--bg); color:var(--muted); font:10px var(--mono); text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; }.settings-note { display:block; padding:15px 22px 18px; border-top:1px solid var(--line); background:var(--bg); color:var(--muted); font-size:11px; line-height:1.5; }
.model-card { align-items:start; }.model-card .settings-card-icon { margin-top:1px; }.model-controls { grid-column:2/-1; min-width:0; padding-top:3px; display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,.72fr); align-items:center; gap:9px 12px; }.model-controls label span,.model-controls label small { display:block; }.model-controls label span { margin-bottom:2px; color:var(--ink); font-size:12px; font-weight:600; }.model-controls label small { color:var(--muted); font-size:11px; }.model-controls select { width:100%; min-height:37px; padding:0 30px 0 10px; border:1px solid var(--line); border-radius:9px; outline:0; background:var(--bg); color:var(--ink); font:12px var(--mono); cursor:pointer; }.model-controls select:focus { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 14%,transparent); }
.personality-card { align-items:start; }.personality-card .settings-card-icon { margin-top:1px; }.personality-controls { grid-column:2/-1; min-width:0; margin:0; padding:2px 0 0; border:0; }.personality-options { display:flex; flex-wrap:wrap; gap:7px; }.personality-options label { cursor:pointer; }.personality-options input { position:absolute; opacity:0; pointer-events:none; }.personality-options span { min-height:33px; padding:7px 11px; display:block; border:1px solid var(--line); border-radius:100px; background:var(--bg); color:var(--muted); font-size:12px; font-weight:600; transition:border-color .16s,background .16s,color .16s; }.personality-options label:hover span { border-color:var(--accent); color:var(--ink); }.personality-options input:checked+span { border-color:var(--accent); background:var(--accent-soft); color:#225e54; }.personality-options input:focus-visible+span { outline:2px solid color-mix(in srgb,var(--accent) 50%,transparent); outline-offset:2px; }.custom-personality { position:relative; margin-top:11px; }.custom-personality label { display:block; margin-bottom:6px; color:var(--muted); font-size:12px; }.custom-personality textarea { width:100%; min-height:82px; resize:vertical; padding:10px 12px 22px; border:1px solid var(--line); border-radius:10px; outline:0; background:var(--bg); color:var(--ink); font-size:13px; line-height:1.5; }.custom-personality textarea:focus { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 14%,transparent); }.custom-personality>small { position:absolute; right:9px; bottom:7px; color:var(--muted); font:10px var(--mono); }
.memory-card { align-items:start; }.memory-control { grid-column:2/-1; display:inline-flex; align-items:center; gap:9px; width:max-content; max-width:100%; color:var(--ink); font-size:13px; font-weight:600; cursor:pointer; }.memory-control input { width:17px; height:17px; margin:0; accent-color:var(--accent); }.memory-note { grid-column:2/-1; display:block; color:var(--muted); font-size:11px; line-height:1.5; }
.history-list { flex:1; min-height:0; padding:7px 10px 12px; overflow-y:auto; }.history-item { margin-bottom:7px; padding:4px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px; border:1px solid transparent; border-radius:11px; background:transparent; }.history-item:hover { background:var(--bg); }.history-item.current { border-color:color-mix(in srgb,var(--accent) 48%,var(--line)); background:color-mix(in srgb,var(--accent-soft) 38%,var(--surface)); }.history-item.chat-dragging { opacity:.5; }.history-open { min-width:0; padding:9px; border:0; background:transparent; text-align:left; cursor:grab; }.history-open:active { cursor:grabbing; }.history-open strong,.history-open span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.history-open strong { margin-bottom:5px; color:var(--ink); font-size:13px; }.history-open span { color:var(--muted); font:10px var(--mono); }.history-actions { display:flex; align-items:center; gap:2px; }.history-actions button { width:28px; height:28px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--muted); display:grid; place-items:center; cursor:pointer; }.history-actions button:hover { background:var(--surface-strong); color:var(--ink); }.history-actions svg { width:13px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }.history-empty { margin:auto; padding:24px 18px; color:var(--muted); text-align:center; font-size:13px; line-height:1.55; }
.copy-row { display:flex; margin:22px 0; }.copy-row input { min-width:0; flex:1; border:1px solid var(--line); border-radius:9px 0 0 9px; background:var(--bg); color:var(--muted); padding:10px; font:12px var(--mono); }.copy-row button { border:0; background:var(--ink); color:var(--bg); padding:0 14px; border-radius:0 9px 9px 0; cursor:pointer; font-size:13px; }
.toast { position:fixed; z-index:50; bottom:25px; left:50%; transform:translate(-50%,20px); opacity:0; pointer-events:none; padding:10px 14px; border-radius:8px; background:var(--ink); color:var(--bg); font-size:13px; transition:.25s; }.toast.show { transform:translate(-50%,0); opacity:1; }.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
@keyframes rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }@keyframes fade { from { opacity:0; } to { opacity:1; } }@keyframes pulse { 50% { box-shadow:0 0 0 6px var(--accent-soft); } }
@keyframes pulse-text { 50% { opacity:.35; } }
@keyframes spin { to { transform:rotate(360deg); } }@keyframes loading-slide { from { transform:translateX(-110%); } 50% { transform:translateX(120%); } to { transform:translateX(300%); } }
@media (max-width:1120px) { .workspace,.workspace[data-view="chat"],.workspace[data-view="preview"] { --sidebar-width:64px; grid-template-columns:64px minmax(0,1fr); }.workspace { position:relative; height:100vh; grid-template-rows:minmax(0,var(--preview-pane-height,50%)) minmax(0,1fr); }.workspace[data-view="chat"],.workspace[data-view="preview"] { grid-template-rows:minmax(0,1fr); }.conversation-sidebar { grid-row:1 / -1; width:64px; }.workspace:not(.sidebar-collapsed) .conversation-sidebar { position:absolute; top:0; bottom:0; left:0; width:min(300px,calc(100vw - 24px)); box-shadow:14px 0 36px rgba(29,27,21,.16); }.workspace-divider { display:none; }.build-panel { height:auto; min-height:0; grid-column:2; grid-row:2; }.preview-panel { min-height:0; grid-column:2; grid-row:1; }.workspace[data-view="chat"] .build-panel,.workspace[data-view="preview"] .preview-panel { grid-column:2; grid-row:1; }.workspace[data-view="chat"] .preview-panel,.workspace[data-view="preview"] .build-panel { display:none; }.workspace[data-view="chat"] .conversation,.workspace[data-view="split"] .conversation { width:calc(100% - 24px); }.refine-form { width:100%; } }
@media (max-width:1120px) { .workspace[data-view="split"] .refine-studio-picker .studio-menu { max-height:max(0px,calc(var(--chat-pane-height,50dvh) - 76px)); overflow-y:auto; overscroll-behavior:contain; }.workspace[data-view="split"] .stacked-workspace-divider { display:block; position:absolute; z-index:32; top:var(--preview-pane-height,50%); right:0; left:var(--sidebar-width); height:26px; transform:translateY(-50%); cursor:row-resize; touch-action:none; outline:0; background:transparent; }.stacked-workspace-divider::before { content:""; position:absolute; top:50%; left:50%; width:76px; height:16px; transform:translate(-50%,-50%); border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line)); border-radius:0 0 9px 9px; background:var(--surface); box-shadow:0 3px 9px rgba(29,27,21,.08); }.stacked-workspace-divider::after { content:""; position:absolute; top:50%; left:50%; width:24px; height:2px; transform:translate(-50%,-50%); border-radius:2px; background:var(--accent); }.stacked-workspace-divider:hover::before,.stacked-workspace-divider:focus-visible::before { border-color:var(--accent); }.stacked-workspace-divider:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; } }
@media (max-width:1120px) { .workspace[data-view="chat"] .restore-preview-handle,.workspace[data-restore-dragging="true"] .restore-preview-handle { top:0; right:auto; left:50%; width:96px; height:26px; transform:translateX(-50%); cursor:row-resize; }.workspace[data-view="chat"] .restore-preview-handle::before,.workspace[data-restore-dragging="true"] .restore-preview-handle::before { top:0; right:auto; left:10px; width:76px; height:16px; border:1px solid color-mix(in srgb,var(--ink) 16%,var(--line)); border-top:0; border-radius:0 0 9px 9px; box-shadow:0 3px 9px rgba(29,27,21,.08); }.workspace[data-view="chat"] .restore-preview-handle::after,.workspace[data-restore-dragging="true"] .restore-preview-handle::after { top:7px; right:auto; left:36px; width:24px; height:2px; }.workspace[data-view="chat"] .restore-preview-handle:hover::before,.workspace[data-view="chat"] .restore-preview-handle:focus-visible::before { width:76px; border-color:var(--accent); } }
@media (max-width:820px) { .recent-grid { grid-template-columns:1fr; } }
@media (max-width:680px) { .home-content { padding-right:20px; padding-left:20px; } }
@media (max-width:520px) { .workspace,.workspace.sidebar-collapsed,.workspace[data-view="chat"],.workspace[data-view="preview"] { --sidebar-width:56px; grid-template-columns:56px minmax(0,1fr); }.conversation-sidebar { width:56px; } }
@media (max-width:520px) { .settings-heading { padding:16px; }.settings-intro { padding:18px 16px 7px; }.settings-list { padding:8px 16px 18px; }.settings-card { grid-template-columns:auto minmax(0,1fr); }.settings-card>span { grid-column:2; justify-self:start; }.model-controls { grid-template-columns:1fr; }.model-controls select:not(:last-child) { margin-bottom:4px; }.settings-note { padding:14px 16px 16px; } }
@media (max-width:520px) { .landing-topbar { min-height:64px; padding:0 18px; }.preview-toolbar { padding-right:18px; }.hero { padding-top:60px; }.hero-copy { font-size:16px; }.composer-footer { gap:8px; }.composer-tools>#promptHint { display:none; }.reasoning-control:not(.refine-reasoning-control) { width:108px; grid-template-columns:48px minmax(0,1fr); }.refine-form>textarea { min-height:84px; padding:10px 14px 45px; }.refine-reasoning-control { width:104px; grid-template-columns:46px minmax(0,1fr); }.conversation { padding-bottom:max(132px,var(--chat-composer-clearance,132px)); }.studio-menu { width:min(280px,calc(100vw - 30px)); }.suggestions { justify-content:flex-start; }.preview-canvas { padding:12px; }.generated-frame { height:720px; border-radius:8px; }.image-result,.pdf-result,.sketch-result { border-radius:11px; }.image-result footer,.pdf-result footer,.sketch-result>footer { align-items:flex-start; flex-direction:column; }.image-download { width:100%; text-align:center; }.generated-pdf { height:620px; }.sketch-toolbar { align-items:flex-start; flex-direction:column; }.sketch-tools,.sketch-actions { width:100%; }.sketch-size { flex:1; }.sketch-size input { width:100%; }.sketch-result>footer small { display:none; } }
@media (max-width:380px) { #voiceButton { display:none; } }
.interrupted-job>p+p { margin-top:10px; }
.interrupted-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; }
.interrupted-actions button { min-height:38px; padding:8px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); font:600 12px Manrope,sans-serif; cursor:pointer; }
.interrupted-actions button:first-child { border-color:var(--accent); background:var(--accent); color:#fff; }
.interrupted-actions button:hover { filter:brightness(.95); }
.interrupted-actions button:disabled { opacity:.5; cursor:not-allowed; }
