:root { --bg: #f5f6f8; --fg: #16181d; --muted: #5b616e; --line: #d9dce3; --accent: #1d4ed8; --card: #fff; --err: #b42318; --ok: #067647; }
[hidden] { display: none !important; }  /* l’attribut hidden l’emporte sur les display des composants */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 6px; padding: .45rem .9rem; }
button.link { background: none; border: 0; color: var(--accent); padding: .3rem .4rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
a.link { color: var(--accent); text-decoration: none; }
input, select, textarea { width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
label { display: block; margin: .6rem 0; font-weight: 500; }
label.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; font-weight: 400; }
label.inline input { width: 2.4rem; padding: 0; height: 1.9rem; }
.top { display: flex; gap: 1rem; align-items: center; padding: .7rem 1.2rem; background: #fff; border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: .2rem; }
.top #who { margin-left: auto; }
main { padding: 1.2rem; max-width: 1500px; margin: 0 auto; }
.panel { margin-bottom: 1.5rem; }
.narrow { max-width: 380px; margin: 3rem auto; }
.muted { color: var(--muted); }
.error { color: var(--err); min-height: 1em; margin: .3rem 0; }
.ok { color: var(--ok); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { background: #fff; color: var(--fg); border-color: var(--line); }
.tabs button[aria-selected="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.styles { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.styles button { display: flex; gap: .45rem; align-items: center; background: #fff; color: var(--fg); border-color: var(--line); }
.styles button[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.swatch { display: inline-flex; border-radius: 4px; overflow: hidden; border: 1px solid #0002; }
.swatch i { width: 12px; height: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.model { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.model .thumb { aspect-ratio: 16 / 10; background: #e8eaef center top / cover no-repeat; border-bottom: 1px solid var(--line); }
.model .body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.model h3 { margin: 0; font-size: 1.05rem; }
.model p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.bar { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.bar .spacer { flex: 1; }
.seg button { background: #fff; color: var(--fg); border-color: var(--line); border-radius: 0; }
.seg button:first-child { border-radius: 6px 0 0 6px; }
.seg button:last-child { border-radius: 0 6px 6px 0; }
.seg button[aria-pressed="true"] { background: var(--fg); color: #fff; }
.stage { background: #dfe2e8; border-radius: 10px; padding: 12px; display: flex; justify-content: center; }
#frame { width: 100%; height: 78vh; border: 0; background: #fff; border-radius: 6px; box-shadow: 0 2px 12px #0002; transition: width .2s; }
#frame.mobile { width: 390px; height: 80vh; }
.actions { margin-top: .8rem; }
form { max-width: 640px; }
#build-summary { margin-top: -.4rem; }
#job-log { background: #0f1115; color: #d7dae0; padding: 1rem; border-radius: 8px; max-height: 60vh; overflow: auto; white-space: pre-wrap; font-size: 12.5px; }
.list { display: grid; gap: .6rem; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; }
#proposal { margin: 1rem 0; }
#proposal dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .5rem 0; }
#proposal dt { color: var(--muted); }
#proposal dd { margin: 0; }
@media (max-width: 700px) { #frame.mobile { width: 100%; } .top { flex-wrap: wrap; } }
