/* Studio — SYD Studio · Content Ventures · Studio Core.
   Même langage que Market, Analytics et Tech V2 : navy, blanc / bleu pâle,
   bleu roi, cartes arrondies. Les deux mondes se distinguent par un repère
   discret (bleu SYD, violet Ventures), jamais par un univers visuel séparé. */

.nav-subgroup{display:block;margin:8px 0 2px 34px;color:#8191a6;font:700 7px "IBM Plex Mono",monospace;letter-spacing:.09em;text-transform:uppercase}
.nav-subgroup:first-child{margin-top:2px}

.studio-world-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}
.studio-world-badge svg{width:13px}
.studio-world-badge.is-syd{color:#0d47a1;background:#eaf3ff;border:1px solid #cfe1fa}
.studio-world-badge.is-venture{color:#5b2c8f;background:#f5effd;border:1px solid #e3d3f7}
.studio-muted{margin:0;color:#8391a3;font-size:9px;line-height:1.5}

/* -- Vue d'ensemble -- */
.studio-two-worlds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.studio-world-card{display:flex;flex-direction:column;gap:12px;padding:22px;background:#fff;border:1px solid #dfe8f3;border-radius:18px}
.studio-world-card.is-syd{border-top:3px solid #1565c0}
.studio-world-card.is-venture{border-top:3px solid #7b3fc4}
.studio-world-card header{display:flex;align-items:center;gap:12px}
.studio-world-card header>span{display:grid;width:42px;height:42px;border-radius:12px;place-items:center}
.studio-world-card.is-syd header>span{color:#0d47a1;background:#eaf3ff}
.studio-world-card.is-venture header>span{color:#5b2c8f;background:#f5effd}
.studio-world-card header svg{width:19px}
.studio-world-card header small{color:#74869b;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.08em}
.studio-world-card h3{margin:3px 0 0;color:#0b2f63;font-size:17px}
.studio-world-card>p{margin:0;color:#5c6f89;font-size:10px;line-height:1.55}
.studio-world-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.studio-world-card dl div{padding:10px 12px;background:#f7fafd;border:1px solid #e6edf5;border-radius:11px}
.studio-world-card dt{color:#7a8a9d;font-size:8px}
.studio-world-card dd{margin:4px 0 0;color:#0b3472;font-size:20px;font-weight:700}
.studio-world-card footer{margin-top:auto}
.studio-recent{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.studio-recent li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;color:#405873;font-size:9px}
.studio-recent li svg{width:12px;color:#5f84b3}
.studio-recent li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-recent small{color:#8b98a8;font-size:8px}
.studio-core-panel{padding:20px;box-shadow:none}
.studio-core-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.studio-core-panel>header small{color:#67809d;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.09em}
.studio-core-panel>header h3{margin:3px 0;color:#173a66;font-size:15px}
.studio-core-panel>header p{max-width:680px;margin:0;color:#7c8ca0;font-size:9px;line-height:1.5}
.studio-capability-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.studio-capability{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 7px;padding:10px;border-radius:10px;border:1px solid #e4e9f0;background:#f8f9fb}
.studio-capability svg{grid-row:1/3;width:14px}
.studio-capability b{font-size:9px;color:#2f4660}
.studio-capability small{font-size:7px;color:#8793a1}
.studio-capability.is-on{background:#f1faf6;border-color:#c6e7d7}
.studio-capability.is-on svg{color:#178159}
.studio-capability.is-off svg{color:#a0abb8}

/* -- Atelier : contrôles · canevas · historique -- */
.studio-production-bar,.studio-venture-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px;padding:12px 14px;background:#fff;border:1px solid #e1e9f2;border-radius:14px}
.studio-production-bar label,.studio-venture-bar label{display:grid;gap:4px;min-width:min(320px,100%)}
.studio-production-bar label span,.studio-venture-bar label span,.studio-field-label{color:#6e8198;font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.studio-production-bar select,.studio-venture-bar select{max-width:100%}
.studio-production-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:#5f7288;font-size:9px}
.studio-venture-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
.studio-venture-tabs button{padding:6px 10px;color:#5d6f85;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:999px;font-size:9px;font-weight:700}
.studio-venture-tabs button.is-active{color:#5b2c8f;background:#f5effd;border-color:#dccaf3}
.studio-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:12px;align-items:start}
.studio-controls{display:grid;gap:12px;padding:14px;box-shadow:none;position:sticky;top:12px}
.studio-capability-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.studio-capability-tabs button{display:grid;justify-items:center;gap:3px;padding:7px 4px;color:#4e6582;background:#f6f9fc;border:1px solid #e3eaf2;border-radius:9px;font-size:8px;font-weight:700}
.studio-capability-tabs button svg{width:14px}
.studio-capability-tabs button.is-active{color:#0d47a1;background:#eaf3ff;border-color:#bcd6f6}
.studio-capability-tabs button.is-off{color:#9aa5b2;background:#fafbfc}
.studio-control-form{display:grid;gap:10px}
.studio-control-form label{display:grid;gap:4px}
.studio-control-form label>span{color:#6e8198;font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.studio-control-form textarea{resize:vertical;min-height:90px}
.studio-control-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.studio-route-mode{display:flex;align-items:center;gap:7px;margin:-4px 0 0;color:#8391a3;font-size:8px}
.studio-sources{display:grid;gap:6px}
.studio-sources>span{color:#6e8198;font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.studio-sources>div{display:flex;flex-wrap:wrap;gap:4px}
.studio-sources small{color:#8b98a8;font-size:8px}
.studio-sources .dev-chip button{margin-left:4px;padding:0;color:inherit;background:none;border:0;cursor:pointer}
.studio-import{position:relative;cursor:pointer;justify-self:start}
.studio-unconfigured{display:grid;justify-items:start;gap:8px;padding:14px;background:#fafbfd;border:1px dashed #d9e1ea;border-radius:11px}
.studio-unconfigured svg{width:18px;color:#8ea1b8}
.studio-unconfigured strong{color:#3c536e;font-size:11px}
.studio-unconfigured p{margin:0;color:#7d8c9e;font-size:9px;line-height:1.5}
.studio-canvas{display:grid;gap:12px;min-height:420px;padding:16px;box-shadow:none}
.studio-canvas.is-empty{align-content:center}
.studio-canvas>header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px}
.studio-canvas>header small{color:#67809d;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.06em}
.studio-canvas>header h3{margin:3px 0 0;color:#173a66;font-size:15px}
.studio-canvas-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.studio-canvas-actions a{text-decoration:none}
.studio-duplicate{max-width:190px;font-size:9px}
.studio-canvas-wait{display:grid;justify-items:center;gap:6px;color:#5f7288}
.studio-canvas-wait svg{width:22px;animation:ai-control-spin 1s linear infinite}
.studio-preview-image{display:grid;place-items:center;margin:0;padding:12px;background:repeating-conic-gradient(#f1f4f8 0 25%,#fff 0 50%) 0 0/18px 18px;border:1px solid #e6edf5;border-radius:12px}
.studio-preview-image img{display:block;max-width:100%;max-height:560px;object-fit:contain;border-radius:8px}
.studio-preview-video{width:100%;max-height:560px;border-radius:12px;background:#0b1830}
.studio-preview-text{max-height:520px;overflow:auto;padding:16px 18px;color:#24384f;background:#fbfcfe;border:1px solid #e6edf5;border-radius:12px;font-size:11px;line-height:1.65;white-space:pre-wrap}
.studio-preview-text.is-compact{max-height:260px;font-size:10px}
.studio-revise{display:grid;gap:8px}
.studio-revise textarea{min-height:280px;font-size:11px;line-height:1.6}
.studio-revise>div{display:flex;gap:8px}
.studio-revise small{color:#8391a3;font-size:8px}
.studio-provenance{border:1px solid #e6edf5;border-radius:11px;background:#f9fbfd}
.studio-provenance summary{display:flex;align-items:center;gap:6px;padding:9px 12px;color:#4e6582;font-size:9px;font-weight:700;cursor:pointer}
.studio-provenance summary svg{width:13px}
.studio-provenance dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 14px;margin:0;padding:0 12px 10px}
.studio-provenance dt{color:#8593a4;font-size:8px}
.studio-provenance dd{margin:2px 0 0;overflow:hidden;color:#2f4660;font:600 9px "IBM Plex Mono",monospace;text-overflow:ellipsis}
.studio-prompt{margin:0 12px 10px;padding:9px 10px;color:#3d536c;background:#fff;border:1px solid #e9eef4;border-radius:8px;font-size:9px;line-height:1.55;white-space:pre-wrap;max-height:180px;overflow:auto}
.studio-prompt small{display:block;margin-bottom:4px;color:#8593a4;font-size:8px;font-weight:700}
.studio-history{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;margin-top:12px}
.studio-history>.panel{padding:12px 14px;box-shadow:none}
.studio-history header{display:flex;justify-content:space-between;margin-bottom:8px;color:#67809d;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.08em}
.studio-thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.studio-thumb{display:grid;flex:0 0 108px;gap:5px;padding:5px;color:#4e6582;background:#f7f9fc;border:1px solid #e3eaf2;border-radius:10px;text-align:left;cursor:pointer}
.studio-thumb img,.studio-thumb>svg{width:96px;height:72px;object-fit:cover;border-radius:7px;background:#eef3f9}
.studio-thumb>svg{padding:22px;color:#7d97b6}
.studio-thumb small{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.studio-thumb.is-selected{border-color:#5794dc;box-shadow:0 0 0 2px rgba(64,139,225,.15)}
.studio-history-jobs ul,.studio-job-table{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.studio-history-jobs li,.studio-job-table li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #eef2f6;font-size:9px}
.studio-history-jobs li span{display:grid;gap:1px;min-width:0}
.studio-history-jobs b{overflow:hidden;color:#2f4660;font:600 9px "IBM Plex Mono",monospace;text-overflow:ellipsis}
.studio-history-jobs small,.studio-job-table small{color:#8593a4;font-size:8px}
.studio-history-jobs em,.studio-job-table em{grid-column:2/-1;color:#a24a3f;font-size:8px;font-style:normal}

/* -- Listes -- */
.studio-production-grid,.studio-venture-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.studio-production-card,.studio-template-card,.studio-persona-card,.studio-venture-card{display:flex;flex-direction:column;gap:8px;padding:16px;color:inherit;text-align:left;box-shadow:none}
button.studio-production-card,button.studio-venture-card{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}
button.studio-production-card:hover,button.studio-venture-card:hover{border-color:#a9c8ed;box-shadow:0 10px 24px rgba(19,67,120,.07)}
.studio-production-card header,.studio-template-card header,.studio-venture-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.studio-production-card header small,.studio-template-card header small,.studio-venture-card header small{overflow:hidden;color:#7b8b9d;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.studio-production-card h3,.studio-template-card h3,.studio-venture-card h3,.studio-persona-card h3{margin:0;color:#173a66;font-size:14px}
.studio-production-card p,.studio-template-card p,.studio-venture-card p,.studio-persona-card p{flex:1;margin:0;color:#667b93;font-size:9px;line-height:1.5}
.studio-production-card footer,.studio-template-card footer{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:#8593a4;font-size:8px}
.studio-production-card footer small{margin-left:auto}
.studio-venture-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:0}
.studio-venture-card dt,.studio-dl dt{color:#8593a4;font-size:8px}
.studio-venture-card dd,.studio-dl dd{margin:2px 0 0;color:#2f4660;font-size:9px;font-weight:600}
.studio-venture-card footer{display:flex;flex-wrap:wrap;gap:10px;padding-top:8px;border-top:1px solid #eef2f6;color:#7b8b9d;font-size:8px}
.studio-venture-card.is-archived{opacity:.62}
.studio-more{display:flex;justify-content:center;margin:14px 0}
.studio-filter{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.studio-filter button{padding:5px 10px;color:#5f7288;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:999px;font-size:9px;font-weight:700}
.studio-filter button.is-active{color:#0d47a1;background:#eaf3ff;border-color:#c2dbf7}
.studio-library{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.studio-library.has-detail{grid-template-columns:minmax(0,1fr) minmax(300px,380px)}
.studio-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
.studio-asset-card{display:grid;gap:6px;padding:6px;color:inherit;background:#fff;border:1px solid #e1e9f2;border-radius:12px;text-align:left;cursor:pointer}
.studio-asset-card:hover{border-color:#a9c8ed}
.studio-asset-card.is-selected{border-color:#5794dc;box-shadow:0 0 0 2px rgba(64,139,225,.15)}
.studio-asset-card img{width:100%;height:120px;object-fit:cover;border-radius:8px;background:#eef3f9}
.studio-asset-icon{display:grid;align-content:center;justify-items:center;gap:6px;height:120px;padding:8px;color:#7d97b6;background:#f4f7fb;border-radius:8px}
.studio-asset-icon svg{width:20px}
.studio-asset-icon small{display:-webkit-box;overflow:hidden;color:#5f7288;font-size:8px;line-height:1.4;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.studio-asset-meta{display:grid;gap:1px;padding:0 3px 3px}
.studio-asset-meta b{overflow:hidden;color:#2f4660;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.studio-asset-meta small{color:#8593a4;font-size:8px}
.studio-asset-detail{display:grid;gap:10px;padding:14px;box-shadow:none;position:sticky;top:12px}
.studio-asset-detail>header{display:flex;justify-content:space-between;gap:8px}
.studio-asset-detail>header small{color:#67809d;font:700 8px "IBM Plex Mono",monospace}
.studio-asset-detail>header h3{margin:3px 0 0;color:#173a66;font-size:13px;overflow-wrap:anywhere}
.studio-asset-detail>footer{display:flex;flex-wrap:wrap;gap:6px}
.studio-asset-detail>footer a{text-decoration:none}
.studio-detail-image{width:100%;max-height:300px;object-fit:contain;border-radius:10px;background:#f1f4f8}
.studio-lineage{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0;font-size:8px}
.studio-lineage small{width:100%;color:#8593a4;font-size:8px;font-weight:700}
.studio-lineage svg{width:11px;color:#9aa8b8}

/* -- Ventures -- */
.studio-venture-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.studio-venture-pick button{display:grid;gap:4px;padding:14px;color:inherit;text-align:left;box-shadow:none;cursor:pointer}
.studio-venture-pick strong{color:#173a66;font-size:12px}
.studio-venture-pick small{color:#7b8b9d;font-size:9px}
.studio-venture-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.studio-venture-detail>.panel{padding:16px;box-shadow:none}
.studio-venture-detail header small{color:#67809d;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.08em}
.studio-venture-detail header h3{margin:3px 0 10px;color:#173a66;font-size:14px}
.studio-dl{display:grid;gap:8px;margin:0}
.studio-dl>div{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(0,1.4fr);gap:10px;padding-bottom:6px;border-bottom:1px solid #eef2f6}
.studio-dl dd{overflow-wrap:anywhere}
.studio-notes{margin:0;color:#41576f;font-size:10px;line-height:1.6;white-space:pre-wrap}
.studio-checks{display:flex;flex-wrap:wrap;gap:6px}
.studio-checks label{display:inline-flex !important;align-items:center;gap:5px;padding:5px 8px;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:999px;font-size:9px}
.studio-check-inline{display:flex !important;align-items:center;gap:6px}
.studio-factory{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:start}
.studio-factory-launch{display:grid;gap:12px;padding:16px;box-shadow:none}
.studio-factory-launch header small,.studio-factory-runs header small,.studio-run-detail header small,.studio-profiles header small,.studio-metric-plan header small{color:#67809d;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.08em}
.studio-factory-launch header h3,.studio-run-detail header h3{margin:3px 0;color:#173a66;font-size:14px}
.studio-factory-launch header p,.studio-run-detail header p{margin:0;color:#7c8ca0;font-size:9px;line-height:1.5}
.studio-factory-launch label{display:grid;gap:4px}
.studio-factory-launch label>span{color:#6e8198;font-size:8px;font-weight:700;text-transform:uppercase}
.studio-factory-launch button[type=submit]{justify-self:start}
.studio-inputs{display:grid;gap:4px;max-height:180px;overflow:auto;margin:0;padding:10px;border:1px solid #e6edf5;border-radius:10px}
.studio-inputs legend{padding:0 4px;color:#6e8198;font-size:8px;font-weight:700;text-transform:uppercase}
.studio-inputs label{display:flex !important;align-items:flex-start;gap:6px;font-size:9px}
.studio-factory-runs{padding:14px;box-shadow:none}
.studio-run-list{display:grid;gap:5px;margin:8px 0 0;padding:0;list-style:none}
.studio-run-list button{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:8px 10px;color:inherit;background:#f8fafc;border:1px solid #e6edf5;border-radius:10px;text-align:left;cursor:pointer}
.studio-run-list button.is-selected{border-color:#bfa4e6;background:#faf6fe}
.studio-run-list b{display:block;color:#2f4660;font:600 9px "IBM Plex Mono",monospace}
.studio-run-list small{color:#8593a4;font-size:8px}
.studio-stage-chips{display:flex;gap:3px}
.studio-stage-chips i{display:block;width:12px;height:6px;border-radius:3px;background:#dfe5ec}
.studio-stage-chips i.is-done{background:#2a9d6c}
.studio-stage-chips i.is-active{background:#e0a83a}
.studio-stage-chips i.is-failed{background:#c9554a}
.studio-run-detail{display:grid;gap:12px;margin-top:12px;padding:16px;box-shadow:none}
.studio-run-detail>header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}
.studio-stages{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.studio-stages li{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;color:#7d8c9e;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:999px;font-size:9px;font-weight:700}
.studio-stages li svg{width:13px}
.studio-stages li.is-done{color:#176747;background:#f1faf6;border-color:#c6e7d7}
.studio-stages li.is-active{color:#8a6a25;background:#fdf6e6;border-color:#efe0bd}
.studio-stages li.is-active svg{animation:ai-control-spin 1.2s linear infinite}
.studio-stages li.is-failed{color:#9a3f34;background:#fdeeeb;border-color:#f0d5cf}
.studio-review{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;background:#fdf9ee;border:1px solid #efe0bd;border-radius:11px}
.studio-review>div{display:grid;flex:1;gap:2px}
.studio-review strong{color:#5f4a17;font-size:10px}
.studio-review small{color:#8a7445;font-size:8px}
.studio-capability-notes{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.studio-capability-notes p{display:inline-flex;align-items:center;gap:6px;margin:0;padding:7px 11px;border-radius:999px;font-size:9px;font-weight:600}
.studio-capability-notes p svg{width:13px}
.studio-capability-notes p.is-on{color:#176747;background:#f1faf6}
.studio-capability-notes p.is-off{color:#6c7a8a;background:#f3f5f8}
.studio-persona-card header{display:flex;align-items:center;gap:10px}
.studio-persona-avatar{display:grid;width:38px;height:38px;color:#5b2c8f;background:#f5effd;border-radius:50%;font-weight:700;place-items:center}
.studio-persona-card header small{color:#7b8b9d;font-size:8px}
.studio-profiles{margin-top:12px;padding:14px;box-shadow:none}
.studio-profiles ul{display:grid;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.studio-profiles li{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px;font-size:9px}
.studio-profiles li svg{width:13px;color:#7b3fc4}
.studio-profiles small{color:#8593a4;font-size:8px}
.studio-metric-plan{margin-top:12px;padding:14px;box-shadow:none}
.studio-metric-plan>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}

@media (max-width:1100px){
  .studio-capability-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .studio-factory,.studio-history{grid-template-columns:1fr}
}
@media (max-width:860px){
  .studio-two-worlds,.studio-workspace,.studio-venture-detail{grid-template-columns:1fr}
  .studio-library.has-detail{grid-template-columns:1fr}
  .studio-controls,.studio-asset-detail{position:static}
  .studio-venture-tabs{margin-left:0}
}
@media (max-width:560px){
  .studio-world-card{padding:16px}
  .studio-world-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-capability-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-control-row{grid-template-columns:1fr 1fr}
  .studio-capability-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .studio-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-asset-card img,.studio-asset-icon{height:96px}
  .studio-dl>div{grid-template-columns:1fr;gap:2px}
  .studio-production-bar label,.studio-venture-bar label{min-width:100%}
  .studio-canvas{min-height:280px;padding:12px}
  .studio-venture-card dl{grid-template-columns:1fr}
}

/* Champs Studio : même gabarit que les formulaires des autres modules. */
.studio-production-bar select,.studio-venture-bar select,.studio-control-form select,.studio-control-form input,
.studio-control-form textarea,.studio-factory-launch select,.studio-revise textarea,select.studio-duplicate{
  width:100%;min-height:34px;padding:7px 10px;color:#1f3550;background:#fff;border:1px solid #d6e0ec;border-radius:9px;
  font-size:11px;line-height:1.35;box-sizing:border-box}
.studio-control-form textarea,.studio-revise textarea{line-height:1.55}
.studio-production-bar select,.studio-venture-bar select{min-width:260px}
select.studio-duplicate{width:auto;min-height:30px;padding:5px 8px;font-size:9px}
.studio-production-bar select:focus,.studio-venture-bar select:focus,.studio-control-form :is(select,input,textarea):focus,
.studio-factory-launch select:focus,.studio-revise textarea:focus{border-color:#5794dc;box-shadow:0 0 0 3px rgba(64,139,225,.14);outline:0}

/* -- Production cards : vignette au format du canvas -- */
.studio-production-card{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:start;gap:14px}
.studio-production-thumb{position:relative;display:block;width:86px;max-height:154px;overflow:hidden;background:#05070b;border-radius:10px}
.studio-production-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.studio-format-badge{position:absolute;left:6px;bottom:6px;padding:2px 6px;color:#fff;background:rgba(0,0,0,.55);border-radius:6px;font:700 8px "IBM Plex Mono",monospace}
.studio-production-body{display:flex;min-width:0;flex-direction:column;gap:8px}
.studio-production-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.studio-production-facts div{padding:6px 7px;background:#f7fafd;border:1px solid #e6edf5;border-radius:8px}
.studio-production-facts dt{color:#7a8a9d;font-size:7px}
.studio-production-facts dd{margin:2px 0 0;color:#173a66;font-size:10px;font-weight:700}

/* -- Bibliothèque : menu d'actions d'un Asset -- */
.studio-asset-detail>header{position:relative}
.studio-asset-menu{position:relative}
.studio-asset-menu summary{list-style:none;cursor:pointer}
.studio-asset-menu summary::-webkit-details-marker{display:none}
.studio-asset-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:grid;min-width:220px;padding:6px;background:#fff;border:1px solid #dfe7f1;border-radius:12px;box-shadow:0 16px 32px rgba(15,40,80,.14)}
.studio-asset-menu>div button{display:flex;align-items:center;gap:8px;padding:8px 10px;color:#24405f;text-align:left;background:none;border:0;border-radius:8px;font-size:10px}
.studio-asset-menu>div button:hover{background:#f2f6fb}
.studio-asset-menu>div button.is-danger{color:#b42318}
.studio-asset-menu>div svg{width:14px}
.studio-asset-original,.studio-asset-facts{margin:2px 0 0;color:#7b8a9c;font-size:9px}
.studio-asset-facts{margin:0 0 8px}
.studio-asset-detail audio{width:100%;margin-bottom:8px}

/* -- Editing Workspace -- */
.studio-editor-slot{min-width:0}
.studio-editor{display:grid;gap:12px;min-width:0;outline:none}
.ed-loading{display:grid;justify-items:center;gap:12px;padding:40px;color:#6b7d92;font-size:11px}
.ed-frame-skeleton{width:180px;aspect-ratio:9/16;background:#05070b;border-radius:12px;opacity:.85}
.ed-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid #e1e9f2;border-radius:14px}
.ed-title{min-width:0;flex:1 1 220px}
.ed-title small{color:#6c7f97;font:700 8px "IBM Plex Mono",monospace;letter-spacing:.07em;text-transform:uppercase}
.ed-title h2{margin:2px 0 0;overflow:hidden;color:#0b2f63;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.ed-head-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ed-save{display:inline-flex;align-items:center;gap:5px;color:#5f7288;font-size:9px;white-space:nowrap}
.ed-save svg{width:13px}
.ed-save.is-saved{color:#178159}
.ed-save.is-error,.ed-save.is-conflict{color:#b42318}
.ed-save button{padding:2px 7px;color:inherit;background:#fff;border:1px solid currentColor;border-radius:999px;font-size:8px;font-weight:700}
.ed-history{display:inline-flex;gap:2px}
.ed-history .icon-button[disabled]{opacity:.35}
.ed-warning{display:flex;align-items:center;gap:6px;width:100%;margin:0;color:#9a5b00;font-size:9px}
.ed-warning svg{width:13px}
.ed-warning.is-inline{grid-column:1/-1}

.ed-body{display:grid;grid-template-columns:220px minmax(0,1fr) 260px;gap:12px;min-width:0}
.ed-library,.ed-inspector{display:flex;min-width:0;flex-direction:column;gap:10px;padding:12px;background:#fff;border:1px solid #e1e9f2;border-radius:14px;max-height:calc(56vh + 74px);overflow:auto}
.ed-library>header,.ed-inspector>header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#173a66;font-size:11px}
.ed-library>header small{color:#8593a4;font-size:9px}
.ed-library-actions{display:flex;flex-wrap:wrap;gap:6px}
.ed-library-list{display:grid;gap:6px}
.ed-asset{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px;background:#f8fafc;border:1px solid #e6edf5;border-radius:10px;cursor:grab}
.ed-asset.is-disabled{cursor:default;opacity:.55}
.ed-asset-thumb{display:grid;width:40px;height:40px;overflow:hidden;place-items:center;color:#5f84b3;background:#eef3f9;border-radius:8px}
.ed-asset-thumb img{width:100%;height:100%;object-fit:cover}
.ed-asset-thumb svg{width:16px}
.ed-asset-meta{display:grid;min-width:0}
.ed-asset-meta b{overflow:hidden;color:#24405f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.ed-asset-meta small{overflow:hidden;color:#8593a4;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.ed-empty{margin:0;color:#8391a3;font-size:9px;line-height:1.5}

.ed-stage{display:grid;min-width:0;gap:8px}
.ed-viewport{display:grid;min-width:0;min-height:200px;place-items:center;padding:12px;background:#0d1117;border-radius:14px}
.ed-frame{position:relative;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.ed-frame canvas{display:block}
.ed-viewport{position:relative}
.ed-media-host{position:absolute;left:0;top:0;width:2px;height:2px;overflow:hidden;opacity:0;pointer-events:none}
.ed-media-host video{width:2px;height:2px}
.ed-overlay{position:absolute;inset:0;pointer-events:none}
.ed-selection{position:absolute;border:2px solid #4c8dff;box-shadow:0 0 0 1px rgba(0,0,0,.35);cursor:move;pointer-events:auto}
.ed-selection.is-text{border-style:dashed}
.ed-handle{position:absolute;width:12px;height:12px;background:#fff;border:2px solid #4c8dff;border-radius:3px}
.ed-handle.is-nw{left:-7px;top:-7px;cursor:nwse-resize}
.ed-handle.is-ne{right:-7px;top:-7px;cursor:nesw-resize}
.ed-handle.is-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.ed-handle.is-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.ed-player{display:flex;align-items:center;gap:6px;min-width:0;padding:8px 10px;background:#fff;border:1px solid #e1e9f2;border-radius:12px}
.ed-play{color:#fff;background:#1565c0;border-color:#1565c0}
.ed-time{color:#5f7288;font:600 10px "IBM Plex Mono",monospace;white-space:nowrap}
.ed-time b{color:#0b2f63}
.ed-scrubber{flex:1;min-width:60px}

.ed-inspector-asset{display:grid;gap:1px;margin:0;padding:8px;background:#f7fafd;border:1px solid #e6edf5;border-radius:10px}
.ed-inspector-asset small{color:#8593a4;font-size:8px}
.ed-inspector-asset b{overflow:hidden;color:#24405f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.ed-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ed-field{display:grid;gap:3px;min-width:0}
.ed-field.is-wide{grid-column:1/-1}
.ed-field>span{color:#6e8198;font-size:8px;font-weight:700}
.ed-field input[type=number],.ed-field select,.ed-field textarea{width:100%;min-width:0;padding:5px 7px;font-size:10px}
.ed-field input[type=color]{width:100%;height:28px;padding:0;border:1px solid #dfe7f1;border-radius:8px}
.ed-segmented{display:flex;flex-wrap:wrap;gap:4px}
.ed-segmented button{padding:5px 8px;color:#4e6480;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:8px;font-size:9px;font-weight:700}
.ed-segmented button.is-active{color:#0d47a1;background:#eaf3ff;border-color:#bcd5f5}
.ed-inspector footer{display:flex;flex-wrap:wrap;gap:6px}
.ed-inspector-close{display:none}
.ed-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
.ed-facts div{padding:7px;background:#f7fafd;border:1px solid #e6edf5;border-radius:8px}
.ed-facts dt{color:#7a8a9d;font-size:8px}
.ed-facts dd{margin:2px 0 0;color:#173a66;font-size:11px;font-weight:700}

.ed-timeline{display:grid;gap:6px;min-width:0;padding:10px;background:#fff;border:1px solid #e1e9f2;border-radius:14px}
.ed-tl-tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.ed-tools-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ed-tl-scroll{min-width:0;overflow-x:auto;overflow-y:hidden;border:1px solid #e6edf5;border-radius:10px;background:#fafcfe}
.ed-tl-inner{position:relative;min-width:100%;user-select:none;touch-action:none}
.ed-ruler,.ed-track{display:grid;grid-template-columns:92px minmax(0,1fr)}
.ed-track-head{position:sticky;left:0;z-index:3;display:grid;align-content:center;gap:1px;padding:0 8px;background:#f2f6fa;border-right:1px solid #e3eaf2}
.ed-track-head b{color:#173a66;font:700 10px "IBM Plex Mono",monospace}
.ed-track-head small{overflow:hidden;color:#7c8c9f;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.ed-ruler{height:24px;border-bottom:1px solid #e3eaf2;cursor:pointer}
.ed-ruler .ed-track-head{color:#7c8c9f;font-size:8px}
.ed-ruler-lane{position:relative}
.ed-ruler-lane span{position:absolute;top:5px;padding-left:3px;color:#7b8a9c;border-left:1px solid #cdd8e4;font:600 8px "IBM Plex Mono",monospace;white-space:nowrap}
.ed-end{position:absolute;top:0;bottom:0;width:2px;background:#e8590c}
.ed-track{height:46px;border-bottom:1px solid #edf1f6}
.ed-lane{position:relative;min-width:0}
.ed-lane.is-target{background:#eaf3ff}
.ed-after-end{position:absolute;top:0;right:0;bottom:0;background:repeating-linear-gradient(135deg,rgba(232,89,12,.06) 0 6px,transparent 6px 12px);pointer-events:none}
.ed-clip{position:absolute;top:5px;bottom:5px;display:flex;overflow:hidden;color:#fff;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);cursor:grab}
.ed-clip.is-image{background:#2f6fd6}
.ed-clip.is-video{background:#7b3fc4}
.ed-clip.is-text{color:#1c2b3d;background:#ffd166}
.ed-clip.is-audio{background:#178159}
.ed-clip.is-audio .ed-clip-body{background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 2px,transparent 2px 5px);background-size:100% 45%;background-repeat:repeat-x;background-position:center}
.ed-clip.is-selected{box-shadow:0 0 0 2px #0b2f63,inset 0 0 0 1px rgba(255,255,255,.5);z-index:2}
.ed-clip.needs-reframe{outline:2px dashed #e8590c;outline-offset:-2px}
.ed-clip.is-missing{background:#b42318}
.ed-clip-body{display:grid;min-width:0;flex:1;align-content:center;padding:0 6px;background-image:var(--ed-thumb);background-size:auto 100%;background-repeat:repeat-x;background-blend-mode:soft-light}
.ed-clip-body b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.ed-clip.is-text .ed-clip-body b{text-shadow:none}
.ed-clip-body small{font-size:7px;opacity:.85}
.ed-trim{flex:0 0 6px;background:rgba(255,255,255,.28);cursor:ew-resize}
.ed-trim:hover{background:rgba(255,255,255,.6)}
.ed-playhead{position:absolute;top:0;bottom:0;z-index:4;width:2px;margin-left:-1px;background:#e03131;pointer-events:none}

.ed-renders{display:grid;gap:8px;padding:12px 14px;background:#fff;border:1px solid #e1e9f2;border-radius:14px}
.ed-renders>header{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;color:#173a66;font-size:11px}
.ed-renders>header small{color:#7b8a9c;font-size:9px}
.ed-renders ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ed-renders li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;color:#405873;background:#f8fafc;border:1px solid #e6edf5;border-radius:10px;font-size:9px}
.ed-render-actions{display:flex;gap:6px;margin-left:auto}
.ed-render-error{width:100%;color:#b42318;font-size:8px}
.ed-render-preview{position:relative;justify-self:start;max-width:100%}
.ed-render-preview video{display:block;max-width:100%;max-height:420px;background:#000;border-radius:10px}
.ed-render-preview .icon-button{position:absolute;top:6px;right:6px;background:#fff}

@media (max-width:1180px){
  .ed-body{grid-template-columns:200px minmax(0,1fr)}
  .ed-inspector{grid-column:1/-1;max-height:none}
}
@media (max-width:760px){
  .ed-body{grid-template-columns:minmax(0,1fr)}
  .ed-stage{order:-1}
  .ed-library{max-height:220px}
  .ed-head-controls{width:100%}
  .ed-inspector{display:none}
  .studio-editor.has-selection .ed-inspector{position:fixed;left:8px;right:8px;bottom:8px;z-index:60;display:flex;max-height:52vh;box-shadow:0 -12px 32px rgba(15,40,80,.22)}
  .ed-inspector-close{display:inline-grid}
  .ed-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-production-card{grid-template-columns:64px minmax(0,1fr)}
  .studio-production-thumb{width:64px}
  .studio-production-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* -- Un seul gabarit de select dans Studio : celui des filtres du Control Plane.
   Chevron dessiné, même hauteur, bordure, rayon, police, survol et focus partout :
   aucun select natif isolé visuellement. -- */
.studio-production-bar select,.studio-venture-bar select,.studio-control-form select,.studio-factory-launch select,
select.studio-duplicate,.ed-select select,.ed-field select,.ed-export select{
  width:100%;min-width:0;min-height:34px;box-sizing:border-box;padding:0 32px 0 10px;color:#1f3550;background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23788699' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;border:1px solid #d6e0ec;border-radius:9px;
  font-family:inherit;font-size:11px;line-height:1.2;text-overflow:ellipsis;appearance:none;-webkit-appearance:none;
  cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}
.studio-production-bar select:hover:not(:disabled),.studio-venture-bar select:hover:not(:disabled),.studio-control-form select:hover:not(:disabled),
.studio-factory-launch select:hover:not(:disabled),select.studio-duplicate:hover:not(:disabled),.ed-select select:hover:not(:disabled),
.ed-field select:hover:not(:disabled),.ed-export select:hover:not(:disabled){border-color:#b8d2ef}
.studio-production-bar select:focus-visible,.studio-venture-bar select:focus-visible,.studio-control-form select:focus-visible,
.studio-factory-launch select:focus-visible,select.studio-duplicate:focus-visible,.ed-select select:focus-visible,
.ed-field select:focus-visible,.ed-export select:focus-visible{outline:0;border-color:#5794dc;box-shadow:0 0 0 3px rgba(64,139,225,.16)}
select.studio-duplicate{width:auto;min-width:170px}
/* Libellé des champs de l'Editor : même gabarit que « PRODUCTION ». */
.ed-select{display:grid;gap:4px;min-width:150px}
.ed-select span{color:#6e8198;font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ed-select select{min-height:34px;padding:0 32px 0 10px;font-size:11px}
.ed-warning-actions{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:6px}
.ed-warning-actions button{padding:3px 9px;color:#7a4a00;background:#fff7e8;border:1px solid #f1d39b;border-radius:999px;font-size:9px;font-weight:700}
.ed-export{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-left:auto}
.ed-export label{display:grid;gap:3px;min-width:130px}
.ed-export label span{color:#6e8198;font-size:8px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ed-renders li .ed-render-meta{color:#6d7f93;font-size:8px}
.ed-field input[type=range]{width:100%}
.ed-clip.is-video .ed-clip-body,.ed-clip.is-audio .ed-clip-body{background-size:auto 100%;background-repeat:repeat-x}
.ed-clip.is-audio.has-wave .ed-clip-body{background-image:var(--ed-thumb);background-repeat:no-repeat;background-size:100% 100%;background-position:left center}

/* Phase 9 — sélecteur de modèles : la capacité d'abord, puis le modèle et son accès réel. */
.studio-model-picker{display:grid;gap:7px}.studio-model-picker-label{color:#5f7189;font-size:9px;font-weight:700}
.studio-model-options{display:grid;gap:5px;max-height:248px;overflow-y:auto;padding:2px}
.studio-model-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;padding:7px 10px;color:inherit;text-align:left;background:#fff;border:1px solid #dfe7f0;border-radius:9px;cursor:pointer}
.studio-model-option:hover{border-color:#b8d2ef}.studio-model-option.is-selected{background:#f2f8ff;border-color:#5794dc;box-shadow:0 0 0 2px rgba(64,139,225,.12)}
.studio-model-option>span:first-child{min-width:0}.studio-model-option strong,.studio-model-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-model-option strong{color:#294865;font-size:10px}.studio-model-option small{margin-top:2px;color:#7d8c9e;font-size:8px}
.studio-model-option.is-unavailable strong{color:#5c6f84}.studio-model-option .status-pill{flex:0 0 auto;grid-column:auto;font-size:8px}
.studio-model-setup{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:6px 9px;padding:11px 12px;background:#fffaf2;border:1px solid #f1e0c4;border-radius:10px}.studio-model-setup svg{width:15px;margin-top:1px;color:#b07a2c}.studio-model-setup p{margin:0;color:#6f5a3c;font-size:9px;line-height:1.5}.studio-model-setup p strong{color:#4d3b22}.studio-model-setup button{grid-column:2;justify-self:start;min-height:28px;padding:5px 10px;font-size:9px}
.studio-control-form button[type=submit]:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.6)}
