.studio { display: grid; gap: 20px; min-width: 0; }
.studio [data-studio-message]:empty { display: none; }
.studio-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.studio-header h2 { font-size: 23px; }
.studio-header .pilot-note { margin: 8px 0; }
.studio-eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 9px; }
.studio-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.studio-toolbar .pilot-note { margin: 0; }
.studio-layout { display: grid; gap: 20px; min-width: 0; }
.studio-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.studio-nav button { min-height: 42px; padding: 10px 10px; border-radius: 8px; border: 1px solid transparent; color: #554b65; font-size: 13px; }
.studio-nav button[aria-current=true] { background: #eee8fb; border-color: #dcd0f5; color: #4c2f85; }
.studio-nav button span:first-child { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.studio-nav strong { display: block; font-size: 12px; letter-spacing: .03em; }
.studio-nav small { display: block; margin-top: 4px; font-size: 11px; }
.studio-content { min-width: 0; display: grid; gap: 20px; }
.studio-content h2, .studio-content h3 { margin: 0; }
.studio-section { display: grid; gap: 18px; }
.studio-section > .pilot-note { margin: 0; }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.studio-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-field { display: grid; gap: 7px; min-width: 0; font-size: 13px; line-height: 1.55; }
.studio-field small { color: #655d73; }
.studio-field.wide { grid-column: 1 / -1; }
.studio-entry { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.studio-entry > summary { cursor: pointer; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.studio-entry[open] > summary { margin-bottom: 16px; }
.studio-entry[open] > .studio-grid, .studio-entry[open] > .studio-section { margin-top: 16px; }
.studio [hidden] { display: none !important; }
.studio-catalog-list { display: grid; gap: 8px; max-height: 560px; overflow: auto; padding: 4px; }
.studio-catalog-row { padding: 12px 16px; box-shadow: none; }
.studio-catalog-row summary small { float: right; margin-left: 12px; font-weight: 400; color: #655d73; }
.studio-count { color: #655d73; font-size: 13px; font-weight: 400; }
.studio-intro { max-width: 740px; color: #554b65; line-height: 1.7; margin: 0; }
.studio-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.studio-step { display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.studio-step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eee8fb; color: #5939a0; font-size: 13px; font-weight: 600; }
.studio-step .pilot-note { margin: 0 0 4px; }
.studio-step .btn { justify-self: start; }
.studio-step:first-child .btn, .studio [data-studio-action="run-metrics"], .studio [data-studio-action="preview"], .studio-sticky-save.is-dirty [data-studio-action="save"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.studio-report .studio-entry > details { padding: 0; border: 0; box-shadow: none; }
.studio-mobile-nav { display: none; }

.studio-action-field { display: flex; align-items: end; }
.studio-action-field .btn { min-height: 42px; }
.studio-conversation { display: grid; gap: 12px; }
.studio-conversation article { padding: 12px 16px; background: #f7f5fb; border-radius: 10px; }
.studio-conversation p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.studio-entry-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.studio-entry-heading h3 { font-size: 15px; overflow-wrap: anywhere; }
.studio .studio-compact { padding: 7px 11px; min-height: 36px; font-size: 12px; }
.studio .studio-danger { color: #943948; }
.studio-tree { display: grid; gap: 12px; border-left: 3px solid #c9b8ea; background: #f9f7fd; padding: 14px; border-radius: 0 10px 10px 0; min-width: 0; }
.studio-tree .studio-tree { background: white; margin-left: 8px; }
.studio-tree-children { display: grid; gap: 14px; min-width: 0; }
.studio-tree-head { display: flex; gap: 10px; align-items: end; justify-content: space-between; }
.studio-tree-head .studio-field { flex: 1; max-width: 330px; }
.studio-tree-head .btn { flex-shrink: 0; }
.studio-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.studio-checks .pilot-checkbox { font-size: 13px; }
.studio-list { padding-left: 22px; line-height: 1.8; font-size: 13px; overflow-wrap: anywhere; }
.studio .pilot-table th, .studio .pilot-table td { white-space: normal; line-height: 1.6; min-width: 105px; vertical-align: top; overflow-wrap: anywhere; }
.studio .pilot-table th:first-child { min-width: 170px; }
.studio-result { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 13px; }
.studio-report.formal { padding: 20px; border: 1px solid var(--line); font-family: Georgia, 'Times New Roman', serif; }
.studio-report.formal .studio-entry { border-radius: 2px; }
.studio-report.formal .studio-eyebrow { color: #51475f; }
.studio-empty { padding: 20px; background: #f8f6fb; border-radius: 10px; color: #655d73; font-size: 13px; line-height: 1.7; }
.studio-sticky-save { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.studio-sticky-save.is-dirty { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 5px 24px #34224912; border-color: #ad97dc; }
.studio button:focus-visible, .studio summary:focus-visible { outline: 3px solid #9f83d8; outline-offset: 3px; }
.studio small, .studio code { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-nav button { padding: 9px 11px; }
  .studio-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .studio-desktop-nav { display: none !important; }
  .studio-mobile-nav { display: block; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
  .studio-mobile-nav > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
  .studio-mobile-nav[open] .studio-nav { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 0; }
  .studio-header { display: block; }
  .studio-header .studio-toolbar { margin-top: 16px; }
  .studio-grid, .studio-grid.three { grid-template-columns: minmax(0, 1fr); }
  .studio-steps { grid-template-columns: minmax(0,1fr); }
  .studio-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-nav button { text-align: left; }
  .studio-step { padding: 16px; }
  .studio .pilot-card { padding: 18px; }
  .studio-entry { padding: 12px; }
  .studio-tree { padding: 10px; }
  .studio-tree .studio-tree { margin-left: 0; }
  .studio-tree-head { flex-wrap: wrap; }
  .studio-tree-head .studio-field { flex-basis: 100%; max-width: none; }
  .studio-sticky-save { bottom: 5px; padding: 12px; }
  .studio-sticky-save > .btn { width: 100%; }
}
