:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #18212f;
  background: #f6f7f9;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: #f6f7f9;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: #162033;
  color: #f7fafc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand span {
  color: #aab7c8;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  color: #cfdae8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.nav a[aria-current="page"] {
  background: #263650;
  color: #ffffff;
}

[tabindex="-1"]:focus {
  outline: none;
}

.main {
  min-width: 0;
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.title-block {
  display: grid;
  gap: 4px;
}

.title-block h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.title-block p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.select,
.button {
  height: 36px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #1d2939;
  padding: 0 12px;
}

.button.primary {
  border-color: #2364aa;
  background: #2364aa;
  color: #ffffff;
}

.button.danger {
  border-color: #d92d20;
  color: #b42318;
}

.button.danger:hover {
  background: #fff1f3;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.page-grid {
  display: grid;
  gap: 16px;
}

.page-grid.two-column {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.metric,
.panel {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.metric {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.metric span {
  color: #667085;
  font-size: 13px;
}

.metric strong {
  font-size: 26px;
  line-height: 1.1;
}

.metric small {
  color: #98a2b3;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.panel {
  overflow: hidden;
}

.panel header {
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.business-status-panel {
  grid-column: auto;
}

.grid .business-status-panel {
  grid-column: 1 / -1;
}

.status-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}

.status-item {
  min-height: 72px;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: center;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 8px;
}

.status-item span {
  color: #667085;
  font-size: 12px;
}

.status-item strong {
  color: #1d2939;
  font-size: 15px;
  line-height: 1.35;
}

.status-item.warning {
  border-color: #fedf89;
  background: #fffbeb;
}

.status-item.warning strong {
  color: #b54708;
}

.status-item.muted strong {
  color: #667085;
}

.business-modules {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.business-module {
  display: grid;
  gap: 10px;
}

.business-module strong {
  font-size: 14px;
}

.business-module div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.business-module span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #344054;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.table th {
  color: #667085;
  font-weight: 600;
  background: #fbfcfd;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status.rendering {
  color: #8a5200;
  background: #fff4d8;
}

.status.ready {
  color: #05603a;
  background: #dff8ea;
}

.status.draft {
  color: #344054;
  background: #eef1f5;
}

.steps {
  display: grid;
}

.auth-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.auth-panel.authenticated {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-panel strong,
.auth-panel small,
.eyebrow {
  display: block;
}

.auth-panel strong {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-panel small,
.eyebrow {
  color: #667085;
  font-size: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #eef1f5;
  border-radius: 7px;
}

.auth-tab {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #475467;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: #1d2939;
  box-shadow: 0 1px 2px rgb(16 24 40 / 10%);
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  color: #1d2939;
  background: #ffffff;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.workspace-panel {
  grid-column: auto;
}

.grid .workspace-panel {
  grid-column: 1 / -1;
}

.workspace-body {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.inline-form:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-form.matrix-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.inline-form.douyin-binding-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.workspace-section-title {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}

.workspace-section-title strong {
  color: #1d2939;
  font-size: 14px;
}

.workspace-section-title span {
  color: #667085;
  font-size: 12px;
}

.inline-form label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 13px;
}

.inline-form input,
.inline-form select {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  color: #1d2939;
  background: #ffffff;
}

.inline-form input:disabled,
.inline-form select:disabled,
.button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #f2f4f7;
}

.workspace-message {
  min-height: 18px;
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.qr-form {
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 1fr);
}

.qr-output {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #344054;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.summary-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 7px;
}

.summary-list strong {
  font-size: 13px;
  color: #344054;
}

.summary-list span {
  display: grid;
  gap: 3px;
  font-size: 14px;
  color: #1d2939;
  overflow-wrap: anywhere;
}

.summary-list small {
  color: #667085;
  font-size: 12px;
}

.assignment-details {
  border: 1px solid #e4e7ec;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
}

.assignment-details summary {
  font-size: 13px;
  color: #344054;
  cursor: pointer;
}

.assignment-row {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.assignment-row span {
  color: #1d2939;
  font-size: 13px;
  display: grid;
  gap: 4px;
}

.assignment-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 8px;
}

.matrix-list span small {
  color: #475467;
}

.matrix-account-table {
  display: grid;
  gap: 8px;
}

.matrix-account-table-head,
.matrix-account-row {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.2fr)
    72px
    minmax(120px, 1fr)
    minmax(100px, 0.8fr)
    110px
    minmax(140px, 1.2fr)
    minmax(150px, auto);
  gap: 8px;
  align-items: center;
}

.matrix-account-table-head {
  padding: 0 4px;
  color: #667085;
  font-size: 12px;
}

.matrix-account-row {
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #fbfcfd;
}

.matrix-account-row input,
.matrix-account-row select {
  width: 100%;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1d2939;
}

.matrix-account-row span {
  color: #475467;
  font-size: 13px;
}

.matrix-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.matrix-account-empty {
  padding: 14px;
  color: #667085;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #fbfcfd;
}

.douyin-binding-panel {
  grid-column: 1 / -1;
}

.douyin-binding-panel header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.auth-link-placeholder {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #667085;
  font-size: 13px;
}

.oauth-session-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #ffffff;
}

.oauth-session-box strong {
  color: #1d2939;
  font-size: 13px;
}

.oauth-session-box span,
.oauth-session-box small {
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.app-user-panel {
  grid-column: auto;
}

.grid .app-user-panel {
  grid-column: 1 / -1;
}

.app-user-panel header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.app-user-table {
  display: grid;
  gap: 8px;
}

.app-user-table-head,
.app-user-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) 140px 80px minmax(330px, auto);
  gap: 8px;
  align-items: center;
}

.app-user-table-head {
  padding: 0 4px;
  color: #667085;
  font-size: 12px;
}

.app-user-row {
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #fbfcfd;
}

.app-user-row input,
.app-user-row select {
  width: 100%;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1d2939;
}

.app-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.app-user-empty {
  padding: 14px;
  color: #667085;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #fbfcfd;
}

.step {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #eef1f5;
}

.step:last-child,
.table tr:last-child td {
  border-bottom: 0;
}

.step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf2fb;
  color: #2364aa;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.step span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.public-page {
  min-height: 100vh;
  background: #f6f7f9;
  color: #18212f;
}

.public-nav {
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-nav strong {
  font-size: 17px;
}

.public-nav a {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2939;
  text-decoration: none;
  font-size: 14px;
}

.public-hero {
  min-height: 440px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgb(22 32 51 / 92%), rgb(22 32 51 / 68%)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.public-hero-content {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: #ffffff;
}

.public-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: 48px;
  line-height: 1.12;
}

.public-hero p {
  max-width: 760px;
  margin: 0;
  color: #d8e1ee;
  font-size: 17px;
  line-height: 1.75;
}

.public-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.public-actions .button {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.public-section header {
  max-width: 760px;
  margin-bottom: 24px;
}

.public-section h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.25;
}

.public-section p {
  color: #475467;
  font-size: 15px;
  line-height: 1.75;
}

.public-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.public-feature {
  min-height: 160px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.public-feature strong {
  font-size: 16px;
}

.public-feature span {
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.public-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid #e4e7ec;
}

.public-footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 18px 24px 24px;
  border-top: 1px solid #d8dde6;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.public-footer strong {
  color: #344054;
  font-size: 13px;
}

.public-footer a {
  color: #2364aa;
  text-decoration: none;
}

.public-footer a:hover {
  text-decoration: underline;
}

.creator-page {
  min-height: 100vh;
  color: #172033;
  background: #f3f6f8;
}

.creator-nav {
  min-height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border-bottom: 1px solid #dfe5ec;
}

.creator-nav strong {
  font-size: 17px;
}

.creator-nav div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.creator-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #344054;
  text-decoration: none;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
}

.creator-nav a[aria-current="page"] {
  border-color: #2364aa;
  background: #eaf2fb;
  color: #1d4f89;
  font-weight: 700;
}

.creator-hero {
  min-height: 620px;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(110deg, rgb(248 250 252 / 96%), rgb(232 240 238 / 88%)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.creator-hero.compact {
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr);
}

.creator-hero-copy {
  max-width: 680px;
}

.creator-hero h1 {
  margin: 10px 0 18px;
  font-size: 52px;
  line-height: 1.08;
}

.creator-hero p,
.creator-workbench p,
.creator-publish p {
  color: #475467;
  font-size: 16px;
  line-height: 1.8;
}

.creator-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.creator-actions .button {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.creator-window {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgb(15 23 42 / 18%);
}

.creator-window-bar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #172033;
}

.creator-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e9edf3;
}

.creator-window-body {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1fr);
  gap: 14px;
}

.creator-preview-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  gap: 9px;
  align-content: start;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.creator-preview-card small,
.creator-material small,
.creator-confirm-box span {
  color: #667085;
  font-size: 12px;
}

.creator-preview-card strong {
  font-size: 16px;
}

.creator-preview-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.video-preview {
  grid-row: span 2;
}

.video-frame {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgb(35 100 170 / 72%), rgb(16 24 40 / 72%)),
    url("https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=900&q=80")
      center / cover;
  border-radius: 7px;
}

.video-frame span {
  padding: 5px 10px;
  background: rgb(15 23 42 / 72%);
  border-radius: 999px;
  font-size: 12px;
}

.confirm-card button,
.creator-material button,
.creator-confirm-box button,
.creator-draft-card button,
.creator-material-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: #2364aa;
  color: #ffffff;
  padding: 0 12px;
}

.creator-material-actions button:last-child {
  background: #eef4fb;
  color: #2364aa;
}

.creator-section,
.creator-workbench,
.creator-publish,
.creator-auth {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 32px;
}

.creator-section header {
  max-width: 760px;
  margin-bottom: 24px;
}

.creator-section h2,
.creator-workbench h2,
.creator-publish h2,
.creator-auth h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.25;
}

.creator-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.creator-flow,
.creator-policies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.creator-feature,
.creator-flow-card,
.creator-policy-card {
  min-height: 154px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.creator-flow-card span {
  color: #2364aa;
  font-size: 13px;
  font-weight: 700;
}

.creator-flow-card small,
.creator-feature span,
.creator-policy-card span {
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.creator-policy-card {
  min-height: 128px;
}

.creator-workbench,
.creator-publish,
.creator-auth {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid #dfe5ec;
}

.creator-workbench-alt {
  grid-template-columns: minmax(420px, 1fr) minmax(0, 0.78fr);
}

.creator-workbench-alt > div:first-child {
  order: 2;
}

.creator-material-list,
.creator-draft-card,
.creator-confirm-box,
.creator-auth-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.creator-upload-drop {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  color: #2364aa;
  background: #f5f9fd;
  border: 1px dashed #9bbde2;
  border-radius: 8px;
  cursor: pointer;
}

.creator-upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.creator-upload-drop span {
  font-size: 16px;
  font-weight: 800;
}

.creator-upload-drop small,
.creator-text-material {
  color: #667085;
  font-size: 13px;
}

.creator-text-material {
  display: grid;
  gap: 7px;
}

.creator-text-material textarea {
  min-height: 86px;
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px 12px;
  color: #1d2939;
  resize: vertical;
}

.creator-material-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creator-material-items {
  display: grid;
  gap: 10px;
}

.creator-material {
  padding: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 7px;
}

.creator-material.is-selected {
  background: #eef7ff;
  border-color: #8bb8e8;
}

.creator-material > span {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #2364aa;
  background: #eaf2fb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.creator-material div,
.creator-draft-card label,
.creator-confirm-box {
  display: grid;
  gap: 5px;
}

.creator-draft-card > span {
  color: #667085;
  font-size: 12px;
}

.creator-draft-card input,
.creator-draft-card textarea,
.creator-draft-card select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fbfcfd;
  color: #1d2939;
}

.creator-draft-card textarea {
  min-height: 88px;
  resize: vertical;
}

.creator-render-preview {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding-top: 8px;
  border-top: 1px solid #e4e7ec;
}

.creator-render-phone {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  display: grid;
  align-items: end;
  aspect-ratio: 9 / 16;
  background: #101828;
  border-radius: 8px;
}

.creator-render-phone img,
.creator-render-phone video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgb(35 100 170 / 78%), rgb(16 24 40 / 82%)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=700&q=80")
      center / cover;
}

.creator-preview-placeholder span {
  padding: 5px 10px;
  background: rgb(15 23 42 / 72%);
  border-radius: 999px;
  font-size: 12px;
}

.creator-render-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgb(15 23 42 / 84%), rgb(15 23 42 / 0%));
}

.creator-render-caption span,
.creator-render-caption small {
  color: rgb(255 255 255 / 86%);
  line-height: 1.5;
}

.creator-render-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.creator-render-meta span {
  padding: 10px 12px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  font-size: 13px;
}

.creator-render-meta [data-tone='success'] {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.creator-render-meta [data-tone='warning'] {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.creator-auth p {
  color: #475467;
  font-size: 16px;
  line-height: 1.8;
}

.creator-auth-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.creator-auth-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.creator-auth-form > span,
.creator-auth-form label {
  color: #526176;
  font-size: 13px;
}

.creator-auth-form strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f8fafc;
}

.creator-auth-form textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f8fafc;
  color: #1d2939;
  resize: vertical;
}

.creator-auth-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 700;
}

.creator-auth-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.creator-auth-link[hidden] {
  display: none;
}

.creator-auth-steps {
  display: grid;
  gap: 10px;
}

.creator-auth-step {
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

.creator-auth-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 800;
  font-size: 12px;
}

.creator-auth-step div {
  display: grid;
  gap: 4px;
}

.creator-auth-step small {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.creator-compliance-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 24px 80px rgb(16 24 40 / 28%);
}

.creator-compliance-dialog::backdrop {
  background: rgb(15 23 42 / 48%);
}

.creator-compliance-dialog form {
  display: grid;
  max-height: inherit;
}

.creator-compliance-dialog header,
.creator-compliance-dialog footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4e7ec;
}

.creator-compliance-dialog footer {
  border-top: 1px solid #e4e7ec;
  border-bottom: 0;
  justify-content: flex-end;
}

.creator-compliance-dialog header span {
  font-weight: 800;
}

.creator-compliance-dialog header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  font-size: 20px;
}

.creator-compliance-body {
  padding: 18px 20px 20px;
  overflow: auto;
}

.creator-compliance-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.creator-compliance-body p {
  margin: 0 0 16px;
  color: #667085;
  line-height: 1.7;
}

.creator-compliance-list {
  display: grid;
  gap: 10px;
}

.creator-compliance-item {
  padding: 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

.creator-compliance-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.creator-compliance-item span {
  display: grid;
  gap: 4px;
}

.creator-compliance-item strong {
  font-size: 15px;
}

.creator-compliance-item small {
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.creator-compliance-dialog footer .button {
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  padding: 0 14px;
  font-weight: 700;
}

.creator-compliance-dialog footer .button.primary {
  border-color: #2364aa;
  background: #2364aa;
  color: #ffffff;
}

.creator-compliance-dialog footer .button:disabled {
  border-color: #d0d5dd;
  background: #eef2f6;
  color: #98a2b3;
}

.creator-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #344054;
}

.creator-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px 34px;
  border-top: 1px solid #d8dde6;
  color: #667085;
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 13px;
}

.creator-footer a {
  color: #2364aa;
  text-decoration: none;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 18px;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics,
  .grid,
  .page-grid.two-column,
  .public-features,
  .public-split,
  .creator-hero,
  .creator-features,
  .creator-workbench,
  .creator-workbench-alt,
  .creator-publish,
  .creator-auth,
  .creator-auth-card,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .creator-workbench-alt > div:first-child {
    order: 0;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-form,
  .inline-form.matrix-form,
  .qr-form,
  .inline-form:first-child,
  .app-user-table-head,
  .app-user-row,
  .matrix-account-row {
    grid-template-columns: 1fr;
  }

  .app-user-table-head,
  .matrix-account-table-head {
    display: none;
  }

  .app-user-actions,
  .matrix-account-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .select,
  .button {
    width: 100%;
  }

  .table {
    min-width: 620px;
  }

  .panel.table-panel {
    overflow-x: auto;
  }

  .public-nav {
    padding: 0 18px;
  }

  .creator-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px;
  }

  .creator-nav div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: 520px;
  }

  .public-hero-content,
  .public-section,
  .creator-hero,
  .creator-section,
  .creator-workbench,
  .creator-publish,
  .creator-auth {
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-footer {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-hero h1 {
    font-size: 36px;
  }

  .creator-hero h1 {
    font-size: 38px;
  }

  .public-hero p {
    font-size: 15px;
  }

  .creator-window-body,
  .creator-material,
  .creator-auth-card,
  .creator-material-actions,
  .creator-render-preview {
    grid-template-columns: 1fr;
  }

  .public-actions .button {
    width: 100%;
  }

  .creator-actions .button,
  .creator-material button,
  .creator-material-actions button,
  .creator-draft-card button,
  .creator-confirm-box button,
  .creator-auth-form button,
  .creator-compliance-dialog footer .button {
    width: 100%;
  }

  .creator-compliance-dialog footer {
    display: grid;
  }
}
