:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(24, 24, 27, 0.08);
  --border-strong: rgba(24, 24, 27, 0.12);
  --highlight: rgb(232, 145, 113);
  --highlight-hover: rgb(214, 117, 84);
  --highlight-border: rgb(214, 117, 84);
  --highlight-gradient: linear-gradient(90deg, rgb(232, 145, 113), rgb(214, 117, 84));
  --highlight-gradient-hover: linear-gradient(90deg, rgb(214, 117, 84), rgb(188, 96, 65));
  --text: #151517;
  --muted: #66666d;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(25, 28, 33, 0.02),
    0 0 0 1px rgba(25, 28, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 420px at 50% 0, rgba(15, 23, 42, 0.045), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff 24%);
  color: var(--text);
  font-family: "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 112px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68) 52%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
}

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

button,
textarea {
  font: inherit;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.clone-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
}

.topbar-inner,
.hero-inner,
.section-block,
.site-footer {
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-text {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.topbar-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: rgba(24, 24, 27, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar-nav-link:hover {
  color: #171717;
  transform: translateY(-1px);
}

.topbar-nav-link.is-active {
  background: linear-gradient(135deg, rgba(232, 145, 113, 0.96), rgba(214, 117, 84, 0.92));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(214, 117, 84, 0.24);
}

.signin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #18181b;
  background: #18181b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.signin-link:hover {
  transform: translateY(-1px);
  background: #2f3135;
  border-color: #2f3135;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

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

.account-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.account-trigger:hover {
  transform: translateY(-1px);
}

.account-trigger-avatar,
.account-profile-avatar {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 145, 113, 0.96), rgba(214, 117, 84, 0.92));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-trigger-avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.account-profile-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  font-size: 16px;
}

.account-trigger-avatar img,
.account-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -4px;
  z-index: 80;
  width: min(clamp(248px, 24vw, 280px), calc(100vw - 18px));
  max-width: calc(100vw - 18px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: #ffffff;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f4 100%);
}

.account-panel-kicker {
  color: rgba(24, 24, 27, 0.82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(24, 24, 27, 0.4);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.account-panel-close:hover {
  color: var(--text);
  border-color: rgba(24, 24, 27, 0.15);
  background: #ffffff;
}

.account-panel-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.account-panel-body {
  padding: 14px 14px 16px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.account-profile-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-profile-copy span {
  color: rgba(24, 24, 27, 0.56);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-summary {
  margin-top: 16px;
  background: transparent;
}

.account-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-summary-top h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 7px;
  background: #f2f2f3;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
}

.account-summary-copy {
  margin: 10px 0 0;
  color: rgba(24, 24, 27, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.account-summary-copy,
.account-reset-card {
  display: none !important;
}

.progress-list {
  margin-top: 8px;
  display: grid;
  gap: 0;
}

.progress-item {
  padding: 8px 0 7px;
  border-radius: 0;
  background: transparent;
}

.progress-item + .progress-item {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-head strong {
  font-size: 12px;
}

.progress-head span {
  font-size: 11px;
  color: rgba(17, 17, 17, 0.68);
}

.meter {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.meter-fill.green {
  background: linear-gradient(90deg, #2aa66a, #41c985);
}

.meter-fill.amber {
  background: linear-gradient(90deg, #d89a23, #edbe49);
}

.meter-fill.red {
  background: linear-gradient(90deg, #dc5b49, #ef7a68);
}

.progress-note {
  display: none !important;
}

.quota-note-grid {
  display: grid;
  gap: 6px;
}

.quota-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.04);
}

.quota-note-row strong {
  font-size: 11px;
  color: var(--text);
}

.quota-note-row span {
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quota-note-caption {
  display: none !important;
}

.account-empty-state,
.account-unlimited-state {
  padding: 12px 13px;
  border-radius: 12px;
  background: #f7f7f8;
  color: rgba(24, 24, 27, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
}

.account-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(24, 24, 27, 0.86);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.account-menu-link:hover {
  background: #f5f6f8;
  color: var(--text);
}

.account-menu-link.is-danger {
  color: rgba(24, 24, 27, 0.86);
}

.account-menu-link.is-danger:hover {
  background: #f5f6f8;
  color: var(--text);
}

.account-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: rgba(161, 161, 170, 0.95);
}

.account-menu-icon svg {
  width: 16px;
  height: 16px;
}

.account-menu-link:hover .account-menu-icon {
  color: inherit;
}

.account-menu-badge {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(92, 142, 255, 0.16);
  color: rgba(61, 107, 217, 0.96);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

body.is-auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 246, 248, 0.82);
  backdrop-filter: blur(18px);
}

.auth-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(482px, calc(100% - 40px));
  padding: 38px 34px 30px;
  border-radius: 24px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, -50%);
}

.auth-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 999px;
  background: #fafafa;
  color: rgba(24, 24, 27, 0.48);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-dialog-close:hover {
  color: var(--text);
  border-color: rgba(24, 24, 27, 0.16);
  background: #ffffff;
}

.auth-dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.auth-dialog-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.auth-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-dialog-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.auth-dialog-copy {
  margin: 0;
  max-width: 30ch;
  color: rgba(24, 24, 27, 0.5);
  font-size: 14px;
  line-height: 1.45;
}

.auth-notice {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-notice.is-visible {
  display: block;
}

.auth-notice[data-kind="error"] {
  background: rgba(197, 58, 61, 0.08);
  color: rgba(170, 39, 42, 0.96);
}

.auth-notice[data-kind="success"] {
  background: rgba(22, 163, 74, 0.08);
  color: rgba(21, 128, 61, 0.96);
}

.auth-view {
  display: none;
}

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

.auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #18181b;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 24, 27, 0.16);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.auth-google-button:disabled,
.auth-google-button.is-loading {
  cursor: wait;
  opacity: 0.82;
}

.auth-google-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: none;
}

.auth-google-button path {
  stroke: none;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: rgba(24, 24, 27, 0.5);
  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: rgba(24, 24, 27, 0.1);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  display: inline-flex;
  padding: 0 12px;
  background: #ffffff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f3f4f6;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(24, 24, 27, 0.52);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-tab-link:hover {
  color: rgba(24, 24, 27, 0.78);
}

.auth-view-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-view-copy h3,
.auth-success h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.auth-view-copy p,
.auth-success p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form-register {
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label {
  color: rgba(24, 24, 27, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.auth-input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-shell--with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-right: 6px;
}

.auth-input-shell.auth-input-shell--with-action input {
  width: 100%;
  min-width: 0;
}

.auth-input-inline-action {
  position: static;
  flex: 0 0 auto;
  min-width: 78px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 10px;
  background: #f3f4f6;
  color: #18181b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.auth-input-inline-action:hover {
  border-color: rgba(24, 24, 27, 0.16);
  background: #ffffff;
  color: #18181b;
}

.auth-input-inline-action:disabled {
  cursor: wait;
  opacity: 0.76;
}

.auth-register-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-register-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.auth-input-shell:focus-within {
  border-color: rgba(24, 24, 27, 0.18);
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05);
}

.auth-input-shell input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.auth-input-shell input::placeholder {
  color: rgba(24, 24, 27, 0.34);
}

.auth-ghost-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(24, 24, 27, 0.42);
  cursor: pointer;
}

.auth-error {
  min-height: 18px;
  color: rgba(170, 39, 42, 0.96);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
}

.auth-error.is-visible {
  opacity: 1;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(24, 24, 27, 0.62);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-primary-button,
.auth-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-primary-button {
  border: 1px solid #18181b;
  background: linear-gradient(180deg, #2b2b2d 0%, #171718 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.auth-primary-button:hover {
  transform: translateY(-1px);
  background: #2f3135;
  border-color: #2f3135;
}

.auth-secondary-button {
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: #ffffff;
  color: rgba(24, 24, 27, 0.72);
}

.auth-secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 24, 27, 0.14);
}

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

.auth-button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: authSpin 0.9s linear infinite;
}

.auth-secondary-button .button-spinner {
  border-color: rgba(24, 24, 27, 0.18);
  border-top-color: rgba(24, 24, 27, 0.78);
}

.auth-primary-button.is-loading .button-spinner,
.auth-secondary-button.is-loading .button-spinner {
  display: inline-flex;
}

.auth-totp-mask {
  color: rgba(24, 24, 27, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.auth-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(22, 163, 74, 0.12);
  color: rgba(21, 128, 61, 0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .topbar-nav {
    gap: 28px;
  }

  .topbar-nav-link {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .account-panel {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .account-trigger,
  .account-trigger-avatar {
    width: 34px;
    height: 34px;
  }

  .auth-dialog {
    display: flex;
    flex-direction: column;
    width: calc(100% - 38px);
    height: min(588px, calc(100dvh - 24px));
    min-height: 0;
    padding: 27px 16px 18px;
    border-radius: 19px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .auth-brand-mark {
    width: 44px;
    height: 44px;
  }

  .auth-dialog-title {
    font-size: 38px;
  }

  .auth-dialog-copy {
    font-size: 14px;
  }

  .auth-view.is-active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .auth-social-stack {
    gap: 10px;
    margin-bottom: 10px;
  }

  #loginForm,
  #registerForm {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }

  .auth-google-button,
  .auth-primary-button,
  .auth-secondary-button {
    min-height: 46px;
  }

  .auth-field {
    gap: 4px;
  }

  .auth-label {
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .auth-field-head {
    min-height: 20px;
  }

  .auth-inline-link {
    line-height: 1;
  }

  .auth-input-shell--with-action {
    gap: 6px;
    padding-right: 4px;
  }

  .auth-input-inline-action {
    min-width: 72px;
    height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }

  .auth-tab {
    min-height: 40px;
    font-size: 15px;
  }

  #togglePassword,
  #loginButton .auth-button-icon {
    display: none;
  }

  #loginButton,
  #registerButton {
    margin-top: auto;
  }

  .auth-register-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2px;
  width: 84px;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 24, 27, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.theme-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease;
}

.theme-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(38, 38, 43, 0.68);
  cursor: pointer;
}

.theme-btn svg {
  width: 12px;
  height: 12px;
}

html[data-theme="system"] .theme-indicator {
  transform: translateX(27px);
}

html[data-theme="dark"] .theme-indicator {
  transform: translateX(54px);
}

.theme-btn.is-active {
  color: var(--text);
}

.page-main {
  position: relative;
  padding: 72px 0 72px;
}

.page-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(1400px, calc(100% - 64px));
  height: 780px;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(
      to right,
      transparent calc(25% - 0.5px),
      rgba(24, 24, 27, 0.06) calc(25% - 0.5px),
      rgba(24, 24, 27, 0.06) calc(25% + 0.5px),
      transparent calc(25% + 0.5px),
      transparent calc(75% - 0.5px),
      rgba(24, 24, 27, 0.06) calc(75% - 0.5px),
      rgba(24, 24, 27, 0.06) calc(75% + 0.5px),
      transparent calc(75% + 0.5px)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 119px,
      rgba(24, 24, 27, 0.06) 119px 120px
    );
  transform: translateX(-50%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.82) 72%, transparent);
}

.page-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(1400px, calc(100% - 64px));
  height: 440px;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at top center, rgba(15, 23, 42, 0.04), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 92px 0 18px;
  display: flex;
  align-items: flex-start;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  padding-top: 0;
  max-width: 1400px;
}

#sections-root {
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.announcement {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--highlight-gradient);
  border: 1px solid var(--highlight-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transform-origin: center;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.announcement::before {
  display: none;
}

.announcement::after {
  display: none;
}

.announcement svg {
  width: 12px;
  height: 12px;
  color: #ffffff;
  stroke-width: 1.8;
}

.announcement:hover {
  transform: none;
  border-color: var(--highlight-border);
  background: var(--highlight-gradient-hover);
  box-shadow: 0 8px 18px rgba(218, 119, 86, 0.25);
}

.announcement-text {
  display: inline-block;
  color: inherit;
  font: inherit;
}

.hero h1 {
  margin: 22px 0 0;
  max-width: none;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 500;
}

@media (min-width: 960px) {
  .hero h1 {
    white-space: nowrap;
  }
}

.hero-copy-shell {
  position: relative;
  width: min(760px, 100%);
  margin-top: 22px;
  padding: 10px 0;
  overflow: hidden;
}

.hero-copy-shell::before,
.hero-copy-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  height: 1px;
  background: rgba(24, 24, 27, 0.06);
  transform: translateX(-50%);
}

.hero-copy-shell::before {
  top: 0;
}

.hero-copy-shell::after {
  bottom: 0;
}

.hero-copy {
  margin: 0 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: none;
  white-space: nowrap;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.03em;
  color: #171717;
  font-weight: 400;
}

.hero-copy-link {
  color: #171717;
  border-bottom: 1px solid rgba(24, 24, 27, 0.2);
  font-weight: 400;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.hero-copy-link:hover {
  color: #171717;
  border-color: rgba(24, 24, 27, 0.22);
}

.hero-terminal-shell {
  width: min(820px, 100%);
  margin-top: 24px;
}

.hero-terminal-card {
  overflow: hidden;
  width: min(800px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #2a2a2e;
  background: #141415;
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-terminal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1d1d1f;
}

.hero-terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hero-terminal-dot--red {
  background: #ff5f57;
}

.hero-terminal-dot--yellow {
  background: #febc2e;
}

.hero-terminal-dot--green {
  background: #28c840;
}

.hero-terminal-title {
  color: #8b92a6;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-terminal-body {
  padding: 15px 18px 16px;
  text-align: left;
  font-family: "SFMono-Regular", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero-terminal-comment,
.hero-terminal-line {
  margin: 0;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero-terminal-comment + .hero-terminal-line {
  margin-top: 8px;
}

.hero-terminal-line + .hero-terminal-comment {
  margin-top: 18px;
}

.hero-terminal-comment {
  color: #6f768b;
  font-size: 12px;
  line-height: 1.5;
}

.hero-terminal-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f4f6;
  font-size: 12px;
  line-height: 1.6;
}

.hero-terminal-prompt {
  flex: 0 0 auto;
  color: #34d399;
  font-weight: 700;
}

.hero-terminal-line code {
  color: #f7f7f8;
  font: inherit;
  white-space: nowrap;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero-terminal-line--success {
  color: #d1fae5;
}

.hero-terminal-line--success .hero-terminal-prompt {
  color: #34d399;
}

.quick-start {
  width: min(680px, 100%);
  text-align: left;
  margin-top: 0;
}

.quick-start-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.quick-start-angle {
  color: #ff6b6b;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.quick-start-heading h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.terminal-card {
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0a0e18 0%, #121725 100%);
  border: 1px solid rgba(81, 94, 131, 0.36);
  box-shadow: 0 18px 42px rgba(10, 14, 24, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.terminal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 138, 186, 0.52);
  box-shadow: 0 30px 70px rgba(10, 14, 24, 0.28);
}

@keyframes announcementDrift {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeSlideUpSoft {
  0%,
  20% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.terminal-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(91, 102, 136, 0.25);
}

.terminal-tabs-left,
.terminal-tab-group,
.terminal-os-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.terminal-dot--red {
  background: #ff6058;
}

.terminal-dot--yellow {
  background: #ffbd2e;
}

.terminal-dot--green {
  background: #28c840;
}

.terminal-pill,
.terminal-segment,
.terminal-beta,
.terminal-copy {
  border: 1px solid rgba(98, 110, 146, 0.18);
  background: rgba(9, 12, 21, 0.82);
  color: rgba(220, 228, 255, 0.56);
}

.terminal-pill,
.terminal-segment {
  min-height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  cursor: default;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.terminal-pill:hover,
.terminal-segment:hover {
  transform: translateY(-1px);
  border-color: rgba(146, 165, 221, 0.28);
  color: rgba(240, 245, 255, 0.86);
}

.terminal-pill--active {
  background: linear-gradient(180deg, #32f0e2 0%, #0fcfca 100%);
  color: #002b2b;
  border-color: rgba(50, 240, 226, 0.45);
  box-shadow: 0 10px 22px rgba(15, 207, 202, 0.18);
}

.terminal-segment--active {
  background: linear-gradient(180deg, #ff8f7d 0%, #ff6f7f 100%);
  color: #371013;
  border-color: rgba(255, 111, 127, 0.45);
  box-shadow: 0 10px 22px rgba(255, 111, 127, 0.14);
}

.terminal-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, rgba(18, 23, 37, 0.98), rgba(18, 23, 37, 0.96));
}

.terminal-note {
  margin: 0 0 8px;
  color: rgba(193, 202, 232, 0.62);
  font-size: 8px;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.terminal-command-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(18, 23, 37, 0.88);
  border: 1px solid rgba(93, 108, 150, 0.22);
}

.terminal-command {
  margin: 0;
  color: #f6f8ff;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.terminal-command::before {
  content: "$ ";
  color: #ff8f7d;
}

.terminal-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
}

.terminal-copy svg {
  width: 10px;
  height: 10px;
}

.terminal-copy:hover {
  border-color: rgba(146, 165, 221, 0.32);
  color: rgba(240, 245, 255, 0.92);
  transform: translateY(-1px);
}

.quick-start-kicker,
.quick-start-link,
.quick-start-grid,
.quick-card,
.quick-step,
.quick-card h3,
.quick-card p,
.quick-code {
  display: none;
}

.section-block {
  padding: 18px 0 10px;
}

.section-block:nth-child(1) {
  animation-delay: 0.1s;
}

.section-block:nth-child(2) {
  animation-delay: 0.18s;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  color: #43434a;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.browse-link:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 24, 27, 0.12);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

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

.template-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: var(--panel);
  backdrop-filter: blur(16px);
  scroll-margin-top: 112px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 24, 27, 0.14);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.template-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.template-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.08));
}

.template-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.template-media--contain {
  background:
    radial-gradient(circle at top left, rgba(255, 241, 118, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(24, 24, 27, 0.96), rgba(41, 37, 36, 0.92));
}

.template-media--contain::after {
  background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.12));
}

.template-media--contain img {
  object-fit: contain;
  padding: 10px;
}

.template-media--picture-cover img {
  object-position: center;
}

.template-card:hover .template-media img {
  transform: scale(1.045);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.template-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 20px;
}

.template-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.template-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.03em;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.template-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(24, 24, 27, 0.05);
  color: rgba(24, 24, 27, 0.62);
  font-size: 9px;
  font-weight: 600;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(24, 24, 27, 0.58);
  font-size: 10px;
}

.template-author span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.author-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(24, 24, 27, 0.1);
  flex: 0 0 auto;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #18181b;
  font-size: 9px;
  font-weight: 700;
}

.template-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(24, 24, 27, 0.5);
  font-size: 10px;
  flex: 0 0 auto;
}

.template-action,
.template-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  font-size: 10px;
  color: rgba(24, 24, 27, 0.22);
}

.site-footer {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-lead p {
  margin: 0;
  max-width: 360px;
  color: #4b4b55;
  line-height: 1.75;
  font-size: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 4px;
  font-size: 11px;
  color: #8a8a92;
  letter-spacing: 0.08em;
}

.footer-column span {
  color: #35353d;
  font-size: 14px;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0c0c0f;
  --panel: rgba(10, 10, 12, 0.72);
  --panel-strong: rgba(9, 9, 11, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a0a0ab;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  --card-shadow: 0 1px 1px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #09090b;
}

body.theme-dark::before {
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.94), rgba(9, 9, 11, 0.68) 52%, rgba(9, 9, 11, 0));
}

body.theme-dark .topbar {
  background: rgba(9, 9, 11, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .page-main::before {
  background:
    linear-gradient(
      to right,
      transparent calc(25% - 0.5px),
      rgba(255, 255, 255, 0.06) calc(25% - 0.5px),
      rgba(255, 255, 255, 0.06) calc(25% + 0.5px),
      transparent calc(25% + 0.5px),
      transparent calc(75% - 0.5px),
      rgba(255, 255, 255, 0.06) calc(75% - 0.5px),
      rgba(255, 255, 255, 0.06) calc(75% + 0.5px),
      transparent calc(75% + 0.5px)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 119px,
      rgba(255, 255, 255, 0.06) 119px 120px
    );
}

body.theme-dark .page-main::after {
  background:
    radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.05), transparent 64%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.34), rgba(9, 9, 11, 0));
}

body.theme-dark .signin-link:hover {
  color: #ffffff;
  background: var(--highlight-gradient-hover);
  border-color: var(--highlight-border);
  box-shadow: 0 8px 18px rgba(218, 119, 86, 0.24);
}

body.theme-dark .theme-toggle,
body.theme-dark .browse-link {
  background: rgba(20, 20, 24, 0.96);
}

body.theme-dark .signin-link,
body.theme-dark .announcement {
  color: #ffffff;
  background: var(--highlight-gradient);
  border-color: var(--highlight-border);
}

body.theme-dark .theme-indicator {
  background: rgba(70, 70, 78, 0.86);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
}

body.theme-dark .theme-btn {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-dark .theme-btn:hover {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-dark .theme-btn.is-active {
  color: #ffffff;
}

body.theme-dark .template-card,
body.theme-dark .browse-link {
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .announcement {
  border-color: var(--highlight-border);
}

body.theme-dark .template-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66);
}

body.theme-dark .template-author,
body.theme-dark .template-stats,
body.theme-dark .footer-bottom,
body.theme-dark .footer-column h3 {
  color: rgba(255, 255, 255, 0.58);
}

body.theme-dark .footer-column span,
body.theme-dark .footer-lead p,
body.theme-dark .hero-copy,
body.theme-dark .browse-link {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-dark .announcement {
  color: #ffffff;
}

body.theme-dark .hero h1 {
  color: #f5f5f7;
}

body.theme-dark .hero-copy-shell::before,
body.theme-dark .hero-copy-shell::after {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .hero-copy-link {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .hero-copy-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

body.theme-dark .hero-terminal-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

body.theme-dark .hero-terminal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .account-trigger-avatar,
body.theme-dark .account-panel-close,
body.theme-dark .auth-dialog-close,
body.theme-dark .auth-secondary-button,
body.theme-dark .auth-input-shell {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .account-panel,
body.theme-dark .auth-dialog,
body.theme-dark .account-panel-close,
body.theme-dark .auth-dialog-close,
body.theme-dark .auth-secondary-button,
body.theme-dark .auth-input-shell {
  background: rgba(14, 14, 18, 0.88);
}

body.theme-dark .account-panel {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

body.theme-dark .account-panel-head {
  background: linear-gradient(180deg, rgba(31, 31, 36, 0.98) 0%, rgba(22, 22, 27, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .account-plan-badge,
body.theme-dark .account-metric-track,
body.theme-dark .account-menu-link:hover,
body.theme-dark .auth-notice[data-kind="success"],
body.theme-dark .auth-success-mark,
body.theme-dark .account-reset-card,
body.theme-dark .account-empty-state,
body.theme-dark .account-unlimited-state {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .account-summary-copy,
body.theme-dark .account-reset-heading,
body.theme-dark .account-reset-label,
body.theme-dark .account-panel-kicker,
body.theme-dark .account-panel-close,
body.theme-dark .account-menu-icon,
body.theme-dark .auth-dialog-copy,
body.theme-dark .auth-view-copy p,
body.theme-dark .auth-success p,
body.theme-dark .auth-label,
body.theme-dark .auth-input-shell svg,
body.theme-dark .auth-input-shell input::placeholder,
body.theme-dark .auth-meta,
body.theme-dark .account-plan-badge,
body.theme-dark .account-empty-state,
body.theme-dark .account-unlimited-state {
  color: rgba(255, 255, 255, 0.64);
}

body.theme-dark .account-profile-copy strong,
body.theme-dark .account-reset-card strong,
body.theme-dark .auth-dialog-title,
body.theme-dark .auth-view-copy h3,
body.theme-dark .auth-success h3,
body.theme-dark .auth-input-shell input,
body.theme-dark .account-menu-link:hover {
  color: #f5f5f7;
}

body.theme-dark .account-panel-close,
body.theme-dark .account-panel-close:hover,
body.theme-dark .auth-dialog-close,
body.theme-dark .auth-dialog-close:hover {
  color: #ffffff;
}

body.theme-dark .account-menu-link {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-dark .progress-head span,
body.theme-dark .quota-note-row span,
body.theme-dark .quota-note-caption {
  color: rgba(255, 255, 255, 0.68);
}

body.theme-dark .progress-head strong,
body.theme-dark .quota-note-row strong {
  color: #f5f5f7;
}

body.theme-dark .progress-item + .progress-item {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .meter {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .quota-note-row {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .account-menu-link.is-danger {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-dark .auth-meta {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .auth-inline-link,
body.theme-dark .auth-totp-mask {
  color: rgba(255, 189, 167, 0.96);
}

body.theme-dark .auth-notice[data-kind="error"] {
  background: rgba(197, 58, 61, 0.14);
  color: rgba(255, 166, 166, 0.96);
}

body.theme-dark .auth-modal-backdrop {
  background:
    radial-gradient(circle at 18% 16%, rgba(45, 212, 191, 0.2), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(96, 165, 250, 0.18), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(250, 204, 21, 0.1), transparent 32%),
    rgba(5, 6, 10, 0.56);
}

@media (max-width: 1080px) {
  .cards-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-lead {
    grid-column: 1 / -1;
  }

  .topbar-inner {
    gap: 12px;
  }

}

@media (max-width: 820px) {
  .topbar-inner,
  .hero-inner,
  .section-block,
  .site-footer {
    width: min(1280px, calc(100% - 32px));
  }

  .topbar-inner {
    min-height: 68px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .topbar-nav {
    display: none;
  }

  .page-main {
    padding-top: 68px;
  }

  .page-main::before {
    width: min(1400px, calc(100% - 32px));
    height: 700px;
  }

  .page-main::after {
    width: min(1400px, calc(100% - 32px));
    height: 360px;
  }

  .hero {
    padding: 88px 0 34px;
  }

  .hero-inner {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(25px, 6.4vw, 34px);
    white-space: nowrap;
  }

  .section-head h2 {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.03em;
    font-weight: 600;
  }

  .template-title-row h3 {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.03em;
  }

  .hero-copy {
    gap: 8px;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
  }

  .hero-copy-shell {
    width: min(680px, 100%);
  }

  .hero-terminal-shell {
    width: min(680px, 100%);
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

}

@media (max-width: 620px) {
  .topbar-inner,
  .hero-inner,
  .section-block,
  .site-footer {
    width: calc(100% - 24px);
  }

  .topbar-actions {
    gap: 6px;
  }

  .signin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar-inner {
    min-height: 62px;
  }

  .theme-toggle {
    width: 88px;
    height: 26px;
  }

  .theme-indicator {
    width: 22px;
    height: 22px;
  }

  .theme-btn {
    width: 22px;
    height: 22px;
  }

  .theme-btn svg {
    width: 11px;
    height: 11px;
  }

  html[data-theme="system"] .theme-indicator {
    transform: translateX(28px);
  }

  html[data-theme="dark"] .theme-indicator {
    transform: translateX(56px);
  }

  .brand-text {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .announcement {
    gap: 6px;
    min-height: 38px;
    padding: 7px 18px;
    font-size: 14px;
    line-height: 22px;
  }

  .announcement svg {
    width: 15px;
    height: 15px;
  }

  .page-main {
    padding-top: 62px;
  }

  .page-main::before {
    width: calc(100% - 24px);
    height: 620px;
  }

  .page-main::after {
    width: calc(100% - 24px);
    height: 280px;
  }

  .hero {
    padding: 56px 0 16px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(22px, 6.6vw, 27px);
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .section-head h2 {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.03em;
    font-weight: 600;
  }

  .template-title-row h3 {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.03em;
  }

  .hero-copy-shell {
    width: 100%;
    margin-top: 18px;
    padding: 10px 0;
  }

  .hero-copy {
    gap: 5px;
    max-width: none;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
  }

  .hero-terminal-shell {
    width: 100%;
    margin-top: 18px;
  }

  .hero-terminal-card {
    width: 100%;
    border-radius: 14px;
  }

  .hero-terminal-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .hero-terminal-title {
    font-size: 11px;
  }

  .hero-terminal-body {
    padding: 12px 14px 14px;
  }

  .hero-terminal-comment,
  .hero-terminal-line {
    font-size: 11px;
    line-height: 1.5;
  }

  .hero-terminal-comment + .hero-terminal-line {
    margin-top: 6px;
  }

  .hero-terminal-line + .hero-terminal-comment {
    margin-top: 12px;
  }

  #sections-root {
    padding-top: 8px;
  }

  .section-block {
    padding: 18px 0 10px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .template-body {
    gap: 10px;
    padding: 14px 14px 16px;
  }

  .hero-terminal-line code {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
