/* ============================================================
   SmaugBrain Inner Pages — shares the same dark cinematic
   language as the homepage. Only layout / component rules
   that differ from the homepage are defined here.
   ============================================================ */

/* ----- main content area ----- */
.sm-surface-main {
  position: relative;
  z-index: 1;
  padding: 118px var(--sm-shell-gutter) 100px;
}

.sm-surface-main>section {
  width: min(100%, var(--sm-content-max));
  margin-inline: auto;
  box-sizing: border-box;
}

.sm-surface-main>section+section {
  margin-top: 46px;
}

.sm-surface-hero {
  padding-top: 36px;
}

.sm-surface-main-minimal {
  min-height: 100vh;
  padding: 0;
}

.sm-surface-main-minimal>section {
  width: 100%;
  max-width: none;
}

.smaug-route-auth {
  --sm-auth-accent: #96eaff;
  --sm-auth-accent-soft: rgba(150, 234, 255, 0.2);
  --sm-auth-secondary: #f5fcff;
}

.sm-auth-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 128px 20px 32px;
  overflow: hidden;
}

.sm-auth-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 28%, rgba(150, 234, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.05), transparent 16%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.78), rgba(2, 4, 10, 0.99));
}

.sm-auth-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 58%);
  background-size: 96px 96px, 96px 96px, auto;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 80%);
  opacity: 0.22;
}

.sm-auth-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  filter: saturate(0.68) blur(0.2px);
}

.sm-auth-background-glow {
  position: absolute;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
}

.sm-auth-background-glow-a {
  top: 4%;
  left: -4%;
  background: var(--sm-auth-accent);
}

.sm-auth-background-glow-b {
  right: -10%;
  bottom: -18%;
  background: var(--sm-auth-secondary);
}

.sm-auth-schematic {
  position: absolute;
  inset: 0;
  perspective: 1800px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.sm-auth-line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  opacity: 0.42;
}

.sm-auth-line-top {
  top: 30px;
}

.sm-auth-line-bottom {
  bottom: 28px;
}

.sm-auth-hud,
.sm-auth-side-label,
.sm-auth-code-label,
.sm-auth-code-card code {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sm-auth-hud,
.sm-auth-side-label {
  position: absolute;
  color: rgba(245, 252, 255, 0.48);
}

.sm-auth-hud-top-left {
  top: 22px;
  left: 24px;
}

.sm-auth-hud-top-right {
  top: 22px;
  right: 24px;
}

.sm-auth-hud-bottom-left {
  left: 24px;
  bottom: 18px;
}

.sm-auth-hud-bottom-right {
  right: 24px;
  bottom: 18px;
}

.sm-auth-side-label {
  top: 50%;
  left: 10px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
  color: rgba(150, 234, 255, 0.58);
}

.sm-auth-word,
.sm-auth-plane,
.sm-auth-code-card {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

.sm-auth-word {
  top: 18%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(120px, 21vw, 360px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 252, 255, 0.1);
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.03);
  user-select: none;
}

.sm-auth-plane {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
}

.sm-auth-plane-left {
  top: 40%;
  left: 7%;
  width: 33vw;
  height: 34vh;
}

.sm-auth-plane-right {
  top: 28%;
  right: 11%;
  width: 24vw;
  height: 48vh;
}

.sm-auth-code-card {
  display: grid;
  gap: 10px;
  width: min(20vw, 220px);
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sm-auth-code-card-left {
  top: 38%;
  left: 42%;
}

.sm-auth-code-card-right {
  top: 44%;
  right: 25%;
}

.sm-auth-code-label {
  color: rgba(245, 252, 255, 0.42);
}

.sm-auth-code-card strong {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sm-auth-code-card code {
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.5;
}

.sm-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(4, 8, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 32px 120px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px);
}

.sm-auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--sm-auth-accent-soft), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.08));
  opacity: 0.8;
  pointer-events: none;
}

.sm-auth-panels,
.sm-auth-form {
  position: relative;
  z-index: 1;
}

.sm-auth-panels {
  display: grid;
}

.sm-auth-panel {
  display: none;
  gap: 18px;
}

.sm-auth-panel.is-active {
  display: grid;
}

.sm-auth-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sm-auth-switch-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 0;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(150, 234, 255, 0.24), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.16),
    0 0 32px rgba(150, 234, 255, 0.14);
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

.sm-auth-switch.is-ready .sm-auth-switch-indicator {
  opacity: 1;
}

.sm-auth-switch-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  color: rgba(246, 244, 239, 0.7);
  text-decoration: none;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.24s ease, transform 0.32s ease;
}

.sm-auth-switch-link:hover,
.sm-auth-switch-link.is-active {
  color: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.sm-auth-switch-link.is-active {
  text-shadow: 0 0 18px rgba(150, 234, 255, 0.2);
}

.sm-auth-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.sm-auth-head h1 {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.sm-auth-head p,
.sm-auth-notice p,
.sm-auth-actions p {
  margin: 0;
  color: rgba(246, 244, 239, 0.7);
  line-height: 1.68;
}

.sm-auth-notice {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.sm-auth-notice.is-error {
  border-color: rgba(255, 123, 70, 0.24);
  background: rgba(255, 123, 70, 0.08);
}

.sm-auth-notice.is-success {
  border-color: rgba(111, 231, 255, 0.2);
  background: rgba(111, 231, 255, 0.08);
}

/* Inline field error */
.sm-auth-field.has-error input {
  border-color: rgba(255, 107, 86, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 107, 86, 0.06);
}

.sm-auth-field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #ff6b56;
  line-height: 1.45;
  animation: sm-auth-error-in 0.22s ease;
}

@keyframes sm-auth-error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sm-auth-social {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.sm-auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 244, 239, 0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-auth-social-divider::before,
.sm-auth-social-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sm-auth-social-grid {
  display: grid;
  gap: 10px;
}

.sm-auth-social-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #d2d7e0;
  border-radius: 999px;
  background: #ffffff;
  color: #3c4043;
  text-align: left;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sm-auth-social-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.sm-auth-social-copy {
  display: grid;
  gap: 2px;
}

.sm-auth-social-copy strong {
  font-family: Arial, 'Noto Sans SC', sans-serif;
  color: #3c4043;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.sm-auth-social-google .sm-auth-social-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23EA4335' d='M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.48h4.84a4.14 4.14 0 0 1-1.8 2.72v2.26h2.91c1.7-1.56 2.69-3.86 2.69-6.62Z'/%3E%3Cpath fill='%234285F4' d='M9 18c2.43 0 4.47-.8 5.96-2.18l-2.91-2.26c-.81.54-1.84.86-3.05.86-2.35 0-4.35-1.58-5.06-3.7H.94v2.33A9 9 0 0 0 9 18Z'/%3E%3Cpath fill='%23FBBC05' d='M3.94 10.71A5.41 5.41 0 0 1 3.66 9c0-.59.1-1.16.28-1.71V4.96H.94A9 9 0 0 0 0 9c0 1.45.35 2.82.94 4.04l3-2.33Z'/%3E%3Cpath fill='%2334A853' d='M9 3.58c1.32 0 2.5.45 3.43 1.33l2.57-2.57C13.46.9 11.42 0 9 0A9 9 0 0 0 .94 4.96l3 2.33c.7-2.12 2.7-3.71 5.06-3.71Z'/%3E%3C/svg%3E");
}

.sm-auth-social-github .sm-auth-social-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f2328'%3E%3Cpath d='M12 .5a12 12 0 0 0-3.79 23.39c.6.11.82-.26.82-.58l-.02-2.04c-3.34.73-4.04-1.42-4.04-1.42-.55-1.38-1.33-1.75-1.33-1.75-1.09-.74.08-.72.08-.72 1.2.09 1.84 1.24 1.84 1.24 1.07 1.84 2.8 1.31 3.48 1 .11-.78.42-1.31.77-1.61-2.67-.3-5.47-1.34-5.47-5.95 0-1.31.47-2.38 1.23-3.22-.12-.3-.53-1.52.12-3.17 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.3-1.55 3.29-1.23 3.29-1.23.65 1.65.24 2.87.12 3.17.77.84 1.23 1.91 1.23 3.22 0 4.62-2.81 5.64-5.49 5.94.43.38.82 1.1.82 2.23l-.01 3.31c0 .32.21.69.83.57A12 12 0 0 0 12 .5Z'/%3E%3C/svg%3E");
}

.sm-auth-social-microsoft .sm-auth-social-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23F25022' d='M0 0h8.1v8.1H0z'/%3E%3Cpath fill='%237FBA00' d='M9.9 0H18v8.1H9.9z'/%3E%3Cpath fill='%2300A4EF' d='M0 9.9h8.1V18H0z'/%3E%3Cpath fill='%23FFB900' d='M9.9 9.9H18V18H9.9z'/%3E%3C/svg%3E");
}

.sm-auth-form {
  gap: 16px;
}

.sm-auth-field span {
  margin-bottom: 8px;
}

.smaug-route-auth .sm-surface-field input {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.smaug-route-auth .sm-surface-field input:focus {
  border-color: var(--sm-auth-accent);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 0 0 1px var(--sm-auth-accent-soft);
}

.smaug-route-auth .sm-surface-button-solid {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--sm-auth-accent), var(--sm-auth-secondary));
  color: #08111f;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.sm-auth-actions {
  margin-top: 6px;
}

.sm-auth-actions p {
  text-align: center;
}

.sm-auth-actions a {
  color: rgba(255, 255, 255, 0.96);
}

.smaug-route-auth .sm-home-header {
  z-index: 3;
}

.smaug-route-auth .sm-home-header::before {
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.78), rgba(4, 8, 15, 0));
}

/* ----- typography (extends homepage scale) ----- */
.sm-surface-copy {
  padding-top: clamp(18px, 3vw, 48px);
}

.sm-surface-kicker,
.sm-surface-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.66);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sm-surface-title {
  margin: 22px 0 18px;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.sm-surface-title span {
  display: block;
}

/* accent last line like the homepage amber accent */
.smaug-route-login .sm-surface-title span:last-child,
.smaug-route-register .sm-surface-title span:last-child,
.smaug-route-forgot-password .sm-surface-title span:last-child,
.smaug-route-profile .sm-surface-title span:last-child,
.smaug-route-profile-orders .sm-surface-title span:last-child,
.smaug-route-profile-security .sm-surface-title span:last-child,
.smaug-route-pricing .sm-surface-title span:last-child {
  background: linear-gradient(135deg, #ff7636 0%, #ff9f6e 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sm-surface-body,
.sm-surface-form-head p,
.sm-surface-info-card p,
.sm-surface-project-card p,
.sm-surface-security-card p,
.sm-surface-band h3,
.sm-surface-roadmap-card p,
.sm-surface-bottom-cta p,
.sm-surface-profile-card p,
.sm-surface-stage p,
.sm-surface-plan-body,
.sm-surface-billing-note,
.sm-surface-footer-inner p,
.sm-surface-timeline-item p,
.sm-surface-compare-row span,
.sm-surface-metric p {
  color: rgba(246, 244, 239, 0.64);
  line-height: 1.72;
}

/* ----- card panel (homepage glass language) ----- */
.sm-surface-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(20px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  box-sizing: border-box;
}

.sm-surface-panel::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 74%, rgba(255, 255, 255, 0.02));
  opacity: 0.6;
  pointer-events: none;
}

.sm-surface-panel.is-selected {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ----- shared-shell rail helpers ----- */
.sm-shared-shell-rail {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sm-home-menu-group-label,
.sm-home-menu-link-item {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

/* ----- chips (inline tags) ----- */
.sm-surface-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sm-surface-chip {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.74);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* ----- buttons (match homepage .sm-home-btn) ----- */
.sm-surface-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-sizing: border-box;
}

.sm-surface-button:hover {
  transform: translateY(-2px);
}

.sm-surface-button-solid {
  color: #fff;
  background: var(--sm-cobalt);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sm-surface-button-ghost {
  color: var(--sm-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

/* ----- notice bar ----- */
.sm-surface-notice-wrap {
  margin-bottom: 18px;
}

.sm-surface-notice {
  display: grid;
  gap: 8px;
  border-radius: 24px;
}

.sm-surface-notice p {
  margin: 0;
  font-size: 15px;
  color: rgba(246, 244, 239, 0.82);
}

.sm-surface-notice.is-success {
  border-color: rgba(67, 84, 255, 0.18);
}

.sm-surface-notice.is-error {
  border-color: rgba(255, 95, 137, 0.18);
}

/* ----- grid containers ----- */
.sm-surface-hero-grid,
.sm-surface-dashboard-grid,
.sm-surface-band-grid,
.sm-surface-plan-grid,
.sm-surface-roadmap-grid,
.sm-surface-metrics-grid {
  display: grid;
  gap: 22px;
}

.sm-surface-hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: start;
}

.sm-surface-hero-grid>* {
  min-width: 0;
}

/* ----- section heads ----- */
.sm-surface-stage-top,
.sm-surface-plan-top,
.sm-surface-profile-top,
.sm-surface-bottom-cta,
.sm-surface-section-head,
.sm-surface-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sm-surface-section-head h2,
.sm-surface-info-card h3,
.sm-surface-project-card h3,
.sm-surface-security-card h3,
.sm-surface-roadmap-card h3,
.sm-surface-bottom-cta h2,
.sm-surface-profile-card h2,
.sm-surface-band h3,
.sm-surface-pricing-highlight h2,
.sm-surface-timeline-item h3,
.sm-surface-plan h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

.sm-surface-form-head {
  flex-direction: column;
}

.sm-surface-form-head h2 {
  margin: 10px 0 0;
}

/* ----- big metric numbers ----- */
.sm-surface-stage-metric,
.sm-surface-plan-price strong,
.sm-surface-metric strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

/* ----- live / featured dots ----- */
.sm-surface-live-dot,
.sm-surface-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 244, 239, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sm-surface-live-dot::before,
.sm-surface-featured-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-amber);
  box-shadow: 0 0 14px rgba(255, 118, 54, 0.36);
}

/* ----- stat cards ----- */
.sm-surface-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.sm-surface-stat-card,
.sm-surface-profile-summary>div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sm-surface-stat-card span,
.sm-surface-profile-summary span,
.sm-surface-compare-row span:first-child {
  display: block;
  font-size: 13px;
  color: rgba(246, 244, 239, 0.5);
}

.sm-surface-stat-card strong,
.sm-surface-profile-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

/* ----- terminal block ----- */
.sm-surface-terminal {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(4, 6, 11, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: 'Space Grotesk', monospace;
}

.sm-surface-terminal div {
  display: flex;
  gap: 10px;
  color: rgba(246, 244, 239, 0.7);
  line-height: 1.75;
  font-size: 14px;
}

.sm-surface-terminal span {
  color: #6fe7ff;
}

/* ----- route switch pills ----- */
.sm-surface-route-switch-links,
.sm-surface-profile-actions,
.sm-surface-footer-links,
.sm-surface-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm-surface-route-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.62);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.sm-surface-route-pill:hover,
.sm-surface-route-pill.is-active {
  color: var(--sm-text);
  background: rgba(255, 255, 255, 0.06);
}

/* ----- auth / form stacks ----- */
.sm-surface-auth-stack,
.sm-surface-info-stack,
.sm-surface-dashboard-stack {
  display: grid;
  gap: 20px;
}

.sm-surface-stage,
.sm-surface-form-card,
.sm-surface-profile-card,
.sm-surface-pricing-side,
.sm-surface-bottom-cta,
.sm-surface-compare {
  min-height: 100%;
}

/* ----- form fields ----- */
.sm-surface-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.sm-surface-field {
  display: grid;
  gap: 6px;
}

.sm-surface-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sm-text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.sm-surface-field input:focus {
  border-color: rgba(67, 84, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(67, 84, 255, 0.08);
}

.sm-surface-form-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sm-surface-form-actions p {
  margin: 0;
  color: rgba(246, 244, 239, 0.56);
}

.sm-surface-form-actions a,
.sm-surface-footer-links a {
  color: #6fe7ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sm-surface-form-actions a:hover,
.sm-surface-footer-links a:hover {
  color: #fff;
}

/* ----- band grid (auth pages bottom) ----- */
.sm-surface-band-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-surface-band {
  min-height: 190px;
}

/* ----- profile ----- */
.sm-surface-profile-grid,
.sm-surface-pricing-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
}

.sm-surface-profile-card {
  display: grid;
  gap: 20px;
}

.sm-surface-profile-top {
  align-items: center;
}

.sm-surface-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #1a1f33, #4354ff);
  font-size: 16px;
  font-weight: 700;
}

.sm-surface-profile-top h2 {
  margin: 0;
}

.sm-surface-profile-top p {
  margin: 4px 0 0;
}

.sm-surface-profile-email {
  color: rgba(111, 231, 255, 0.82);
}

.sm-surface-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ----- metrics grid ----- */
.sm-surface-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sm-surface-metric {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ----- dashboard ----- */
.sm-surface-dashboard-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.sm-surface-timeline-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.sm-surface-timeline-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sm-surface-timeline-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.sm-surface-timeline-item>span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: rgba(246, 244, 239, 0.7);
}

.sm-surface-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sm-surface-project-card strong {
  display: inline-flex;
  margin-top: 16px;
  color: rgba(111, 231, 255, 0.88);
  font-family: 'Space Grotesk', sans-serif;
}

.sm-surface-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* ----- pricing ----- */
.sm-surface-billing-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sm-surface-billing-switch button {
  min-width: 108px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 244, 239, 0.6);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sm-surface-billing-switch button.is-active {
  color: #0d1016;
  background: var(--sm-text);
}

.sm-surface-pricing-highlight {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-surface-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-surface-plan {
  display: grid;
  gap: 20px;
}

.sm-surface-plan.is-featured {
  border-color: rgba(67, 84, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 60px rgba(30, 50, 160, 0.16);
}

.sm-surface-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.sm-surface-plan-price strong span:first-child {
  font-size: 0.34em;
  vertical-align: top;
  margin-right: 4px;
}

.sm-surface-plan-price>span {
  margin-bottom: 10px;
  color: rgba(246, 244, 239, 0.56);
  font-size: 14px;
}

.sm-surface-plan-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sm-surface-plan-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(246, 244, 239, 0.76);
  line-height: 1.65;
  font-size: 14px;
}

.sm-surface-plan-list li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sm-cobalt);
}

/* ----- comparison table ----- */
.sm-surface-compare-table {
  margin-top: 22px;
  display: grid;
}

.sm-surface-compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sm-surface-compare-row.is-head {
  border-top: 0;
  padding-top: 4px;
}

.sm-surface-compare-row.is-head span {
  color: rgba(246, 244, 239, 0.78);
  font-weight: 700;
  font-size: 14px;
}

/* ----- generic surfaces (console, support, etc.) ----- */
.sm-surface-generic-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
}

.sm-surface-signal-board {
  display: grid;
  gap: 22px;
}

.sm-surface-signal-list {
  display: grid;
  gap: 12px;
}

.sm-surface-signal-row {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.sm-surface-signal-row span {
  color: rgba(111, 231, 255, 0.78);
  font-size: 13px;
}

.sm-surface-signal-row strong,
.sm-surface-capability-card h3 {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.22;
}

.sm-surface-signal-row p,
.sm-surface-capability-card p {
  margin: 8px 0 0;
}

.sm-surface-route-hub {
  display: grid;
  gap: 16px;
}

.sm-surface-route-hub-links {
  flex-wrap: wrap;
}

.sm-surface-generic-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-surface-capability-grid {
  width: min(100%, var(--sm-content-max));
  margin-inline: auto;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-surface-capability-card {
  display: grid;
  gap: 14px;
  min-height: 240px;
}

.sm-surface-capability-card strong {
  display: inline-flex;
  margin-top: 6px;
  color: rgba(111, 231, 255, 0.82);
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
}

.sm-surface-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-surface-roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-news-hero-grid {
  align-items: stretch;
}

.sm-news-media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  --sm-news-media-position: center 50%;
  --sm-news-media-scale: 1;
  background:
    radial-gradient(circle at 18% 20%, rgba(111, 231, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(9, 15, 28, 0.94), rgba(20, 34, 56, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sm-news-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.06), rgba(4, 8, 15, 0.42));
  pointer-events: none;
}

.sm-news-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sm-news-media-position);
  transform: scale(var(--sm-news-media-scale));
  transition: transform 0.4s ease;
}

.sm-news-media-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(4, 8, 15, 0.4)),
    linear-gradient(120deg, rgba(111, 231, 255, 0.08), transparent 52%);
}

.sm-news-media-fallback-grid,
.sm-news-media-fallback-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-news-media-fallback-grid {
  opacity: 0.54;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(160deg, transparent 8%, rgba(0, 0, 0, 0.92) 26%, rgba(0, 0, 0, 0.92) 78%, transparent 100%);
}

.sm-news-media-fallback-glow {
  filter: blur(0);
}

.sm-news-media-fallback-glow-a {
  inset: auto auto 12% -10%;
  width: 46%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 231, 255, 0.32), rgba(111, 231, 255, 0.02) 72%, transparent 74%);
}

.sm-news-media-fallback-glow-b {
  inset: 10% -8% auto auto;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 70%, transparent 74%);
}

.sm-news-media-fallback-topline,
.sm-news-media-fallback-body,
.sm-news-media-fallback-footer {
  position: relative;
  z-index: 1;
}

.sm-news-media-fallback-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sm-news-media-fallback-tag,
.sm-news-media-fallback-kicker,
.sm-news-media-fallback-footer span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}

.sm-news-media-fallback-kicker {
  color: rgba(246, 244, 239, 0.58);
  background: rgba(4, 8, 15, 0.18);
}

.sm-news-media-fallback-body {
  align-self: end;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.sm-news-media-fallback-body strong {
  color: rgba(255, 255, 255, 0.94);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.sm-news-media-fallback-body p {
  margin: 0;
  max-width: min(100%, 30ch);
  color: rgba(246, 244, 239, 0.76);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-news-media-fallback-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-news-media-fallback-footer span {
  color: rgba(246, 244, 239, 0.72);
  letter-spacing: 0.08em;
}

.sm-news-media-lead {
  min-height: 260px;
  aspect-ratio: 16 / 10;
  --sm-news-media-position: center 32%;
}

.sm-news-media-card {
  min-height: 200px;
  aspect-ratio: 4 / 3;
  --sm-news-media-position: center 38%;
}

.sm-news-media-hero {
  min-height: clamp(240px, 32vw, 360px);
  aspect-ratio: 16 / 9;
  --sm-news-media-position: center 30%;
}

.sm-news-media-related {
  min-height: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  --sm-news-media-position: center 38%;
}

.sm-news-media.is-portrait {
  --sm-news-media-position: center 18%;
}

.sm-news-media.is-square {
  --sm-news-media-position: center 50%;
}

.sm-news-lead-card:hover .sm-news-media-image,
.sm-news-story-card:hover .sm-news-media-image,
.sm-news-related-link:hover .sm-news-media-image {
  --sm-news-media-scale: 1.04;
}

.sm-news-lead-card,
.sm-news-story-card,
.sm-news-radar,
.sm-news-detail-panel,
.sm-news-related-link {
  display: grid;
  min-width: 0;
  overflow: hidden;
  gap: 16px;
}

.sm-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(246, 244, 239, 0.56);
  font-size: 13px;
}

.sm-news-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sm-news-meta-compact {
  font-size: 12px;
  gap: 8px 10px;
}

.sm-news-meta-compact span {
  min-height: 26px;
  padding: 0 9px;
}

.sm-news-meta-detail {
  font-size: 14px;
}

.sm-news-lead-card h2,
.sm-news-radar h2 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

.sm-news-lead-card p,
.sm-news-radar-item p {
  margin: 0;
}

.sm-news-story-section {
  width: min(100%, var(--sm-content-max));
  margin-inline: auto;
}

.sm-news-story-grid {
  margin-top: 22px;
}

.sm-news-story-card {
  min-height: 260px;
}

.sm-news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sm-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.82);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sm-news-pagination a.page-numbers:hover {
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.08);
}

.sm-news-pagination .page-numbers.current {
  color: rgba(3, 10, 19, 0.94);
  background: rgba(111, 231, 255, 0.92);
  box-shadow: none;
}

.sm-news-pagination .page-numbers.dots {
  min-width: 32px;
  padding: 0 8px;
  background: transparent;
  box-shadow: none;
}

.sm-news-radar-list {
  display: grid;
  gap: 14px;
}

.sm-news-radar-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sm-news-radar-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}

.sm-news-story-link,
.sm-news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(111, 231, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sm-news-story-link:hover,
.sm-news-back-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.sm-news-detail-shell,
.sm-news-detail-body {
  width: min(100%, var(--sm-content-max));
  margin-inline: auto;
}

.sm-news-detail-shell {
  display: grid;
  gap: 18px;
}

.sm-news-detail-panel {
  display: grid;
  gap: 16px;
}

.sm-news-detail-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.sm-news-detail-excerpt {
  max-width: 72ch;
}

.sm-news-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
}

.sm-news-article,
.sm-news-related-panel {
  display: grid;
  gap: 18px;
}

.sm-news-article-content> :first-child {
  margin-top: 0;
}

.sm-news-article-content> :last-child {
  margin-bottom: 0;
}

.sm-news-article-content p,
.sm-news-article-content li {
  color: rgba(246, 244, 239, 0.76);
  font-size: 16px;
  line-height: 1.8;
}

.sm-news-article-content h2,
.sm-news-article-content h3 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  letter-spacing: -0.04em;
}

.sm-news-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
}

.sm-news-article-section+.sm-news-article-section {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sm-news-article-section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

.sm-news-article-section p {
  margin: 0 0 14px;
  color: rgba(246, 244, 239, 0.76);
  font-size: 16px;
  line-height: 1.8;
}

.sm-news-bullet-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sm-news-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(246, 244, 239, 0.76);
  line-height: 1.7;
}

.sm-news-bullet-list li::before {
  content: '';
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sm-cobalt);
}

.sm-news-related-list {
  display: grid;
  gap: 14px;
}

.sm-news-related-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.sm-news-related-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sm-news-related-link:hover .sm-news-media-image {
  transform: scale(1.04);
}

.sm-news-related-copy {
  display: grid;
  gap: 10px;
}

.sm-news-related-copy .sm-news-meta {
  margin-top: -2px;
}

.sm-news-related-copy .sm-surface-panel-eyebrow {
  width: fit-content;
}

.sm-news-related-link strong {
  font-size: 18px;
  line-height: 1.3;
}

.sm-news-related-link p {
  margin: 0;
  color: rgba(246, 244, 239, 0.68);
}

/* ----- route identities / cinematic effects ----- */
.smaug-route-surface .sm-surface-shell::before,
.smaug-route-surface .sm-surface-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.smaug-route-surface .sm-surface-shell::before {
  opacity: 0.34;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.05) 32.2%, transparent 32.8% 100%),
    radial-gradient(circle at var(--route-orb-x, 78%) var(--route-orb-y, 20%), var(--route-glow-a, rgba(67, 84, 255, 0.22)), transparent 34%),
    radial-gradient(circle at var(--route-orb-b-x, 20%) var(--route-orb-b-y, 78%), var(--route-glow-b, rgba(255, 118, 54, 0.16)), transparent 31%);
}

.smaug-route-surface .sm-surface-shell::after {
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: var(--route-grid-size, 92px) var(--route-grid-size, 92px);
  mask-image: radial-gradient(circle at 50% 18%, #000 0 34%, transparent 76%);
  animation: smSurfaceScan 16s linear infinite;
}

.smaug-route-login,
.smaug-route-register,
.smaug-route-forgot-password {
  --route-grid-size: 64px;
  --route-orb-x: 70%;
  --route-orb-y: 18%;
  --route-glow-a: rgba(255, 118, 54, 0.22);
  --route-glow-b: rgba(111, 231, 255, 0.16);
  --route-shadow: rgba(255, 118, 54, 0.18);
}

.smaug-route-pricing {
  --route-grid-size: 110px;
  --route-orb-x: 54%;
  --route-orb-y: 14%;
  --route-glow-a: rgba(67, 84, 255, 0.3);
  --route-glow-b: rgba(255, 193, 97, 0.16);
  --route-shadow: rgba(67, 84, 255, 0.2);
}

.smaug-route-profile {
  --route-grid-size: 82px;
  --route-orb-x: 82%;
  --route-orb-y: 24%;
  --route-glow-a: rgba(111, 231, 255, 0.22);
  --route-glow-b: rgba(67, 84, 255, 0.18);
  --route-shadow: rgba(111, 231, 255, 0.18);
}

.smaug-route-agents {
  --route-grid-size: 74px;
  --route-orb-x: 76%;
  --route-orb-y: 26%;
  --route-glow-a: rgba(150, 106, 255, 0.24);
  --route-glow-b: rgba(111, 231, 255, 0.16);
  --route-shadow: rgba(150, 106, 255, 0.18);
}

.smaug-route-console {
  --route-grid-size: 56px;
  --route-orb-x: 18%;
  --route-orb-y: 20%;
  --route-glow-a: rgba(63, 255, 178, 0.16);
  --route-glow-b: rgba(67, 84, 255, 0.18);
  --route-shadow: rgba(63, 255, 178, 0.16);
}

.smaug-route-docs {
  --route-grid-size: 88px;
  --route-orb-x: 20%;
  --route-orb-y: 16%;
  --route-glow-a: rgba(111, 231, 255, 0.2);
  --route-glow-b: rgba(255, 255, 255, 0.09);
  --route-shadow: rgba(111, 231, 255, 0.16);
}

.smaug-route-tasks {
  --route-grid-size: 70px;
  --route-orb-x: 84%;
  --route-orb-y: 16%;
  --route-glow-a: rgba(255, 118, 54, 0.2);
  --route-glow-b: rgba(63, 255, 178, 0.14);
  --route-shadow: rgba(255, 118, 54, 0.16);
}

.smaug-route-team {
  --route-grid-size: 96px;
  --route-orb-x: 50%;
  --route-orb-y: 18%;
  --route-glow-a: rgba(255, 95, 137, 0.18);
  --route-glow-b: rgba(111, 231, 255, 0.16);
  --route-shadow: rgba(255, 95, 137, 0.16);
}

.smaug-route-support {
  --route-grid-size: 78px;
  --route-orb-x: 80%;
  --route-orb-y: 62%;
  --route-glow-a: rgba(63, 255, 178, 0.16);
  --route-glow-b: rgba(255, 118, 54, 0.18);
  --route-shadow: rgba(63, 255, 178, 0.16);
}

.smaug-route-news {
  --route-grid-size: 86px;
  --route-orb-x: 74%;
  --route-orb-y: 18%;
  --route-glow-a: rgba(111, 231, 255, 0.18);
  --route-glow-b: rgba(67, 84, 255, 0.18);
  --route-shadow: rgba(111, 231, 255, 0.16);
}

.smaug-route-surface .sm-surface-panel {
  isolation: isolate;
  backdrop-filter: blur(22px) saturate(128%);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.smaug-route-surface .sm-surface-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.13), transparent 24%),
    linear-gradient(135deg, var(--route-glow-a, rgba(67, 84, 255, 0.18)), transparent 42%);
  transition: opacity 0.28s ease;
}

.smaug-route-surface .sm-surface-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.28),
    0 0 42px var(--route-shadow, rgba(67, 84, 255, 0.16));
}

.smaug-route-surface .sm-surface-panel:hover::before {
  opacity: 0.72;
}

.smaug-route-login .sm-surface-form-card,
.smaug-route-register .sm-surface-form-card,
.smaug-route-forgot-password .sm-surface-form-card {
  border-color: rgba(255, 118, 54, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(9, 12, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 118, 54, 0.08);
}

.smaug-route-register .sm-surface-form-card {
  border-color: rgba(67, 84, 255, 0.24);
}

.smaug-route-forgot-password .sm-surface-form-card {
  border-color: rgba(111, 231, 255, 0.22);
}

.smaug-route-login .sm-surface-stage,
.smaug-route-register .sm-surface-stage,
.smaug-route-forgot-password .sm-surface-stage {
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(255, 118, 54, 0.09), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    rgba(255, 255, 255, 0.025);
}

.smaug-route-register .sm-surface-stage {
  background:
    linear-gradient(135deg, rgba(67, 84, 255, 0.12), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    rgba(255, 255, 255, 0.025);
}

.smaug-route-forgot-password .sm-surface-stage {
  background:
    linear-gradient(135deg, rgba(111, 231, 255, 0.1), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    rgba(255, 255, 255, 0.025);
}

.smaug-route-login .sm-surface-terminal,
.smaug-route-register .sm-surface-terminal,
.smaug-route-forgot-password .sm-surface-terminal {
  position: relative;
  overflow: hidden;
}

.smaug-route-login .sm-surface-terminal::after,
.smaug-route-register .sm-surface-terminal::after,
.smaug-route-forgot-password .sm-surface-terminal::after,
.smaug-route-console .sm-surface-signal-board::after {
  content: '';
  position: absolute;
  inset: -60% 0 auto;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(111, 231, 255, 0.12), transparent);
  animation: smTerminalSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

.smaug-route-pricing .sm-surface-pricing-side {
  align-self: stretch;
  background:
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(67, 84, 255, 0.18), rgba(255, 118, 54, 0.08) 48%, rgba(255, 255, 255, 0.03));
}

.smaug-route-pricing .sm-surface-plan-grid {
  align-items: stretch;
  perspective: 1200px;
}

.smaug-route-pricing .sm-surface-plan {
  min-height: 560px;
}

.smaug-route-pricing .sm-surface-plan.is-featured {
  transform: translateY(-18px) scale(1.025);
  border-color: rgba(67, 84, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(67, 84, 255, 0.18), rgba(255, 255, 255, 0.03) 44%),
    rgba(255, 255, 255, 0.03);
}

.smaug-route-pricing .sm-surface-plan:hover {
  transform: translateY(-10px) rotateX(2deg);
}

.smaug-route-pricing .sm-surface-plan.is-featured:hover {
  transform: translateY(-24px) scale(1.03) rotateX(2deg);
}

.smaug-route-pricing .sm-surface-compare {
  background:
    linear-gradient(90deg, rgba(67, 84, 255, 0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px),
    rgba(255, 255, 255, 0.02);
}

.smaug-route-profile .sm-surface-profile-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(111, 231, 255, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(67, 84, 255, 0.13), rgba(255, 255, 255, 0.02));
}

.smaug-route-profile .sm-surface-avatar {
  position: relative;
  box-shadow: 0 0 34px rgba(111, 231, 255, 0.26);
}

.smaug-route-profile .sm-surface-avatar::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 20px;
  border: 1px solid rgba(111, 231, 255, 0.24);
  animation: smPulseFrame 2.8s ease-in-out infinite;
}

.smaug-route-profile .sm-surface-dashboard-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.smaug-route-profile .sm-surface-timeline-item>span {
  color: #10131b;
  background: linear-gradient(135deg, #6fe7ff, #f6f4ef);
}

.smaug-route-agents .sm-surface-signal-board,
.smaug-route-console .sm-surface-signal-board,
.smaug-route-docs .sm-surface-signal-board,
.smaug-route-tasks .sm-surface-signal-board,
.smaug-route-team .sm-surface-signal-board,
.smaug-route-support .sm-surface-signal-board {
  min-height: 470px;
}

.smaug-route-agents .sm-surface-signal-board {
  place-content: space-between;
  background:
    radial-gradient(circle at 50% 48%, rgba(150, 106, 255, 0.2), transparent 28%),
    radial-gradient(circle at 50% 48%, transparent 0 34%, rgba(255, 255, 255, 0.08) 34.2% 34.7%, transparent 35% 100%),
    rgba(255, 255, 255, 0.024);
}

.smaug-route-agents .sm-surface-capability-grid {
  grid-template-columns: 1.12fr 0.88fr 1fr;
}

.smaug-route-agents .sm-surface-capability-card:first-child {
  grid-row: span 2;
  min-height: 500px;
}

.smaug-route-console .sm-surface-generic-grid {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}

.smaug-route-console .sm-surface-signal-board {
  background:
    linear-gradient(180deg, rgba(63, 255, 178, 0.1), transparent 46%),
    repeating-linear-gradient(0deg, rgba(63, 255, 178, 0.08) 0 1px, transparent 1px 30px),
    rgba(2, 7, 10, 0.72);
}

.smaug-route-console .sm-surface-capability-grid {
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
}

.smaug-route-console .sm-surface-roadmap-grid {
  grid-template-columns: 1fr;
}

.smaug-route-console .sm-surface-roadmap-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.smaug-route-docs .sm-surface-generic-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
}

.smaug-route-docs .sm-surface-signal-board {
  background:
    linear-gradient(135deg, rgba(111, 231, 255, 0.11), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: auto, 32px 100%, auto;
}

.smaug-route-docs .sm-surface-capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smaug-route-docs .sm-surface-capability-card:nth-child(3n + 1) {
  grid-column: span 2;
}

.smaug-route-tasks .sm-surface-capability-grid {
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smaug-route-tasks .sm-surface-capability-card:nth-child(odd) {
  margin-top: 34px;
}

.smaug-route-tasks .sm-surface-capability-card::after {
  opacity: 0.8;
  background:
    linear-gradient(90deg, rgba(255, 118, 54, 0.16), transparent 42%),
    linear-gradient(180deg, transparent 0 70%, rgba(63, 255, 178, 0.08));
}

.smaug-route-team .sm-surface-generic-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.smaug-route-team .sm-surface-signal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smaug-route-team .sm-surface-signal-row:first-child {
  grid-column: span 2;
}

.smaug-route-team .sm-surface-capability-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.smaug-route-team .sm-surface-capability-card {
  grid-column: span 2;
}

.smaug-route-team .sm-surface-capability-card:nth-child(1),
.smaug-route-team .sm-surface-capability-card:nth-child(5) {
  grid-column: span 3;
}

.smaug-route-support .sm-surface-generic-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.smaug-route-support .sm-surface-signal-board {
  background:
    radial-gradient(circle at 84% 70%, rgba(63, 255, 178, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(255, 118, 54, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.025);
}

.smaug-route-support .sm-surface-metrics-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
}

.smaug-route-support .sm-surface-metric:first-child {
  min-height: 260px;
}

.smaug-route-support .sm-surface-bottom-cta {
  border-color: rgba(63, 255, 178, 0.22);
}

/* ----- selected / cycle states ----- */
.sm-surface-signal-row.is-selected,
.sm-surface-capability-card.is-selected,
.sm-surface-roadmap-card.is-selected {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 48px rgba(0, 0, 0, 0.16);
}

/* ----- bottom CTA ----- */
.sm-surface-bottom-cta {
  align-items: center;
}

@keyframes smSurfaceScan {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(var(--route-grid-size, 92px), var(--route-grid-size, 92px), 0);
  }
}

@keyframes smTerminalSweep {

  0%,
  18% {
    transform: translateY(0);
    opacity: 0;
  }

  40%,
  62% {
    opacity: 1;
  }

  100% {
    transform: translateY(280%);
    opacity: 0;
  }
}

@keyframes smPulseFrame {

  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.38;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* ----- responsive ----- */
@media (max-width: 1180px) {

  .sm-surface-hero-grid,
  .sm-surface-profile-grid,
  .sm-surface-pricing-grid,
  .sm-surface-generic-grid,
  .sm-surface-dashboard-grid,
  .sm-surface-band-grid,
  .sm-surface-plan-grid,
  .sm-surface-roadmap-grid,
  .sm-surface-capability-grid,
  .sm-surface-project-grid,
  .sm-surface-security-grid,
  .sm-surface-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-surface-auth-stack,
  .sm-surface-dashboard-stack {
    grid-column: 1 / -1;
  }

  .sm-surface-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smaug-route-profile .sm-surface-dashboard-grid,
  .smaug-route-agents .sm-surface-capability-grid,
  .smaug-route-console .sm-surface-generic-grid,
  .smaug-route-console .sm-surface-capability-grid,
  .smaug-route-docs .sm-surface-generic-grid,
  .smaug-route-docs .sm-surface-capability-grid,
  .smaug-route-tasks .sm-surface-capability-grid,
  .smaug-route-team .sm-surface-generic-grid,
  .smaug-route-team .sm-surface-signal-list,
  .smaug-route-team .sm-surface-capability-grid,
  .smaug-route-support .sm-surface-generic-grid,
  .smaug-route-support .sm-surface-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smaug-route-agents .sm-surface-capability-card:first-child,
  .smaug-route-docs .sm-surface-capability-card:nth-child(3n + 1),
  .smaug-route-team .sm-surface-signal-row:first-child,
  .smaug-route-team .sm-surface-capability-card,
  .smaug-route-team .sm-surface-capability-card:nth-child(1),
  .smaug-route-team .sm-surface-capability-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .sm-surface-footer-inner,
  .sm-surface-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .sm-surface-main {
    padding-top: 108px;
    padding-bottom: 64px;
  }

  .sm-news-lead-card,
  .sm-news-story-card,
  .sm-news-detail-panel,
  .sm-news-related-link {
    gap: 14px;
  }

  .sm-news-media-lead,
  .sm-news-media-card,
  .sm-news-media-hero,
  .sm-news-media-related {
    min-height: 0;
  }

  .sm-news-media-lead {
    aspect-ratio: 1 / 1;
  }

  .sm-news-media-card,
  .sm-news-media-related,
  .sm-news-media-hero {
    aspect-ratio: 4 / 3;
  }

  .sm-news-media-fallback {
    gap: 14px;
    padding: 18px;
  }

  .sm-news-media-fallback-body strong {
    font-size: clamp(20px, 8vw, 32px);
  }

  .sm-news-media-fallback-body p {
    max-width: 100%;
    font-size: 13px;
  }

  .sm-news-meta {
    gap: 8px;
  }

  .sm-news-meta span {
    min-height: 28px;
    padding: 0 10px;
  }

  .sm-surface-hero-grid,
  .sm-surface-profile-grid,
  .sm-surface-pricing-grid,
  .sm-surface-generic-grid,
  .sm-surface-dashboard-grid,
  .sm-surface-band-grid,
  .sm-surface-plan-grid,
  .sm-surface-roadmap-grid,
  .sm-surface-capability-grid,
  .sm-surface-project-grid,
  .sm-surface-security-grid,
  .sm-surface-metrics-grid,
  .sm-surface-generic-metrics,
  .sm-surface-stat-grid,
  .sm-surface-compare-row {
    grid-template-columns: 1fr;
  }

  .sm-surface-title {
    font-size: clamp(38px, 12vw, 60px);
  }

  .sm-surface-stage-top,
  .sm-surface-plan-top,
  .sm-surface-section-head,
  .sm-surface-profile-top {
    flex-direction: column;
  }

  .sm-surface-timeline-item {
    grid-template-columns: 1fr;
  }

  .smaug-route-profile .sm-surface-dashboard-grid,
  .smaug-route-agents .sm-surface-capability-grid,
  .smaug-route-console .sm-surface-generic-grid,
  .smaug-route-console .sm-surface-capability-grid,
  .smaug-route-console .sm-surface-roadmap-card,
  .smaug-route-docs .sm-surface-generic-grid,
  .smaug-route-docs .sm-surface-capability-grid,
  .smaug-route-tasks .sm-surface-capability-grid,
  .smaug-route-team .sm-surface-generic-grid,
  .smaug-route-team .sm-surface-signal-list,
  .smaug-route-team .sm-surface-capability-grid,
  .smaug-route-support .sm-surface-generic-grid,
  .smaug-route-support .sm-surface-metrics-grid {
    grid-template-columns: 1fr;
  }

  .smaug-route-tasks .sm-surface-capability-card:nth-child(odd) {
    margin-top: 0;
  }

  .smaug-route-agents .sm-surface-signal-board,
  .smaug-route-console .sm-surface-signal-board,
  .smaug-route-docs .sm-surface-signal-board,
  .smaug-route-tasks .sm-surface-signal-board,
  .smaug-route-team .sm-surface-signal-board,
  .smaug-route-support .sm-surface-signal-board,
  .smaug-route-pricing .sm-surface-plan {
    min-height: auto;
  }

  .smaug-route-pricing .sm-surface-plan.is-featured,
  .smaug-route-pricing .sm-surface-plan.is-featured:hover,
  .smaug-route-pricing .sm-surface-plan:hover {
    transform: none;
  }

  .sm-surface-compare-row {
    gap: 4px;
  }

  .sm-surface-compare-row span {
    padding: 2px 0;
    font-size: 13px;
  }

  .sm-surface-compare-row.is-head {
    display: none;
  }

  .sm-surface-profile-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-surface-aurora {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ----- account center ----- */
.sm-account-shell {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sm-account-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  background: rgba(10, 14, 24, 0.84);
}

.sm-account-main,
.sm-account-sections,
.sm-account-forms-grid,
.sm-account-list {
  display: grid;
  gap: 16px;
}

.sm-account-sidebar-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sm-account-sidebar-head h2,
.sm-account-list-item h3,
.sm-account-header-meta dd,
.sm-account-meta-list dd {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

.sm-account-sidebar-head p,
.sm-account-list-item p,
.sm-account-field span,
.sm-account-list-meta span {
  margin: 0;
  color: rgba(246, 244, 239, 0.62);
  line-height: 1.65;
  word-break: break-word;
}

.sm-account-order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sm-account-nav,
.sm-account-meta-list,
.sm-account-header-meta {
  display: grid;
  gap: 12px;
}

.sm-account-meta-list>div,
.sm-account-header-meta>div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-account-meta-list dt,
.sm-account-header-meta dt,
.sm-account-nav-description,
.sm-account-field span,
.sm-account-list-meta span,
.sm-account-list-label {
  display: block;
  font-size: 12px;
  color: rgba(246, 244, 239, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-account-meta-list dd,
.sm-account-header-meta dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.sm-account-nav {
  gap: 10px;
}

.sm-account-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px 0 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.sm-account-nav-item::after {
  content: '›';
  font-size: 22px;
  line-height: 1;
  color: rgba(246, 244, 239, 0.38);
  transition: color 0.22s ease, transform 0.22s ease;
}

.sm-account-nav-item:hover,
.sm-account-nav-item.is-current {
  border-color: rgba(111, 231, 255, 0.28);
  background: rgba(111, 231, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 18px 36px rgba(9, 17, 29, 0.16);
}

.sm-account-nav-item:hover::after,
.sm-account-nav-item.is-current::after {
  color: rgba(246, 244, 239, 0.92);
  transform: translateX(2px);
}

.sm-account-nav-label {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.sm-account-logout {
  width: 100%;
}

.sm-account-main {
  min-width: 0;
  gap: 20px;
}

.sm-account-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 20px;
  background: rgba(10, 14, 24, 0.84);
}

.sm-account-header-copy,
.sm-account-header-stats {
  display: grid;
  gap: 16px;
}

.sm-account-header-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.sm-account-header-summary {
  margin: 0;
  max-width: 680px;
  color: rgba(246, 244, 239, 0.72);
  line-height: 1.68;
}

.sm-account-header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sm-account-header-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(246, 244, 239, 0.74);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sm-account-header-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.sm-account-header-stat {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.sm-account-header-stat strong {
  color: rgba(246, 244, 239, 0.96);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sm-account-header-stat span {
  color: rgba(246, 244, 239, 0.62);
  line-height: 1.6;
}

.sm-account-forms-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-account-section {
  background: rgba(10, 14, 24, 0.84);
}

.sm-account-list-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-account-list-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.sm-account-list-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.sm-account-list-topline,
.sm-account-list-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.sm-account-action-link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.sm-account-action-link strong {
  color: rgba(246, 244, 239, 0.88);
}

.sm-account-action-link:hover {
  border-color: rgba(111, 231, 255, 0.22);
}

.sm-account-list-item-time {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.sm-account-list-item-time>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 244, 239, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.sm-account-order-status {
  color: #09111d;
}

.sm-account-order-status.is-active {
  background: linear-gradient(135deg, #6fe7ff, #a7ffd9);
}

.sm-account-order-status.is-processing {
  background: linear-gradient(135deg, #ff9f6e, #ffd8ae);
}

.sm-account-order-status.is-scheduled {
  background: linear-gradient(135deg, #8792ff, #d4d8ff);
}

.sm-account-order-detail,
.sm-account-orders-list {
  display: grid;
  gap: 16px;
}

.sm-account-order-detail-summary {
  margin: 0;
  color: rgba(246, 244, 239, 0.72);
  line-height: 1.72;
}

body.sm-account-order-modal-open {
  overflow: hidden;
}

.sm-account-order-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 28px;
}

.sm-account-order-modal[hidden] {
  display: none;
}

.sm-account-order-modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 8, 0.68);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.sm-account-order-modal-panel {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(10, 14, 24, 0.96);
  box-shadow: 0 32px 90px rgba(8, 10, 22, 0.34);
}

.sm-account-order-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.sm-account-order-modal-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.88);
}

.sm-account-order-modal-close span:first-child {
  transform: rotate(45deg);
}

.sm-account-order-modal-close span:last-child {
  transform: rotate(-45deg);
}

.sm-account-order-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.sm-account-order-modal-panel .sm-surface-section-head {
  padding-right: 64px;
}

.sm-account-order-modal-meta {
  margin-top: -6px;
}

.sm-account-selected-order-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sm-account-selected-order-main {
  display: grid;
  gap: 12px;
}

.sm-account-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sm-account-order-detail-block,
.sm-account-order-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sm-account-order-detail-block {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.sm-account-order-detail-block strong {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.sm-account-order-detail-items {
  display: grid;
  gap: 10px;
}

.sm-account-order-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(246, 244, 239, 0.8);
}

.sm-account-order-detail-list li {
  line-height: 1.7;
}

.sm-account-order-card {
  padding: 18px 20px;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.sm-account-order-card.is-current,
.sm-account-order-card:hover {
  border-color: rgba(111, 231, 255, 0.22);
  background: rgba(111, 231, 255, 0.06);
  box-shadow: 0 18px 34px rgba(9, 17, 29, 0.14);
  transform: translateY(-2px);
}

.sm-account-order-card-top,
.sm-account-order-card-footer,
.sm-account-order-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sm-account-order-card-top {
  margin-bottom: 14px;
}

.sm-account-order-card-meta {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sm-account-order-reference,
.sm-account-order-amount {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

.sm-account-order-reference {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 244, 239, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sm-account-order-amount {
  color: rgba(246, 244, 239, 0.96);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.sm-account-order-card-footer {
  align-items: center;
}

.sm-account-order-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sm-account-order-pay-form {
  display: block;
}

.sm-account-order-pay-form-inline {
  margin-top: 18px;
}

.sm-account-order-payment-note {
  margin: 18px 0 0;
  color: rgba(246, 244, 239, 0.68);
  line-height: 1.7;
}

.sm-account-order-pay-box {
  display: grid;
  gap: 10px;
  min-width: min(100%, 360px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.sm-account-order-pay-title {
  color: rgba(246, 244, 239, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-account-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sm-account-payment-method {
  position: relative;
  display: block;
  cursor: pointer;
}

.sm-account-payment-method input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.sm-account-payment-method-body {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.sm-account-payment-method-body strong {
  color: rgba(246, 244, 239, 0.94);
  font-size: 15px;
}

.sm-account-payment-method-body small {
  color: rgba(246, 244, 239, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.sm-account-payment-method input:checked+.sm-account-payment-method-body {
  border-color: rgba(111, 231, 255, 0.28);
  background: rgba(111, 231, 255, 0.12);
  box-shadow: 0 12px 24px rgba(9, 17, 29, 0.16);
  transform: translateY(-1px);
}

.sm-account-order-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 244, 239, 0.92);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.sm-account-order-detail-link:hover,
.sm-account-order-detail-link[aria-current='page'] {
  border-color: rgba(111, 231, 255, 0.24);
  background: rgba(111, 231, 255, 0.1);
  transform: translateY(-1px);
}

.sm-account-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.sm-account-pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sm-account-pagination-link,
.sm-account-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 244, 239, 0.9);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.sm-account-pagination-page {
  min-width: 40px;
  padding: 0 12px;
}

.sm-account-pagination-link:hover,
.sm-account-pagination-page:hover,
.sm-account-pagination-page.is-current {
  border-color: rgba(111, 231, 255, 0.24);
  background: rgba(111, 231, 255, 0.1);
  color: rgba(246, 244, 239, 0.96);
}

.sm-account-pagination-link.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.sm-account-pagination-status {
  color: rgba(246, 244, 239, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-account-orders-primary,
.sm-account-orders-date {
  display: grid;
  gap: 8px;
}

.sm-account-orders-primary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.sm-account-orders-primary p,
.sm-account-orders-date span {
  margin: 0;
  color: rgba(246, 244, 239, 0.62);
  line-height: 1.6;
}

.sm-account-orders-row>strong,
.sm-account-orders-date strong {
  color: rgba(246, 244, 239, 0.9);
  font-size: 15px;
  line-height: 1.5;
}

.sm-account-form {
  display: grid;
  gap: 14px;
}

.sm-account-field {
  display: grid;
  gap: 8px;
}

.sm-account-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sm-text);
  background: rgba(255, 255, 255, 0.035);
  box-sizing: border-box;
}

.sm-account-field input:focus {
  outline: none;
  border-color: rgba(111, 231, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(111, 231, 255, 0.08);
}

html[data-theme='light'] .smaug-route-auth {
  --sm-auth-accent: #5a74ff;
  --sm-auth-accent-soft: rgba(90, 116, 255, 0.14);
  --sm-auth-secondary: #1b3566;
}

html[data-theme='light'] .sm-auth-background {
  background:
    radial-gradient(circle at 16% 28%, rgba(90, 116, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(27, 53, 102, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(248, 250, 255, 0.94), rgba(227, 235, 248, 0.98));
}

html[data-theme='light'] .sm-auth-background::after {
  background:
    linear-gradient(90deg, rgba(15, 24, 40, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 24, 40, 0.04) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(50, 72, 219, 0.08), transparent 58%);
  opacity: 0.36;
}

html[data-theme='light'] .sm-auth-canvas {
  opacity: 0.28;
}

html[data-theme='light'] .sm-auth-line {
  background: linear-gradient(90deg, rgba(15, 24, 40, 0.07), rgba(50, 72, 219, 0.28), rgba(15, 24, 40, 0.07));
  opacity: 0.72;
}

html[data-theme='light'] .sm-auth-hud,
html[data-theme='light'] .sm-auth-code-label,
html[data-theme='light'] .sm-auth-code-card code {
  color: rgba(15, 24, 40, 0.62);
}

html[data-theme='light'] .sm-auth-side-label {
  color: rgba(50, 72, 219, 0.72);
}

html[data-theme='light'] .sm-auth-word {
  -webkit-text-stroke: 1px rgba(15, 24, 40, 0.18);
  text-shadow: 0 0 80px rgba(50, 72, 219, 0.08);
}

html[data-theme='light'] .sm-auth-plane {
  border-color: rgba(15, 24, 40, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(240, 245, 255, 0.28));
}

html[data-theme='light'] .sm-auth-code-card {
  border-color: rgba(15, 24, 40, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 255, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px rgba(41, 56, 88, 0.1);
}

html[data-theme='light'] .sm-auth-code-card strong {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .sm-auth-card {
  border-color: rgba(15, 24, 40, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 255, 0.74)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 28px 90px rgba(41, 56, 88, 0.12),
    0 0 0 1px rgba(15, 24, 40, 0.04);
}

html[data-theme='light'] .sm-auth-card::before {
  background: linear-gradient(140deg, var(--sm-auth-accent-soft), transparent 38%, transparent 72%, rgba(50, 72, 219, 0.06));
}

html[data-theme='light'] .sm-auth-switch {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .sm-auth-switch-indicator {
  background:
    linear-gradient(135deg, rgba(90, 116, 255, 0.16), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(41, 56, 88, 0.1),
    0 0 22px rgba(90, 116, 255, 0.1);
}

html[data-theme='light'] .sm-auth-head p,
html[data-theme='light'] .sm-auth-notice p,
html[data-theme='light'] .sm-auth-actions p {
  color: rgba(15, 24, 40, 0.62);
}

html[data-theme='light'] .sm-auth-social-divider {
  color: rgba(15, 24, 40, 0.44);
}

html[data-theme='light'] .sm-auth-social-divider::before,
html[data-theme='light'] .sm-auth-social-divider::after {
  background: rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .sm-auth-social-button {
  border-color: #d2d7e0;
  background: #ffffff;
  color: #3c4043;
}

html[data-theme='light'] .sm-auth-social-mark {
  background-color: transparent;
  color: rgba(15, 24, 40, 0.88);
}

html[data-theme='light'] .sm-auth-social-copy strong {
  color: #3c4043;
}

html[data-theme='light'] .sm-auth-notice {
  border-color: rgba(15, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme='light'] .sm-auth-field input {
  border-color: rgba(15, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sm-text);
}

html[data-theme='light'] .sm-auth-switch-link {
  color: rgba(15, 24, 40, 0.5);
}

html[data-theme='light'] .sm-auth-switch-link:hover,
html[data-theme='light'] .sm-auth-switch-link.is-active {
  color: rgba(15, 24, 40, 0.94);
}

html[data-theme='light'] .sm-auth-actions a {
  color: var(--sm-cobalt);
}

html[data-theme='light'] .smaug-route-auth .sm-surface-button-solid {
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(61, 78, 161, 0.22);
}

html[data-theme='light'] .smaug-route-auth .sm-surface-field input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 24, 40, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme='light'] .sm-auth-card {
  border-color: rgba(15, 24, 40, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 255, 0.8)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 28px 72px rgba(41, 56, 88, 0.16),
    0 0 0 1px rgba(15, 24, 40, 0.04);
}

html[data-theme='light'] .sm-auth-background {
  background:
    radial-gradient(circle at 16% 28%, rgba(90, 116, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(27, 53, 102, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(228, 236, 248, 0.99));
}

html[data-theme='light'] .sm-auth-background::after {
  background:
    linear-gradient(90deg, rgba(15, 24, 40, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 24, 40, 0.05) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(50, 72, 219, 0.09), transparent 58%);
  opacity: 0.44;
}

html[data-theme='light'] .sm-account-sidebar,
html[data-theme='light'] .sm-account-header,
html[data-theme='light'] .sm-account-section {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(41, 56, 88, 0.08);
  color: rgba(15, 24, 40, 0.94);
}

html[data-theme='light'] .sm-surface-profile-email {
  color: rgba(50, 72, 219, 0.82);
}

html[data-theme='light'] .sm-account-sidebar-head p,
html[data-theme='light'] .sm-account-list-item p,
html[data-theme='light'] .sm-account-field span,
html[data-theme='light'] .sm-account-list-meta span,
html[data-theme='light'] .sm-account-summary,
html[data-theme='light'] .sm-account-orders-primary p,
html[data-theme='light'] .sm-account-orders-date span,
html[data-theme='light'] .sm-account-header-summary,
html[data-theme='light'] .sm-account-header-stat span,
html[data-theme='light'] .sm-account-header-chip,
html[data-theme='light'] .sm-account-meta-list dt,
html[data-theme='light'] .sm-account-header-meta dt,
html[data-theme='light'] .sm-account-order-detail-summary,
html[data-theme='light'] .sm-account-pagination-status,
html[data-theme='light'] .sm-surface-form-head p,
html[data-theme='light'] .sm-account-nav-description,
html[data-theme='light'] .sm-account-list-label {
  color: rgba(15, 24, 40, 0.62);
}

html[data-theme='light'] .sm-account-sidebar .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-header .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-section .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-order-modal-panel .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-sidebar-head h2,
html[data-theme='light'] .sm-account-header-title,
html[data-theme='light'] .sm-account-section h2,
html[data-theme='light'] .sm-account-list-item h3,
html[data-theme='light'] .sm-account-orders-primary h3,
html[data-theme='light'] .sm-account-nav-label,
html[data-theme='light'] .sm-account-meta-list dd,
html[data-theme='light'] .sm-account-order-reference,
html[data-theme='light'] .sm-account-order-detail-block strong,
html[data-theme='light'] .sm-account-order-detail-list {
  color: rgba(15, 24, 40, 0.94);
}

html[data-theme='light'] .sm-account-meta-list>div,
html[data-theme='light'] .sm-account-header-meta>div,
html[data-theme='light'] .sm-account-nav-item,
html[data-theme='light'] .sm-account-list-item,
html[data-theme='light'] .sm-account-order-card,
html[data-theme='light'] .sm-account-order-detail-block,
html[data-theme='light'] .sm-account-order-modal-panel,
html[data-theme='light'] .sm-account-order-detail-link,
html[data-theme='light'] .sm-account-pagination-link,
html[data-theme='light'] .sm-account-pagination-page,
html[data-theme='light'] .sm-account-field input,
html[data-theme='light'] .sm-account-header-chip,
html[data-theme='light'] .sm-account-header-stat {
  border-color: rgba(15, 24, 40, 0.09);
}

html[data-theme='light'] .sm-account-nav-item:hover,
html[data-theme='light'] .sm-account-nav-item.is-current {
  border-color: rgba(50, 72, 219, 0.24);
  color: rgba(15, 24, 40, 0.96);
}

html[data-theme='light'] .sm-account-nav-item::after {
  color: rgba(15, 24, 40, 0.36);
}

html[data-theme='light'] .sm-account-nav-item:hover::after,
html[data-theme='light'] .sm-account-nav-item.is-current::after {
  color: rgba(50, 72, 219, 0.72);
}

html[data-theme='light'] .sm-account-header-chip,
html[data-theme='light'] .sm-account-header-stat,
html[data-theme='light'] .sm-account-field input,
html[data-theme='light'] .sm-account-order-card,
html[data-theme='light'] .sm-account-order-detail-block,
html[data-theme='light'] .sm-account-order-modal-panel,
html[data-theme='light'] .sm-account-order-detail-link,
html[data-theme='light'] .sm-account-pagination-link,
html[data-theme='light'] .sm-account-pagination-page,
html[data-theme='light'] .sm-account-nav-item {
  background: rgba(242, 246, 255, 0.76);
}

html[data-theme='light'] .sm-account-sidebar .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-header .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-section .sm-surface-panel-eyebrow,
html[data-theme='light'] .sm-account-order-modal-panel .sm-surface-panel-eyebrow {
  background: rgba(228, 236, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(50, 72, 219, 0.12);
}

html[data-theme='light'] .smaug-route-profile .sm-surface-button,
html[data-theme='light'] .smaug-route-profile-orders .sm-surface-button,
html[data-theme='light'] .smaug-route-profile-security .sm-surface-button,
html[data-theme='light'] .sm-account-order-detail-link,
html[data-theme='light'] .sm-account-pagination-link,
html[data-theme='light'] .sm-account-pagination-page {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .smaug-route-profile .sm-surface-button-ghost,
html[data-theme='light'] .smaug-route-profile-orders .sm-surface-button-ghost,
html[data-theme='light'] .smaug-route-profile-security .sm-surface-button-ghost {
  border: 1px solid rgba(15, 24, 40, 0.1);
  background: rgba(242, 246, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-theme='light'] .smaug-route-profile .sm-surface-button-solid,
html[data-theme='light'] .smaug-route-profile-orders .sm-surface-button-solid,
html[data-theme='light'] .smaug-route-profile-security .sm-surface-button-solid {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, #4258df, #6982ff);
  box-shadow: 0 18px 34px rgba(61, 78, 161, 0.22);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-panel,
html[data-theme='light'] .smaug-route-pricing .sm-surface-pricing-side,
html[data-theme='light'] .smaug-route-pricing .sm-surface-compare,
html[data-theme='light'] .smaug-route-pricing .sm-surface-roadmap-card,
html[data-theme='light'] .smaug-route-pricing .sm-surface-bottom-cta,
html[data-theme='light'] .smaug-route-news .sm-surface-panel,
html[data-theme='light'] .smaug-route-news .sm-surface-bottom-cta {
  color: rgba(15, 24, 40, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.92));
  border-color: rgba(15, 24, 40, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 54px rgba(41, 56, 88, 0.12);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-panel::after {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.54), transparent 28%, transparent 74%, rgba(50, 72, 219, 0.06));
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-body,
html[data-theme='light'] .smaug-route-pricing .sm-surface-plan-body,
html[data-theme='light'] .smaug-route-pricing .sm-surface-billing-note,
html[data-theme='light'] .smaug-route-pricing .sm-surface-plan-price>span,
html[data-theme='light'] .smaug-route-pricing .sm-surface-plan-list li,
html[data-theme='light'] .smaug-route-pricing .sm-surface-pricing-highlight p,
html[data-theme='light'] .smaug-route-pricing .sm-surface-roadmap-card p,
html[data-theme='light'] .smaug-route-pricing .sm-surface-compare-row span,
html[data-theme='light'] .smaug-route-news .sm-surface-body,
html[data-theme='light'] .smaug-route-news .sm-surface-project-card p,
html[data-theme='light'] .smaug-route-news .sm-surface-timeline-item p,
html[data-theme='light'] .smaug-route-news .sm-news-meta,
html[data-theme='light'] .smaug-route-news .sm-news-radar-item p,
html[data-theme='light'] .smaug-route-news .sm-news-article-section p,
html[data-theme='light'] .smaug-route-news .sm-news-bullet-list li,
html[data-theme='light'] .smaug-route-news .sm-news-related-link p {
  color: rgba(15, 24, 40, 0.72);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-kicker,
html[data-theme='light'] .smaug-route-pricing .sm-surface-panel-eyebrow,
html[data-theme='light'] .smaug-route-pricing .sm-surface-featured-pill,
html[data-theme='light'] .smaug-route-news .sm-surface-kicker,
html[data-theme='light'] .smaug-route-news .sm-surface-panel-eyebrow {
  color: rgba(15, 24, 40, 0.72);
  background: rgba(228, 236, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(50, 72, 219, 0.12);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-featured-pill::before {
  box-shadow: 0 0 14px rgba(240, 107, 55, 0.22);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-title,
html[data-theme='light'] .smaug-route-pricing .sm-surface-pricing-highlight h2,
html[data-theme='light'] .smaug-route-pricing .sm-surface-plan h2,
html[data-theme='light'] .smaug-route-pricing .sm-surface-section-head h2,
html[data-theme='light'] .smaug-route-pricing .sm-surface-roadmap-card h3,
html[data-theme='light'] .smaug-route-pricing .sm-surface-bottom-cta h2,
html[data-theme='light'] .smaug-route-pricing .sm-surface-plan-price strong,
html[data-theme='light'] .smaug-route-news .sm-surface-title,
html[data-theme='light'] .smaug-route-news .sm-surface-section-head h2,
html[data-theme='light'] .smaug-route-news .sm-news-lead-card h2,
html[data-theme='light'] .smaug-route-news .sm-news-radar h2,
html[data-theme='light'] .smaug-route-news .sm-news-detail-title,
html[data-theme='light'] .smaug-route-news .sm-news-article-section h2,
html[data-theme='light'] .smaug-route-news .sm-surface-project-card h3,
html[data-theme='light'] .smaug-route-news .sm-surface-timeline-item h3,
html[data-theme='light'] .smaug-route-news .sm-surface-bottom-cta h2,
html[data-theme='light'] .smaug-route-news .sm-surface-metric strong,
html[data-theme='light'] .smaug-route-news .sm-news-radar-item strong {
  color: rgba(15, 24, 40, 0.94);
}

html[data-theme='light'] .smaug-route-news .sm-news-radar-item {
  background: rgba(242, 246, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-news .sm-news-media {
  background:
    radial-gradient(circle at 18% 20%, rgba(50, 72, 219, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(237, 243, 255, 0.98), rgba(220, 232, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-news .sm-news-media::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18));
}

html[data-theme='light'] .smaug-route-news .sm-news-media-fallback span {
  color: rgba(15, 24, 40, 0.68);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme='light'] .smaug-route-news .sm-news-media-fallback-kicker,
html[data-theme='light'] .smaug-route-news .sm-news-media-fallback-footer span {
  color: rgba(15, 24, 40, 0.68);
  background: rgba(255, 255, 255, 0.54);
}

html[data-theme='light'] .smaug-route-news .sm-news-media-fallback-body strong {
  color: rgba(15, 24, 40, 0.94);
}

html[data-theme='light'] .smaug-route-news .sm-news-media-fallback-body p {
  color: rgba(15, 24, 40, 0.72);
}

html[data-theme='light'] .smaug-route-news .sm-news-meta span {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-news .sm-news-related-link {
  background: rgba(242, 246, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-news .sm-news-pagination .page-numbers {
  color: rgba(15, 24, 40, 0.82);
  background: rgba(242, 246, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-news .sm-news-pagination a.page-numbers:hover {
  color: rgba(15, 24, 40, 0.96);
  background: rgba(228, 236, 255, 0.96);
}

html[data-theme='light'] .smaug-route-news .sm-news-pagination .page-numbers.current {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(50, 72, 219, 0.92);
}

html[data-theme='light'] .smaug-route-news .sm-news-story-link,
html[data-theme='light'] .smaug-route-news .sm-news-back-link {
  color: rgba(50, 72, 219, 0.86);
}

html[data-theme='light'] .smaug-route-news .sm-news-story-link:hover,
html[data-theme='light'] .smaug-route-news .sm-news-back-link:hover {
  color: rgba(15, 24, 40, 0.96);
}

@media (max-width: 1099px) {
  .sm-news-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-news-related-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-news-media-related {
    aspect-ratio: 16 / 9;
  }
}

.smaug-route-news {
  --sm-news-paper: #15110d;
  --sm-news-paper-soft: #1d1712;
  --sm-news-ink: #f2e9db;
  --sm-news-muted: rgba(242, 233, 219, 0.68);
  --sm-news-rule: rgba(242, 233, 219, 0.14);
  --sm-news-accent: #d9a869;
  --sm-news-highlight: rgba(217, 168, 105, 0.28);
  --sm-news-serif: 'Iowan Old Style', 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
}

html[data-theme='light'] .smaug-route-news {
  --sm-news-paper: #efe6d9;
  --sm-news-paper-soft: #f8f2e8;
  --sm-news-ink: #13100d;
  --sm-news-muted: rgba(19, 16, 13, 0.66);
  --sm-news-rule: rgba(19, 16, 13, 0.12);
  --sm-news-accent: #b8793e;
  --sm-news-highlight: rgba(215, 183, 84, 0.4);
}

.smaug-route-news .sm-surface-main {
  padding-top: 134px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(180deg, var(--sm-news-paper-soft), var(--sm-news-paper));
}

.smaug-route-news .sm-surface-main>section,
.smaug-route-news .sm-news-masthead,
.smaug-route-news .sm-news-editorial-grid,
.smaug-route-news .sm-news-detail-shell,
.smaug-route-news .sm-news-detail-grid {
  width: min(100%, 1360px);
  margin-inline: auto;
}

.smaug-route-news .sm-surface-panel,
.smaug-route-news .sm-news-editorial-card,
.smaug-route-news .sm-news-detail-stage-aside,
.smaug-route-news .sm-news-detail-stage-media,
.smaug-route-news .sm-news-article,
.smaug-route-news .sm-news-related-panel,
.smaug-route-news .sm-news-editorial-cta {
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.smaug-route-news .sm-surface-panel::before {
  display: none;
}

.smaug-route-news .sm-surface-panel:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.smaug-route-news .sm-surface-kicker,
.smaug-route-news .sm-surface-panel-eyebrow,
.smaug-route-news .sm-news-editorial-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--sm-news-muted);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(223, 215, 200, 0.4);
  box-shadow: inset 0 0 0 1px rgba(62, 48, 30, 0.08);
}

.smaug-route-news .sm-news-masthead {
  display: grid;
  gap: 22px;
  margin-top: 10px;
  margin-bottom: 34px;
}

.smaug-route-news .sm-news-masthead-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--sm-news-ink);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.smaug-route-news .sm-news-masthead-marker span {
  width: 78px;
  height: 1px;
  background: var(--sm-news-ink);
}

.smaug-route-news .sm-news-masthead-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 760px;
}

.smaug-route-news .sm-news-masthead-title,
.smaug-route-news .sm-news-detail-title,
.smaug-route-news .sm-news-editorial-card-text.is-primary h2,
.smaug-route-news .sm-news-editorial-card-feature h2,
.smaug-route-news .sm-news-editorial-card-side h3,
.smaug-route-news .sm-news-editorial-card-stream h3,
.smaug-route-news .sm-news-related-link strong,
.smaug-route-news .sm-news-editorial-cta h2,
.smaug-route-news .sm-news-editorial-heading h2 {
  margin: 0;
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.smaug-route-news .sm-news-masthead-title {
  display: grid;
  gap: 2px;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
}

.smaug-route-news .sm-news-masthead-body,
.smaug-route-news .sm-news-editorial-card p,
.smaug-route-news .sm-news-detail-excerpt,
.smaug-route-news .sm-news-detail-note p,
.smaug-route-news .sm-news-related-link p {
  margin: 0;
  color: var(--sm-news-muted);
  font-size: 16px;
  line-height: 1.72;
}

.smaug-route-news .sm-news-editorial-grid {
  margin-top: 36px;
}

.smaug-route-news .sm-news-waterfall {
  position: relative;
  column-count: 3;
  column-gap: 44px;
  column-rule: 0;
  padding-inline: 10px;
}

.smaug-route-news .sm-news-waterfall::before,
.smaug-route-news .sm-news-waterfall::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--sm-news-rule);
  pointer-events: none;
}

.smaug-route-news .sm-news-waterfall::before {
  left: calc(33.333333% - 8px);
}

.smaug-route-news .sm-news-waterfall::after {
  left: calc(66.666667%);
}

.smaug-route-news .sm-news-waterfall>* {
  box-sizing: border-box;
  break-inside: avoid;
  display: inline-grid;
  width: 100%;
  margin: 0 0 28px;
  padding-left: 8px;
  padding-right: 16px;
}

.smaug-route-news .sm-news-detail-header-inner,
.smaug-route-news .sm-news-detail-stage-grid,
.smaug-route-news .sm-news-detail-grid,
.smaug-route-news .sm-news-editorial-cta {
  border-top: 1px solid var(--sm-news-rule);
}

.smaug-route-news .sm-news-editorial-card,
.smaug-route-news .sm-news-detail-stage-aside,
.smaug-route-news .sm-news-related-panel,
.smaug-route-news .sm-news-article,
.smaug-route-news .sm-news-editorial-cta {
  padding-top: 20px;
}

.smaug-route-news .sm-news-waterfall-card {
  position: relative;
  display: grid;
  gap: 16px;
}

.smaug-route-news .sm-news-waterfall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 16px;
  border-top: 1px solid var(--sm-news-rule);
}

.smaug-route-news .sm-news-card-title-link {
  color: inherit;
  text-decoration: none;
}

.smaug-route-news .sm-news-card-title-link:hover {
  color: var(--sm-news-accent);
}

.smaug-route-news .sm-news-waterfall-card h3 {
  margin: 0;
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.03;
}

.smaug-route-news .sm-news-related-link strong {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.03;
}

.smaug-route-news .sm-news-editorial-audio-bar {
  display: flex;
  align-items: center;
  width: min(100%, 220px);
  height: 10px;
  border-radius: 999px;
  background: rgba(128, 120, 104, 0.22);
  overflow: hidden;
}

.smaug-route-news .sm-news-editorial-audio-bar span {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--sm-news-accent), #f08f4d);
}

.smaug-route-news .sm-news-media,
.smaug-route-news .sm-news-media-related,
.smaug-route-news .sm-news-media-lead,
.smaug-route-news .sm-news-media-card,
.smaug-route-news .sm-news-media-hero {
  position: relative;
  border-radius: 0;
  background: #16120f;
  box-shadow: none;
}

.smaug-route-news .sm-news-media-eyebrow {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 14, 10, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.smaug-route-news .sm-news-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
}

.smaug-route-news .sm-news-media-image {
  filter: grayscale(1) contrast(1.04);
}

.smaug-route-news .sm-news-media-fallback {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}

.smaug-route-news .sm-news-media-fallback-grid {
  opacity: 0.22;
}

.smaug-route-news .sm-news-media-fallback-tag,
.smaug-route-news .sm-news-media-fallback-kicker,
.smaug-route-news .sm-news-media-fallback-footer span {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.24);
}

.smaug-route-news .sm-news-media-fallback-body strong {
  font-family: var(--sm-news-serif);
}

.smaug-route-news .sm-news-byline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
}

.smaug-route-news .sm-news-byline-avatar,
.smaug-route-news .sm-news-byline-avatar-fallback,
.smaug-route-news .sm-news-byline-avatar-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.smaug-route-news .sm-news-byline-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(128, 120, 104, 0.16);
}

.smaug-route-news .sm-news-byline-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-news-ink);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 700;
}

.smaug-route-news .sm-news-byline-copy {
  display: grid;
  gap: 2px;
}

.smaug-route-news .sm-news-byline-copy strong,
.smaug-route-news .sm-news-byline-copy em {
  font-style: normal;
}

.smaug-route-news .sm-news-byline-copy strong {
  color: var(--sm-news-ink);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 17px;
}

.smaug-route-news .sm-news-byline-copy em {
  color: var(--sm-news-muted);
  font-size: 14px;
}

.smaug-route-news .sm-news-byline-compact .sm-news-byline-avatar,
.smaug-route-news .sm-news-byline-compact .sm-news-byline-avatar-fallback,
.smaug-route-news .sm-news-byline-compact .sm-news-byline-avatar-image {
  width: 36px;
  height: 36px;
}

.smaug-route-news .sm-news-meta {
  gap: 8px;
  color: var(--sm-news-muted);
}

.smaug-route-news .sm-news-meta span {
  min-height: 28px;
  padding: 0 10px;
  color: var(--sm-news-muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--sm-news-rule);
}

.smaug-route-news .sm-news-story-link,
.smaug-route-news .sm-news-back-link {
  color: var(--sm-news-ink);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.smaug-route-news .sm-news-story-link {
  position: relative;
  padding-bottom: 2px;
}

.smaug-route-news .sm-news-story-link::after,
.smaug-route-news .sm-news-back-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.smaug-route-news .sm-news-story-link:hover,
.smaug-route-news .sm-news-back-link:hover {
  color: var(--sm-news-accent);
  transform: none;
}

.smaug-route-news .sm-news-editorial-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
}

.smaug-route-news .sm-news-detail-header {
  margin-top: 4px;
}

.smaug-route-news .sm-news-detail-header-inner,
.smaug-route-news .sm-news-detail-stage-grid,
.smaug-route-news .sm-news-detail-grid {
  display: grid;
  gap: 22px;
  padding-top: 20px;
}

.smaug-route-news .sm-news-detail-header-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.smaug-route-news .sm-news-detail-stage-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: start;
  margin-top: 30px;
}

.smaug-route-news .sm-news-detail-stage-aside,
.smaug-route-news .sm-news-related-panel {
  display: grid;
  gap: 22px;
}

.smaug-route-news .sm-news-detail-note {
  display: grid;
  gap: 12px;
}

.smaug-route-news .sm-news-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.smaug-route-news .sm-news-detail-facts div {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--sm-news-rule);
}

.smaug-route-news .sm-news-detail-facts span {
  color: var(--sm-news-muted);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smaug-route-news .sm-news-detail-facts strong {
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-size: 24px;
  line-height: 1.1;
}

.smaug-route-news .sm-news-detail-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-top: 32px;
}

.smaug-route-news .sm-news-article {
  padding-right: 24px;
}

.smaug-route-news .sm-news-detail-content.is-wordpress-content {
  color: inherit;
}

.smaug-route-news .sm-news-detail-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--sm-news-rule);
}

.smaug-route-news .sm-news-detail-pagination-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.smaug-route-news .sm-news-detail-pagination-link span {
  color: var(--sm-news-muted);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smaug-route-news .sm-news-detail-pagination-link strong {
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.08;
}

.smaug-route-news .sm-news-detail-pagination-link.is-next {
  text-align: right;
}

.smaug-route-news .sm-news-detail-pagination-link:hover strong {
  color: var(--sm-news-accent);
}

.smaug-route-news .sm-news-article-content {
  color: var(--sm-news-ink);
}

.smaug-route-news .sm-news-article-content>p:first-of-type::first-letter {
  float: left;
  margin: 12px 12px 0 0;
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.75;
}

.smaug-route-news .sm-news-article-content p,
.smaug-route-news .sm-news-article-content li,
.smaug-route-news .sm-news-article-section p,
.smaug-route-news .sm-news-bullet-list li {
  color: var(--sm-news-muted);
  font-size: 18px;
  line-height: 1.9;
}

.smaug-route-news .sm-news-article-content h2,
.smaug-route-news .sm-news-article-content h3,
.smaug-route-news .sm-news-article-section h2 {
  color: var(--sm-news-ink);
  font-family: var(--sm-news-serif);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.smaug-route-news .sm-news-editorial-heading {
  display: grid;
  gap: 6px;
}

.smaug-route-news .sm-news-related-list {
  gap: 18px;
}

.smaug-route-news .sm-news-related-link {
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sm-news-rule);
  color: inherit;
  background: transparent;
}

.smaug-route-news .sm-news-related-copy {
  gap: 12px;
}

.smaug-route-news .sm-news-pagination {
  justify-content: center;
  margin-top: 8px;
}

.smaug-route-news .sm-news-pagination .page-numbers {
  color: var(--sm-news-ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--sm-news-rule);
}

.smaug-route-news .sm-news-pagination .page-numbers.current {
  color: var(--sm-news-paper);
  background: var(--sm-news-ink);
}

@media (max-width: 1180px) {

  .smaug-route-news .sm-news-detail-stage-grid,
  .smaug-route-news .sm-news-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smaug-route-news .sm-news-detail-pagination {
    grid-template-columns: 1fr;
  }

  .smaug-route-news .sm-news-detail-pagination-link.is-next {
    text-align: left;
  }

  .smaug-route-news .sm-news-waterfall {
    column-count: 2;
    column-gap: 34px;
  }

  .smaug-route-news .sm-news-waterfall::before {
    left: calc(50% - 4px);
  }

  .smaug-route-news .sm-news-waterfall::after {
    display: none;
  }

  .smaug-route-news .sm-news-detail-stage-aside,
  .smaug-route-news .sm-news-related-panel {
    border-left: 0;
    padding-left: 0;
  }

}

@media (max-width: 780px) {
  .smaug-route-news .sm-surface-main {
    padding-top: 114px;
  }

  .smaug-route-news .sm-news-masthead-title {
    font-size: clamp(38px, 12vw, 62px);
  }

  .smaug-route-news .sm-news-detail-stage-grid,
  .smaug-route-news .sm-news-detail-grid {
    grid-template-columns: 1fr;
  }

  .smaug-route-news .sm-news-waterfall {
    column-count: 1;
    column-gap: 0;
    column-rule: 0;
    padding-inline: 0;
  }

  .smaug-route-news .sm-news-waterfall::before,
  .smaug-route-news .sm-news-waterfall::after {
    display: none;
  }

  .smaug-route-news .sm-news-editorial-cta {
    flex-direction: column;
    align-items: start;
  }

  .smaug-route-news .sm-news-related-link {
    grid-template-columns: 1fr;
  }

  .smaug-route-news .sm-news-article {
    padding-right: 0;
  }

  .smaug-route-news .sm-news-waterfall-card h3,
  .smaug-route-news .sm-news-detail-title,
  .smaug-route-news .sm-news-related-link strong {
    font-size: clamp(28px, 9vw, 44px);
  }

  .smaug-route-news .sm-news-article-content p,
  .smaug-route-news .sm-news-article-content li,
  .smaug-route-news .sm-news-article-section p,
  .smaug-route-news .sm-news-bullet-list li {
    font-size: 17px;
  }
}

html[data-theme='light'] .smaug-route-news .sm-surface-button {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .smaug-route-news .sm-surface-button-ghost {
  border: 1px solid rgba(15, 24, 40, 0.1);
  background: rgba(242, 246, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-theme='light'] .smaug-route-news .sm-surface-button-solid {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, #4258df, #6982ff);
  box-shadow: 0 18px 34px rgba(61, 78, 161, 0.22);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-billing-switch {
  background: rgba(226, 235, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(50, 72, 219, 0.12);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-billing-switch button {
  color: rgba(15, 24, 40, 0.7);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-billing-switch button.is-active {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, #4258df, #6982ff);
  box-shadow: 0 12px 26px rgba(61, 78, 161, 0.18);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-pricing-highlight {
  border-top-color: rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-plan.is-featured {
  border-color: rgba(67, 84, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(67, 84, 255, 0.1), rgba(255, 255, 255, 0.94) 42%),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 28px 62px rgba(61, 78, 161, 0.16);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-plan:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 28px 58px rgba(41, 56, 88, 0.15);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-compare {
  background:
    linear-gradient(90deg, rgba(67, 84, 255, 0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(15, 24, 40, 0.045) 0 1px, transparent 1px 54px),
    rgba(255, 255, 255, 0.92);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-compare-row {
  border-top-color: rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-compare-row.is-head span,
html[data-theme='light'] .smaug-route-pricing .sm-surface-compare-row span:first-child {
  color: rgba(15, 24, 40, 0.9);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-button {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-button-ghost {
  border: 1px solid rgba(15, 24, 40, 0.1);
  background: rgba(242, 246, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-theme='light'] .smaug-route-pricing .sm-surface-button-solid {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, #4258df, #6982ff);
  box-shadow: 0 18px 34px rgba(61, 78, 161, 0.22);
}

html[data-theme='light'] .sm-account-order-modal-panel {
  box-shadow: 0 30px 84px rgba(41, 56, 88, 0.18);
}

html[data-theme='light'] .sm-account-selected-order-main {
  color: rgba(15, 24, 40, 0.9);
}

html[data-theme='light'] .sm-account-order-payment-note {
  color: rgba(15, 24, 40, 0.62);
}

html[data-theme='light'] .sm-account-order-modal-close {
  background: rgba(15, 24, 40, 0.06);
}

html[data-theme='light'] .sm-account-order-modal-close span {
  background: rgba(15, 24, 40, 0.82);
}

html[data-theme='light'] .sm-account-header-stat strong,
html[data-theme='light'] .sm-account-orders-date strong,
html[data-theme='light'] .sm-account-action-link strong,
html[data-theme='light'] .sm-account-order-amount {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .sm-account-order-pay-box,
html[data-theme='light'] .sm-account-payment-method-body {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme='light'] .sm-account-order-pay-title,
html[data-theme='light'] .sm-account-payment-method-body strong {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .sm-account-payment-method-body small {
  color: rgba(15, 24, 40, 0.62);
}

html[data-theme='light'] .sm-account-payment-method input:checked+.sm-account-payment-method-body {
  border-color: rgba(50, 72, 219, 0.28);
  background: rgba(228, 236, 255, 0.96);
}

html[data-theme='light'] .sm-account-list-item-time>span {
  background: rgba(50, 72, 219, 0.08);
  color: rgba(15, 24, 40, 0.82);
}

html[data-theme='light'] .sm-account-order-detail-link:hover,
html[data-theme='light'] .sm-account-order-detail-link[aria-current='page'],
html[data-theme='light'] .sm-account-pagination-link:hover,
html[data-theme='light'] .sm-account-pagination-page:hover,
html[data-theme='light'] .sm-account-pagination-page.is-current,
html[data-theme='light'] .sm-account-order-card:hover,
html[data-theme='light'] .sm-account-order-card.is-current {
  border-color: rgba(50, 72, 219, 0.24);
  background: rgba(228, 236, 255, 0.9);
}

html[data-theme='light'] .sm-account-order-status {
  color: #09111d;
}

@media (max-width: 1180px) {

  .sm-account-shell,
  .sm-account-header,
  .sm-account-forms-grid {
    grid-template-columns: 1fr;
  }

  .sm-account-sidebar {
    position: static;
  }

  .sm-account-header-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-account-order-modal {
    padding: 20px;
  }

  .sm-account-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .sm-account-order-card-top,
  .sm-account-order-card-footer,
  .sm-account-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .sm-auth-stage {
    padding: 108px 18px 18px;
  }

  .sm-auth-word {
    top: 25%;
    font-size: clamp(72px, 22vw, 140px);
  }

  .sm-auth-plane,
  .sm-auth-code-card,
  .sm-auth-side-label,
  .sm-auth-hud-top-right,
  .sm-auth-hud-bottom-right {
    display: none;
  }

  .sm-auth-line {
    left: 16px;
    right: 16px;
  }

  .sm-auth-hud-top-left,
  .sm-auth-hud-bottom-left {
    left: 16px;
  }

  .sm-auth-card {
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .sm-auth-switch {
    grid-template-columns: 1fr;
  }

  .sm-account-shell {
    gap: 18px;
  }

  .sm-account-sidebar,
  .sm-account-header,
  .sm-account-section {
    border-radius: 20px;
  }

  .sm-account-sidebar-head,
  .sm-account-list-topline,
  .sm-account-list-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .sm-account-action-link {
    grid-template-columns: 1fr;
  }

  .sm-account-header-stats {
    grid-template-columns: 1fr;
  }

  .sm-account-list-item-time {
    grid-template-columns: 1fr;
  }

  .sm-account-order-card {
    padding: 16px;
  }

  .sm-account-order-modal {
    padding: 14px;
  }

  .sm-account-order-modal-panel {
    width: min(100vw - 12px, 100%);
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .sm-account-order-modal-panel .sm-surface-section-head {
    padding-right: 56px;
  }

  .sm-account-order-reference,
  .sm-account-pagination-link,
  .sm-account-pagination-page,
  .sm-account-order-detail-link {
    width: 100%;
  }

  .sm-account-nav-item:hover,
  .sm-account-nav-item.is-current {
    transform: none;
  }
}

/* =============================================
   Agent Quota in Sidebar Nav
   ============================================= */
.sm-account-nav-quota {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sm-account-nav-quota-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sm-account-nav-quota-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6FE7FF, #4DA8FF);
  transition: width 0.4s ease;
}

.sm-account-nav-item.is-current .sm-account-nav-quota-fill {
  background: linear-gradient(90deg, #fff, #6FE7FF);
}

.sm-account-nav-quota-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(246, 244, 239, 0.52);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sm-account-nav-item.is-current .sm-account-nav-quota-text {
  color: rgba(246, 244, 239, 0.85);
}

/* =============================================
   Agent Cards Grid
   ============================================= */
.sm-account-agents-grid {
  display: grid;
  gap: 14px;
}

.sm-account-agent-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.sm-account-agent-card:hover {
  border-color: rgba(111, 231, 255, 0.22);
  box-shadow: 0 12px 32px rgba(9, 17, 29, 0.18);
  transform: translateY(-2px);
}

.sm-account-agent-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sm-account-agent-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(111, 231, 255, 0.2), rgba(77, 168, 255, 0.15));
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6FE7FF;
  letter-spacing: 0.02em;
}

.sm-account-agent-info {
  flex: 1;
  min-width: 0;
}

.sm-account-agent-info h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sm-account-agent-info p {
  margin: 4px 0 0;
  color: rgba(246, 244, 239, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.sm-account-agent-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-account-agent-status.is-active {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.sm-account-agent-status.is-paused {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.18);
}

.sm-account-agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-account-agent-meta {
  font-size: 12px;
  color: rgba(246, 244, 239, 0.42);
}

.sm-account-agent-actions {
  display: flex;
  gap: 8px;
}

.sm-account-agent-action {
  font-size: 12px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
}

.sm-account-agent-create-btn {
  margin-top: 18px;
  width: 100%;
}

.sm-account-empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.sm-account-empty p {
  margin: 0;
  color: rgba(246, 244, 239, 0.48);
  font-size: 15px;
}

/* =============================================
   Agent Creation Modal
   ============================================= */
.sm-agent-modal {
  --sm-agent-bg: rgba(14, 20, 33, 0.96);
  --sm-agent-border: rgba(255, 255, 255, 0.1);
  --sm-agent-backdrop: rgba(4, 7, 14, 0.78);
  --sm-agent-card-bg: rgba(255, 255, 255, 0.025);
  --sm-agent-card-border: rgba(255, 255, 255, 0.08);
  --sm-agent-text: rgba(246, 244, 239, 0.62);
  --sm-agent-heading: #fff;
  --sm-agent-step-bg: rgba(255, 255, 255, 0.06);
  --sm-agent-step-border: rgba(255, 255, 255, 0.1);
  --sm-agent-input-bg: rgba(255, 255, 255, 0.04);
  --sm-agent-input-border: rgba(255, 255, 255, 0.1);
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .sm-agent-modal {
  --sm-agent-bg: rgba(255, 255, 255, 0.96);
  --sm-agent-border: rgba(0, 0, 0, 0.1);
  --sm-agent-backdrop: rgba(240, 242, 245, 0.78);
  --sm-agent-card-bg: rgba(0, 0, 0, 0.02);
  --sm-agent-card-border: rgba(0, 0, 0, 0.08);
  --sm-agent-text: rgba(15, 23, 42, 0.62);
  --sm-agent-heading: #0f172a;
  --sm-agent-step-bg: rgba(0, 0, 0, 0.04);
  --sm-agent-step-border: rgba(0, 0, 0, 0.1);
  --sm-agent-input-bg: rgba(0, 0, 0, 0.03);
  --sm-agent-input-border: rgba(0, 0, 0, 0.12);
}

/* Fix [hidden] overridden by flex/grid display */
.sm-agent-modal [hidden],
.sm-agent-modal [hidden].sm-agent-plan-select,
.sm-agent-modal [hidden].sm-agent-payment,
.sm-agent-modal [hidden].sm-agent-create-form,
.sm-agent-modal [hidden].sm-agent-connect {
  display: none !important;
}

body.sm-agent-modal-open {
  overflow: hidden;
}

.sm-agent-modal[hidden] {
  display: none;
}

.sm-agent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sm-agent-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0;
  cursor: pointer;
}

.sm-agent-modal-panel {
  position: relative;
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 0;
  background: var(--sm-agent-bg);
  border: 1px solid var(--sm-agent-border);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: sm-agent-modal-in 0.32s ease;
  display: flex;
  flex-direction: column;
}

/* ----- Top bar (back + close) ----- */
.sm-agent-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
}

.sm-agent-step-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--sm-agent-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.22s ease, background 0.22s ease;
}

.sm-agent-step-back:hover {
  color: var(--sm-agent-heading);
  background: var(--sm-agent-step-bg);
}

.sm-agent-step-back[hidden] {
  display: none !important;
}

.sm-agent-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sm-agent-border);
  border-radius: 50%;
  background: var(--sm-agent-step-bg);
  color: var(--sm-agent-text);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
  margin-left: auto;
}

.sm-agent-modal-close:hover {
  border-color: rgba(111, 231, 255, 0.3);
  background: rgba(111, 231, 255, 0.1);
}

.sm-agent-modal-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.sm-agent-modal-close span:first-child {
  transform: rotate(45deg);
}

.sm-agent-modal-close span:last-child {
  transform: rotate(-45deg);
}

/* ----- Step progress bar ----- */
.sm-agent-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px 20px;
  position: relative;
  flex-shrink: 0;
}

.sm-agent-step-bar-track {
  position: absolute;
  top: 20px;
  left: calc(32px + 20px);
  right: calc(32px + 20px);
  height: 2px;
  background: var(--sm-agent-card-border);
  border-radius: 1px;
}

.sm-agent-step-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6FE7FF, #4DA8FF);
  border-radius: 1px;
  transition: width 0.38s ease;
}

.sm-agent-step-bar-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  cursor: default;
  padding: 0;
  font-family: inherit;
}

.sm-agent-step-bar-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sm-agent-card-border);
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--sm-agent-text);
  transition: all 0.28s ease;
}

.sm-agent-step-bar-node.is-active .sm-agent-step-bar-dot {
  border-color: #6FE7FF;
  color: #6FE7FF;
  box-shadow: 0 0 14px rgba(111, 231, 255, 0.22);
}

.sm-agent-step-bar-node.is-done .sm-agent-step-bar-dot {
  border-color: #4ADE80;
  color: #4ADE80;
}

.sm-agent-step-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sm-agent-text);
  opacity: 0.55;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: opacity 0.28s ease, color 0.28s ease;
}

.sm-agent-step-bar-node.is-active .sm-agent-step-bar-label,
.sm-agent-step-bar-node.is-done .sm-agent-step-bar-label {
  opacity: 1;
  color: var(--sm-agent-heading);
}

/* ----- Step panels (shared) ----- */
.sm-agent-plan-select,
.sm-agent-payment,
.sm-agent-create-form,
.sm-agent-connect {
  padding: 0 32px 32px;
  overflow-y: auto;
}

.sm-agent-step-subtitle {
  margin: 4px 0 0;
  color: var(--sm-agent-text);
  font-size: 14px;
  line-height: 1.55;
}

/* ----- Billing switch inside modal ----- */
.sm-agent-billing-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--sm-agent-card-border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  margin: 16px 0 0;
  background: var(--sm-agent-card-bg);
}

.sm-agent-billing-switch button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--sm-agent-text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.sm-agent-billing-switch button.is-active {
  background: rgba(111, 231, 255, 0.15);
  color: #6FE7FF;
}

/* ----- Plan grid ----- */
.sm-agent-plan-select {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-agent-plan-select .sm-surface-section-head h2 {
  color: var(--sm-agent-heading);
  margin: 0;
}

.sm-agent-plan-select .sm-surface-section-head p {
  color: var(--sm-agent-text);
}

.sm-agent-plan-select .sm-surface-section-head h2 {
  color: var(--sm-agent-heading);
}

.sm-agent-plan-select .sm-surface-section-head p {
  color: var(--sm-agent-text);
}

.sm-agent-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.sm-agent-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  border: 1px solid var(--sm-agent-card-border);
  border-radius: 20px;
  background: var(--sm-agent-card-bg);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.sm-agent-plan-card:hover {
  border-color: rgba(111, 231, 255, 0.2);
  box-shadow: 0 14px 36px rgba(9, 17, 29, 0.2);
  transform: translateY(-2px);
}

.sm-agent-plan-card.is-featured {
  border-color: rgba(111, 231, 255, 0.3);
  background: rgba(111, 231, 255, 0.05);
  box-shadow: 0 0 40px rgba(111, 231, 255, 0.06);
}

.sm-agent-plan-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6FE7FF, #4DA8FF);
  font-size: 11px;
  font-weight: 700;
  color: #0a0e18;
  letter-spacing: 0.04em;
}

.sm-agent-plan-tag {
  font-size: 11px;
  color: var(--sm-agent-text);
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-agent-plan-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--sm-agent-heading);
}

.sm-agent-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sm-agent-plan-price strong {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sm-agent-heading);
}

.sm-agent-plan-price span:last-child {
  color: var(--sm-agent-text);
}

.sm-agent-plan-card>p {
  margin: 0;
  color: var(--sm-agent-text);
  font-size: 13px;
  line-height: 1.55;
}

.sm-agent-plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-agent-plan-features li {
  position: relative;
  padding-left: 18px;
  color: var(--sm-agent-text);
  font-size: 13px;
  line-height: 1.5;
}

.sm-agent-plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(111, 231, 255, 0.35);
}

.sm-agent-plan-card .sm-surface-button {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
}

/* ----- Payment Confirmation Sub-Modal ----- */
.sm-agent-payment {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-agent-payment .sm-surface-section-head h2 {
  color: var(--sm-agent-heading);
  margin: 0;
}

.sm-agent-payment-card {
  border: 1px solid var(--sm-agent-card-border);
  border-radius: 18px;
  background: var(--sm-agent-card-bg);
  overflow: hidden;
}

.sm-agent-payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sm-agent-card-border);
  background: rgba(111, 231, 255, 0.04);
}

.sm-agent-payment-plan-name {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sm-agent-heading);
}

.sm-agent-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(111, 231, 255, 0.12);
  color: #6FE7FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sm-agent-payment-details {
  display: grid;
  gap: 0;
  padding: 8px 20px;
}

.sm-agent-payment-details>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sm-agent-payment-details>div:last-child {
  border-bottom: 0;
}

.sm-agent-payment-details dt {
  font-size: 13px;
  color: var(--sm-agent-text);
  opacity: 0.75;
}

.sm-agent-payment-details dd {
  font-size: 13px;
  color: var(--sm-agent-heading);
  text-align: right;
  max-width: 60%;
  line-height: 1.45;
}

.sm-agent-payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--sm-agent-card-border);
  background: rgba(111, 231, 255, 0.04);
}

.sm-agent-payment-total span {
  font-size: 15px;
  font-weight: 600;
  color: var(--sm-agent-heading);
}

.sm-agent-payment-total strong {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 22px;
  color: #6FE7FF;
  letter-spacing: -0.03em;
}

.sm-agent-payment-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.sm-agent-payment-actions .sm-surface-button {
  width: 100%;
}

/* ----- Quota Bar (agents page) ----- */
.sm-agent-quota-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-agent-quota-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sm-agent-quota-info strong {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  color: var(--sm-agent-heading);
  letter-spacing: -0.02em;
}

.sm-agent-quota-track {
  height: 6px;
  border-radius: 3px;
  background: var(--sm-agent-card-border);
  overflow: hidden;
}

.sm-agent-quota-track-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6FE7FF, #4DA8FF);
  transition: width 0.5s ease;
}

/* ----- Agent card body details ----- */
.sm-account-agent-card-body {
  padding: 0;
  display: grid;
  gap: 8px;
}

.sm-account-agent-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm-account-agent-detail-label {
  font-size: 11px;
  color: var(--sm-agent-text);
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sm-account-agent-detail-value {
  font-size: 12px;
  color: var(--sm-agent-heading);
  font-weight: 500;
}

.sm-account-agent-status-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.sm-account-agent-plan-tag {
  font-size: 10px;
  color: rgba(111, 231, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- Empty state enhanced ----- */
.sm-account-empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sm-account-empty-icon {
  color: rgba(111, 231, 255, 0.35);
  margin-bottom: 4px;
}

.sm-account-empty p {
  margin: 0;
  color: rgba(246, 244, 239, 0.48);
  font-size: 15px;
}

.sm-account-empty-hint {
  color: rgba(111, 231, 255, 0.4) !important;
  font-size: 13px !important;
}

/* Create Form Step */
.sm-agent-create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-agent-create-form .sm-surface-section-head h2 {
  color: var(--sm-agent-heading);
  margin: 0;
}

.sm-agent-create-form .sm-surface-section-head p {
  color: var(--sm-agent-text);
}

.sm-agent-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sm-agent-form .sm-account-field span {
  color: var(--sm-agent-text);
}

.sm-agent-form .sm-account-field input {
  background: var(--sm-agent-input-bg);
  border-color: var(--sm-agent-input-border);
  color: var(--sm-agent-heading);
}

.sm-agent-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

/* ----- Connect Step ----- */
.sm-agent-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 40px;
}

.sm-agent-connect-icon {
  color: #6FE7FF;
  opacity: 0.85;
}

.sm-agent-connect h2 {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--sm-agent-heading);
}

.sm-agent-connect p {
  margin: 0;
  color: var(--sm-agent-text);
  max-width: 400px;
  line-height: 1.6;
}

.sm-agent-connect-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.sm-agent-back-btn {
  border: 0;
  background: none;
  color: var(--sm-agent-text);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.22s ease;
}

.sm-agent-back-btn:hover {
  color: var(--sm-agent-heading);
}

/* =============================================
   Agent Modal Responsive
   ============================================= */
@media (max-width: 768px) {
  .sm-agent-modal-panel {
    width: min(100vw - 16px, 100%);
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .sm-agent-step-bar {
    padding: 8px 20px 16px;
  }

  .sm-agent-step-bar-track {
    left: calc(20px + 14px);
    right: calc(20px + 14px);
  }

  .sm-agent-step-bar-label {
    font-size: 10px;
  }

  .sm-agent-plan-select,
  .sm-agent-payment,
  .sm-agent-create-form,
  .sm-agent-connect {
    padding: 0 20px 24px;
  }

  .sm-agent-plan-grid {
    grid-template-columns: 1fr;
  }

  .sm-account-agent-card-top {
    flex-wrap: wrap;
  }

  .sm-account-agent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}