:root {
  color-scheme: light;
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #423147;
  --muted: #806f88;
  --line: rgba(234, 190, 216, 0.72);
  --accent: #ef7fb1;
  --accent-2: #69b8d7;
  --accent-3: #78c9a7;
  --accent-ink: #ffffff;
  --amber: #d99a3d;
  --danger: #dc5b72;
  --shadow: 0 20px 56px rgba(117, 73, 103, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(140deg, #fff2f8 0%, #eef9ff 44%, #fff7df 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 44px rgba(129, 85, 121, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(239, 127, 177, 0.25);
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

main {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 86vh;
  padding: 120px max(20px, calc((100vw - 1120px) / 2)) 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.94) 0%, rgba(255, 247, 251, 0.76) 34%, rgba(255, 247, 251, 0.08) 72%),
    linear-gradient(180deg, rgba(64, 39, 75, 0.12), rgba(255, 247, 251, 0.12)),
    url("./hero-anime-girl.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 247, 251, 0), var(--bg));
  content: "";
}

.hero-shade {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.55) 2px, transparent 3px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.22) 75%, transparent 75%);
  background-size: 72px 72px, 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: #3a263d;
  font-size: clamp(46px, 8vw, 90px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.72);
}

.lead {
  margin: 24px 0 0;
  max-width: 620px;
  color: #665170;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(117, 73, 103, 0.14);
}

.button.primary {
  border-color: rgba(239, 127, 177, 0.7);
  background: linear-gradient(135deg, #ff8fc1, #75c9e9);
  color: var(--accent-ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.pulse-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 950;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(128, 111, 136, 0.12);
}

.dot.healthy {
  background: var(--accent-3);
  box-shadow: 0 0 0 5px rgba(120, 201, 167, 0.18);
}

.dot.degraded,
.dot.pending {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(217, 154, 61, 0.16);
}

.dot.down,
.dot.stale {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(220, 91, 114, 0.16);
}

.quick-stats {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.quick-stats div,
.metrics dl div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(234, 190, 216, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

dd {
  margin: 6px 0 0;
  font-weight: 950;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(234, 190, 216, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  border-color: rgba(239, 127, 177, 0.7);
  background: rgba(255, 232, 246, 0.92);
  color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.18fr repeat(2, minmax(0, 0.86fr));
  gap: 16px;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.project-side-list {
  display: grid;
  gap: 12px;
}

.project-card,
.tool-card,
.post-card,
.metrics,
.events {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.post-card {
  min-height: 250px;
  padding: 24px;
}

.project-card,
.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 236px;
  padding: 22px;
}

.project-card .project-icon {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(117, 73, 103, 0.16);
}

.project-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 252, 0.82)),
    linear-gradient(135deg, rgba(105, 184, 215, 0.1), transparent 58%);
}

.featured-project {
  grid-row: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  min-height: 488px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 230, 246, 0.78)),
    repeating-linear-gradient(135deg, rgba(239, 127, 177, 0.08) 0 8px, transparent 8px 18px);
}

.featured-project img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(117, 73, 103, 0.16);
  image-rendering: auto;
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-hero-card {
  min-height: 400px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 230, 246, 0.84)),
    repeating-linear-gradient(135deg, rgba(239, 127, 177, 0.08) 0 8px, transparent 8px 18px);
}

.project-hero-card h3 {
  font-size: clamp(28px, 4vw, 44px);
}

.project-hero-card p:not(.post-date) {
  max-width: 520px;
  color: #6d5574;
  font-size: 17px;
}

.project-hero-card .project-icon {
  width: 96px;
  height: 96px;
}

.project-mini-card {
  min-height: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(117, 73, 103, 0.1);
}

.project-mini-card .project-card-top,
.project-compact-card .project-card-top {
  align-items: flex-start;
}

.project-mini-card p:not(.post-date),
.project-compact-card p:not(.post-date) {
  margin: 14px 0 0;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.project-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(234, 190, 216, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.project-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-post {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 247, 0.82)),
    repeating-linear-gradient(135deg, rgba(239, 127, 177, 0.08) 0 8px, transparent 8px 18px);
}

.post-date {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.project-card h3,
.tool-card h3,
.post-card h3,
.metrics h3,
.events h3 {
  margin: 0;
  font-size: 22px;
}

.project-card p:not(.post-date),
.tool-card p,
.post-card p:not(.post-date) {
  color: var(--muted);
  line-height: 1.8;
}

.project-card a,
.post-card a {
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}

.tools-section {
  padding-top: clamp(42px, 6vw, 70px);
  padding-bottom: clamp(38px, 5vw, 62px);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.tool-card {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 255, 0.8)),
    repeating-linear-gradient(90deg, rgba(105, 184, 215, 0.08) 0 6px, transparent 6px 16px);
}

.tool-card.soft {
  background: rgba(255, 255, 255, 0.72);
}

.tool-card .button {
  width: max-content;
}

.tool-card button.button {
  margin-top: 8px;
  width: max-content;
}

.status-section {
  position: relative;
  padding-top: clamp(38px, 5vw, 64px);
}

.status-section::before {
  position: absolute;
  top: 48px;
  right: 24px;
  color: rgba(239, 127, 177, 0.22);
  content: "✦";
  font-size: 72px;
  line-height: 1;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.control-message {
  min-height: 22px;
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.control-message.ok {
  color: #2f9a73;
}

.control-message.error {
  color: var(--danger);
}

.control-log {
  max-height: 180px;
  margin: -4px 0 14px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(234, 190, 216, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #5f4f66;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.status-board {
  min-width: 0;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(234, 190, 216, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(117, 73, 103, 0.08);
}

.service-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(128, 111, 136, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.badge.healthy {
  background: rgba(120, 201, 167, 0.18);
  color: #2d906c;
}

.badge.degraded,
.badge.pending {
  background: rgba(217, 154, 61, 0.15);
  color: #a76b18;
}

.badge.down,
.badge.stale {
  background: rgba(220, 91, 114, 0.15);
  color: var(--danger);
}

.metrics {
  padding: 20px;
}

.metrics dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.events {
  margin-top: 16px;
  padding: 20px;
}

.events ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

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

.about-grid p {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-top: 3px solid var(--accent-2);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.85;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(117, 73, 103, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 940px) {
  .hero {
    min-height: 82vh;
    align-items: start;
    padding-top: 110px;
    background-position: 58% center;
  }

  .hero-copy {
    max-width: 620px;
    padding-bottom: 0;
  }

  .post-grid,
  .project-grid,
  .project-showcase,
  .tool-grid,
  .status-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-row: auto;
    min-height: 0;
  }

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

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 82vh;
    padding-top: 138px;
    background-position: 61% center;
  }

  h1 {
    font-size: 42px;
  }

  .quick-stats,
  .service-item {
    grid-template-columns: 1fr;
  }

  .featured-project {
    flex-direction: column;
  }

  .project-card-top {
    align-items: flex-start;
  }

  .project-card .project-icon,
  .project-hero-card .project-icon {
    width: 76px;
    height: 76px;
  }

  .status-actions {
    justify-content: flex-start;
  }

  .footer {
    flex-direction: column;
  }
}

/* Room-style blog shell */
.room-body {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.34), rgba(255, 247, 251, 0.02) 48%, rgba(255, 247, 251, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 226, 242, 0.08)),
    url("./hero-anime-girl.png") center center / cover no-repeat;
}

.room-topbar {
  width: min(1180px, calc(100% - 28px));
}

.room-nav {
  align-items: center;
}

.room-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.room-tab.active {
  border-color: rgba(239, 127, 177, 0.45);
  background: rgba(255, 232, 246, 0.86);
  color: var(--accent);
}

.room-home {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding: 0;
}

.room-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 226, 242, 0.08));
  box-shadow: none;
}

.room-stage::before,
.room-stage::after {
  position: absolute;
  z-index: 0;
  color: rgba(239, 127, 177, 0.34);
  font-size: 38px;
  font-weight: 950;
  pointer-events: none;
}

.room-stage::before {
  top: 88px;
  left: 36px;
  content: "♡";
}

.room-stage::after {
  right: 42px;
  bottom: 32px;
  content: "✦";
}

.lace-strip {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 22px;
  background:
    radial-gradient(circle at 10px 18px, rgba(255, 255, 255, 0.9) 9px, transparent 10px) 0 0 / 28px 22px repeat-x;
  opacity: 0.86;
  pointer-events: none;
}

.profile-note {
  z-index: 2;
  position: absolute;
  bottom: clamp(24px, 5vh, 52px);
  left: clamp(18px, 5vw, 72px);
  max-width: 300px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 42px rgba(117, 73, 103, 0.1);
  backdrop-filter: blur(5px);
}

.profile-note::before {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 112px;
  height: 24px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 160, 198, 0.72) 0 10px,
    rgba(255, 255, 255, 0.78) 10px 20px
  );
  content: "";
  transform: rotate(-3deg);
}

.profile-note h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.04;
}

.profile-note .lead {
  margin-top: 14px;
  font-size: clamp(15px, 1.5vw, 17px);
}

.mood-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  border: 1px dashed rgba(239, 127, 177, 0.48);
  border-radius: 8px;
  background: rgba(255, 247, 251, 0.58);
}

.mood-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.mood-row strong {
  color: var(--ink);
  line-height: 1.6;
}

.desk-window {
  z-index: 2;
  position: absolute;
  right: clamp(18px, 4vw, 72px);
  bottom: clamp(24px, 5vh, 52px);
  width: min(560px, calc(100% - 400px));
  height: min(430px, calc(100vh - 168px));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 247, 252, 0.22)),
    repeating-linear-gradient(0deg, rgba(239, 127, 177, 0.06) 0 1px, transparent 1px 32px);
  box-shadow: 0 20px 46px rgba(117, 73, 103, 0.13);
  backdrop-filter: blur(4px);
}

.room-body[data-active-pane="watch"] .desk-window {
  width: min(720px, calc(100% - 390px));
  height: min(575px, calc(100vh - 132px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 252, 0.54)),
    repeating-linear-gradient(0deg, rgba(239, 127, 177, 0.06) 0 1px, transparent 1px 32px);
  backdrop-filter: blur(10px);
}

.room-body[data-active-pane="box"] .desk-window {
  top: clamp(96px, 13vh, 138px);
  right: clamp(18px, 4vw, 72px);
  bottom: auto;
  width: min(470px, calc(100% - 60px));
  height: auto;
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 244, 250, 0.16)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 18px);
  box-shadow: 0 18px 42px rgba(117, 73, 103, 0.09);
  backdrop-filter: blur(3px);
}

.room-body[data-active-pane="box"] .window-ribbon,
.room-body[data-active-pane="box"] #project-filters {
  display: none;
}

.room-body[data-active-pane="box"] .room-pane {
  position: relative;
  inset: auto;
  padding: 18px;
  overflow: visible;
}

.room-body[data-active-pane="box"] #pane-box .pane-heading {
  margin-bottom: 12px;
  padding-right: 0;
}

.room-body[data-active-pane="box"] #pane-box .pane-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.room-body[data-active-pane="box"] .module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.room-body[data-active-pane="box"] .project-module-card {
  min-height: 104px;
  padding: 12px 38px 12px 12px;
  border-color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.54), rgba(255, 238, 248, 0.26)),
    repeating-linear-gradient(135deg, rgba(255, 150, 194, 0.07) 0 8px, transparent 8px 18px);
  box-shadow: 0 12px 26px rgba(117, 73, 103, 0.08);
  backdrop-filter: blur(3px);
}

.room-body[data-active-pane="box"] .project-module-card:hover {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.56), rgba(255, 238, 248, 0.34)),
    repeating-linear-gradient(135deg, rgba(255, 150, 194, 0.09) 0 8px, transparent 8px 18px);
}

.room-body[data-active-pane="box"] .project-module-card .project-card-top {
  align-items: center;
}

.room-body[data-active-pane="box"] .project-module-card .project-icon {
  width: 42px;
  height: 42px;
}

.room-body[data-active-pane="box"] .project-module-card .post-date {
  margin: 0 0 4px;
  font-size: 10px;
}

.room-body[data-active-pane="box"] .project-module-card h3 {
  font-size: 17px;
}

.room-body[data-active-pane="box"] .project-module-card p:not(.post-date) {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.room-body[data-active-pane="box"] .project-module-card .project-pills {
  display: none;
}

.room-body[data-active-pane="box"] .project-module-card a {
  margin-top: 8px;
  font-size: 12px;
}

.room-body[data-active-pane="server"] .desk-window,
.room-body[data-active-pane="module"] .desk-window,
.room-body[data-active-pane="diary"] .desk-window {
  width: min(590px, calc(100% - 390px));
}

.window-ribbon {
  position: absolute;
  top: 0;
  right: 26px;
  z-index: 3;
  width: 46px;
  height: 74px;
  background: linear-gradient(180deg, #ff93c2, #83cfe8);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.room-pane {
  position: absolute;
  inset: 0;
  display: none;
  padding: 30px;
  overflow: auto;
}

#pane-diary,
#pane-box,
#pane-server {
  overflow: hidden;
}

.room-pane.active {
  display: block;
}

.pane-heading {
  margin-bottom: 14px;
  padding-right: 70px;
}

.pane-heading h2 {
  font-size: clamp(30px, 3.5vw, 46px);
}

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

.project-module-card {
  position: relative;
  min-height: 128px;
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.54), rgba(255, 239, 248, 0.34)),
    repeating-linear-gradient(135deg, rgba(255, 150, 194, 0.08) 0 8px, transparent 8px 18px);
  box-shadow: 0 12px 26px rgba(117, 73, 103, 0.08);
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.project-module-card:hover {
  border-color: rgba(239, 127, 177, 0.48);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(255, 239, 248, 0.46)),
    repeating-linear-gradient(135deg, rgba(255, 150, 194, 0.1) 0 8px, transparent 8px 18px);
}

.project-module-card .project-card-top {
  gap: 10px;
}

.project-module-card .project-icon {
  width: 42px;
  height: 42px;
}

.project-module-card .post-date {
  margin-bottom: 4px;
  font-size: 11px;
}

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

.project-module-card p:not(.post-date) {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #6c5a72;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-module-card .project-pills {
  display: none;
}

.project-module-card a {
  margin-top: 10px;
  font-size: 13px;
}

.module-detail {
  display: grid;
  gap: 14px;
  max-width: 410px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 14px 34px rgba(117, 73, 103, 0.1);
  backdrop-filter: blur(5px);
}

.module-detail img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(117, 73, 103, 0.14);
}

.module-detail p {
  margin: 0;
  color: #5f4f66;
  font-size: 16px;
  line-height: 1.75;
}

.compact-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.compact-notes .post-card {
  min-height: 0;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(117, 73, 103, 0.1);
}

.compact-notes .post-card:first-child {
  grid-column: 1 / -1;
  min-height: 170px;
}

.compact-notes .post-card h3 {
  font-size: 20px;
}

.compact-notes .post-card p:not(.post-date) {
  margin: 12px 0;
  line-height: 1.7;
}

.compact-notes .post-card::after,
.project-card::after,
.server-card::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 12px;
  border: 1px solid rgba(239, 127, 177, 0.28);
  border-radius: 999px;
  background: rgba(255, 246, 252, 0.78);
  color: rgba(239, 127, 177, 0.72);
  content: "♡";
  font-weight: 950;
}

.project-module-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.server-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(117, 73, 103, 0.12);
}

.server-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(117, 73, 103, 0.16);
}

.monitor-panel .status-layout {
  grid-template-columns: 1fr;
}

.watch-summary {
  margin: -6px 0 14px;
}

.qrcode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(117, 73, 103, 0.08);
}

.qrcode-card.online {
  grid-template-columns: 1fr;
}

.qrcode-card img {
  width: 116px;
  height: 116px;
  border-radius: 8px;
  background: #fff;
  image-rendering: pixelated;
}

.qrcode-card img[hidden] {
  display: none;
}

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

.qrcode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(63, 42, 68, 0.28);
  backdrop-filter: blur(8px);
}

.password-dialog {
  display: grid;
  gap: 14px;
  width: min(340px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 247, 252, 0.92);
  box-shadow: 0 24px 58px rgba(63, 42, 68, 0.22);
}

.password-dialog h3 {
  margin: 0;
  font-size: 20px;
}

.password-dialog input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(234, 190, 216, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.password-dialog input:focus {
  border-color: rgba(239, 127, 177, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 127, 177, 0.16);
}

.password-dialog div {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.room-pane .events {
  max-height: 180px;
  overflow: auto;
}

@media (max-width: 900px) {
  .room-body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
    background-position: center top;
  }

  .room-home {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 12px 24px;
  }

  .room-stage {
    height: auto;
    min-height: calc(100vh - 144px);
    min-height: calc(100dvh - 144px);
    overflow: visible;
  }

  .profile-note,
  .desk-window {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin: 18px;
  }

  .desk-window {
    height: auto;
    min-height: 0;
  }

  .room-pane {
    position: relative;
    inset: auto;
  }

  .room-body[data-active-pane] .desk-window {
    width: auto;
    height: auto;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-body[data-active-pane="box"] .desk-window {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .room-body[data-active-pane="watch"] .desk-window,
  .room-body[data-active-pane="server"] .desk-window,
  .room-body[data-active-pane="module"] .desk-window,
  .room-body[data-active-pane="diary"] .desk-window {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 252, 0.56)),
      repeating-linear-gradient(0deg, rgba(239, 127, 177, 0.06) 0 1px, transparent 1px 32px);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 560px) {
  .room-body {
    background-position: 54% top;
  }

  .room-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .room-tab {
    padding: 0 8px;
    font-size: 13px;
  }

  .room-home {
    padding: 132px 10px 22px;
  }

  .room-stage {
    min-height: calc(100vh - 154px);
    min-height: calc(100dvh - 154px);
  }

  .profile-note {
    margin: 0 8px 12px;
    padding: 16px;
  }

  .profile-note h1 {
    font-size: 38px;
  }

  .room-pane {
    padding: 22px;
  }

  .room-body[data-active-pane="box"] .room-pane {
    padding: 0;
  }

  .room-body[data-active-pane="box"] .project-module-card {
    min-height: 58px;
  }

  .room-body[data-active-pane="box"] .module-grid {
    grid-template-columns: 1fr;
  }

  .room-body[data-active-pane="box"] .project-module-card {
    min-height: 108px;
  }

  .server-card {
    grid-template-columns: 1fr;
  }

  .qrcode-card {
    grid-template-columns: 1fr;
  }

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

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

  #pane-diary,
  #pane-box,
  #pane-server {
    overflow: auto;
  }
}
