:root {
  --bg: #fafaf8;
  --bg-elevated: #ffffff;
  --bg-muted: #f5f5f3;
  --bg-soft: #f0f0ee;
  --text: #1d1d1f;
  --text-body: #55585c;
  --text-secondary: #5c5c60;
  --text-muted: #86868b;
  --border: #e8e8e6;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --accent: #1d1d1f;
  --accent-soft: rgba(29, 29, 31, 0.06);
  --accent-border: rgba(29, 29, 31, 0.22);
  --success: #1f7a4c;
  --success-soft: rgba(31, 122, 76, 0.1);
  --warning: #9a6700;
  --warning-soft: rgba(154, 103, 0, 0.1);
  --danger: #c0392b;
  --danger-soft: rgba(192, 57, 43, 0.08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-w: 232px;
  --content-max: 920px;
  --duration: 220ms;
  --duration-fast: 140ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

/* ── Shell ─────────────────────────────────────────────── */

.dash {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  padding: 22px 14px 16px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  z-index: 40;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 8px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-brand img {
  border-radius: 6px;
}

.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.sidebar-close:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[hidden] {
  display: none !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav-item:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.nav-item.is-active {
  background: var(--bg-muted);
  color: var(--text);
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity var(--duration) var(--ease);
}

.nav-item:hover .nav-icon,
.nav-item.is-active .nav-icon {
  opacity: 1;
}

.sidebar-sep {
  height: 1px;
  margin: 14px 8px;
  background: var(--border);
}

.sidebar-nav--secondary {
  margin-bottom: auto;
}

.sidebar-footer {
  position: relative;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sidebar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 0 8px;
}

.sidebar-legal a {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: -0.01em;
}

.sidebar-legal a:hover {
  color: var(--text-secondary);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  text-align: left;
  transition: background var(--duration) var(--ease);
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  background: var(--bg-muted);
}

.user-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.user-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.user-email {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-hint {
  color: var(--text-muted);
  font-size: 11.5px;
}

.user-caret {
  flex-shrink: 0;
  color: var(--text-muted);
}

.user-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  animation: page-in 220ms var(--ease-out);
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background var(--duration) var(--ease);
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--bg-muted);
}

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

.sidebar-backdrop {
  display: none;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(250, 250, 248, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text);
  transition: background var(--duration) var(--ease);
}

.menu-toggle:hover {
  background: var(--bg-muted);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-spacer {
  flex: 1;
}

.content {
  flex: 1;
  width: 100%;
  max-width: calc(var(--content-max) + 96px);
  margin: 0 auto;
  padding: 40px 48px 72px;
}

/* ── Page chrome ───────────────────────────────────────── */

.page .page-header,
.page > .stack > *,
.page > .surface,
.page > .grid-2 {
  animation: page-in 420ms var(--ease-out) both;
}

.page .page-header {
  animation-delay: 0ms;
}

.page > .stack > *:nth-child(1),
.page > .surface:nth-of-type(1) {
  animation-delay: 50ms;
}

.page > .stack > *:nth-child(2),
.page > .grid-2 {
  animation-delay: 90ms;
}

.page > .stack > *:nth-child(3) {
  animation-delay: 130ms;
}

.page > .stack > *:nth-child(4) {
  animation-delay: 170ms;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page .page-header,
  .page > .stack > *,
  .page > .surface,
  .page > .grid-2,
  .toast {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 42ch;
}

.greeting {
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.greeting-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.section-label {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Surfaces ──────────────────────────────────────────── */

.surface {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.surface--hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.surface-pad {
  padding: 24px;
}

.surface-pad-lg {
  padding: 28px;
}

/* ── License card ──────────────────────────────────────── */

.license-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.license-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.license-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.license-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.fact-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.fact-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Download card ─────────────────────────────────────── */

.download-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.download-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.product-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text);
}

.product-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-sub {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.version-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}

.version-item strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.version-item span {
  color: var(--text-muted);
  font-size: 12px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* ── Status list ───────────────────────────────────────── */

.status-list {
  display: flex;
  flex-direction: column;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-row:first-child {
  padding-top: 0;
}

.status-key {
  color: var(--text-muted);
  font-size: 13.5px;
}

.status-val {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: right;
}

.status-val--ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

/* ── Quick actions ─────────────────────────────────────── */

.actions-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.action-row:last-child {
  border-bottom: none;
}

.action-row:hover {
  background: var(--bg-muted);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  opacity: 0.85;
  transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease);
}

.action-row:hover .action-icon {
  opacity: 1;
  background: var(--bg-soft);
}

.action-label {
  flex: 1;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.action-arrow {
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}

.action-row:hover .action-arrow {
  color: var(--text);
  transform: translateX(2px);
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.015em;
  transition: background var(--duration) var(--ease), opacity var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration-fast) var(--ease-out);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  opacity: 0.88;
}

.btn--primary .btn-icon {
  transition: transform var(--duration) var(--ease);
}

.btn--primary:hover:not(:disabled) .btn-icon {
  transform: translateY(1px);
}

.btn--secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--bg-muted);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--bg-muted);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(192, 57, 43, 0.14);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Billing / account ─────────────────────────────────── */

.plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-price {
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.plan-note {
  color: var(--text-muted);
  font-size: 14px;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.field:last-child {
  border-bottom: none;
}

.field-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.field-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.support-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.support-copy {
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 48ch;
}

.installer-lead {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.installer-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.installer-platform {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.installer-platform-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.installer-os {
  display: flex;
  align-items: center;
  gap: 12px;
}

.installer-os-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.installer-download-btn {
  width: 100%;
  justify-content: center;
}

.macos-note {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
}

.windows-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.macos-note summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 2px 2px;
  border-bottom: none;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.macos-note[open] summary {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.macos-note summary::-webkit-details-marker {
  display: none;
}

.macos-note summary:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.macos-note-icon-wrap {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
}

.macos-note-summary-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.macos-note-title {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.macos-note-kicker {
  color: var(--text-muted);
  font-size: 12.5px;
}

.macos-note-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}

.macos-note-copy,
.macos-note-quote,
.macos-note-path {
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 54ch;
  overflow-wrap: anywhere;
}

.macos-note-quote {
  color: var(--text-secondary);
}

.macos-note-path {
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.macos-note-steps {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: macos-step;
}

.macos-note-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.macos-note-steps li::before {
  content: counter(macos-step);
  counter-increment: macos-step;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.macos-note-copy--last {
  margin-top: 2px;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .installer-platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .macos-note {
    padding: 12px 12px 2px;
  }

  .macos-note-title {
    font-size: 14px;
  }
}

.version-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.version-history-item:first-child {
  border-top: none;
  padding-top: 0;
}

.vh-name {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 550;
}

.vh-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

/* ── States ────────────────────────────────────────────── */

.state-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 36px 28px;
}

.state-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.state-copy {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 40ch;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 0%, var(--bg-soft) 50%, var(--bg-muted) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.sk-title {
  width: 220px;
  height: 28px;
  margin-bottom: 10px;
}

.sk-sub {
  width: 280px;
  height: 14px;
  margin-bottom: 28px;
}

.sk-card {
  height: 180px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}

.sk-card-sm {
  height: 120px;
  border-radius: var(--radius-xl);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 320px;
  padding: 12px 14px;
  background: var(--text);
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.toast.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.toast[hidden] {
  display: none;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .content {
    padding: 32px 28px 64px;
  }

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

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-105%);
    transition: transform 280ms var(--ease-out);
    box-shadow: var(--shadow-md);
  }

  .dash.is-nav-open .sidebar {
    transform: none;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 31, 0.28);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--ease-out);
  }

  .dash.is-nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    display: flex;
  }

  .content {
    padding: 24px 18px 56px;
  }

  .page-title,
  .greeting {
    font-size: 24px;
  }

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

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

@media (max-width: 390px) {
  .content {
    padding: 20px 14px 48px;
  }

  .surface-pad,
  .surface-pad-lg {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .license-actions {
    flex-direction: column;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  text-align: left;
  max-width: 360px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-input {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
}
