:root {
  --paper: #f5f7f4;
  --paper-bright: #fbfcf9;
  --ink: #123d32;
  --ink-2: #1f5a49;
  --teal: #3a8d85;
  --mint: #dcebe5;
  --amber: #d59a3a;
  --body: #4f5e58;
  --line: rgba(18, 61, 50, 0.14);
  --shadow: 0 24px 70px rgba(24, 58, 49, 0.11);
  --font-geist-sans: "Segoe UI", "PingFang SC", sans-serif;
  --font-geist-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", var(--font-geist-sans), sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: rgba(213, 154, 58, 0.28);
  color: var(--ink);
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 26%, rgba(58, 141, 133, 0.09), transparent 28%),
    linear-gradient(90deg, rgba(18, 61, 50, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(18, 61, 50, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 80px 80px, 80px 80px, auto;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(260px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 28px clamp(28px, 5vw, 82px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(18, 61, 50, 0.56);
  border-radius: 49% 51% 52% 48%;
  transform: rotate(-4deg);
}

.brand-ring {
  position: absolute;
  border: 1px solid rgba(18, 61, 50, 0.52);
  border-radius: 47% 53% 48% 52%;
}

.brand-ring-one { inset: 6px; transform: rotate(11deg); }
.brand-ring-two { inset: 11px; transform: rotate(-16deg); }
.brand-ring-three { inset: 16px; transform: rotate(8deg); }

.brand-sprout {
  position: absolute;
  top: -8px;
  left: 22px;
  width: 7px;
  height: 12px;
  border-left: 2px solid var(--ink);
  border-radius: 100% 0;
  transform: rotate(12deg);
}

.brand-sprout::after {
  position: absolute;
  top: 0;
  left: 1px;
  width: 9px;
  height: 5px;
  border-radius: 100% 10% 100% 10%;
  background: var(--teal);
  content: "";
  transform: rotate(-28deg);
  transform-origin: left center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: rgba(18, 61, 50, 0.58);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  color: #384841;
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav a,
.desktop-nav button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease;
}

.desktop-nav a::after,
.desktop-nav button::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  background: var(--ink-2);
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav button:hover,
.desktop-nav button:focus-visible,
.desktop-nav .is-active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav button:hover::after,
.desktop-nav button:focus-visible::after,
.desktop-nav .is-active::after {
  right: 0;
  left: 0;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.studio-trigger {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(18, 61, 50, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.studio-trigger:hover,
.studio-trigger:focus-visible {
  border-color: var(--ink);
  background: white;
  outline: none;
  transform: translateY(-1px);
}

.studio-trigger span { color: var(--teal); font-size: 16px; font-weight: 400; }

.account-button {
  display: flex;
  min-width: 142px;
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(18, 61, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.account-button:hover,
.account-button:focus-visible { border-color: rgba(18, 61, 50, 0.38); background: white; outline: none; transform: translateY(-1px); }
.account-avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 15px; }
.account-button.is-signed-in .account-avatar { background: linear-gradient(145deg, var(--teal), var(--ink)); }
.account-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.account-copy strong { max-width: 105px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: #7e8c86; font-size: 8px; }

.notification-trigger {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(18, 61, 50, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.notification-trigger:hover,
.notification-trigger:focus-visible { border-color: var(--ink); background: white; outline: none; transform: translateY(-1px); }
.notification-trigger > span { font-family: "Noto Serif SC", STSong, serif; font-size: 13px; }
.notification-trigger > strong { position: absolute; top: -5px; right: -4px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid var(--paper); border-radius: 999px; background: #c26d4f; color: white; font-family: var(--font-geist-mono), monospace; font-size: 7px; }
.notification-trigger.has-unread { border-color: rgba(194, 109, 79, 0.35); }

.header-note {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-note span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-2);
  font-weight: 700;
}

.header-note strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-toast {
  position: fixed;
  z-index: 90;
  top: 92px;
  right: clamp(20px, 4vw, 64px);
  display: flex;
  max-width: min(440px, calc(100vw - 40px));
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(13, 48, 40, 0.22);
  color: white;
  font-size: 12px;
}

.publish-toast button { padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, 0.72); cursor: pointer; font-size: 20px; }

.notification-layer {
  position: fixed;
  z-index: 96;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 84px clamp(20px, 4vw, 58px) 24px;
  background: rgba(5, 25, 20, 0.22);
  backdrop-filter: blur(3px);
}

.notification-panel {
  width: min(420px, 100%);
  max-height: calc(100vh - 108px);
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: #f9fbf8;
  box-shadow: 0 30px 90px rgba(5, 25, 20, 0.28);
}

.notification-panel > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.notification-panel > header p { margin: 0 0 6px; color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 7px; font-weight: 700; letter-spacing: 0.15em; }
.notification-panel > header h2 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: 23px; }
.notification-panel > header h2 span { display: inline-grid; min-width: 21px; height: 21px; place-items: center; margin-left: 5px; border-radius: 50%; background: #c26d4f; color: white; font-family: var(--font-geist-mono), monospace; font-size: 7px; vertical-align: 3px; }
.notification-header-actions { display: flex; align-items: center; gap: 5px; }
.notification-header-actions button { padding: 6px 8px; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 8px; font-weight: 700; }
.notification-header-actions button:last-child { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 18px; font-weight: 300; }
.notification-header-actions button:disabled { cursor: default; opacity: 0.35; }
.notification-list { max-height: min(510px, calc(100vh - 260px)); overflow-y: auto; }
.notification-list > button { position: relative; display: grid; width: 100%; grid-template-columns: 38px 1fr 8px; gap: 12px; padding: 17px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.notification-list > button:hover,
.notification-list > button:focus-visible { background: rgba(220, 235, 229, 0.35); outline: none; }
.notification-list > button.is-read { opacity: 0.62; }
.notification-list > button.is-unread { background: rgba(255, 248, 234, 0.48); }
.notification-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--ink)); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 13px; }
.notification-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.notification-copy strong { color: #41534c; font-size: 10px; font-weight: 500; }
.notification-copy strong b { color: var(--ink); font-weight: 750; }
.notification-copy small { overflow: hidden; color: #75837d; font-family: "Noto Serif SC", STSong, serif; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy time { color: #99a39f; font-size: 7px; }
.notification-list > button > i { width: 7px; height: 7px; align-self: center; border-radius: 50%; background: #c26d4f; box-shadow: 0 0 0 4px rgba(194, 109, 79, 0.1); }
.notification-empty { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 14px; color: #8a9791; text-align: center; }
.notification-empty span { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 17px; }
.notification-empty p { margin: 0; font-size: 9px; line-height: 1.7; }
.notification-panel > footer { display: flex; align-items: flex-start; gap: 9px; padding: 13px 18px; background: rgba(220, 235, 229, 0.35); }
.notification-panel > footer > span { display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-family: serif; font-size: 9px; }
.notification-panel > footer p { margin: 1px 0 0; color: #71807a; font-size: 8px; line-height: 1.55; }

.mobile-menu-trigger,
.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100vh);
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  align-items: center;
  padding: 130px clamp(28px, 5.5vw, 92px) 104px;
}

.hero::before {
  position: absolute;
  top: 16%;
  right: 8%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(58, 141, 133, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 72px rgba(58, 141, 133, 0.035), 0 0 0 144px rgba(58, 141, 133, 0.02);
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding-top: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.eyebrow > span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif;
  font-size: clamp(48px, 4.3vw, 72px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.34;
}

.hero-intro {
  margin: 30px 0 0;
  color: var(--body);
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-width: 170px;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid rgba(18, 61, 50, 0.3);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(18, 61, 50, 0.16);
  color: #f8fbf8;
}

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

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink-2);
  box-shadow: 0 15px 28px rgba(18, 61, 50, 0.22);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.76);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 48px 0 0;
}

.hero-stats div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  padding: 0 23px;
  border-left: 1px solid var(--line);
}

.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-family: var(--font-geist-mono), monospace; font-size: 16px; font-weight: 700; }
.hero-stats dd { margin: 0; color: #71817a; font-size: 11px; }

.hero-visual {
  position: absolute;
  z-index: 2;
  top: 98px;
  right: -2.5%;
  bottom: 20px;
  left: 46%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: linear-gradient(0deg, var(--paper) 2%, transparent 72%);
  content: "";
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(850px, 106%);
  max-width: none;
  max-height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.88) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 56% 58% at 51% 54%, #000 48%, rgba(0, 0, 0, 0.94) 70%, transparent 98%);
  mask-image: radial-gradient(ellipse 56% 58% at 51% 54%, #000 48%, rgba(0, 0, 0, 0.94) 70%, transparent 98%);
  mix-blend-mode: multiply;
}

.visual-orbit {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 50%;
  border: 1px dashed rgba(58, 141, 133, 0.2);
  border-radius: 50%;
  transform: translateX(-50%);
}

.orbit-one { width: 54%; aspect-ratio: 1; }
.orbit-two { top: 7%; width: 68%; aspect-ratio: 1; }

.thermal-scale {
  position: absolute;
  z-index: 3;
  top: 29%;
  left: 6%;
  display: flex;
  height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 22px;
  border-left: 1px solid rgba(58, 141, 133, 0.4);
  color: rgba(18, 61, 50, 0.63);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.thermal-scale::before {
  position: absolute;
  top: -23px;
  left: -8px;
  content: "°C";
  font-size: 11px;
}

.thermal-scale span::before {
  position: absolute;
  left: -4px;
  width: 8px;
  height: 1px;
  margin-top: 5px;
  background: rgba(58, 141, 133, 0.5);
  content: "";
}

.visual-legend {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 32%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(18, 61, 50, 0.54);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.visual-legend span { display: flex; align-items: center; gap: 6px; }
.visual-legend i { display: block; width: 4px; height: 14px; border-radius: 999px; }
.legend-low { background: var(--teal); }
.legend-mid { background: #7aab8e; }
.legend-high { background: var(--amber); }

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 29px;
  left: clamp(28px, 5.5vw, 92px);
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(18, 61, 50, 0.5);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 58px;
  height: 1px;
  overflow: hidden;
  background: rgba(18, 61, 50, 0.16);
}

.scroll-cue i::after {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: var(--teal);
  content: "";
  animation: scroll-line 2.4s ease-in-out infinite;
}

.access-preview {
  position: relative;
  z-index: 7;
  display: grid;
  max-width: 1280px;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.65fr) auto;
  align-items: center;
  gap: 34px;
  margin: -30px auto 72px;
  padding: 30px 32px;
  border: 1px solid rgba(18, 61, 50, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(18, 61, 50, 0.09);
  backdrop-filter: blur(14px);
}

.access-intro .eyebrow { margin-bottom: 9px; font-size: 8px; }
.access-intro .eyebrow > span { width: 20px; }
.access-intro h2 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: 23px; letter-spacing: -0.03em; line-height: 1.45; }
.access-intro > p:last-child { margin: 10px 0 0; color: var(--body); font-size: 10px; line-height: 1.65; }
.access-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.access-roles article { display: flex; min-height: 86px; align-items: flex-start; gap: 10px; padding: 14px; border-left: 1px solid var(--line); }
.role-number { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 8px; font-weight: 700; }
.access-roles h3 { margin: 0 0 5px; font-family: "Noto Serif SC", STSong, serif; font-size: 14px; }
.access-roles p { margin: 0; color: #75837d; font-size: 9px; line-height: 1.65; }
.access-cta { display: flex; width: 150px; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 700; text-align: left; }
.access-cta i { color: #9ad1c3; font-size: 15px; font-style: normal; transition: transform 180ms ease; }
.access-cta:hover i,
.access-cta:focus-visible i { transform: translate(2px, -2px); }

.featured {
  position: relative;
  z-index: 5;
  padding: 100px clamp(28px, 5.5vw, 92px) 120px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 249, 0.78);
}

.section-heading {
  display: flex;
  max-width: 1280px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin: 0 auto 42px;
}

.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif; font-size: clamp(32px, 3vw, 48px); letter-spacing: -0.04em; }
.section-heading > p { max-width: 330px; margin: 0 0 6px; color: var(--body); font-size: 14px; line-height: 1.8; }

.category-grid {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
}

.category-card {
  overflow: hidden;
  border: 1px solid rgba(18, 61, 50, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 44px rgba(26, 59, 51, 0.07);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-art {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--ink);
  isolation: isolate;
}

.art-technology {
  background-image: radial-gradient(circle at 72% 46%, rgba(213, 154, 58, 0.92) 0 2px, rgba(213, 154, 58, 0.2) 3px 18px, transparent 19px), repeating-radial-gradient(ellipse at 72% 46%, transparent 0 14px, rgba(220, 235, 229, 0.21) 15px 16px), linear-gradient(135deg, #123d32, #245f51);
}

.art-reading {
  background-image: linear-gradient(28deg, transparent 44%, rgba(255, 248, 234, 0.17) 45% 47%, transparent 48%), repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.08) 23px 24px), linear-gradient(135deg, #775b2d, #d59a3a);
}

.art-living {
  background-image: radial-gradient(ellipse at 34% 108%, transparent 0 44%, rgba(220, 235, 229, 0.25) 45% 47%, transparent 48% 55%, rgba(220, 235, 229, 0.16) 56% 57%, transparent 58%), linear-gradient(150deg, #315c4e, #81a28d 58%, #dcebe5);
}

.art-treehole {
  background-image: radial-gradient(circle at 50% 58%, rgba(213, 154, 58, 0.86) 0 3px, rgba(213, 154, 58, 0.12) 4px 32px, transparent 33px), repeating-radial-gradient(ellipse at 50% 58%, transparent 0 18px, rgba(255, 248, 234, 0.14) 19px 20px), linear-gradient(145deg, #162f2b, #4b3428);
}

.art-index {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.art-glow { position: absolute; right: 18%; bottom: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 12px rgba(213, 154, 58, 0.13), 0 0 38px 18px rgba(213, 154, 58, 0.23); }
.art-line { position: absolute; right: -10%; left: -10%; display: block; height: 1px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transform: rotate(-8deg); }
.line-one { bottom: 35%; }
.line-two { bottom: 49%; transform: rotate(4deg); }
.line-three { bottom: 63%; transform: rotate(-2deg); }

.card-content { padding: 28px 28px 26px; }
.card-kicker { margin: 0 0 11px; color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 9px; font-weight: 650; letter-spacing: 0.14em; }
.category-card.amber .card-kicker { color: #9c681c; }
.category-card h3 { margin: 0; font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif; font-size: 27px; }
.card-summary { min-height: 72px; margin: 15px 0 20px; color: var(--body); font-size: 13px; line-height: 1.85; }
.card-latest { min-height: 67px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-latest span { display: block; margin-bottom: 5px; color: #84928c; font-size: 10px; }
.card-latest strong { display: block; color: #2f453d; font-size: 12px; font-weight: 560; line-height: 1.55; }
.card-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.card-link span { transition: transform 180ms ease; }
.card-link:hover span,
.card-link:focus-visible span { transform: translate(2px, -2px); }

.notes {
  scroll-margin-top: 24px;
  padding: 118px clamp(28px, 5.5vw, 92px) 130px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 23%, rgba(58, 141, 133, 0.08), transparent 24%),
    var(--paper);
}

.notes-heading {
  display: flex;
  max-width: 1280px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 30px;
}

.notes-heading .eyebrow { margin-bottom: 15px; }
.notes-heading h2,
.about-copy h2,
.newsletter h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif;
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.search-box {
  display: flex;
  width: min(340px, 100%);
  height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--teal);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(58, 141, 133, 0.58);
  box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.09);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-box input::placeholder { color: #8b9893; }

.filter-bar {
  display: flex;
  max-width: 1280px;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 34px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--line);
}

.filter-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #697872;
  cursor: pointer;
  font-size: 12px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-bar button span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 61, 50, 0.07);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.filter-bar button:hover,
.filter-bar button:focus-visible {
  border-color: var(--line);
  color: var(--ink);
}

.filter-bar button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #f8fbf8;
}

.filter-bar button.is-active span { background: rgba(255, 255, 255, 0.15); }

.post-grid {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto;
}

.post-card {
  overflow: hidden;
  border: 1px solid rgba(18, 61, 50, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 40px rgba(23, 57, 47, 0.055);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(23, 57, 47, 0.1);
}

.post-lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
}

.post-art {
  position: relative;
  min-height: 175px;
  overflow: hidden;
  background:
    repeating-radial-gradient(ellipse at 74% 55%, transparent 0 18px, rgba(255, 255, 255, 0.19) 19px 20px),
    linear-gradient(145deg, #123d32, #3a8d85);
}

.post-card.amber .post-art {
  background:
    linear-gradient(24deg, transparent 45%, rgba(255, 255, 255, 0.16) 46% 48%, transparent 49%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, 0.08) 26px),
    linear-gradient(145deg, #705327, #d59a3a);
}

.post-card.sage .post-art {
  background:
    radial-gradient(ellipse at 45% 105%, transparent 0 40%, rgba(255, 255, 255, 0.22) 41% 43%, transparent 44% 52%, rgba(255, 255, 255, 0.12) 53% 55%, transparent 56%),
    linear-gradient(145deg, #264d42, #91ae9d);
}

.post-art > span {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.post-art.has-media { background: #17372f; }
.post-art.has-media::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(5, 25, 20, 0.22), transparent 45%, rgba(5, 25, 20, 0.34)); content: ""; }
.post-art.has-media img,
.post-art.has-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-art.has-media em { position: absolute; z-index: 2; right: 16px; bottom: 15px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(5, 25, 20, 0.56); color: white; font-size: 8px; font-style: normal; letter-spacing: 0.05em; backdrop-filter: blur(7px); }

.post-art i {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.post-art i:nth-of-type(1) { right: -24px; bottom: -30px; width: 150px; height: 150px; }
.post-art i:nth-of-type(2) { right: 32px; bottom: 24px; width: 64px; height: 64px; }
.post-art i:nth-of-type(3) { right: 61px; bottom: 53px; width: 7px; height: 7px; border: 0; background: var(--amber); box-shadow: 0 0 22px 8px rgba(213, 154, 58, 0.34); }

.post-copy {
  display: flex;
  min-height: 288px;
  flex-direction: column;
  padding: 25px 25px 22px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #809089;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.post-meta span { color: var(--teal); font-weight: 700; }
.post-card.amber .post-meta span { color: #9a681c; }

.post-copy h3 {
  margin: 20px 0 13px;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, serif;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.post-copy > p {
  margin: 0;
  color: var(--body);
  font-size: 12px;
  line-height: 1.85;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8b9893;
  font-size: 10px;
}

.post-footer button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.post-footer button span { transition: transform 180ms ease; }
.post-footer button:hover span { transform: translate(2px, -2px); }
.post-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.post-footer .post-delete-button { color: #a45749; font-size: 9px; font-weight: 650; }
.post-footer .post-delete-button:hover,
.post-footer .post-delete-button:focus-visible { color: #7f382f; text-decoration: underline; text-underline-offset: 3px; }

.pagination {
  display: grid;
  max-width: 1280px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 38px auto 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.pagination-step {
  display: inline-flex;
  min-width: 110px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid rgba(18, 61, 50, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pagination-step:hover:not(:disabled),
.pagination-step:focus-visible { border-color: var(--teal); background: white; transform: translateY(-1px); }
.pagination-step:disabled { cursor: not-allowed; opacity: 0.38; }
.pagination-center { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 18px; }
.pagination-center p { margin: 0; color: #84918c; font-size: 8px; white-space: nowrap; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination-pages button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #63736c;
  cursor: pointer;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.pagination-pages button:hover,
.pagination-pages button:focus-visible { border-color: rgba(58, 141, 133, 0.35); color: var(--ink); }
.pagination-pages button.is-active { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 6px 16px rgba(18, 61, 50, 0.16); }
.pagination-ellipsis { display: grid; min-width: 20px; place-items: center; color: #9aa59f; font-size: 9px; letter-spacing: 0.08em; }

.empty-state {
  display: grid;
  max-width: 1280px;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: 0 auto;
  border: 1px dashed rgba(18, 61, 50, 0.2);
  border-radius: 18px;
  color: var(--body);
  text-align: center;
}

.empty-state strong { color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 22px; }
.empty-state p { margin: 0 0 10px; font-size: 12px; }
.empty-state button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 11px; }

.guestbook-home {
  scroll-margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(52px, 8vw, 118px);
  padding: 116px clamp(28px, 8vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 22%, rgba(213, 154, 58, 0.12), transparent 18%),
    linear-gradient(135deg, #f4f0e6, #e5efea 72%);
}

.guestbook-home-intro,
.guestbook-home-panel { position: relative; z-index: 1; }
.guestbook-home-intro::before { position: absolute; z-index: -1; top: -92px; left: -116px; width: 330px; height: 330px; border: 1px solid rgba(18, 61, 50, 0.08); border-radius: 50%; box-shadow: 0 0 0 44px rgba(18, 61, 50, 0.025), 0 0 0 88px rgba(18, 61, 50, 0.014); content: ""; }
.guestbook-home-intro h2 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.35; letter-spacing: -0.04em; }
.guestbook-home-intro > p:not(.eyebrow) { max-width: 520px; margin: 22px 0 0; color: var(--body); font-size: 13px; line-height: 2; }
.guestbook-home-promise { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(18, 61, 50, 0.14); }
.guestbook-home-promise > span { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 15px; }
.guestbook-home-promise p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.guestbook-home-promise strong { color: var(--ink); font-size: 11px; }
.guestbook-home-promise small { color: #7a8983; font-size: 9px; line-height: 1.6; }

.guestbook-home-panel { min-height: 330px; padding: 34px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 22px; background: rgba(255, 255, 255, 0.76); box-shadow: 0 26px 70px rgba(18, 61, 50, 0.1); backdrop-filter: blur(14px); }
.guestbook-home-locked,
.guestbook-home-admin { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; justify-content: center; }
.guestbook-home-seal { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 20px; border: 1px solid rgba(213, 154, 58, 0.32); border-radius: 50%; background: rgba(213, 154, 58, 0.1); color: #875d20; font-family: "Noto Serif SC", STSong, serif; font-size: 18px; box-shadow: 0 0 0 9px rgba(213, 154, 58, 0.04); }
.guestbook-home-locked h3,
.guestbook-home-admin h3 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 26px; font-weight: 600; }
.guestbook-home-locked > p,
.guestbook-home-admin > p:not(.modal-kicker) { max-width: 520px; margin: 12px 0 22px; color: var(--body); font-size: 11px; line-height: 1.8; }
.guestbook-home-locked > div { display: flex; gap: 8px; }
.guestbook-home-locked button,
.guestbook-home-admin button,
.guestbook-home-form footer button { min-height: 42px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.guestbook-home-locked button:first-child { border-color: var(--line); background: white; color: var(--ink); }
.guestbook-home-admin .modal-kicker { margin: 0 0 9px; }
.guestbook-home-admin button { display: inline-flex; align-items: center; gap: 38px; }

.guestbook-home-form { display: flex; min-height: 260px; flex-direction: column; }
.guestbook-home-form > header { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.guestbook-home-form > header p { display: flex; min-width: 0; flex-direction: column; gap: 3px; margin: 0; }
.guestbook-home-form > header strong { color: var(--ink); font-size: 11px; }
.guestbook-home-form > header small { color: #84918c; font-size: 8px; }
.guestbook-home-form > header button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--teal); cursor: pointer; font-size: 8px; font-weight: 700; }
.guestbook-home-form > label { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.guestbook-home-form > label > span { color: #53645d; font-size: 9px; font-weight: 700; }
.guestbook-home-form textarea { width: 100%; min-height: 130px; flex: 1; padding: 13px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 11px; outline: 0; background: rgba(247, 250, 247, 0.78); color: var(--ink); font-size: 12px; line-height: 1.8; resize: vertical; }
.guestbook-home-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.08); }
.guestbook-home-form textarea::placeholder { color: #9ba6a1; }
.guestbook-home-form > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.guestbook-home-form > footer small { color: #8d9994; font-size: 8px; }
.guestbook-home-form footer button { display: inline-flex; align-items: center; gap: 28px; }

.about {
  scroll-margin-top: 20px;
  padding: 126px clamp(28px, 5.5vw, 92px);
  background: var(--ink);
  color: #eef5f1;
}

.about-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(70px, 9vw, 140px);
  margin: 0 auto;
}

.about-portrait {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid rgba(220, 235, 229, 0.2);
  border-radius: 48% 52% 45% 55%;
  background:
    radial-gradient(circle, rgba(213, 154, 58, 0.16), transparent 13%),
    repeating-radial-gradient(ellipse at center, transparent 0 23px, rgba(220, 235, 229, 0.09) 24px 25px),
    linear-gradient(145deg, rgba(58, 141, 133, 0.22), transparent);
  transform: rotate(-2deg);
}

.about-portrait::before,
.about-portrait::after {
  position: absolute;
  background: rgba(220, 235, 229, 0.17);
  content: "";
}

.about-portrait::before { top: 10%; bottom: 10%; left: 50%; width: 1px; }
.about-portrait::after { top: 50%; right: 10%; left: 10%; height: 1px; }

.portrait-rings {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(220, 235, 229, 0.26);
  border-radius: 46% 54% 50% 50%;
  box-shadow: 0 0 0 28px rgba(220, 235, 229, 0.045), 0 0 0 58px rgba(220, 235, 229, 0.025);
}

.portrait-rings span {
  font-family: "Noto Serif SC", STSong, serif;
  font-size: 68px;
  font-weight: 700;
}

.about-portrait > p {
  position: absolute;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: rgba(220, 235, 229, 0.48);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.about-copy .eyebrow { color: #8ec5b7; }
.about-copy h2 { color: #f7fbf8; }
.about-copy > p { color: rgba(238, 245, 241, 0.68); font-size: 14px; line-height: 2; }
.about-copy .about-lead { margin-top: 28px; color: rgba(247, 251, 248, 0.93); font-family: "Noto Serif SC", STSong, serif; font-size: 20px; line-height: 1.8; }
.about-copy blockquote { margin: 30px 0; padding: 18px 0 18px 24px; border-left: 2px solid var(--amber); color: rgba(247, 251, 248, 0.84); font-family: "Noto Serif SC", STSong, serif; font-size: 16px; letter-spacing: 0.08em; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0 0;
}

.about-facts div { padding-top: 15px; border-top: 1px solid rgba(220, 235, 229, 0.17); }
.about-facts dt { margin-bottom: 6px; color: rgba(220, 235, 229, 0.44); font-size: 9px; }
.about-facts dd { margin: 0; color: rgba(247, 251, 248, 0.84); font-size: 11px; line-height: 1.6; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(400px, 0.8fr);
  align-items: center;
  gap: 80px;
  padding: 100px clamp(28px, 8vw, 140px);
  background: #e9efeb;
}

.newsletter .eyebrow { margin-bottom: 14px; }
.newsletter h2 { font-size: clamp(32px, 3vw, 46px); }
.newsletter > div > p:last-child { margin: 18px 0 0; color: var(--body); font-size: 13px; }
.newsletter-status { display: inline-flex; width: fit-content; margin-top: 14px; padding: 5px 9px; border: 1px solid rgba(160, 105, 34, 0.22); border-radius: 999px; background: rgba(213, 154, 58, 0.09); color: #875d20; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; }

.subscribe-form-wrap { display: grid; gap: 9px; }

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 6px;
  border: 1px solid rgba(18, 61, 50, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(18, 61, 50, 0.07);
}

.subscribe-form input { min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.subscribe-form button { min-width: 132px; height: 46px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 12px; font-weight: 650; }
.subscribe-form input:disabled { opacity: 0.62; }
.subscribe-form button:disabled { cursor: wait; opacity: 0.68; }
.subscribe-message { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 10px; line-height: 1.65; }
.subscribe-message.error { border: 1px solid rgba(151, 57, 42, 0.2); background: rgba(151, 57, 42, 0.07); color: #7b352b; }
.subscribe-message.notice { border: 1px solid rgba(18, 61, 50, 0.15); background: rgba(18, 61, 50, 0.06); color: var(--ink); }
.subscribe-privacy { padding-left: 7px; color: rgba(60, 82, 74, 0.68); font-size: 9px; line-height: 1.6; }

.subscribe-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(18, 61, 50, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.subscribe-success > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.subscribe-success div { display: flex; flex-direction: column; gap: 3px; }
.subscribe-success strong { font-size: 13px; }
.subscribe-success small { max-width: 460px; color: var(--body); font-size: 10px; line-height: 1.65; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px clamp(28px, 5.5vw, 92px);
  background: #0d3028;
  color: rgba(247, 251, 248, 0.55);
  font-size: 10px;
}

.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand strong { color: #f7fbf8; font-family: "Noto Serif SC", STSong, serif; font-size: 16px; letter-spacing: 0.08em; }
.footer-brand span { font-size: 9px; letter-spacing: 0.12em; }
.site-footer p { margin: 0; text-align: center; }
.site-footer > a { justify-self: end; color: rgba(247, 251, 248, 0.76); }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(5, 25, 20, 0.72);
  backdrop-filter: blur(10px);
}

.guestbook-backdrop { z-index: 130; }
.guestbook-modal { position: relative; display: flex; width: min(980px, 100%); max-height: calc(100vh - 48px); flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.62); border-radius: 24px; background: #f9fbf8; box-shadow: 0 42px 110px rgba(0, 0, 0, 0.38); }
.guestbook-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px 68px 25px 38px; border-bottom: 1px solid var(--line); }
.guestbook-heading .modal-kicker { margin-bottom: 9px; }
.guestbook-heading h2 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: clamp(27px, 4vw, 38px); }
.guestbook-heading > div > p:last-child { max-width: 610px; margin: 12px 0 0; color: var(--body); font-size: 10px; line-height: 1.75; }
.guestbook-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 999px; color: var(--teal); font-size: 8px; font-weight: 700; }
.guestbook-layout { display: grid; min-height: 0; grid-template-columns: 260px 1fr; overflow: hidden; }
.guestbook-story { position: relative; display: flex; min-height: 540px; flex-direction: column; justify-content: flex-end; padding: 34px 28px; overflow: hidden; background: repeating-radial-gradient(circle at 50% 35%, transparent 0 40px, rgba(220, 235, 229, 0.08) 41px 42px), linear-gradient(155deg, #0d3028, #18483b); color: rgba(244, 250, 247, 0.84); }
.guestbook-story::after { position: absolute; right: -85px; bottom: -88px; width: 260px; height: 260px; border: 1px solid rgba(220, 235, 229, 0.1); border-radius: 50%; box-shadow: 0 0 0 38px rgba(220, 235, 229, 0.025); content: ""; }
.guestbook-rings { position: absolute; top: 66px; left: 50%; display: grid; width: 150px; height: 150px; place-items: center; border: 1px solid rgba(220, 235, 229, 0.17); border-radius: 50%; transform: translateX(-50%); }
.guestbook-rings i { position: absolute; border: 1px solid rgba(220, 235, 229, 0.14); border-radius: 50%; }
.guestbook-rings i:nth-child(1) { width: 112px; height: 112px; }
.guestbook-rings i:nth-child(2) { width: 76px; height: 76px; }
.guestbook-rings i:nth-child(3) { width: 42px; height: 42px; }
.guestbook-rings strong { position: relative; color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 27px; }
.guestbook-story > p { position: relative; z-index: 1; margin: 0 0 20px; font-family: "Noto Serif SC", STSong, serif; font-size: 15px; line-height: 2; }
.guestbook-story > small { position: relative; z-index: 1; color: #85b9ac; font-family: var(--font-geist-mono), monospace; font-size: 7px; font-weight: 700; letter-spacing: 0.14em; }
.guestbook-content { min-height: 0; padding: 26px 30px 34px; overflow-y: auto; }
.guestbook-compose { padding: 18px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 16px; background: white; box-shadow: 0 12px 32px rgba(18, 61, 50, 0.055); }
.guestbook-compose-user { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.guestbook-compose-user > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--ink)); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 13px; }
.guestbook-compose-user p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.guestbook-compose-user strong { color: var(--ink); font-size: 10px; }
.guestbook-compose-user small { color: #87948f; font-size: 8px; }
.guestbook-compose textarea,
.guestbook-reply-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #f8faf7; color: var(--ink); font-size: 11px; line-height: 1.75; resize: vertical; }
.guestbook-compose textarea:focus,
.guestbook-reply-form textarea:focus { border-color: rgba(58, 141, 133, 0.5); box-shadow: 0 0 0 3px rgba(58, 141, 133, 0.08); }
.guestbook-compose > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 11px; }
.guestbook-compose > footer small { color: #8b9893; font-size: 8px; }
.guestbook-compose > footer button,
.guestbook-reply-form > footer button:last-child { display: inline-flex; align-items: center; gap: 18px; padding: 9px 13px; border: 0; border-radius: 8px; background: var(--ink); color: white; cursor: pointer; font-size: 9px; font-weight: 700; }
.guestbook-admin-note { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid rgba(58, 141, 133, 0.18); border-radius: 13px; background: rgba(220, 235, 229, 0.34); }
.guestbook-admin-note > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 12px; }
.guestbook-admin-note p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.guestbook-admin-note strong { color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 13px; }
.guestbook-admin-note small { color: var(--body); font-size: 8px; line-height: 1.55; }
.guestbook-list { display: grid; gap: 14px; margin-top: 18px; }
.guestbook-message { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.78); }
.guestbook-message > header { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; }
.guestbook-message > header p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.guestbook-message > header strong { color: var(--ink); font-size: 10px; }
.guestbook-message > header small,
.guestbook-message > header time { color: #8c9893; font-size: 8px; }
.guestbook-message-body { margin: 15px 0 0; color: #40544c; font-family: "Noto Serif SC", STSong, serif; font-size: 11px; line-height: 1.9; white-space: pre-wrap; }
.guestbook-reply { display: grid; grid-template-columns: 32px 1fr; gap: 10px; margin-top: 15px; padding: 13px; border-left: 2px solid rgba(58, 141, 133, 0.32); border-radius: 0 10px 10px 0; background: rgba(220, 235, 229, 0.28); }
.guestbook-reply > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #c8892d, #755326); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 11px; }
.guestbook-reply.member > span { background: linear-gradient(145deg, var(--teal), var(--ink)); }
.guestbook-reply.guest > span { background: linear-gradient(145deg, #9baa9f, #596b63); }
.guestbook-reply header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guestbook-reply header strong { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 9px; }
.guestbook-reply header strong small { padding: 2px 5px; border-radius: 999px; background: rgba(18, 61, 50, 0.07); color: #74827c; font-size: 7px; font-weight: 500; }
.guestbook-reply header time { color: #909b96; font-size: 7px; }
.guestbook-reply p { margin: 7px 0 0; color: #455a51; font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.guestbook-thread-toggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; padding: 8px 10px; border: 1px dashed rgba(58, 141, 133, 0.24); border-radius: 9px; background: rgba(220, 235, 229, 0.2); color: #5f746b; cursor: pointer; font-size: 8px; font-weight: 700; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.guestbook-thread-toggle:hover,
.guestbook-thread-toggle:focus-visible { border-color: rgba(58, 141, 133, 0.48); background: rgba(220, 235, 229, 0.42); color: var(--ink); }
.guestbook-thread-toggle.is-collapse { width: fit-content; margin-left: auto; padding: 6px 9px; border-style: solid; background: transparent; }
.guestbook-reply-button { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 14px 0 0 auto; padding: 7px 10px; border: 1px solid rgba(18, 61, 50, 0.16); border-radius: 8px; background: white; color: var(--teal); cursor: pointer; font-size: 8px; font-weight: 700; }
.guestbook-reply-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.guestbook-reply-form > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.guestbook-reply-form > footer button:first-child { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--body); cursor: pointer; font-size: 8px; font-weight: 700; }
.guestbook-pagination { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 0 2px; border-top: 1px solid var(--line); }
.guestbook-pagination > button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; font-size: 8px; font-weight: 700; }
.guestbook-pagination > button:disabled { cursor: not-allowed; opacity: 0.36; }
.guestbook-pagination > div { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; }
.guestbook-pagination > div button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #687871; cursor: pointer; font-family: var(--font-geist-mono), monospace; font-size: 7px; }
.guestbook-pagination > div button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.guestbook-pagination > div span { color: #98a39f; font-size: 8px; }
.guestbook-pagination > p { grid-column: 1 / -1; margin: 0; color: #8a9791; font-size: 7px; text-align: center; }
.guestbook-empty { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 12px; color: #8a9791; text-align: center; }
.guestbook-empty > span { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 17px; }
.guestbook-empty p { max-width: 300px; margin: 0; font-size: 9px; line-height: 1.75; }

.user-management-backdrop { z-index: 135; }
.user-management-modal { position: relative; display: flex; width: min(1160px, 100%); max-height: calc(100vh - 48px); flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.62); border-radius: 24px; background: #f8faf7; box-shadow: 0 42px 110px rgba(0, 0, 0, 0.38); }
.user-management-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 34px 72px 25px 38px; border-bottom: 1px solid var(--line); }
.user-management-heading .modal-kicker { margin-bottom: 9px; }
.user-management-heading h2 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: clamp(27px, 4vw, 38px); }
.user-management-heading > div > p:last-child { margin: 11px 0 0; color: var(--body); font-size: 10px; line-height: 1.7; }
.user-management-heading > span { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 999px; color: var(--teal); font-size: 8px; font-weight: 700; }
.user-management-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 20px 38px 12px; }
.user-management-stats article { display: flex; min-height: 78px; align-items: flex-end; justify-content: space-between; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.user-management-stats span { color: #788680; font-size: 8px; }
.user-management-stats strong { color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 28px; font-weight: 500; line-height: 1; }
.user-management-stats .is-alert strong { color: #a05c4b; }
.user-management-note { display: flex; align-items: flex-start; gap: 9px; margin: 0 38px 15px; padding: 11px 13px; border: 1px solid rgba(213, 154, 58, 0.2); border-radius: 9px; background: rgba(255, 248, 234, 0.68); color: #6e624f; font-size: 8px; line-height: 1.65; }
.user-management-note > span { display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--amber); color: white; font-family: serif; font-size: 9px; }
.user-management-list { min-height: 180px; margin: 0 38px 34px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.68); }
.user-management-columns,
.user-management-list > article { display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(130px, 0.95fr) minmax(130px, 0.95fr) minmax(120px, 0.8fr) minmax(145px, 0.8fr); align-items: center; gap: 14px; }
.user-management-columns { position: sticky; z-index: 1; top: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #edf3ef; color: #72817b; font-size: 7px; font-weight: 700; letter-spacing: 0.04em; }
.user-management-list > article { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.user-management-list > article:last-of-type { border-bottom: 0; }
.user-management-list > article.is-banned { background: rgba(160, 74, 57, 0.035); }
.managed-user-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.managed-user-identity .comment-avatar { flex: 0 0 auto; }
.managed-user-identity p { display: flex; min-width: 0; flex-direction: column; gap: 3px; margin: 0; }
.managed-user-identity strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.managed-user-identity small { overflow: hidden; color: #89958f; font-family: var(--font-geist-mono), monospace; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.user-management-list time,
.user-management-list code { display: flex; min-width: 0; flex-direction: column; gap: 4px; color: #53655d; font-family: inherit; font-size: 8px; font-style: normal; }
.user-management-list time small,
.user-management-list code small { display: none; color: #8b9792; font-size: 7px; }
.user-management-list code { overflow-wrap: anywhere; }
.managed-user-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.managed-user-action > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 7px; font-weight: 700; }
.managed-user-action .normal { background: rgba(98, 166, 110, 0.12); color: #527e59; }
.managed-user-action .banned { background: rgba(160, 74, 57, 0.1); color: #955746; }
.managed-user-action button { padding: 6px 8px; border: 1px solid rgba(160, 74, 57, 0.18); border-radius: 7px; background: white; color: #955746; cursor: pointer; font-size: 7px; font-weight: 700; white-space: nowrap; }
.user-management-list > article.is-banned .managed-user-action button { border-color: rgba(18, 61, 50, 0.16); color: var(--teal); }
.user-management-empty { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 10px; padding: 24px; color: #89958f; text-align: center; }
.user-management-empty span { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 15px; }
.user-management-empty p { max-width: 340px; margin: 0; font-size: 9px; line-height: 1.7; }

.article-modal {
  position: relative;
  width: min(840px, 100%);
  max-height: calc(100vh - 48px);
  padding: clamp(34px, 6vw, 68px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(18, 61, 50, 0.025) 1px, transparent 1px),
    #fbfcf9;
  background-size: 56px 56px, auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
}

.modal-kicker { margin: 0 55px 18px 0; color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.09em; }
.article-modal h2 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.42; letter-spacing: -0.04em; }
.modal-deck { margin: 22px 0; color: var(--body); font-family: "Noto Serif SC", STSong, serif; font-size: 15px; line-height: 1.85; }
.modal-rule { display: flex; align-items: center; gap: 12px; color: #8b9893; font-family: var(--font-geist-mono), monospace; font-size: 9px; }
.modal-rule span { width: 36px; height: 1px; background: var(--teal); }
.article-delete-button { display: flex; align-items: center; gap: 7px; width: fit-content; margin: 18px 0 -8px auto; padding: 7px 10px; border: 1px solid rgba(164, 87, 73, 0.24); border-radius: 8px; background: rgba(164, 87, 73, 0.055); color: #9d5145; cursor: pointer; font-size: 8px; font-weight: 700; }
.article-delete-button span { font-size: 13px; font-weight: 400; }
.article-delete-button:hover,
.article-delete-button:focus-visible { border-color: rgba(164, 87, 73, 0.42); background: rgba(164, 87, 73, 0.1); }
.article-body { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-body p { margin: 0 0 20px; color: #354b43; font-family: "Noto Serif SC", STSong, serif; font-size: 15px; line-height: 2.05; }
.article-lead-media { margin: 30px 0 0; overflow: hidden; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 16px; background: #102d26; box-shadow: 0 18px 44px rgba(11, 42, 34, 0.1); }
.article-lead-media > video,
.article-lead-media .article-media-button img { display: block; width: 100%; max-height: min(68vh, 720px); background: #102d26; object-fit: contain; }
.article-lead-media > video { aspect-ratio: 16 / 9; }
.article-lead-media figcaption,
.article-media figcaption { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px 12px; overflow: hidden; background: rgba(255, 255, 255, 0.92); color: #75837d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.article-lead-media figcaption span,
.article-media figcaption span { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-weight: 700; }
.article-gallery { margin: 42px 0 8px; }
.article-gallery > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-gallery > header div > span { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 7px; font-weight: 700; letter-spacing: 0.14em; }
.article-gallery > header h3 { margin: 4px 0 0; font-family: "Noto Serif SC", STSong, serif; font-size: 19px; }
.article-gallery > header small { color: #84928c; font-size: 8px; }
.article-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-media figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(18, 61, 50, 0.12); border-radius: 14px; background: #e9efeb; }
.article-media figure:only-child,
.article-media figure.video { grid-column: 1 / -1; }
.article-media-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #102d26; cursor: zoom-in; }
.article-media-button img,
.article-media video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #102d26; object-fit: cover; }
.article-media video { max-height: 620px; aspect-ratio: 16 / 9; object-fit: contain; }
.article-media-button > span { position: absolute; right: 12px; bottom: 12px; display: grid; min-width: 28px; height: 28px; place-items: center; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.36); border-radius: 999px; background: rgba(5, 25, 20, 0.62); color: white; font-size: 8px; opacity: 0; transform: translateY(4px); transition: opacity 160ms ease, transform 160ms ease; backdrop-filter: blur(7px); }
.article-media-button:hover > span,
.article-media-button:focus-visible > span { opacity: 1; transform: translateY(0); }
.lead-media-button > span { min-width: auto; }
.media-unavailable { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; color: #819089; text-align: center; }
.media-unavailable span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(18, 61, 50, 0.15); border-radius: 50%; color: var(--ink); font-size: 10px; }
.media-unavailable p { margin: 0; font-size: 9px; }
.media-viewer-backdrop { z-index: 140; padding: 18px; background: rgba(3, 16, 13, 0.9); }
.media-viewer { position: relative; display: flex; width: min(1200px, 100%); max-height: calc(100vh - 36px); flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; background: #081d18; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.media-viewer-stage { display: grid; min-height: 0; flex: 1; place-items: center; overflow: auto; }
.media-viewer-stage img,
.media-viewer-stage video { display: block; max-width: 100%; max-height: calc(100vh - 124px); object-fit: contain; }
.media-viewer footer { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.72); font-size: 9px; }
.media-viewer footer span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 7px; }
.media-viewer footer strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.media-viewer-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: rgba(3, 16, 13, 0.68); color: white; cursor: pointer; font-size: 23px; backdrop-filter: blur(8px); }
.delete-backdrop { z-index: 180; }
.delete-dialog { position: relative; width: min(440px, 100%); padding: 38px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.68); border-radius: 20px; background: #fbfcf9; box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34); }
.delete-dialog::after { position: absolute; right: -64px; bottom: -78px; width: 190px; height: 190px; border: 1px solid rgba(164, 87, 73, 0.1); border-radius: 50%; box-shadow: 0 0 0 30px rgba(164, 87, 73, 0.035); content: ""; }
.delete-dialog-mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: rgba(164, 87, 73, 0.1); color: #9d5145; font-family: "Noto Serif SC", STSong, serif; font-size: 16px; }
.delete-dialog .modal-kicker { margin-bottom: 11px; color: #9d5145; }
.delete-dialog h2 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 26px; }
.delete-dialog > p:not(.modal-kicker) { position: relative; z-index: 1; margin: 16px 0 26px; color: var(--body); font-size: 11px; line-height: 1.8; }
.delete-dialog-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.delete-dialog-actions button { height: 42px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.delete-dialog-actions .confirm-delete { border-color: #94483e; background: #94483e; color: white; }
.delete-dialog-actions button:disabled { cursor: wait; opacity: 0.56; }
.article-signoff { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-signoff .brand-mark { width: 38px; height: 38px; }
.article-signoff p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.article-signoff strong { font-family: "Noto Serif SC", STSong, serif; font-size: 14px; }
.article-signoff small { color: #84928c; font-size: 9px; }

.comments-section { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.comments-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.comments-section > header p { margin: 0 0 7px; color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; }
.comments-section > header h3 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: 25px; }
.comments-section > header h3 span { display: inline-grid; min-width: 23px; height: 23px; place-items: center; margin-left: 6px; border-radius: 50%; background: var(--mint); color: var(--ink); font-family: var(--font-geist-mono), monospace; font-size: 8px; vertical-align: 4px; }
.comments-section > header > small { color: #8b9893; font-size: 9px; }

.comment-form { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin-top: 24px; padding: 17px; border: 1px solid rgba(18, 61, 50, 0.13); border-radius: 14px; background: rgba(255, 255, 255, 0.72); }
.comment-avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--ink)); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 13px; }
.comment-avatar.guest { background: #8c988f; }
.comment-avatar.admin { background: linear-gradient(145deg, #c8892d, #755326); }
.comment-composer-body { min-width: 0; }
.comment-form label { min-width: 0; }
.reply-target { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 11px; padding: 8px 10px; border-radius: 7px; background: rgba(220, 235, 229, 0.52); color: #687871; font-size: 8px; }
.reply-target strong { color: var(--ink); }
.reply-target button { padding: 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 8px; font-weight: 700; }
.comment-form textarea { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; line-height: 1.75; resize: vertical; }
.comment-form textarea::placeholder { color: #98a39f; }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.comment-form-footer small { color: #98a39f; font-size: 8px; }
.comment-form-footer button { display: inline-flex; align-items: center; gap: 22px; padding: 8px 12px; border: 0; border-radius: 7px; background: var(--ink); color: white; cursor: pointer; font-size: 9px; font-weight: 700; }
.comment-login-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(58, 141, 133, 0.18); border-radius: 13px; background: rgba(220, 235, 229, 0.38); }
.comment-login-prompt strong { font-family: "Noto Serif SC", STSong, serif; font-size: 14px; }
.comment-login-prompt p { margin: 4px 0 0; color: var(--body); font-size: 9px; }
.comment-login-prompt > span { display: flex; flex: 0 0 auto; gap: 7px; }
.comment-login-prompt button { padding: 8px 11px; border: 1px solid rgba(18, 61, 50, 0.16); border-radius: 7px; background: white; color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 700; }
.comment-login-prompt button:last-child { border-color: var(--ink); background: var(--ink); color: white; }
.comment-list { margin-top: 20px; }
.comment-list > article { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment-list > article.is-reply { margin-left: 48px; padding: 15px 14px; border-top: 0; border-left: 2px solid rgba(58, 141, 133, 0.24); border-radius: 0 10px 10px 0; background: rgba(220, 235, 229, 0.22); }
.comment-list > article > div { min-width: 0; }
.comment-list article header { display: flex; align-items: center; gap: 7px; }
.comment-list article header strong { font-size: 11px; }
.comment-list article header span { padding: 3px 6px; border-radius: 999px; background: rgba(18, 61, 50, 0.07); color: #6c7b75; font-size: 7px; }
.comment-list article header time { margin-left: auto; color: #96a19c; font-size: 8px; }
.comment-list article p { margin: 8px 0 0; color: #40544c; font-size: 11px; line-height: 1.8; }
.reply-context { display: inline-block; margin-top: 7px; color: var(--teal); font-size: 8px; }
.comment-actions { display: flex; gap: 10px; margin-top: 8px; }
.comment-actions button { padding: 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 8px; font-weight: 700; }
.comment-delete { align-self: start; padding: 4px 6px; border: 0; background: transparent; color: #a07363; cursor: pointer; font-size: 8px; }
.comment-empty { padding: 26px 0 4px; border-top: 1px solid var(--line); color: #8b9893; font-size: 10px; text-align: center; }

.auth-backdrop { z-index: 120; }
.auth-modal { position: relative; display: grid; width: min(940px, 100%); max-height: calc(100vh - 48px); grid-template-columns: 0.82fr 1.18fr; overflow: hidden auto; border: 1px solid rgba(255, 255, 255, 0.52); border-radius: 24px; background: #f9fbf8; box-shadow: 0 40px 110px rgba(0, 0, 0, 0.36); }
.auth-close { z-index: 4; }
.auth-story { position: relative; display: flex; min-height: 650px; flex-direction: column; justify-content: flex-end; padding: 48px 42px; overflow: hidden; background: radial-gradient(circle at 50% 29%, rgba(213, 154, 58, 0.23), transparent 6%), repeating-radial-gradient(ellipse at 50% 30%, transparent 0 32px, rgba(220, 235, 229, 0.1) 33px 34px), linear-gradient(155deg, #0d3028, #19483c 66%, #123d32); color: #eff6f2; }
.auth-story::after { position: absolute; right: -110px; bottom: -100px; width: 360px; height: 360px; border: 1px solid rgba(220, 235, 229, 0.11); border-radius: 50%; box-shadow: 0 0 0 54px rgba(220, 235, 229, 0.035), 0 0 0 108px rgba(220, 235, 229, 0.02); content: ""; }
.auth-tree-mark { position: absolute; top: 70px; left: 50%; display: grid; width: 170px; height: 170px; place-items: center; border: 1px solid rgba(220, 235, 229, 0.18); border-radius: 47% 53% 45% 55%; transform: translateX(-50%) rotate(-3deg); }
.auth-tree-mark i { position: absolute; border: 1px solid rgba(220, 235, 229, 0.15); border-radius: 48% 52% 50% 50%; }
.auth-tree-mark i:nth-child(1) { width: 126px; height: 126px; }
.auth-tree-mark i:nth-child(2) { width: 86px; height: 86px; }
.auth-tree-mark i:nth-child(3) { width: 48px; height: 48px; }
.auth-tree-mark strong { position: relative; z-index: 1; color: #f7fbf8; font-family: "Noto Serif SC", STSong, serif; font-size: 34px; }
.auth-story > p { position: relative; z-index: 1; margin: 0 0 14px; color: #8ec5b7; font-family: var(--font-geist-mono), monospace; font-size: 8px; font-weight: 700; letter-spacing: 0.16em; }
.auth-story blockquote { position: relative; z-index: 1; margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: 23px; line-height: 1.8; }
.auth-story dl { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0 0; }
.auth-story dl div { padding-top: 10px; border-top: 1px solid rgba(220, 235, 229, 0.18); }
.auth-story dt { color: var(--amber); font-family: var(--font-geist-mono), monospace; font-size: 8px; }
.auth-story dd { margin: 5px 0 0; color: rgba(239, 246, 242, 0.64); font-size: 8px; line-height: 1.45; }
.auth-panel { display: flex; min-height: 650px; flex-direction: column; justify-content: center; padding: 54px clamp(36px, 5vw, 66px); }
.auth-heading .modal-kicker { margin-bottom: 11px; }
.auth-heading h2,
.account-view h2 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.04em; }
.auth-heading > p:last-child { margin: 13px 0 0; color: var(--body); font-size: 11px; line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; padding: 10px 0 13px; border: 0; background: transparent; color: #83908a; cursor: pointer; font-size: 11px; font-weight: 700; }
.auth-tabs button::after { position: absolute; right: 50%; bottom: -1px; left: 50%; height: 2px; background: var(--teal); content: ""; transition: right 180ms ease, left 180ms ease; }
.auth-tabs button.is-active { color: var(--ink); }
.auth-tabs button.is-active::after { right: 12%; left: 12%; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; }
.auth-form label > span { color: #53645d; font-size: 9px; font-weight: 700; }
.auth-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid rgba(18, 61, 50, 0.16); border-radius: 9px; outline: 0; background: white; color: var(--ink); font-size: 12px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.09); }
.auth-form input::placeholder { color: #a0aaa6; }
.auth-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(160, 74, 57, 0.18); border-radius: 8px; background: rgba(160, 74, 57, 0.07); color: #8d4e42; font-size: 9px; line-height: 1.55; }
.auth-primary { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.auth-primary span { color: #9ad1c3; font-size: 16px; }
.auth-secondary { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.forgot-password-link,
.forgot-password-back { width: 100%; margin-top: 11px; padding: 7px; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 9px; font-weight: 700; }
.forgot-password-link:hover,
.forgot-password-back:hover { text-decoration: underline; }
.recovery-flow { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.recovery-account { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(220, 235, 229, 0.52); color: #63736d; font-size: 9px; }
.recovery-account strong { color: var(--ink); }
.recovery-success { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px; border: 1px solid rgba(58, 141, 133, 0.18); border-radius: 9px; background: rgba(220, 235, 229, 0.46); color: #405d53; font-size: 9px; line-height: 1.55; }
.recovery-success span { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--teal); color: white; }
.registration-security,
.security-question-settings { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; padding: 14px; border: 1px solid rgba(18, 61, 50, 0.12); border-radius: 11px; background: rgba(220, 235, 229, 0.2); }
.registration-security > header,
.security-question-settings > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.registration-security > header strong,
.security-question-settings > header strong { color: var(--ink); font-size: 10px; }
.registration-security > header small,
.security-question-settings > header small { color: #87938e; font-size: 8px; }
.security-question-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-settings-form { display: flex; flex-direction: column; gap: 14px; }
.account-settings-form > header { margin-bottom: 5px; }
.account-settings-form > header .modal-kicker { margin-bottom: 9px; }
.account-settings-form > header h2 { margin: 0; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: clamp(30px, 3.5vw, 42px); }
.account-settings-form > header > p:last-child { margin: 10px 0 0; color: var(--body); font-size: 10px; line-height: 1.7; }
.account-settings-form label { display: flex; flex-direction: column; gap: 7px; }
.account-settings-form label > span { color: #53645d; font-size: 9px; font-weight: 700; }
.account-settings-form input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid rgba(18, 61, 50, 0.16); border-radius: 9px; outline: 0; background: white; color: var(--ink); font-size: 11px; }
.account-settings-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.08); }
.settings-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-settings-actions { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 9px; }
.account-settings-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.account-settings-actions button:last-child { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-color: var(--ink); background: var(--ink); color: white; }
.auth-safety { margin: 15px 0 0; color: #8b9893; font-size: 8px; line-height: 1.6; text-align: center; }
.auth-safety strong { color: #775f3b; }
.guest-entry { display: flex; flex-direction: column; align-items: center; padding: 10px 0 0; text-align: center; }
.guest-avatar { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 50%; background: radial-gradient(circle, white, var(--mint)); color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 24px; box-shadow: 0 0 0 10px rgba(220, 235, 229, 0.32); }
.guest-entry h3 { margin: 24px 0 7px; font-family: "Noto Serif SC", STSong, serif; font-size: 19px; }
.guest-entry p { max-width: 310px; margin: 0 0 22px; color: var(--body); font-size: 10px; line-height: 1.7; }
.account-view { text-align: center; }
.account-view .modal-kicker { margin-right: 0; }
.account-portrait { display: grid; width: 90px; height: 90px; place-items: center; margin: 18px auto 20px; border: 1px solid rgba(18, 61, 50, 0.12); border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--ink)); box-shadow: 0 0 0 12px rgba(220, 235, 229, 0.42); color: white; font-family: "Noto Serif SC", STSong, serif; font-size: 30px; }
.account-portrait.admin { background: linear-gradient(145deg, #d59a3a, #705327); box-shadow: 0 0 0 12px rgba(213, 154, 58, 0.12); }
.account-portrait.guest { background: linear-gradient(145deg, #9baa9f, #596b63); }
.account-role { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 24px; color: var(--teal); font-size: 10px; }
.account-role i { width: 6px; height: 6px; border-radius: 50%; background: #62a66e; box-shadow: 0 0 0 4px rgba(98, 166, 110, 0.13); }
.account-permissions { display: grid; gap: 8px; text-align: left; }
.account-permissions > div { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.66); }
.account-permissions > div > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 9px; }
.account-permissions .is-locked { opacity: 0.55; }
.account-permissions p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.account-permissions strong { font-size: 10px; }
.account-permissions small { color: #85928d; font-size: 8px; }
.account-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 19px; }
.notification-account-button { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.notification-account-button span { padding: 4px 7px; border-radius: 999px; background: rgba(194, 109, 79, 0.1); color: #9a5a43; font-size: 8px; }
.account-security-button { border-color: rgba(58, 141, 133, 0.28); color: var(--teal); }

.studio-backdrop { align-items: center; }

.studio-modal {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  padding: clamp(28px, 4vw, 52px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(18, 61, 50, 0.024) 1px, transparent 1px),
    #f8faf7;
  background-size: 64px 64px, auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}

.studio-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-right: 52px;
}

.studio-heading .modal-kicker { margin-bottom: 12px; }
.studio-heading h2 { margin: 0; font-family: "Noto Serif SC", STSong, serif; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.04em; }
.studio-heading p:not(.modal-kicker) { margin: 12px 0 0; color: var(--body); font-size: 13px; }
.demo-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: rgba(213, 154, 58, 0.16); color: #8b5b16; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.composer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.composer-form label { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.composer-form label > span { color: #45574f; font-size: 11px; font-weight: 700; }
.composer-form .field-wide { grid-column: 1 / -1; }
.composer-form input,
.composer-form select,
.composer-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 61, 50, 0.16);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.composer-form input,
.composer-form select { height: 46px; padding: 0 13px; }
.composer-form textarea { min-height: 90px; padding: 12px 13px; resize: vertical; line-height: 1.75; }
.composer-form input:focus,
.composer-form select:focus,
.composer-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.09); }
.composer-form input::placeholder,
.composer-form textarea::placeholder { color: #98a39f; }
.composer-form input.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.composer-form .field-hint { margin-top: -2px; color: #89958f; font-size: 8px; font-weight: 400; line-height: 1.5; }

.media-uploader { overflow: hidden; border: 1px solid rgba(18, 61, 50, 0.14); border-radius: 13px; background: rgba(255, 255, 255, 0.55); transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.media-uploader.is-dragging { border-color: var(--teal); background: rgba(220, 235, 229, 0.5); box-shadow: 0 0 0 4px rgba(58, 141, 133, 0.08); }
.composer-form .media-dropzone { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 16px; cursor: pointer; }
.media-add-icon { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border: 1px dashed rgba(58, 141, 133, 0.55); border-radius: 11px; background: rgba(220, 235, 229, 0.42); }
.media-add-icon i { position: absolute; width: 15px; height: 1px; background: var(--teal); }
.media-add-icon i:last-child { transform: rotate(90deg); }
.media-drop-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.composer-form .media-drop-copy strong { color: var(--ink); font-size: 11px; }
.composer-form .media-drop-copy small { color: #7c8984; font-size: 8px; }
.composer-form .media-limits { color: #8d9994; font-size: 8px; font-weight: 400; text-align: right; }
.media-queue-wrap { border-top: 1px solid var(--line); }
.media-queue-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; color: #53655e; }
.media-queue-summary strong { font-size: 9px; }
.media-queue-summary span { color: #83908b; font-size: 8px; }
.media-queue { display: grid; max-height: 430px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; overflow-y: auto; scrollbar-color: rgba(18, 61, 50, 0.24) transparent; scrollbar-width: thin; }
.media-queue article { position: relative; display: grid; min-width: 0; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.85); }
.queued-media-preview { position: relative; width: 64px; height: 52px; overflow: hidden; border-radius: 7px; background: #17372f; }
.queued-media-preview img,
.queued-media-preview video { width: 100%; height: 100%; object-fit: cover; }
.queued-media-preview > span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 25, 20, 0.2); color: white; font-size: 15px; }
.queued-media-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.queued-media-copy small { color: var(--teal); font-size: 7px; }
.queued-media-copy strong { overflow: hidden; color: #354b43; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.queued-media-copy em { width: fit-content; padding: 3px 6px; border-radius: 999px; background: rgba(213, 154, 58, 0.14); color: #8b5b16; font-size: 7px; font-style: normal; }
.queued-media-actions { display: flex; min-width: 0; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 5px; padding-top: 1px; }
.queued-media-actions button { display: grid; min-width: 26px; height: 25px; place-items: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #65746e; cursor: pointer; font-size: 10px; }
.queued-media-actions button:disabled { cursor: not-allowed; opacity: 0.35; }
.queued-media-actions .set-cover { margin-right: auto; color: var(--teal); font-size: 7px; font-weight: 700; }
.queued-media-actions .remove-media { color: #9d5145; font-size: 15px; }

.composer-note { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid rgba(213, 154, 58, 0.22); border-radius: 10px; background: rgba(255, 248, 234, 0.7); }
.composer-note > span { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--amber); color: white; font-family: serif; font-size: 12px; }
.composer-note p { margin: 0; color: #665c49; font-size: 10px; line-height: 1.7; }
.composer-note strong { color: #57441f; }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; }
.composer-actions button { min-width: 110px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.composer-actions .publish-button { display: inline-flex; min-width: 150px; align-items: center; justify-content: center; gap: 24px; border-color: var(--ink); background: var(--ink); color: white; }
.composer-actions .publish-button:disabled { cursor: wait; opacity: 0.58; }

.preview-posts { min-height: 330px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.58); }
.preview-posts > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: #65746e; font-size: 10px; }
.preview-posts > header strong { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: var(--font-geist-mono), monospace; font-size: 9px; }
.preview-posts article { padding: 15px 0; border-bottom: 1px solid var(--line); }
.preview-posts article small { color: var(--teal); font-size: 8px; }
.preview-posts article h3 { margin: 7px 0 11px; font-family: "Noto Serif SC", STSong, serif; font-size: 14px; line-height: 1.5; }
.preview-posts article div { display: flex; gap: 7px; }
.preview-posts article button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; font-size: 9px; }
.preview-empty { display: grid; min-height: 260px; place-items: center; align-content: center; color: #86938e; text-align: center; }
.preview-empty span { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-family: "Noto Serif SC", STSong, serif; font-size: 20px; }
.preview-empty p { margin: 0; font-size: 10px; line-height: 1.8; }

@keyframes scroll-line {
  0% { transform: translateX(0); }
  55%, 100% { transform: translateX(440%); }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu-trigger {
    position: relative;
    z-index: 22;
    display: flex;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(245, 247, 244, 0.84);
    cursor: pointer;
    backdrop-filter: blur(10px);
  }
  .mobile-menu-trigger span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform 180ms ease; }
  .mobile-menu-trigger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .mobile-menu-trigger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-panel {
    position: fixed;
    z-index: 18;
    inset: 0 0 0 auto;
    display: flex;
    width: min(430px, 88vw);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 110px 48px 60px;
    background: rgba(245, 247, 244, 0.97);
    box-shadow: -30px 0 80px rgba(18, 61, 50, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(104%);
    transition: opacity 220ms ease, transform 260ms ease;
  }
  .mobile-panel::before { position: absolute; top: 22%; right: -80px; width: 300px; height: 300px; border: 1px solid rgba(58, 141, 133, 0.14); border-radius: 50%; box-shadow: 0 0 0 50px rgba(58, 141, 133, 0.04); content: ""; }
  .mobile-panel.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .mobile-panel a,
  .mobile-panel button { position: relative; z-index: 1; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-family: "Noto Serif SC", STSong, serif; font-size: 25px; text-align: left; }
  .hero { min-height: 940px; grid-template-columns: 1fr; align-items: start; padding-top: 170px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { top: 355px; right: -12%; bottom: 0; left: 34%; opacity: 0.78; }
  .hero h1 { font-size: clamp(48px, 7vw, 70px); }
  .access-preview { width: calc(100% - 56px); grid-template-columns: 1fr auto; margin-top: -22px; }
  .access-roles { grid-column: 1 / -1; grid-row: 2; }
  .access-cta { grid-column: 2; grid-row: 1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: 60px; }
  .guestbook-home { grid-template-columns: 1fr; gap: 48px; }
  .newsletter { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .post-footer { align-items: flex-start; flex-direction: column; }
  .post-card-actions { justify-content: space-between; width: 100%; }
  .delete-dialog { padding: 30px 24px; }

  .site-header { position: absolute; padding: 22px 20px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { min-height: 850px; padding: 135px 20px 80px; }
  .hero::before { right: -50%; width: 380px; height: 380px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); line-height: 1.38; }
  .hero-intro { font-size: 15px; }
  .desktop-break { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-stats { margin-top: 32px; }
  .hero-stats div { padding: 0 12px; grid-template-columns: 1fr; gap: 2px; }
  .hero-visual { top: 490px; right: -46%; bottom: 10px; left: 11%; opacity: 0.45; }
  .hero-visual img { width: 700px; }
  .thermal-scale, .visual-legend { display: none; }
  .scroll-cue { bottom: 24px; left: 20px; }
  .access-preview { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 20px; margin: -22px 20px 56px; padding: 24px 20px; }
  .access-roles { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; }
  .access-roles article { min-height: auto; padding: 12px 4px; border-top: 1px solid var(--line); border-left: 0; }
  .access-cta { grid-column: auto; grid-row: auto; width: 100%; }
  .featured { padding: 76px 20px 84px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-heading > p { max-width: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .card-art { height: 170px; }
  .notes { padding: 76px 20px 84px; }
  .notes-heading { align-items: stretch; flex-direction: column; gap: 24px; }
  .search-box { width: 100%; }
  .filter-bar { flex-wrap: nowrap; margin-right: -20px; padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex: 0 0 auto; }
  .post-grid { grid-template-columns: 1fr; }
  .post-lead { grid-column: auto; display: block; }
  .post-copy { min-height: 260px; }
  .pagination { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .pagination-center { grid-column: 1 / -1; grid-row: 1; flex-direction: column; gap: 10px; }
  .pagination-step { width: 100%; }
  .pagination-center p { white-space: normal; text-align: center; }
  .guestbook-home { grid-template-columns: 1fr; gap: 40px; padding: 82px 20px; }
  .guestbook-home-intro::before { top: -60px; left: -150px; }
  .guestbook-home-panel { min-height: 0; padding: 22px 18px; border-radius: 17px; }
  .guestbook-home-locked,
  .guestbook-home-admin { min-height: 250px; }
  .guestbook-home-locked > div { width: 100%; flex-direction: column; }
  .guestbook-home-locked button { width: 100%; }
  .guestbook-home-form > header { grid-template-columns: 34px 1fr; }
  .guestbook-home-form > header button { grid-column: 1 / -1; width: 100%; }
  .guestbook-home-form > footer { align-items: stretch; flex-direction: column; }
  .guestbook-home-form footer button { justify-content: space-between; }
  .about { padding: 84px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 58px; }
  .about-portrait { width: min(100%, 390px); min-height: 350px; justify-self: center; }
  .about-facts { grid-template-columns: 1fr; }
  .about-copy blockquote { padding-left: 16px; font-size: 14px; }
  .newsletter { padding: 76px 20px; }
  .subscribe-form { grid-template-columns: 1fr; gap: 8px; }
  .subscribe-form input { height: 46px; }
  .subscribe-form button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-brand { justify-content: center; }
  .site-footer > a { justify-self: center; }
  .article-modal { max-height: calc(100vh - 24px); padding: 48px 24px 32px; border-radius: 16px; }
  .article-lead-media { margin-top: 26px; border-radius: 12px; }
  .article-media { grid-template-columns: 1fr; gap: 12px; }
  .article-media figure.video { grid-column: auto; }
  .article-media-button > span { opacity: 1; transform: none; }
  .media-viewer-backdrop { padding: 8px; }
  .media-viewer { max-height: calc(100vh - 16px); border-radius: 13px; }
  .media-viewer-stage img,
  .media-viewer-stage video { max-height: calc(100vh - 102px); }
  .comments-section > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .comment-form { grid-template-columns: 32px 1fr; padding: 13px; }
  .comment-avatar { width: 32px; height: 32px; }
  .comment-login-prompt { align-items: stretch; flex-direction: column; }
  .comment-login-prompt > span { width: 100%; }
  .comment-login-prompt button { flex: 1; }
  .comment-list > article { grid-template-columns: 32px 1fr; }
  .comment-list > article.is-reply { margin-left: 18px; padding: 14px 10px; }
  .comment-list article header { flex-wrap: wrap; }
  .comment-list article header time { width: 100%; margin-left: 0; }
  .comment-delete { grid-column: 2; justify-self: start; }
  .notification-layer { align-items: flex-end; padding: 12px; }
  .notification-panel { width: 100%; max-height: min(78vh, 700px); border-radius: 18px; }
  .notification-list { max-height: calc(78vh - 180px); }
  .guestbook-modal { max-height: calc(100vh - 24px); border-radius: 16px; }
  .guestbook-heading { align-items: flex-start; flex-direction: column; gap: 13px; padding: 48px 54px 20px 20px; }
  .guestbook-count { align-self: flex-start; }
  .guestbook-layout { grid-template-columns: 1fr; }
  .guestbook-story { display: none; }
  .guestbook-content { padding: 18px 16px 26px; }
  .guestbook-compose { padding: 14px; }
  .guestbook-compose > footer { align-items: stretch; flex-direction: column; }
  .guestbook-compose > footer button { justify-content: space-between; }
  .guestbook-message { padding: 15px; }
  .guestbook-message > header { grid-template-columns: 32px 1fr; }
  .guestbook-message > header time { grid-column: 2; }
  .guestbook-pagination { grid-template-columns: 1fr 1fr; }
  .guestbook-pagination > div { grid-column: 1 / -1; grid-row: 1; }
  .guestbook-pagination > button { grid-row: 2; }
  .guestbook-pagination > p { grid-row: 3; }
  .user-management-modal { max-height: calc(100vh - 24px); border-radius: 16px; }
  .user-management-heading { align-items: flex-start; flex-direction: column; gap: 13px; padding: 48px 54px 20px 20px; }
  .user-management-heading > span { align-self: flex-start; }
  .user-management-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 16px 10px; }
  .user-management-stats article { min-height: 68px; padding: 12px; }
  .user-management-note { margin: 0 16px 12px; }
  .user-management-list { margin: 0 16px 20px; border: 0; background: transparent; }
  .user-management-columns { display: none; }
  .user-management-list > article { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .managed-user-identity { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .user-management-list time,
  .user-management-list code { font-size: 9px; }
  .user-management-list time small,
  .user-management-list code small { display: block; }
  .managed-user-action { grid-column: 1 / -1; padding-top: 4px; }
  .auth-modal { max-height: calc(100vh - 24px); grid-template-columns: 1fr; border-radius: 16px; }
  .auth-story { display: none; }
  .auth-panel { min-height: auto; padding: 54px 22px 28px; }
  .security-question-row,
  .settings-password-grid,
  .account-settings-actions { grid-template-columns: 1fr; }
  .registration-security > header,
  .security-question-settings > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .studio-modal { max-height: calc(100vh - 24px); padding: 44px 20px 24px; border-radius: 16px; }
  .studio-heading { flex-direction: column; gap: 14px; padding-right: 38px; }
  .studio-layout { grid-template-columns: 1fr; }
  .composer-form { grid-template-columns: 1fr; }
  .composer-form .field-wide { grid-column: auto; }
  .composer-form .media-dropzone { grid-template-columns: 44px 1fr; }
  .composer-form .media-limits { grid-column: 1 / -1; text-align: left; }
  .media-queue-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .media-queue { grid-template-columns: 1fr; }
  .preview-posts { min-height: auto; }
  .preview-empty { min-height: 150px; }
  .modal-backdrop { padding: 12px; }
  .modal-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Self-hosted integration: remove properties inherited from the earlier compact theme. */
body {
  font-size: 16px;
  line-height: 1.5;
}

.site-header {
  min-height: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero {
  overflow: visible;
  background: transparent;
  color: var(--ink);
}

.hero-copy {
  align-self: auto;
  padding: 24px 0 0;
}

.post-card:not(.post-lead) {
  display: block;
  min-height: 0;
}

.category-card {
  display: block;
  min-height: 0;
}

.post-lead {
  min-height: 0;
}

.pagination .pagination-step {
  min-width: 110px;
  height: 42px;
  border: 1px solid rgba(18, 61, 50, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.pagination .pagination-pages button {
  min-width: 0;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 8px;
}

.pagination .pagination-pages button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.about {
  display: block;
  grid-template-columns: none;
  align-items: initial;
  gap: 0;
}

.about .about-copy > p {
  color: rgba(238, 245, 241, 0.68);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 2;
}

.about .about-copy .about-lead {
  color: rgba(247, 251, 248, 0.93);
  font-family: "Noto Serif SC", STSong, serif;
  font-size: 20px;
  line-height: 1.8;
}

.subscribe-form input {
  height: auto;
}

.auth-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.auth-tabs button.active {
  color: var(--ink);
}

.auth-tabs button.active::after {
  right: 12%;
  left: 12%;
}

.article-view .comment-form {
  display: flex;
  gap: 9px;
  margin: 24px 0 25px;
  padding: 17px;
}

.article-view .comment-form textarea {
  min-height: 72px;
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf7;
}

.article-view .comment-form > button {
  min-width: 76px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.article-view .comment-list > .comment-item {
  display: block;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.article-view .comment-item > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-view .comment-item > p {
  margin: 7px 0;
  color: var(--body);
  white-space: pre-wrap;
}

.article-view .comment-item > button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.article-view .comment-children {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

@media (max-width: 760px) {
  .hero-copy { padding-top: 24px; }
  .article-view .comment-form { align-items: stretch; flex-direction: column; }
  .article-view .comment-form > button { min-height: 42px; }
  .auth-tabs { grid-template-columns: repeat(2, 1fr); }
}
