.local-workspace-page { height: 100dvh; min-height: 0; overflow: hidden; background: #090e1a; }
.local-workspace-page .page-shell { width: 100%; max-width: none; min-height: 0; height: 100dvh; display: flex; flex-direction: column; padding: 0; }
.local-workspace { --local-accent: #5b9dff; display: flex; flex: 1; flex-direction: column; min-height: 0; border: 0; border-radius: 0; background: #0d1422; overflow: hidden; }
.local-workspace-page[data-tool-mode="editor"] .local-workspace { --local-accent: #b798ff; }
.local-tool-bar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #ffffff10; background: #101827; }
.local-tool-title { display: flex; align-items: center; gap: 13px; }
.local-tool-symbol { display: grid; place-items: center; width: 30px; height: 30px; color: var(--local-accent); }
.local-tool-title h1 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.4px; }
.local-tool-title p { display: none; }
.local-tool-back { padding-inline: 10px; min-height: 34px; margin-right: 4px; }
.local-tool-actions .local-action { min-height: 34px; }
.local-tool-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
[data-local-language-host] { display: flex; }
[data-local-language-host] .lang-menu { margin-left: 0; }
[data-local-language-host] .lang-menu-btn { height: 34px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.local-tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.local-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid #ffffff18; border-radius: 9px; background: #ffffff04; color: #d4deef; font: inherit; font-size: 13px; cursor: pointer; transition: background .18s, border-color .18s; }
.local-action:hover { background: #ffffff0c; border-color: #ffffff36; }
.local-action:focus-visible, .local-model-select:focus-visible { outline: 2px solid var(--local-accent); outline-offset: 3px; }
.local-action.primary { color: #fff; border-color: #518bf3; background: #3474e9; box-shadow: 0 3px 14px #1553b52b; }
.local-action.primary:hover { background: #4384f7; }
.local-action:disabled { opacity: .45; cursor: progress; }
.local-action svg { flex-shrink: 0; }
.local-viewport { position: relative; flex: 1; min-height: 0; min-width:0; display: grid; background: radial-gradient(ellipse at 50% 45%, #182338 0, #0d1422 65%); }
.local-unavailable { position:absolute; inset:0; box-sizing:border-box; display:grid; place-content:center; justify-items:center; gap:18px; padding:32px 24px; text-align:center; overflow:auto; }
.local-unavailable h2 { margin:0; color:#edf3ff; font-size:clamp(22px,3vw,30px); }
.local-unavailable p { margin:0; max-width:560px; color:#f0b4aa; font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
.local-model-notice { display:flex; flex-wrap:wrap; flex-shrink:0; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid #e5aa524d; background:#342817; color:#ffe0a6; }
.local-model-notice p { flex:1 1 240px; min-width:0; margin:0; font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.local-model-notice .local-action { flex-shrink:0; color:inherit; border-color:#e5aa5266; }
.local-model-notice[data-state="info"] { background:#152a3b; color:#b8dcff; border-color:#78b8f54d; }
.local-model-notice[data-state="info"] .local-action { border-color:#78b8f566; }
.local-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 34px 24px; overflow-y: auto; }
.local-empty[hidden], .local-workspace [hidden] { display: none !important; }
.local-orbit { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 28px; color: var(--local-accent); border: 1px solid #738fd22b; border-radius: 29px; background: linear-gradient(135deg, #5b9dff0e, #b798ff08); box-shadow: 0 0 75px #598df30c, inset 0 0 35px #749bff06; transform: rotate(-7deg); }
.local-orbit svg { transform: rotate(7deg); }
.local-orbit::before, .local-orbit::after { content: ""; position: absolute; width: 166px; height: 54px; border: 1px solid #7f9de02e; border-radius: 50%; transform: rotate(-28deg); pointer-events: none; }
.local-orbit::after { transform: rotate(52deg); border-color: #a390e123; }
.local-empty h2 { margin: 0 0 12px; color: #edf3ff; font-size: clamp(23px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.9px; }
.local-empty .local-lead { margin: 0 0 25px; max-width: 530px; font-size: 14px; line-height: 1.9; color: #97a5bf; }
.local-open-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.local-open-actions .local-action { min-height: 43px; padding: 0 20px; }
.local-privacy { display: inline-flex; align-items: center; gap: 7px; margin-top: 23px; color: #7eab9c; font-size: 12px; }
.local-formats { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.local-formats span { padding: 5px 9px; border: 1px solid #ffffff0e; border-radius: 6px; color: #7d8da9; font-size: 11px; letter-spacing: .3px; }
.local-format-hint { margin: 12px 0 0; max-width: 550px; color: #71819b; font-size: 12px; line-height: 1.7; }
.local-frame { width: 100%; height: 100%; min-height: 0; border: 0; position: absolute; inset: 0; background: #0c1018; }
.local-model-row { display: flex; flex-shrink: 0; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 16px; background: #0c1320; border-bottom: 1px solid #ffffff0d; }
.local-model-select { max-width: min(600px, 55vw); min-width: 160px; padding: 7px 30px 7px 10px; border-radius: 7px; border: 1px solid #ffffff18; color: #d4deef; background: #172136; font: inherit; font-size: 12px; }
.local-file-summary { font-size: 12px; color: #7f8fa9; }
.local-status-bar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; padding: 7px 16px; border-top: 1px solid #ffffff0d; color: #7f90ac; font-size: 12px; }
.local-status { display: flex; align-items: center; gap: 8px; }
.local-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #528c77; flex-shrink: 0; }
.local-status[data-state="loading"]::before { background: #609bff; box-shadow: 0 0 9px #609bff55; animation: local-pulse 1.2s infinite; }
.local-status[data-state="error"] { color: #eea59e; }
.local-status[data-state="error"]::before { background: #ed8073; }
.local-drop-overlay { position: absolute; inset: 10px; z-index: 12; display: grid; place-items: center; border: 2px dashed #82adff; border-radius: 14px; background: #142747ed; backdrop-filter: blur(8px); color: #e4eeff; font-size: 23px; font-weight: 500; pointer-events: none; }
.local-blank { margin-top: 14px; border: 0; background: transparent; color: #b798ff; font: inherit; font-size: 13px; cursor: pointer; text-underline-offset: 4px; }
.local-blank:hover { text-decoration: underline; }
@keyframes local-pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .local-status[data-state="loading"]::before { animation: none; } }
@media (max-width: 640px) {
    .local-tool-bar { padding: 8px 10px; gap: 8px; } .local-tool-title { gap: 6px; } .local-tool-symbol { display: none; }
    .local-tool-controls { gap: 7px; } .local-tool-actions .local-action { padding-inline: 9px; }
    .local-tool-title p { max-width: 260px; } .local-empty { padding: 24px 16px; } .local-orbit { width: 85px; height: 85px; margin-bottom: 26px; }
    .local-formats { margin-top: 22px; } .local-status-bar { padding-inline: 12px; } .local-status-note { display: none; }
    .local-model-row { padding: 8px 12px; gap: 8px; } .local-model-select { max-width: 100%; width: 100%; }
}
@media (max-height: 650px) { .local-empty { place-content: start center; padding-top: 26px; } .local-orbit { width: 74px; height: 74px; margin-bottom: 24px; } .local-formats { margin-top: 20px; } }
