/* NOUVETTE COPILOT — isolated editor UI */
.copilotTopBtn{border-color:#8f672c!important;color:#f4deb0!important;background:#1e160c!important}
.copilotPanel{position:fixed;right:18px;bottom:66px;width:min(390px,calc(100vw - 28px));height:520px;z-index:5000;background:rgba(10,8,6,.985);border:1px solid #3a3e43;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden;backdrop-filter:blur(14px)}
.copilotPanel.open{display:flex}
.copilotHead{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #332719;background:#1d1f22}
.copilotMark{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#c99a43;color:#fff;font-size:15px;font-weight:900;box-shadow:0 0 24px rgba(228,184,95,.20)}
.copilotTitle{font-size:11px;font-weight:850;letter-spacing:.08em;color:#f5ead7}.copilotSub{margin-top:2px;font-size:8px;color:#9f9382}
.copilotClose{margin-left:auto;border:0!important;background:transparent!important;color:#929aab!important;font-size:17px!important;padding:4px 8px!important}
.copilotMessages{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:9px}
.copilotMsg{max-width:88%;font-size:10px;line-height:1.55;padding:9px 10px;border-radius:9px;white-space:pre-wrap}
.copilotMsg.assistant{align-self:flex-start;background:#120e09;border:1px solid #3b2d1c;color:#ddd3c5}
.copilotMsg.user{align-self:flex-end;background:#2a2d31;border:1px solid #43474d;color:#f5ead7}
.copilotQuick{display:flex;gap:6px;overflow-x:auto;padding:8px 10px 0}.copilotQuick button{white-space:nowrap;background:#100d09!important;border:1px solid #3b2d1c!important;color:#a99d8b!important;font-size:8px!important;border-radius:999px!important;padding:6px 8px!important}
.copilotComposer{padding:10px;border-top:1px solid #332719;background:#0c0907}.copilotComposer textarea{width:100%;height:70px;resize:none;box-sizing:border-box;background:#080605;color:#eee6da;border:1px solid #3b2d1b;border-radius:7px;padding:10px;font:10px/1.45 inherit;outline:none}.copilotComposer textarea:focus{border-color:#d6a84d;box-shadow:0 0 0 2px rgba(228,184,95,.10)}
.copilotComposerRow{display:flex;align-items:center;gap:8px;margin-top:8px}.copilotHint{font-size:8px;color:#817568;flex:1}.copilotRun{height:30px!important;padding:0 13px!important;background:#c99a43!important;border:1px solid #d8ad59!important;color:white!important;font-size:9px!important;font-weight:800!important;border-radius:6px!important}
.copilotPulse{animation:copilotPulse .45s ease}@keyframes copilotPulse{0%{box-shadow:0 0 0 0 rgba(228,184,95,.55)}100%{box-shadow:0 0 0 12px rgba(228,184,95,0)}}
@media(max-width:720px){.copilotPanel{right:8px;bottom:58px;height:58vh}}

/* Generated-project mode: Fliki-style editor with a permanent AI sidebar. */
body.copilotDocked .layout{grid-template-columns:250px minmax(0,1fr) 370px!important}
body.copilotDocked .inspector{display:none!important}
body.copilotDocked .timelinePanel{grid-column:1/3!important}
body.copilotDocked .copilotPanel{display:flex;position:fixed;top:42px;right:0;bottom:40px;width:370px;height:auto;border-radius:0;border-top:0;border-bottom:0;box-shadow:none;z-index:90}
body.copilotDocked .copilotClose{display:none}
.projectPreviewBadge{display:none;position:absolute;left:14px;top:12px;z-index:15;padding:7px 9px;border:1px solid #3b2d1c;border-radius:6px;background:rgba(12,15,19,.84);backdrop-filter:blur(8px);font-size:9px;color:#c7ced9;letter-spacing:.04em}
body.generatedProject .projectPreviewBadge{display:block}
.editorDownloadBtn{display:none!important;border-color:#3a5d4a!important;background:#173526!important;color:#d9f7e5!important}
body.generatedProject .editorDownloadBtn{display:inline-flex!important;align-items:center}
@media(max-width:980px){body.copilotDocked .layout{grid-template-columns:210px minmax(0,1fr) 330px!important}body.copilotDocked .copilotPanel{width:330px}}

body.generatedProject .mediaTools{display:none!important}
body.generatedProject .mediaList{grid-template-columns:1fr!important;gap:5px!important;padding:7px!important}
body.generatedProject .mediaCard{display:grid;grid-template-columns:58px minmax(0,1fr);min-height:44px;align-items:stretch}
body.generatedProject .mediaCard .thumb{height:auto;min-height:44px;border-right:1px solid #2b3038;font-size:8px;font-weight:800;letter-spacing:.06em}
body.generatedProject .mediaCard .mediaName{display:flex;align-items:center;padding:8px!important;font-size:9px!important;line-height:1.35;white-space:normal}

.copilotPlan{border:1px solid rgba(228,184,95,.32);background:rgba(177,116,34,.10)!important}
.copilotPlanTitle{font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:8px;color:#f0ce83}
.copilotPlanList{font-size:11px;line-height:1.55;color:#d8dbe3}
.copilotPlanList>div{padding:4px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.copilotPlanNote{font-size:10px;color:#8f98a8;margin-top:8px}
.copilotPlanActions{display:flex;gap:7px;margin-top:11px}
.copilotPlanActions button{font-size:9px;font-weight:800;letter-spacing:.06em;padding:7px 10px}
.copilotPlanApply{background:#d5aa55!important;color:#11131a!important;border-color:#d5aa55!important}
