

:root {
  --ink: #18211f;
  --ink-2: #2b3734;
  --ink-3: #46524e;
  --paper: #f5f2e9;
  --paper-2: #eee9dd;
  --paper-3: #e4ddcd;
  --paper-deep: #d9d0bd;
  --slate: #4b6068;
  --slate-deep: #2f4249;
  --seal: #a33a2b;
  --seal-dark: #862d22;
  --gold: #b39258;
  --muted: #7c857f;
  --muted-2: #9aa19b;
  --line: rgba(24, 33, 31, 0.12);
  --line-soft: rgba(24, 33, 31, 0.07);
  --line-strong: rgba(24, 33, 31, 0.24);
  --paper-line: rgba(245, 242, 233, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sidebar: 244px;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow-soft: 0 18px 50px rgba(20, 28, 26, 0.08);
  --shadow-deep: 0 24px 70px rgba(10, 17, 16, 0.26);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.65), transparent 32%),
    radial-gradient(circle at 82% 90%, rgba(74, 96, 104, 0.06), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--seal);
  color: var(--paper);
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--ink);
  color: var(--paper);
}

.boot-mark {
  width: 64px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 242, 233, 0.45);
  font-family: var(--serif);
  font-size: 34px;
  position: relative;
}

.boot-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245, 242, 233, 0.14);
}

.boot-line {
  width: 1px;
  height: 34px;
  background: rgba(245, 242, 233, 0.26);
  animation: breathe 1.7s ease-in-out infinite;
}

.boot-screen p {
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(245, 242, 233, 0.56);
}

@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); }
  50% { opacity: 0.9; transform: scaleY(1); }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
}

.icon {
  flex: 0 0 auto;
  vertical-align: middle;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 32px 22px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 32%),
    var(--paper-2);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar__top {
  padding: 0 6px;
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 242, 233, 0.08);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(245, 242, 233, 0.22);
}

.brand-mark::before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  background: var(--seal);
}

.brand-mark--small {
  width: 31px;
  height: 38px;
  font-size: 18px;
}

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

.brand-cn {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.14em;
}

.brand-en {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.sidebar__motto {
  margin: 24px 0 0 55px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 42px;
}

.side-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 13px;
  border-radius: 2px;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.side-nav__item:hover {
  background: rgba(24, 33, 31, 0.055);
  color: var(--ink);
  transform: translateX(2px);
}

.side-nav__item.is-active {
  background: var(--ink);
  color: var(--paper);
}

.side-nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: var(--seal);
}

.side-nav__hint {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.side-nav__item.is-active .side-nav__hint {
  color: rgba(245, 242, 233, 0.46);
}

.nav-count {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--seal);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
}

.sidebar__create {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding: 15px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.sidebar__create:hover {
  background: var(--paper);
  border-color: var(--ink);
}

.sidebar__create-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--seal);
  flex: 0 0 auto;
}

.sidebar__create strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sidebar__create small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  border-radius: 2px;
}

.sidebar__user:hover {
  background: rgba(24, 33, 31, 0.05);
}

.sidebar__user-main {
  min-width: 0;
  flex: 1;
}

.sidebar__user-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__user-main small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar__logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sidebar__logout:hover {
  color: var(--seal);
}

.shell__main {
  width: calc(100% - var(--sidebar));
  min-width: 0;
  margin-left: var(--sidebar);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(245, 242, 233, 0.84);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.topbar__left,
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__brand {
  display: none;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.12em;
}

.topbar__crumb {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

.topbar__crumb::before {
  content: "敬畏 / ";
  color: var(--muted-2);
}

.topbar__avatar {
  display: block;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--line-strong);
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.icon-btn--badge .icon-btn__dot {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--seal);
  color: var(--paper);
  font-size: 9px;
  line-height: 1;
  border: 1px solid var(--paper);
}

.page {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 44px 90px;
}

.tabbar {
  display: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--seal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--seal);
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 500;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.page-head h1 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.03em;
}

.page-head__desc {
  margin-top: 10px;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--seal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--seal);
  border-color: var(--seal);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.btn--seal {
  background: var(--seal);
  color: var(--paper);
  border-color: var(--seal);
}

.btn--seal:hover {
  background: var(--seal-dark);
}

.btn--danger {
  background: var(--seal);
  color: var(--paper);
  border-color: var(--seal);
}

.btn--danger:hover {
  background: #7d241b;
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--paper:hover {
  background: #fffdf7;
}

.btn--tiny {
  min-height: 30px;
  padding: 0 11px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.btn--wide {
  width: 100%;
}

.btn--loud {
  min-height: 54px;
  padding: 0 28px;
  font-size: 13px;
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--paper);
  animation: spin 0.7s linear infinite;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
}

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

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: all 0.2s var(--ease);
}

.follow-btn:hover {
  border-color: var(--seal);
  color: var(--seal);
}

.follow-btn.is-following {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.follow-btn.is-following:hover {
  background: var(--seal);
  border-color: var(--seal);
}

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

.field label,
.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field label span,
.field__hint {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.field input,
.field textarea,
.field select,
.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder,
.input::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.input:focus {
  border-color: var(--seal);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(163, 58, 43, 0.07);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.field-error {
  color: var(--seal);
  font-size: 11px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--seal);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

.segmented button {
  min-height: 31px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: all 0.2s var(--ease);
}

.segmented button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip em {
  font-style: normal;
  opacity: 0.6;
  font-size: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--seal {
  border-color: rgba(163, 58, 43, 0.34);
  color: var(--seal);
}

.tag--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__track {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 99px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease);
  flex: 0 0 auto;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s var(--ease);
}

.toggle input:checked + .toggle__track {
  background: var(--ink);
  border-color: var(--ink);
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(19px);
}

.toggle__text strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.toggle__text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 1px;
}

.avatar {
  --avatar-size: 40px;
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--paper-3);
  border: 1px solid rgba(24, 33, 31, 0.14);
}

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

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.22);
}

.level-pill__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.level-pill--2 .level-pill__dot { background: #6e8178; }
.level-pill--3 .level-pill__dot { background: #8f7a55; }
.level-pill--4 .level-pill__dot { background: #a45b43; }
.level-pill--5 .level-pill__dot { background: var(--seal); }

.level-pill--5 {
  border-color: rgba(163, 58, 43, 0.28);
  color: var(--seal);
}

.level-pill__name {
  opacity: 0.58;
  margin-left: 1px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.role-badge--owner {
  background: var(--seal);
  color: var(--paper);
}

.role-badge--pelican {
  background: var(--ink);
  color: var(--paper);
}

.role-badge--sparrow {
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
}

.identity-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mini-meta {
  color: var(--muted);
  font-size: 10px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.stat-block strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.stat-block span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-block.is-accent strong {
  color: var(--seal);
}

.stat-block__icon {
  color: var(--muted);
  margin-bottom: 4px;
}

.cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #2e4249;
  color: var(--paper);
  isolation: isolate;
}

.cover__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: none;
  background-image: url("/assets/covers/cover-clean.jpg");
  background-size: cover;
  background-position: center 27%;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.015);
}

.cover__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 14, 15, 0.44) 0%, rgba(8, 14, 15, 0.34) 38%, rgba(8, 14, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 14, 15, 0.48), transparent 72%);
}

.cover__cross {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}

.cover__cross::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 37%;
  width: 9vw;
  min-width: 70px;
  background: rgba(245, 242, 233, 0.1);
}

.cover__cross::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 11vh;
  min-height: 80px;
  background: rgba(245, 242, 233, 0.09);
}

.cover__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.cover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(245, 242, 233, 0.13);
}

.cover__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cover__brand .brand-mark {
  background: transparent;
  border: 1px solid rgba(245, 242, 233, 0.38);
  color: var(--paper);
}

.cover__brand .brand-mark::before {
  background: var(--seal);
}

.cover__brand .brand-cn {
  color: var(--paper);
  font-size: 25px;
}

.cover__brand .brand-en {
  color: rgba(245, 242, 233, 0.45);
}

.cover__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(245, 242, 233, 0.55);
}

.cover__nav a {
  transition: color 0.2s var(--ease);
}

.cover__nav a:hover {
  color: var(--paper);
}

.cover__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: auto;
  padding: 60px 48px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cover__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(245, 242, 233, 0.52);
  text-transform: uppercase;
}

.cover__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--seal);
}

.cover__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(50px, 7.4vw, 108px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

.cover__title em {
  font-style: normal;
  color: inherit;
}

.cover__status {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  color: rgba(245, 242, 233, 0.72);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.cover__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb6a8;
  box-shadow: 0 0 0 4px rgba(159, 182, 168, 0.12);
}

.cover__status.is-forgotten {
  color: #efc0b5;
}

.cover__status.is-forgotten .cover__status-dot {
  background: var(--seal);
  box-shadow: 0 0 0 4px rgba(163, 58, 43, 0.14);
}

.cover__quote-wrap {
  margin-top: clamp(40px, 8vh, 80px);
  max-width: 720px;
  min-height: 150px;
}

.cover__quote {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(245, 242, 233, 0.24);
  cursor: pointer;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  outline: none;
}

.cover__quote::before {
  content: "“";
  position: absolute;
  left: 13px;
  top: -20px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--seal);
  opacity: 0.85;
}

.cover__quote.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.cover__quote blockquote {
  font-family: var(--serif);
  font-size: clamp(21px, 2.35vw, 32px);
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.cover__quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: rgba(245, 242, 233, 0.54);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.cover__quote figcaption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(245, 242, 233, 0.32);
}

.cover__quote-hint {
  margin-top: 16px;
  padding-left: 29px;
  color: rgba(245, 242, 233, 0.32);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.cover__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.cover__actions .btn {
  min-height: 50px;
  padding: 0 24px;
}

.cover__button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cover__button:hover {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}

.cover__button--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 242, 233, 0.32);
}

.cover__button--ghost:hover {
  border-color: var(--paper);
  background: rgba(245, 242, 233, 0.08);
}

.cover__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 48px 28px;
  border-top: 1px solid rgba(245, 242, 233, 0.13);
  color: rgba(245, 242, 233, 0.45);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.cover__vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: rgba(245, 242, 233, 0.32);
}

.cover__mini-stats {
  display: flex;
  gap: 26px;
}

.cover__mini-stats span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cover__mini-stats strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: rgba(245, 242, 233, 0.72);
  letter-spacing: 0.02em;
}

.cover__enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 242, 233, 0.72);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.cover__enter:hover {
  color: var(--paper);
}

.cover__seal {
  position: absolute;
  right: 6vw;
  bottom: 20vh;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(163, 58, 43, 0.7);
  color: rgba(240, 202, 188, 0.8);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  opacity: 0.8;
}

.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--paper);
}

.auth__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 48px;
  background:
    radial-gradient(circle at 76% 18%, rgba(163, 58, 43, 0.22), transparent 34%),
    linear-gradient(155deg, #3c535a 0%, #24363b 58%, #172426 100%);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.auth__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.auth__visual::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31%;
  width: 12vw;
  max-width: 160px;
  background: rgba(245, 242, 233, 0.065);
  z-index: -1;
}

.auth__visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth__visual-top .brand-en {
  color: rgba(245, 242, 233, 0.35);
}

.auth__visual-main {
  max-width: 600px;
  padding-bottom: 6vh;
}

.auth__huge {
  font-family: var(--serif);
  font-size: clamp(88px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: rgba(245, 242, 233, 0.95);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
}

.auth__huge span {
  color: var(--seal);
}

.auth__statement {
  margin-top: 28px;
  max-width: 390px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 233, 0.72);
}

.auth__visual-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: rgba(245, 242, 233, 0.36);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px clamp(28px, 6vw, 92px);
  background: var(--paper);
  position: relative;
}

.auth__panel::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  opacity: 0.4;
}

.auth__box {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}

.auth__back:hover {
  color: var(--seal);
}

.auth__title {
  font-family: var(--serif);
  font-size: 35px;
  line-height: 1.24;
  letter-spacing: 0.04em;
}

.auth__desc {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.auth__tabs {
  display: flex;
  gap: 23px;
  margin: 30px 0 26px;
  border-bottom: 1px solid var(--line);
}

.auth__tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.auth__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background 0.2s var(--ease);
}

.auth__tab.is-active {
  color: var(--ink);
}

.auth__tab.is-active::after {
  background: var(--seal);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth__form .field input {
  background: rgba(255, 255, 255, 0.4);
}

.auth__error {
  display: none;
  padding: 10px 12px;
  border-left: 2px solid var(--seal);
  background: rgba(163, 58, 43, 0.06);
  color: var(--seal);
  font-size: 11px;
  line-height: 1.6;
}

.auth__error.is-visible {
  display: block;
}

.auth__submit {
  min-height: 48px;
  margin-top: 4px;
}

.auth__hint {
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.auth__hint strong {
  color: var(--ink-3);
  font-weight: 500;
}

.auth__hint button {
  border: 0;
  background: transparent;
  color: var(--seal);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth__legal {
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  bottom: 5px;
  width: 33px;
  height: 33px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.auth__invite-status {
  min-height: 16px;
  margin-top: -8px;
  color: var(--muted);
  font-size: 10px;
}

.auth__invite-status.is-valid {
  color: #4c6d5d;
}

.auth__invite-status.is-invalid {
  color: var(--seal);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 40px;
  min-height: 310px;
  padding: 42px 44px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(163, 58, 43, 0.24), transparent 36%),
    linear-gradient(150deg, #273a3e 0%, #1a292b 60%, #121d1e 100%);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 61%;
  width: 8vw;
  min-width: 70px;
  background: rgba(245, 242, 233, 0.04);
  z-index: -1;
}

.home-hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home-hero__date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 242, 233, 0.45);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.home-hero__date::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--seal);
}

.home-hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.18;
  letter-spacing: 0.045em;
}

.home-hero h1 em {
  font-style: normal;
  color: #ebc1b4;
}

.home-hero__sub {
  margin-top: 13px;
  max-width: 460px;
  color: rgba(245, 242, 233, 0.55);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.home-hero__actions .btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.home-hero__actions .btn--paper:hover {
  background: var(--seal);
  color: var(--paper);
}

.home-hero__actions .btn--ghost {
  border-color: rgba(245, 242, 233, 0.28);
  color: rgba(245, 242, 233, 0.76);
}

.home-hero__actions .btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(245, 242, 233, 0.08);
  color: var(--paper);
}

.home-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.home-ring {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-ring__copy {
  text-align: right;
}

.home-ring__copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.home-ring__copy span {
  display: block;
  margin-top: 3px;
  color: rgba(245, 242, 233, 0.42);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.home-streak {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(245, 242, 233, 0.14);
  border-radius: 2px;
  width: 100%;
  background: rgba(245, 242, 233, 0.035);
}

.home-streak__icon {
  color: #e3a27f;
}

.home-streak strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.home-streak small {
  display: block;
  color: rgba(245, 242, 233, 0.42);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.home-streak__dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.home-streak__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 242, 233, 0.16);
}

.home-streak__dots span.is-on {
  background: #dc9d78;
}

.home-quote-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.home-quote-strip__text {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-quote-strip__text .icon {
  color: var(--seal);
}

.home-quote-strip__text blockquote {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quote-strip__text cite {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.home-quote-strip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.home-quote-strip button:hover {
  color: var(--seal);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.88fr);
  gap: 42px;
  margin-top: 42px;
}

.home-main,
.home-rail {
  min-width: 0;
}

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

.home-rail {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

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

.rail-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.rail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rail-card__head h3 {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.rail-card__head span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.rail-card--dark .rail-card__head span {
  color: rgba(245, 242, 233, 0.4);
}

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

.calendar-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend i {
  width: 7px;
  height: 7px;
  background: var(--paper-3);
  display: inline-block;
}

.calendar-legend i.is-on {
  background: var(--seal);
}

.respect-calendar {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  width: 100%;
  max-width: 240px;
}

.respect-calendar__cell {
  aspect-ratio: 1;
  background: rgba(24, 33, 31, 0.075);
  border-radius: 1px;
}

.respect-calendar__cell.is-active {
  background: var(--seal);
  opacity: 0.86;
}

.respect-calendar__cell.is-future {
  background: transparent;
  border: 1px dashed rgba(24, 33, 31, 0.09);
}

.respect-calendar.is-compact {
  max-width: 168px;
  gap: 3px;
}

.rail-card--dark .respect-calendar__cell {
  background: rgba(245, 242, 233, 0.11);
}

.rail-card--dark .respect-calendar__cell.is-active {
  background: #dc9d78;
}

.rail-card--dark .respect-calendar__cell.is-future {
  border-color: rgba(245, 242, 233, 0.09);
}

.rail-list {
  display: flex;
  flex-direction: column;
}

.rail-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.rail-list__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.rail-list__item:last-child {
  padding-bottom: 0;
}

.rail-list__rank {
  width: 17px;
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 11px;
}

.rail-list__name {
  min-width: 0;
  flex: 1;
}

.rail-list__name strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-list__name small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 1px;
}

.rail-list__value {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
}

.rail-card--dark .rail-list__name strong {
  color: var(--paper);
}

.rail-card--dark .rail-list__name small {
  color: rgba(245, 242, 233, 0.4);
}

.rail-card--dark .rail-list__value {
  color: rgba(245, 242, 233, 0.7);
}

.home-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-stats-row .stat-block {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.home-stats-row .stat-block:first-child {
  border-left: 0;
  padding-left: 4px;
}

.home-stats-row .stat-block strong {
  font-size: 22px;
}
