.studio-body {
  overflow: auto;
  background: #0a0a0a;
  cursor: default;
}

.studio-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.studio-bar h1 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  font-weight: 300;
}

.bar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  border-color: transparent;
  font-weight: 600;
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.share-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.share-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  min-height: calc(100vh - 5rem);
}

.panel-toggles {
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1rem 2rem;
  overflow: auto;
}

.panel-toggles h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.hint {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 1rem;
  line-height: 1.35;
  font-weight: 300;
}

.hint.warn {
  color: #ffb86c;
  border-left: 2px solid rgba(255, 184, 108, 0.7);
  padding: 0.45rem 0.55rem;
  margin-top: 0.55rem;
  margin-bottom: 0.4rem;
  background: rgba(255, 184, 108, 0.08);
  border-radius: 0 6px 6px 0;
}

.hint.note {
  color: #8ec8ff;
  border-left: 2px solid rgba(142, 200, 255, 0.55);
  padding: 0.45rem 0.55rem;
  margin-top: 0.55rem;
  margin-bottom: 0.4rem;
  background: rgba(142, 200, 255, 0.08);
  border-radius: 0 6px 6px 0;
}

.prefs-block {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input[type="text"] {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
}

.field input[type="text"]:focus {
  outline: none;
  border-color: rgba(142, 200, 255, 0.5);
}

.search-row {
  display: flex;
  gap: 0.4rem;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.btn.small {
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
}

.art-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.art-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.art-row input[type="file"] {
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 0.4rem;
  max-width: 100%;
}

.geo-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.4rem 0 0.7rem;
}

.geo-item {
  text-align: left;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.geo-item small {
  display: block;
  color: var(--dim);
  margin-top: 0.15rem;
}

.geo-item:hover {
  border-color: var(--accent);
}

.geo-empty {
  color: var(--dim);
  font-size: 0.85rem;
}

.todo-add-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.todo-add-row input {
  flex: 1;
  min-width: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
}

.todo-editor {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  max-height: 220px;
  overflow: auto;
}

.todo-editor li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
}

.todo-editor li.done input[type="text"] {
  color: var(--dim);
  text-decoration: line-through;
}

.todo-editor input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.todo-editor input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.todo-editor .todo-del {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
}

.todo-editor .todo-del:hover {
  color: #ff8e8e;
}

#todo-bulk {
  width: 100%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 5rem;
}

.todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.field select,
.field input[type="number"] {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.toggle-row label {
  flex: 1;
  cursor: pointer;
}

.toggle-row .name {
  font-size: 0.95rem;
  font-weight: 500;
}

.toggle-row .desc {
  font-size: 0.78rem;
  color: var(--dim);
  font-weight: 300;
  margin-top: 0.15rem;
}

.toggle-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.save-msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2rem;
}

.save-msg.err { color: #ff8e8e; }

.panel-plane {
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.plane-label {
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.studio-plane {
  flex: 1;
  min-height: 70vh;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 8rem);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 10% 10%,
    #000;
}

/* Studio chrome around widgets */
.studio-plane .widget {
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: rgba(20, 20, 20, 0.55);
  border-radius: 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.studio-plane .widget:active {
  cursor: grabbing;
}

.studio-plane .widget.disabled-studio {
  opacity: 0.28;
  border-style: dashed;
  border-color: rgba(255,255,255,0.2);
}

.studio-plane .widget-tag {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
  z-index: 5;
  background: rgba(0,0,0,0.55);
  padding: 1px 4px;
  border-radius: 3px;
}

.studio-plane .resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 3px 0 6px 0;
  cursor: nwse-resize;
  z-index: 6;
}

.studio-fab { display: none; }

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .panel-toggles {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .studio-plane {
    min-height: 55vh;
  }
}
