:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #e9edf6;
  background: #090b10;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #090b10; }
button { font: inherit; color: inherit; }
.studio { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid #252936; background: #11141b;
}
.topbar div:first-child { display: flex; align-items: baseline; gap: 10px; }
.topbar strong { letter-spacing: .08em; }
.topbar span { color: #7f8798; font-size: 11px; letter-spacing: .12em; }
.status { color: #a6afbf; font-size: 12px; }
.status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7be6a4; margin-right: 7px; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 33%) 1fr; }
.left { padding: 20px; border-right: 1px solid #252936; background: #0e1117; overflow: auto; }
.panel-title { color: #747d91; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
h1 { font-size: 22px; margin: 8px 0; }
p { color: #8d96a8; line-height: 1.5; margin: 0 0 18px; }
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agents button, .modes button {
  border: 1px solid #2a3040; border-radius: 8px; background: #161a23; padding: 9px 10px; cursor: pointer;
}
.agents button:hover, .modes button:hover { background: #1e2430; }
.agents button[aria-pressed="true"], .modes button[aria-pressed="true"] { border-color: #6c7cff; background: #232a42; }
.task { margin-top: 18px; padding: 14px; border: 1px solid #282e3b; border-radius: 10px; background: #131720; }
.task small { color: #747d91; display: block; margin-bottom: 6px; }
.task strong { font-size: 13px; display: block; }
progress { width: 100%; margin-top: 12px; accent-color: #6c7cff; }
.console { margin-top: 18px; }
pre {
  white-space: pre-wrap; color: #99a5b9; font-size: 11px; line-height: 1.55;
  border: 1px solid #282e3b; background: #090c11; border-radius: 10px; padding: 12px;
}
.right { min-width: 0; display: flex; flex-direction: column; background: #0b0e14; }
.preview-toolbar {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px; border-bottom: 1px solid #252936;
}
.preview-toolbar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.preview-toolbar span { color: #788196; font-size: 11px; }
.modes { display: flex; gap: 7px; }
.modes button { padding: 7px 10px; font-size: 12px; }
.stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 22px; overflow: auto; }
iframe {
  width: min(100%, 1440px); height: min(100%, 900px); min-height: 520px;
  border: 1px solid #32394b; border-radius: 12px; background: white; transition: width .18s ease, height .18s ease;
}
.bottom {
  min-height: 38px; display: flex; align-items: center; gap: 18px; padding: 0 16px;
  border-top: 1px solid #252936; color: #798297; font-size: 11px;
}
@media (max-width: 820px) {
  .workspace { grid-template-columns: 1fr; }
  .left { border-right: 0; border-bottom: 1px solid #252936; max-height: 42vh; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
}

.section-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px;
}
.section-tabs button, .library-item {
  border: 1px solid #2a3040; border-radius: 8px; background: #121722;
  color: #a8b1c2; padding: 8px 9px; cursor: pointer;
}
.section-tabs button { font-size: 11px; }
.section-tabs button[aria-pressed="true"], .library-item[aria-pressed="true"] {
  border-color: #6c7cff; background: #232a42; color: #eef1ff;
}
[data-section-panel][hidden] { display: none; }
.panel-card {
  display: grid; gap: 8px; padding: 12px; border: 1px solid #282e3b;
  border-radius: 10px; background: #10141d;
}
.planning-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #232936; font-size: 12px;
}
.planning-row:last-child { border-bottom: 0; }
.planning-row b {
  border-radius: 999px; padding: 4px 7px; font-size: 9px; letter-spacing: .06em;
  background: #1a2130; color: #aab3c5;
}
.planning-row b[data-status="done"] { color: #7be6a4; }
.planning-row b[data-status="progress"] { color: #82a7ff; }
.planning-row b[data-status="validation"] { color: #f2c879; }
.library-item { width: 100%; text-align: left; font-size: 12px; }
