html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
  --background: #151311;
  --foreground: #f4f1ec;
  --card: #211f1c;
  --card-foreground: #f4f1ec;
  --popover: #26231f;
  --popover-foreground: #f4f1ec;
  --primary: #ed8763;
  --primary-foreground: #130f0c;
  --secondary: #2d2925;
  --secondary-foreground: #eee9e1;
  --muted: #2a2723;
  --muted-foreground: #b8b0a7;
  --accent: #35302b;
  --accent-foreground: #fbf8f2;
  --destructive: #ff666b;
  --destructive-foreground: #fafafa;
  --success: #79b878;
  --success-foreground: #10120f;
  --warning: #efad55;
  --warning-foreground: #13100b;
  --info: #7ba9d8;
  --info-foreground: #101318;
  --neutral: #b8b0a7;
  --neutral-foreground: #12100d;
  --border: #ffffff1a;
  --input: #ffffff26;
  --ring: #ed8763;
  --chart-1: #ed8763;
  --chart-2: #79b878;
  --chart-3: #7ba9d8;
  --chart-4: #d49adc;
  --chart-5: #b8cec7;
  --sidebar: #141210;
  --sidebar-foreground: #eee9e1;
  --sidebar-primary: #ed8763;
  --sidebar-primary-foreground: #130f0c;
  --sidebar-accent: #332e29;
  --sidebar-accent-foreground: #fbf8f2;
  --sidebar-border: #ffffff1c;
  --sidebar-ring: #ed8763;
  --skeleton-base: #2d2925;
  --skeleton-highlight: #48433d;
}

html.dark body {
  background:
    radial-gradient(circle at 86% 18%, rgba(43, 203, 191, 0.2), transparent 22%),
    linear-gradient(180deg, #f9fcfc 0%, #eefbf8 50%, #f8fbfa 100%);
  color: var(--foreground);
}

html.dark body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

html.dark body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 45%, rgba(38, 206, 190, 0.14)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.72) 88%);
  pointer-events: none;
}

html.dark #root {
  position: relative;
  z-index: 1;
}

html.dark body > #root > .bg-background.text-foreground.relative.min-h-svh.overflow-x-clip {
  background: transparent !important;
}

html.light:not(.warm-auth-page) {
  color-scheme: light;
  --background: #f9fcfc;
  --foreground: #101827;
  --card: #ffffff;
  --card-foreground: #101827;
  --popover: #ffffff;
  --popover-foreground: #101827;
  --primary: #10bfae;
  --primary-foreground: #ffffff;
  --secondary: #eefbf8;
  --secondary-foreground: #0f172a;
  --muted: #edf7f5;
  --muted-foreground: #64748b;
  --accent: #dff8f4;
  --accent-foreground: #0f766e;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #10b981;
  --success-foreground: #ffffff;
  --warning: #f59e0b;
  --warning-foreground: #111827;
  --info: #38bdf8;
  --info-foreground: #0f172a;
  --neutral: #64748b;
  --neutral-foreground: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --input: rgba(255, 255, 255, 0.86);
  --ring: #10bfae;
  --chart-1: #10bfae;
  --chart-2: #3b82f6;
  --chart-3: #f59e0b;
  --chart-4: #a855f7;
  --chart-5: #64748b;
  --sidebar: #ffffff;
  --sidebar-foreground: #101827;
  --sidebar-primary: #10bfae;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #eefbf8;
  --sidebar-accent-foreground: #0f766e;
  --sidebar-border: rgba(15, 23, 42, 0.1);
  --sidebar-ring: #10bfae;
  --skeleton-base: #edf7f5;
  --skeleton-highlight: #d9efea;
}

html.light:not(.warm-auth-page) body {
  background:
    radial-gradient(circle at 86% 18%, rgba(43, 203, 191, 0.2), transparent 22%),
    linear-gradient(180deg, #f9fcfc 0%, #eefbf8 50%, #f8fbfa 100%);
  color: #101827;
}

html.light:not(.warm-auth-page) body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

html.light:not(.warm-auth-page) body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 45%, rgba(38, 206, 190, 0.14)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.72) 88%);
  pointer-events: none;
}

html.light:not(.warm-auth-page) #root {
  position: relative;
  z-index: 1;
}

html.light:not(.warm-auth-page) body > #root > .bg-background.text-foreground.relative.min-h-svh.overflow-x-clip {
  background: transparent !important;
}

html.warm-auth-page {
  color-scheme: light;
  --background: #f9fcfc;
  --foreground: #101827;
  --card: #ffffff;
  --card-foreground: #101827;
  --popover: #ffffff;
  --popover-foreground: #101827;
  --primary: #10bfae;
  --primary-foreground: #ffffff;
  --secondary: #eefbf8;
  --secondary-foreground: #0f172a;
  --muted: #edf7f5;
  --muted-foreground: #64748b;
  --accent: #dff8f4;
  --accent-foreground: #0f766e;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #10b981;
  --success-foreground: #ffffff;
  --warning: #f59e0b;
  --warning-foreground: #111827;
  --info: #38bdf8;
  --info-foreground: #0f172a;
  --neutral: #64748b;
  --neutral-foreground: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --input: rgba(255, 255, 255, 0.86);
  --ring: #10bfae;
  --sidebar: #ffffff;
  --sidebar-foreground: #101827;
  --sidebar-primary: #10bfae;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #eefbf8;
  --sidebar-accent-foreground: #0f766e;
  --sidebar-border: rgba(15, 23, 42, 0.1);
  --sidebar-ring: #10bfae;
}

html.warm-auth-page body {
  background:
    radial-gradient(circle at 86% 18%, rgba(43, 203, 191, 0.2), transparent 22%),
    linear-gradient(180deg, #f9fcfc 0%, #eefbf8 52%, #f8fbfa 100%);
  color: #101827;
}

html.warm-auth-page body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

html.warm-auth-page body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 45%, rgba(38, 206, 190, 0.14)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.72) 88%);
  pointer-events: none;
}

html.warm-auth-page #root {
  position: relative;
  z-index: 1;
}

html.warm-auth-page a[href="/"] {
  color: #101827 !important;
}

html.warm-auth-page .zhiwen-brand-main {
  background: linear-gradient(90deg, #0f172a 0%, #0f172a 34%, #0f9f92 48%, #0f172a 64%, #0f172a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: zhiwen-text-flow 5.6s ease-in-out infinite;
}

html.warm-auth-page .zhiwen-brand-sub {
  color: #475569;
}

html.warm-auth-page h2 {
  color: #101827;
}

html.warm-auth-page .container > div {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}

html.warm-auth-page form {
  width: 100%;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

html.warm-auth-page label {
  color: #0f172a;
}

html.warm-auth-page input {
  min-height: 40px;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #101827 !important;
}

html.warm-auth-page input::placeholder {
  color: #78909c !important;
}

html.warm-auth-page button[type="submit"] {
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10bfae, #0f9f92) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 26px rgba(15, 159, 146, 0.24);
}

html.warm-auth-page button[type="button"] {
  color: #64748b;
}

html.warm-auth-page a[href="/forgot-password"],
html.warm-auth-page a[href="/sign-in"],
html.warm-auth-page a[href="/register"] {
  color: #0f766e !important;
}

@media (max-width: 720px) {
  html.warm-auth-page .container {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  html.warm-auth-page .container > div {
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.warm-auth-page form {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px;
  }
}

body a[href="/"] img[src="/logo.png"] {
  display: none !important;
}

.warm-hidden-console-item {
  display: none !important;
}

.warm-hidden-profile-panel {
  display: none !important;
}

html.light:not(.warm-auth-page) header button:has(svg[class*="palette"]),
html.light:not(.warm-auth-page) header button:has(svg[class*="paint"]),
html.light:not(.warm-auth-page) header button:has(svg[class*="brush"]),
html.light:not(.warm-auth-page) header button:has(svg[class*="swatch"]),
html.light:not(.warm-auth-page) header button:has(svg[class*="appearance"]) {
  display: none !important;
}

.zhiwen-brand-main {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.08em;
  font-weight: 800;
}

.zhiwen-brand-sub {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.9;
}

html.warm-home-page body {
  overflow-x: hidden;
  background: #f4faf9;
}

html.warm-home-page #root {
  display: none !important;
}

#warm-home-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #101827;
  background:
    radial-gradient(circle at 86% 18%, rgba(43, 203, 191, 0.2), transparent 22%),
    linear-gradient(180deg, #f9fcfc 0%, #eefbf8 50%, #f8fbfa 100%);
}

#warm-home-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#warm-home-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 45%, rgba(38, 206, 190, 0.14)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.72) 88%);
  pointer-events: none;
}

.warm-home-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 32px 70px;
  box-sizing: border-box;
}

.warm-home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.warm-home-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #111827;
  text-decoration: none;
  line-height: 1;
}

.warm-home-brand-main {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
  background: linear-gradient(90deg, #0f172a 0%, #0f172a 34%, #0f9f92 48%, #0f172a 64%, #0f172a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: zhiwen-text-flow 5.6s ease-in-out infinite;
}

.warm-home-brand-sub {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
}

.warm-home-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warm-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.warm-home-btn:hover {
  transform: translateY(-1px);
}

.warm-home-btn-primary {
  background: linear-gradient(135deg, #10bfae, #0f9f92);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 159, 146, 0.28);
}

.warm-home-btn-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(15, 159, 146, 0.14);
  color: #101827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.warm-home-btn-ghost {
  min-width: 70px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
}

.warm-home-main {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  align-items: center;
  gap: 84px;
  margin-top: 118px;
}

.warm-home-copy {
  min-width: 0;
}

.warm-home-title {
  margin: 0;
  letter-spacing: 0;
}

.warm-home-title-main {
  display: block;
  color: transparent;
  font-size: 88px;
  font-weight: 900;
  line-height: 0.94;
  background: linear-gradient(90deg, #101827 0%, #101827 32%, #0f9f92 48%, #101827 64%, #101827 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    zhiwen-title-breathe 4.8s ease-in-out infinite,
    zhiwen-text-flow 5.6s ease-in-out infinite;
}

.warm-home-title-sub {
  display: block;
  margin-top: 24px;
  color: #475569;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.warm-home-subtitle {
  margin: 28px 0 0;
  color: #64748b;
  font-size: 19px;
  line-height: 1.8;
}

.warm-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.warm-home-terminal {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #182234;
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.22);
}

.warm-home-terminal-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #202b3d;
}

.warm-home-terminal-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

.warm-home-terminal-dot-red {
  background: #ff5158;
}

.warm-home-terminal-dot-yellow {
  background: #f7c524;
}

.warm-home-terminal-dot-green {
  background: #2ecd71;
}

.warm-home-terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.warm-home-terminal-body {
  padding: 30px 34px 34px;
  color: #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 2.15;
}

.warm-home-terminal-body p {
  margin: 0;
}

.warm-home-terminal-body strong {
  color: #14b8a6;
  font-weight: 800;
}

.warm-home-cash {
  color: #22c55e;
  font-weight: 900;
}

.warm-home-muted {
  color: #64748b;
  font-style: italic;
}

.warm-home-ok {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
  font-weight: 900;
}

.warm-home-json {
  color: #f6c453;
}

.warm-home-cursor {
  display: inline-block;
  width: 10px;
  height: 22px;
  margin-left: 6px;
  vertical-align: middle;
  background: #22c55e;
  animation: zhiwen-cursor-blink 1s steps(2, start) infinite;
}

.warm-home-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 86px;
}

.warm-home-tag {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.warm-home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 70px;
}

.warm-home-feature {
  min-width: 0;
  min-height: 210px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.78);
  padding: 32px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.warm-home-feature h3 {
  margin: 28px 0 14px;
  color: #101827;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 850;
}

.warm-home-feature p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.85;
}

.warm-home-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14);
}

.warm-home-icon span {
  width: 25px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 5px;
  position: relative;
}

.warm-home-icon span::before,
.warm-home-icon span::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
}

.warm-home-icon span::before {
  top: 4px;
}

.warm-home-icon span::after {
  bottom: 4px;
}

.warm-home-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.warm-home-icon-teal {
  background: linear-gradient(135deg, #10bfae, #0f9f92);
}

.warm-home-icon-purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

@keyframes zhiwen-text-flow {
  0%,
  18% {
    background-position: 120% 50%;
  }

  52% {
    background-position: 0% 50%;
  }

  100% {
    background-position: -120% 50%;
  }
}

@keyframes zhiwen-title-breathe {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(15, 159, 146, 0);
  }

  50% {
    transform: translateY(-3px);
    text-shadow: 0 16px 32px rgba(15, 159, 146, 0.12);
  }
}

@keyframes zhiwen-cursor-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .warm-home-main {
    grid-template-columns: 1fr;
    gap: 54px;
    margin-top: 74px;
  }

  .warm-home-title-main {
    font-size: 72px;
  }

  .warm-home-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .warm-home-inner {
    max-width: 100vw;
    padding: 20px 18px 50px;
  }

  .warm-home-brand-main {
    font-size: 24px;
  }

  .warm-home-brand-sub {
    font-size: 13px;
  }

  .warm-home-main {
    gap: 38px;
    margin-top: 58px;
  }

  .warm-home-title-main {
    font-size: 58px;
  }

  .warm-home-title-sub {
    margin-top: 18px;
    font-size: 22px;
  }

  .warm-home-subtitle {
    margin-top: 22px;
    font-size: 17px;
  }

  .warm-home-btn {
    height: 40px;
    min-width: 0;
    padding: 0 18px;
    font-size: 15px;
  }

  .warm-home-terminal {
    max-width: calc(100vw - 36px);
  }

  .warm-home-terminal-body {
    padding: 22px 18px 26px;
    font-size: 13px;
    line-height: 2;
    overflow-wrap: anywhere;
  }

  .warm-home-tags {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 48px;
  }

  .warm-home-tag {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .warm-home-features {
    margin-top: 42px;
  }

  .warm-home-feature {
    min-height: 0;
    padding: 24px;
  }
}
