.studio-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.studio-list { display: flex; flex-direction: column; padding: 0 var(--space-2); }
.studio__group {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-1);
}
.studio__group:first-child { padding-top: var(--space-2); }
.studio__group .material-symbols-rounded { font-size: 14px; color: var(--text-tertiary); align-self: center; }
.studio__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}
.studio__row:hover { background: var(--surface-hover); }
button.studio__row { width: 100%; border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.studio__row--active { background: var(--accent-subtle); }
.studio__row--active .studio__row-name { color: var(--accent-hover); }
.studio__row-thumb { width: 44px; height: 44px; border-radius: var(--radius-lg); object-fit: cover; display: block; }
.studio__row-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: var(--surface-sunken);
  color: var(--text-secondary);
}
.studio__row-tile .material-symbols-rounded { font-size: 20px; }

.studio__row-tile--feed {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: var(--text-on-accent);
}

.studio__row-text { min-width: 0; }
.studio__row-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.studio__row-facts {
  display: block;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.studio__state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.studio__state-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--text-disabled); }
.studio__state--live .studio__state-dot { background: var(--status-success); }

.studio__bench-sheet { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-6) var(--space-5) var(--space-16); scrollbar-width: thin; }
.studio__bench-sheet-inner { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-6); }

.studio-edit {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 2px var(--space-1);
  margin: -2px calc(-1 * var(--space-1));
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}
.studio-edit:hover { background: var(--surface-sunken); }
.studio-edit:focus { background: var(--surface-base); box-shadow: 0 0 0 2px var(--accent-muted); }
.studio-edit::placeholder { color: var(--input-placeholder); }
textarea.studio-edit {
  resize: none;
  field-sizing: content;
  min-block-size: 2lh;
  overflow-x: hidden;
}
@supports (min-block-size: attr(rows lh)) {
  textarea.studio-edit { min-block-size: attr(rows lh, 2lh); }
}
.studio-edit--lead {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.studio-edit--input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--soul-radius-control, var(--radius-lg));
  padding: var(--space-2) var(--space-3);
  margin: 0;
}
.studio-edit--input:hover { background: var(--input-bg); }
.studio-edit--input:focus {
  background: var(--input-bg-focus);
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.studio-cover { position: relative; }
.studio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-xl); }
.studio-cover__veil {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  gap: var(--space-2); padding: var(--space-3);
  border-radius: var(--radius-xl);
  background: linear-gradient(to top, rgba(12, 15, 21, 0.30), transparent 45%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.studio-cover:hover .studio-cover__veil { opacity: 1; }
.studio-cover__btn {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  border: none; cursor: pointer;
  border-radius: var(--radius-full);
  padding: var(--space-1-5) var(--space-3);
  background: var(--surface-page-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: inherit; font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.studio-cover__btn .material-symbols-rounded { font-size: 16px; }
.studio-cover--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 16 / 5;
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.studio-cover--empty:hover { background: var(--accent-subtle); color: var(--accent-primary); }

.studio-coin {
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: var(--text-on-accent);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  border: none; cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.studio-coin .material-symbols-rounded { font-size: 19px; }
.studio-coin--filled { background: var(--accent-primary); color: var(--text-on-accent); }
.studio-tools {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--space-16);
  justify-content: center;
  justify-items: center;
  gap: var(--space-2);
}
.studio-tool {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1-5);
  width: 100%; min-width: 0;
  border: none; background: none; padding: 0; cursor: pointer;
  text-decoration: none;
}
.studio-tool:hover .studio-coin { box-shadow: var(--shadow-md); }
.studio-tool__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--text-tertiary);
  white-space: nowrap; text-align: center;
}
.studio-tool--set .studio-tool__label { color: var(--text-secondary); }

.studio-reveal {
  background: var(--surface-sunken);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.studio-reveal .ds-lexxy-editor { --lexxy-editor-rows: 16lh; }
.studio-reveal__head { display: flex; align-items: center; gap: var(--space-2); }
.studio-reveal__head .btn { margin-left: auto; }

.studio-facts {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.studio-fact {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.studio-fact .material-symbols-rounded { font-size: 14px; }
.studio-fact strong { color: var(--text-secondary); font-weight: var(--weight-semibold); }

.pill-input {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-1-5);
  border: 1px solid var(--input-border);
  border-radius: var(--soul-radius-control);
  background: var(--input-bg);
  padding: var(--space-1-5) var(--space-2);
}
.pill-input:focus-within { border-color: var(--input-border-focus); }
.pill-input__chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 2px var(--space-1) 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
}
.pill-input__x {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-full);
  color: inherit; opacity: 0.65;
}
.pill-input__x:hover { opacity: 1; background: var(--accent-muted); }
.pill-input__x .material-symbols-rounded { font-size: 12px; }
.pill-input input {
  flex: 1; min-width: 90px;
  border: none; background: none; outline: none;
  font: inherit; font-size: var(--text-sm); color: var(--text-primary);
  padding: var(--space-0-5) var(--space-1);
}
.pill-input input::placeholder { color: var(--input-placeholder); }

.people-chips { display: flex; flex-wrap: wrap; gap: var(--space-1-5); }
.people-chip {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  padding: 2px var(--space-1) 2px 2px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-secondary);
}
.people-chip .avatar { width: 22px; height: 22px; }
.studio-person {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-1-5) var(--space-2);
  border-radius: var(--radius-lg);
}
.studio-person:hover { background: var(--surface-hover); }
.studio-person__name { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-person__org { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }

.studio__window-head .avatar { width: 22px; height: 22px; }
.studio__window-who { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-secondary); }
.studio__window-switch {
  display: inline-flex; align-items: center; gap: var(--space-0-5);
  border: none; background: none; padding: 0; cursor: pointer;
}
.studio__window-switch .material-symbols-rounded { font-size: 16px; color: var(--text-tertiary); }
.studio__window-switch:hover .studio__window-who { color: var(--text-primary); }
.studio__window-body {
  flex: 1; min-height: 0; overflow: hidden;
  background: transparent;
}

.studio[data-window-chrome="device"] .studio__window {
  background: var(--surface-base);
}

.share-modal { width: 480px; }
.share-as {
  display: flex; align-items: center; gap: var(--space-2);
  padding-bottom: var(--space-3);
}
.share-as .avatar { width: 22px; height: 22px; }
.share-as__name { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-secondary); }
.share-group { padding: var(--space-3) var(--space-2) var(--space-1); }
.share-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  border: none; background: none; width: 100%; cursor: pointer; font-family: inherit; text-align: left;
  transition: background var(--duration-fast) var(--ease-out);
}
.share-row:hover { background: var(--surface-hover); }
.share-row__go { display: grid; place-items: center; color: var(--text-tertiary); }
.share-row:hover .share-row__go { color: var(--accent-primary); }
.share-row__go .material-symbols-rounded { font-size: 20px; }

.style-pick { display: flex; gap: var(--space-2); }
.style-opt {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-base);
  cursor: pointer; text-align: left; text-decoration: none; color: inherit;
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.style-opt:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.style-opt--active,
.style-opt:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent-primary) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-primary) 35%, transparent);
}
.style-opt__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  padding: var(--space-2);
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.style-opt__name {
  display: flex; align-items: center; gap: var(--space-1-5);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-primary);
}
.style-opt--active .style-opt__name .material-symbols-rounded,
.style-opt:has(input:checked) .style-opt__name .material-symbols-rounded { color: var(--accent-primary); }
.style-opt__name .material-symbols-rounded { font-size: 15px; color: var(--text-tertiary); }

.sk-line { height: 4px; border-radius: var(--radius-full); background: var(--border-default); }
.sk-line--head { background: var(--text-disabled); }
.sk-serif { font-family: var(--font-serif); font-weight: 650; color: var(--text-secondary); font-size: 11px; line-height: 1.05; }
.sk-block { border-radius: 5px; background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); }
.sk-row { display: flex; gap: 4px; align-items: center; min-height: 0; }
.sk-dot { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--brand-400); flex: none; }
.sk-card { background: var(--surface-base); border-radius: 6px; box-shadow: var(--shadow-sm); padding: 5px; display: flex; flex-direction: column; gap: 4px; min-height: 0; flex: 1; }
.sk-pill { height: 9px; width: 46%; border-radius: var(--radius-full); background: var(--surface-base); border: 1px solid var(--border-default); }
.sk-chip { height: 8px; width: 24%; border-radius: var(--radius-full); background: var(--surface-base); border: 1px solid var(--border-default); align-self: center; }
