:root {
  color-scheme: dark;
  --bg: #141714;
  --sidebar: #101310;
  --surface: #1b1f1b;
  --surface-raised: #202620;
  --surface-hover: #272e26;
  --border: #30372f;
  --border-soft: #252d25;
  --text: #eef0e9;
  --muted: #a0aa9e;
  --faint: #73806f;
  --accent: #d5e9b3;
  --accent-ink: #263321;
  --accent-soft: #2b3726;
  --green: #a4cc9a;
  --orange: #e4bc86;
  --red: #efa79b;
  --radius: 13px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, textarea, select { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: -2px; }
button { color: inherit; }
a { color: inherit; }
svg { flex: 0 0 auto; }
button svg, .button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.monospace, code { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; border-radius: 6px; padding: 10px 15px; color: var(--accent-ink); background: var(--accent); text-decoration: none; }
.skip-link:focus { top: 12px; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 238px; flex: 0 0 238px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 30px 18px 19px; border-right: 1px solid var(--border-soft); background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 13px 39px; text-decoration: none; font-size: 21px; line-height: 1.15; font-weight: 620; letter-spacing: -.65px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #46523d; border-radius: 12px; background: #252f22; color: var(--accent); }
.brand-mark svg { width: 31px; height: 31px; }
.brand small { display: block; color: var(--faint); font-size: 10px; font-weight: 400; letter-spacing: .1px; margin-top: 5px; }
.eyebrow { color: var(--faint); font-size: 10px; font-weight: 650; letter-spacing: 1.65px; margin: 0 0 10px; line-height: 1.4; }
.project-picker { margin: 0 7px 31px; }
.project-picker > label { display: block; margin-left: 1px; }
.project-select-wrap { position: relative; display: flex; align-items: center; }
.project-select-wrap select { width: 100%; height: 44px; padding: 0 31px 0 33px; border: 1px solid var(--border); border-radius: 9px; background: #1b201a; color: var(--text); appearance: none; font-size: 13px; text-overflow: ellipsis; cursor: pointer; }
.project-dot { position: absolute; z-index: 1; left: 14px; width: 7px; height: 7px; background: var(--faint); border-radius: 2px; }
.project-dot.ready { background: var(--accent); }
.select-chevron { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.new-project-button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; padding: 11px 9px 0; background: transparent; border: 0; color: var(--muted); font-size: 11px; }
.new-project-button span { font-size: 18px; font-weight: 300; line-height: 1; }
.new-project-button:hover { color: var(--accent); }
.main-navigation { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 470; transition: background .15s, color .15s; }
.nav-item svg { width: 18px; height: 18px; opacity: .78; }
.nav-item:hover { background: #1b211a; color: var(--text); }
.nav-item.active { background: var(--accent-soft); border-color: #36422f; color: var(--accent); }
.nav-item.active svg { opacity: 1; }
.sidebar-footer { margin-top: auto; padding: 32px 8px 0; }
.server-indicator { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--border-soft); background: transparent; color: var(--muted); font-size: 11px; text-align: left; }
.server-indicator svg { width: 14px; height: 14px; margin-left: auto; color: var(--faint); }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); }
.status-dot.pending { background: var(--faint); }
.status-dot.warning { background: var(--orange); }
.status-dot.error { background: var(--red); }
.footer-note { color: var(--faint); font-size: 10px; }
.main-shell { margin-left: 238px; display: flex; flex-direction: column; width: calc(100% - 238px); min-width: 0; min-height: 100vh; min-height: 100dvh; }
.topbar { height: 66px; display: flex; flex: 0 0 66px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 34px; border-bottom: 1px solid var(--border-soft); background: #141714ee; }
.topbar-leading, .topbar-trailing { display: flex; align-items: center; gap: 15px; min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 13px; min-width: 0; font-size: 11px; color: var(--muted); }
.breadcrumbs > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 240px; }
.breadcrumbs strong { color: #cdd3c8; font-weight: 450; white-space: nowrap; }
.breadcrumb-separator { color: #4e5a49; }
.branch-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); padding: 5px 9px; border: 1px solid var(--border-soft); border-radius: 6px; font: 10px/1.4 var(--mono); max-width: 220px; }
.branch-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-pill svg { width: 14px; height: 14px; stroke: currentColor; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.icon-button svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.main-content { flex: 1; min-width: 0; padding: 34px 34px 40px; outline: none; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0 0 27px; }
.page-heading .eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: 1.9px; }
h1 { margin: 0; font-size: 29px; font-weight: 530; letter-spacing: -1px; line-height: 1.2; }
.page-description { color: var(--muted); font-size: 12px; margin: 11px 0 0; line-height: 1.6; }
.page-context { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.page-context:empty { display: none; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 34px; border-top: 1px solid var(--border-soft); color: var(--faint); font: 10px/1.5 var(--mono); }
.workspace-footer > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-footer > span:last-child { flex: 0 0 auto; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-heading { min-height: 51px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 12px; font-weight: 570; letter-spacing: -.1px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-heading > div > h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-heading .icon-button { width: 24px; height: 24px; margin: -5px -4px; }
.count-badge { display: inline-grid; place-items: center; min-width: 19px; height: 18px; padding: 1px 5px; border-radius: 4px; background: #2b3328; color: var(--muted); font: 10px/1 var(--mono); }
.subtle-text { color: var(--faint); font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; background: #232a22; border: 1px solid var(--border); }
.badge.green { color: var(--green); background: #253022; border-color: #36452f; }
.badge.orange { color: var(--orange); background: #332b20; border-color: #4a3c2a; }
.badge.red { color: var(--red); background: #352521; border-color: #53332c; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 530; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s; }
.button.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: #e1efcb; border-color: #e1efcb; }
.button.secondary { color: #ced6c8; background: #242c22; border-color: #3c4836; }
.button.secondary:hover:not(:disabled) { background: #30392c; }
.button.quiet { color: var(--muted); background: transparent; }
.button.quiet:hover { color: var(--text); background: var(--surface-hover); }
.button.small { min-height: 29px; padding: 5px 10px; font-size: 10px; border-radius: 6px; }
.button.small svg { width: 14px; height: 14px; }
.button .shortcut { opacity: .65; font: 10px var(--mono); margin-left: 5px; }
.loading-card { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.spinner { width: 17px; height: 17px; border: 2px solid #47513f; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-notice { margin: 0 0 20px; padding: 12px 15px; border: 1px solid #52412b; border-radius: 9px; background: #29241b; color: var(--orange); font-size: 12px; }
.error-state, .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 24px; text-align: center; }
.empty-icon { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #3a4533; border-radius: 14px; background: #242d21; color: var(--accent); margin-bottom: 7px; }
.empty-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2, .empty-state h3, .error-state h2, .error-state h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
.empty-state p, .error-state p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state .button { margin-top: 8px; }
.empty-state.compact, .error-state.compact { padding: 25px 20px; min-height: 135px; }
.empty-state.compact p { font-size: 11px; }
.error-state { color: var(--red); }
.error-state .button { margin-top: 5px; }
.welcome-panel { min-height: 400px; }
.welcome-panel .empty-state { min-height: 400px; }
.development-grid { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 16px; }
.explorer-panel { min-height: 475px; }
.explorer-path { display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--border-soft); color: var(--faint); min-height: 35px; }
.explorer-path span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 10px/1.6 var(--mono); }
.explorer-path .icon-button { flex: 0 0 23px; width: 23px; height: 23px; }
.explorer-path .icon-button svg { width: 13px; height: 13px; }
.file-tree { padding: 8px 6px 15px; max-height: 460px; overflow-y: auto; }
.tree-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 8px 10px; text-align: left; color: #b5bfb0; font-size: 11px; min-width: 0; }
.tree-item:hover { background: var(--surface-hover); color: var(--text); }
.tree-item.selected { color: var(--accent); background: #2b3526; border-color: #3d4935; }
.tree-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item .file-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; color: var(--faint); }
.tree-item .file-icon.folder { color: #b5c59d; }
.tree-item.selected .file-icon { color: var(--accent); }
.tree-item .tree-arrow { margin-left: auto; color: var(--faint); font-size: 13px; }
.tree-empty { margin: 23px 12px; font-size: 11px; color: var(--faint); line-height: 1.7; }
.editor-panel { display: flex; flex-direction: column; min-height: 475px; background: #191d19; }
.editor-header { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--border); background: #1d231c; }
.editor-file-name { display: flex; align-items: center; gap: 8px; min-width: 0; font: 11px/1.5 var(--mono); color: #c9d3c3; }
.editor-file-name svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; }
.editor-file-name > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dirty-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--orange); }
.editor-body { display: flex; height: 394px; min-height: 230px; padding-top: 14px; background: #191d19; overflow: hidden; }
.line-numbers { margin: 0; width: 48px; flex: 0 0 48px; padding: 0 12px 14px 0; overflow: hidden; color: #52604e; text-align: right; user-select: none; font: 11.5px/22px var(--mono); }
.code-editor { display: block; width: 100%; flex: 1 1 auto; height: 100%; margin: 0; padding: 0 18px 16px 6px; border: 0; border-radius: 0; background: transparent; color: #d6dfce; resize: none; outline: none !important; font: 11.5px/22px var(--mono); tab-size: 2; caret-color: var(--accent); white-space: pre; overflow: auto; }
.code-editor:focus { background: #1a1f19; }
.code-editor:read-only { color: var(--muted); }
.editor-statusbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 15px; color: var(--faint); font: 9px/1.6 var(--mono); border-top: 1px solid var(--border-soft); background: #1d231c; }
.editor-statusbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.editor-statusbar .modified { color: var(--orange); }
.editor-empty { flex: 1; min-height: 390px; }
.editor-empty .empty-icon { background: transparent; border-color: var(--border); color: #84937b; }
.editor-empty h3 { font-size: 16px; }
.editor-notice { border-bottom: 1px solid #5c4830; padding: 10px 15px; background: #30271d; color: var(--orange); font-size: 11px; }
.editor-notice > p { margin: 0 0 8px; }
.editor-notice > div { display: flex; flex-wrap: wrap; gap: 8px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 17px; }
.change-list, .commit-list, .job-list { list-style: none; margin: 0; padding: 3px 17px; }
.change-list li, .commit-list li { display: flex; align-items: center; gap: 11px; min-height: 49px; border-bottom: 1px solid var(--border-soft); }
.change-list li:last-child, .commit-list li:last-child { border-bottom: 0; }
.change-list .change-file { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 10px 0; color: #c1cbb9; text-align: left; font: 11px/1.5 var(--mono); }
.change-list .change-file:hover { color: var(--accent); }
.change-status { min-width: 19px; color: var(--orange); font: 10px var(--mono); text-align: center; }
.change-status.added { color: var(--green); }
.change-status.deleted { color: var(--red); }
.commit-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 1px solid #57664c; }
.commit-icon:before { content: ""; position: absolute; width: 4px; height: 4px; left: 4px; top: 4px; border-radius: 50%; background: #8a9d7a; }
.commit-copy { min-width: 0; flex: 1; padding: 9px 0; }
.commit-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 450; color: #c2cbbd; }
.commit-copy small { display: block; color: var(--faint); font-size: 9px; margin-top: 3px; }
.commit-hash { color: #829078; font: 9px var(--mono); }
.jobs-panel { margin-top: 17px; }
.job-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.job-list li:last-child { border: 0; }
.job-copy { min-width: 0; }
.job-copy strong { font-size: 11px; font-weight: 500; }
.job-copy small { display: block; color: var(--faint); font-size: 10px; margin-top: 3px; }
.job-log { margin-top: 9px; font-size: 10px; }
.job-log summary { cursor: pointer; color: var(--muted); padding: 2px 0; }
.job-log pre { max-width: min(680px, 100%); max-height: 240px; overflow: auto; margin: 8px 0 0; padding: 12px; background: #131912; border: 1px solid var(--border); border-radius: 6px; color: #becbb2; font: 10px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.file-browser-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; min-height: 55px; border-bottom: 1px solid var(--border); gap: 12px; }
.folder-breadcrumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.folder-breadcrumbs button { border: 0; border-radius: 4px; background: none; color: var(--muted); padding: 4px 6px; font: 11px var(--mono); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-breadcrumbs button:hover { background: var(--surface-hover); color: var(--text); }
.folder-breadcrumbs button:last-child { color: var(--accent); }
.folder-breadcrumbs > span { color: var(--faint); }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { padding: 12px 20px; color: var(--faint); font-size: 10px; font-weight: 500; background: #1a2019; border-bottom: 1px solid var(--border-soft); }
.data-table td { padding: 13px 20px; color: #b7c1b1; border-bottom: 1px solid var(--border-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.file-row:hover td { background: #222a20; }
.file-name-button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); padding: 0; font-size: 12px; text-align: left; min-height: 23px; width: 100%; }
.file-name-button svg { width: 17px; height: 17px; stroke: #a7b697; }
.file-name-button span { overflow-wrap: anywhere; }
.file-row td.size { font: 10px var(--mono); color: var(--faint); white-space: nowrap; }
.file-row td.type { color: var(--faint); font-size: 10px; }
.file-row td:last-child { text-align: right; color: var(--faint); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.stat-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 19px 20px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.stat-label svg { width: 17px; height: 17px; color: var(--faint); stroke: currentColor; stroke-width: 1.4; }
.stat-value { display: block; margin: 16px 0 4px; color: var(--text); font-size: 27px; font-weight: 500; letter-spacing: -1px; line-height: 1.25; overflow-wrap: anywhere; }
.stat-value.small { font-size: 19px; letter-spacing: -.4px; }
.stat-detail { display: block; color: var(--faint); font-size: 10px; line-height: 1.7; }
.connection-panel { padding: 22px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 15px; }
.connection-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; background: #293124; border: 1px solid #3a4533; border-radius: 10px; color: var(--accent); }
.connection-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; }
.connection-copy { flex: 1; min-width: 0; }
.connection-copy h2 { margin: 1px 0 7px; font-size: 14px; font-weight: 520; letter-spacing: -.2px; }
.connection-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.connection-copy code { color: #b8c7ac; font-size: 11px; }
.database-table-name { font: 11px var(--mono); color: var(--text); }
.database-columns { display: flex; flex-wrap: wrap; gap: 5px; }
.database-columns span { font: 9px/1.5 var(--mono); color: var(--faint); padding: 3px 5px; background: #252d22; border-radius: 4px; }
.preview-panel { background: #181d17; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 17px; border-bottom: 1px solid var(--border); background: var(--surface); }
.device-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: #151a14; }
.device-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; border: 0; border-radius: 5px; color: var(--faint); background: transparent; font-size: 10px; }
.device-switch button[aria-pressed="true"] { background: #323e2b; color: var(--accent); }
.device-switch button:hover { color: var(--text); }
.device-switch svg { width: 14px; height: 14px; }
.preview-url { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; padding: 7px 10px; background: #161b15; border: 1px solid var(--border-soft); border-radius: 6px; color: var(--muted); font: 10px var(--mono); }
.preview-url svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--faint); }
.preview-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.preview-stage { min-height: 420px; padding: 25px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; background-image: radial-gradient(#36422c 1px, transparent 1px); background-size: 18px 18px; background-position: -2px -2px; }
.preview-holder { position: relative; min-width: 0; transition: width .15s, height .15s; }
.preview-screen { position: absolute; top: 0; left: 0; transform-origin: top left; background: #fff; border: 1px solid #526049; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 35px #0003; }
.preview-screen[data-device="mobile"] { border: 6px solid #343d2e; border-radius: 27px; }
.preview-screen[data-device="tablet"] { border: 5px solid #343d2e; border-radius: 17px; }
.preview-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 17px; border-top: 1px solid var(--border); color: var(--faint); font-size: 10px; }
.preview-footer > span { display: flex; align-items: center; gap: 7px; }
.preview-empty { min-height: 390px; }
.hosting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 18px; }
.detail-list { margin: 0; padding: 2px 19px; }
.detail-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-size: 11px; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--faint); }
.detail-list dd { margin: 0; color: #c9d3c3; text-align: right; overflow-wrap: anywhere; }
.service-list { margin: 0; padding: 2px 19px; list-style: none; }
.service-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.service-list li:last-child { border: 0; }
.service-list .service-name { font-size: 11px; }
.memory-bar { width: 100%; height: 4px; margin-top: 14px; background: #30392a; border-radius: 2px; overflow: hidden; }
.memory-bar > span { display: block; height: 100%; background: #9eaf84; border-radius: 2px; }
.migration-copy { padding: 18px 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.migration-copy p { margin: 0; }
.migration-copy .badge { margin-top: 12px; }
.toast-region { position: fixed; bottom: 26px; left: calc(50% + 100px); transform: translateX(-50%); z-index: 100; max-width: min(460px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 17px; border-radius: 10px; border: 1px solid #4a5b3e; background: #293622; color: var(--accent); font-size: 12px; box-shadow: 0 8px 35px #0003; }
.toast.error { border-color: #654135; background: #382920; color: var(--red); }
.toast .status-dot { margin-top: 5px; }
.modal-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; margin: auto; padding: 27px; background: #1b211a; color: var(--text); border: 1px solid #45503d; border-radius: 16px; box-shadow: 0 30px 100px #0007; }
.modal-dialog::backdrop { background: #080b07bd; backdrop-filter: blur(4px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal-heading .eyebrow { color: #9eae8f; font-size: 9px; }
.modal-heading h2 { font-size: 23px; font-weight: 520; letter-spacing: -.7px; margin: 0; }
.modal-heading .icon-button { margin: -6px -6px 0 0; }
.modal-copy { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 17px 0 24px; }
.field-label { display: block; color: #cad4c3; font-size: 11px; margin: 17px 0 7px; }
.text-input { display: block; width: 100%; background: #131912; border: 1px solid #3b4635; border-radius: 8px; padding: 11px 12px; min-height: 42px; color: var(--text); font-size: 13px; }
.text-input:focus { border-color: #8a9b74; }
.text-input::placeholder { color: #66715f; }
.text-input.monospace { font-size: 12px; }
.field-help { color: var(--faint); font-size: 10px; margin: 7px 0 0; }
.form-error { color: var(--red); margin: 15px 0 0; font-size: 12px; line-height: 1.6; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 27px; }
.modal-actions.wrap { flex-wrap: wrap; }
.compact.modal-dialog { width: min(490px, calc(100vw - 32px)); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: #080b07a8; backdrop-filter: blur(2px); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a4533; border-radius: 4px; }
@media (min-width: 1600px) {
  .main-content { padding-left: 48px; padding-right: 48px; }
  .development-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .editor-body { height: 470px; }
  .file-tree { max-height: 540px; }
}
@media (max-width: 1160px) {
  .sidebar { width: 218px; flex-basis: 218px; padding-left: 13px; padding-right: 13px; }
  .main-shell { margin-left: 218px; width: calc(100% - 218px); }
  .main-content { padding: 28px 24px 32px; }
  .topbar { padding: 0 24px; }
  .development-grid { grid-template-columns: 188px minmax(0, 1fr); gap: 12px; }
  .preview-toolbar { flex-wrap: wrap; }
  .preview-url { order: 3; flex-basis: 100%; }
  .preview-actions { margin-left: auto; }
  .stat-card { padding: 17px; }
  .stat-value { font-size: 24px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 250px; }
  .sidebar.open { transform: translateX(0); }
  .main-shell { margin-left: 0; width: 100%; }
  .mobile-menu { display: inline-flex; margin-left: -5px; }
  .topbar { height: 61px; flex-basis: 61px; padding: 0 24px; }
  .development-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .toast-region { left: 50%; }
  .page-heading { margin-bottom: 23px; }
}
@media (max-width: 640px) {
  .main-content { padding: 25px 16px 28px; }
  .topbar { padding: 0 16px; height: 57px; flex-basis: 57px; }
  .topbar-leading { gap: 8px; }
  .topbar-trailing { gap: 6px; }
  .breadcrumbs { gap: 8px; font-size: 10px; }
  .breadcrumbs > span:first-child { max-width: 125px; }
  .branch-pill { display: none !important; }
  h1 { font-size: 25px; letter-spacing: -.7px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
  .page-context { flex-basis: 100%; flex-wrap: wrap; }
  .page-description { font-size: 11px; margin-top: 9px; max-width: 310px; }
  .page-context .badge { font-size: 9px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .development-grid { grid-template-columns: 1fr; gap: 13px; }
  .explorer-panel { min-height: 0; }
  .explorer-panel .panel-heading { min-height: 43px; padding: 12px 15px; }
  .file-tree { max-height: 195px; padding: 6px; }
  .tree-item { padding: 9px 10px; }
  .explorer-path { padding: 5px 10px; min-height: 31px; }
  .editor-panel { min-height: 425px; }
  .editor-body { height: 340px; }
  .editor-header { padding: 9px 12px; }
  .editor-file-name { font-size: 10px; }
  .line-numbers { width: 36px; flex-basis: 36px; font-size: 11px; padding-right: 9px; }
  .code-editor { font-size: 12px; padding-right: 10px; }
  .editor-statusbar { font-size: 8px; padding: 8px 11px; }
  .editor-statusbar > div { gap: 7px; }
  .button .shortcut { display: none; }
  .bottom-grid, .hosting-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 14px 12px; border-radius: 10px; }
  .stat-label { font-size: 9px; }
  .stat-label svg { display: none; }
  .stat-value { font-size: 22px; margin-top: 13px; }
  .stat-value.small { font-size: 15px; }
  .stat-detail { font-size: 9px; }
  .connection-panel { padding: 18px 15px; gap: 11px; }
  .connection-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
  .connection-icon svg { width: 17px; height: 17px; }
  .connection-copy h2 { font-size: 13px; }
  .connection-copy p { font-size: 11px; }
  .connection-panel > .badge { display: none; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .data-table th { font-size: 9px; }
  .file-row td.type, .data-table th.type { display: none; }
  .file-row td:last-child { padding-left: 0; }
  .file-name-button { font-size: 11px; }
  .file-browser-toolbar { padding: 10px; }
  .file-browser-toolbar > .subtle-text { display: none; }
  .preview-toolbar { gap: 10px; padding: 11px; }
  .device-switch button { padding: 6px 8px; font-size: 9px; gap: 5px; }
  .device-switch button svg { width: 13px; height: 13px; }
  .preview-actions .button { padding: 5px 8px; font-size: 10px; }
  .preview-stage { padding: 14px; min-height: 300px; }
  .preview-footer { padding: 10px 12px; font-size: 9px; }
  .preview-footer > span:first-child { max-width: 75%; }
  .workspace-footer { padding: 9px 16px; font-size: 8px; }
  .empty-state, .error-state { padding: 40px 19px; }
  .empty-state h2, .error-state h2 { font-size: 17px; }
  .empty-state p, .error-state p { font-size: 11px; }
  .modal-dialog { padding: 22px; }
  .modal-heading h2 { font-size: 21px; }
  .modal-actions.wrap { justify-content: stretch; }
  .modal-actions.wrap .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Atelier : préparation, exécutions et configuration. */
.sidebar { overflow-y: auto; }
.brand { margin-bottom: 27px; }
.project-picker { margin-bottom: 22px; }
.main-navigation { gap: 4px; }
.sidebar-footer { padding-top: 22px; }
.logout-button { border: 0; padding: 9px 0 0; color: var(--muted); background: transparent; font-size: 11px; }
.logout-button:hover { color: var(--text); }
.mobile-navigation { display: none; }
.auth-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 20px; background: radial-gradient(ellipse at 50% 18%, #273322 0, #141714 55%); }
.auth-card { width: min(440px, 100%); padding: 37px; box-shadow: 0 24px 80px #0003; }
.auth-mark { margin-bottom: 30px; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h1 { font-size: 26px; line-height: 1.3; }
.auth-copy { margin: 15px 0 25px; color: var(--muted); line-height: 1.8; font-size: 12px; }
.auth-submit { width: 100%; margin-top: 25px; min-height: 43px; }
.auth-footnote { margin: 30px 0 0; color: var(--faint); font-size: 10px; line-height: 1.6; }
.auth-card .form-error { margin-bottom: 10px; }
.development-tabs { display: flex; align-items: stretch; gap: 6px; border-bottom: 1px solid var(--border); margin: -3px 0 24px; padding: 0 0 10px; }
.development-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; min-height: 40px; padding: 9px 14px; font-size: 12px; }
.development-tabs button:hover { background: var(--surface-hover); color: var(--text); }
.development-tabs button[aria-selected="true"] { border-color: #3c4a32; background: var(--accent-soft); color: var(--accent); }
.development-tabs svg { width: 16px; height: 16px; }
.brief-layout, .settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 20px; align-items: start; }
.brief-main, .brief-aside, .settings-main, .settings-aside, .design-aside { display: grid; gap: 18px; min-width: 0; }
.brief-aside, .settings-aside { position: sticky; top: 20px; }
.idea-panel { padding: 23px; background: linear-gradient(145deg, #222b20, #1b211b); border-color: #3b4a34; }
.section-intro { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.section-intro > div { flex: 1; min-width: 0; }
.section-step { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid #4b5b41; background: #2c3926; border-radius: 10px; font: 11px var(--mono); color: var(--accent); }
.section-intro h2 { margin: 1px 0 7px; font-size: 19px; letter-spacing: -.55px; font-weight: 520; line-height: 1.3; }
.section-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
textarea.text-input { resize: vertical; line-height: 1.75; }
.idea-input { background: #141b13; border-color: #46533d; font-size: 14px; min-height: 135px; }
.form-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; flex-wrap: wrap; }
.button-group { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.local-label { display: inline-flex; align-items: center; gap: 6px; color: #aebd9e; font-size: 10px; }
.local-label svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; }
.field-help { color: #98a48f; font-size: 11px; line-height: 1.7; }
.brief-fields { padding: 5px 22px 22px; display: grid; gap: 2px; }
.brief-fields .field-label { font-size: 12px; margin-top: 20px; }
.brief-fields .text-input { font-size: 13px; }
.brief-actions { padding: 17px 22px; border-top: 1px solid var(--border-soft); margin: 0; }
.brief-actions > .field-help { margin: 0; max-width: 310px; }
.inline-error { margin: 10px 22px 20px; }
.question-list { margin: 0; padding: 4px 14px 9px; list-style: none; }
.question-list li { border-bottom: 1px solid var(--border-soft); }
.question-list li:last-child { border: 0; }
.question-list button { display: flex; align-items: center; justify-content: space-between; gap: 11px; width: 100%; border: 0; background: transparent; color: #c6d0be; text-align: left; padding: 14px 4px; font-size: 11px; line-height: 1.7; }
.question-list button:hover { color: var(--accent); }
.question-list svg { width: 14px; height: 14px; transform: rotate(45deg); color: var(--faint); }
.questions-complete { display: flex; align-items: flex-start; gap: 9px; padding: 20px; color: var(--green); font-size: 12px; line-height: 1.8; }
.questions-complete svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; margin-top: 4px; }
.prompt-copy { padding: 16px; }
.prompt-copy > p { color: var(--muted); font-size: 11px; margin: 0 0 13px; line-height: 1.8; }
.prompt-copy .field-help { margin-top: 12px; font-size: 10px; }
.prompt-output { width: 100%; resize: vertical; border: 1px solid var(--border-soft); border-radius: 8px; padding: 13px; color: #bac6af; background: #151b14; font: 10px/1.85 var(--mono); margin-bottom: 13px; }
.memory-panel summary, .brief-history summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 16px 19px; color: #c7d1bf; font-size: 12px; }
.memory-panel summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.memory-panel summary svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; }
.memory-panel[open] summary, .brief-history[open] summary { border-bottom: 1px solid var(--border-soft); }
.memory-help { margin: 17px 22px 0; }
.brief-version-list { list-style: none; margin: 0; padding: 6px 19px; }
.brief-version-list li { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--border-soft); padding: 12px 0; font-size: 11px; }
.brief-version-list li:last-child { border: 0; }
.assistant-panel .section-intro { padding: 23px 24px; margin: 0; border-bottom: 1px solid var(--border-soft); }
.assistant-body { padding: 18px 24px 22px; }
.assistant-status { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.blocked-reasons { padding-left: 17px; margin: 9px 0 19px; color: #b7b09b; font-size: 11px; line-height: 1.9; }
.assistant-context { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.assistant-context .field-help { margin: 0; }
.conversation-list > li { display: block; }
.conversation-list .job-copy { width: 100%; min-width: 0; }
.job-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-response { margin-top: 18px; padding: 16px; border: 1px solid #34412d; border-radius: 10px; background: #20291c; }
.job-response .eyebrow { font-size: 9px; }
.job-response pre { margin: 0; color: #d1dac7; font: 12px/1.85 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.job-log pre { max-height: 480px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.job-artifacts { padding-left: 20px; color: var(--muted); font: 11px/1.9 var(--mono); overflow-wrap: anywhere; }
.job-id { display: block; margin-top: 14px; color: var(--faint); font: 9px var(--mono); overflow-wrap: anywhere; }
.job-budget { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.job-apply { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 17px; }
.brief-suggestion dl { margin: 13px 0; }
.brief-suggestion dl > div { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.brief-suggestion dt { color: var(--faint); font-size: 10px; margin-bottom: 6px; }
.brief-suggestion dd { margin: 0; color: #cad4c2; font: 12px/1.8 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.job-questions { color: var(--muted); font-size: 11px; line-height: 1.9; padding-left: 18px; }
.diff-panel { margin-top: 18px; }
.git-diff { max-height: 550px; overflow: auto; padding: 18px; margin: 0; color: #bed0ad; background: #151b13; font: 11px/1.8 var(--mono); }
.diff-untracked { padding: 0 20px 15px; font-size: 11px; }
.diff-untracked code { overflow-wrap: anywhere; }
.settings-form { padding: 9px 22px 22px; }
.settings-form > .connection-help { padding: 0; margin-bottom: 18px; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 16px; border-bottom: 1px solid var(--border-soft); }
.switch-line strong { font-size: 12px; font-weight: 550; }
.switch-line small { display: block; max-width: 420px; color: var(--muted); font-size: 11px; margin-top: 5px; line-height: 1.7; }
.switch-line input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.check-line { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 15px; line-height: 1.7; }
.check-line input { accent-color: var(--accent); margin: 3px 0 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.form-grid > div { min-width: 0; }
.form-section-title { font-size: 14px; font-weight: 550; margin: 26px 0 10px; padding-top: 23px; border-top: 1px solid var(--border-soft); }
.advanced-settings { margin-top: 23px; border: 1px solid var(--border); border-radius: 9px; padding: 0 15px 15px; }
.advanced-settings:not([open]) { padding-bottom: 0; }
.advanced-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; cursor: pointer; font-size: 12px; }
.advanced-settings[open] summary { border-bottom: 1px solid var(--border-soft); margin-bottom: 15px; }
.advanced-settings summary .subtle-text { font-size: 9px; text-align: right; }
.connection-help { margin: 0; padding: 17px 20px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.connection-detail { border-top: 1px solid var(--border-soft); }
.connection-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 17px 20px; font-size: 12px; }
.connection-detail summary::after { content: '+'; font-size: 17px; color: var(--faint); }
.connection-detail[open] summary::after { content: '−'; }
.connection-detail summary > span:first-child { flex: 1; }
.connection-detail form { padding: 0 20px 22px; }
.usage-list { margin: 0; padding: 4px 19px; }
.usage-list > div { padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.usage-list dt { color: var(--muted); font-size: 11px; }
.usage-list dd { margin: 7px 0 0; color: var(--text); font-size: 20px; letter-spacing: -.5px; }
.settings-note { padding: 23px; }
.settings-note h3 { margin: 0 0 12px; font-size: 15px; font-weight: 520; line-height: 1.5; }
.settings-note p { font-size: 11px; line-height: 1.9; color: var(--muted); }
.settings-note .empty-icon { width: 37px; height: 37px; margin-bottom: 17px; }
.settings-note .empty-icon svg { width: 20px; height: 20px; }
.account-detail { padding: 17px 21px; border-bottom: 1px solid var(--border-soft); }
.account-detail:last-child { border: 0; }
.account-detail summary { cursor: pointer; font-size: 12px; color: #cbd5c3; }
.account-detail form > .button { margin-top: 18px; }
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 20px; align-items: start; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 15px; }
.color-field > label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.color-field > div { display: flex; align-items: center; gap: 10px; }
.color-field input { width: 42px; height: 35px; padding: 2px; background: #172015; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.color-field code { color: #cbd5c3; font-size: 11px; }
.section-rule { border: 0; border-top: 1px solid var(--border); margin: 23px 0 17px; }
#applyDesign { margin-top: 17px; }
.design-sample { padding: 32px 26px; background: var(--sample-background); color: var(--sample-text); font-family: var(--sample-font); min-height: 345px; }
.sample-kicker { font: 9px/1.5 var(--font); letter-spacing: 1.5px; opacity: .65; }
.design-sample h3 { margin: 17px 0 14px; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; font-weight: 600; }
.design-sample > p { font-size: 12px; line-height: 1.8; opacity: .75; }
.sample-card { padding: 18px; background: var(--sample-surface); border-radius: var(--sample-radius); margin: 24px 0; display: flex; align-items: center; gap: 12px; }
.sample-card strong { display: block; font-size: 12px; font-weight: 550; }
.sample-card small { display: block; font-size: 10px; margin-top: 5px; opacity: .7; }
.sample-accent { width: 9px; height: 30px; background: var(--sample-accent); border-radius: var(--sample-radius); }
.sample-button { display: inline-block; padding: 11px 17px; color: #fff; background: var(--sample-primary); border-radius: var(--sample-radius); font-size: 12px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.security-checks { margin: 0; padding: 0 19px; list-style: none; }
.security-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--border-soft); }
.security-checks li:last-child { border: 0; }
.check-icon { color: var(--faint); padding-top: 1px; }
.check-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }
.security-checks li > div { flex: 1; min-width: 0; }
.security-checks strong { font-size: 12px; font-weight: 500; }
.security-checks p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.security-project-intro { padding: 19px 22px; }
.security-project-intro p { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.security-audit { grid-column: 1 / -1; }
.audit-list { padding: 3px 20px; margin: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px; gap: 13px; border-bottom: 1px solid var(--border-soft); padding: 13px 0; font-size: 11px; overflow-wrap: anywhere; }
.audit-list li:last-child { border: 0; }
.audit-list time, .audit-list small { color: var(--faint); font-size: 10px; }
.scan-date { margin: 0 22px 10px; }
.scan-limits { color: var(--muted); font-size: 10px; line-height: 1.9; margin: 16px 21px 22px; padding-left: 15px; }
.finding-list { list-style: none; margin: 0; padding: 5px 20px; }
.finding-list li { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding: 13px 0; }
.finding-list strong { font-size: 11px; font-weight: 500; }
.finding-list code { width: 100%; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.production-controls { margin-bottom: 22px; }
.publication-body { padding: 19px 22px; }
.publication-body > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.publication-body > .button { margin-top: 17px; }
.production-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 19px; align-items: start; }
.release-list, .backup-list { margin: 0; padding: 0 20px; list-style: none; }
.release-list li, .backup-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.release-list li:last-child, .backup-list li:last-child { border: 0; }
.release-list li > div:first-child, .backup-list li > div:first-child { flex: 1; min-width: 0; }
.release-list strong, .backup-list strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.release-list small, .backup-list small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.release-list .field-help, .backup-list .field-help { font-size: 10px; }
.backup-list .button-group { justify-content: flex-end; }
.backup-scope { margin: 0 20px 18px; font-size: 10px; }
.database-link-panel { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.database-link-panel h2 { font-size: 13px; font-weight: 550; margin: 0 0 7px; }
.database-link-panel p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.8; max-width: 520px; }
.database-link-panel .button-group { flex: 0 0 auto; }
.database-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; padding: 18px; }
.database-table-card { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 7px 10px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: #20271d; text-align: left; }
.database-table-card:hover { border-color: #627650; }
.database-table-card svg { width: 18px; height: 18px; grid-row: 1 / 3; color: var(--faint); }
.database-table-card span { overflow-wrap: anywhere; font: 12px var(--mono); }
.database-table-card small { color: var(--muted); font-size: 10px; }
.database-rows { margin-top: 20px; }
.database-values { min-width: 100%; }
.database-values td { max-width: 320px; overflow-wrap: anywhere; font-size: 11px; vertical-align: top; }
.database-pagination { padding: 14px 18px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.file-create-toolbar { display: flex; gap: 8px; padding: 11px 18px; border-bottom: 1px solid var(--border-soft); }
.file-row-actions { text-align: right; }
.danger-text { color: var(--red); }
.file-row-actions .button { white-space: nowrap; }
[inert] { opacity: .7; }
@media (max-width: 1160px) {
  .brief-layout, .settings-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
  .security-grid, .production-history-grid { grid-template-columns: 1fr; }
  .database-link-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1080px) {
  .brief-layout, .settings-layout { grid-template-columns: 1fr; }
  .brief-aside, .settings-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: static; }
  .design-layout { grid-template-columns: 1fr; }
  .design-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .auth-card { padding: 28px 24px; }
  .auth-card h1 { font-size: 24px; }
  .auth-screen .text-input, .brief-fields .text-input, .text-input { font-size: 16px; }
  .main-shell { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  .sidebar { padding-top: 24px; padding-bottom: 24px; }
  .sidebar .brand { margin-bottom: 25px; }
  .sidebar-footer { padding-top: 18px; }
  .mobile-navigation { position: fixed; display: grid; grid-template-columns: repeat(3, 1fr); inset: auto 0 0; background: #151c13f5; backdrop-filter: blur(14px); border-top: 1px solid #394431; z-index: 24; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-navigation button { display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 47px; background: transparent; border: 0; border-radius: 7px; color: #b4c1aa; font-size: 10px; }
  .mobile-navigation button > span { font-size: 18px; line-height: 24px; }
  .mobile-navigation button[aria-current="page"] { color: var(--accent); background: #2b372680; }
  .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .development-tabs { gap: 4px; margin-bottom: 19px; padding-bottom: 8px; }
  .development-tabs button { flex: 1; padding: 9px 6px; font-size: 10px; line-height: 1.5; gap: 5px; }
  .development-tabs svg { display: none; }
  .brief-aside, .settings-aside, .design-aside { grid-template-columns: 1fr; }
  .idea-panel { padding: 19px 17px; }
  .section-intro { gap: 10px; }
  .section-intro h2 { font-size: 18px; }
  .section-intro p { font-size: 11px; }
  .section-step { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
  .idea-input { font-size: 16px; }
  .form-toolbar { align-items: stretch; }
  .idea-panel .form-toolbar { flex-direction: column; gap: 13px; }
  .brief-fields { padding: 2px 17px 20px; }
  .brief-actions { padding: 16px 17px; }
  .brief-actions .button-group { width: 100%; }
  .brief-actions .button-group .button { flex: 1; padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .brief-editor .panel-heading { flex-wrap: wrap; }
  .memory-panel summary > .subtle-text { display: none; }
  .prompt-output { font-size: 11px; }
  .assistant-panel .section-intro { padding: 20px 17px; flex-wrap: wrap; }
  .assistant-panel .section-intro > .badge { margin-left: 38px; }
  .assistant-body { padding: 17px; }
  .assistant-body .form-toolbar > .button-group { width: 100%; }
  .assistant-body .form-toolbar > .button-group:last-child .button { flex: 1 1 100%; }
  .settings-form { padding: 7px 17px 21px; }
  .form-grid { gap: 0 12px; }
  .form-grid .field-label { min-height: 32px; display: flex; align-items: flex-end; }
  .form-grid input { min-width: 0; }
  .connection-detail summary, .connection-detail form { padding-left: 17px; padding-right: 17px; }
  .connection-detail summary { flex-wrap: wrap; gap: 8px; }
  .connection-detail summary > span:first-child { flex: 1 1 100px; }
  .connection-detail summary .badge { font-size: 9px; }
  .account-detail { padding: 17px; }
  .security-checks { padding: 0 16px; }
  .security-checks li { gap: 9px; flex-wrap: wrap; }
  .security-checks li > .badge { margin-left: 27px; }
  .security-checks li > div { flex-basis: calc(100% - 32px); }
  .security-grid .panel-heading { flex-wrap: wrap; }
  .audit-list { padding: 3px 16px; }
  .audit-list li { grid-template-columns: 1fr; gap: 5px; }
  .publication-body { padding: 17px; }
  .publication-body > .button { width: 100%; }
  .release-list, .backup-list { padding: 0 17px; }
  .backup-list li { flex-direction: column; }
  .backup-list .button-group { justify-content: flex-start; }
  .database-values td { max-width: 240px; }
  .database-pagination { gap: 8px; }
  .database-pagination .field-help { font-size: 9px; }
  .file-row-actions .button { display: block; padding: 4px 0; min-height: 28px; font-size: 9px; }
  .file-row .size { display: none; }
  .data-table:has(.file-row) th:nth-child(3) { display: none; }
  .file-name-button > span { max-width: 180px; overflow-wrap: anywhere; white-space: normal; }
}

/* Développement : une conversation, un champ, une décision explicite. */
body[data-view="development"] .page-heading { max-width: 880px; margin-left: auto; margin-right: auto; }
body[data-view="development"] .page-description { max-width: 600px; }
.conversation-workspace { width: 100%; max-width: 880px; margin: 0 auto; min-width: 0; }
.conversation-panel { min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: #181e17; overflow: hidden; }
.conversation-thread { min-height: 220px; max-height: max(240px, calc(100dvh - 610px)); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 27px 25px; }
.conversation-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 220px; color: var(--muted); font-size: 12px; }
.conversation-welcome { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; min-height: 250px; padding: 25px 32px; }
.conversation-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border: 1px solid #405036; background: #293723; color: var(--accent); border-radius: 14px; }
.conversation-mark svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; }
.conversation-welcome h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.6px; margin: 0 0 12px; font-weight: 520; }
.conversation-welcome p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 440px; margin: 0; }
.conversation-messages { list-style: none; margin: 0; padding: 0; }
.conversation-turn { margin: 0 0 31px; padding: 0; }
.conversation-turn:last-child { margin-bottom: 0; }
.conversation-message { min-width: 0; max-width: 100%; }
.user-message { width: fit-content; max-width: 85%; margin: 0 0 25px auto; background: #2a3525; border: 1px solid #3a4932; border-radius: 15px 15px 4px 15px; padding: 15px 19px; }
.assistant-message { padding: 0 5px 0 2px; }
.message-author { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 600; }
.message-author svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; }
.user-message .message-author { color: #b1c4a4; font-size: 10px; }
.message-author .spinner { width: 12px; height: 12px; margin-left: 3px; }
.message-state { margin-left: auto; font-weight: 400; color: var(--orange); font-size: 10px; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.85 var(--font); color: #dae2d4; }
.message-more { margin-top: 8px; }
.message-more summary { font-size: 11px; color: var(--muted); cursor: pointer; padding: 7px 0; }
.message-more > .message-text { padding-top: 7px; }
.message-status { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.message-status.attention { color: #dbbd91; }
.message-questions { margin-top: 16px; font-size: 13px; line-height: 1.9; color: #d1ddc7; }
.message-questions p { margin: 0 0 7px; }
.message-questions ol { margin: 0; padding-left: 22px; }
.message-questions li { padding-left: 3px; margin-bottom: 6px; overflow-wrap: anywhere; }
.message-details { margin-top: 14px; color: var(--muted); }
.message-details > summary { display: list-item; width: fit-content; cursor: pointer; font-size: 11px; padding: 6px 0; }
.message-details[open] { border-top: 1px solid var(--border-soft); padding-top: 6px; }
.message-details-body { padding: 4px 0 12px; }
.message-details-body h4 { margin: 18px 0 8px; color: #c4cfba; font-size: 11px; font-weight: 550; }
.message-details .job-budget { margin-top: 7px; }
.message-details .field-help { font-size: 10px; }
.message-details .job-log { font-size: 11px; }
.message-details .job-log pre { width: 100%; max-width: 100%; }
.message-brief, .conversation-current-brief { border: 1px solid #3b4933; border-radius: 10px; background: #20291d; min-width: 0; }
.message-brief { margin-top: 18px; }
.conversation-current-brief { margin-bottom: 15px; background: #1c2419; }
.message-brief > summary, .conversation-current-brief > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; padding: 15px 17px; font-size: 12px; color: #d7e2cd; }
.message-brief > summary::-webkit-details-marker, .conversation-current-brief > summary::-webkit-details-marker { display: none; }
.message-brief > summary > span:first-child, .conversation-current-brief > summary > span:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.message-brief > summary::after, .conversation-current-brief > summary::after { content: '+'; color: var(--accent); font-size: 19px; font-weight: 300; }
.message-brief[open] > summary::after, .conversation-current-brief[open] > summary::after { content: '−'; }
.message-brief > summary svg, .conversation-current-brief > summary svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; }
.brief-document-state { margin-left: auto; color: #99ad8b; font-size: 10px; text-align: right; }
.conversation-brief-body { border-top: 1px solid #36432f; padding: 18px; }
.brief-project-label { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.conversation-brief-document { margin: 0; }
.conversation-brief-document > div { padding: 15px 0; border-bottom: 1px solid #303d29; }
.conversation-brief-document > div:first-child { padding-top: 0; }
.conversation-brief-document > div:last-child { border: 0; }
.conversation-brief-document dt { color: #a8bb98; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.conversation-brief-document dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #d4ddcd; font-size: 13px; line-height: 1.85; }
.brief-launch-action { padding-top: 16px; border-top: 1px solid #36432f; }
.brief-launch-action > .button { min-height: 43px; font-size: 12px; }
.brief-launch-action .field-help { margin-top: 11px; }
.brief-document-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.conversation-context { margin-top: 15px; border-top: 1px solid var(--border); padding-top: 13px; }
.conversation-context > summary { color: var(--muted); font-size: 11px; cursor: pointer; }
.conversation-context .brief-fields { padding-left: 0; padding-right: 0; }
.conversation-context .memory-help { margin-left: 0; margin-right: 0; }
.conversation-context .brief-actions { padding-left: 0; padding-right: 0; }
.conversation-compose { padding: 17px 20px 14px; border-top: 1px solid var(--border); background: #1c2419; }
#messageForm { border: 1px solid #4a5c3e; border-radius: 12px; background: #141b12; overflow: hidden; }
#messageForm:focus-within { border-color: #8fa676; box-shadow: 0 0 0 2px #8fa67618; }
.message-input { display: block; width: 100%; resize: none; border: 0; border-radius: 12px 12px 0 0; padding: 15px 17px 7px; outline: none !important; background: transparent; color: var(--text); font: 14px/1.8 var(--font); min-height: 106px; max-height: 230px; }
.message-input::placeholder { color: #8a9a80; }
.message-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 9px 11px 11px 17px; }
.message-draft-state { color: #839279; font-size: 10px; line-height: 1.6; }
#sendMessage { min-height: 39px; flex-shrink: 0; padding-left: 15px; padding-right: 15px; }
.conversation-help { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.conversation-help > p { color: #9daa94; font-size: 10px; line-height: 1.75; margin: 0; }
.conversation-help > .button { flex-shrink: 0; }
.conversation-error, .conversation-inline-error, .request-recovery { padding: 13px 16px; background: #30281d; color: #e1bf8f; border-radius: 9px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.conversation-error { margin: 0 20px 16px; }
.conversation-inline-error { margin: 10px 0; }
.request-recovery { border: 1px solid #58432b; margin-bottom: 14px; }
.request-recovery > p { margin: 0 0 10px; }
.files-workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 17px; align-items: start; }
.file-browser-panel .data-table th, .file-browser-panel .data-table td { padding-left: 12px; padding-right: 12px; }
.file-browser-panel .file-row .type, .file-browser-panel th.type { display: none; }
.file-browser-panel .file-row-actions .button { display: block; min-height: 28px; }
.file-versions { margin-top: 20px; padding: 0 18px 18px; }
.file-versions:not([open]) { padding-bottom: 0; }
.file-versions > summary { display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 52px; font-size: 12px; color: #cbd5c3; }
.file-versions > summary svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.file-versions .bottom-grid { margin-top: 0; }
.file-job-history { margin-top: 20px; }
.file-job-history > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.file-job { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.file-job > strong { font-size: 12px; font-weight: 500; }
.file-job > .badge { margin-left: 12px; }
@media (max-width: 1100px) {
  .files-workspace { grid-template-columns: 1fr; }
  .file-browser-panel #fileTableBody { max-height: 330px; overflow: auto; }
}
@media (max-width: 640px) {
  body[data-view="development"] .main-content { padding: 20px 12px 22px; }
  body[data-view="development"] .page-heading { margin: 0 4px 17px; }
  body[data-view="development"] .page-heading .eyebrow { display: none; }
  body[data-view="development"] .page-description { font-size: 12px; margin-top: 8px; }
  .conversation-panel { border-radius: 13px; }
  .conversation-thread { padding: 19px 14px; max-height: max(190px, calc(100dvh - 560px)); min-height: 190px; }
  .conversation-welcome { min-height: 210px; padding: 16px 6px; }
  .conversation-welcome h2 { font-size: 21px; }
  .conversation-welcome p { font-size: 12px; }
  .user-message { max-width: 93%; padding: 13px 14px; margin-bottom: 23px; }
  .message-text, .message-questions, .conversation-brief-document dd { font-size: 13px; }
  .assistant-message { padding-right: 0; }
  .message-brief > summary, .conversation-current-brief > summary { flex-wrap: wrap; padding: 13px 12px; gap: 5px 8px; }
  .message-brief > summary > span:first-child, .conversation-current-brief > summary > span:first-child { flex: 1 1 calc(100% - 30px); }
  .brief-document-state { order: 3; flex-basis: 100%; margin-left: 26px; text-align: left; }
  .conversation-brief-body { padding: 16px 13px; }
  .brief-launch-action > .button { width: 100%; min-height: 46px; }
  .conversation-compose { padding: 12px 11px; }
  .message-input { font-size: 16px; padding: 12px 12px 4px; }
  .message-toolbar { padding: 7px 9px 9px 12px; gap: 10px; }
  .message-draft-state { font-size: 9px; max-width: 170px; }
  .conversation-help { align-items: flex-start; }
  .conversation-help > p { font-size: 10px; }
  .conversation-error { margin-left: 11px; margin-right: 11px; }
  .file-versions { padding-left: 12px; padding-right: 12px; }
  .file-versions .panel-heading { flex-wrap: wrap; }
  .file-versions .git-diff { font-size: 10px; padding: 12px; }
}
