/* Shared admin surfaces. Public pages retain their editorial scale. */
.studio-shell {
  --admin-line: #3a3731;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  font-size: 14px;
}
.studio-shell > main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 32px 40px;
}
.studio-shell h1,
.studio-shell h2,
.studio-shell h3,
.studio-shell h4 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}
.studio-shell h1 {
  font-size: 30px;
  line-height: 1.25;
}
.studio-shell h2 {
  font-size: 18px;
}
.studio-shell h3 {
  font-size: 15px;
}
.studio-shell .eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.13em;
}
.studio-shell button,
.studio-shell .button {
  min-height: 36px;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
}
.studio-shell .secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}
.studio-shell input:not([type="checkbox"]):not([type="radio"]),
.studio-shell select,
.studio-shell textarea {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  margin: 5px 0 0;
  border: 1px solid #625c50;
  border-radius: 5px;
  background: var(--field);
  background-image: none;
  color: var(--text);
  font-size: 13px;
}
.studio-shell input:focus,
.studio-shell textarea:focus,
.studio-shell select:focus,
.studio-shell [contenteditable]:focus {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  box-shadow: none;
}
.studio-shell label {
  font-size: 12px;
  font-weight: 500;
  margin: 16px 0 0;
  color: #d7d1c5;
}
.studio-shell .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-shell input[type="checkbox"] {
  accent-color: var(--lime);
}
.studio-shell .field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.studio-shell :is(input, textarea)::placeholder {
  color: #999285;
  opacity: 1;
}
.studio-shell .studio-sidebar {
  padding: 27px 14px 18px;
  background: #1d1c19;
  border-right: 1px solid var(--admin-line);
}
.studio-shell .studio-sidebar .wordmark {
  margin: 0 12px;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.studio-shell .studio-label {
  font-size: 9px;
  margin: 12px 12px 30px;
  letter-spacing: 0.12em;
}
.studio-shell .studio-label span {
  width: 5px;
  height: 5px;
}
.studio-shell .nav-label {
  font-size: 9px;
  margin: 26px 12px 10px;
  letter-spacing: 0.12em;
}
.studio-shell .studio-menu nav > a {
  min-height: 40px;
  padding: 10px 12px;
  margin: 3px 0;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
}
.studio-shell .studio-menu nav > a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.studio-shell .studio-menu nav > a[aria-current] {
  background: #303226;
  color: var(--lime);
  border-color: #464935;
}
.studio-shell .studio-profile {
  padding: 20px 8px 10px;
  margin-top: 34px;
  border-top: 1px solid var(--admin-line);
}
.studio-shell .studio-profile strong {
  font-size: 11px;
}
.studio-shell .studio-profile span {
  font-size: 10px;
}
.studio-shell .studio-avatar {
  width: 31px;
  height: 31px;
  background: #37352d;
}
.studio-shell .studio-note {
  font-size: 10px;
  padding-left: 12px;
}
.studio-shell .studio-overview,
.studio-shell .admin-page,
.studio-shell .admin-customers {
  padding: 32px 0;
  max-width: 1280px;
  margin: auto;
}
.studio-shell .studio-overview-heading,
.admin-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.studio-shell .studio-overview-heading h1,
.admin-page-heading h1 {
  font-size: 28px;
  margin: 8px 0;
}
.studio-shell .studio-overview-heading p,
.admin-page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}
.studio-shell .studio-overview-actions {
  gap: 18px;
}
.studio-shell .studio-stats {
  gap: 0;
  padding: 0;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  margin-bottom: 28px;
  background: var(--surface);
  background-image: var(--paper-grain);
}
.studio-shell .studio-stats > div {
  border: 0;
  border-right: 1px solid var(--admin-line);
  border-radius: 0;
  padding: 20px 24px;
  background: transparent;
}
.studio-shell .studio-stats > div:last-child {
  border: 0;
}
.studio-shell .studio-stats dt {
  font-size: 11px;
}
.studio-shell .studio-stats dd {
  font-size: 28px;
  font-family: Arial, sans-serif;
  margin-top: 6px;
  letter-spacing: -0.04em;
}
.studio-shell .studio-panel,
.admin-card {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: none;
  background: var(--surface);
  background-image: var(--paper-grain);
}
.studio-shell .studio-panel-heading {
  padding: 20px 22px 12px;
  border-bottom: 0;
}
.studio-shell .studio-panel-heading h2 {
  font-size: 17px;
}
.studio-shell .studio-panel-heading p {
  font-size: 12px;
  margin: 5px 0;
}
.studio-shell .studio-count {
  background: #36342d;
  color: var(--muted);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
}
.admin-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 22px 22px;
  margin: 0;
}
.studio-shell .admin-filters label {
  margin: 0;
  font-size: 10px;
}
.admin-filters label.admin-search {
  flex: 1;
  min-width: 180px;
}
.admin-filters input,
.admin-filters select {
  width: 100%;
}
.admin-filters [role="status"] {
  font-size: 10px;
  color: var(--muted);
  align-self: center;
  padding-top: 18px;
}
.studio-shell .studio-resource-columns {
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
  background: #211f1b;
  padding: 10px 64px 10px 22px;
  font-size: 10px;
}
.studio-shell .studio-resource-list > li {
  position: relative;
  border-bottom: 1px solid var(--admin-line);
}
.studio-shell .studio-resource-list > li:last-child {
  border-bottom: 0;
}
.studio-shell .studio-resource-row {
  min-height: 82px;
  padding: 16px 64px 16px 22px;
  gap: 18px;
  border: 0;
}
.studio-shell .studio-resource-identity strong {
  font-size: 13px;
}
.studio-shell .studio-resource-identity small {
  font-size: 10px;
  margin-top: 3px;
}
.studio-shell .studio-resource-section {
  font-size: 11px;
}
.studio-shell .studio-resource-thumbnail {
  width: 48px;
  height: 40px;
  border-color: var(--admin-line);
  background: #302e27;
}
.studio-shell .studio-resource-state {
  font-size: 10px;
  line-height: 1.6;
  padding: 2px 7px;
  border-color: #5b5549;
  border-radius: 5px;
  background: #2c2923;
}
.studio-shell .studio-resource-state[data-state="published"] {
  background: #303426;
  border-color: #4e5737;
}
.studio-shell .studio-resource-edit {
  font-size: 11px;
}
.resource-row-menu {
  position: absolute;
  right: 18px;
  top: 24px;
  padding: 0;
  border: 0;
  margin: 0;
  background: none;
}
.resource-row-menu > summary,
.block-menu > summary {
  list-style: none;
  cursor: pointer;
  padding: 3px 8px;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 4px;
  color: var(--muted);
}
.resource-row-menu > summary::-webkit-details-marker,
.block-menu > summary::-webkit-details-marker {
  display: none;
}
.resource-row-menu > div,
.block-menu > div {
  position: absolute;
  z-index: 12;
  top: 100%;
  right: 0;
  min-width: 176px;
  padding: 5px;
  border: 1px solid #5c5548;
  border-radius: 7px;
  background: #302d26;
  box-shadow: 0 12px 40px #0006;
}
.resource-row-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 4px;
}
.admin-filter-empty {
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.studio-shell .studio-management {
  gap: 20px;
}
.studio-shell .studio-section,
.studio-shell .studio-create-section {
  background: none;
}
.studio-shell .studio-section summary,
.studio-shell .studio-create-section summary {
  font-size: 13px;
}
.studio-shell .studio-tool > summary,
.studio-shell .studio-support {
  padding: 20px;
}
.studio-shell .studio-tool > summary strong,
.studio-shell .studio-support strong {
  font-size: 13px;
}
.studio-shell .studio-tool > summary small,
.studio-shell .studio-support small {
  font-size: 11px;
}
.admin-card {
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.admin-card > h2 {
  margin: 0 0 8px;
}
.admin-card > p {
  color: var(--muted);
  font-size: 13px;
}
.admin-card form {
  margin-bottom: 0;
}
.admin-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.admin-card > summary small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--muted);
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.admin-metrics {
  display: flex;
  gap: 40px;
  padding: 20px 0;
}
.admin-metrics dt {
  font-size: 11px;
  color: var(--muted);
}
.admin-metrics dd {
  margin: 6px 0 0;
  font-size: 28px;
}
.admin-payment-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--admin-line);
  font-size: 12px;
}
.admin-payment-row:last-child {
  border-bottom: 0;
}
.admin-payment-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.admin-empty {
  padding: 32px 0;
  color: var(--muted);
}
.admin-customers .search {
  border: 1px solid var(--admin-line);
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
  align-items: end;
}
.admin-customers .search label {
  margin: 0;
}
.admin-customers .rows {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}
.admin-customers .row {
  font-size: 13px;
  padding: 20px;
  background: var(--surface);
  border-color: var(--admin-line);
}
.admin-customers > form,
.admin-customers > details,
.admin-customers > .panel {
  padding: 22px;
  margin: 18px 0;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--surface);
}
.admin-customers > h2 {
  margin-top: 26px;
}
.admin-customer-search {
  margin: 0;
}
.admin-customer-search > label {
  margin: 0;
}
.admin-customer-search > div {
  display: flex;
  align-items: end;
  gap: 10px;
  max-width: 620px;
}
.admin-customer-search input {
  flex: 1;
  width: 100%;
}
.admin-result-count {
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0 8px;
}
.admin-customer-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--admin-line);
  font-size: 13px;
}
.admin-customer-row small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.customer-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #514a3e;
  background: #343026;
  border-radius: 50%;
  color: #d4cbb8;
}
.customer-open {
  color: var(--muted);
  font-size: 11px;
}
.admin-customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr);
  gap: 24px;
  align-items: start;
}
.admin-customer-grid > * {
  min-width: 0;
}
.customer-account-state {
  margin: -12px 0 24px;
}
.studio-shell .studio-resource-state[data-state="active"] {
  color: var(--lime);
  border-color: #4e5737;
  background: #303426;
}
.studio-shell .studio-resource-state[data-state="suspended"] {
  color: #edb4a7;
  border-color: #7d5145;
  background: #382924;
}
.customer-support-actions form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--admin-line);
}
.customer-support-actions form:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.customer-support-actions form p {
  max-width: 310px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.customer-support-actions form button {
  flex-shrink: 0;
}
.customer-support-actions form .form-error:empty {
  display: none;
}
.studio-shell .customer-support-actions form[data-api$="/reset"] button,
.customer-sidebar form button {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.customer-billing > h2 {
  margin-top: 0;
}
.customer-billing .row {
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  background: none;
}
.customer-billing .row > div {
  min-width: 0;
  width: 100%;
}
.customer-billing .row p {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.customer-billing .row form p {
  font-size: 11px;
  color: var(--muted);
}
.customer-billing .row form {
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
}
.customer-sidebar > .panel {
  padding: 24px;
  border: 1px solid var(--admin-line);
  background: var(--surface);
  border-radius: 8px;
  margin: 0 0 20px;
}
.customer-sidebar > .panel h2 {
  font-size: 17px;
  margin-top: 0;
}
.customer-sidebar > .panel p,
.customer-sidebar > .panel form p {
  font-size: 12px;
  color: var(--muted);
}
.customer-sidebar .workspace-disclosure {
  margin-top: 20px;
  padding-inline: 0;
}
.customer-sidebar select {
  width: 100%;
}
.customer-grant {
  padding: 14px 0;
  border-top: 1px solid var(--admin-line);
  font-size: 12px;
}
.customer-grant small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.customer-audit-list > div {
  border-top: 1px solid var(--admin-line);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 12px;
}
.customer-audit-list small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.customer-restrictions summary {
  font-size: 12px;
  color: var(--muted);
}
.studio-shell .customer-restrictions form[data-api$="/suspend"] button,
.studio-shell .customer-billing form[data-api$="/refund"] button {
  background: #382924;
  border-color: #795145;
  color: #efb9a8;
}
.studio-shell .resource-workspace {
  max-width: 1120px;
  margin: auto;
}
.studio-shell .editor-heading h1 {
  font-size: 28px;
}
.studio-shell .editor-heading .accent {
  display: none;
}
.studio-shell .editor-panel {
  border-color: var(--admin-line);
  padding: 24px;
  box-shadow: none;
}
.studio-shell .editor-section-heading h2 {
  font-size: 18px;
}
.studio-shell .editor-section-heading p {
  font-size: 12px;
}
.studio-shell .collection-start {
  max-width: 1040px;
  margin: auto;
  padding: 30px 0;
}
.studio-shell .collection-start-heading h1 {
  font-size: 30px;
}
.studio-shell .collection-start-heading h1 .accent {
  display: none;
}
.studio-shell .collection-start-heading > p:last-child {
  font-size: 14px;
  line-height: 1.7;
}
.studio-shell .collection-start-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}
.studio-shell .collection-start .editor-panel h2,
.studio-shell .collection-starters h2 {
  font-size: 18px;
}
.studio-shell .collection-start .collection-start-preview h2 {
  font-size: 30px;
}
.studio-shell .collection-starter {
  border-color: var(--border);
  padding: 18px;
}
.studio-shell .collection-starter strong {
  font-size: 13px;
}
.studio-shell .collection-starter small {
  font-size: 11px;
}

/* Studio design system — neutral surfaces, deliberate density, quiet controls. */
@font-face {
  font-family: "Studio Inter";
  src: url("/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.studio-shell {
  --bg: #111214;
  --surface: #1c1d20;
  --raised: #27292d;
  --field: #17181b;
  --text: #f1f1f3;
  --muted: #9f9f9f;
  --quiet: #787878;
  --border: #303237;
  --admin-line: #2a2c30;
  --edge: #484848;
  --focus: #bdbdbd;
  --lime: #ededf0;
  --lime-hover: #ffffff;
  --accent-lime: #d7e88b;
  --selected: #292b30;
  --paper-grain: none;
  display: grid;
  grid-template-columns: var(--navigation-width, 232px) minmax(0, 1fr);
  align-items: start;
  font-family:
    "Studio Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.studio-shell h1,
.studio-shell h2,
.studio-shell h3,
.studio-shell h4,
.studio-shell .wordmark {
  font-family: inherit;
  font-weight: 600;
}
.studio-shell h1 {
  font-size: 26px;
  letter-spacing: -0.045em;
}
.studio-shell h2 {
  letter-spacing: -0.025em;
}
.studio-shell > main {
  padding: 0 32px 36px;
}
.studio-shell button,
.studio-shell .button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}
.studio-shell button:active,
.studio-shell .button:active {
  transform: translateY(1px);
}
.studio-shell .secondary {
  background: #1c1d20;
  border-color: #35373c;
  color: #d9dadd;
}
.studio-shell input:not([type="checkbox"]):not([type="radio"]),
.studio-shell textarea,
.studio-shell select {
  font-family: inherit;
  font-size: 13px;
  border-color: #383a40;
  background: var(--field);
  color: var(--text);
}
.studio-shell label {
  color: #c7c9ce;
  font-size: 12px;
  font-weight: 450;
}
.studio-shell :is(input, textarea)::placeholder {
  color: #787878;
}
.studio-shell :is(input, textarea, select):focus,
.studio-shell [contenteditable]:focus {
  outline: 2px solid #9d9d9d;
  outline-offset: -2px;
  box-shadow: none;
}
.studio-shell .eyebrow {
  color: #989898;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.09em;
}
.studio-shell .ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.studio-shell .icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 6px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: #a0a0a0;
  border-radius: 5px;
}
.studio-shell .icon-button:focus-visible,
.studio-shell summary:focus-visible,
.studio-shell a:focus-visible {
  outline: 2px solid #b7b7b7;
  outline-offset: 2px;
}
.studio-shell kbd {
  font: 10px/1.4 inherit;
  color: #7a7a7a;
  border: 1px solid #383b41;
  border-radius: 4px;
  padding: 1px 4px;
}
.studio-shell [hidden],
.studio-shell dialog:not([open]) {
  display: none !important;
}

/* Global navigation. Only the navigation list scrolls, without scrollbar chrome. */
.studio-shell .studio-sidebar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 100svh;
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #141517;
  border-right: 1px solid #292b2f;
  background-image: none;
}
.studio-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 6px;
}
.studio-shell .studio-brand .wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.065em;
  margin: 0;
  white-space: nowrap;
}
.brand-short {
  display: none;
}
.studio-shell .studio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8a8a8;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 450;
  margin: 6px 7px 24px;
}
.workspace-owner-label {
  font-size: 9px;
  color: #7d7d7d;
  border: 1px solid #32353a;
  border-radius: 4px;
  padding: 1px 4px;
}
.studio-shell .studio-menu {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  background: none;
  overflow: visible;
}
.studio-nav-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.studio-shell .studio-menu nav,
.studio-shell .global-navigation-dialog nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.studio-menu nav::-webkit-scrollbar,
.workspace-tree::-webkit-scrollbar,
#workspace-tree-body::-webkit-scrollbar,
.workspace-inspector::-webkit-scrollbar {
  display: none;
}
.studio-shell .nav-group {
  margin: 0 0 20px;
}
.studio-shell .nav-group:last-child {
  margin-bottom: 8px;
}
.studio-shell .studio-menu .nav-label {
  margin: 0 9px 8px;
  color: #767676;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.studio-shell .nav-group > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  margin: 2px 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
}
.nav-group > a .ui-icon {
  width: 16px;
  height: 16px;
  color: #8c8c8c;
}
.nav-group .nav-count {
  margin-left: auto;
  color: #828282;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.studio-shell .nav-group > a[aria-current] {
  background: #282a2f;
  color: #f0f1f3;
  border-color: #3b3b3b;
  box-shadow: 0 1px 1px #0002;
}
.nav-group > a[aria-current] .ui-icon {
  color: #e4e4e4;
}
.studio-account-menu {
  position: relative;
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #2a2c31;
  border-radius: 0;
  background: none;
}
.studio-account-menu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 5px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.studio-shell .studio-avatar {
  display: grid;
  place-items: center;
  background: #303238;
  color: #e8e9ed;
  border: 1px solid #484848;
  width: 29px;
  height: 29px;
  font-size: 11px;
  font-weight: 550;
}
.account-summary {
  min-width: 0;
  flex: 1;
}
.account-summary strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #e2e4e9;
}
.account-summary small {
  display: block;
  font-size: 10px;
  color: #848484;
  margin-top: 2px;
}
.studio-account-menu summary > .ui-icon {
  width: 13px;
  height: 13px;
  color: #797979;
}
.account-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 240px;
  padding: 6px;
  border: 1px solid #414141;
  border-radius: 8px;
  background: #222429;
  box-shadow: 0 12px 36px #0007;
}
.account-popover p {
  padding: 8px;
  margin: 0 0 5px;
  border-bottom: 1px solid #3b3b3b;
}
.account-popover p strong {
  display: block;
  font-size: 10px;
  color: #9c9c9c;
  font-weight: 450;
}
.account-popover p span {
  display: block;
  font-size: 12px;
  color: #e0e3e9;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.account-popover > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 5px;
  font-size: 12px;
  color: #d8d8d8;
}
.studio-shell .account-popover form {
  margin: 4px 0 0;
  padding: 4px 0 0;
  border-top: 1px solid #3b3b3b;
}
.studio-shell .account-popover form button {
  margin: 0;
  justify-content: start;
  padding: 9px;
  background: transparent;
  border: 0;
  color: #cbcbcb;
  font-size: 12px;
}
.studio-shell .account-popover .form-error:empty {
  display: none;
}
.studio-shell .studio-menu > summary::-webkit-details-marker,
.studio-account-menu > summary::-webkit-details-marker {
  display: none;
}
.sidebar-collapsed.studio-shell {
  grid-template-columns: 64px minmax(0, 1fr);
}
.sidebar-collapsed .studio-sidebar {
  padding: 16px 9px 10px;
}
.sidebar-collapsed .studio-brand {
  flex-direction: column;
  padding: 0;
  gap: 12px;
}
.sidebar-collapsed .brand-full,
.sidebar-collapsed .studio-label,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .nav-count,
.sidebar-collapsed .account-summary,
.sidebar-collapsed .studio-account-menu summary > .ui-icon {
  display: none;
}
.sidebar-collapsed .brand-short {
  display: inline;
  font-size: 17px;
  letter-spacing: -0.08em;
}
.sidebar-collapsed .studio-menu {
  margin-top: 16px;
}
.sidebar-collapsed .studio-menu .nav-label {
  height: 1px;
  padding: 0;
  margin: 12px 5px 10px;
  font-size: 0;
  border-top: 1px solid #2a2d32;
}
.sidebar-collapsed .nav-group {
  margin-bottom: 8px;
}
.sidebar-collapsed .nav-group > a {
  justify-content: center;
  padding: 7px 0;
  min-height: 37px;
}
.sidebar-collapsed .studio-account-menu > summary {
  justify-content: center;
  padding-inline: 0;
}
.sidebar-collapsed .account-popover {
  left: calc(100% + 14px);
  bottom: 0;
}
.global-navigation-dialog {
  margin: 0 auto 0 0;
  height: 100svh;
  width: 280px;
  max-height: 100svh;
  max-width: 90vw;
  padding: 16px 12px;
  border: 0;
  border-right: 1px solid #3c3c3c;
  background: #141517;
  color: var(--text);
}
.navigation-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 6px;
  font-size: 13px;
}
.global-navigation-dialog .studio-nav-content {
  height: calc(100% - 50px);
}

/* General admin screens use the same neutral components. */
.studio-shell .studio-overview-heading h1,
.studio-shell .admin-page-heading h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.studio-shell .studio-overview-heading .accent {
  display: none;
}
.studio-shell .studio-overview-heading .eyebrow,
.studio-shell .admin-page-heading .eyebrow {
  font-size: 10px;
  font-weight: 500;
}
.studio-shell .studio-panel,
.studio-shell .admin-card {
  background: #1a1b1e;
  border-color: #2d3035;
  background-image: none;
}
.studio-shell .studio-stats {
  background: #191a1d;
  border-color: #2e3035;
}
.studio-shell .studio-stats > div {
  padding: 18px 22px;
  border-color: #303237;
}
.studio-shell .studio-stats dd {
  font-family: inherit;
  font-weight: 550;
  font-size: 27px;
}
.studio-shell .studio-resource-columns {
  background: #16171a;
  border-color: #2e3035;
  font-size: 10px;
}
.studio-shell .studio-resource-row {
  min-height: 76px;
}
.studio-shell .studio-resource-state {
  background: #23252a;
  border-color: #424242;
  color: #b5b5b5;
}
.studio-shell .studio-resource-state[data-state="published"],
.studio-shell .studio-resource-state[data-state="active"] {
  color: #d7e88b;
  background: #252b20;
  border-color: #414a34;
}
.studio-shell .studio-resource-state[data-state="suspended"] {
  color: #efb6ae;
  background: #332422;
  border-color: #6a4541;
}
.studio-shell .studio-resource-thumbnail {
  background: #272a30;
  border-color: #3d3d3d;
}
.studio-shell .studio-resource-list > li {
  border-color: #2d3036;
}
.studio-shell .studio-resource-section {
  color: #9c9c9c;
}
.studio-shell .studio-count {
  background: #2d3036;
  border: 1px solid #414141;
  color: #b7b7b7;
}
.studio-shell .admin-card > summary {
  list-style: none;
}
.studio-shell .admin-card > summary::-webkit-details-marker {
  display: none;
}
.studio-shell .studio-section-body,
.studio-shell .studio-tool-body {
  border-color: #383838;
}
.studio-shell .editor-panel {
  background: var(--surface);
  border-color: var(--border);
  background-image: none;
}
.studio-shell .collection-start-preview {
  background: #191b1e;
}
.studio-shell .collection-start-preview h2 {
  font-size: 28px;
}
.admin-customers .admin-page-heading h1 {
  overflow-wrap: anywhere;
}

/* Editor shell: global navigation / resource explorer / document. */
.studio-shell > main:has([data-studio-editor]) {
  padding: 0;
}
.studio-shell [data-studio-editor] {
  display: grid;
  grid-template-columns: var(--contents-width, 280px) minmax(0, 1fr);
  grid-template-rows: 64px minmax(calc(100svh - 64px), auto);
  min-height: 100svh;
  padding: 0;
  margin: 0;
  max-width: none;
  position: relative;
  background: #191a1d;
}
.workspace-body {
  display: contents;
}
.workspace-body > * {
  min-width: 0;
}
.workspace-topbar {
  grid-column: 2/-1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid #2b2e33;
  background: #191a1d;
}
.workspace-location {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #7c7c7c;
  font-size: 12px;
  white-space: nowrap;
}
.workspace-location > .ui-icon {
  width: 12px;
  height: 12px;
  color: #595959;
}
.workspace-location > a {
  color: #a3a3a3;
  font-size: 12px;
}
.studio-shell .workspace-location h1 {
  font:
    450 12px/1.4 "Studio Inter",
    sans-serif;
  letter-spacing: -0.01em;
  color: #cccccc;
  max-width: 190px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-header-page] {
  font-size: 12px;
  color: #c1c1c1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.workspace-actions .ui-icon {
  width: 15px;
  height: 15px;
}
.workspace-actions button {
  min-height: 32px;
  font-size: 11px;
  padding: 7px 10px;
}
.workspace-save-state {
  font-size: 10px;
  color: #949494;
  margin-right: 10px;
  white-space: nowrap;
  line-height: 1.5;
}
.workspace-save-state::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8c68a;
  vertical-align: middle;
  margin-right: 6px;
}
.workspace-save-state[data-state="pending"]::before {
  background: #d6bd88;
}
.workspace-save-state[data-state="error"] {
  color: #e1aba6;
}
.workspace-save-state[data-state="error"]::before {
  background: #e1aba6;
}
.workspace-save-summary {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.workspace-save-summary small {
  font-size: 9px;
  line-height: 1.4;
  color: #959595;
}
.workspace-save-state[data-state="saving"]::before {
  width: 9px;
  height: 9px;
  border: 1.5px solid #bfbfbf;
  border-right-color: transparent;
  background: transparent;
  animation: interface-spin 700ms linear infinite;
}
[data-studio-editor][data-loading="true"] .workspace-topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 25%;
  left: 0;
  background: #a2a6ae;
  animation: studio-progress 1100ms ease-in-out infinite;
}
@keyframes studio-progress {
  from {
    left: 0;
  }
  to {
    left: 75%;
  }
}
.draft-leave-dialog {
  max-width: min(480px, calc(100vw - 32px));
}
.draft-leave-dialog p {
  color: #aaa;
  line-height: 1.7;
}
.draft-leave-dialog [role="alert"]:empty {
  display: none;
}
.draft-leave-dialog [role="alert"] {
  color: #e1aba6;
}
@media (prefers-reduced-motion: reduce) {
  .workspace-save-state[data-state="saving"]::before,
  [data-studio-editor][data-loading="true"] .workspace-topbar::after {
    animation: none;
  }
  [data-studio-editor][data-loading="true"] .workspace-topbar::after {
    width: 100%;
  }
}
.workspace-tree {
  grid-column: 1;
  grid-row: 1/3;
  position: sticky;
  top: 0;
  height: 100svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 12px;
  background: #151619;
  border-right: 1px solid #2a2d32;
  overflow: hidden;
  scrollbar-width: none;
}
.resource-identity {
  padding: 19px 3px 16px;
}
.explorer-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #878787;
  margin-bottom: 20px;
}
.explorer-back .ui-icon {
  width: 13px;
  height: 13px;
}
.resource-identity-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.resource-identity-body > div {
  flex: 1;
  min-width: 0;
}
.resource-mini-cover {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #25282e;
  border: 1px solid #404040;
  overflow: hidden;
}
.resource-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-mini-cover .ui-icon {
  width: 19px;
  height: 19px;
  color: #bfbfbf;
}
.studio-shell .resource-identity h2 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: #e4e4e4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-identity .icon-button {
  width: 24px;
  height: 26px;
  min-height: 26px;
  padding: 4px;
}
.resource-identity .icon-button .ui-icon {
  width: 15px;
  height: 15px;
}
.resource-identity-state {
  display: block;
  font-size: 10px;
  text-transform: capitalize;
  color: #8f8f8f;
  margin-top: 4px;
}
.resource-identity-state::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #959595;
  margin-right: 5px;
  vertical-align: middle;
}
.explorer-search {
  position: relative;
  margin: 5px 3px 22px;
}
.explorer-search > span {
  position: absolute;
  left: 9px;
  top: 10px;
  color: #797979;
  pointer-events: none;
}
.explorer-search .ui-icon {
  width: 14px;
  height: 14px;
}
.studio-shell .explorer-search input {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 7px 10px 7px 30px;
  margin: 0;
  background: #1c1e22;
  border-color: #353535;
  border-radius: 5px;
  font-size: 11px;
}
.workspace-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px 9px;
}
.studio-shell .workspace-panel-title h2 {
  font-size: 10px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f8f8f;
  margin: 0;
}
.workspace-panel-title .icon-button {
  width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 4px;
}
.workspace-panel-title .icon-button .ui-icon {
  width: 15px;
  height: 15px;
}
#workspace-tree-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  padding-bottom: 24px;
}
.workspace-tree [data-collection-tree] ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
}
.workspace-tree [data-collection-tree] > ul {
  padding: 0;
}
.tree-node-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 35px;
  border-radius: 5px;
  padding-right: 3px;
  margin: 2px 0;
}
.tree-node-row:has(> .collection-tree-item.selected) {
  background: #2d2d2d;
}
.studio-shell .tree-collapse,
.tree-spacer {
  display: block;
  flex-shrink: 0;
  width: 14px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  color: #808080;
}
.tree-collapse .ui-icon {
  width: 12px;
  height: 12px;
}
.studio-shell .collection-tree-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  min-height: 34px;
  width: auto;
  padding: 7px 5px;
  text-align: left;
  border: 0;
  background: none;
  color: #b2b2b2;
  font-size: 12px;
  font-weight: 450;
  border-radius: 4px;
  line-height: 1.5;
}
.collection-tree-item .ui-icon {
  width: 16px;
  height: 16px;
  color: #8b8b8b;
}
.collection-tree-item > span:not(.tree-dirty) {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.studio-shell .collection-tree-item.selected {
  color: #f1f3f6;
  background: none;
}
.collection-tree-item.selected .ui-icon {
  color: #e0e0e0;
}
.tree-dirty {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5ccad;
  margin-left: auto;
  flex-shrink: 0;
}
.custom-node-icon {
  font-size: 14px;
  line-height: 1;
}
.tree-item-menu {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  flex-shrink: 0;
}
.tree-item-menu > summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 24px;
  height: 28px;
  cursor: pointer;
  opacity: 0;
  color: #989898;
  border-radius: 4px;
}
.tree-item-menu .ui-icon {
  width: 15px;
  height: 15px;
}
.tree-item-menu[open] > summary,
.tree-node-row:focus-within .tree-item-menu > summary {
  opacity: 1;
}
.tree-item-menu > summary::-webkit-details-marker,
.block-menu > summary::-webkit-details-marker {
  display: none;
}
.tree-item-menu > div,
.block-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 35;
  min-width: 172px;
  background: #24272d;
  border: 1px solid #494949;
  padding: 5px;
  border-radius: 7px;
  box-shadow: 0 14px 30px #0007;
}
.tree-item-menu.menu-up > div,
.block-menu.menu-up > div,
.resource-row-menu.menu-up > div {
  top: auto;
  bottom: calc(100% + 4px);
}
.studio-shell .tree-item-menu button,
.studio-shell .block-menu button {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 9px;
  width: 100%;
  background: none;
  border: 0;
  color: #dedede;
  text-align: left;
  font-size: 11px;
  font-weight: 450;
  padding: 8px;
  min-height: 32px;
}
.studio-shell .danger-text {
  color: #e9aaa6 !important;
}
.explorer-no-results {
  font-size: 12px;
  color: #919191;
  padding: 12px 8px;
}
.explorer-bottom {
  padding: 12px 3px 8px;
  border-top: 1px solid #2f2f2f;
  flex-shrink: 0;
}
.studio-shell .explorer-action {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 9px;
  min-height: 33px;
  width: 100%;
  border: 0;
  background: none;
  color: #a0a0a0;
  font-size: 11px;
  font-weight: 450;
  padding: 7px;
}
.explorer-action .ui-icon {
  width: 15px;
  height: 15px;
}
.explorer-action kbd {
  margin-left: auto;
  font-size: 9px;
}
.workspace-tree-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 7px 4px;
  font-size: 10px;
  color: #7c7c7c;
}
.draft-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b1b9a0;
}
.workspace-tree-footer > a {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: #828282;
}
.workspace-tree-footer > a span {
  display: none;
}
.workspace-tree-footer .ui-icon {
  width: 14px;
  height: 14px;
}
.studio-shell .tree-hidden {
  grid-template-columns: minmax(0, 1fr);
}
.tree-hidden .workspace-topbar {
  grid-column: 1/-1;
}
.tree-hidden .workspace-canvas {
  grid-column: 1;
}
.tree-hidden .workspace-body > .workspace-tree {
  display: none;
}
.workspace-canvas {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  background: #191a1d;
  padding: 48px clamp(32px, 5vw, 80px) 40px;
  min-height: calc(100svh - 64px);
}
.canvas-breadcrumb {
  display: none;
}
[data-page-editor] {
  max-width: 730px;
  margin: 0 auto;
}
.canvas-heading {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #343434;
}
.canvas-page-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  background: #25282e;
  border: 1px solid #3f3f3f;
  border-radius: 7px;
  color: #d1d1d1;
  font-size: 19px;
  margin-bottom: 20px;
}
.canvas-page-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.canvas-heading .eyebrow {
  font-size: 9px;
  margin: 0 0 8px;
  color: #8a8a8a;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.studio-shell .canvas-heading h2 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin: 0 -4px;
  padding: 4px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.canvas-page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #818181;
  font-size: 11px;
  margin: 12px 0 0;
}
.canvas-page-meta > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #686868;
}
.canvas-footnote {
  max-width: 730px;
  margin: 48px auto 0;
  border-top: 1px solid #2f2f2f;
  padding-top: 16px;
  font-size: 10px;
  color: #7a7a7a;
}
.empty-writing-line {
  padding: 8px 0;
  min-height: 42px;
  line-height: 1.8;
  font-size: 15px;
  color: #c0c0c0;
  outline: 0 !important;
}
.empty-writing-line:empty::before {
  content: attr(data-placeholder);
  color: #7d7d7d;
  pointer-events: none;
}
.empty-page-guide {
  margin: 38px 0 18px;
  padding: 24px;
  border: 1px solid #373737;
  background: #1c1e23;
  border-radius: 8px;
}
.empty-page-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #4c4c4c;
  background: #313131;
  color: #c8c8c8;
  margin-bottom: 16px;
}
.empty-page-icon .ui-icon {
  width: 16px;
  height: 16px;
}
.studio-shell .empty-page-guide h3 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.025em;
  margin: 0 0 7px;
}
.empty-page-guide p {
  font-size: 12px;
  line-height: 1.75;
  color: #999999;
  max-width: 340px;
  margin: 0;
}
.empty-page-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.studio-shell .empty-page-options button {
  font-size: 11px;
  color: #c9c9c9;
  background: #2c2c2c;
  border-color: #474747;
  padding: 7px 10px;
}
.empty-page-options .ui-icon {
  width: 14px;
  height: 14px;
}
.studio-shell .add-block {
  display: block;
  border: 0;
  margin: 24px 0 0;
  padding: 0;
  background: none;
}
.studio-shell .add-block-trigger {
  width: 100%;
  justify-content: start;
  gap: 8px;
  min-height: 35px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: #808080;
  font-size: 11px;
  font-weight: 450;
}
.add-block-trigger .ui-icon {
  width: 15px;
  height: 15px;
}
.add-block-trigger kbd {
  margin-left: auto;
  opacity: 0;
}
.add-block-trigger:focus kbd,
.add-block-trigger:hover kbd {
  opacity: 1;
}
.studio-shell .visual-block {
  position: relative;
  margin: 12px -6px;
  padding: 8px 5px;
  border: 1px solid transparent;
  background: none;
  border-radius: 5px;
  min-width: 0;
}
.visual-block:focus-within {
  border-color: #3c3c3c;
}
.visual-block > .block-toolbar {
  position: absolute;
  left: -29px;
  top: 7px;
  width: calc(100% + 58px);
  height: 26px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.visual-block:focus-within > .block-toolbar,
.visual-block:has(> .block-toolbar .block-menu[open]) > .block-toolbar {
  opacity: 1;
}
.block-toolbar > span {
  display: none;
}
.studio-shell .block-drag,
.studio-shell .block-insert {
  width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 4px;
  color: #898989;
  background: transparent;
  border: 0;
  pointer-events: auto;
}
.block-drag {
  cursor: grab;
}
.block-drag .ui-icon,
.block-insert .ui-icon {
  width: 14px;
  height: 14px;
}
.block-menu {
  position: relative;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  pointer-events: auto;
}
.block-menu > summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #8d8d8d;
  border-radius: 4px;
}
.block-menu > summary .ui-icon {
  width: 16px;
  height: 16px;
}
.rich-writing {
  padding: 2px 0;
  min-height: 48px;
  outline: 0 !important;
  font-size: 15px;
  line-height: 1.85;
  color: #cecece;
  overflow-wrap: anywhere;
}
.rich-writing p {
  margin: 0 0 15px;
}
.rich-writing p:last-child {
  margin-bottom: 0;
}
.rich-writing:has(> p:only-child:empty)::before,
.rich-writing:empty::before {
  content: attr(data-placeholder);
  color: #858585;
  pointer-events: none;
}
.studio-shell .rich-writing h2 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 550;
  margin: 16px 0 10px;
}
.studio-shell .rich-writing h3 {
  font-size: 19px;
  margin: 12px 0 7px;
}
.rich-writing strong {
  font-weight: 650;
  color: #eeeeee;
}
.rich-writing a {
  color: #e7e7e7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-writing code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85em;
  background: #323232;
  padding: 2px 5px;
  border-radius: 4px;
  color: #e1e1e1;
}
.formatting-controls {
  display: none;
  position: absolute;
  top: -4px;
  left: 0;
  transform: translateY(-100%);
  z-index: 10;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  border: 1px solid #575757;
  border-radius: 6px;
  padding: 3px;
  background: #333333;
  box-shadow: 0 6px 15px #0004;
}
.visual-block:focus-within > .formatting-controls,
.visual-block.has-text-selection > .formatting-controls {
  display: flex;
}
.studio-shell .formatting-controls button {
  background: none;
  border: 0;
  color: #e4e4e4;
  min-height: 29px;
  padding: 4px 8px;
  font-size: 10px;
}
.formatting-controls .rich-link-field {
  margin: 0;
}
.formatting-controls input {
  width: 180px;
}
.studio-shell .block-plain-label {
  display: block;
  font-size: 0;
  color: transparent;
  margin: 0;
}
.studio-shell .block-plain {
  width: 100%;
  border: 0;
  background: none;
  margin: 0;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
  color: #d3d3d3;
}
.studio-shell .block-heading {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.025em;
  resize: none;
}
.visual-block:has(> .rich-writing[aria-label="Callout text"]) {
  border: 1px solid #474747;
  background: #292929;
  border-radius: 7px;
  padding: 16px 18px;
}
.collection-columns {
  display: flex;
  align-items: start;
  gap: 22px;
}
.collection-columns > div {
  flex: 1;
  min-width: 0;
}
.column-editor {
  border: 1px dashed #484848;
  border-radius: 6px;
  padding: 12px;
}
.column-editor .visual-block {
  margin-inline: 0;
}
.column-editor .block-toolbar {
  left: -10px;
  width: calc(100% + 20px);
}
.block-media-settings {
  padding: 0;
  border: 1px solid #3f3f3f;
  background: #232323;
  border-radius: 7px;
  margin: 0;
}
.block-media-settings > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  color: #d2d2d2;
  font-size: 13px;
}
.block-media-settings > summary > .ui-icon {
  color: #a1a1a1;
}
.media-edit-hint {
  margin-left: auto;
  font-size: 10px;
  color: #8f8f8f;
}
.block-media-settings > div {
  padding: 0 16px 18px;
  border-top: 1px solid #404040;
}
.visual-block input,
.visual-block select {
  width: 100%;
}
.image-block-preview {
  margin: 16px 0 0;
}
.image-block-preview img,
.editor-image-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
  border: 1px solid #404040;
  border-radius: 7px;
  background: #181818;
}
.editor-image-figure {
  margin: 0 0 14px;
}
.editor-image-figure figcaption {
  font-size: 11px;
  color: #8f8f8f;
  text-align: center;
  padding-top: 8px;
}
.image-block-preview button {
  margin-top: 12px;
}
.canvas-container-empty {
  padding: 28px 0;
  color: #9d9d9d;
}
.canvas-container-empty > span {
  display: inline-block;
  padding: 12px;
  background: #2f2f2f;
  border: 1px solid #4a4a4a;
  border-radius: 7px;
}
.canvas-container-empty h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.canvas-container-empty p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 440px;
}
.canvas-child-list {
  border-top: 1px solid #3e3e3e;
  margin-top: 24px;
}
.canvas-child-list > button {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #3e3e3e;
  border-radius: 0;
  background: none;
  color: #cfcfcf;
  gap: 10px;
  padding: 14px 0;
  text-align: left;
}
.canvas-child-list > button > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: #8b8b8b;
}

/* Contextual page inspector and saved-draft preview. */
.studio-shell .inspector-open {
  grid-template-columns: 252px minmax(0, 1fr) 280px;
}
.studio-shell .preview-open {
  grid-template-columns: 252px minmax(0, 1fr) minmax(340px, 0.95fr);
}
.inspector-open .workspace-canvas,
.preview-open .workspace-canvas {
  padding-inline: 40px;
}
.inspector-open.tree-hidden {
  grid-template-columns: minmax(0, 1fr) 280px;
}
.preview-open.tree-hidden {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
}
.tree-hidden .workspace-inspector,
.tree-hidden .workspace-preview {
  grid-column: 2;
}
.workspace-inspector,
.workspace-preview {
  grid-column: 3;
  grid-row: 2;
  position: sticky;
  top: 64px;
  height: calc(100svh - 64px);
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
  border-left: 1px solid #343434;
  background: #171a20;
  padding: 22px 18px;
}
.workspace-inspector .workspace-panel-title,
.workspace-preview .workspace-panel-title {
  padding: 0 0 20px;
}
.workspace-inspector .workspace-panel-title h2,
.workspace-preview .workspace-panel-title h2 {
  text-transform: none;
  font-size: 12px;
  font-weight: 550;
  color: #cccccc;
  letter-spacing: 0;
}
.page-facts {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3a3a;
}
.page-facts > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 11px;
}
.page-facts dt {
  color: #909090;
}
.page-facts dd {
  margin: 0;
  color: #cacaca;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.page-status-badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #525252;
  border-radius: 4px;
  font-size: 10px;
}
.context-quick-actions {
  padding: 12px 0 20px;
  border-bottom: 1px solid #3a3a3a;
}
.studio-shell .context-quick-actions button {
  background: none;
  border: 0;
  justify-content: start;
  width: 100%;
  padding: 8px 0;
  color: #b1b1b1;
  font-size: 11px;
  gap: 9px;
}
.context-quick-actions .ui-icon {
  width: 14px;
  height: 14px;
}
.node-settings {
  padding: 22px 0;
  border-bottom: 1px solid #3a3a3a;
}
.node-settings h3,
.inspector-attachments h3 {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.07em !important;
  font-weight: 550;
  color: #a0a0a0;
  margin: 0 0 12px;
}
.node-settings label {
  display: block;
  font-size: 11px;
}
.workspace-inspector input,
.workspace-inspector textarea,
.workspace-inspector select {
  width: 100%;
  font-size: 12px !important;
}
.workspace-inspector input[type="checkbox"] {
  width: auto;
}
.node-move-controls {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.node-move-controls button {
  font-size: 10px;
}
.workspace-disclosure {
  border: 0;
  padding: 16px 0 0;
  margin: 0;
  background: none;
  border-radius: 0;
}
.workspace-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 11px;
  cursor: pointer;
  color: #ababab;
}
.workspace-disclosure > summary::-webkit-details-marker,
.block-media-settings > summary::-webkit-details-marker {
  display: none;
}
.workspace-disclosure > summary::after {
  content: "+";
  margin-left: auto;
  color: #909090;
  font-size: 13px;
}
.workspace-disclosure[open] > summary::after {
  content: "−";
}
.workspace-disclosure button {
  margin-top: 10px;
}
.inspector-attachments {
  padding: 22px 0;
  border-bottom: 1px solid #3a3a3a;
}
.inspector-attachments h3 span {
  float: right;
  font-size: 10px;
  color: #878787;
}
.inspector-attachments > p {
  font-size: 11px;
  color: #8d8d8d;
  line-height: 1.7;
}
.inspector-attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
}
.inspector-attachment > .ui-icon {
  width: 15px;
  height: 15px;
  color: #a3a3a3;
}
.inspector-attachment > span {
  min-width: 0;
}
.inspector-attachment strong {
  display: block;
  color: #c6c6c6;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 450;
}
.inspector-attachment small {
  display: block;
  color: #909090;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.inspector-resource-settings {
  padding-top: 22px;
}
.inspector-cover {
  margin-top: 16px;
}
.inspector-cover img {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border: 1px solid #505050;
  border-radius: 6px;
}
.workspace-inspector form {
  margin: 0;
}
.workspace-inspector textarea {
  height: 90px;
}
.workspace-preview {
  padding: 20px 0 0;
}
.workspace-preview .workspace-panel-title {
  padding-inline: 16px;
}
.workspace-preview small {
  font-size: 10px;
  color: #9f9f9f;
}
.workspace-preview > a {
  display: block;
  padding: 8px 16px;
  font-size: 10px;
  color: #acacac;
}
.workspace-preview iframe {
  width: 100%;
  height: calc(100svh - 160px);
  min-height: 600px;
  border: 0;
  margin: 0;
  background: var(--bg);
}
.collection-workspace > [data-collection-error]:empty {
  display: none;
}
.collection-workspace > [data-collection-error]:not(:empty) {
  position: fixed;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(600px, 90vw);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #835a59;
  border-radius: 7px;
  background: #34282a;
  color: #eabdb9;
  font-size: 12px;
  box-shadow: 0 6px 25px #0005;
}

/* Focus-contained dialogs and block command menu. */
.studio-dialog,
.studio-panel-dialog,
.explorer-dialog {
  color: #e3e3e3;
  font-family: "Studio Inter", sans-serif;
  scrollbar-width: none;
}
.studio-dialog {
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 24px;
  border: 1px solid #4c4c4c;
  border-radius: 10px;
  background: #232323;
  box-shadow: 0 18px 70px #0008;
  overflow: auto;
}
.studio-dialog::backdrop,
.studio-panel-dialog::backdrop,
.global-navigation-dialog::backdrop,
.explorer-dialog::backdrop {
  background: #0009;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #595959;
  background: #373737;
  border-radius: 7px;
  color: #d9d9d9;
}
.studio-shell .studio-dialog h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.studio-dialog > p {
  color: #a2a2a2;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.studio-dialog label {
  display: block;
  font-size: 12px;
  margin: 18px 0 0;
}
.studio-dialog input:not([type="checkbox"]),
.studio-dialog select {
  width: 100%;
  font-size: 13px;
}
.studio-dialog .collection-add,
.studio-dialog .collection-upload {
  border: 0;
  padding: 0;
  margin: 0;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #4c4c4c;
}
.dialog-actions button {
  width: auto !important;
  min-width: 80px;
}
.studio-shell .danger-button {
  background: #783e40;
  border-color: #a36063;
  color: #fff;
}
.upload-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.studio-shell .upload-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  justify-content: start;
  cursor: pointer;
  padding: 14px 10px;
  background: #303030;
  border: 1px solid #535353;
  border-radius: 7px;
  margin: 0;
}
.upload-option .ui-icon {
  width: 19px;
  height: 19px;
  color: #c1c1c1;
}
.upload-option strong {
  font-size: 11px;
  color: #d8d8d8;
  font-weight: 500;
}
.upload-option > span {
  font-size: 10px;
  line-height: 1.5;
  color: #a3a3a3;
}
.upload-option:focus-within {
  outline: 2px solid #c0c0c0;
  outline-offset: 2px;
}
.studio-dialog .collection-upload-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 14px 0;
  border-bottom: 1px solid #505050;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.collection-upload-row progress {
  width: 100%;
  height: 4px;
  accent-color: #d4d4d4;
}
.collection-upload-row span {
  color: #b2b2b2;
  font-size: 10px;
}
.studio-shell .block-palette {
  padding: 0;
  width: 440px;
  overflow: hidden;
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #505050;
}
.palette-search > .ui-icon {
  color: #b2b2b2;
  width: 18px;
  height: 18px;
}
.studio-shell .palette-search input {
  border: 0;
  background: none;
  margin: 0;
  padding: 6px 0;
  flex: 1;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  outline: 0;
}
.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 10px;
}
.studio-shell .palette-heading h2 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b4b4b4;
  margin: 0;
}
.palette-heading > span {
  font-size: 10px;
  color: #929292;
}
[data-block-options] {
  max-height: min(440px, 60svh);
  overflow: auto;
  padding: 0 7px 7px;
  scrollbar-width: thin;
}
.studio-shell [data-block-options] > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  padding: 10px 9px;
  background: none;
  border: 1px solid transparent;
  color: #e5e5e5;
  text-align: left;
  border-radius: 6px;
  min-height: 57px;
}
[data-block-options] > button[aria-selected="true"],
[data-block-options] > button:focus {
  background: #3f3f3f;
  border-color: #626262;
  outline: 0;
}
.palette-option-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #393939;
  border: 1px solid #616161;
  border-radius: 6px;
  color: #cdcdcd;
}
.palette-option-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.palette-option-icon + span {
  flex: 1;
}
.palette-option-icon + span strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.palette-option-icon + span small {
  display: block;
  font-size: 10px;
  color: #a3a3a3;
  margin-top: 4px;
  font-weight: 400;
}
.palette-option-key {
  font-size: 9px;
  color: #9c9c9c;
}
.palette-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  border-top: 1px solid #515151;
  color: #a1a1a1;
  font-size: 9px;
}
.palette-footer > span:first-child {
  margin-right: auto;
}
.palette-empty {
  padding: 24px 12px;
  font-size: 12px;
  color: #b7b7b7;
}
.studio-panel-dialog {
  margin: 0 0 0 auto;
  width: 310px;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  border: 0;
  padding: 0;
  background: #222222;
}
.studio-panel-dialog.preview-dialog {
  width: 100vw;
}
.studio-panel-dialog > .workspace-inspector,
.studio-panel-dialog > .workspace-preview {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  overflow: auto;
}
.explorer-dialog {
  margin: 0 auto 0 0;
  width: 280px;
  max-width: 92vw;
  height: 100svh;
  max-height: 100svh;
  border: 0;
  padding: 0;
  background: #1b1b1b;
}
.explorer-dialog > .workspace-tree {
  display: flex !important;
  position: static;
  height: 100%;
  width: 100%;
  max-height: none;
  border: 0;
}

/* Code and checklists retain the underlying document/block architecture. */
.code-editor {
  border: 1px solid #444444;
  border-radius: 7px;
  overflow: hidden;
  background: #181818;
}
.code-toolbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid #3d3d3d;
  background: #242424;
}
.code-toolbar > .ui-icon {
  width: 14px;
  height: 14px;
  color: #9a9a9a;
}
.studio-shell .code-toolbar select {
  font-size: 10px;
  background: none;
  border: 0;
  width: auto;
  margin: 0;
  min-height: 28px;
  padding: 4px;
  color: #bbbbbb;
  outline: 0;
}
.code-toolbar .icon-button {
  margin-left: auto;
}
.code-surface {
  position: relative;
  height: 194px;
}
.code-surface pre,
.studio-shell .code-input {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px !important;
  line-height: 1.8;
  tab-size: 2;
  letter-spacing: 0;
  white-space: pre;
  word-wrap: normal;
  padding: 18px !important;
  margin: 0 !important;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.code-surface pre {
  overflow: hidden;
  pointer-events: none;
  background: none;
  color: #d4d4d4;
}
.studio-shell .code-input {
  position: absolute;
  inset: 0;
  resize: none;
  background: transparent !important;
  color: transparent !important;
  caret-color: #efefef;
  overflow: auto;
  outline: 0 !important;
  box-shadow: none;
}
.code-input::selection {
  background: #739fd644;
}
.hljs {
  color: #cdcdcd;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #bebebe;
}
.hljs-string,
.hljs-regexp,
.hljs-attribute {
  color: #b1c4a8;
}
.hljs-number,
.hljs-symbol {
  color: #c8b59a;
}
.hljs-title,
.hljs-built_in,
.hljs-type {
  color: #c5c5c5;
}
.hljs-attr,
.hljs-name,
.hljs-tag {
  color: #bfbfbf;
}
.hljs-comment,
.hljs-quote {
  color: #7f7f7f;
}
.reader-code {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #15171c;
  margin: 22px 0;
}
.reader-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #3a3a3a;
  color: #9c9c9c;
  font-size: 11px;
}
.reader-code-toolbar button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  min-height: 28px;
  background: transparent;
  color: #cccccc;
  border: 0;
}
.reader-code-toolbar svg {
  width: 13px;
  height: 13px;
}
.reader-code pre {
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
.checklist-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 3px 0 !important;
  padding: 4px 0;
}
.checklist-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #dadada;
}
.studio-shell .checklist-row input[type="text"] {
  flex: 1;
  margin: 0;
  background: none;
  border: 0;
  min-height: 29px;
  padding: 3px 0;
  font-size: 14px;
}
.checklist-row:has(input:checked) input[type="text"] {
  color: #8f8f8f;
  text-decoration: line-through;
}
.studio-shell .checklist-editor .text-button {
  background: none;
  border: 0;
  color: #a1a1a1;
  font-size: 11px;
  justify-content: start;
  padding: 5px 0;
}
.checklist-editor .text-button .ui-icon {
  width: 13px;
  height: 13px;
}
.reader-checklist {
  list-style: none;
  padding: 0;
}
.reader-checklist li {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 5px 0;
}
.reader-checklist input {
  margin-top: 7px;
  accent-color: #d8d8d8;
}
.studio-preview > main {
  padding: 20px;
  width: 100%;
  max-width: none;
}
.studio-preview .collection-layout {
  grid-template-columns: 1fr;
}
.studio-preview .collection-contents {
  position: static;
}
.studio-preview .collection-heading h1 {
  font-size: 30px;
}
.studio-preview .collection-heading .detail-cover {
  max-height: 150px;
}
.studio-preview .collection-preview {
  font-size: 11px;
  padding: 12px;
}
.studio-preview .collection-preview a {
  display: none;
}
.drop-target {
  outline: 2px solid #bfbfbf;
  outline-offset: -2px;
}
.studio-shell #toast {
  bottom: 20px;
  padding: 10px 16px;
  border: 1px solid #656565;
  border-radius: 7px;
  background: #363636;
  color: #e7e7e7;
  font-size: 12px;
  z-index: 120;
}
@media (hover: hover) and (pointer: fine) {
  .studio-shell .nav-group > a:hover {
    background: #22252a;
    color: #e8e8e8;
  }
  .studio-shell .icon-button:hover,
  .studio-account-menu > summary:hover {
    background: #343434;
    color: #ebebeb;
  }
  .studio-shell .explorer-action:hover,
  .tree-node-row:hover {
    background: #2a2a2a;
    color: #e8e8e8;
  }
  .tree-node-row:hover .tree-item-menu > summary {
    opacity: 1;
  }
  .visual-block:hover > .block-toolbar {
    opacity: 1;
  }
  .studio-shell .tree-item-menu button:hover,
  .studio-shell .block-menu button:hover,
  .account-popover > a:hover {
    background: #474747;
  }
  .studio-shell .add-block-trigger:hover {
    color: #cdcdcd;
  }
  .studio-shell .upload-option:hover {
    background: #3f3f3f;
    border-color: #838383;
  }
  .studio-shell [data-block-options] > button:hover {
    background: #3f3f3f;
  }
}
.studio-shell .studio-label > .workspace-owner-label {
  width: auto;
  height: auto;
  background: none;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 8px;
}
.studio-shell .studio-account-menu {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
}
.studio-shell .studio-menu nav,
.studio-shell .global-navigation-dialog nav {
  max-height: calc(100svh - 195px);
  padding-bottom: 12px;
}
.studio-shell .nav-group > a {
  font-size: 13px;
}
.studio-shell .explorer-search input[type="search"] {
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 7px 10px 7px 30px;
}
.studio-shell #toast:empty {
  display: none;
}
.studio-shell .checklist-row {
  flex-direction: row;
  align-items: center;
}
.studio-shell .checklist-row input[type="checkbox"] {
  flex: none;
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
}
.studio-shell .checklist-row input[type="text"] {
  width: 0;
  min-width: 0;
  flex: 1;
}
.studio-shell .block-insert {
  position: absolute;
  left: 0;
  top: 26px;
}
.studio-shell .collection-start {
  max-width: 840px;
}
.studio-shell .collection-start-layout {
  grid-template-columns: 1fr;
}
.studio-shell .collection-start-preview {
  display: none;
}
.studio-shell .collection-start-heading h1 {
  font-size: 25px;
}
.studio-shell .collection-starter-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #2a2c31;
  border: 1px solid #41444b;
  border-radius: 6px;
  color: #c8cbd3;
}
.studio-shell .collection-starter-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.studio-shell .collection-starter:has(input:checked) {
  background: #282b31;
  border-color: #757a85;
}
.studio-shell .collection-starter input {
  accent-color: #e8e9ed;
}
.studio-shell .global-navigation-dialog .nav-label {
  margin: 0 9px 8px;
  padding: 0;
  height: auto;
  font-size: 10px;
  letter-spacing: 0.075em;
  color: #70747e;
  text-transform: uppercase;
  border: 0;
}
.studio-shell summary {
  list-style: none;
}
.studio-shell summary::-webkit-details-marker {
  display: none;
}
.studio-shell details.node-settings {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #303946;
  border-radius: 0;
  background: none;
}
.node-settings > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  color: #969ba5;
}
.node-settings > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 13px;
  color: #777e8b;
}
.node-settings[open] > summary::after {
  content: "−";
}
@media (max-width: 1400px) {
  .workspace-location h1 {
    max-width: 140px !important;
  }
  [data-header-page] {
    max-width: 90px;
  }
  .workspace-topbar {
    padding-inline: 18px;
  }
  .workspace-save-state {
    font-size: 9px;
    margin-right: 2px;
  }
  .workspace-location {
    gap: 6px;
  }
}
@media (max-width: 1200px) {
  .studio-shell .inspector-open,
  .studio-shell .preview-open {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  .studio-shell .inspector-open.tree-hidden,
  .studio-shell .preview-open.tree-hidden {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-body > .workspace-inspector,
  .workspace-body > .workspace-preview {
    display: none;
  }
}
@media (max-width: 1000px) {
  .studio-shell [data-studio-editor],
  .studio-shell .inspector-open,
  .studio-shell .preview-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-topbar {
    grid-column: 1/-1;
  }
  .workspace-body > .workspace-tree {
    display: none;
  }
  .workspace-canvas {
    grid-column: 1;
    padding: 40px 56px;
  }
}
@media (max-width: 900px) {
  .studio-shell,
  .sidebar-collapsed.studio-shell {
    display: block;
  }
  .studio-shell .studio-sidebar {
    position: static;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid #3d3d3d;
  }
  .studio-shell .studio-brand {
    padding: 0;
    display: flex;
    flex-direction: row;
  }
  .studio-shell .studio-brand .wordmark {
    font-size: 17px;
  }
  .studio-shell .brand-full {
    display: inline;
  }
  .studio-shell .brand-short,
  .studio-shell .sidebar-collapse,
  .studio-shell .studio-label {
    display: none;
  }
  .studio-shell .studio-menu {
    flex: none;
    margin: 0;
  }
  .studio-shell .studio-menu > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    font-size: 11px;
    color: #a9a9a9;
    cursor: pointer;
    padding: 8px;
  }
  .studio-menu > summary > span {
    display: none;
  }
  .studio-shell .studio-menu > summary .ui-icon {
    width: 19px;
    height: 19px;
  }
  .global-navigation-dialog .nav-text,
  .global-navigation-dialog .nav-count,
  .global-navigation-dialog .account-summary {
    display: block;
  }
  .global-navigation-dialog .studio-menu .nav-label {
    font-size: 10px;
    height: auto;
    border: 0;
  }
  .global-navigation-dialog .nav-group > a {
    justify-content: start;
    padding-inline: 9px;
  }
  .global-navigation-dialog .account-popover {
    left: 0;
    bottom: calc(100% + 8px);
  }
  .global-navigation-dialog .studio-account-menu > summary {
    justify-content: start;
  }
  .studio-shell > main {
    padding: 0 24px 28px;
  }
  .studio-shell [data-studio-editor] {
    min-height: calc(100svh - 56px);
    grid-template-rows: 64px minmax(calc(100svh - 120px), auto);
  }
  .studio-shell .studio-overview,
  .studio-shell .admin-page,
  .studio-shell .admin-customers {
    padding-top: 26px;
  }
  .studio-shell .studio-management {
    grid-template-columns: 1fr;
  }
  .studio-shell .collection-start-layout {
    grid-template-columns: 1fr;
  }
  .studio-shell .collection-start-preview {
    display: none;
  }
}
@media (max-width: 600px) {
  .studio-shell > main {
    padding-inline: 16px;
  }
  .studio-shell .studio-overview-heading,
  .admin-page-heading {
    flex-direction: column;
    align-items: start;
    gap: 15px;
    margin-bottom: 22px;
  }
  .studio-shell .studio-overview-heading h1,
  .admin-page-heading h1 {
    font-size: 23px;
  }
  .studio-shell .studio-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-shell .studio-stats > div {
    padding: 15px 12px;
  }
  .studio-shell .studio-stats dt {
    font-size: 10px;
    line-height: 1.5;
  }
  .studio-shell .studio-stats dd {
    font-size: 24px;
  }
  .admin-filters {
    padding-inline: 16px;
    gap: 12px;
  }
  .admin-filters label.admin-search {
    flex-basis: 100%;
  }
  .admin-filters > label:not(.admin-search) {
    flex: 1;
    min-width: 100px;
  }
  .admin-filters [role="status"] {
    padding: 0;
  }
  .studio-shell .studio-resource-columns {
    display: none;
  }
  .studio-shell .studio-resource-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
    gap: 8px;
  }
  .studio-shell .studio-resource-identity {
    padding-right: 28px;
    grid-column: 1/-1;
  }
  .studio-shell .studio-resource-section {
    padding-left: 62px;
  }
  .resource-row-menu {
    right: 12px;
    top: 18px;
  }
  .admin-card-grid,
  .admin-customer-grid {
    grid-template-columns: 1fr;
  }
  .admin-card {
    padding: 20px 16px;
  }
  .admin-payment-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    overflow-wrap: anywhere;
  }
  .admin-customer-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .admin-customer-row strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .customer-open {
    display: none;
  }
  .customer-support-actions form {
    display: block;
  }
  .customer-support-actions form button {
    margin-top: 12px;
  }
  .studio-shell [data-studio-editor] {
    grid-template-rows: 104px minmax(calc(100svh - 160px), auto);
  }
  .workspace-topbar {
    height: 104px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    position: static;
    align-content: center;
  }
  .workspace-location {
    width: 100%;
  }
  .studio-shell .workspace-location h1 {
    max-width: none !important;
    flex: 1;
    overflow: hidden;
  }
  [data-header-page] {
    display: none;
  }
  .workspace-location > .ui-icon:last-of-type {
    display: none;
  }
  .workspace-actions {
    width: 100%;
  }
  .workspace-actions .workspace-save-state {
    margin-right: auto;
    font-size: 10px;
  }
  .workspace-actions button {
    min-height: 32px;
    padding: 7px 9px;
  }
  .workspace-actions button .ui-icon {
    width: 14px;
    height: 14px;
  }
  .workspace-actions [data-workspace-preview] > span,
  .workspace-actions [data-workspace-settings] > span {
    display: none;
  }
  .workspace-canvas,
  .inspector-open .workspace-canvas,
  .preview-open .workspace-canvas {
    padding: 28px 28px 32px;
    min-height: 520px;
  }
  .studio-shell .canvas-heading h2 {
    font-size: 30px;
  }
  .canvas-heading {
    padding-bottom: 20px;
  }
  .canvas-page-icon {
    margin-bottom: 16px;
  }
  .canvas-page-meta {
    font-size: 10px;
  }
  .empty-page-guide {
    padding: 20px;
    margin-top: 26px;
  }
  .empty-page-options {
    flex-direction: column;
    align-items: stretch;
  }
  .studio-shell .empty-page-options button {
    justify-content: start;
    min-height: 36px;
  }
  .visual-block > .block-toolbar {
    opacity: 1;
    left: -20px;
    width: calc(100% + 40px);
  }
  .studio-shell .block-drag,
  .studio-shell .block-insert {
    width: 21px;
    padding: 3px;
  }
  .collection-columns {
    flex-direction: column;
  }
  .collection-columns > div {
    width: 100%;
  }
  .studio-shell .workspace-body input,
  .studio-shell .workspace-body textarea,
  .studio-shell .workspace-body select {
    font-size: 16px;
  }
  .studio-shell .formatting-controls button {
    min-height: 32px;
    font-size: 10px;
    padding-inline: 6px;
  }
  .studio-shell .studio-dialog input:not([type="checkbox"]),
  .studio-shell .studio-dialog select {
    font-size: 16px;
  }
  .studio-shell .collection-starter-grid {
    grid-template-columns: 1fr;
  }
  .upload-options {
    gap: 7px;
  }
  .studio-shell .upload-option {
    padding: 12px 9px;
  }
  .palette-option-icon + span small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-shell *,
  .studio-shell *::before,
  .studio-shell *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep resource chapters beside the document on desktop and tablet. */
@media (min-width: 701px) {
  .studio-shell [data-studio-editor],
  .studio-shell .inspector-open,
  .studio-shell .preview-open {
    grid-template-columns: var(--contents-width, 280px) minmax(0, 1fr);
  }
  .workspace-body > .workspace-tree {
    display: flex;
  }
  .workspace-topbar,
  .workspace-canvas {
    grid-column: 2;
  }
  .workspace-canvas {
    padding: 36px clamp(36px, 3vw, 48px);
  }
  [data-page-editor] {
    max-width: none;
  }
  [data-tree-toggle],
  [data-explorer-close] {
    display: inline-flex;
  }
}
@media (min-width: 1201px) {
  .studio-shell .inspector-open,
  .studio-shell .preview-open {
    grid-template-columns: var(--contents-width, 280px) minmax(0, 1fr) 320px;
  }
}
.studio-shell .rich-writing strong {
  color: #efc66a;
}
.studio-shell .rich-writing em {
  color: #c3b4f3;
}
.studio-shell .rich-writing code,
.studio-shell .rich-writing .skill-reference {
  color: #efc66a;
}
.studio-shell .rich-writing .skill-reference {
  text-decoration-color: #806b3d;
  text-underline-offset: 4px;
  cursor: pointer;
}
.studio-shell .block-callout {
  border-left-color: #8dd9cb;
}
.studio-shell .collection-tree-item[aria-current="page"] {
  color: #efc66a;
}
@media (max-width: 700px) {
  .studio-preview .reader-navigation {
    display: none;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .studio-shell [data-studio-editor] {
    grid-template-rows: 96px minmax(calc(100svh - 152px), auto);
  }
  .workspace-topbar {
    height: 96px;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .workspace-location {
    flex-basis: 100%;
  }
  .workspace-actions {
    margin-left: auto;
  }
}
.diagram-editor {
  border: 1px solid #3d4144;
  border-radius: 6px;
  padding: 16px;
}
.diagram-editor-step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #3d4144;
  border-radius: 5px;
  margin: 12px 0;
  padding: 12px;
  min-width: 0;
}
.diagram-editor-step legend {
  color: #efc66a;
  font-size: 11px;
  padding: 0 4px;
}
.diagram-editor-step label {
  display: block;
  font-size: 11px;
  color: #aaa;
  min-width: 0;
}
.diagram-description {
  grid-column: 1/-1;
}
.diagram-editor-step button {
  justify-self: start;
}

/* Customer directory: aligned desktop columns and stacked records on narrow screens. */
.directory-page {
  min-width: 0;
  overflow-wrap: anywhere;
}
.directory-snapshot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  margin-bottom: 4px;
}
.directory-snapshot p {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
}
.directory-snapshot strong {
  color: var(--text);
  font-weight: 500;
}
.directory-snapshot form {
  flex-shrink: 0;
  margin: 0;
}
[data-directory-error]:empty {
  display: none;
}
.directory-card {
  padding: 0;
  overflow: hidden;
}
.directory-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--admin-line);
}
.directory-filters label,
.directory-filter-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 12px;
}
.directory-filters input,
.directory-filters select {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.directory-select {
  position: relative;
  min-width: 0;
}
.directory-filters .directory-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}
.directory-select > .ui-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}
@media (forced-colors: active) {
  .directory-filters .directory-select select {
    appearance: auto;
  }
  .directory-select > .ui-icon {
    display: none;
  }
}
.directory-filters .directory-search {
  grid-column: 1 / 4;
  grid-row: 1;
}
.directory-filter-actions {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  align-items: end;
  justify-content: end;
  gap: 14px;
  font-size: 12px;
}
.directory-filter-actions a {
  padding-block: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.directory-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--admin-line);
}
.directory-results-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}
.directory-results-heading .admin-result-count {
  margin: 0;
  font-size: 12px;
}
.directory-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}
.directory-table th,
.directory-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.directory-table thead th {
  padding-block: 12px;
  color: var(--muted);
  font-size: 11px;
  background: var(--field);
  font-weight: 500;
}
.directory-table th:first-child {
  width: 25%;
  padding-left: 20px;
}
.directory-table th:last-child,
.directory-table td:last-child {
  width: 20%;
  padding-right: 20px;
}
.directory-table tbody tr:last-child > * {
  border-bottom: 0;
}
.directory-table tbody tr:focus-within {
  background: var(--raised);
}
.directory-identity a {
  color: var(--text);
  text-decoration: none;
}
.directory-identity strong {
  font-size: 12px;
  font-weight: 500;
}
.directory-identity p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.directory-record-type {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.directory-badge-positive,
.directory-badge-pending,
.directory-badge-danger {
  padding: 4px 8px;
  border-radius: 5px;
}
.directory-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}
.directory-badge-positive {
  color: #91d5a9;
  background: #20382a;
}
.directory-badge-pending {
  color: #e4c788;
  background: #393021;
}
.directory-badge-danger {
  color: #f2a0a0;
  background: #3d2528;
}
.directory-methods {
  color: var(--muted);
  font-size: 11px;
}
.directory-activity > span {
  display: block;
  font-size: 10px;
}
.directory-activity > span + span {
  margin-top: 5px;
  color: var(--muted);
}
.directory-date-label {
  color: var(--muted);
}
.directory-timezone {
  font-size: 9px;
  margin-left: 3px;
  font-weight: 400;
}
.directory-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 16px 0 0;
}
.directory-facts div {
  min-width: 0;
}
.directory-facts dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.directory-facts dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.directory-detail h2,
.directory-page h1 {
  overflow-wrap: anywhere;
}
.directory-detail > p {
  margin-top: 24px;
}
.directory-pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--admin-line);
  font-size: 12px;
  color: var(--muted);
}
@media (hover: hover) {
  .directory-table tbody tr:hover {
    background: var(--raised);
  }
  .directory-identity a:hover {
    text-decoration: underline;
  }
}
@media (max-width: 1200px) {
  .directory-filters .directory-search {
    grid-column: 1 / 3;
  }
  .directory-filter-actions {
    grid-column: 3 / 5;
  }
}
@media (max-width: 1100px) {
  .directory-list {
    padding-inline: 20px;
  }
  .directory-table,
  .directory-table tbody {
    display: block;
  }
  .directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .directory-table .directory-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--admin-line);
  }
  .directory-table .directory-row > :is(th, td) {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .directory-table .directory-row th.directory-identity {
    width: auto;
    grid-column: 1 / -1;
  }
  .directory-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .directory-table .directory-activity {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .directory-snapshot {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .directory-filters,
  .directory-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .directory-filters .directory-search {
    grid-column: 1 / -1;
  }
  .directory-filter-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: start;
  }
  .directory-results-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .directory-pagination {
    justify-content: start;
  }
}

.panel-resize-handle {
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  z-index: 5;
  cursor: col-resize;
  touch-action: none;
  border-right: 2px solid transparent;
}
.panel-resize-handle:focus-visible {
  outline: none;
  border-right-color: #a8a8a8;
}
.resizing-panel,
.resizing-panel * {
  cursor: col-resize !important;
  user-select: none !important;
}
.sidebar-collapsed [data-panel-resize="navigation"] {
  display: none;
}
.studio-shell .nav-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.studio-shell .resource-identity h2 {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .panel-resize-handle:hover {
    border-right-color: #777;
  }
}
@media (min-width: 701px) {
  .studio-shell [data-studio-editor].tree-hidden {
    grid-template-columns: minmax(0, 1fr);
  }
  .tree-hidden .workspace-body > .workspace-tree {
    display: none;
  }
  .tree-hidden .workspace-topbar,
  .tree-hidden .workspace-canvas {
    grid-column: 1;
  }
}
@media (min-width: 1201px) {
  .studio-shell .inspector-open.tree-hidden,
  .studio-shell .preview-open.tree-hidden {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .tree-hidden .workspace-inspector,
  .tree-hidden .workspace-preview {
    grid-column: 2;
  }
}
@media (max-width: 900px) {
  [data-panel-resize="navigation"] {
    display: none;
  }
}
@media (max-width: 700px) {
  [data-panel-resize="contents"] {
    display: none;
  }
}
