/* Creator-only presentation, layered after the shared design system.
 * Loading and signed-out states use the same management-only shell.
 */
html[data-creator-center="true"] .host-guide,
html[data-creator-center="true"] .host-footer,
html[data-creator-center="true"] .host-brand small,
html[data-creator-center="true"] .host-nav-publish,
html[data-creator-center="true"] .rs-account-header,
html[data-creator-center="true"] .rs-account-footer,
html[data-creator-center="true"] .rs-account-skip,
html[data-creator-center="true"] .host-dashboard > .host-section-heading .host-eyebrow {
  display: none;
}

html[data-creator-center="true"] .host-dashboard > .host-section-heading {
  align-items: center;
  margin-bottom: 24px;
}

html[data-creator-center="true"] .host-dashboard h1 {
  margin-top: 0;
}

html[data-creator-center="true"] .host-publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

html[data-creator-center="true"][data-account-token-ui="true"] .host-tokens > .host-token-row,
html[data-creator-center="true"][data-account-token-ui="true"] .host-tokens > .host-token-once:not(.rs-token-once) {
  display: none;
}

html[data-creator-center="true"] .rs-token-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

html[data-creator-center="true"] .rs-token-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 700;
}

html[data-creator-center="true"] .rs-token-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm);
  background: var(--rs-surface);
  color: var(--rs-text);
}

html[data-creator-center="true"] .rs-token-hint,
html[data-creator-center="true"] .rs-token-status,
html[data-creator-center="true"] .rs-token-empty {
  color: var(--rs-muted);
  overflow-wrap: anywhere;
}

html[data-creator-center="true"] .rs-token-hint {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

html[data-creator-center="true"] .rs-token-status {
  min-height: 1.5em;
  margin: 8px 0 0;
}

html[data-creator-center="true"] .rs-token-status[data-state="error"] {
  color: var(--rs-danger);
}

html[data-creator-center="true"] .rs-token-status[data-state="success"] {
  color: var(--rs-success);
}

html[data-creator-center="true"] .rs-token-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

html[data-creator-center="true"] .rs-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm);
  background: var(--rs-subtle);
}

html[data-creator-center="true"] .rs-token-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-creator-center="true"] .rs-token-row small {
  color: var(--rs-muted);
}

html[data-creator-center="true"] .rs-token-row button {
  min-height: 44px;
  flex: 0 0 auto;
}

html[data-creator-center="true"] .rs-token-once textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-creator-center="true"] .rs-subdomain-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow);
}

html[data-creator-center="true"] .rs-subdomain-copy h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

html[data-creator-center="true"] .rs-subdomain-copy p,
html[data-creator-center="true"] .rs-subdomain-hint,
html[data-creator-center="true"] .rs-subdomain-status {
  margin: 0;
  color: var(--rs-muted);
}

html[data-creator-center="true"] .rs-subdomain-copy code {
  overflow-wrap: anywhere;
}

html[data-creator-center="true"] .rs-subdomain-controls > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

html[data-creator-center="true"] .rs-subdomain-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-creator-center="true"] .rs-subdomain-input-row > span {
  flex: 0 0 auto;
  color: var(--rs-muted);
}

html[data-creator-center="true"] .rs-subdomain-input-row input {
  min-width: 120px;
  flex: 1 1 220px;
}

html[data-creator-center="true"] .rs-subdomain-save {
  min-height: 44px;
  flex: 0 0 auto;
}

html[data-creator-center="true"] .rs-subdomain-hint {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
}

html[data-creator-center="true"] .rs-subdomain-status {
  min-height: 1.5em;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

html[data-creator-center="true"] .rs-subdomain-status[data-state="error"] {
  color: var(--rs-danger);
}

html[data-creator-center="true"] .rs-subdomain-status[data-state="success"] {
  color: var(--rs-success);
}

html[data-creator-center="true"] .host-managed-row > div,
html[data-creator-center="true"] .host-form-row > label,
html[data-creator-center="true"] .host-token-row > span {
  min-width: 0;
}

html[data-creator-center="true"] .host-row-actions {
  justify-content: flex-end;
}

html[data-creator-center="true"] .host-managed-row,
html[data-creator-center="true"] .host-token-row,
html[data-creator-center="true"] .host-version-list > div {
  flex-wrap: wrap;
}

html[data-creator-center="true"] .host-file-list li,
html[data-creator-center="true"] .host-token-once,
html[data-creator-center="true"] .host-token-row,
html[data-creator-center="true"] .host-version-list {
  overflow-wrap: anywhere;
}

html[data-creator-center="true"] .host-token-once textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-creator-center="true"] .host-file-button,
html[data-creator-center="true"] .host-row-actions button,
html[data-creator-center="true"] .host-row-actions a,
html[data-creator-center="true"] .host-token-row button,
html[data-creator-center="true"] .host-version-list button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  html[data-creator-center="true"] .rs-subdomain-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  html[data-creator-center="true"] .rs-subdomain-input-row {
    flex-wrap: wrap;
  }

  html[data-creator-center="true"] .rs-subdomain-input-row input {
    flex-basis: 160px;
  }

  html[data-creator-center="true"] .host-managed-row {
    flex-direction: column;
    align-items: stretch;
  }

  html[data-creator-center="true"] .rs-token-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html[data-creator-center="true"] .rs-token-form button {
    grid-column: 1 / -1;
  }

  html[data-creator-center="true"] .host-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  /* Keep the common header height, logo and all workspace navigation links.
   * Visually collapse the wordmark while preserving its accessible name.
   */
  html[data-creator-center="true"] .host-brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html[data-creator-center="true"] .host-header nav {
    display: flex;
    gap: 12px;
  }

  html[data-creator-center="true"] .host-header nav > a:not(.host-nav-publish) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  html[data-creator-center="true"] .host-dashboard > .host-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  html[data-creator-center="true"] .host-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  html[data-creator-center="true"] .rs-subdomain-panel {
    padding: 18px;
  }

  html[data-creator-center="true"] .rs-subdomain-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  html[data-creator-center="true"] .rs-subdomain-input-row > span:last-of-type {
    grid-column: 1 / -1;
  }

  html[data-creator-center="true"] .rs-subdomain-save {
    grid-column: 1 / -1;
    width: 100%;
  }

  html[data-creator-center="true"] .rs-token-form {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-creator-center="true"] .rs-token-form button {
    grid-column: auto;
    width: 100%;
  }

  html[data-creator-center="true"] .rs-token-row {
    align-items: stretch;
    flex-direction: column;
  }
}
