:root {
  color-scheme: light;
  --ink: #0b100c;
  --ink-soft: #182019;
  --paper: #f4f6f2;
  --white: #ffffff;
  --muted: #687069;
  --line: #dfe4dd;
  --line-dark: rgba(255, 255, 255, .14);
  --lime: #b8ff3f;
  --lime-dark: #315c00;
  --blue: #3974ff;
  --coral: #ff7657;
  --gold: #f1c84c;
  --radius: 6px;
  --sidebar: 244px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.app-shell,
.screen {
  min-height: 100vh;
}

.auth-screen {
  background: var(--ink);
  color: var(--white);
}

.auth-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 16, 12, .88);
  backdrop-filter: blur(18px);
}

.brand,
.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 5px;
  background: var(--lime);
  color: var(--ink);
  font-size: 19px;
  font-weight: 1000;
}

.brand-name {
  font-size: 20px;
}

.brand-product {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 800;
}

.header-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.header-link:hover {
  color: var(--lime);
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.42fr) minmax(420px, .58fr);
  padding-top: 82px;
}

.brand-stage {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  background: #101512;
}

.brand-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.75) contrast(1.04);
}

.stage-shade {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 7, .52);
}

.stage-shade::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 76%);
}

.stage-index {
  position: absolute;
  top: 28px;
  right: 32px;
  color: rgba(255, 255, 255, .64);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.stage-copy {
  position: absolute;
  z-index: 2;
  left: 7%;
  bottom: 16%;
  max-width: 760px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker > span {
  width: 22px;
  height: 2px;
  background: var(--lime);
}

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

.stage-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: 72px;
  line-height: 1.03;
  font-weight: 900;
}

.stage-copy > p:last-child {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 17px;
  line-height: 1.8;
}

.capability-row {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 28px;
  left: 7%;
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 800;
}

.capability-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.capability-row span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.auth-panel {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}

.auth-panel-inner {
  width: min(420px, calc(100% - 48px));
  padding: 36px 0;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 64px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-status > span,
.sync-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39c86a;
  box-shadow: 0 0 0 5px rgba(57, 200, 106, .12);
}

.auth-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.auth-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.mode-switch {
  display: grid;
  height: 48px;
  grid-template-columns: 1fr 1fr;
  margin: 38px 0 28px;
  border-bottom: 1px solid var(--line);
}

.mode-button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.mode-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.mode-button.active {
  color: var(--ink);
}

.mode-button.active::after {
  background: var(--ink);
}

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

.form-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(190, 56, 45, .28);
  border-radius: var(--radius);
  background: #fff1ef;
  color: #9e3227;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.form-alert.success {
  border-color: rgba(36, 120, 71, .25);
  background: #effaf2;
  color: #247847;
}

.security-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.twofa-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
}

.twofa-heading .plan-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.twofa-heading b,
.twofa-heading p {
  display: block;
}

.twofa-heading b {
  font-size: 13px;
}

.twofa-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

.field-control {
  display: grid;
  height: 54px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}

.field-control:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 16, 12, .06);
}

.field-control input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.field-control input::placeholder {
  color: #9da39d;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.check-control input {
  position: absolute;
  opacity: 0;
}

.check-control > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.check-control input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
}

.check-control input:checked + span::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.primary-button:hover {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: var(--ink);
}

.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: .58;
  pointer-events: none;
}

.primary-button.compact,
.secondary-button.compact {
  min-height: 42px;
  width: max-content;
  padding: 0 15px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--ink);
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  color: #8a918b;
  font-size: 10px;
  font-weight: 800;
}

.auth-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-foot svg {
  width: 15px;
  height: 15px;
}

.icon-button,
.avatar-button,
.tool-launch {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.icon-button:hover {
  border-color: var(--ink);
}

.field-action {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.workspace-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background: var(--paper);
}

.workspace-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 22px 16px 16px;
  background: var(--ink);
  color: var(--white);
}

.workspace-brand {
  height: 48px;
  padding: 0 8px;
  font-size: 19px;
}

.workspace-nav {
  display: grid;
  gap: 6px;
  margin-top: 48px;
}

.nav-button {
  display: grid;
  min-height: 46px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.nav-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .07);
}

.nav-button.active {
  background: var(--lime);
  color: var(--ink);
}

.sidebar-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.sidebar-user {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.avatar,
.avatar-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-weight: 1000;
}

.sidebar-user b,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user b {
  font-size: 12px;
}

.sidebar-user small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
}

.dark-icon {
  border-color: var(--line-dark);
  background: transparent;
  color: rgba(255,255,255,.66);
}

.dark-icon:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}

.workspace-main {
  min-width: 0;
  grid-column: 2;
}

.workspace-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 242, .9);
  backdrop-filter: blur(16px);
}

.command-search {
  display: grid;
  width: min(460px, 48vw);
  height: 42px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}

.command-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

kbd {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
}

.avatar-button {
  border: 0;
}

.mobile-menu {
  display: none;
}

.nav-scrim {
  display: none;
}

.workspace-content {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 38px 32px 64px;
}

.workspace-page {
  display: none;
}

.workspace-page.active {
  display: block;
}

.page-title-row {
  display: flex;
  min-height: 90px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-title-row h1,
.simple-page-head h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}

.account-band {
  display: grid;
  min-height: 142px;
  grid-template-columns: 1.5fr .8fr .8fr 120px;
  align-items: center;
  margin: 30px 0 38px;
  border: 1px solid #202821;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.account-band > div {
  min-width: 0;
  padding: 24px 28px;
}

.account-band > div + div {
  border-left: 1px solid var(--line-dark);
}

.account-plan {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.plan-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
}

.account-band small,
.wallet-summary small,
.partner-band small,
.invite-row small {
  display: block;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-plan b,
.account-metric b {
  display: block;
  margin-top: 8px;
}

.account-plan b {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-plan div > span,
.account-metric > span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
}

.account-metric b {
  font-size: 28px;
}

.trend.positive {
  color: #74dd92;
}

.usage-ring {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin: auto;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) 0 64%, rgba(255,255,255,.12) 64% 100%);
  text-align: center;
}

.usage-ring::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.usage-ring > * {
  position: relative;
  z-index: 1;
}

.usage-ring span {
  font-size: 17px;
  font-weight: 900;
}

.usage-ring small {
  margin-top: 3px;
  font-size: 8px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 25px;
}

.section-title-row .kicker {
  margin-bottom: 9px;
}

.arrow-link svg {
  width: 16px;
  height: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(185, 255, 81, .18);
}

.tasks-title {
  margin-top: 42px;
}

.task-table {
  border-top: 1px solid var(--ink);
}

.task-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(240px, 1.5fr) .6fr .65fr .65fr 40px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.task-head {
  min-height: 42px;
  color: #8a918b;
  font-size: 10px;
  font-weight: 900;
}

.task-name b,
.task-name small {
  display: block;
}

.task-name b {
  color: var(--ink);
  font-size: 13px;
}

.task-name small {
  margin-top: 5px;
  color: #919791;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.task-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.task-status svg {
  width: 16px;
  height: 16px;
}

.task-status.done {
  color: #247847;
}

.task-status.running {
  color: #8f6415;
}

.task-status.draft {
  color: #6b6f6b;
}

.task-status.error {
  color: #b33a30;
}

.empty-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.loading-block,
.access-state {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.access-state {
  justify-content: flex-start;
  text-align: left;
}

.access-state svg {
  flex: 0 0 auto;
  color: var(--ink);
}

.access-state h3,
.access-state p {
  margin: 0;
}

.access-state h3 {
  color: var(--ink);
  font-size: 15px;
}

.access-state p {
  margin-top: 6px;
  line-height: 1.6;
}

.compact-state {
  justify-content: flex-start;
  margin-top: 0;
  min-height: 92px;
}

.simple-page-head {
  max-width: 820px;
  padding: 12px 0 34px;
  border-bottom: 1px solid var(--ink);
}

.simple-page-head > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.catalog-grid article {
  display: grid;
  min-height: 160px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-grid article:nth-child(2n) {
  border-right: 0;
}

.tool-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.tool-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 420px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(11, 16, 12, .14);
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  transform-origin: center;
}

.tool-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  content: "";
  pointer-events: none;
}

.tool-card:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}

.tool-card-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-card-number {
  font: 900 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.tool-scene {
  position: relative;
  z-index: 1;
  min-height: 224px;
  margin: 18px 0 12px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.tool-card-copy {
  position: relative;
  z-index: 3;
  max-width: calc(100% - 58px);
}

.tool-card-copy small {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 900;
}

.tool-card-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.tool-card-copy p {
  max-width: 400px;
  margin: 8px 0 0;
  color: rgba(11, 16, 12, .62);
  font-size: 12px;
  line-height: 1.65;
}

.tool-launch {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  transition: background-color .2s ease, color .2s ease;
}

.tool-launch svg {
  width: 17px;
  height: 17px;
}

.tool-commerce {
  background: #dff3b2;
  color: var(--ink);
}

.tool-commerce .status-chip {
  background: var(--ink);
  color: var(--lime);
}

.commerce-scene {
  perspective: 900px;
}

.commerce-browser {
  position: absolute;
  z-index: 2;
  inset: 8px 52px 10px 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 16, 12, .82);
  background: #f7f7f2;
  box-shadow: 11px 13px 0 rgba(11, 16, 12, .12);
}

.commerce-browser-bar {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(11, 16, 12, .25);
  background: #fff;
}

.commerce-browser-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.commerce-browser-bar b {
  margin-left: auto;
  font: 800 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.commerce-preview {
  display: block;
  width: 100%;
  height: calc(100% - 27px);
  object-fit: cover;
  object-position: 49% 46%;
  filter: saturate(.86) contrast(1.03);
}

.commerce-prompt {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  height: 34px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(11, 16, 12, .18);
  background: rgba(255, 255, 255, .92);
  font-size: 8px;
}

.commerce-prompt svg {
  width: 12px;
}

.commerce-prompt b {
  color: #527800;
  font-size: 7px;
}

.commerce-output {
  position: absolute;
  right: 7px;
  width: 66px;
  height: 82px;
  border: 1px solid var(--ink);
  background-image: url("assets/ecommerce-workflow-preview.png");
  background-repeat: no-repeat;
  box-shadow: 5px 6px 0 rgba(11, 16, 12, .12);
}

.output-a {
  top: 25px;
  z-index: 3;
  background-position: 25% 24%;
  background-size: 390%;
}

.output-b {
  right: 25px;
  bottom: 0;
  z-index: 1;
  background-position: 73% 50%;
  background-size: 430%;
}

.tool-comic {
  background: #f2d7ff;
}

.tool-comic .status-chip {
  color: #4b245e;
}

.comic-scene {
  overflow: hidden;
  border-top: 1px solid rgba(11, 16, 12, .24);
  border-bottom: 1px solid rgba(11, 16, 12, .24);
}

.comic-frame {
  position: absolute;
  overflow: hidden;
  border: 2px solid var(--ink);
  background-image: url("assets/hero-main-wide.png");
  background-repeat: no-repeat;
  filter: saturate(.55) contrast(1.12);
}

.comic-frame::after {
  position: absolute;
  inset: 0;
  background: rgba(131, 61, 161, .13);
  content: "";
}

.comic-frame span {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  padding: 4px 5px;
  background: var(--ink);
  color: #fff;
  font: 800 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.comic-frame-a {
  top: 15px;
  bottom: 46px;
  left: 12px;
  width: 46%;
  background-position: 5% 42%;
  background-size: 260%;
  transform: rotate(-1deg);
}

.comic-frame-b {
  top: 15px;
  right: 12px;
  width: 43%;
  height: 44%;
  background-position: 94% 40%;
  background-size: 330%;
  transform: rotate(1.5deg);
}

.comic-frame-c {
  right: 12px;
  bottom: 15px;
  width: 43%;
  height: 37%;
  background-position: 53% 50%;
  background-size: 310%;
  transform: rotate(-.6deg);
}

.comic-caption {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 24px;
  display: grid;
  gap: 3px;
  max-width: 142px;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.comic-caption b {
  font-size: 12px;
}

.comic-caption span {
  font-size: 7px;
  font-weight: 800;
}

.tool-human {
  background: #111716;
  color: #f5f7f2;
}

.tool-human::before {
  border-color: rgba(255, 255, 255, .08);
}

.tool-human .status-chip,
.tool-human .tool-card-copy small,
.tool-human .tool-card-copy p {
  color: rgba(223, 255, 243, .62);
}

.tool-human .tool-launch {
  background: #8fffd0;
  color: #111716;
}

.human-scene {
  overflow: hidden;
  border: 1px solid rgba(143, 255, 208, .24);
  background: #0b100f;
}

.tool-generated-image,
.generated-image-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tool-generated-image {
  object-fit: cover;
  will-change: transform;
}

.generated-image-vignette {
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 10, 9, .05), transparent 48%, rgba(5, 10, 9, .72));
}

.human-generated-image {
  object-position: center 44%;
}

.human-capture-frame {
  position: absolute;
  z-index: 3;
  top: 12%;
  bottom: 20%;
  left: 50%;
  width: 38%;
  min-width: 118px;
  max-width: 168px;
  border: 1px solid rgba(143, 255, 208, .28);
  box-shadow: inset 0 0 30px rgba(143, 255, 208, .06);
  transform: translateX(-50%);
}

.human-scan-line {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  height: 1px;
  background: #8fffd0;
  box-shadow: 0 0 12px 2px rgba(143, 255, 208, .58);
}

.scan-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #8fffd0;
  border-style: solid;
}

.corner-one { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.corner-two { top: 7px; right: 7px; border-width: 1px 1px 0 0; }
.corner-three { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.corner-four { bottom: 7px; left: 7px; border-width: 0 0 1px 1px; }

.human-audio {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 12px;
  left: 16px;
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(143, 255, 208, .18);
  background: rgba(5, 10, 9, .48);
  backdrop-filter: blur(5px);
}

.human-audio span {
  width: 2px;
  height: 30%;
  background: #8fffd0;
  transform-origin: center;
}

.human-meta {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 5px;
  color: rgba(223, 255, 243, .55);
  font: 700 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: right;
}

.human-meta b {
  color: #8fffd0;
}

.tool-edit {
  background: #ffd8c9;
}

.tool-edit .status-chip {
  color: #762816;
}

.edit-scene {
  display: grid;
  grid-template-rows: 1fr 68px;
  border: 1px solid var(--ink);
  background: #fff4ed;
  box-shadow: 8px 8px 0 rgba(118, 40, 22, .1);
}

.edit-image-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #0c0e0d;
}

.edit-generated-image {
  object-position: center 50%;
}

.edit-vignette {
  background: linear-gradient(90deg, rgba(8, 10, 9, .24), transparent 55%, rgba(8, 10, 9, .1));
}

.edit-image-stage > svg {
  position: relative;
  z-index: 4;
  width: 34px;
  height: 34px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(11, 16, 12, .45);
  color: #fff;
}

.edit-scan-sweep {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(113, 224, 255, .2), transparent);
  transform: skewX(-10deg);
}

.edit-timeline {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 8px 10px 7px 36px;
  border-top: 1px solid var(--ink);
  background: #161817;
}

.edit-ruler {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .42);
  font: 700 6px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.edit-track {
  display: flex;
  gap: 3px;
  min-width: 0;
}

.edit-track span {
  display: block;
  min-width: 16px;
  border: 1px solid rgba(255, 255, 255, .15);
}

.track-one span { height: 20px; background: #cdff70; }
.track-one span:nth-child(1) { flex: 1.1; }
.track-one span:nth-child(2) { flex: .7; background: #73d6ff; }
.track-one span:nth-child(3) { flex: 1.4; background: #f59b7d; }
.track-two span { height: 12px; background: #a996ff; }
.track-two span:first-child { flex: 1.6; }
.track-two span:last-child { flex: 1; background: #73d6ff; }

.edit-playhead {
  position: absolute;
  z-index: 4;
  top: 4px;
  bottom: 4px;
  left: 38px;
  width: 1px;
  background: #ff5f47;
  box-shadow: 0 0 7px rgba(255, 95, 71, .7);
}

.edit-playhead::before {
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  background: #ff5f47;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
}

.catalog-grid article > svg {
  width: 32px;
  height: 32px;
}

.catalog-grid h3 {
  margin: 0;
  font-size: 18px;
}

.catalog-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.catalog-price {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

.wallet-summary,
.partner-band {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.wallet-summary b {
  display: block;
  margin-top: 10px;
  font-size: 48px;
}

.wallet-summary span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.wallet-summary .primary-button {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.plan-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.active-plan {
  display: grid;
  min-height: 150px;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.active-plan h3 {
  margin: 7px 0;
  font-size: 20px;
}

.active-plan p,
.active-plan small,
.plan-price span {
  color: var(--muted);
  font-size: 12px;
}

.active-plan p {
  margin: 0;
}

.plan-price b,
.plan-price span {
  display: block;
  text-align: right;
}

.plan-price b {
  font-size: 26px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.asset-grid article {
  border-bottom: 1px solid var(--line);
}

.asset-preview {
  aspect-ratio: 1.2 / 1;
  border-radius: var(--radius);
  background-image: url("assets/hero-main-wide.png");
  background-repeat: no-repeat;
  background-size: 215%;
}

.crop-one {
  background-position: 4% 40%;
}

.crop-two {
  background-position: 52% 35%;
}

.crop-three {
  background-position: 96% 48%;
}

.asset-grid article > div:last-child {
  padding: 16px 2px 18px;
}

.asset-grid b,
.asset-grid span {
  display: block;
}

.asset-grid b {
  font-size: 14px;
}

.asset-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.partner-band > div:first-child {
  max-width: 430px;
}

.partner-band h3 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.partner-rates {
  display: flex;
  gap: 28px;
  margin: 16px 0 18px;
}

.partner-rates > span {
  min-width: 112px;
  padding-left: 14px;
  border-left: 2px solid rgba(194, 255, 50, .72);
}

.partner-rates small,
.partner-rates b {
  display: block;
}

.partner-rates b {
  margin-top: 6px;
  color: var(--lime);
  font-size: 22px;
}

.partner-band p {
  margin: 0;
  color: rgba(255,255,255,.58);
  line-height: 1.7;
}

.partner-metrics {
  display: grid;
  min-width: 54%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-metrics > span {
  padding: 8px 22px;
  border-left: 1px solid var(--line-dark);
}

.partner-metrics b {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.partner-table .task-row {
  grid-template-columns: minmax(210px, 1.2fr) .7fr .65fr .8fr .55fr;
}

.affiliate-amount {
  color: var(--ink);
  text-align: right;
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.invite-row small {
  color: var(--muted);
}

.invite-row code {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.affiliate-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin-top: 22px;
}

.affiliate-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.affiliate-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.affiliate-panel-head small,
.tier-rate-list small,
.upline-user small,
.downline-rate small,
.downline-tier small,
.topup-summary small,
.affiliate-dialog header small {
  color: var(--muted);
  font-size: 11px;
}

.affiliate-panel-head h2,
.affiliate-dialog header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.affiliate-panel-head > svg {
  width: 20px;
  height: 20px;
  color: #65705b;
}

.tier-rate-list > div {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(150px, 1fr) 92px 92px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.tier-rate-list span,
.upline-user div,
.downline-rate,
.downline-tier {
  min-width: 0;
}

.tier-rate-list span:first-child b,
.tier-rate-list span:first-child small,
.tier-rate-list span:not(:first-child) small,
.tier-rate-list span:not(:first-child) b,
.upline-user b,
.upline-user small,
.downline-rate b,
.downline-rate small,
.downline-tier b,
.downline-tier small {
  display: block;
}

.tier-rate-list span:first-child small,
.tier-rate-list span:not(:first-child) b,
.upline-user small,
.downline-rate small,
.downline-tier small {
  margin-top: 5px;
}

.tier-rate-list span:not(:first-child) b {
  font-size: 17px;
}

.upline-user {
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 16px;
}

.relation-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #eef1ea;
  color: #46503e;
}

.relation-avatar svg {
  width: 20px;
  height: 20px;
}

.upline-user b {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.affiliate-downline-title {
  align-items: flex-end;
}

.relation-filters {
  display: inline-flex;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.relation-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.relation-filters button:last-child {
  border-right: 0;
}

.relation-filters button.active {
  background: var(--ink);
  color: var(--white);
}

.relation-filters b {
  margin-left: 5px;
  font-size: 11px;
}

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

.downline-table .task-row {
  min-width: 1160px;
  grid-template-columns: minmax(190px, 1.2fr) 110px 105px minmax(180px, 1fr) 105px 90px 105px 42px;
}

.downline-table .task-row > span,
.downline-table .task-row > b {
  min-width: 0;
}

.relation-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf4dd;
  color: #41501f;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.relation-badge.level-2 {
  background: #e8eef6;
  color: #304b6a;
}

.relation-badge:not(.level-1):not(.level-2) {
  background: #f0f0f0;
  color: #666;
}

.downline-rate b {
  color: #2f4b10;
  font-size: 17px;
}

.downline-tier b,
.downline-tier small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dialog-open {
  overflow: hidden;
}

.affiliate-dialog {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.affiliate-dialog[hidden] {
  display: none;
}

.affiliate-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 16, 14, .58);
  cursor: default;
}

.affiliate-dialog > section {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.affiliate-dialog header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.announcement-dialog > section {
  width: min(720px, 100%);
}

.announcement-content {
  padding: 24px 26px 26px;
  color: #3f433d;
  font-size: 14px;
  line-height: 1.75;
}

.announcement-content > p {
  margin: 0;
}

.announcement-content > p + p,
.announcement-content > * + p {
  margin-top: 12px;
}

.announcement-lead {
  color: var(--ink);
  font-weight: 700;
}

.announcement-section {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.announcement-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
}

.announcement-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.announcement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.announcement-list svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: #47733d;
}

.announcement-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 15px 16px;
  border: 1px solid #dce7d8;
  border-radius: 7px;
  background: #f3f7f1;
}

.announcement-note > svg {
  width: 22px;
  height: 22px;
  color: #47733d;
}

.announcement-note b {
  color: var(--ink);
}

.announcement-note p {
  margin: 3px 0 0;
  color: #596057;
  font-size: 13px;
}

.announcement-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.announcement-signature {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.announcement-signature span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.topup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 22px;
  background: #f6f7f4;
}

.topup-summary > span {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.topup-summary > span + span {
  padding-left: 18px;
}

.topup-summary > span:last-child {
  border-right: 0;
}

.topup-summary b {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.topup-detail-table {
  padding: 0 22px 22px;
}

.topup-detail-row {
  display: grid;
  min-width: 650px;
  grid-template-columns: minmax(220px, 1.5fr) 120px 100px 160px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.topup-detail-head {
  min-height: 44px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.invite-link-label {
  margin-top: 16px;
}

.compact-form {
  align-items: end;
}

.settings-form {
  display: grid;
  max-width: 720px;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  margin-top: 28px;
}

.settings-form > label:not(.switch-row) {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-form input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--white);
}

.settings-form input:focus {
  border-color: var(--ink);
}

.switch-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.switch-row b,
.switch-row small {
  display: block;
}

.switch-row b {
  font-size: 13px;
}

.switch-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.switch-row input {
  width: 44px;
  height: 24px;
  accent-color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.toast.error {
  background: #9e3227;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 84px;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr) 440px;
  }

  .stage-copy h1 {
    font-size: 54px;
  }

  .workspace-brand > span:last-child,
  .nav-button span,
  .sidebar-user > span:last-child {
    display: none;
  }

  .workspace-brand {
    justify-content: center;
  }

  .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .sidebar-foot {
    grid-template-columns: 1fr;
    justify-items: center;
  }

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

@media (max-width: 900px) {
  .auth-header {
    height: 70px;
    padding: 0 20px;
  }

  .brand-product {
    display: none;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .brand-stage {
    min-height: 420px;
  }

  .stage-copy {
    bottom: 92px;
  }

  .stage-copy h1 {
    font-size: 44px;
  }

  .auth-panel {
    min-height: auto;
    padding: 30px 0;
  }

  .auth-status {
    margin-bottom: 40px;
  }

  .workspace-screen {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    width: 244px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .workspace-screen.menu-open .workspace-sidebar {
    transform: translateX(0);
  }

  .workspace-screen.menu-open .nav-scrim {
    position: fixed;
    z-index: 25;
    inset: 0 0 0 244px;
    display: block;
    border: 0;
    background: rgba(11, 16, 12, .48);
    backdrop-filter: blur(2px);
  }

  .workspace-brand {
    justify-content: flex-start;
  }

  .workspace-brand > span:last-child,
  .nav-button span,
  .sidebar-user > span:last-child {
    display: block;
  }

  .nav-button {
    grid-template-columns: 22px minmax(0, 1fr);
    justify-items: stretch;
    padding: 0 13px;
  }

  .sidebar-foot {
    grid-template-columns: minmax(0, 1fr) 40px;
    justify-items: stretch;
  }

  .workspace-main {
    grid-column: 1;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .workspace-topbar {
    padding: 0 18px;
  }

  .command-search {
    width: min(460px, 58vw);
  }

  .workspace-content {
    padding: 30px 20px 52px;
  }

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

  .account-band > div + div {
    border-left: 0;
  }

  .account-band > div:nth-child(even) {
    border-left: 1px solid var(--line-dark);
  }

  .account-band > div:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

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

  .catalog-grid article {
    border-right: 0;
  }

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

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

  .partner-metrics {
    width: 100%;
  }

  .partner-metrics > span:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .auth-header {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-link {
    font-size: 0;
  }

  .brand-stage {
    min-height: 390px;
  }

  .stage-copy {
    right: 20px;
    bottom: 84px;
    left: 20px;
  }

  .stage-copy h1 {
    font-size: 38px;
  }

  .stage-copy > p:last-child {
    font-size: 14px;
  }

  .capability-row {
    right: 20px;
    bottom: 24px;
    left: 20px;
    gap: 14px;
    overflow: hidden;
    white-space: nowrap;
  }

  .capability-row span:nth-child(n+4) {
    display: none;
  }

  .auth-panel-inner {
    width: min(100% - 32px, 420px);
  }

  .auth-heading h2 {
    font-size: 34px;
  }

  .auth-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .workspace-topbar {
    height: 68px;
    gap: 10px;
    padding: 0 12px;
  }

  .command-search {
    width: auto;
    flex: 1;
  }

  .command-search kbd,
  .sync-state {
    display: none;
  }

  .workspace-content {
    padding: 24px 14px 44px;
  }

  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title-row h1,
  .simple-page-head h1 {
    font-size: 29px;
  }

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

  .account-band > div {
    padding: 20px;
  }

  .account-band > div:nth-child(even) {
    border-left: 0;
  }

  .account-band > div + div {
    border-top: 1px solid var(--line-dark);
  }

  .usage-ring {
    margin: 0;
  }

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

  .tool-card {
    min-height: 230px;
  }

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

  .task-row {
    min-width: 740px;
  }

  .catalog-grid article {
    min-height: 190px;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .catalog-grid article > .primary-button,
  .catalog-grid article > .secondary-button {
    grid-column: 2;
  }

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

  .wallet-summary b {
    font-size: 38px;
  }

  .active-plan {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 20px 0;
  }

  .plan-price,
  .active-plan > button {
    grid-column: 2;
  }

  .plan-price b,
  .plan-price span {
    text-align: left;
  }

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

  .partner-metrics {
    grid-template-columns: 1fr;
  }

  .partner-rates {
    gap: 16px;
  }

  .partner-rates > span {
    min-width: 0;
    flex: 1;
  }

  .partner-metrics > span {
    padding: 14px 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

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

  .invite-row code {
    max-width: 290px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .tool-card {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .tool-showcase-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .tool-card {
    min-height: 390px;
    padding: 17px;
  }

  .tool-scene {
    min-height: 210px;
    margin-top: 15px;
  }

  .commerce-browser {
    right: 42px;
  }

  .tool-card-copy h3 {
    font-size: 23px;
  }

  .affiliate-panel {
    padding: 18px;
  }

  .tier-rate-list > div {
    grid-template-columns: minmax(112px, 1fr) 64px 64px;
    gap: 8px;
  }

  .topup-summary {
    grid-template-columns: 1fr;
  }

  .topup-summary > span,
  .topup-summary > span + span {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topup-summary > span:last-child {
    border-bottom: 0;
  }

  .affiliate-dialog {
    padding: 10px;
  }

  .affiliate-dialog > section {
    max-height: calc(100vh - 20px);
  }

  .announcement-content {
    padding: 20px 18px;
  }

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

  .announcement-footer .primary-button {
    justify-content: center;
    width: 100%;
  }

  .topup-detail-table {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .affiliate-overview-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-downline-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .relation-filters {
    width: 100%;
  }

  .relation-filters button {
    flex: 1;
  }
}
