/* Scoped workshop: compact choices retain costs, stock and refusal reasons. */
dialog#construction-dialog { width:min(720px,calc(100% - 24px));max-width:none;max-height:min(620px,calc(100dvh - 24px));padding:0;overflow:hidden; }
#construction-dialog[open] { display:flex;flex-direction:column; }
#construction-dialog>header { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:2px solid #244257;flex-shrink:0;background:#f6ecd0; }
#construction-dialog h2 { margin:0;font-size:clamp(19px,3vw,24px); }
/* Retour dessiné comme les boutons secondaires des autres fenêtres (il gardait le style gris du navigateur). */
#construction-dialog #construction-close { width:auto;min-width:44px;min-height:44px;margin:0;flex-shrink:0;padding:8px 16px;border:2px solid var(--md-ink,#22385a);border-radius:12px;background:var(--md-paper,#fdf6e4);color:var(--md-ink,#22385a);box-shadow:0 3px 0 var(--md-ink,#22385a);font:700 14px/1 var(--font-ui);cursor:pointer; }
#construction-dialog #construction-close:hover { background:#fff9ec; }
#construction-dialog #construction-close:active { transform:translateY(2px);box-shadow:0 1px 0 var(--md-ink,#22385a); }
.construction-scroll { overflow:auto;overscroll-behavior:contain;padding:0 16px 12px; }
#construction-dialog p { font-size:13px;line-height:1.4; }
#construction-help { margin:10px 0; }
.construction-module h3 { display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;margin:12px 0 6px; }
.module-stock { font:600 12px sans-serif;background:#d9e9c8;color:#24472d;border:1px solid #759160;border-radius:20px;padding:4px 8px;white-space:nowrap; }
.module-stock[data-ready=false] { background:#e5dace;color:#6d4d42;border-color:#ab8c79; }
#construction-list { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.construction-cards { display:grid;grid-template-columns:1fr;gap:7px; }
#construction-dialog .construction-card { display:flex;align-items:center;gap:8px;width:100%;min-height:86px;text-align:left;margin:0;padding:8px;background:#fff8e6;color:#20394b;border:2px solid #365366;border-radius:8px;white-space:normal; }
.construction-card canvas { width:36px;height:36px;flex:0 0 36px;object-fit:contain; }
.construction-copy { display:flex;flex-direction:column;gap:3px;min-width:0; }
.construction-copy strong { font-size:15px;line-height:1.15; }
.construction-copy>span { font-size:12px;line-height:1.25; }
.construction-copy .construction-cost { font-weight:700;color:#2e563b; }
.construction-copy .construction-state { font-weight:700; }
#construction-dialog .construction-card:disabled { opacity:1;background:#e9e2d2;border-color:#9b9a8d;color:#615f53;cursor:not-allowed;box-shadow:none; }
.construction-card:disabled .construction-cost { color:#615f53; }
.construction-card:disabled .construction-state { color:#8b4431; }
#construction-dialog .construction-card:not(:disabled):hover { background:#e9f2d9; }
#construction-dialog .construction-card:focus-visible { outline:3px solid #e98d3b;outline-offset:2px; }
.construction-details { margin-top:12px;font-size:13px; }
.construction-details>summary { cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline; }
.engineer-capabilities { margin:8px 0;font-size:12px;line-height:1.4;color:var(--ink,#20394b); }
@media(max-width:600px) {
 #construction-list { display:block; }
 .construction-cards { grid-template-columns:1fr;gap:6px; }
 #construction-dialog>header { padding:8px 10px; }
 #construction-dialog #construction-close { max-width:100px;font-size:13px; }
 .construction-scroll { padding:0 10px 10px; }
 #construction-dialog .construction-card { min-height:74px; }
 .construction-purpose { display:none; }
}
@media(prefers-reduced-motion:reduce) { .construction-card { transition:none; } }
