:root {
  color-scheme: light;
  font-family: "Manrope", sans-serif;
  --page-bg: #f5f7fa;
  --panel-bg: #ffffff;
  --surface: #eef2f6;
  --surface-strong: #dce4ed;
  --line: #d8e0ea;
  --line-strong: #bec9d6;
  --ink: #172033;
  --muted: #5c6878;
  --muted-soft: #8793a3;
  --accent: #22304a;
  --accent-soft: #3a4964;
  --focus: rgba(205, 55, 45, 0.18);
  --shadow-lg: 0 24px 60px rgba(23, 32, 51, 0.09);
  --shadow-md: 0 14px 34px rgba(23, 32, 51, 0.065);
  --success-bg: #edf5ed;
  --success-text: #376246;
  --error-bg: #fff1ef;
  --error-text: #cd372d;
  --warm: #eef2f6;
  --warm-deep: #d4dde8;
  --blue: #e8eef5;
  --mint: #e1ede2;
  --ink-panel: #22304a;
  --brand-red: #cd372d;
  --brand-blue: #5e7594;
  --brand-slate: #56657a;
  --brand-tile: #eef2f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.split-auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.split-auth {
  width: 100%;
  flex: 1 0 auto;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, 0.98fr);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #f0f2f5;
  border-right: 1px solid rgba(196, 207, 221, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-showcase__image-shell {
  width: 100%;
  height: 100%;
}

.auth-showcase__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-showcase-home-link {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.10);
  backdrop-filter: blur(12px);
}

.auth-showcase-home-link::before,
.auth-mobile-home-link a::before {
  content: "<";
  margin-right: 8px;
  font-weight: 800;
}

.auth-showcase-home-link:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.showcase-layer {
  position: relative;
  min-height: calc(100vh - 76px);
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.showcase-tag__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #54c97d;
}

.showcase-toolbar {
  position: absolute;
  left: 8%;
  top: 19%;
  width: clamp(340px, 58vw, 520px);
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 24px;
  background: var(--ink-panel);
  color: #edf1f5;
  box-shadow: 0 18px 42px rgba(31, 34, 71, 0.14);
}

.showcase-toolbar__pill {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.showcase-toolbar__pill--active {
  background: rgba(255, 255, 255, 0.14);
}

.showcase-canvas {
  position: absolute;
  left: 18%;
  top: 29%;
  width: clamp(380px, 54vw, 560px);
  min-height: 500px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 218, 208, 0.85);
  box-shadow: var(--shadow-lg);
}

.showcase-canvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.showcase-status strong {
  color: var(--ink-panel);
  font-size: 20px;
  font-weight: 800;
}

.showcase-status__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #67d993;
}

.showcase-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 28px 26px;
  background: #fff;
}

.showcase-card h2 {
  margin: 0 0 26px;
  color: var(--ink-panel);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.showcase-card__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.showcase-chip {
  flex: 1;
  min-height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.showcase-chip--primary {
  background: #68cdb7;
  color: #fff;
}

.showcase-chip--secondary {
  border: 2px solid #6cdfc7;
  background: #fff;
  color: #58baaa;
}

.showcase-lines {
  display: grid;
  gap: 16px;
}

.showcase-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #eceff3;
}

.showcase-lines span:nth-child(1) {
  width: 84%;
}

.showcase-lines span:nth-child(2) {
  width: 72%;
}

.showcase-lines span:nth-child(3) {
  width: 65%;
}

.showcase-profile {
  position: absolute;
  right: 14%;
  top: 21%;
  width: clamp(180px, 26vw, 260px);
  aspect-ratio: 0.92;
  border-radius: 28px;
  background: #e9edf3;
  box-shadow: var(--shadow-lg);
}

.showcase-recorder {
  position: absolute;
  left: 8%;
  bottom: 7%;
  width: clamp(320px, 43vw, 460px);
  padding: 20px 20px 18px;
  border-radius: 24px;
  background: #2f3848;
  color: #fff;
  box-shadow: 0 18px 44px rgba(27, 29, 68, 0.16);
}

.showcase-recorder__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.showcase-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.showcase-logo span {
  color: #6acbff;
}

.showcase-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.showcase-controls__item {
  min-height: 118px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #d9dcff;
}

.showcase-controls__item--active {
  background: rgba(236, 79, 152, 0.18);
  border-color: rgba(236, 79, 152, 0.34);
}

.showcase-settings {
  display: grid;
  gap: 12px;
}

.showcase-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f2f3ff;
  font-size: 15px;
}

.showcase-meter {
  display: inline-flex;
  gap: 4px;
}

.showcase-meter span {
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
}

.showcase-meter span:nth-child(-n+5) {
  background: #8dd66b;
}

.showcase-meter span:nth-child(6),
.showcase-meter span:nth-child(7) {
  background: #cfdb63;
}

.showcase-note {
  position: absolute;
  right: 18%;
  bottom: 26%;
  min-width: 118px;
  padding: 20px 18px;
  border-radius: 24px;
  background: #f5c84d;
  box-shadow: 0 10px 24px rgba(198, 168, 80, 0.14);
  color: #392f14;
  text-align: center;
  font-weight: 800;
  line-height: 1.05;
}

.showcase-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.9);
}

.auth-form-side__inner {
  width: 100%;
  max-width: 540px;
  padding: max(48px, env(safe-area-inset-top)) 46px max(48px, env(safe-area-inset-bottom));
  margin: auto 0;
}

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

.auth-toolbar .auth-brand {
  margin-bottom: 0;
}

.locale-switcher {
  position: relative;
  display: inline-block;
}

.locale-switcher__trigger {
  min-width: 72px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.locale-switcher__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.locale-switcher__trigger[aria-expanded="true"] .locale-switcher__chevron {
  transform: translateY(2px) rotate(225deg);
}

.locale-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 174px;
  max-height: min(70vh, 380px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

.locale-switcher__button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.locale-switcher__button.is-active {
  background: var(--accent);
  color: #fff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 34px;
  text-decoration: none;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.auth-brand span {
  font-weight: 500;
}

.auth-brand--portal {
  gap: 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.auth-brand--portal::before,
.dashboard-brand::before,
.site-footer__logo::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  background: url("/favicon.svg") center / contain no-repeat;
}

.auth-brand--portal::before {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(34, 48, 74, 0.12);
}

.auth-brand--portal span {
  font-weight: 700;
}

.auth-panel {
  width: 100%;
}

.auth-panel__inner {
  width: 100%;
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.auth-panel h1.auth-title--compact {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-panel h1.auth-title--compact + .auth-copy {
  margin-top: 24px;
}

.auth-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-copy--top {
  margin-top: 0;
}

.auth-form {
  margin-top: 28px;
}

.field-block {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 243, 238, 0.55);
  color: var(--ink);
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-input::placeholder {
  color: #a59f97;
}

.auth-input:focus {
  background: #fff;
  border-color: #c9beb0;
  box-shadow: 0 0 0 4px var(--focus);
}

.auth-input--locked {
  background: #f3efe8;
  color: #5e5851;
}

.auth-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f786f 50%),
    linear-gradient(135deg, #7f786f 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.step-note {
  margin: -4px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.step-note strong {
  color: var(--ink);
}

.field-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.field-note--emphasis {
  color: var(--ink);
  font-weight: 700;
}

.field-error {
  margin: 10px 0 0;
  color: var(--error-text);
  font-size: 13px;
  font-weight: 700;
  white-space: pre-line;
}

.primary-auth-button,
.provider-button,
.subtle-button {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.subtle-button--compact {
  margin-top: 12px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
}

.license-email-verification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.license-email-verification > .subtle-button {
  width: auto;
  min-width: 120px;
  min-height: 38px;
  padding: 0 16px;
  margin-top: 0;
  border-radius: 12px;
}

.license-email-verification__hint {
  margin-top: 0;
  flex: 1 1 240px;
}

.license-email-verification__code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  flex: 1 0 100%;
  margin-top: 2px;
}

.license-email-verification__code .subtle-button {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  padding: 0 16px;
}

.license-email-verification__input {
  min-height: 44px;
  border-radius: 14px;
  letter-spacing: 0.18em;
  text-align: center;
}

.license-email-verification__status[data-tone="success"] {
  flex: 1 0 100%;
  color: #2d6d4b;
  font-weight: 700;
}

.license-email-verification__status[data-tone="error"] {
  flex: 1 0 100%;
  color: var(--error-text);
  font-weight: 700;
}

.signup-email-verification {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.signup-email-verification > .subtle-button {
  margin-top: 0;
}

.signup-email-verification__code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-email-verification__code .subtle-button {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  padding: 0 16px;
}

.signup-email-verification__input {
  min-height: 44px;
  border-radius: 14px;
  letter-spacing: 0.18em;
  text-align: center;
}

.signup-email-verification__status {
  margin-top: 0;
}

.signup-email-verification__status[data-tone="success"] {
  color: #2d6d4b;
  font-weight: 700;
}

.signup-email-verification__status[data-tone="error"] {
  color: var(--error-text);
  font-weight: 700;
}

.signup-code-copy {
  margin: 0 0 12px;
  color: var(--muted);
}

.signup-verification-step .auth-divider,
.signup-verification-step .provider-stack,
.signup-verification-step .signup-agreement,
.signup-password-step .auth-divider,
.signup-password-step .provider-stack,
.signup-password-step .signup-agreement {
  display: none;
}

.signup-code-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.signup-code-digit {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 600 20px/1 Manrope, sans-serif;
  text-align: center;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.signup-code-digit:focus {
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--focus);
}

.signup-code-resend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signup-code-resend__button {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 640px) {
  .signup-code-digits {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .signup-code-digit {
    height: 48px;
    font-size: 18px;
  }

  .signup-code-resend {
    align-items: flex-start;
    flex-direction: column;
  }
}

.primary-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin-top: 10px;
  border: 0;
  background: #3f4d60;
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.11);
}

.primary-auth-button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.primary-auth-button.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 999px;
  animation: auth-button-spin 0.72s linear infinite;
}

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

.primary-auth-button:hover:not(:disabled),
.provider-button:hover:not(:disabled),
.subtle-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.auth-divider {
  margin: 22px 0;
  position: relative;
  text-align: center;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 14px;
  background: #fff;
}

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

.provider-button {
  border: 1px solid #747775;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-weight: 500;
}

.provider-button--google {
  color: #1f1f1f;
}

.provider-button--apple {
  color: #111;
}

.provider-button--microsoft {
  color: #1f1f1f;
}

.provider-button:disabled {
  cursor: not-allowed;
  color: var(--muted-soft);
  background: #f3f6fa;
}

.provider-button__icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.provider-button__mark {
  display: block;
  width: 100%;
  height: 100%;
}

.provider-button__label {
  display: inline;
}

.provider-button__icon--google {
  width: 18px;
  height: 18px;
}

.provider-button__icon--apple {
  color: #111;
  width: 21px;
  height: 25px;
}

.provider-button__icon--microsoft {
  width: 21px;
  height: 21px;
}

.auth-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.auth-links p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-links a {
  font-weight: 800;
  text-decoration: underline;
}

.auth-home-link {
  margin: 0;
}

.auth-home-link a {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-home-link a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.auth-mobile-home-link {
  display: none;
  margin: 28px 0 0;
  text-align: center;
}

.auth-mobile-home-link a {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-mobile-home-link a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.signup-agreement {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.text-link--small {
  font-size: 13px;
  white-space: nowrap;
}

.subtle-button {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.status-pill {
  margin-top: 18px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill[data-state="in"] {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pill[data-state="out"] {
  display: none;
}

.result-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
}

.result-box[data-tone="success"] {
  background: var(--success-bg);
  color: var(--success-text);
}

.result-box[data-tone="error"] {
  background: var(--error-bg);
  color: var(--error-text);
}

.auth-panel__inner--action {
  max-width: 560px;
}

.action-status-card {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.action-status-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--surface);
  color: var(--muted);
}

.action-status-card__body {
  min-width: 0;
}

.action-status-card__body strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.action-status-card__body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.action-status-card[data-state="success"] {
  border-color: rgba(36, 90, 54, 0.16);
  background: var(--success-bg);
}

.action-status-card[data-state="success"] .action-status-card__icon {
  background: rgba(36, 90, 54, 0.14);
  color: var(--success-text);
}

.action-status-card[data-state="error"] {
  border-color: rgba(194, 77, 55, 0.16);
  background: var(--error-bg);
}

.action-status-card[data-state="error"] .action-status-card__icon {
  background: rgba(194, 77, 55, 0.12);
  color: var(--error-text);
}

.action-reset-form {
  margin-top: 24px;
}

.action-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.action-link-button {
  width: auto;
  min-width: 0;
  padding: 0 28px;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}

.action-secondary-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.action-secondary-link:hover {
  color: var(--ink);
}

.dashboard-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--page-bg);
  overflow-x: hidden;
}

.dashboard-page::before {
  display: none;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.8fr);
  gap: 42px;
}

.site-footer__brand {
  max-width: 360px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-footer__logo::before {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.site-footer__brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer__mail {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer__download {
  display: table;
  margin-top: 16px;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.055);
}

.site-footer__download + .site-footer__download {
  margin-top: 8px;
}

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

.site-footer__group h2 {
  margin: 0 0 12px;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__group a {
  display: block;
  margin-top: 9px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer__logo:hover,
.site-footer__mail:hover,
.site-footer__download:hover,
.site-footer__group a:hover,
.site-footer__legal a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(216, 224, 234, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer__legal a {
  text-decoration: none;
}

.dashboard-topbar {
  position: relative;
  top: auto;
  z-index: 35;
  min-height: 68px;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(216, 224, 234, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.055);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.dashboard-brand::before {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(34, 48, 74, 0.12);
}

.dashboard-topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-navlink {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-navlink:hover {
  border-color: var(--line-strong);
  color: var(--accent);
  transform: translateY(-1px);
}

.account-menu {
  position: relative;
}

.account-button {
  min-height: 54px;
  padding: 8px 13px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.account-button:hover {
  border-color: var(--line-strong);
  background: #fbfcfe;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
  transform: translateY(-1px);
}

.account-button__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.account-button__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.account-button__meta strong {
  font-size: 14px;
  font-weight: 800;
}

.account-button__meta span {
  max-width: 200px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button__caret {
  color: var(--muted-soft);
  font-size: 12px;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

.account-dropdown__summary {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-dropdown__summary strong {
  font-size: 14px;
  font-weight: 800;
}

.account-dropdown__summary span {
  color: var(--muted);
  font-size: 13px;
}

.menu-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-button:hover {
  background: var(--surface);
}

.menu-button--danger {
  color: var(--error-text);
}

.dashboard-hero {
  position: relative;
  margin-top: 18px;
  min-height: 150px;
  padding: 30px 188px 30px 36px;
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 26px;
  background-color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 6px;
  border-radius: 0 999px 999px 0;
  background: var(--brand-red);
}

.dashboard-hero::after {
  display: none;
}

.dashboard-hero__art {
  position: absolute;
  right: 58px;
  top: 50%;
  z-index: 0;
  width: min(16%, 150px);
  min-width: 130px;
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-hero__art img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(23, 32, 51, 0.12));
}

.dashboard-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  color: var(--accent-soft);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dashboard-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.54fr);
  gap: 24px;
  align-items: start;
}

.dashboard-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfcfe;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: transparent;
}

.dashboard-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-card--primary {
  min-height: 100%;
}

.dashboard-grid > .dashboard-card {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.dashboard-grid > .dashboard-card .dashboard-card__title {
  font-size: 24px;
}

.dashboard-grid > .dashboard-card .dashboard-card__copy {
  margin-top: 14px;
  font-size: 14px;
}

.dashboard-license-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dashboard-license-panel__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-license-toolbar {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px dashed #bdc8d6;
  border-radius: 20px;
  background: #fbfcfe;
}

.dashboard-license-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-refresh-button {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.dashboard-refresh-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.055);
  transform: translateY(-1px);
}

.dashboard-refresh-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.dashboard-refresh-button--empty {
  margin-top: 18px;
  min-width: 108px;
}

.dashboard-add-license-button {
  min-height: 42px;
  padding: 0 22px;
  border-color: var(--line-strong);
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.055);
}

.dashboard-add-license-button:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.dashboard-buy-license-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.dashboard-buy-license-button:hover:not(:disabled) {
  border-color: #172033;
  background: #172033;
  color: #fff;
}

.dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-card__action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  margin-left: auto;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.dashboard-card__action:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: #f8fafc;
}

.dashboard-card__eyebrow {
  margin: 0 0 10px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dashboard-card__copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-status-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-status-pill[data-state="ready"] {
  background: var(--success-bg);
  color: var(--success-text);
}

.dashboard-status-pill[data-state="error"] {
  background: var(--error-bg);
  color: var(--error-text);
}

.dashboard-license-empty {
  min-height: 340px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dashboard-license-empty[data-state="error"] {
  border-color: rgba(167, 46, 46, 0.18);
  background: #fff8f8;
}

.dashboard-license-empty__title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.dashboard-license-empty[data-state="error"] .dashboard-license-empty__title {
  color: var(--error-text);
}

.dashboard-license-empty__copy {
  margin: 12px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-license-groups {
  display: grid;
  gap: 20px;
}

.dashboard-section-eyebrow,
.dashboard-license-groups__eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  min-height: 24px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-red);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.dashboard-license-group {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dashboard-license-group::before {
  display: none;
}

.dashboard-license-group::after {
  display: none;
}

.dashboard-license-group > * {
  position: relative;
  z-index: 1;
}

.dashboard-license-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-license-group__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.dashboard-license-group__title {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.dashboard-license-count {
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-license-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.dashboard-license-list__empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.dashboard-license-item {
  position: relative;
  padding: 18px 18px 18px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dashboard-license-item--expired {
  border-color: rgba(205, 55, 45, 0.28);
}

.dashboard-license-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 999px;
  background: var(--brand-red);
  opacity: 0.82;
}

.dashboard-license-item:hover {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.065);
  transform: translateY(-1px);
}

.dashboard-license-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-license-item__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-license-item__title-text {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-license-item__product {
  width: 24px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 8px rgba(23, 32, 51, 0.12));
}

.dashboard-license-item__name {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.dashboard-license-remove-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(205, 55, 45, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--error-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.dashboard-license-remove-button:hover {
  border-color: rgba(205, 55, 45, 0.32);
  background: var(--error-bg);
  transform: translateY(-1px);
}

.dashboard-license-remove-button:disabled {
  cursor: default;
  opacity: 0.5;
  transform: none;
}

.dashboard-license-audience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
}

.dashboard-license-audience-badge--business {
  border-color: rgba(112, 74, 190, 0.22);
  background: #f4efff;
  color: #704abe;
}

.dashboard-license-market-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(42, 94, 178, 0.22);
  border-radius: 999px;
  background: #eef5ff;
  color: #2a5eb2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
}

.dashboard-license-item__meta {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(216, 224, 234, 0.72);
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
}

.dashboard-license-item__field {
  min-width: 0;
}

.dashboard-license-item__field dt {
  margin: 0;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-license-item__field dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  word-break: break-word;
}

.dashboard-license-item__field--copyable dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-license-item__field--with-badge dd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-license-item__value {
  min-width: 0;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-license-item__field--serial .dashboard-license-item__value {
  color: #475569;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.dashboard-license-item__field--count dd {
  display: flex;
  justify-content: flex-end;
}

.dashboard-license-item__value--count {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-license-item__value--masked {
  margin: 0 -3px;
  padding: 0 3px;
  cursor: pointer;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  transition: color 140ms ease, background 140ms ease;
}

.dashboard-license-item__value--masked[data-revealed="false"] {
  color: #64748b;
  letter-spacing: 0;
}

.dashboard-license-item__value--masked:hover,
.dashboard-license-item__value--masked:focus-visible {
  background: rgba(34, 48, 74, 0.08);
  color: var(--ink);
  outline: none;
}

.dashboard-license-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-license-badge--expired {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(205, 55, 45, 0.16);
  font-weight: 900;
}

.dashboard-license-badge--renew {
  background: rgba(214, 238, 226, 0.9);
  color: #245a36;
  border: 1px solid rgba(36, 90, 54, 0.16);
  white-space: nowrap;
}

.dashboard-license-badge--renew-inactive {
  background: #ececec;
  color: #747474;
  border-color: rgba(91, 91, 91, 0.18);
}

.dashboard-license-auto-renew-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.dashboard-license-auto-renew-button:hover {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.dashboard-license-auto-renew-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.dashboard-license-auto-renew-button__icon {
  width: 14px;
  height: 14px;
  display: block;
}

.dashboard-license-item__meta > .dashboard-license-item__field:last-child {
  margin-left: auto;
  text-align: right;
  flex: 0 0 auto;
}

.dashboard-license-item__meta > .dashboard-license-item__field:first-child {
  flex: 1 1 0;
}

.dashboard-license-item__meta > .dashboard-license-item__field:nth-child(2) {
  flex: 0 0 320px;
}

.dashboard-license-item__extra {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(216, 224, 234, 0.72);
  border-radius: 14px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-license-item__extra .dashboard-license-item__field dd {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-license-item__extra .dashboard-license-item__field {
  flex: 0 0 auto;
}

.dashboard-license-item__field--status dd {
  color: var(--accent);
  font-weight: 800;
}

.dashboard-license-item__value--status {
  color: var(--accent);
  font-weight: 900;
}

.dashboard-license-item__actions {
  margin-left: auto;
  padding-top: 0;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.dashboard-license-item > .dashboard-license-item__actions {
  margin-top: 12px;
}

.dashboard-license-item__extra .dashboard-license-item__actions + .dashboard-license-item__actions {
  margin-left: 0;
}

.dashboard-license-item__actions--standalone {
  margin-left: 0;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(216, 224, 234, 0.72);
  border-radius: 14px;
  background: #fbfcfe;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-license-upgrade-message {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.dashboard-license-renew-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.dashboard-license-renew-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.16);
}

.dashboard-license-upgrade-button {
  background: var(--brand-red);
}

.dashboard-license-download-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--accent);
}

.dashboard-license-download-button:hover {
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.1);
}

.dashboard-copy-button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease, color 140ms ease, border-color 140ms ease;
}

.dashboard-copy-button__icon {
  width: 14px;
  height: 14px;
  display: block;
}

.dashboard-license-item__field--copyable:hover .dashboard-copy-button,
.dashboard-license-item__field--copyable:focus-within .dashboard-copy-button {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dashboard-copy-button[data-state="done"] {
  color: var(--success-text);
  border-color: rgba(36, 90, 54, 0.22);
}

.dashboard-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(23, 32, 51, 0.96);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.16);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  z-index: 1200;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.account-license-summary {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.account-license-summary--main {
  margin: 0;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.account-license-summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-license-summary__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.account-license-summary__header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.account-license-summary__header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-license-summary__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-license-summary--main .account-license-summary__grid {
  margin-top: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.account-license-summary__item {
  appearance: none;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.account-license-summary--main .account-license-summary__item {
  padding: 14px;
  border-radius: 16px;
}

.account-license-summary__item:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.055);
  transform: translateY(-1px);
}

.account-license-summary__item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.account-license-summary__item.is-active {
  border-color: rgba(205, 55, 45, 0.38);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(205, 55, 45, 0.2), 0 10px 24px rgba(23, 32, 51, 0.065);
}

.account-license-summary__item:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.account-license-summary__item span {
  display: block;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-license-summary__item strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-red);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-details {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.account-details__item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.account-details__separator {
  height: 1px;
  margin: 4px 2px;
  background: var(--line);
}

.account-details__item dt {
  margin: 0 0 6px;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-details__item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  word-break: break-word;
}

.profile-modal {
  position: fixed;
  inset: 0;
  padding: 24px;
  background: rgba(23, 32, 51, 0.18);
  display: grid;
  place-items: center;
  z-index: 60;
}

.profile-modal__card {
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.profile-modal__card--wide {
  width: min(100%, 620px);
}

.profile-modal__card--buy {
  width: min(100%, 540px);
}

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

.profile-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.profile-modal__copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.profile-modal__separator {
  height: 1px;
  margin: 4px 0 16px;
  background: var(--line);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.profile-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.profile-modal .auth-input {
  border-color: var(--line);
  background-color: #fbfcfe;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-modal .auth-input::placeholder {
  color: var(--muted-soft);
}

.profile-modal .auth-input:hover:not(:disabled):not([readonly]) {
  border-color: var(--line-strong);
  background-color: #fff;
}

.profile-modal .auth-input:focus {
  border-color: var(--accent-soft);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(94, 117, 148, 0.16);
}

.profile-modal .auth-input--locked,
.profile-modal .auth-input[readonly] {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--muted);
}

.profile-modal .auth-select {
  background-color: #fbfcfe;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.buy-license-options {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.buy-license-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.buy-license-option:hover,
.buy-license-option:focus-visible {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.buy-license-option img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.buy-license-option span {
  display: grid;
  gap: 3px;
}

.buy-license-option strong {
  font-size: 16px;
  line-height: 1.2;
}

.buy-license-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.settings-section + .settings-section {
  margin-top: 26px;
}

.settings-section__header {
  margin-bottom: 18px;
}

.settings-section__title {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.settings-divider {
  margin: 26px 0;
  height: 1px;
  background: var(--line);
}

.settings-note {
  margin-top: 0;
  margin-bottom: 18px;
}

.subtle-button--inline,
.primary-auth-button--inline {
  width: auto;
  min-width: 140px;
  padding: 0 22px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.renewal-summary {
  margin: 22px 0 0;
  display: grid;
  gap: 0;
}

.renewal-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.renewal-summary__row:first-child {
  border-top: 1px solid var(--line);
}

.renewal-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.renewal-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.renewal-summary__value--expired {
  color: var(--error-text);
}

.renewal-license-list {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.renewal-license-list__item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(237, 242, 247, 0.78);
  display: grid;
  gap: 4px;
}

.renewal-license-list__title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.renewal-license-list__item strong {
  font-size: 13px;
  line-height: 1.35;
}

.renewal-license-list__item > span {
  color: var(--accent-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.renewal-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ececec;
  color: #747474;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.renewal-status[data-state="active"] {
  background: rgba(196, 233, 218, 0.72);
  color: #245a36;
}

.renewal-feedback {
  margin-top: 16px;
}

.renewal-modal__toggle {
  padding: 0 18px;
}

.renewal-modal__toggle[data-action="disable"] {
  border-color: rgba(178, 66, 48, 0.3);
  background: #fff8f5;
  color: #8a2f21;
}

.renewal-modal__toggle[data-action="enable"] {
  border-color: rgba(36, 90, 54, 0.28);
  background: #f4fbf6;
  color: #245a36;
}

.renewal-modal__toggle:disabled {
  opacity: 0.62;
  cursor: wait;
}

.renewal-modal__link {
  padding: 0 18px;
}

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

@media (max-width: 1100px) {
  .split-auth {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    display: none;
  }

  .auth-mobile-home-link {
    display: block;
  }

  .auth-form-side__inner {
    max-width: 620px;
  }
}

@media (max-width: 960px) {
  .site-footer__inner {
    width: min(100%, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__brand {
    max-width: none;
  }

  .site-footer__bottom {
    width: min(100%, calc(100% - 28px));
  }

  .auth-form-side__inner {
    padding: max(32px, env(safe-area-inset-top)) 22px max(40px, env(safe-area-inset-bottom));
  }

  .dashboard-shell {
    width: min(100%, calc(100% - 28px));
    padding: 14px 0 44px;
  }

  .dashboard-topbar {
    top: auto;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-navlink,
  .account-button {
    width: 100%;
  }

  .account-dropdown {
    left: 0;
    right: 0;
    width: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dashboard-grid > .dashboard-card {
    position: relative;
    top: auto;
  }

  .dashboard-hero {
    margin-top: 18px;
    min-height: 132px;
    padding: 24px 104px 24px 30px;
    border-radius: 24px;
  }

  .dashboard-hero::before {
    top: 24px;
    bottom: 24px;
  }

  .dashboard-hero__art {
    right: 12px;
    width: 84px;
    min-width: 84px;
  }

  .dashboard-copy {
    white-space: normal;
  }

  .dashboard-license-panel__status {
    justify-content: flex-start;
  }

  .account-license-summary__top {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-license-actions {
    justify-content: flex-start;
  }

  .account-license-summary--main .account-license-summary__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-license-empty {
    min-height: 260px;
    padding: 28px 22px;
  }

  .copy-toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
  }

  .dashboard-license-group {
    padding: 20px;
    border-radius: 20px;
  }

  .dashboard-license-group__header {
    align-items: flex-start;
  }

  .dashboard-license-group__title {
    font-size: 22px;
  }

  .dashboard-license-item__header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dashboard-license-item__meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dashboard-license-item__field--copyable dd {
    flex-wrap: wrap;
  }

  .dashboard-copy-button {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dashboard-license-item__extra {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dashboard-license-item__meta > .dashboard-license-item__field:last-child {
    margin-left: 0;
    text-align: left;
  }

  .profile-modal__actions {
    flex-direction: column-reverse;
  }

  .renewal-summary__row {
    flex-direction: column;
    gap: 6px;
  }

  .renewal-summary dd {
    text-align: left;
  }

  .auth-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  }

  .auth-brand {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .auth-toolbar .auth-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(20px, 5.6vw, 26px);
  }

  .auth-toolbar .locale-switcher {
    flex: 0 0 auto;
  }

  .auth-toolbar .locale-switcher__menu {
    right: 0;
    left: auto;
    max-width: calc(100vw - 44px);
  }

  .auth-panel h1 {
    font-size: 40px;
  }

  .auth-links {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .dashboard-hero {
    padding: 26px 24px 26px 26px;
  }

  .dashboard-hero::after {
    display: none;
  }

  .dashboard-hero__art {
    display: none;
  }

  .account-license-summary--main {
    padding: 18px;
    border-radius: 20px;
  }

  .account-license-summary--main .account-license-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-license-actions {
    width: 100%;
  }

  .dashboard-license-actions .dashboard-add-license-button {
    flex: 1 1 140px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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