:root {
  --navy: #0f2638;
  --navy-2: #16364f;
  --blue-grey: #e7edf2;
  --blue-grey-2: #d4dee7;
  --ink: #142331;
  --muted: #697989;
  --line: #c8d3dc;
  --card: #ffffff;
  --soft-card: #f8fafc;
  --red: #c9212f;
  --red-dark: #9f1924;
  --green: #1f7a55;
  --gold: #a66a12;
  --shadow: 0 18px 45px rgba(15, 38, 56, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--blue-grey);
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
}

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

body.is-locked,
body.is-loading:not(.is-member),
body.is-launching {
  min-height: 100vh;
  overflow: hidden;
}

body.is-admin-view .hero,
body.is-admin-view .auth-band,
body.is-admin-view .sidebar {
  display: none;
}

body.is-member .auth-band {
  display: none;
}

body.is-guest .auth-band {
  display: none;
}

body.is-admin-view .workspace-shell {
  grid-template-columns: 1fr;
  padding-top: 18px;
}

body.is-admin-view .workspace {
  width: 100%;
  max-width: none;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus {
  outline: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 38, 56, 0.22);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(320px, 42vw);
  object-fit: contain;
  filter: none;
}

.brand span {
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.primary-nav,
.session-tools,
.hero-actions,
.segmented-control {
  display: flex;
  gap: 8px;
  align-items: center;
}

.session-tools {
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-link,
.side-link,
.segmented-control button,
.icon-button {
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
}

.session-toggle-button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
}

.session-toggle-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.session-toggle-button:focus-visible,
.session-account:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.84), 0 0 0 6px rgba(31, 111, 216, 0.9);
}

.session-toggle-copy {
  display: grid;
  gap: 1px;
}

.session-toggle-copy strong,
.session-toggle-copy span {
  display: block;
  min-width: 0;
  line-height: 1.08;
}

.session-toggle-copy strong {
  font-size: 0.95rem;
}

.session-toggle-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.session-account {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  max-width: min(420px, 52vw);
  min-height: 58px;
  padding: 10px 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
}

.session-account:hover {
  background: rgba(255, 255, 255, 0.13);
}

.session-account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--blue-grey);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.session-account-avatar img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.session-account-avatar .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.session-account-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.session-account-copy strong,
.session-account-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-account-copy strong {
  font-size: 1rem;
  line-height: 1.05;
}

.session-account-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.12;
}

main {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: clamp(30px, 6vw, 68px) clamp(18px, 4vw, 48px) 22px;
  background:
    linear-gradient(115deg, rgba(15, 38, 56, 0.90), rgba(22, 54, 79, 0.76)),
    url("Mw-academy-home-page-background.png") center / cover;
  color: #ffffff;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.panel-kicker,
.product-meta,
.status-pill,
.metric span,
.portal-title span,
.billing-row span,
.account-panel span,
.table-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.7vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button {
  background: var(--red);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--red-dark);
}

.secondary-button {
  background: #ffffff;
  color: var(--navy);
}

.secondary-button:hover {
  border-color: var(--line);
  background: var(--soft-card);
}

.secondary-button.compact {
  min-height: 38px;
  padding: 0 14px;
}

.avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-grey);
}

.avatar.large {
  width: 96px;
  height: 96px;
}

.avatar.small {
  width: 54px;
  height: 54px;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7b93a7, #1f364a);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.account-panel strong,
.account-panel span {
  display: block;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 22px;
  padding: 22px clamp(18px, 4vw, 48px) 48px;
}

.auth-band {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(15, 38, 56, 0.54);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#launch-overlay-root:empty {
  display: none;
}

.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(15, 38, 56, 0.48), rgba(15, 38, 56, 0.68));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.launch-shell {
  display: grid;
  gap: 20px;
  width: min(100%, 720px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 28, 42, 0.98), rgba(22, 54, 79, 0.94));
  box-shadow: 0 36px 90px rgba(5, 20, 32, 0.44);
  color: #ffffff;
}

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

.launch-brand {
  display: grid;
  gap: 10px;
}

.launch-brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(280px, 56vw);
  object-fit: contain;
}

.launch-brand span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launch-product-mark {
  display: grid;
  place-items: center;
  width: clamp(150px, 20vw, 184px);
  height: 84px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.launch-product-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.launch-copy {
  display: grid;
  gap: 8px;
}

.launch-copy .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.launch-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  color: #ffffff;
}

.launch-phase {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.launch-copy .helper-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.74);
}

.launch-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.launch-progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9212f, #df4857, #f1c36d);
  animation: launch-progress-slide 1.25s ease-in-out infinite;
}

.launch-progress-bar.is-error {
  width: 100%;
  animation: none;
  background: linear-gradient(90deg, #c9212f, #9f1924);
}

.launch-step-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.launch-step {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.launch-step.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.launch-actions {
  justify-content: flex-start;
}

@keyframes launch-progress-slide {
  0% {
    transform: translateX(-16%);
  }
  50% {
    transform: translateX(115%);
  }
  100% {
    transform: translateX(-16%);
  }
}

.auth-shell {
  display: grid;
  gap: 20px;
  width: min(100%, 500px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(5, 20, 32, 0.34);
}

.auth-login-dialog {
  width: min(100%, 920px);
  gap: 24px;
}

.auth-shell-signed-in {
  background: linear-gradient(180deg, #ffffff, #f6f9fb);
}

.auth-inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  width: 100%;
}

.auth-dialog-header {
  padding-bottom: 2px;
}

.auth-dialog-header .eyebrow {
  margin-bottom: 8px;
  color: var(--red);
}

.auth-dialog-header h3 {
  margin-bottom: 9px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.auth-dialog-header .helper-text {
  max-width: 720px;
  font-size: 1rem;
}

.auth-login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  gap: 26px;
  align-items: start;
}

.auth-login-column {
  min-width: 0;
}

.auth-login-column--email {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.auth-section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-login-form {
  gap: 14px;
}

.activation-provider-stack {
  display: grid;
  gap: 10px;
}

.auth-login-form input {
  min-height: 48px;
  padding: 11px 14px;
}

.auth-login-form select {
  min-height: 48px;
  padding: 11px 14px;
}

.is-hidden-field {
  display: none !important;
}

.auth-submit,
.auth-secondary-button {
  width: 100%;
  min-height: 48px;
}

.auth-guest-button {
  width: 100%;
}

.auth-provider-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 54px;
  padding-left: 54px;
}

.auth-provider-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.auth-provider-icon--guest {
  width: 23px;
  height: 23px;
}

.auth-social-divider {
  margin: 18px 0;
}

.activation-provider-stack--choice {
  margin-top: 8px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-secondary-button {
  border-color: var(--line);
  background: var(--soft-card);
}

.auth-link-button {
  justify-self: center;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-button:hover {
  color: var(--navy);
}

.auth-link-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.activation-password-note {
  margin-top: -2px;
  text-align: center;
}

.auth-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 33, 47, 0.24);
  border-radius: 6px;
  background: rgba(201, 33, 47, 0.06);
  color: var(--red-dark);
  line-height: 1.4;
}

.auth-shell-loading {
  grid-template-columns: auto 1fr;
  width: auto;
  min-width: 260px;
  align-items: center;
  padding: 22px 26px;
  color: var(--navy);
  font-weight: 700;
}

.auth-loading-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue-grey-2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-actions {
  justify-content: flex-start;
}

.auth-inline-form label {
  min-width: 0;
}

body.is-loading:not(.is-member):not(.is-guest) .auth-band,
body.is-locked .auth-band {
  display: grid;
}

.helper-text {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar,
.panel,
.product-card,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 14px;
}

.portal-title {
  padding: 8px 10px 14px;
}

.portal-title strong {
  display: block;
  margin-top: 3px;
}

.side-link {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
}

.side-link:hover,
.side-link.is-active {
  background: var(--blue-grey);
}

.workspace {
  min-width: 0;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view-header {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.view-header .eyebrow {
  margin-bottom: 7px;
}

.feature-page {
  display: grid;
  gap: 18px;
}

.feature-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 38, 56, 0.96), rgba(22, 54, 79, 0.86)),
    var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.feature-hero::after {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: -18px;
  width: min(260px, 34vw);
  height: min(260px, 34vw);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.feature-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.feature-hero h2 {
  max-width: 820px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.feature-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: var(--shadow);
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-grid h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.feature-grid p {
  flex: 1 1 auto;
  color: var(--muted);
  line-height: 1.45;
}

.segmented-control {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.segmented-control button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.segmented-control button.is-active {
  background: var(--navy);
  color: #ffffff;
}

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

.product-grid > .empty-state {
  grid-column: 1 / -1;
}

.product-grid > .subscription-empty-state {
  grid-column: 1 / -1;
}

.product-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-grey-2);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media--logo-lockup img {
  width: calc(100% - 56px);
  height: calc(100% - 68px);
  object-fit: contain;
  object-position: center;
  transform: translateY(-4px);
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
}

.status-pill.owned {
  color: #ffffff;
  background: var(--green);
}

.status-pill.purchased {
  color: #ffffff;
  background: var(--green);
}

.status-pill.available {
  color: var(--navy);
  background: #ffffff;
}

.status-pill.placeholder {
  color: var(--navy);
  background: #f3d79c;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  margin-bottom: 8px;
}

.product-body p {
  color: #415466;
  line-height: 1.46;
}

.product-meta {
  margin-bottom: 8px;
}

.product-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.product-outcomes span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-grey);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
}

.product-price {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.product-price + .product-actions {
  margin-top: 14px;
}

.product-actions .secondary-button,
.product-actions .primary-button {
  width: 100%;
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

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

.panel {
  padding: 18px;
}

.action-list,
.mini-list,
.table-list {
  display: grid;
  gap: 10px;
}

.action-item,
.mini-item,
.table-row,
.billing-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft-card);
}

.action-item strong,
.mini-item strong,
.table-row strong {
  display: block;
}

.action-item p,
.mini-item p,
.table-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.billing-row + .billing-row {
  margin-top: 12px;
}

.account-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 620px;
}

.account-panel p {
  margin-bottom: 3px;
}

.account-editor-copy {
  display: grid;
  gap: 6px;
}

.account-editor-copy .helper-text {
  max-width: 620px;
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: min(100%, 1040px);
}

.account-settings-stack {
  display: grid;
  gap: 18px;
  width: min(100%, 1040px);
}

.rpa-context-panel {
  display: grid;
  gap: 14px;
  width: 100%;
}

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

.rpa-context-status {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rpa-context-guidance,
.rpa-context-message {
  margin: 0;
}

.rpa-context-review {
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: var(--soft-card);
}

.rpa-context-review ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.rpa-context-warning {
  margin: 10px 0 0;
  color: #7a4b00;
  font-weight: 700;
}

.profile-editor-fields {
  display: grid;
  gap: 14px;
}

.profile-editor-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-editor-preview::before,
.profile-editor-preview::after {
  content: none;
}

.profile-editor-preview .account-avatar-image,
.profile-editor-preview .account-avatar-fallback {
  width: min(72%, 192px);
  aspect-ratio: 1 / 1;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex: 0 0 auto;
}

.profile-editor-preview .account-avatar-fallback {
  font-size: 1.65rem;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft-card);
  color: var(--muted);
  text-align: center;
}

.subscription-empty-state {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
  box-shadow: 0 16px 34px rgba(15, 38, 56, 0.06);
}

.subscription-empty-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.subscription-empty-copy h3 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.02;
}

.subscription-empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.subscription-empty-kicker {
  color: #5c6f80;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subscription-empty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subscription-empty-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.subscription-empty-card span {
  color: #607384;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-empty-card strong {
  font-size: 1.08rem;
}

.subscription-empty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-message {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.admin-message.success {
  border-color: rgba(27, 120, 76, 0.28);
  background: #eef9f3;
  color: #12623d;
}

.admin-message.error {
  border-color: rgba(196, 48, 54, 0.32);
  background: #fff1f2;
  color: #9f1d25;
}

.admin-mfa-panel {
  display: grid;
  gap: 16px;
}

.admin-mfa-panel--compact {
  max-width: 760px;
  margin: 0 auto;
}

.admin-mfa-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-mfa-setup {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.admin-mfa-qr {
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.admin-mfa-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8fb;
  color: var(--navy);
  font-weight: 800;
}

.admin-mfa-form {
  max-width: 340px;
}

.admin-mfa-message {
  margin: 0;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-layout {
  display: grid;
  gap: 18px;
}

.admin-shell {
  display: grid;
  width: 100%;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 112px);
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
}

.admin-sidebar-brand {
  padding: 0 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar-brand .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.admin-sidebar-brand h2 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 1.25rem;
}

.admin-sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.admin-sidebar-nav button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  text-align: left;
}

.admin-sidebar-nav button:hover,
.admin-sidebar-nav button.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.admin-sidebar-nav button.is-active {
  box-shadow: inset 3px 0 0 var(--red);
}

.admin-nav-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.72rem;
}

.admin-nav-count.is-alert {
  background: var(--red);
}

.admin-workspace {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.admin-workspace-section[hidden],
.admin-org-tab-panel[hidden] {
  display: none !important;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 8px 2px 4px;
}

.admin-section-heading > .helper-text {
  max-width: 520px;
  text-align: right;
}

.admin-section-heading > :first-child {
  min-width: 0;
}

.admin-org-heading {
  align-items: center;
}

.admin-org-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1220px);
  gap: 16px;
  align-items: start;
  justify-content: start;
}

.admin-org-directory {
  position: sticky;
  top: 18px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.admin-org-search {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-org-search input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-org-directory-list {
  display: grid;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 8px;
}

.admin-org-directory-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  text-align: left;
}

.admin-org-directory-item:hover,
.admin-org-directory-item.is-active {
  background: var(--soft-card);
}

.admin-org-directory-item.is-active {
  box-shadow: inset 3px 0 0 var(--red);
}

.admin-org-directory-item > span:first-child {
  display: grid;
  min-width: 0;
}

.admin-org-directory-item strong,
.admin-org-directory-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-org-directory-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-org-seat-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-org-detail {
  min-width: 0;
  width: 100%;
}

.admin-org-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #ffffff;
}

.admin-org-detail-header > :first-child {
  min-width: 0;
}

.admin-org-detail-header h2 {
  margin: 3px 0 4px;
}

.admin-org-detail-header p:not(.eyebrow) {
  color: var(--muted);
}

.admin-org-header-stats {
  display: flex;
  gap: 10px;
}

.admin-org-header-stats span {
  display: grid;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--soft-card);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.admin-org-header-stats strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.admin-org-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #ffffff;
}

.admin-org-tabs button {
  padding: 14px 12px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.admin-org-tabs button.is-active {
  border-bottom-color: var(--red);
  color: var(--navy);
}

.admin-org-tab-panel {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-overview-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-overview-card > strong {
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
}

.admin-org-actions-card {
  display: grid;
  gap: 18px;
}

.admin-org-actions-card > .row-actions {
  justify-content: flex-start;
}

.admin-focused-form {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.admin-focused-form > * {
  min-width: 0;
}

.admin-org-panel-compact {
  width: 100%;
  justify-self: start;
}

.admin-org-welcome {
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.admin-drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(7, 24, 38, 0.46);
  backdrop-filter: blur(2px);
}

.admin-drawer {
  position: fixed;
  z-index: 81;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100vh;
  overflow: auto;
  padding: 28px;
  background: #ffffff;
  box-shadow: -20px 0 50px rgba(7, 24, 38, 0.18);
}

.admin-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 8px;
}

.admin-drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--soft-card);
  color: var(--navy);
  font-size: 1.5rem;
}

.admin-drawer-form {
  gap: 16px;
  margin-top: 24px;
}

.admin-domain-details {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-domain-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.admin-domain-details .auth-form {
  margin-top: 14px;
}

.admin-summary-grid,
.seat-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-cockpit-panel {
  background:
    linear-gradient(135deg, rgba(15, 38, 56, 0.05), rgba(201, 33, 47, 0.035)),
    #ffffff;
}

.admin-cockpit-panel .admin-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-summary-inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-summary-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
}

.admin-cockpit-panel .admin-summary-chip {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 92px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-summary-label,
.admin-summary-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-summary-value {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-cockpit-panel .admin-summary-value {
  font-size: 1.55rem;
}

.admin-summary-note {
  text-transform: none;
}

.admin-top-grid {
  align-items: start;
}

.admin-count-badge {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
}

.admin-org-stack {
  display: grid;
  gap: 18px;
}

.admin-org-create-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px 22px;
  align-items: start;
}

.admin-org-create-copy {
  max-width: 420px;
}

.admin-org-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.admin-org-create-form .span-2 {
  grid-column: 1 / span 2;
}

.admin-org-create-form .button-row {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-org-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-org-row .empty-state {
  min-height: 162px;
  display: grid;
  place-items: center;
}

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

.auth-shell .auth-form {
  margin-top: 0;
}

.auth-form label,
.admin-activity-filters label,
.seat-grid label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.admin-activity-filters input,
.admin-activity-filters select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.auth-form textarea,
.bulk-links-textarea {
  min-height: 118px;
  resize: vertical;
}

.activation-domain-hint {
  margin-top: -4px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 38, 56, 0.12);
  border-radius: 6px;
  background: #f7fafc;
  color: #415466;
  font-size: 0.86rem;
  line-height: 1.35;
}

.activation-result-card {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(15, 38, 56, 0.12);
  border-radius: 8px;
  background: #f8fbfd;
}

.activation-result-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.activation-result-head h4 {
  margin: 3px 0 0;
}

.activation-result-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.activation-result-counts span {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.activation-result-counts .sent {
  color: #0d6b44;
}

.activation-result-counts .failed {
  color: var(--red);
}

.activation-result-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activation-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 38, 56, 0.1);
  border-left: 4px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.activation-result-row.sent {
  border-left-color: #28a66a;
}

.activation-result-row.failed {
  border-left-color: var(--red);
}

.activation-result-row.skipped {
  border-left-color: #9a7b2f;
}

.activation-result-email {
  overflow: hidden;
  color: var(--navy);
  font-weight: 800;
  text-overflow: ellipsis;
}

.activation-result-status {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activation-result-message {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.button-row,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-action,
.danger-button,
.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
}

.danger-button,
.danger-text-button {
  border-color: rgba(201, 33, 47, 0.28);
  color: var(--red);
}

.danger-text-button {
  background: transparent;
}

.admin-items,
.org-users,
.admin-bulk-links-panel,
.admin-bulk-links-output,
.table-list {
  display: grid;
  gap: 12px;
}

.unassigned-signins-panel {
  border-color: rgba(201, 33, 47, 0.22);
  background: #ffffff;
}

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

.unassigned-signin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
}

.unassigned-signin-main {
  display: grid;
  gap: 8px;
}

.unassigned-signin-main h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.unassigned-signin-main p,
.unassigned-suggestion p,
.unassigned-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.unassigned-suggestion {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(15, 38, 56, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.unassigned-suggestion strong {
  color: var(--navy);
  font-size: 1rem;
}

.unassigned-actions {
  align-items: center;
}

.unassigned-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.unassigned-warning {
  padding: 9px 10px;
  border: 1px solid rgba(201, 33, 47, 0.18);
  border-radius: 6px;
  background: rgba(201, 33, 47, 0.06);
  color: #8d1e27;
}

.provider-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.provider-mini-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  object-fit: contain;
}

.provider-mini-icon--text {
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
}

.admin-product-hero {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 38, 56, 0.04), rgba(201, 33, 47, 0.04)),
    #ffffff;
  margin-bottom: 16px;
}

.admin-product-hero h3 {
  margin-bottom: 8px;
}

.admin-product-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.admin-product-stats div {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
}

.admin-product-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
}

.admin-selector {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}

.admin-selector select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.selected-org-card {
  margin-top: 12px;
}

.entitlement-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(120px, 0.6fr)) auto;
}

.admin-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
}

.product-admin-card {
  padding: 20px;
  background: #ffffff;
}

.product-admin-card-top {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-admin-card .product-admin-card-top {
  grid-template-columns: 140px minmax(0, 1fr);
}

.product-admin-card .product-admin-thumb {
  width: 140px;
  height: 140px;
}

.product-admin-card .product-admin-thumb,
.product-admin-card .product-admin-thumb img {
  background: transparent;
}

.product-admin-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.product-editor-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.98)),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.product-admin-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.product-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: transparent;
}

.product-admin-main {
  display: grid;
  gap: 16px;
}

.product-admin-headline {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.product-admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.product-admin-meta,
.product-admin-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-admin-stats--list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-admin-stats div,
.product-admin-outcomes span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
}

.product-admin-label,
.product-admin-stats strong {
  display: block;
}

.product-admin-stats strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-admin-stats--list strong {
  font-size: 0.94rem;
}

.product-admin-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-admin-outcomes span {
  border-radius: 999px;
  padding: 9px 12px;
}

.product-admin-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.product-admin-links span {
  overflow-wrap: anywhere;
}

.product-admin-links strong {
  color: var(--navy);
}

.product-editor-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: min(100%, 1040px);
}

.product-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 38, 56, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-editor-fields {
  display: grid;
  gap: 14px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.product-form-grid .span-2 {
  grid-column: 1 / span 2;
}

.product-form-grid .span-3 {
  grid-column: 1 / -1;
}

.product-editor-actions {
  align-items: center;
  justify-content: space-between;
}

.product-editor-actions .helper-text {
  margin: 0;
}

.product-edit-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-edit-banner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.product-edit-banner h4 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-edit-note {
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
  color: #415466;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-product-list-head {
  margin-bottom: 14px;
}

.admin-accordion-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.admin-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  appearance: none;
  text-align: left;
  background: transparent;
  color: var(--ink);
}

.admin-accordion-trigger h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.admin-accordion-trigger .eyebrow {
  margin-bottom: 0;
}

.admin-accordion-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-accordion-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-card);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.admin-accordion-body {
  padding: 0 18px 18px;
}

.admin-accordion .admin-product-hero {
  margin-top: 6px;
}

.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.product-form-grid textarea {
  min-height: 96px;
}

.product-form-grid label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.product-form-grid > input[type="hidden"] {
  display: none;
}

.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea,
.admin-product-hero input,
.admin-product-hero select {
  min-height: 44px;
  padding: 10px 12px;
}

.product-form-grid input[type="file"],
.product-edit-form input[type="file"] {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.product-form-grid input[type="file"]::file-selector-button,
.product-edit-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}

.product-form-grid input[type="file"]::file-selector-button:hover,
.product-edit-form input[type="file"]::file-selector-button:hover {
  background: var(--soft-card);
}

.product-form-grid input[type="file"]::-webkit-file-upload-button,
.product-edit-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}

.product-form-grid textarea {
  padding-top: 11px;
}

.admin-item + .admin-item {
  margin-top: 12px;
}

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

.admin-item-title {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.admin-item-copy {
  margin-bottom: 6px;
  color: #415466;
}

.org-users-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.org-users-title {
  margin-bottom: 0;
  font-size: 1rem;
}

.org-users-count {
  min-width: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.session-meta {
  display: grid;
  gap: 2px;
}

.session-meta strong {
  color: var(--navy);
}

.session-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.user-expand-cell {
  width: 42px;
}

.user-expand-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.user-expand-button:hover,
.user-summary-row.is-expanded .user-expand-button {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.user-account-status {
  display: grid;
  gap: 2px;
}

.user-account-status span {
  color: var(--muted);
  font-size: 0.82rem;
}

.user-summary-row.is-expanded td {
  background: #f7fafc;
}

.user-product-detail-row > td {
  padding: 0 8px 16px 50px;
  background: #f7fafc;
}

.user-product-access {
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: #ffffff;
}

.user-product-access-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.user-product-access-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-access-table {
  min-width: 560px;
}

.product-access-table th,
.product-access-table td {
  padding: 9px 8px;
}

.access-status {
  font-weight: 800;
}

.access-status--active {
  color: #08784f;
}

.access-status--revoked {
  color: var(--red);
}

.access-status--invited {
  color: #7a5b00;
}

.access-status--blocked {
  color: var(--muted);
}

.row-actions-cell {
  white-space: nowrap;
}

.admin-activity-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
}

.billing-stack {
  display: grid;
  gap: 12px;
}

.billing-stack strong,
.billing-stack span {
  display: block;
}

@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }

  .admin-org-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

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

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

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

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

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

  .admin-cockpit-panel .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-shell,
  .auth-inline-form {
    grid-template-columns: 1fr;
  }

  .auth-login-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .auth-login-column--email {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .product-admin-stats--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-empty-grid {
    grid-template-columns: 1fr;
  }

  .admin-org-create-panel {
    grid-template-columns: 1fr;
  }

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

  .admin-org-row > .panel:last-child {
    grid-column: 1 / -1;
  }
}

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

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

  .admin-sidebar-brand {
    padding-bottom: 12px;
  }

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

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

  .admin-org-directory {
    position: static;
  }

  .admin-org-directory-list {
    max-height: 260px;
  }

  .admin-section-heading,
  .admin-org-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-heading > .helper-text {
    text-align: left;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
  }

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

  .product-admin-card-top,
  .product-editor-grid {
    grid-template-columns: 1fr;
  }

  .auth-band {
    min-height: auto;
    padding: 16px;
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .portal-title {
    grid-column: 1 / -1;
  }

  .side-link {
    text-align: center;
  }

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

  .product-form-grid .span-2 {
    grid-column: auto;
  }

  .product-form-grid .span-3 {
    grid-column: auto;
  }

  .product-edit-banner {
    flex-direction: column;
  }

  .product-edit-note {
    max-width: none;
    width: 100%;
  }

  .profile-editor-grid {
    grid-template-columns: 1fr;
  }

  .subscription-empty-state {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 13px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .session-account {
    max-width: 58vw;
    min-height: 54px;
    padding: 8px 12px;
  }

  .session-toggle-button {
    min-height: 54px;
    padding: 8px 12px;
  }

  .session-toggle-copy span {
    display: none;
  }

  .subscription-empty-actions {
    flex-direction: column;
  }

  .subscription-empty-actions .primary-button,
  .subscription-empty-actions .secondary-button {
    width: 100%;
  }

  .session-account-copy span {
    display: none;
  }

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

  .feature-hero {
    padding: 24px 18px;
  }

  .hero {
    padding: 28px 16px 18px;
  }

  .hero-actions,
  .view-header,
  .product-actions,
  .split-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .view-header {
    display: grid;
    align-items: start;
  }

  .workspace-shell {
    padding: 16px 16px 34px;
  }

  .auth-shell {
    padding: 24px 20px;
  }

  .auth-login-dialog {
    width: min(100%, 560px);
  }

  .user-product-detail-row > td {
    padding-right: 4px;
    padding-bottom: 12px;
    padding-left: 4px;
  }

  .user-product-access {
    padding: 12px;
  }

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

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

  .admin-summary-grid,
  .seat-grid,
  .checkbox-grid,
  .admin-activity-filters {
    grid-template-columns: 1fr;
  }

  .admin-cockpit-panel .admin-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-org-row {
    grid-template-columns: 1fr;
  }

  .admin-org-create-form {
    grid-template-columns: 1fr;
  }

  .admin-org-create-form .span-2,
  .admin-org-create-form .button-row {
    grid-column: auto;
  }

  .action-item,
  .mini-item,
  .table-row,
  .billing-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
