:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--border: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--destructive: 0 84.2% 60.2%;color-scheme:light}@media(prefers-color-scheme:dark){:root{--background: 220 20% 7%;--foreground: 210 40% 92%;--muted: 220 16% 16%;--muted-foreground: 215 20% 55%;--accent: 220 16% 16%;--border: 220 16% 18%;--ring: 212.7 26.8% 60%;--destructive: 0 62.8% 60%;color-scheme:dark}}*{box-sizing:border-box;border-color:hsl(var(--border))}html,body,#root{height:100%}body{margin:0;min-width:320px;overflow:hidden;background:hsl(var(--background));color:hsl(var(--foreground));font-family:JetBrains Mono,Fira Code,SF Mono,Cascadia Code,ui-monospace,SFMono-Regular,Liberation Mono,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:18px}button,textarea,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:20px;padding:0 6px;border:0;border-radius:4px;background:transparent;color:hsl(var(--muted-foreground));font-size:10px;line-height:16px;cursor:pointer;text-decoration:none}button:hover:not(:disabled),a.icon-button:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}button:disabled{opacity:.4;cursor:not-allowed}button svg,a svg{width:12px;height:12px;flex-shrink:0}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:1px solid hsl(var(--ring));outline-offset:1px}.icon-button{width:20px;height:20px;flex-shrink:0;padding:0}.app{display:flex;flex-direction:column;height:100vh;height:100dvh}.app-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border-bottom:1px solid hsl(var(--border))}.brand{display:flex;min-width:0;align-items:center;gap:8px}.brand>svg{width:16px;height:16px;flex-shrink:0;color:hsl(var(--muted-foreground))}.brand h1{margin:0;font-size:14px;line-height:20px;font-weight:600;letter-spacing:-.35px}.model-status{color:hsl(var(--muted-foreground));font-size:10px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0}.pane{display:flex;flex-direction:column;min-width:0;min-height:0}.source-pane{border-right:1px solid hsl(var(--border))}.pane-header{display:flex;flex-shrink:0;height:32px;align-items:center;justify-content:space-between;gap:8px;padding:3px 8px;border-bottom:1px solid hsl(var(--border))}.pane-header h2{margin:0;flex-shrink:0;color:hsl(var(--muted-foreground));font-size:10px;line-height:16px;font-weight:600;text-transform:uppercase;letter-spacing:1px}.pane-actions{display:flex;min-width:0;align-items:center;gap:2px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.pane-actions button{flex-shrink:0}.pane-actions::-webkit-scrollbar{display:none}.file-input{display:none}.image-area{position:relative;display:flex;flex:1;min-height:0;overflow:auto}.image-area.has-image{background-image:repeating-conic-gradient(hsl(var(--muted) / .4) 0% 25%,transparent 0% 50%);background-size:16px 16px}.image-area img{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain}.image-prompt{margin:auto;padding:12px;font-size:12px}.drop-overlay,.loading-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;background:hsl(var(--background));color:hsl(var(--muted-foreground));text-align:center}.drop-overlay{border:1px dashed hsl(var(--muted-foreground))}.drop-overlay strong{font-weight:400}.drop-overlay svg{width:24px;height:24px}.pane-footer{display:flex;flex-shrink:0;justify-content:space-between;gap:8px;min-height:22px;padding:2px 8px;border-top:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));font-size:10px;line-height:16px}.pane-footer>span:last-child{flex-shrink:0}.file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.separator{margin:0 4px}.view-switch{display:flex;flex-shrink:0;padding:1px;border:1px solid hsl(var(--border));border-radius:6px;background:hsl(var(--muted) / .4)}.view-switch button{padding:0 8px;font-weight:500}.view-switch button[aria-pressed=true]{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px #0000000d}.result-actions{display:flex;min-width:0;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.result-actions::-webkit-scrollbar{display:none}.copy-actions{display:flex;flex-shrink:0;gap:2px}.result-area{display:flex;flex:1;min-height:0;overflow:auto}.result-area textarea{width:100%;height:100%;min-height:0;padding:4px 8px;border:0;border-radius:0;resize:none;background:transparent;color:hsl(var(--foreground));font-size:12px;line-height:18px}.result-area textarea:focus-visible{outline-offset:-1px}.result-area textarea::placeholder{color:hsl(var(--muted-foreground))}.formatted-result{width:100%;padding:4px 8px;overflow-wrap:anywhere}.formatted-result h1,.formatted-result h2,.formatted-result h3{margin:12px 0 6px;font-weight:600;line-height:1.5}.formatted-result h1{font-size:18px}.formatted-result h2{font-size:16px}.formatted-result h3{font-size:14px}.formatted-result pre{padding:8px;background:hsl(var(--muted));white-space:pre-wrap}.formatted-result code{font:inherit}.formatted-result blockquote{margin-left:0;padding-left:8px;border-left:2px solid hsl(var(--border));color:hsl(var(--muted-foreground))}.formatted-result table{width:100%;border-collapse:collapse}.formatted-result th,.formatted-result td{padding:4px 8px;border:1px solid hsl(var(--border));text-align:left}.formatted-result th{background:hsl(var(--muted))}.notice{display:flex;flex-shrink:0;align-items:center;gap:8px;padding:4px 8px;border-top:1px solid hsl(var(--border));font-size:10px}.notice>span{flex:1}.notice>svg{width:12px;height:12px;flex-shrink:0}.notice.error{color:hsl(var(--destructive))}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground) / .4);border-radius:9999px}::-webkit-scrollbar-track{background:transparent}@media(prefers-color-scheme:dark){::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground) / .3)}}@media(max-width:700px){.workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.source-pane{border-right:0;border-bottom:1px solid hsl(var(--border))}.app-header{padding:6px 8px}.model-status{font-size:9px}}@media(max-width:380px){.copy-actions button span{display:none}}
