:root {
  --bg: #fff7fd;
  --bg2: #ffeaf8;
  --card: rgba(255,255,255,.74);
  --card2: rgba(255,255,255,.88);
  --text: #2d2235;
  --muted: #85748f;
  --line: rgba(213,126,202,.28);
  --pink: #ec77d3;
  --pink2: #d451d6;
  --purple: #9d7bed;
  --shadow: 0 22px 70px rgba(212,81,214,.16);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(255,205,242,.86), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(225,210,255,.72), transparent 30%),
    linear-gradient(180deg, #fff9fe 0%, #ffeaf8 46%, #fff7fd 100%);
  overflow-x: hidden;
}

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

.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-moon {
  position: absolute;
  width: 180px;
  height: 180px;
  left: 5%;
  top: 18%;
  opacity: .34;
  filter: drop-shadow(0 20px 44px rgba(212,81,214,.26));
}

.bg-moon.small {
  width: 120px;
  height: 120px;
  left: auto;
  right: 7%;
  top: 38%;
  opacity: .22;
  transform: rotate(-14deg);
}

.star {
  position: absolute;
  color: rgba(203,83,213,.48);
  font-size: 18px;
  animation: twinkle 3.6s ease-in-out infinite;
}

.star.s1 { left: 18%; top: 8%; }
.star.s2 { left: 75%; top: 13%; animation-delay: .7s; }
.star.s3 { left: 92%; top: 66%; animation-delay: 1.2s; }
.star.s4 { left: 10%; top: 76%; animation-delay: 1.9s; }

.petal {
  position: absolute;
  top: -42px;
  color: rgba(236,119,211,.32);
  font-size: 22px;
  animation: fall 14s linear infinite;
}

.petal.p1 { left: 7%; animation-delay: 0s; }
.petal.p2 { left: 26%; animation-delay: 3.4s; font-size: 18px; }
.petal.p3 { left: 58%; animation-delay: 6.6s; }
.petal.p4 { left: 82%; animation-delay: 1.6s; font-size: 19px; }

@keyframes twinkle {
  0%, 100% { opacity: .22; transform: scale(.9); }
  50% { opacity: .88; transform: scale(1.16); }
}

@keyframes fall {
  0% { transform: translate3d(0,-30px,0) rotate(0deg); opacity: 0; }
  12% { opacity: .78; }
  100% { transform: translate3d(90px,112vh,0) rotate(260deg); opacity: 0; }
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(212,81,214,.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 12px 26px rgba(212,81,214,.24);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #735f7e;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  background: #fff0fb;
  color: #c64bd4;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 44px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #9668a3;
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 22px 0 14px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  letter-spacing: -.075em;
}

h1 span {
  background: linear-gradient(135deg, #2d2235 8%, #d451d6 56%, #ec77d3);
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 950;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.23);
}

.btn.ghost {
  color: #876294;
  background: rgba(255,255,255,.70);
}

.hero-side {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.soft-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.70);
}

.soft-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.soft-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
  font-weight: 650;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #70e7b7;
  box-shadow: 0 0 0 6px rgba(112,231,183,.16);
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 14px;
}

.section h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -.045em;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.card {
  min-height: 205px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(212,81,214,.09);
  transition: .22s ease;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(212,81,214,.16);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #fff0fb;
  color: #d451d6;
  font-size: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  font-weight: 650;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1fb;
  color: #91609e;
  font-size: 12px;
  font-weight: 900;
}

.feature {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 15px;
}

.list {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
}

.row + .row {
  border-top: 1px solid rgba(213,126,202,.20);
}

.row b {
  display: block;
  margin-bottom: 4px;
}

.row small {
  color: var(--muted);
  font-weight: 700;
}

.pill {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  color: #9a62a8;
  background: #fff0fb;
  font-size: 12px;
  font-weight: 950;
}

.footer {
  margin-top: 28px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.subpage {
  margin-top: 28px;
  padding: 32px;
}

.subpage h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.subpage .lead {
  max-width: 860px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 26px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .feature,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding: 30px;
  }

  .bg-moon {
    opacity: .18;
  }
}

/* cheri-extra-start */
body.sakura-off .petal {
  display: none;
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  border: 1px solid rgba(213,126,202,.32);
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(255,255,255,.82);
  color: #7b5a86;
  box-shadow: 0 14px 36px rgba(212,81,214,.16);
  backdrop-filter: blur(14px);
  font-weight: 950;
  cursor: pointer;
}

.float-btn:hover {
  color: #d451d6;
  background: #fff3fb;
  transform: translateY(-2px);
}

.tool-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(212,81,214,.09);
}

.tool-form {
  display: grid;
  gap: 14px;
}

.tool-form label {
  display: grid;
  gap: 8px;
  color: #735f7e;
  font-weight: 900;
}

.tool-form textarea,
.tool-form input,
.tool-form select {
  width: 100%;
  border: 1px solid rgba(213,126,202,.34);
  border-radius: 18px;
  padding: 13px 15px;
  outline: none;
  background: rgba(255,255,255,.86);
  color: var(--text);
  font: inherit;
  font-weight: 650;
}

.tool-form textarea {
  min-height: 210px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.6;
}

.tool-form textarea:focus,
.tool-form input:focus,
.tool-form select:focus {
  border-color: rgba(212,81,214,.62);
  box-shadow: 0 0 0 5px rgba(236,119,211,.12);
}

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

.tool-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff1fb;
  color: #876294;
  font-weight: 850;
}

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

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.status-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}

.status-item b {
  display: block;
  margin-bottom: 6px;
}

.status-item span {
  color: var(--muted);
  font-weight: 800;
}

.ok-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #70e7b7;
  box-shadow: 0 0 0 6px rgba(112,231,183,.16);
}

@media (max-width: 860px) {
  .float-actions {
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    padding: 10px 13px;
    font-size: 13px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
/* cheri-extra-end */

/* cheri-stage3-start */
.moon-card {
  position: relative;
  overflow: hidden;
}

.moon-phase {
  width: 82px;
  height: 82px;
  margin-bottom: 16px;
  filter: drop-shadow(0 14px 28px rgba(212,81,214,.18));
}

.moon-phase svg {
  width: 100%;
  height: 100%;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(213,126,202,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.75);
  color: #876294;
  font-size: 12px;
  font-weight: 950;
}

.article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow);
}

.article h2 {
  margin-top: 28px;
}

.article p,
.article li {
  color: var(--muted);
  line-height: 1.9;
  font-weight: 650;
}

.article code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff0fb;
  color: #9a62a8;
  font-weight: 850;
}

.article pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}

.article pre code {
  padding: 0;
  background: transparent;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.link-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(212,81,214,.08);
  transition: .22s ease;
}

.link-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(212,81,214,.14);
}

.link-tile b {
  display: block;
  margin-bottom: 4px;
}

.link-tile small {
  color: var(--muted);
  font-weight: 750;
}

.link-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff0fb;
  color: #d451d6;
  font-weight: 950;
}

.copy-site-btn {
  margin-top: 16px;
}

.toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
}

.toc a {
  display: block;
  padding: 8px 0;
  color: #876294;
  font-weight: 850;
}

.toc a:hover {
  color: #d451d6;
}

@media (max-width: 860px) {
  .link-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 24px;
  }
}
/* cheri-stage3-end */

/* cheri-stage4-start */
body[data-theme="sakura"] {
  --bg: #fff7fd;
  --bg2: #ffeaf8;
  --text: #2d2235;
  --muted: #85748f;
  --line: rgba(213,126,202,.28);
  --pink: #ec77d3;
  --pink2: #d451d6;
  --purple: #9d7bed;
  background:
    radial-gradient(circle at 12% 16%, rgba(255,205,242,.86), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(225,210,255,.72), transparent 30%),
    linear-gradient(180deg, #fff9fe 0%, #ffeaf8 46%, #fff7fd 100%);
}

body[data-theme="lavender"] {
  --bg: #fbf8ff;
  --bg2: #eee7ff;
  --text: #282139;
  --muted: #756b8d;
  --line: rgba(157,123,237,.26);
  --pink: #b994ff;
  --pink2: #8f7bea;
  --purple: #b994ff;
  background:
    radial-gradient(circle at 14% 18%, rgba(222,211,255,.88), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255,224,247,.62), transparent 32%),
    linear-gradient(180deg, #fcf9ff 0%, #eee7ff 48%, #fbf8ff 100%);
}

body[data-theme="milk"] {
  --bg: #fffdf8;
  --bg2: #fff4e8;
  --text: #322923;
  --muted: #8b7b70;
  --line: rgba(225,172,131,.28);
  --pink: #eeb08d;
  --pink2: #dc8f7a;
  --purple: #d9b18c;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,238,215,.90), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255,221,239,.58), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e8 48%, #fffaf3 100%);
}

body[data-theme="peach"] {
  --bg: #fff8f4;
  --bg2: #ffe9df;
  --text: #352420;
  --muted: #8f706b;
  --line: rgba(235,145,130,.28);
  --pink: #ff9d9d;
  --pink2: #ef7d92;
  --purple: #d98acc;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,214,204,.88), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255,226,243,.62), transparent 32%),
    linear-gradient(180deg, #fff8f4 0%, #ffe9df 48%, #fff6f3 100%);
}

.color-preview {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ec77d3;
  box-shadow: 0 16px 40px rgba(212,81,214,.12);
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.output-box {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
  line-height: 1.65;
  word-break: break-all;
}

.uuid-list {
  display: grid;
  gap: 10px;
}

.uuid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.uuid-item code {
  color: #876294;
  font-weight: 850;
  word-break: break-all;
}

.small-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff0fb;
  color: #9a62a8;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.small-btn:hover {
  color: #d451d6;
}

@media (max-width: 860px) {
  .inline-grid {
    grid-template-columns: 1fr;
  }

  .uuid-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* cheri-stage4-end */

/* stage5-fix */
.tool-search{width:100%;margin-top:18px;border:1px solid var(--line);border-radius:999px;padding:14px 18px;outline:none;background:rgba(255,255,255,.82);color:var(--text);font:inherit;font-weight:800}
.markdown-preview{min-height:260px;padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.82);line-height:1.85;overflow:auto}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat-card{padding:18px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.76)}
.stat-card b{display:block;font-size:24px;margin-bottom:4px}
.regex-match{display:inline-block;margin:3px;padding:5px 8px;border-radius:999px;background:#fff0fb;color:#9a62a8;font-weight:900}
.hash-row{padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.80);margin-bottom:10px}
.hash-row code{word-break:break-all;color:#876294}
@media(max-width:860px){.stat-grid{grid-template-columns:repeat(2,1fr)}}

/* tools-links-cleanup-start */
.tool-group {
  margin-top: 24px;
}

.tool-group-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.tool-group-title h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.045em;
}

.tool-group-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.featured-tool {
  grid-column: span 2;
  min-height: 260px;
}

.dev-tools-wrap {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
}

.dev-tools-summary {
  cursor: pointer;
  list-style: none;
  padding: 18px;
  border-radius: 22px;
  color: #876294;
  font-weight: 950;
  background: rgba(255,255,255,.74);
}

.dev-tools-summary::-webkit-details-marker {
  display: none;
}

.dev-tools-summary span {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.dev-tools-inner {
  margin-top: 14px;
}

.clean-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.clean-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(212,81,214,.08);
  transition: .22s ease;
}

.clean-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(212,81,214,.14);
}

.clean-link b {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.clean-link small {
  color: var(--muted);
  font-weight: 750;
}

.clean-link i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #fff0fb;
  color: #d451d6;
  font-style: normal;
  font-weight: 950;
}

@media (max-width: 860px) {
  .featured-tool {
    grid-column: span 1;
  }

  .clean-links {
    grid-template-columns: 1fr;
  }
}
/* tools-links-cleanup-end */








/* lunaai-v4-start */
.la-page {
  width: min(1320px, calc(100% - 32px));
}

.la-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-top: 28px;
}

.la-hero-main {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 10%, rgba(236,119,211,.22), transparent 34%),
    radial-gradient(circle at 15% 90%, rgba(255,201,235,.32), transparent 36%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.la-hero-main::after {
  content: "☾";
  position: absolute;
  right: 30px;
  bottom: -30px;
  color: rgba(212,81,214,.12);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

.la-hero-main h1 {
  margin: 18px 0 12px;
  font-size: clamp(46px, 7vw, 86px);
}

.la-side-notes {
  display: grid;
  gap: 12px;
}

.la-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.09);
}

.la-note b {
  display: block;
  margin-bottom: 6px;
}

.la-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 720;
}

.la-app {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 16px;
  margin-top: 18px;
}

.la-sidebar {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 16px 42px rgba(212,81,214,.09);
}

.la-sidebar h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.la-mode {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.la-mode:focus,
.la-input:focus {
  border-color: rgba(212,81,214,.62);
  box-shadow: 0 0 0 5px rgba(236,119,211,.12);
}

.la-presets {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.la-preset {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 12px 13px;
  background: rgba(255,255,255,.78);
  color: #876294;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.la-preset:hover {
  color: #d451d6;
  background: #fff0fb;
  transform: translateY(-1px);
}

.la-mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.la-mini-btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(255,255,255,.78);
  color: #876294;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.la-mini-btn:hover {
  color: #d451d6;
  background: #fff0fb;
}

.la-tip {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff1fb;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 750;
  font-size: 14px;
}

.la-chat {
  overflow: hidden;
  min-height: 700px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.la-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(213,126,202,.22);
  background: rgba(255,255,255,.62);
}

.la-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.la-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 12px 24px rgba(212,81,214,.20);
  font-weight: 950;
}

.la-topbar b {
  display: block;
}

.la-topbar small {
  color: var(--muted);
  font-weight: 760;
}

.la-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.la-messages {
  min-height: 430px;
  max-height: 575px;
  overflow-y: auto;
  padding: 24px;
}

.la-msg {
  display: flex;
  margin-bottom: 16px;
}

.la-msg.user {
  justify-content: flex-end;
}

.la-bubble-wrap {
  max-width: min(800px, 88%);
}

.la-bubble {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 24px;
  white-space: pre-wrap;
  line-height: 1.85;
  font-weight: 720;
}

.la-msg.assistant .la-bubble {
  border-top-left-radius: 8px;
  background: rgba(255,255,255,.9);
  color: var(--muted);
}

.la-msg.user .la-bubble {
  border-top-right-radius: 8px;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.20);
}

.la-msg-actions {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  opacity: .72;
}

.la-msg-actions button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.72);
  color: #9b6fa4;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.la-msg-actions button:hover {
  color: #d451d6;
  background: #fff0fb;
}

.la-code {
  display: block;
  overflow-x: auto;
  margin: 10px 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(61,44,72,.92);
  color: #fff;
  white-space: pre;
  font-size: 13px;
  line-height: 1.65;
}

.la-inline-code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(236,119,211,.12);
  color: #b94dbb;
  font-weight: 850;
}

.la-link {
  color: #d451d6;
  font-weight: 900;
}

.la-loading {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.la-loading span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(212,81,214,.55);
  animation: la-bounce 1.1s infinite ease-in-out;
}

.la-loading span:nth-child(2) {
  animation-delay: .15s;
}

.la-loading span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes la-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.la-compose {
  padding: 16px;
  border-top: 1px solid rgba(213,126,202,.22);
  background: rgba(255,255,255,.54);
}

.la-input {
  width: 100%;
  min-height: 122px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 18px;
  background: rgba(255,255,255,.93);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  line-height: 1.75;
  outline: none;
}

.la-compose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.la-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.la-send-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

@media(max-width: 940px) {
  .la-hero,
  .la-app {
    grid-template-columns: 1fr;
  }

  .la-chat {
    min-height: 620px;
  }

  .la-messages {
    max-height: 470px;
  }

  .la-hero-main {
    padding: 30px;
  }

  .la-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .la-toolbar {
    justify-content: flex-start;
  }
}
/* lunaai-v4-end */


/* lunaai-v5-stream-start */
.la-bubble.streaming::after {
  content: "▋";
  display: inline-block;
  margin-left: 3px;
  color: #d451d6;
  animation: la-cursor-blink .85s infinite;
}

@keyframes la-cursor-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.la-stream-note {
  color: #d451d6;
}
/* lunaai-v5-stream-end */


/* lunaai-mode-pills-start */
.la-mode-switch {
  display: grid;
  gap: 9px;
}

.la-mode-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(255,255,255,.78);
  color: #876294;
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.la-mode-pill span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff1fb;
  color: #d451d6;
  font-weight: 950;
}

.la-mode-pill:hover {
  transform: translateY(-1px);
  color: #d451d6;
  background: #fff7fd;
}

.la-mode-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.20);
}

.la-mode-pill.active span {
  background: rgba(255,255,255,.24);
  color: #fff;
}

.la-mode-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 5px rgba(236,119,211,.16), 0 14px 28px rgba(212,81,214,.16);
}
/* lunaai-mode-pills-end */

/* lunaai-v6-sessions-start */
.la-session-box {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}

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

.la-session-head strong {
  color: var(--text);
}

.la-session-head small {
  color: var(--muted);
  font-weight: 800;
}

.la-session-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.la-session-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(255,255,255,.78);
  color: #876294;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.la-session-item:hover {
  background: #fff7fd;
}

.la-session-item.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 12px 24px rgba(212,81,214,.18);
}

.la-session-main {
  min-width: 0;
}

.la-session-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.la-session-time {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: .78;
  font-weight: 800;
}

.la-session-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  opacity: .78;
  font-weight: 950;
}

.la-session-delete:hover {
  background: rgba(255,255,255,.28);
  opacity: 1;
}

.la-input {
  max-height: 280px;
  overflow-y: auto;
}

.la-mode-switch {
  display: grid;
  gap: 9px;
}

.la-mode-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(255,255,255,.78);
  color: #876294;
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.la-mode-pill span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff1fb;
  color: #d451d6;
  font-weight: 950;
}

.la-mode-pill:hover {
  transform: translateY(-1px);
  color: #d451d6;
  background: #fff7fd;
}

.la-mode-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.20);
}

.la-mode-pill.active span {
  background: rgba(255,255,255,.24);
  color: #fff;
}
/* lunaai-v6-sessions-end */


/* homepage-v2-start */
.home-v2 {
  width: min(1240px, calc(100% - 32px));
}

.home-hero-v2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 30px;
}

.home-main-card {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 10%, rgba(236,119,211,.22), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255,201,235,.36), transparent 38%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.home-main-card::after {
  content: "☾";
  position: absolute;
  right: 34px;
  bottom: -34px;
  color: rgba(212,81,214,.12);
  font-size: 210px;
  line-height: 1;
  pointer-events: none;
}

.home-main-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -3px;
}

.home-main-card h1 span {
  color: #d451d6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.home-status-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.09);
}

.home-status-card b {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.home-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 720;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 34px 0 14px;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.home-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 720;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 48px rgba(212,81,214,.10);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(212,81,214,.16);
}

.home-feature-card.primary {
  background:
    radial-gradient(circle at 85% 12%, rgba(236,119,211,.20), transparent 34%),
    rgba(255,255,255,.78);
}

.home-feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.20);
  font-weight: 950;
}

.home-feature-card h3 {
  margin: 20px 0 10px;
  font-size: 28px;
}

.home-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 720;
}

.home-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.home-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-mini-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(212,81,214,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, background .18s ease;
}

.home-mini-card:hover {
  transform: translateY(-2px);
  background: #fff7fd;
}

.home-mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.home-mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 720;
  font-size: 14px;
}

.home-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-map-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  color: #876294;
  text-decoration: none;
  font-weight: 900;
}

.home-map-card:hover {
  color: #d451d6;
  background: #fff7fd;
}

@media(max-width: 900px) {
  .home-hero-v2,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-mini-grid,
  .home-map-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-main-card {
    padding: 32px;
  }
}

@media(max-width: 560px) {
  .home-mini-grid,
  .home-map-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    align-items: start;
    flex-direction: column;
  }
}
/* homepage-v2-end */


/* lunaai-compact-v7-start */
.la-page {
  width: min(1120px, calc(100% - 28px));
}

.la-hero {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.la-side-notes {
  display: none;
}

.la-hero-main {
  padding: 24px 28px;
  border-radius: 28px;
}

.la-hero-main::after {
  right: 22px;
  bottom: -22px;
  font-size: 112px;
}

.la-hero-main h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -2px;
}

.la-hero-main .lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.72;
}

.la-hero-main .actions {
  margin-top: 14px;
}

.la-app {
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.la-sidebar {
  padding: 14px;
  border-radius: 24px;
}

.la-sidebar h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.la-mode-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.la-mode-pill {
  padding: 8px 10px;
  border-radius: 14px;
  gap: 8px;
  font-size: 13px;
}

.la-mode-pill span {
  width: 23px;
  height: 23px;
  border-radius: 9px;
  font-size: 12px;
}

.la-session-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 18px;
}

.la-session-head {
  margin-bottom: 8px;
}

.la-session-head strong {
  font-size: 14px;
}

.la-session-head small {
  font-size: 11px;
}

.la-session-list {
  max-height: 124px;
  gap: 6px;
}

.la-session-item {
  padding: 8px 9px;
  border-radius: 14px;
}

.la-session-title {
  font-size: 13px;
}

.la-session-time {
  font-size: 11px;
}

.la-session-delete {
  width: 23px;
  height: 23px;
}

.la-compact-details {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}

.la-compact-details summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  color: #876294;
  font-weight: 950;
}

.la-compact-details summary::-webkit-details-marker {
  display: none;
}

.la-compact-details summary::after {
  content: "＋";
  float: right;
  color: #d451d6;
}

.la-compact-details[open] summary::after {
  content: "－";
}

.la-compact-details .la-presets {
  margin: 0;
  padding: 0 10px 10px;
  gap: 7px;
}

.la-preset {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
}

.la-mini-actions {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.la-mini-btn {
  padding: 8px 9px;
  border-radius: 13px;
  font-size: 13px;
}

.la-tip {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.55;
}

.la-chat {
  min-height: 560px;
  border-radius: 28px;
}

.la-topbar {
  padding: 12px 14px;
}

.la-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  font-size: 13px;
}

.la-topbar b {
  font-size: 15px;
}

.la-topbar small {
  font-size: 12px;
}

.la-toolbar .btn,
.la-send-row .btn {
  padding: 9px 13px;
}

.la-messages {
  min-height: 315px;
  max-height: 405px;
  padding: 16px;
}

.la-msg {
  margin-bottom: 12px;
}

.la-bubble-wrap {
  max-width: min(720px, 88%);
}

.la-bubble {
  padding: 12px 14px;
  border-radius: 20px;
  line-height: 1.72;
  font-size: 14.5px;
}

.la-compose {
  padding: 12px 14px;
}

.la-input {
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 20px;
  line-height: 1.6;
}

.la-compose-row {
  margin-top: 8px;
}

.la-status {
  font-size: 12px;
}

@media(max-width: 940px) {
  .la-app {
    grid-template-columns: 1fr;
  }

  .la-mode-switch {
    grid-template-columns: repeat(2, 1fr);
  }

  .la-chat {
    min-height: 520px;
  }

  .la-messages {
    max-height: 360px;
  }
}

@media(max-width: 560px) {
  .la-mode-switch {
    grid-template-columns: 1fr;
  }

  .la-page {
    width: min(100% - 20px, 1120px);
  }
}
/* lunaai-compact-v7-end */














/* homepage-moondesk-start */
.home-luna-desk.compact {
  margin: 20px 0 4px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 18%, rgba(236,119,211,.14), transparent 26%),
    radial-gradient(circle at 90% 82%, rgba(255,201,235,.24), transparent 32%),
    rgba(255,255,255,.68);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.home-luna-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-luna-compact-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
}

.home-luna-orb.compact-orb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.9), transparent 24%),
    linear-gradient(135deg, #fff7fd, #ffd8f3);
  box-shadow:
    0 0 28px rgba(236,119,211,.22),
    0 14px 32px rgba(212,81,214,.14),
    inset 0 0 20px rgba(255,255,255,.86);
  font-size: 38px;
}

.home-luna-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-luna-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
}

.home-luna-card span {
  display: block;
  margin-bottom: 7px;
  color: #9b6fa4;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.home-luna-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.home-luna-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.home-luna-card.moon-main {
  background:
    radial-gradient(circle at 82% 20%, rgba(236,119,211,.16), transparent 30%),
    rgba(255,255,255,.78);
}

.home-luna-progress {
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(213,126,202,.22);
}

.home-luna-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  box-shadow: 0 0 16px rgba(236,119,211,.24);
  transition: width .6s ease;
}

@media(max-width: 900px) {
  .home-luna-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 540px) {
  .home-luna-desk.compact {
    padding: 18px;
    border-radius: 26px;
  }

  .home-luna-compact-grid {
    grid-template-columns: 1fr;
  }

  .home-luna-orb.compact-orb {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
}
/* homepage-moondesk-end */


/* projects-page-start */
.projects-page {
  width: min(1220px, calc(100% - 32px));
}

.projects-hero {
  margin-top: 30px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 12%, rgba(236,119,211,.22), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255,201,235,.34), transparent 38%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.projects-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(46px, 7vw, 88px);
  letter-spacing: -3px;
}

.projects-hero h1 span {
  color: #d451d6;
}

.projects-layout {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.project-feature {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 48px rgba(212,81,214,.10);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  background: #fff8fd;
  box-shadow: 0 24px 58px rgba(212,81,214,.15);
}

.project-card.main {
  background:
    radial-gradient(circle at 86% 14%, rgba(236,119,211,.20), transparent 34%),
    rgba(255,255,255,.78);
}

.project-card h2,
.project-card h3 {
  margin: 18px 0 10px;
}

.project-card h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.project-card h3 {
  font-size: 26px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 720;
}

.project-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 28px rgba(212,81,214,.20);
  font-weight: 950;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.project-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 14px;
}

.project-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.project-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 720;
}

.project-archive {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-weight: 760;
  line-height: 1.7;
}

.project-archive a {
  color: #d451d6;
  font-weight: 950;
  text-decoration: none;
}

@media(max-width: 900px) {
  .project-feature,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero {
    padding: 32px;
  }
}
/* projects-page-end */


/* status-desk-start */
.status-desk-page {
  width: min(1160px, calc(100% - 32px));
}

.status-hero {
  margin-top: 30px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 12%, rgba(236,119,211,.20), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255,201,235,.30), transparent 38%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.status-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -3px;
}

.status-hero h1 span {
  color: #d451d6;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.status-card2 {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.status-card-head2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-card2 h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.status-card2 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 720;
}

.status-dot2 {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #c9b5cc;
  box-shadow: 0 0 0 5px rgba(201,181,204,.16);
}

.status-dot2.online {
  background: #62c989;
  box-shadow: 0 0 0 5px rgba(98,201,137,.16);
}

.status-dot2.warn {
  background: #f4b95d;
  box-shadow: 0 0 0 5px rgba(244,185,93,.18);
}

.status-dot2.offline {
  background: #ef6f91;
  box-shadow: 0 0 0 5px rgba(239,111,145,.18);
}

.status-label2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1fb;
  color: #9b6fa4;
  font-size: 12px;
  font-weight: 950;
}

.status-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.status-panel2 {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.status-panel2 h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.status-list2 {
  display: grid;
  gap: 10px;
}

.status-row2 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(213,126,202,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  color: var(--muted);
  font-weight: 780;
}

.status-row2 b {
  color: var(--text);
}

.status-refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 760;
}

@media(max-width: 980px) {
  .status-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 560px) {
  .status-board {
    grid-template-columns: 1fr;
  }

  .status-hero {
    padding: 30px;
  }
}
/* status-desk-end */


/* theme-page-start */
.theme-page {
  width: min(1180px, calc(100% - 32px));
}

.theme-hero {
  margin-top: 30px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 12%, rgba(236,119,211,.22), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255,201,235,.34), transparent 38%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.theme-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(46px, 7vw, 88px);
  letter-spacing: -3px;
}

.theme-hero h1 span {
  color: #d451d6;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 20px;
}

.theme-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.theme-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 720;
}

.theme-tokens {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.theme-token {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(213,126,202,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.theme-swatch {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 10px 22px rgba(212,81,214,.12);
}

.theme-token b {
  display: block;
  color: var(--text);
}

.theme-token small {
  color: var(--muted);
  font-weight: 760;
}

.theme-token code {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff1fb;
  color: #9b6fa4;
  font-weight: 900;
}

.theme-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.theme-principle {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 14px 36px rgba(212,81,214,.07);
}

.theme-principle strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.theme-principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 720;
}

.theme-demo {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 20%, rgba(236,119,211,.18), transparent 30%),
    rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.theme-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media(max-width: 900px) {
  .theme-grid,
  .theme-principles {
    grid-template-columns: 1fr;
  }

  .theme-hero {
    padding: 32px;
  }

  .theme-token {
    grid-template-columns: 44px 1fr;
  }

  .theme-token code {
    grid-column: 1 / -1;
    width: fit-content;
  }
}
/* theme-page-end */


/* changelog-v2-start */
.changelog-page {
  width: min(1120px, calc(100% - 32px));
}

.changelog-hero {
  margin-top: 30px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 12%, rgba(236,119,211,.20), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255,201,235,.32), transparent 38%),
    rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.changelog-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -3px;
}

.changelog-hero h1 span {
  color: #d451d6;
}

.changelog-current {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.changelog-timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.changelog-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.changelog-phase {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(212,81,214,.18);
}

.changelog-body h2 {
  margin: 2px 0 8px;
  font-size: 26px;
}

.changelog-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 720;
}

.changelog-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 740;
  line-height: 1.65;
}

.changelog-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #d451d6;
  font-size: 12px;
  top: 4px;
}

.changelog-note {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-weight: 760;
  line-height: 1.7;
}

@media(max-width: 720px) {
  .changelog-hero {
    padding: 30px;
  }

  .changelog-item {
    grid-template-columns: 1fr;
  }

  .changelog-phase {
    width: fit-content;
    height: auto;
    padding: 12px 16px;
    border-radius: 999px;
  }
}
/* changelog-v2-end */


/* tools-cleanup-start */
.tools-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-weight: 760;
  line-height: 1.7;
}

.tools-note a {
  color: #d451d6;
  font-weight: 950;
  text-decoration: none;
}

.tools-section-title {
  margin: 34px 0 14px;
}

.tools-section-title h2 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
}

.tools-section-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}
/* tools-cleanup-end */


/* tools-fuller-start */
.tools-page {
  width: min(1240px, calc(100% - 32px));
}

.tools-page .tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.diff-app {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.diff-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.diff-box {
  display: grid;
  gap: 8px;
}

.diff-box label {
  color: var(--muted);
  font-weight: 900;
}

.diff-box textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
}

.diff-output {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  overflow: auto;
}

.diff-line {
  padding: 7px 10px;
  border-radius: 12px;
  white-space: pre-wrap;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.diff-line.same {
  color: #8f7897;
}

.diff-line.add {
  background: rgba(98,201,137,.14);
}

.diff-line.remove {
  background: rgba(239,111,145,.14);
}

.diff-line.change {
  background: rgba(244,185,93,.16);
}

@media(max-width: 1050px) {
  .tools-page .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width: 760px) {
  .tools-page .tools-grid,
  .diff-inputs {
    grid-template-columns: 1fr;
  }
}
/* tools-fuller-end */


/* about-polish-start */
.about-page {
  width: min(1160px, calc(100% - 32px));
}

.about-hero {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 84% 12%, rgba(236,119,211,.22), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(255,201,235,.34), transparent 38%),
    rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.about-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(46px, 7vw, 88px);
  letter-spacing: -3px;
}

.about-hero h1 span {
  color: #d451d6;
}

.about-hero .lead {
  max-width: 760px;
}

.about-sakura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-sakura span {
  position: absolute;
  color: rgba(236,119,211,.34);
  font-size: 18px;
  animation: aboutPetalFloat 12s linear infinite;
}

.about-sakura span:nth-child(1) { left: 74%; top: 10%; animation-delay: 0s; }
.about-sakura span:nth-child(2) { left: 88%; top: 24%; animation-delay: -3s; font-size: 24px; }
.about-sakura span:nth-child(3) { left: 66%; top: 62%; animation-delay: -6s; font-size: 15px; }
.about-sakura span:nth-child(4) { left: 92%; top: 72%; animation-delay: -9s; }
.about-sakura span:nth-child(5) { left: 58%; top: 28%; animation-delay: -4s; font-size: 13px; }

@keyframes aboutPetalFloat {
  0% { transform: translate3d(0, -18px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: .75; }
  100% { transform: translate3d(-46px, 90px, 0) rotate(180deg); opacity: 0; }
}

.about-overview {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  margin-top: 18px;
}

.about-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(212,81,214,.08);
}

.about-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 720;
}

.about-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.about-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(213,126,202,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-weight: 780;
}

.about-row b {
  color: var(--text);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.about-value {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 18%, rgba(236,119,211,.12), transparent 34%),
    rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(212,81,214,.07);
}

.about-value .mini-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  box-shadow: 0 12px 26px rgba(212,81,214,.16);
  font-weight: 950;
}

.about-value strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.about-value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 720;
}

.about-project-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.about-link-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 14px 34px rgba(212,81,214,.07);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.about-link-card:hover {
  transform: translateY(-3px);
  background: #fff8fd;
  box-shadow: 0 20px 44px rgba(212,81,214,.12);
}

.about-link-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  font-weight: 950;
}

.about-link-card h3 {
  margin: 0 0 8px;
}

.about-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 720;
}

.about-final-note {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,241,251,.86), rgba(255,255,255,.70));
  color: var(--muted);
  font-weight: 760;
  line-height: 1.75;
}

@media(max-width: 960px) {
  .about-overview,
  .about-values,
  .about-project-links {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 32px;
  }
}

@media(max-width: 640px) {
  .about-row {
    flex-direction: column;
    gap: 4px;
  }
}
/* about-polish-end */
