:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #1b6f68;
  --accent-strong: #15564f;
  --danger: #a33b3b;
  --notice: #276749;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


body.branded-session:not(.auth-layout) {
  --bg: #f5f6f2;
}

body.branded-session:not(.auth-layout) .topbar {
  background: #050505;
  border-bottom-color: rgba(170, 250, 0, 0.32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

body.branded-session:not(.auth-layout) .brand {
  color: #ffffff !important;
}

body.branded-session:not(.auth-layout) .nav a,
body.branded-session:not(.auth-layout) .nav button {
  color: rgba(255, 255, 255, 0.78);
}

body.branded-session:not(.auth-layout) .nav a.active {
  background: rgba(170, 250, 0, 0.13);
  border-color: rgba(170, 250, 0, 0.38);
  color: #ffffff;
}

body.branded-session:not(.auth-layout) .topbar-brand-logo {
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
}


body.branded-session:not(.auth-layout) .store-global-topbar {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 560px) minmax(0, auto);
  position: sticky;
  top: 0;
  z-index: 20;
}

.store-header-search {
  margin: 0;
  position: relative;
}

.store-header-search::before {
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  content: "";
  height: 12px;
  left: 14px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-56%);
  width: 12px;
}

.store-header-search::after {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 25px;
  pointer-events: none;
  position: absolute;
  top: calc(50% + 7px);
  transform: rotate(45deg);
  width: 8px;
}

.store-header-search input[type="search"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  height: 38px;
  padding: 0 16px 0 40px;
  width: 100%;
}

.store-header-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.store-header-search input[type="search"]:focus {
  border-color: var(--brand-primary, #aafa00);
  box-shadow: 0 0 0 3px rgba(170, 250, 0, 0.18);
  outline: none;
}

body.branded-session:not(.auth-layout) .nav .store-nav-icon {
  align-items: center;
  border: 1px solid rgba(170, 250, 0, 0.45);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  text-decoration: none;
}

body.branded-session:not(.auth-layout) .nav .store-nav-icon:hover {
  background: rgba(170, 250, 0, 0.16);
}

.partner-context-banner {
  align-items: center;
  background: #050505;
  border: 1px solid rgba(170, 250, 0, 0.28);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px;
}

.partner-context-banner span {
  color: var(--brand-primary, #aafa00);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
}

.partner-context-banner strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.partner-context-banner p {
  color: rgba(255, 255, 255, 0.72);
  margin: 4px 0 0;
}

.partner-context-banner .button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  flex: 0 0 auto;
}

.partner-surface-banner {
  margin: 2px 0 8px;
}

.partner-user-home {
  overflow: hidden;
}

.partner-user-hero {
  align-items: stretch;
  background: #050505;
  border: 1px solid rgba(170, 250, 0, 0.3);
  border-radius: 14px;
  color: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  padding: 24px;
  position: relative;
}

.partner-user-hero::after {
  background: var(--brand-primary, #aafa00);
  border-radius: 999px;
  bottom: 18px;
  content: "";
  height: 4px;
  left: 24px;
  position: absolute;
  right: 24px;
}

.partner-user-hero-copy {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.partner-kicker,
.partner-user-status-card > span {
  color: var(--brand-primary, #aafa00);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.partner-user-hero h1,
.partner-user-hero p,
.partner-user-status-card p {
  margin: 0;
}

.partner-user-hero h1 {
  color: #ffffff;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
}

.partner-user-hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 58ch;
}

.partner-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.partner-user-actions .button.primary-link {
  background: var(--brand-primary, #aafa00);
  border-color: var(--brand-primary, #aafa00);
  color: #091006;
}

.partner-user-actions .button.secondary-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.partner-user-status-card {
  align-self: start;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.partner-user-status-card strong {
  color: #ffffff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.partner-user-status-card p {
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
}

.partner-user-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.partner-user-status-row small {
  background: rgba(170, 250, 0, 0.12);
  border: 1px solid rgba(170, 250, 0, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  padding: 5px 8px;
}

.partner-download-page {
  overflow: hidden;
}

.partner-download-hero {
  align-items: stretch;
  background: #050505;
  border: 1px solid rgba(170, 250, 0, 0.3);
  border-radius: 14px;
  color: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  padding: 22px;
  position: relative;
}

.partner-download-hero::after {
  background: var(--brand-primary, #aafa00);
  border-radius: 999px;
  bottom: 14px;
  content: "";
  height: 4px;
  left: 22px;
  position: absolute;
  right: 22px;
}

.partner-download-hero-copy {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}

.partner-download-hero h1,
.partner-download-hero p,
.partner-download-quick-card p {
  margin: 0;
}

.partner-download-hero h1 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.partner-download-hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
}

.partner-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.partner-download-actions .button.primary-link {
  background: var(--brand-primary, #aafa00);
  border-color: var(--brand-primary, #aafa00);
  color: #091006;
}

.partner-download-actions .button.secondary-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.partner-download-quick-card {
  align-self: start;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.partner-download-quick-card > span {
  color: var(--brand-primary, #aafa00);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.partner-download-quick-card strong {
  color: #ffffff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.partner-download-quick-card p {
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
}

.partner-download-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.partner-download-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.partner-download-card h2 {
  font-size: 20px;
}

.partner-download-section {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 16px;
}

.partner-download-table {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
}

body.branded-session:not(.auth-layout) .workspace-card {
  border-color: rgba(0, 0, 0, 0.08);
}

body.branded-session:not(.auth-layout) .workspace-card .button.primary-link,
body.branded-session:not(.auth-layout) .empty-state .button.primary-link,
body.branded-session:not(.auth-layout) .table-scroll .button.primary-link {
  background: #0d0f0c;
  border-color: #0d0f0c;
  color: #ffffff;
}

body.branded-session:not(.auth-layout) .badge-success {
  background: rgba(170, 250, 0, 0.2);
  border-color: rgba(170, 250, 0, 0.48);
  color: #15220b;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav form {
  margin: 0;
}

.nav a.active {
  background: #eef4f3;
  border: 1px solid #c9ddda;
  border-radius: 999px;
  color: var(--accent-strong);
  font-weight: 700;
  padding: 4px 10px;
  text-decoration: none;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs span:last-child {
  color: var(--text);
  font-weight: 600;
}

.workspace-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workspace-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.workspace-card h2,
.workspace-card h3,
.workspace-card p {
  margin: 0;
}

.workspace-card-head {
  display: flex;
  justify-content: flex-start;
}

.workspace-card .button {
  justify-self: start;
}

.theme-card {
  align-content: start;
}

.theme-preview-thumb,
.theme-preview-video,
.theme-preview-empty {
  aspect-ratio: 460 / 111;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}

.theme-preview-thumb,
.theme-preview-video {
  background: #f8fafc;
  display: block;
  object-fit: contain;
  object-position: center;
}

.theme-preview-video {
  cursor: pointer;
  max-height: 190px;
}

.theme-preview-video:hover,
.theme-preview-mini[data-hover-preview]:hover {
  border-color: var(--brand-primary, #0f766e);
}

.theme-preview-empty {
  align-items: center;
  background: #f8fafc;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: center;
}


.theme-list {
  display: grid;
  gap: 12px;
}

.theme-list-item {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 300px minmax(0, 1fr) minmax(300px, 360px);
  padding: 14px;
}

.theme-list-preview {
  min-width: 0;
}

.theme-list-main,
.theme-list-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.theme-list-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.theme-list-title-row h3,
.theme-list-title-row p,
.theme-list-main .hint {
  margin: 0;
}

.theme-list-title-row h3 {
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.theme-list-title-row .badge {
  flex: 0 0 auto;
}

.theme-list-facts {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.theme-list-facts div {
  min-width: 0;
}

.theme-list-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.theme-list-facts dd {
  font-weight: 650;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.theme-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.theme-action-row .button,
.theme-action-row button {
  white-space: nowrap;
}

.theme-list-submit-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 120px) minmax(84px, 100px);
}

.theme-list-submit-form label {
  font-size: 13px;
  min-width: 0;
}

.theme-list-submit-form input,
.theme-list-submit-form select {
  min-height: 38px;
}

.theme-list-submit-form button {
  grid-column: 1 / -1;
  min-height: 40px;
}

@media (max-width: 1180px) {
  .theme-list-item {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .theme-list-actions {
    grid-column: 1 / -1;
  }

  .theme-action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .theme-list-item,
  .theme-list-submit-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-list-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-list-title-row {
    display: grid;
  }

  .theme-action-row .button,
  .theme-action-row form,
  .theme-action-row button {
    width: 100%;
  }
}

.theme-preview-mini {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  height: 44px;
  object-fit: contain;
  object-position: center;
  width: 78px;
}

.theme-preview-mini.large {
  height: 58px;
  width: 104px;
}

.theme-preview-video-compact {
  background: #0f172a;
  height: 72px;
  width: 128px;
}

.theme-preview-empty.mini {
  border-radius: 6px;
  display: inline-flex;
  min-height: 44px;
  min-width: 78px;
  padding: 6px;
}

.theme-table-title {
  align-items: center;
  display: flex;
  gap: 10px;
}



.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.metric-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.metric-card-head a {
  font-size: 14px;
  font-weight: 600;
}

.metric-list {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
}

.metric-list dt {
  color: var(--muted);
}

.metric-list dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.small {
  font-size: 14px;
}

.section-heading-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin: 0;
}

.empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.empty-state.compact {
  padding: 12px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.hint-list {
  margin: 0;
  padding-left: 20px;
}

.compact-list {
  display: grid;
  gap: 4px;
}

.callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.callout.warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.warning-text {
  color: var(--danger);
  font-weight: 600;
}

.section-block {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.section-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.narrow {
  max-width: 440px;
  margin: 0 auto;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0 0 18px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

input {
  width: 100%;
}

select {
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary, var(--accent));
  outline: 3px solid rgba(27, 111, 104, 0.14);
}

button.primary,
a.button,
button.secondary,
button.danger {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  padding: 9px 14px;
}

button.primary,
a.button {
  background: var(--accent);
  color: #ffffff;
}

button.primary:hover,
a.button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

button.danger {
  background: #fff1f1;
  border-color: #f2c3c3;
  color: var(--danger);
}

.alert {
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.alert.error {
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #f2c3c3;
}

.alert.notice {
  background: #effaf3;
  color: var(--notice);
  border: 1px solid #bddfca;
}

.muted {
  color: var(--muted);
}

.grid.two {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel-lite {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.brand-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.facts {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.compact-facts {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px 10px;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.admin-table {
  min-width: 980px;
}

.actions,
.inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions form {
  margin: 0;
}

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

.filter-bar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
}

.filter-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.checkbox-line {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: 38px;
}

.checkbox-line input {
  width: auto;
}

.org-filter {
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
}

.app-filter {
  grid-template-columns: minmax(220px, 1fr) 220px 150px 150px auto;
}

.app-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

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

.form-actions {
  align-items: end;
  display: flex;
  min-height: 42px;
}

.create-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}

.create-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.create-panel[open] summary {
  margin-bottom: 12px;
}

a.secondary-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

a.secondary-link:hover {
  background: #f8fafc;
}

.accounts-table th:nth-child(1) {
  width: 22%;
}

.accounts-table th:nth-child(2),
.accounts-table th:nth-child(3) {
  width: 14%;
}

.accounts-table th:nth-child(4) {
  width: 20%;
}

.accounts-table th:nth-child(5),
.accounts-table th:nth-child(6) {
  width: 15%;
}

.identity-cell,
.wide {
  overflow-wrap: anywhere;
}

.account-title,
.role-stack,
.operation-group,
.danger-stack,
.operation-form {
  display: grid;
  gap: 8px;
}

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

.operation-group form,
.danger-stack form {
  margin: 0;
}

.operation-form {
  max-width: 260px;
}

.operation-form select,
.operation-form input {
  width: 100%;
}

.danger-details {
  border: 1px solid #f2c3c3;
  border-radius: 6px;
  padding: 8px 10px;
}

.danger-details summary {
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

.danger-details[open] summary {
  margin-bottom: 8px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.inline-form input {
  width: 180px;
}

.badge {
  background: #eef4f3;
  border: 1px solid #c9ddda;
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-block;
  font-size: 13px;
  padding: 2px 8px;
}

.badge-success {
  background: #effaf3;
  border-color: #bddfca;
  color: var(--notice);
}

.badge-danger {
  background: #fff1f1;
  border-color: #f2c3c3;
  color: var(--danger);
}

.badge-warning {
  background: #fff8e6;
  border-color: #ead49a;
  color: #8a5a00;
}

.badge-neutral {
  background: #f3f4f6;
  border-color: var(--line);
  color: var(--muted);
}

.wide {
  max-width: 280px;
  overflow-wrap: anywhere;
}


.guidance-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guidance-panel,
.status-guide {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.guidance-panel.compact,
.status-guide.compact {
  padding: 12px;
}

.guidance-panel h2,
.guidance-panel p,
.status-guide h2,
.status-guide p {
  margin: 0;
}

.step-list {
  margin: 0;
  padding-left: 20px;
}

.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-grid div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.guide-grid p {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 0;
}



body.auth-layout {
  background: #f7f7f4;
  color: #151a17;
}

.auth-main {
  min-height: 100vh;
}

.auth-main > .alert {
  box-shadow: 0 16px 45px rgba(12, 21, 18, 0.14);
  left: 50%;
  margin: 0;
  max-width: min(460px, calc(100vw - 32px));
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px));
  z-index: 1000;
}

.auth-shell {
  align-items: center;
  background: #f7f7f4;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 18px;
}

.auth-top-brand {
  color: #17231f;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  top: 28px;
  left: 32px;
}

.auth-top-brand:hover {
  text-decoration: none;
}

.auth-card {
  background: rgba(255, 255, 253, 0.96);
  border: 1px solid rgba(21, 31, 27, 0.09);
  border-top: 4px solid var(--brand-primary, rgba(21, 31, 27, 0.09));
  border-radius: 18px;
  box-shadow: 0 18px 52px rgba(17, 24, 20, 0.08);
  display: grid;
  gap: 20px;
  max-width: 460px;
  padding: 32px;
  width: 100%;
}

.auth-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.auth-heading {
  display: grid;
  gap: 8px;
  text-align: center;
}

.auth-heading h1,
.auth-heading p,
.auth-section-heading h2,
.auth-section-heading p,
.auth-footer,
.auth-note {
  margin: 0;
}

.auth-heading h1 {
  color: #151a17;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

.auth-subtitle,
.auth-section-heading p,
.auth-note,
.auth-footer {
  color: #6c746f;
}

.auth-section-heading {
  display: grid;
  gap: 7px;
  text-align: center;
}

.auth-section-heading h2 {
  color: #151a17;
  font-size: 19px;
  font-weight: 720;
  margin: 0;
}

.auth-form {
  gap: 14px;
}

.auth-form label {
  color: #5f6862;
  gap: 7px;
}

.auth-form label span {
  font-size: 13px;
  font-weight: 650;
}

.auth-form input {
  background: #ffffff;
  border: 1px solid #d9ded8;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 13px;
}

.auth-form input:focus {
  border-color: var(--brand-primary, #1f2d27);
  outline: 4px solid rgba(31, 45, 39, 0.1);
}

.auth-form button.primary,
.auth-form button.secondary,
.auth-resend-form button.secondary {
  border-radius: 12px;
  min-height: 46px;
}

.auth-form button.primary {
  background: #16231e;
  border-color: #16231e;
  box-shadow: 0 10px 22px rgba(22, 35, 30, 0.12);
}

.auth-form button.primary:hover {
  background: #0e1915;
  border-color: #0e1915;
}

.auth-form button.secondary,
.auth-resend-form button.secondary {
  background: #ffffff;
  border-color: #d9ded8;
  color: #17231f;
}

.full-width {
  width: 100%;
}

.auth-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
}

.auth-links.compact {
  justify-content: center;
}

.auth-links a,
.auth-footer a {
  color: #273f35;
  font-weight: 650;
}

.auth-divider {
  align-items: center;
  color: #8a928d;
  display: flex;
  font-size: 13px;
  gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
  background: #e2e5e0;
  content: "";
  flex: 1;
  height: 1px;
}

.oauth-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9ded8;
  border-radius: 12px;
  color: #17231f;
  cursor: not-allowed;
  display: grid;
  font: inherit;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  min-height: 46px;
  opacity: 0.78;
  padding: 10px 13px;
  width: 100%;
}

.oauth-button::before {
  align-items: center;
  border: 1px solid #e1e5e0;
  border-radius: 50%;
  color: #1f5fbf;
  content: "G";
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.oauth-button span {
  color: #7c8580;
  font-size: 13px;
  font-weight: 650;
}

.auth-footer {
  border-top: 1px solid #ecefeb;
  font-size: 12px;
  line-height: 1.6;
  padding-top: 14px;
  text-align: center;
}

.auth-steps {
  align-items: center;
  color: #737c76;
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-steps li {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.auth-steps li + li::before {
  background: #dfe4df;
  content: "";
  display: inline-block;
  height: 1px;
  margin-right: 2px;
  width: 18px;
}

.auth-steps li span {
  background: #cfd7d1;
  border-radius: 50%;
  color: transparent;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0;
  height: 7px;
  width: 7px;
}

.auth-steps li.active,
.auth-steps li.done {
  color: #16231e;
  font-weight: 700;
}

.auth-steps li.active span,
.auth-steps li.done span {
  background: var(--brand-primary, #16231e);
}

.auth-resend-form {
  margin-top: -4px;
}

.auth-field-summary {
  background: #f8faf7;
  border: 1px solid #e1e6df;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 11px 13px;
}

.auth-checkbox {
  align-items: flex-start;
  color: #5f6862;
  font-size: 13px;
  line-height: 1.45;
}

.auth-checkbox input {
  margin-top: 2px;
}

.code-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
}


.auth-brand-logo {
  border-radius: 10px;
  flex: 0 0 auto;
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.auth-shell-branded {
  background: #f4f5f0;
}

.auth-shell-branded .auth-card {
  align-items: stretch;
  border-top: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  gap: 0;
  grid-template-columns: minmax(250px, 0.88fr) minmax(330px, 1fr);
  max-width: 860px;
  overflow: hidden;
  padding: 0;
}

.auth-brand-panel {
  align-content: space-between;
  background: #050505;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 30px;
  position: relative;
}

.auth-brand-panel::after {
  background: var(--brand-primary, #aafa00);
  border-radius: 999px;
  bottom: 22px;
  content: "";
  height: 4px;
  left: 30px;
  position: absolute;
  right: 30px;
}

.auth-brand-panel.compact {
  padding-bottom: 30px;
}

.auth-brand-panel.compact::after {
  display: block;
}

.auth-brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.auth-brand-lockup .auth-brand-logo {
  background: #ffffff;
  height: 38px;
  padding: 5px;
  width: 38px;
}

.auth-brand-lockup strong {
  display: block;
  font-size: 20px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.auth-brand-meta {
  color: var(--brand-primary, #aafa00);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
}

.auth-brand-panel p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.auth-brand-status,
.partner-entry-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-brand-status span,
.partner-entry-status span {
  background: rgba(170, 250, 0, 0.11);
  border: 1px solid rgba(170, 250, 0, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  padding: 6px 9px;
}

.auth-shell-branded .auth-top-brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.auth-shell-branded .auth-top-brand .auth-brand-logo {
  background: #ffffff;
  padding: 4px;
}

.auth-shell-branded .auth-form button.primary {
  background: #050505;
  border-color: #050505;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.auth-shell-branded .auth-form button.primary:hover {
  background: #151515;
  border-color: #151515;
}

.auth-shell-branded .auth-links a,
.auth-shell-branded .auth-footer a {
  color: #111512;
}


.auth-shell-branded .auth-card {
  position: relative;
}

.auth-shell-branded .auth-workspace {
  gap: 18px;
  padding: 32px;
}

.auth-shell-branded .auth-card::before {
  display: none;
}

.auth-context-note {
  background: #f7f8f4;
  border: 1px solid #e3e8df;
  border-radius: 12px;
  color: #5f6862;
  font-size: 13px;
  line-height: 1.55;
  margin: -4px 0 0;
  padding: 10px 12px;
}


.auth-context-note-strong {
  align-items: center;
  background: #f3f6ef;
  border-color: rgba(5, 5, 5, 0.08);
  display: grid;
  gap: 4px;
}

.auth-context-note-strong strong {
  color: #151a17;
  font-size: 13px;
  line-height: 1.2;
}

.auth-context-note-strong span {
  display: block;
}

.auth-brand-identity,
.partner-entry-identity {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-brand-identity span,
.partner-entry-identity span {
  background: rgba(170, 250, 0, 0.11);
  border: 1px solid rgba(170, 250, 0, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  padding: 8px 9px;
  text-align: center;
}

.partner-entry-signal {
  color: var(--brand-primary, #aafa00);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 2px;
}

.partner-entry-focus {
  background: #f7f8f4;
  border: 1px solid #e2e7df;
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
}

.partner-entry-focus strong {
  color: #151a17;
  font-size: 14px;
  line-height: 1.35;
}

.partner-entry-focus span {
  color: #66716b;
  font-size: 13px;
  line-height: 1.45;
}


.auth-brand-services {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.auth-brand-services span {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 11px 12px;
}

.auth-brand-services strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.auth-brand-services small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.auth-brand-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.auth-brand-assurance span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  padding: 6px 9px;
}

.auth-brand-panel.compact .auth-brand-assurance {
  margin-top: 8px;
}

.auth-shell-branded .auth-form input:focus {
  border-color: var(--brand-primary, #aafa00);
  outline-color: rgba(170, 250, 0, 0.22);
}

.auth-shell-branded .auth-form button.primary {
  border-bottom: 3px solid var(--brand-primary, #aafa00);
}

.auth-shell-branded .oauth-button::before {
  border-color: rgba(0, 0, 0, 0.14);
}


.partner-entry-shell {
  background: #f4f5f0;
}

.partner-entry-card {
  background: rgba(255, 255, 253, 0.98);
  border: 1px solid rgba(5, 5, 5, 0.09);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(340px, 1fr);
  max-width: 940px;
  overflow: hidden;
  width: 100%;
}

.partner-entry-panel {
  align-content: space-between;
  background: #050505;
  color: #ffffff;
  display: grid;
  gap: 22px;
  min-height: 100%;
  padding: 34px;
  position: relative;
}

.partner-entry-panel::after {
  background: var(--brand-primary, #aafa00);
  border-radius: 999px;
  bottom: 24px;
  content: "";
  height: 4px;
  left: 34px;
  position: absolute;
  right: 34px;
}

.partner-entry-message {
  display: grid;
  gap: 10px;
}

.partner-entry-message h1,
.partner-entry-message p,
.partner-entry-note,
.partner-entry-steps p {
  margin: 0;
}

.partner-entry-message h1 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.12;
}

.partner-entry-message p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.partner-entry-services {
  display: grid;
  gap: 10px;
}

.partner-entry-services span {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  display: grid;
  gap: 3px;
  padding: 12px 13px;
}

.partner-entry-services strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.partner-entry-services small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.partner-entry-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 38px 36px;
}

.partner-entry-eyebrow {
  color: #59625d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.partner-entry-actions {
  display: grid;
  gap: 10px;
}

.partner-entry-proof {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-entry-proof span {
  background: #f7f8f4;
  border: 1px solid #e2e7df;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.partner-entry-proof strong {
  color: #151a17;
  font-size: 13px;
  line-height: 1.25;
}

.partner-entry-proof small {
  color: #66716b;
  font-size: 12px;
  line-height: 1.35;
}

.partner-entry-paths {
  border-top: 1px solid #e6ebe4;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 2px;
}

.partner-entry-path {
  border-left: 3px solid var(--brand-primary, #aafa00);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 4px 0 4px 12px;
}

.partner-entry-path span {
  color: #6b746e;
  font-size: 12px;
  font-weight: 800;
}

.partner-entry-path strong {
  color: #151a17;
  font-size: 14px;
  line-height: 1.25;
}

.partner-entry-path p {
  color: #66716b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.partner-entry-actions .button {
  border-radius: 12px;
  min-height: 46px;
}

.partner-entry-actions .button.primary-link {
  background: #050505;
  border-bottom: 3px solid var(--brand-primary, #aafa00);
  color: #ffffff;
}

.partner-entry-actions .button.primary-link:hover {
  background: #151515;
}

.partner-entry-actions .button.secondary-link,
.partner-entry-actions .button.ghost-link {
  background: #ffffff;
  border-color: #dde4dd;
  color: #151a17;
}

.partner-entry-actions .button.secondary-link:hover,
.partner-entry-actions .button.ghost-link:hover {
  background: #f7f9f5;
}

.partner-entry-steps {
  display: grid;
  gap: 10px;
}

.partner-entry-steps div {
  background: #f7f8f4;
  border: 1px solid #e2e7df;
  border-radius: 14px;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.partner-entry-steps span {
  color: var(--brand-primary, #718a00);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.partner-entry-steps strong {
  color: #151a17;
  font-size: 14px;
  line-height: 1.25;
}

.partner-entry-steps p,
.partner-entry-note {
  color: #66716b;
  font-size: 13px;
  line-height: 1.55;
}

.partner-entry-note {
  background: rgba(170, 250, 0, 0.12);
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 14px;
  padding: 12px 13px;
}

/* Hosted partner auth polish. */
.auth-shell-branded {
  background: #f5f6f2;
}

.auth-shell-branded .auth-card {
  border-color: rgba(5, 5, 5, 0.08);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(12, 16, 14, 0.11);
  max-width: 900px;
}

.auth-shell-branded .auth-workspace .auth-heading {
  text-align: left;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  font-size: 25px;
  line-height: 1.16;
}

.auth-shell-branded .auth-subtitle {
  font-size: 14px;
  line-height: 1.55;
}

.auth-brand-panel {
  gap: 18px;
  padding: 34px;
}

.auth-brand-status span,
.partner-entry-status span {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-brand-identity span,
.partner-entry-identity span {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-context-note-strong {
  background: #f7f8f4;
  border-color: #e2e7df;
  border-radius: 14px;
}

.partner-entry-card {
  border-color: rgba(5, 5, 5, 0.08);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(12, 16, 14, 0.11);
  max-width: 980px;
}

.partner-entry-panel {
  gap: 24px;
  padding: 38px;
}

.partner-entry-message h1 {
  font-size: 32px;
  line-height: 1.1;
}

.partner-entry-workspace {
  gap: 17px;
  padding: 40px 38px;
}

.partner-entry-workspace .auth-heading {
  text-align: left;
}

.partner-entry-workspace .auth-heading h2 {
  color: #151a17;
  font-size: 25px;
  line-height: 1.15;
  margin: 0;
}

.partner-entry-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-entry-actions .button.primary-link {
  grid-column: 1 / -1;
}

.partner-entry-proof {
  gap: 8px;
}

.partner-entry-paths {
  background: #f8f9f5;
  border: 1px solid #e4e9e1;
  border-radius: 16px;
  padding: 13px;
}

.partner-entry-path {
  border-left-width: 2px;
  padding-left: 11px;
}

.partner-entry-note {
  background: #f8f9f5;
  border-color: #e4e9e1;
}

.brand-showcase-grid {
  align-items: stretch;
}

.auth-preview-card-polished,
.brand-preview-shell-polished {
  --brand-primary: #aafa00;
  border-color: rgba(5, 5, 5, 0.1);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.auth-preview-card-polished {
  border-top: 0;
}

.auth-preview-card-polished::before {
  background: var(--brand-primary);
  content: "";
  display: block;
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.auth-preview-card-polished .auth-preview-brand {
  background: #050505;
  border-radius: 14px;
  color: #ffffff;
  margin-bottom: 18px;
  padding: 14px;
}

.auth-preview-card-polished .auth-preview-brand img {
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
}

.auth-preview-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-preview-copy h3,
.auth-preview-copy p {
  margin: 0;
}

.auth-preview-copy p {
  color: var(--muted);
}

.auth-preview-card-polished .fake-input {
  background: #ffffff;
  border-radius: 12px;
  min-height: 46px;
}

.auth-preview-card-polished .fake-button {
  background: #050505;
  border-bottom: 3px solid var(--brand-primary);
  border-radius: 12px;
  min-height: 46px;
}

.brand-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.brand-swatch-row span {
  align-items: center;
  background: #f6f7f4;
  border: 1px solid #e6e9e2;
  border-radius: 999px;
  color: #515954;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  padding: 5px 9px;
}

.brand-swatch-row i {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.brand-preview-shell-polished {
  background: #f7f8f4;
  display: grid;
  gap: 14px;
}

.brand-preview-shell-polished .brand-preview-top {
  background: #050505;
  border-left: 0;
  border-radius: 14px;
  color: #ffffff;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 14px;
}

.brand-preview-shell-polished .brand-preview-top span {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 750;
}

.brand-preview-strip {
  background: rgba(170, 250, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #1d241f;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}


@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .partner-context-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .partner-context-banner .button {
    text-align: center;
    width: 100%;
  }

  .partner-user-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .partner-user-hero::after {
    bottom: 12px;
    left: 16px;
    right: 16px;
  }

  .partner-user-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .partner-user-actions .button {
    text-align: center;
    width: 100%;
  }

  .partner-download-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .partner-download-hero::after {
    bottom: 12px;
    left: 16px;
    right: 16px;
  }

  .partner-download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .partner-download-actions .button {
    text-align: center;
    width: 100%;
  }



  .partner-entry-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .partner-entry-panel,
  .partner-entry-workspace {
    padding: 24px 18px;
  }

  .partner-entry-panel {
    gap: 16px;
  }

  .partner-entry-panel::after {
    bottom: 14px;
    left: 18px;
    right: 18px;
  }

  .partner-entry-message h1 {
    font-size: 24px;
  }

  .partner-entry-proof,
  .partner-entry-paths,
  .partner-entry-actions {
    grid-template-columns: 1fr;
  }

  .partner-entry-actions .button.primary-link {
    grid-column: auto;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar,
  .org-filter,
  .app-filter,
  .form-grid,
  .app-form-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-actions button,
  .filter-actions a.button {
    width: 100%;
  }

  .account-title {
    grid-template-columns: 1fr;
  }

  .inline-form input,
  .inline-form select,
  .actions button {
    width: 100%;
  }

  .span-two {
    grid-column: auto;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .auth-main {
    min-height: 100vh;
  }

  .auth-shell {
    gap: 18px;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 24px 14px;
  }

  .auth-top-brand {
    align-self: flex-start;
    left: auto;
    position: static;
    top: auto;
  }

  .auth-card {
    border-radius: 16px;
    padding: 24px 18px;
  }

  .auth-shell-branded .auth-card {
    grid-template-columns: 1fr;
    max-width: 460px;
    padding: 0;
  }

  .auth-shell-branded .auth-workspace,
  .auth-brand-panel {
    padding: 24px 18px;
  }

  .auth-brand-panel {
    gap: 14px;
  }

  .auth-brand-panel::after {
    bottom: 14px;
    left: 18px;
    right: 18px;
  }

  .auth-heading h1 {
    font-size: 22px;
  }

  .auth-steps {
    gap: 6px;
  }

  .auth-steps li {
    font-size: 11px;
  }

  .auth-steps li + li::before {
    width: 10px;
  }

}

.stacked-actions {
  align-items: flex-start;
  gap: 0.5rem;
}

.stacked-actions .inline-form {
  margin: 0;
}

.inline-details summary {
  cursor: pointer;
  font-weight: 600;
}

.inline-details form {
  margin-top: 0.75rem;
  min-width: 220px;
}

.inline-details label {
  width: 100%;
}

.error-text {
  color: #b42318;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}


.auth-preview-card,
.brand-preview-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.auth-preview-brand,
.brand-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-preview-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.fake-input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  margin-top: 10px;
  background: #fafafa;
}

.fake-button {
  min-height: 42px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-weight: 700;
}

.status-list {
  display: grid;
  gap: 8px;
}


.printable-handoff-page {
  gap: 20px;
}

.printable-handoff-sheet {
  background: #fff;
  border: 1px solid #d9e0d8;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(23, 31, 28, 0.08);
  color: #17201d;
  overflow: hidden;
}

.printable-handoff-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-bottom: 1px solid #dde5dd;
  background: #f8faf6;
}

.printable-handoff-hero h1 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.printable-handoff-hero p {
  max-width: 760px;
  margin: 0;
  color: #4d5a55;
}

.printable-handoff-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}

.printable-handoff-section {
  padding: 24px 38px;
  border-bottom: 1px solid #eef2ed;
}

.printable-handoff-section:last-child {
  border-bottom: 0;
}

.printable-handoff-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0;
}

.printable-handoff-section h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.printable-facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.endpoint-facts dd,
.handoff-copy-box {
  word-break: break-word;
}

.page-break-avoid {
  break-inside: avoid;
}

@media (max-width: 760px) {
  .printable-handoff-hero,
  .printable-facts-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .printable-handoff-meta {
    align-items: flex-start;
  }

  .printable-handoff-hero,
  .printable-handoff-section {
    padding: 22px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .sidebar,
  .no-print,
  .flash,
  .breadcrumb,
  .nav,
  .actions.no-print {
    display: none !important;
  }

  .main,
  .content,
  .panel,
  .printable-handoff-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .printable-handoff-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .printable-handoff-hero,
  .printable-handoff-section {
    padding: 18mm 12mm 8mm;
  }

  .printable-handoff-section {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* CloudZAO hosted white-label auth refresh. */
.auth-shell-branded {
  background: #f2f3f0;
}

.auth-shell-branded .auth-top-brand {
  color: #050505;
  font-size: 16px;
  font-weight: 850;
  left: 36px;
  top: 30px;
}

.auth-shell-branded .auth-top-brand .auth-brand-logo,
.auth-brand-lockup .auth-brand-logo {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  height: 40px;
  padding: 6px;
  width: 40px;
}

.auth-shell-branded .auth-card,
.partner-entry-card.cloudzao-entry-card {
  background: #ffffff;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 22px;
  box-shadow: 0 26px 72px rgba(5, 5, 5, 0.12);
  overflow: hidden;
}

.auth-shell-branded .auth-card {
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr);
  max-width: 940px;
}

.cloudzao-auth-panel,
.partner-entry-panel.cloudzao-entry-panel {
  background: #050505;
  color: #ffffff;
  min-height: 560px;
  padding: 42px;
}

.cloudzao-auth-panel::after,
.partner-entry-panel.cloudzao-entry-panel::after {
  background: var(--brand-primary, #aafa00);
  bottom: 30px;
  height: 5px;
  left: 42px;
  right: 42px;
}

.auth-brand-lockup {
  gap: 14px;
}

.auth-brand-lockup strong {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.18;
}

.auth-brand-meta,
.partner-entry-signal,
.partner-entry-eyebrow,
.auth-brand-kicker {
  color: var(--brand-primary, #aafa00);
  font-weight: 850;
  letter-spacing: 0;
}

.auth-brand-hero {
  align-self: center;
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

.auth-brand-hero h2 {
  color: #ffffff;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.auth-brand-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
}

.auth-brand-status,
.partner-entry-status {
  gap: 9px;
}

.auth-brand-status span,
.partner-entry-status span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
}

.auth-brand-identity,
.partner-entry-identity {
  gap: 9px;
}

.auth-brand-identity span,
.partner-entry-identity span {
  background: rgba(170, 250, 0, 0.12);
  border: 1px solid rgba(170, 250, 0, 0.24);
  border-radius: 999px;
  color: #ffffff;
  padding: 8px 10px;
}

.auth-brand-services,
.partner-entry-services {
  gap: 8px;
}

.auth-brand-services span,
.partner-entry-services span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 11px 12px;
}

.auth-brand-assurance span {
  background: rgba(170, 250, 0, 0.12);
  border-color: rgba(170, 250, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.auth-shell-branded .auth-workspace {
  background: #ffffff;
  gap: 18px;
  padding: 42px 40px;
}

.auth-shell-branded .auth-workspace .auth-heading {
  text-align: left;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  color: #050505;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.12;
}

.auth-shell-branded .auth-subtitle {
  color: #5f6761;
  font-size: 14px;
  line-height: 1.62;
}

.auth-shell-branded .auth-context-note-strong {
  background: #f6f7f3;
  border-color: #e0e5dc;
  border-radius: 14px;
  color: #59615b;
}

.auth-shell-branded .auth-form input {
  background: #fbfcfa;
  border-color: #d9dfd6;
  border-radius: 13px;
  min-height: 48px;
}

.auth-shell-branded .auth-form input:focus {
  border-color: #050505;
  outline-color: rgba(170, 250, 0, 0.36);
}

.auth-shell-branded .auth-form button.primary,
.partner-entry-actions .button.primary-link {
  background: var(--brand-primary, #aafa00);
  border: 1px solid rgba(5, 5, 5, 0.9);
  border-bottom: 3px solid #050505;
  color: #050505;
  font-weight: 850;
}

.auth-shell-branded .auth-form button.primary:hover,
.partner-entry-actions .button.primary-link:hover {
  background: #bcff2b;
  border-color: #050505;
  color: #050505;
}

.auth-shell-branded .oauth-button {
  background: #ffffff;
  border-color: #dce2d8;
  border-radius: 13px;
}

.partner-entry-card.cloudzao-entry-card {
  grid-template-columns: minmax(340px, 0.95fr) minmax(380px, 1.05fr);
  max-width: 1060px;
}

.partner-entry-panel.cloudzao-entry-panel {
  align-content: space-between;
  gap: 26px;
}

.partner-entry-message {
  align-self: center;
  gap: 14px;
  margin: 16px 0 8px;
}

.partner-entry-message h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.04;
  margin: 0;
}

.partner-entry-message p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 340px;
}

.partner-entry-workspace.cloudzao-entry-workspace {
  background: #ffffff;
  gap: 18px;
  padding: 42px 40px;
}

.partner-entry-workspace .auth-heading h2 {
  color: #050505;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.12;
}

.partner-entry-actions {
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-entry-actions .button {
  border-radius: 13px;
  min-height: 48px;
}

.partner-entry-actions .button.primary-link {
  grid-column: 1 / -1;
}

.partner-entry-actions .button.secondary-link,
.partner-entry-actions .button.ghost-link {
  background: #ffffff;
  border-color: #dce2d8;
  color: #050505;
}

.partner-entry-actions .button.secondary-link:hover,
.partner-entry-actions .button.ghost-link:hover {
  background: #f7f8f4;
}

.partner-entry-focus,
.partner-entry-proof span,
.partner-entry-steps div,
.partner-entry-note,
.partner-entry-paths {
  background: #f7f8f4;
  border-color: #e1e6dd;
}

.partner-entry-focus {
  border-radius: 16px;
  padding: 14px 15px;
}

.partner-entry-proof {
  gap: 9px;
}

.partner-entry-proof span {
  border-radius: 15px;
  padding: 13px 12px;
}

.partner-entry-paths {
  border-radius: 16px;
  gap: 14px;
  padding: 14px;
}

.partner-entry-path {
  border-left: 3px solid var(--brand-primary, #aafa00);
}

.partner-entry-steps div {
  border-radius: 15px;
}

.partner-entry-steps span {
  color: #050505;
}

.partner-entry-note {
  border-left: 4px solid var(--brand-primary, #aafa00);
  border-radius: 15px;
}

@media (max-width: 720px) {
  .auth-shell-branded .auth-card,
  .partner-entry-card.cloudzao-entry-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .cloudzao-auth-panel,
  .partner-entry-panel.cloudzao-entry-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .cloudzao-auth-panel::after,
  .partner-entry-panel.cloudzao-entry-panel::after {
    bottom: 16px;
    left: 20px;
    right: 20px;
  }

  .auth-brand-hero h2,
  .partner-entry-message h1 {
    font-size: 28px;
  }

  .auth-shell-branded .auth-workspace,
  .partner-entry-workspace.cloudzao-entry-workspace {
    padding: 28px 20px;
  }

  .auth-shell-branded .auth-workspace .auth-heading h1,
  .partner-entry-workspace .auth-heading h2 {
    font-size: 24px;
  }

  .auth-brand-identity,
  .partner-entry-identity,
  .partner-entry-proof,
  .partner-entry-paths,
  .partner-entry-actions {
    grid-template-columns: 1fr;
  }

  .partner-entry-actions .button.primary-link {
    grid-column: auto;
  }
}


/* CloudZAO logo cleanup after LAN visual review. */
.auth-shell-branded .auth-top-brand {
  gap: 12px;
}

.auth-shell-branded .auth-top-brand .auth-brand-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: auto;
  max-height: 42px;
  padding: 0;
  width: 148px;
}

.auth-brand-lockup {
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
}

.auth-brand-lockup .auth-brand-logo {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  height: auto;
  max-height: none;
  padding: 18px 20px;
  width: 210px;
}

.auth-brand-lockup > div {
  display: grid;
  gap: 5px;
}

.cloudzao-auth-panel,
.partner-entry-panel.cloudzao-entry-panel {
  align-content: space-between;
  min-height: 520px;
}

.auth-brand-hero.compact-copy {
  align-self: center;
  margin: 20px 0 0;
}

.auth-brand-hero.compact-copy h2 {
  font-size: 30px;
}

.auth-brand-quiet-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

.auth-shell-branded .auth-workspace {
  padding: 44px 40px;
}

@media (max-width: 720px) {
  .auth-shell-branded .auth-top-brand .auth-brand-logo {
    max-height: 36px;
    width: 126px;
  }

  .auth-brand-lockup {
    gap: 12px;
  }

  .auth-brand-lockup .auth-brand-logo {
    border-radius: 15px;
    padding: 14px 16px;
    width: 170px;
  }

  .auth-brand-hero.compact-copy h2 {
    font-size: 24px;
  }
}

/* v1.9-F91 simple two-column partner login. */
.auth-shell-branded {
  background: #f4f4f2;
}

.auth-shell-branded .auth-top-brand {
  display: none;
}

.auth-shell-branded .auth-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: minmax(300px, 360px) minmax(440px, 490px);
  max-width: 980px;
  min-height: 640px;
  overflow: visible;
}

.auth-shell-branded .auth-workspace {
  align-content: center;
  background: transparent;
  gap: 18px;
  order: 1;
  padding: 44px 0;
}

.auth-login-mark {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 12px;
}

.auth-login-logo {
  height: auto;
  max-height: 54px;
  object-fit: contain;
  width: 112px;
}

.auth-login-mark span {
  color: #111111;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
}

.auth-shell-branded .auth-workspace .auth-heading {
  gap: 8px;
  text-align: left;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  color: #080808;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.05;
}

.auth-shell-branded .auth-subtitle {
  color: #6f746f;
  font-size: 13px;
  line-height: 1.55;
}

.auth-shell-branded .auth-form {
  gap: 13px;
}

.auth-shell-branded .auth-form input {
  background: #ffffff;
  border: 1px solid #ecefec;
  border-radius: 8px;
  min-height: 44px;
}

.auth-shell-branded .auth-form button.primary {
  background: #111111;
  border-color: #111111;
  border-radius: 8px;
  border-bottom: 1px solid #111111;
  color: #ffffff;
  min-height: 44px;
}

.auth-shell-branded .auth-form button.primary:hover {
  background: #000000;
  border-color: #000000;
}

.auth-links-split {
  justify-content: space-between;
}

.auth-shell-branded .auth-links a,
.auth-shell-branded .auth-footer a {
  color: #111111;
}

.auth-shell-branded .auth-divider {
  margin-top: 10px;
}

.auth-shell-branded .oauth-button {
  border-radius: 999px;
  justify-content: center;
  min-height: 46px;
}

.auth-shell-branded .auth-footer {
  color: #8a8f89;
  font-size: 12px;
  text-align: left;
}

.cloudzao-auth-panel {
  background: #050505;
  border-radius: 30px;
  min-height: 640px;
  order: 2;
  overflow: hidden;
  padding: 46px 54px;
}

.cloudzao-auth-panel::after {
  display: none;
}

.auth-brand-visual {
  align-content: space-between;
  display: grid;
  height: 100%;
  min-height: 548px;
  position: relative;
  z-index: 1;
}

.auth-brand-hero-logo {
  align-self: start;
  filter: invert(1) grayscale(1);
  height: auto;
  justify-self: center;
  max-height: 245px;
  opacity: 0.24;
  width: min(78%, 360px);
}

.auth-brand-visual-copy {
  display: grid;
  gap: 13px;
  max-width: 330px;
}

.auth-brand-visual-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 780;
}

.auth-brand-visual-copy h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.12;
  margin: 0;
}

.auth-brand-visual-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .auth-shell-branded .auth-card {
    grid-template-columns: 1fr;
    max-width: 430px;
    min-height: auto;
  }

  .cloudzao-auth-panel {
    display: none;
  }

  .auth-shell-branded .auth-workspace {
    background: #ffffff;
    border: 1px solid rgba(5, 5, 5, 0.07);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(5, 5, 5, 0.08);
    padding: 30px 24px;
  }
}

/* v1.9-F92 cleaner CloudZAO login proportions. */
.auth-shell-branded .auth-card {
  gap: 86px;
  grid-template-columns: 350px 430px;
  max-width: 920px;
  min-height: 560px;
}

.auth-shell-branded .auth-workspace {
  gap: 16px;
  padding: 0;
}

.auth-login-mark {
  margin-bottom: 18px;
}

.auth-login-logo {
  max-height: 44px;
  width: 96px;
}

.auth-login-mark span {
  display: none;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  font-size: 30px;
}

.auth-shell-branded .auth-subtitle {
  max-width: 290px;
}

.auth-shell-branded .auth-form input {
  border-color: #e5e8e4;
  min-height: 43px;
}

.auth-shell-branded .auth-form button.primary {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  min-height: 43px;
}

.auth-shell-branded .oauth-button {
  background: #ffffff;
  min-height: 44px;
}

.cloudzao-auth-panel {
  border-radius: 26px;
  min-height: 560px;
  padding: 48px 46px;
}

.auth-brand-visual {
  min-height: 464px;
}

.auth-brand-hero-logo {
  filter: invert(1) grayscale(1);
  justify-self: start;
  max-height: 72px;
  opacity: 0.9;
  width: 150px;
}

.auth-brand-visual-copy {
  align-self: end;
  gap: 12px;
  max-width: 330px;
}

.auth-brand-visual-copy span {
  color: rgba(255, 255, 255, 0.82);
}

.auth-brand-visual-copy h2 {
  font-size: 30px;
}

@media (max-width: 860px) {
  .auth-login-mark span {
    display: none;
  }
}

/* v1.9-F93 CloudZAO login visual image and logo alignment. */
.auth-shell-branded .auth-workspace {
  justify-self: stretch;
}

.auth-shell-branded .auth-login-mark {
  justify-items: center;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.auth-shell-branded .auth-login-logo {
  display: block;
  margin: 0 auto;
  max-height: 48px;
  object-fit: contain;
  width: 108px;
}

.cloudzao-auth-image-panel {
  background: #050505;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(10, 10, 10, 0.18);
  min-height: 560px;
  overflow: hidden;
  padding: 0;
}

.cloudzao-auth-image-panel .auth-brand-visual-image {
  display: block;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 860px) {
  .auth-shell-branded .auth-login-mark {
    margin-bottom: 18px;
  }

  .auth-shell-branded .auth-login-logo {
    max-height: 58px;
    width: 150px;
  }
}

/* v1.9-F94 CloudZAO cleaner hero image and left-aligned form logo. */
.auth-shell-branded .auth-login-mark {
  justify-items: start;
  text-align: left;
}

.auth-shell-branded .auth-login-logo {
  margin: 0;
  width: 108px;
}

/* v1.9-F95 CloudZAO single-column hosted login. */
.auth-shell-branded .auth-card {
  gap: 0;
  grid-template-columns: minmax(320px, 350px);
  justify-content: center;
  max-width: 350px;
  min-height: 640px;
}

.auth-shell-branded .auth-workspace {
  align-content: center;
  justify-self: stretch;
  padding: 0;
}

.auth-shell-branded .auth-login-mark {
  justify-items: center;
  margin-bottom: 34px;
  text-align: center;
  transform: translateY(-14px);
  width: 100%;
}

.auth-shell-branded .auth-login-logo {
  display: block;
  margin: 0 auto;
  max-height: 50px;
  object-fit: contain;
  width: 112px;
}

.auth-shell-branded .cloudzao-auth-panel {
  display: none;
}

@media (max-width: 860px) {
  .auth-shell-branded .auth-card {
    max-width: 350px;
  }

  .auth-shell-branded .auth-workspace {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* v1.9-F96 viewport-centered hosted login correction. */
.auth-main:has(.auth-shell-branded) {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-shell-branded {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  padding: 36px 18px;
  place-items: center;
  width: 100vw;
}

.auth-shell-branded .auth-card {
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  width: min(350px, calc(100vw - 48px));
}

/* v1.9-F97 CloudZAO hosted login visual weight and theme tuning. */
.auth-shell-branded {
  background: #f6f8f2;
  padding: 24px 18px 56px;
}

.auth-shell-branded .auth-card {
  transform: translateY(-24px);
}

.auth-shell-branded .auth-workspace {
  gap: 15px;
}

.auth-shell-branded .auth-login-mark {
  margin-bottom: 28px;
  transform: translateY(-18px);
}

.auth-shell-branded .auth-login-logo {
  max-height: 54px;
  width: 118px;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  font-size: 31px;
  letter-spacing: 0;
}

.auth-shell-branded .auth-subtitle,
.auth-shell-branded .auth-footer,
.auth-shell-branded .auth-divider span {
  color: #596154;
}

.auth-shell-branded .auth-form input {
  background: #ffffff;
  border-color: #dfe5da;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.auth-shell-branded .auth-form input:focus {
  border-color: #aafa00;
  box-shadow: 0 0 0 4px rgba(170, 250, 0, 0.18);
}

.auth-shell-branded .auth-form button.primary {
  background: #aafa00;
  border-color: #96df00;
  box-shadow: 0 12px 24px rgba(170, 250, 0, 0.22);
  color: #071006;
}

.auth-shell-branded .auth-form button.primary:hover {
  background: #b8ff22;
  border-color: #8fd500;
  color: #071006;
}

.auth-shell-branded .auth-form button.primary:focus-visible,
.auth-shell-branded .oauth-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(170, 250, 0, 0.22);
}

.auth-shell-branded .auth-links a:hover,
.auth-shell-branded .auth-footer a:hover {
  color: #4d7600;
}

.auth-shell-branded .auth-divider span {
  background: #f6f8f2;
}

.auth-shell-branded .oauth-button {
  border-color: #dde5d6;
}

@media (max-width: 860px) {
  .auth-shell-branded {
    padding: 22px 20px 42px;
  }

  .auth-shell-branded .auth-card {
    transform: translateY(-12px);
    width: min(350px, calc(100vw - 40px));
  }

  .auth-shell-branded .auth-login-mark {
    margin-bottom: 24px;
    transform: translateY(-10px);
  }
}

/* v1.9-F98 CloudZAO OpenAI-inspired minimal hosted login. */
.auth-shell-branded {
  background: #fbfcf8;
  padding: 32px 18px 48px;
  place-items: center;
}

.auth-shell-branded .auth-top-brand {
  align-items: center;
  display: inline-flex;
  font-size: 0;
  gap: 0;
  left: 38px;
  line-height: 0;
  position: fixed;
  top: 30px;
  z-index: 5;
}

.auth-shell-branded .auth-top-brand .auth-brand-logo {
  background: transparent;
  border-radius: 0;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  padding: 0;
  width: 190px;
}

.auth-shell-branded .auth-card {
  max-width: 350px;
  min-height: auto;
  transform: translateY(-12px);
  width: min(350px, calc(100vw - 48px));
}

.auth-shell-branded .auth-workspace {
  gap: 16px;
  padding: 0;
}

.auth-shell-branded .auth-login-mark {
  display: none;
}

.auth-shell-branded .auth-workspace .auth-heading {
  gap: 9px;
  margin-bottom: 4px;
  text-align: left;
}

.auth-shell-branded .auth-workspace .auth-heading h1 {
  color: #050505;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.auth-shell-branded .auth-subtitle {
  color: #6a716a;
  font-size: 13px;
  line-height: 1.55;
  max-width: none;
}

.auth-shell-branded .auth-form {
  gap: 14px;
}

.auth-shell-branded .auth-form label span {
  color: #30362f;
  font-size: 13px;
  font-weight: 720;
}

.auth-shell-branded .auth-form input {
  background: #ffffff;
  border: 1px solid #dfe5da;
  border-radius: 8px;
  min-height: 43px;
}

.auth-shell-branded .auth-form input:focus {
  border-color: #aafa00;
  box-shadow: 0 0 0 4px rgba(170, 250, 0, 0.18);
}

.auth-shell-branded .auth-form button.primary {
  background: #aafa00;
  border-color: #96df00;
  border-radius: 8px;
  box-shadow: none;
  color: #071006;
  min-height: 44px;
}

.auth-shell-branded .auth-form button.primary:hover {
  background: #b7ff1f;
  border-color: #8fd500;
  color: #071006;
}

.auth-shell-branded .auth-links-split {
  margin-top: 2px;
}

.auth-shell-branded .auth-links a {
  color: #0b0d0a;
  font-size: 14px;
  font-weight: 750;
}

.auth-shell-branded .auth-divider {
  margin-top: 12px;
}

.auth-shell-branded .auth-divider span {
  background: #fbfcf8;
  color: #8a9188;
}

.auth-shell-branded .oauth-button {
  background: #ffffff;
  border: 1px solid #dfe5da;
  border-radius: 999px;
  color: #303630;
  min-height: 44px;
}

.auth-shell-branded .oauth-button span {
  color: #9a9f97;
}

.auth-shell-branded .auth-footer {
  border-top-color: #eef1eb;
  color: #8a9188;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 6px;
  padding-top: 14px;
  text-align: left;
}

.auth-shell-branded .auth-footer a,
.auth-shell-branded .auth-links a:hover,
.auth-shell-branded .auth-footer a:hover {
  color: #0b0d0a;
}

@media (max-width: 860px) {
  .auth-shell-branded {
    padding: 86px 22px 34px;
  }

  .auth-shell-branded .auth-top-brand {
    left: 22px;
    top: 22px;
  }

  .auth-shell-branded .auth-top-brand .auth-brand-logo {
    max-height: 58px;
    width: 150px;
  }

  .auth-shell-branded .auth-card {
    transform: none;
    width: min(350px, calc(100vw - 44px));
  }
}

/* v1.9-F100 CloudZAO minimal hosted registration. */
.auth-register-shell.auth-shell-branded {
  padding: 32px 18px 48px;
}

.auth-register-shell.auth-shell-branded .auth-card {
  max-width: 350px;
  min-height: auto;
  transform: translateY(-10px);
  width: min(350px, calc(100vw - 48px));
}

.auth-register-shell.auth-shell-branded .auth-workspace {
  gap: 14px;
}

.auth-register-shell.auth-shell-branded .auth-heading {
  margin-bottom: 0;
}

.auth-register-shell.auth-shell-branded .auth-steps {
  justify-content: flex-start;
  margin: 2px 0 4px;
}

.auth-register-shell.auth-shell-branded .auth-section-heading {
  display: grid;
  gap: 4px;
  margin: 0;
  text-align: left;
}

.auth-register-shell.auth-shell-branded .auth-section-heading h2 {
  color: #050505;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
  margin: 0;
}

.auth-register-shell.auth-shell-branded .auth-section-heading p,
.auth-register-shell.auth-shell-branded .auth-note {
  color: #6a716a;
  font-size: 13px;
  line-height: 1.55;
}

.auth-register-shell.auth-shell-branded .auth-note {
  margin: 0;
}

.auth-register-shell.auth-shell-branded .auth-resend-form {
  margin-top: -2px;
}

.auth-register-shell.auth-shell-branded .auth-links.compact {
  color: #6a716a;
  font-size: 13px;
  margin: 0;
}

.auth-register-shell.auth-shell-branded .auth-field-summary {
  border-radius: 8px;
}

.auth-register-shell.auth-shell-branded .auth-checkbox {
  align-items: flex-start;
  color: #60675f;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .auth-register-shell.auth-shell-branded {
    padding: 86px 22px 34px;
  }

  .auth-register-shell.auth-shell-branded .auth-card {
    transform: none;
    width: min(350px, calc(100vw - 44px));
  }
}

/* v1.9-F101 App OAuth completion page. */
.oauth-complete-card {
  max-width: 350px;
  min-height: auto;
  transform: translateY(-12px);
  width: min(350px, calc(100vw - 48px));
}

.oauth-complete-workspace {
  gap: 16px;
  padding: 0;
}

.oauth-complete-workspace .auth-heading {
  gap: 9px;
  margin-bottom: 4px;
  text-align: left;
}

.oauth-complete-note {
  border-top: 1px solid #eef1eb;
  color: #6a716a;
  font-size: 13px;
  line-height: 1.55;
  margin: 2px 0 0;
  padding-top: 14px;
  text-align: left;
}

.oauth-complete-actions {
  display: grid;
  gap: 10px;
}

.auth-shell-branded .oauth-complete-actions .oauth-open-app,
.oauth-complete-actions .oauth-open-app {
  align-items: center;
  background: var(--brand-primary, #aafa00);
  border: 1px solid var(--brand-primary, #96df00);
  border-radius: 8px;
  box-shadow: none;
  color: #071006;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.auth-shell-branded .oauth-complete-actions .oauth-open-app:hover,
.oauth-complete-actions .oauth-open-app:hover {
  background: #b7ff1f;
  border-color: #8fd500;
  color: #071006;
}

.oauth-complete-web-link {
  cursor: pointer;
  grid-template-columns: 1fr auto;
  opacity: 1;
  text-align: center;
  text-decoration: none;
}

.oauth-complete-web-link::before {
  content: none;
}

.oauth-complete-web-link:hover {
  border-color: #cfd8cb;
  color: #0b0d0a;
}

.oauth-complete-workspace .auth-footer {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .oauth-complete-card {
    transform: none;
    width: min(350px, calc(100vw - 44px));
  }
}


/* v1.9-F102 CloudZAO brand store MVP. */
.store-shell {
  margin: 0;
  width: 100%;
}

.partner-store-page {
  --store-bg: #f7f8f4;
  --store-panel: #ffffff;
  --store-ink: #10130f;
  --store-muted: #667062;
  --store-line: #e4e8df;
  --store-accent: var(--brand-primary, #aafa00);
  background: var(--store-bg);
  color: var(--store-ink);
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.partner-store-sidebar {
  align-self: start;
  background: #f4f6f1;
  border-right: 1px solid var(--store-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 24px 18px;
  position: sticky;
  top: 0;
}


.partner-store-nav {
  display: grid;
  gap: 6px;
}

.partner-store-nav a,
.partner-store-type-tabs a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #20261e;
  display: flex;
  font-weight: 760;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 11px;
  text-decoration: none;
}

.partner-store-nav a:hover,
.partner-store-nav a.active,
.partner-store-type-tabs a:hover,
.partner-store-type-tabs a.active {
  background: rgba(170, 250, 0, 0.2);
  border-color: rgba(170, 250, 0, 0.38);
  color: #0b0d0a;
}

.partner-store-type-tabs a {
  border-radius: 999px;
  gap: 4px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
}

.partner-store-nav a span,
.partner-store-type-tabs a span {
  color: #7a8377;
  font-size: 12px;
  font-weight: 780;
}


.partner-store-main {
  align-content: start;
  display: grid;
  gap: 18px;
  padding: 28px 40px 54px;
}

.partner-store-topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 560px) auto;
  justify-content: space-between;
}

.partner-store-search input[type="search"] {
  background: var(--store-panel);
  border: 1px solid #dce2d7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 23, 16, 0.04);
  color: var(--store-ink);
  font-size: 15px;
  min-height: 48px;
  padding: 0 18px;
  width: 100%;
}

.partner-store-search input[type="search"]:focus {
  border-color: var(--store-accent);
  box-shadow: 0 0 0 4px rgba(170, 250, 0, 0.2);
  outline: none;
}

.partner-store-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.partner-store-actions .button.primary-link {
  background: #121411;
  border-color: #121411;
  color: #ffffff;
}

.partner-store-actions .button.secondary-link,
.partner-store-lang {
  align-items: center;
  background: var(--store-panel);
  border: 1px solid #dce2d7;
  border-radius: 10px;
  color: #20261e;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.partner-store-actions .button.secondary-link:hover,
.partner-store-lang:hover {
  border-color: #bdc9b2;
  color: #0b0d0a;
  text-decoration: none;
}


.partner-store-section-head {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--store-line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 24, 15, 0.045);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.partner-store-section-head h2 {
  color: var(--store-ink);
  font-size: 22px;
  margin: 0 0 5px;
}

.partner-store-section-head p {
  color: var(--store-muted);
  margin: 0;
}

.partner-store-type-tabs {
  background: #f7f9f4;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  display: flex;
  flex: none;
  gap: 4px;
  padding: 4px;
}

.partner-store-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.partner-store-card {
  background: var(--store-panel);
  border: 1px solid var(--store-line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17, 24, 15, 0.055);
  overflow: hidden;
}

.partner-store-card:hover {
  border-color: rgba(170, 250, 0, 0.58);
  box-shadow: 0 18px 42px rgba(17, 24, 15, 0.08);
}

.partner-store-cover {
  background: linear-gradient(145deg, #080908 0%, #121411 72%);
  color: #ffffff;
  display: grid;
  gap: 10px;
  min-height: 250px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-decoration: none;
}

.partner-store-preview-media {
  background: transparent;
  height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0.78;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.partner-store-cover::before {
  background: radial-gradient(circle at 78% 15%, rgba(170, 250, 0, 0.2), transparent 28%), linear-gradient(150deg, transparent 46%, rgba(170, 250, 0, 0.12) 47%, transparent 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.partner-store-cover::after {
  background: rgba(255, 255, 255, 0.08);
  bottom: 22px;
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  width: 36%;
}

.partner-store-cover::before,
.partner-store-cover::after {
  z-index: 1;
}

.partner-store-cover > * {
  position: relative;
  z-index: 2;
}

.partner-store-preview-media {
  z-index: 0;
}

.partner-store-card.is-theme {
  display: grid;
}

.partner-store-card.is-theme .partner-store-cover {
  align-content: start;
  aspect-ratio: 1920 / 462;
  background: transparent;
  min-height: 0;
  padding: 0;
}

.partner-store-card.is-theme .partner-store-preview-media {
  opacity: 1;
  padding: 0;
}

.partner-store-card.is-theme .partner-store-cover::before {
  display: none;
}

.partner-store-card.is-theme .partner-store-cover::after {
  display: none;
}

.partner-store-card.is-theme .partner-store-badge,
.partner-store-card.is-theme .partner-store-motion-indicator {
  display: none;
}

.partner-store-card.is-theme .partner-store-badge,
.partner-store-card.is-theme .partner-store-device {
  backdrop-filter: blur(8px);
  background: rgba(5, 6, 5, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  justify-self: start;
  padding: 6px 10px;
}

.partner-store-card.is-theme .partner-store-device {
  color: #ffffff;
  margin-top: auto;
}

.partner-store-motion-indicator {
  align-self: start;
  background: rgba(5, 6, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  height: 34px;
  justify-self: end;
  position: relative;
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 34px;
}

.partner-store-motion-indicator::before {
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--store-accent);
  border-top: 6px solid transparent;
  content: "";
  left: 13px;
  position: absolute;
  top: 10px;
}

.partner-store-card.is-theme.has-motion:hover .partner-store-cover {
  border-color: rgba(170, 250, 0, 0.62);
}

.partner-store-card.is-theme.has-motion:hover .partner-store-motion-indicator {
  opacity: 0;
  transform: scale(0.88);
}

@media (min-width: 760px) {
  .partner-store-grid:not(.partner-store-theme-grid) .partner-store-card.is-theme {
    grid-column: span 2;
  }
}

video[data-hover-preview]::-webkit-media-controls,
video[data-hover-preview]::-webkit-media-controls-enclosure {
  display: none !important;
}

.partner-store-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 820;
  justify-self: start;
  padding: 6px 8px;
}

.partner-store-device {
  color: var(--store-accent);
  font-weight: 820;
  margin-top: auto;
}

.partner-store-cover strong {
  color: #ffffff;
  font-size: 23px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.partner-store-cover small {
  color: rgba(255, 255, 255, 0.7);
}

.partner-store-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.partner-store-author,
.partner-store-card-meta {
  align-items: center;
  color: var(--store-muted);
  display: flex;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
}

.partner-store-author em {
  background: rgba(170, 250, 0, 0.22);
  border-radius: 999px;
  color: #1b2600;
  font-style: normal;
  padding: 4px 8px;
}

.partner-store-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.partner-store-card h3 a {
  color: var(--store-ink);
  text-decoration: none;
}

.partner-store-card p {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.partner-store-content-section {
  display: grid;
  gap: 14px;
}

.partner-store-content-section + .partner-store-content-section {
  margin-top: 10px;
}

.partner-store-group-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.partner-store-group-head h3 {
  color: var(--store-ink);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.partner-store-group-head p {
  color: var(--store-muted);
  font-size: 14px;
  margin: 0;
}

.partner-store-theme-grid {
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.partner-store-app-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
}

.partner-store-theme-grid .partner-store-card.is-theme {
  grid-column: auto;
  min-height: auto;
}

.partner-store-theme-grid .partner-store-card.is-theme .partner-store-cover {
  min-height: 0;
}

.partner-store-theme-grid .partner-store-card.is-theme .partner-store-card-body {
  gap: 8px;
  padding: 14px 16px 15px;
}

.partner-store-theme-grid .partner-store-card.is-theme h3 {
  font-size: 20px;
}

.partner-store-theme-grid .partner-store-card.is-theme p {
  min-height: 22px;
}

.partner-store-theme-grid .partner-store-card.is-theme .partner-store-card-meta {
  border-top: 1px solid var(--store-line);
  margin-top: 2px;
  padding-top: 10px;
}

.partner-store-empty {
  background: var(--store-panel);
  border: 1px dashed #cfd8c8;
  border-radius: 18px;
  color: var(--store-muted);
  padding: 34px;
}

.partner-store-empty h2 {
  color: var(--store-ink);
  margin-top: 0;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1080px) {
  body.branded-session:not(.auth-layout) .store-global-topbar {
    grid-template-columns: 1fr;
    padding-bottom: 12px;
  }

  .store-header-search {
    order: 3;
  }
}

@media (max-width: 900px) {
  .partner-store-page {
    grid-template-columns: 1fr;
  }

  .partner-store-sidebar {
    height: auto;
    min-height: auto;
    position: static;
  }


  .partner-store-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .partner-store-nav a {
    min-width: max-content;
  }

  .partner-store-main {
    padding: 22px;
  }

  .partner-store-topbar,
  .partner-store-section-head,

  .partner-store-actions,
  .partner-store-type-tabs {
    overflow-x: auto;
  }

}



.partner-store-theme-detail-page {
  --store-bg: #f7f8f4;
  --store-panel: #ffffff;
  --store-ink: #10130f;
  --store-muted: #667062;
  --store-line: #e4e8df;
  --store-accent: var(--brand-primary, #aafa00);
  background: var(--store-bg);
  color: var(--store-ink);
  min-height: calc(100vh - 56px);
  padding: 18px 32px 48px;
}

.theme-detail-shell {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
}

.theme-detail-topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 42px;
}

.theme-detail-breadcrumbs {
  color: var(--store-muted);
  display: flex;
  gap: 8px;
  min-width: 0;
}

.theme-detail-breadcrumbs a {
  color: var(--store-ink);
  text-decoration: none;
}

.theme-detail-top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.theme-detail-price-pill {
  background: rgba(170, 250, 0, 0.26);
  border: 1px solid rgba(148, 220, 0, 0.42);
  border-radius: 999px;
  color: #1b2600;
  font-weight: 700;
  line-height: 1;
  padding: 9px 13px;
}

.theme-detail-heading {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
}

.theme-detail-heading-copy {
  min-width: 0;
}

.theme-detail-kicker {
  color: var(--store-muted);
  display: inline-block;
  font-size: 13px;
  margin-bottom: 8px;
}

.theme-detail-heading h1 {
  color: var(--store-ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  margin: 0;
}

.theme-detail-heading p,
.theme-detail-action-help {
  color: var(--store-muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.theme-detail-action-help {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--store-line);
  border-radius: 14px;
  margin: 0;
  padding: 12px 14px;
}

.theme-detail-preview-panel {
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(17, 24, 15, 0.07);
  overflow: hidden;
}

.theme-detail-preview-media,
.theme-detail-preview-empty {
  aspect-ratio: 1920 / 462;
  display: block;
  width: 100%;
}

.theme-detail-preview-media {
  background: transparent;
  object-fit: contain;
}

.theme-detail-preview-empty {
  align-items: center;
  color: var(--store-muted);
  display: flex;
  justify-content: center;
}

.theme-detail-metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-detail-metric-strip div,
.theme-detail-section {
  background: var(--store-panel);
  border: 1px solid var(--store-line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(17, 24, 15, 0.04);
}

.theme-detail-metric-strip div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
}

.theme-detail-metric-strip span,
.theme-detail-data-list dt {
  color: #52604d;
}

.theme-detail-metric-strip strong,
.theme-detail-data-list dd {
  color: var(--store-ink);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.theme-detail-section-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-detail-section {
  padding: 20px;
}

.theme-detail-section h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .partner-store-theme-detail-page {
    padding: 18px;
  }

  .theme-detail-topbar,
  .theme-detail-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .theme-detail-topbar {
    flex-direction: column;
  }

  .theme-detail-top-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .theme-detail-metric-strip,
  .theme-detail-section-grid {
    grid-template-columns: 1fr;
  }
}

.device-catalog-page {

  --catalog-accent: #0f766e;
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1180px);
  margin-left: calc((100% - (100vw - 48px)) / 2);
  width: calc(100vw - 48px);
}

.device-catalog-shell {
  min-width: 0;
}

.device-catalog-nav {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
  position: sticky;
  top: 84px;
}

.device-catalog-nav-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 8px 8px;
}

.device-catalog-nav a {
  border-radius: 6px;
  color: var(--text);
  font-weight: 650;
  padding: 10px 12px;
  text-decoration: none;
}

.device-catalog-nav a:hover,
.device-catalog-nav a.active {
  background: #eefcf8;
  color: #0f5f56;
}

.device-catalog-nav a.active {
  border: 1px solid #b9e4dc;
}

.device-catalog-main,
.device-catalog-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.device-catalog-section {
  scroll-margin-top: 92px;
}

.device-catalog-section-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.device-catalog-section-head h2 {
  margin: 0 0 4px;
}

.catalog-actions-cell {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.inline-delete-form {
  margin: 0;
}

.inline-delete-form button,
button.danger,
.button.danger {
  border-color: #f1b5b5;
  color: #9f1d1d;
}

.inline-delete-form button:hover,
button.danger:hover,
.button.danger:hover {
  background: #fff1f1;
  border-color: #e68a8a;
}

.compact-hint {
  font-size: 12px;
  margin: 0;
}

@media (max-width: 900px) {
  .device-catalog-page {
    grid-template-columns: 1fr;
    margin-left: 0;
    width: 100%;
  }

  .device-catalog-nav {
    position: static;
  }

  .device-catalog-section-head {
    display: grid;
  }
}
