/* =========================================================================
   奎光校园墙 · 公共样式
   蓝白校园主题 / 固定导航 / 两栏内容 / 响应式
   ========================================================================= */

:root {
  --bg: #f4f8fc;
  --bg-deep: #eaf2f8;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --surface-blue: #eef6fb;
  --ink: #193246;
  --ink-soft: #334d61;
  --muted: #6b8192;
  --muted-light: #8a9cab;
  --navy: #173a54;
  --blue: #2f6f9e;
  --blue-deep: #225b85;
  --blue-bright: #3c83b4;
  --blue-soft: #e7f2fa;
  --blue-pale: #f2f8fc;
  --sky: #d8eaf5;
  --line: #dde8ef;
  --line-strong: #cbdce7;
  --success: #2e7b63;
  --success-soft: #e9f5f0;
  --warning: #926521;
  --warning-soft: #fcf4e5;
  --danger: #a64949;
  --danger-soft: #faeeee;
  --shadow-xs: 0 1px 2px rgba(24, 53, 75, 0.04);
  --shadow-sm: 0 6px 20px rgba(29, 65, 91, 0.06);
  --shadow-md: 0 16px 40px rgba(29, 65, 91, 0.09);
  --shadow-lg: 0 28px 70px rgba(25, 59, 84, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 999px;
  --nav-height: 76px;
  --container: 1180px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -4%, rgba(198, 226, 242, 0.58), transparent 26rem),
    radial-gradient(circle at 95% 8%, rgba(219, 236, 246, 0.7), transparent 22rem),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure {
  margin: 0;
}

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

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

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

::selection {
  color: var(--navy);
  background: #cfe7f5;
}

:focus-visible {
  outline: 3px solid rgba(71, 143, 190, 0.38);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Utilities & shared pieces
   ------------------------------------------------------------------------- */

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.22em;
  height: 1.22em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.17em;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53a986;
  box-shadow: 0 0 0 4px rgba(83, 169, 134, 0.12);
  vertical-align: 1px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 158, 0.11);
}

.eyebrow-muted {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow-light .eyebrow-dot {
  background: #c2e3f5;
  box-shadow: 0 0 0 4px rgba(194, 227, 245, 0.13);
}

/* Avatar */
.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.avatar-xs { width: 26px; height: 26px; font-size: 11px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12.5px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar-xl { width: 82px; height: 82px; font-size: 28px; }

.avatar-tone-1 { color: #2d617f; background: #deedf7; }
.avatar-tone-2 { color: #496b62; background: #e5f1eb; }
.avatar-tone-3 { color: #78633e; background: #f5ecdc; }
.avatar-tone-4 { color: #635e87; background: #ebe9f5; }
.avatar-tone-5 { color: #376d76; background: #e2f1f2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, #367aa9, #235c85);
  box-shadow: 0 8px 20px rgba(34, 91, 133, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(140deg, #4087b6, #286894);
  box-shadow: 0 10px 24px rgba(34, 91, 133, 0.26);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover {
  color: var(--blue-deep);
  border-color: #a9c8db;
  background: #fff;
}

.btn-soft {
  color: var(--blue-deep);
  border-color: #d5e7f2;
  background: var(--blue-soft);
}

.btn-soft:hover {
  background: #ddecf7;
}

.btn-light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 10px 24px rgba(9, 37, 56, 0.16);
}

.btn-light:hover {
  background: #f2f9fd;
}

.btn-danger {
  color: #fff;
  background: #a64949;
  box-shadow: 0 8px 18px rgba(166, 73, 73, 0.18);
}

.btn-danger:hover {
  background: #943e3e;
}

.btn-danger-soft {
  color: var(--danger);
  border-color: #f0d2d2;
  background: var(--danger-soft);
}

.btn-danger-soft:hover {
  background: #f8e1e1;
  border-color: #e9bebe;
}

.btn-success {
  color: #fff;
  background: #327b63;
  box-shadow: 0 8px 18px rgba(50, 123, 99, 0.17);
}

.btn-success:hover {
  background: #296d57;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 25px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-size: 13.5px;
  font-weight: 600;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link-muted {
  color: var(--muted);
  font-size: 13px;
}

button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  place-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-blue);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

/* Flash toasts */
.toast-stack {
  position: fixed;
  z-index: 120;
  top: calc(var(--nav-height) + 16px);
  right: 22px;
  display: grid;
  gap: 10px;
  width: min(410px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 13px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in 240ms ease both;
}

.toast p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.toast-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  place-items: center;
}

.toast-icon .icon {
  width: 15px;
  height: 15px;
}

.toast-success .toast-icon { color: var(--success); background: var(--success-soft); }
.toast-error .toast-icon { color: var(--danger); background: var(--danger-soft); }
.toast-info .toast-icon { color: var(--blue-deep); background: var(--blue-soft); }

.toast-close {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted-light);
  background: transparent;
  place-items: center;
}

.toast-close:hover {
  color: var(--ink);
  background: var(--surface-blue);
}

.toast-close .icon {
  width: 13px;
  height: 13px;
}

.toast.is-leaving {
  animation: toast-out 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

/* Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending { color: var(--warning); border-color: #f1e2c4; background: var(--warning-soft); }
.status-approved { color: var(--success); border-color: #d3e9df; background: var(--success-soft); }
.status-rejected { color: var(--danger); border-color: #f0d8d8; background: var(--danger-soft); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.page-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.page-step:hover {
  color: var(--blue-deep);
  border-color: var(--line-strong);
  background: var(--surface-blue);
}

.page-step.is-disabled {
  color: #b2c0ca;
  background: transparent;
  cursor: default;
}

.page-step .icon {
  width: 15px;
  height: 15px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-number {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
  place-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.page-number:hover {
  color: var(--blue-deep);
  background: var(--surface-blue);
}

.page-number.is-current {
  color: #fff;
  background: var(--navy);
  font-weight: 600;
}

.page-ellipsis {
  color: var(--muted-light);
  padding: 0 2px;
}

.pagination-summary {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 12px;
  text-align: center;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 66px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: var(--blue);
  background: var(--blue-soft);
  place-items: center;
}

.empty-icon .icon {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.empty-state p {
  max-width: 380px;
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label-row label {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: #fbfdfe;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a7b6c3;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9d0df;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #7eabc7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74, 140, 185, 0.1);
}

.field-hint {
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.6;
}

.counter {
  color: var(--muted-light);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.label-optional {
  color: var(--muted-light);
  font-size: 11.5px;
  font-weight: 400;
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted-light);
  background: transparent;
  transform: translateY(-50%);
  place-items: center;
}

.password-toggle:hover {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.check-row-compact {
  color: var(--muted);
}

/* Notices */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #f0e2c7;
  border-radius: 14px;
  background: var(--warning-soft);
}

.notice-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  color: var(--warning);
  background: rgba(255, 255, 255, 0.7);
  place-items: center;
}

.notice-icon .icon {
  width: 16px;
  height: 16px;
}

.notice strong {
  display: block;
  color: #74501c;
  font-size: 13.5px;
}

.notice p {
  color: #8a692f;
  font-size: 12.5px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  background: rgba(247, 251, 254, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(249, 252, 254, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(34, 74, 102, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 48px), 1260px);
  height: 100%;
  margin-inline: auto;
}

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

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, #3b7da8, #1f557b);
  box-shadow: 0 7px 16px rgba(31, 85, 123, 0.2);
  place-items: center;
}

.brand-mark img {
  width: 27px;
  height: 27px;
}

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

.brand-copy strong {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.065em;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover {
  color: var(--blue-deep);
  background: rgba(231, 242, 250, 0.7);
}

.nav-link.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  padding: 4px 9px 4px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-user:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.nav-username {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 2px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-admin-link .icon {
  width: 15px;
  height: 15px;
}

.logout-form {
  display: flex;
}

.nav-logout {
  width: 32px;
  height: 32px;
}

.nav-logout .icon {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  place-items: center;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-close-icon {
  display: none;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  margin-top: 86px;
  color: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 142, 177, 0.17), transparent 24rem),
    #14364e;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) 0.65fr 1fr;
  gap: 72px;
  padding-top: 58px;
  padding-bottom: 44px;
}

.brand-footer {
  margin-bottom: 18px;
}

.brand-footer .brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand > p {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-links,
.footer-rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h2,
.footer-rule h2 {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-links a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-rule p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.9;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11.5px;
  transition: color 160ms ease;
}

.footer-admin-link:hover {
  color: rgba(255, 255, 255, 0.82);
}

.footer-admin-link .icon {
  width: 13px;
  height: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.025em;
}

/* -------------------------------------------------------------------------
   Home · hero
   ------------------------------------------------------------------------- */

.home-page {
  background:
    radial-gradient(circle at 8% 5%, rgba(208, 231, 244, 0.65), transparent 28rem),
    radial-gradient(circle at 93% 17%, rgba(226, 240, 248, 0.83), transparent 24rem),
    linear-gradient(180deg, #f7fbfd 0%, #f3f8fc 46%, #f5f9fc 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 82px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.hero-orb-a {
  top: -100px;
  right: 9%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 35% 35%, rgba(225, 242, 251, 0.9), rgba(219, 237, 247, 0.12) 63%, transparent 72%);
}

.hero-orb-b {
  bottom: -170px;
  left: -90px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle at 50% 50%, rgba(213, 234, 246, 0.65), transparent 68%);
}

.hero-grid-lines {
  position: absolute;
  top: 24px;
  right: 1%;
  width: 510px;
  height: 450px;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(128, 170, 197, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 170, 197, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
  transform: rotate(-7deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  align-items: center;
  gap: 65px;
}

.hero-copy {
  padding: 26px 0;
  animation: rise-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 {
  max-width: 580px;
  margin: 21px 0 24px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(45px, 5.4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.hero-highlight {
  position: relative;
  color: var(--blue-deep);
  white-space: nowrap;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 8%;
  left: -3px;
  height: 24%;
  border-radius: 99px;
  background: rgba(188, 222, 240, 0.75);
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 525px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted-light);
  font-size: 11.5px;
}

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

.hero-trust span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 13px;
  border-radius: 50%;
  background: #b8c8d3;
}

.hero-trust .icon {
  width: 14px;
  height: 14px;
  color: #7ba3bb;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  animation: rise-in 700ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.visual-halo {
  position: absolute;
  top: 4%;
  left: 9%;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 228, 242, 0.82), rgba(232, 244, 251, 0.2) 55%, transparent 69%);
}

.campus-board {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 340px;
  min-height: 370px;
  padding: 22px;
  border: 1px solid rgba(194, 217, 231, 0.85);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 5%, rgba(206, 232, 245, 0.8), transparent 11rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 254, 0.97));
  box-shadow:
    0 30px 70px rgba(39, 82, 111, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) rotate(1.1deg);
}

.campus-board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px -13px -14px 14px;
  border: 1px solid rgba(198, 219, 232, 0.6);
  border-radius: 25px;
  background: rgba(237, 246, 251, 0.6);
  transform: rotate(-2.4deg);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.board-pin {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7db4d2;
  box-shadow: 0 0 0 4px rgba(125, 180, 210, 0.14);
}

.board-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 9.5px;
  font-weight: 600;
}

.board-status .icon {
  width: 11px;
  height: 11px;
}

.board-card {
  position: relative;
  margin-top: 17px;
  padding: 19px;
  border: 1px solid rgba(222, 234, 241, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 27px rgba(39, 78, 103, 0.08);
}

.board-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 38px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 3px rgba(39, 78, 103, 0.08);
  transform: translateX(-50%) rotate(-2deg);
}

.board-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.board-author > span:last-child {
  display: flex;
  flex-direction: column;
}

.board-author strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.board-author small {
  color: var(--muted-light);
  font-size: 9.5px;
}

.board-quote {
  margin: 20px 0 18px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.7;
}

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid #edf3f7;
  color: var(--muted-light);
  font-size: 9.5px;
}

.board-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.board-footer .icon {
  width: 12px;
  height: 12px;
}

.board-footer span:first-child {
  color: #ba7b7b;
}

.board-note {
  position: absolute;
  right: -55px;
  bottom: 26px;
  width: 160px;
  padding: 17px;
  border: 1px solid #f2e6ce;
  border-radius: 14px;
  background: #fdf8ed;
  box-shadow: 0 16px 32px rgba(98, 77, 28, 0.12);
  transform: rotate(4deg);
}

.board-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 54px;
  width: 47px;
  height: 15px;
  background: rgba(230, 215, 183, 0.66);
  transform: rotate(-4deg);
}

.note-spark {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #9b793e;
  background: #f7edd8;
  place-items: center;
}

.note-spark .icon {
  width: 14px;
  height: 14px;
}

.board-note p {
  margin-top: 10px;
  color: #7e673d;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
}

.board-sticker {
  position: absolute;
  bottom: -18px;
  left: 25px;
  padding: 7px 12px;
  border-radius: 5px;
  color: #47718d;
  background: #e4f2fa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: rotate(-2.5deg);
}

.board-tape {
  position: absolute;
  width: 52px;
  height: 17px;
  background: rgba(214, 234, 244, 0.78);
}

.board-tape-left {
  top: -8px;
  left: 24px;
  transform: rotate(-8deg);
}

.board-tape-right {
  top: -5px;
  right: 29px;
  transform: rotate(6deg);
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 228, 237, 0.9);
  border-radius: 99px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(41, 78, 103, 0.1);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.floating-chip .icon {
  width: 13px;
  height: 13px;
}

.floating-chip-top {
  top: 17px;
  right: 15px;
  transform: rotate(2deg);
}

.floating-chip-bottom {
  bottom: 43px;
  left: -14px;
  transform: rotate(-2deg);
}

/* Stats ribbon */
.stats-ribbon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 18px 27px;
  border: 1px solid rgba(218, 232, 241, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 13px 35px rgba(43, 82, 108, 0.065);
  backdrop-filter: blur(12px);
}

.stat-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 2px 22px;
}

.stat-item:first-child {
  padding-left: 4px;
}

.stat-label {
  color: var(--muted-light);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.stat-value {
  margin-top: 1px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.stat-value small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  align-self: center;
  height: 30px;
  background: var(--line);
}

.stat-aside {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 230px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.stat-aside-copy {
  display: flex;
  flex-direction: column;
}

.stat-aside-copy > span {
  white-space: nowrap;
}

.stat-aside-copy small {
  color: var(--muted-light);
  font-size: 9.5px;
}

.stat-aside strong {
  color: var(--blue-deep);
  font-style: normal;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Home · wall
   ------------------------------------------------------------------------- */

.wall-section {
  padding: 65px 0 24px;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

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

.section-heading h2 {
  margin-top: 7px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.section-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.verified-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid #d9e9f2;
  border-radius: var(--radius-full);
  color: var(--blue-deep);
  background: rgba(238, 247, 253, 0.78);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.verified-label .icon {
  width: 13px;
  height: 13px;
}

.wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
  padding: 8px 9px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.sort-switch {
  display: flex;
  gap: 3px;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 160ms ease, background 160ms ease;
}

.sort-link:hover {
  color: var(--ink);
}

.sort-link.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 600;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(310px, 100%);
  padding: 3px 3px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-form:focus-within {
  border-color: #9fc2d7;
  box-shadow: 0 0 0 3px rgba(76, 139, 179, 0.08);
}

.search-icon {
  display: grid;
  color: var(--muted-light);
  place-items: center;
}

.search-icon .icon {
  width: 15px;
  height: 15px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 31px;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 12.5px;
}

.search-form input::placeholder {
  color: var(--muted-light);
}

.search-submit {
  height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: background 160ms ease;
}

.search-submit:hover {
  background: #d9ebf6;
}

.filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(231, 242, 250, 0.6);
  font-size: 12px;
}

.filter-note > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.filter-note a {
  flex: none;
  color: var(--blue-deep);
  font-weight: 600;
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.post-card:hover {
  border-color: #cadde9;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.7;
  background: var(--bg-deep);
}

.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 48, 68, 0.12));
  opacity: 0;
  transition: opacity 200ms ease;
}

.post-card:hover .post-cover::after {
  opacity: 1;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card:hover .post-cover img {
  transform: scale(1.035);
}

.post-image-count {
  position: absolute;
  right: 13px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 50, 69, 0.56);
  backdrop-filter: blur(6px);
  font-size: 10px;
}

.post-image-count .icon {
  width: 12px;
  height: 12px;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 27px 21px;
}

.post-cover-note {
  position: relative;
  display: grid;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.82), transparent 10rem),
    linear-gradient(135deg, #e1f0f8, #f5fafd 55%, #e8f3f9);
  place-items: center;
}

.post-cover-note.note-tone-2 {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.8), transparent 10rem),
    linear-gradient(135deg, #e9f3f3, #f8fbfa 55%, #e3eff1);
}

.post-cover-note.note-tone-3 {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.82), transparent 10rem),
    linear-gradient(135deg, #eef3f8, #fbfcfd 55%, #e9eff6);
}

.post-cover-note::before {
  content: "";
  position: absolute;
  top: -48%;
  right: -7%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(119, 162, 189, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(119, 162, 189, 0.035), 0 0 0 70px rgba(119, 162, 189, 0.025);
}

.post-cover-note::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(101, 153, 182, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 153, 182, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 20% 90%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 20% 90%, #000, transparent 65%);
}

.note-cover-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(80%, 390px);
  min-height: 150px;
  padding: 20px 24px;
  border-left: 2px solid rgba(70, 124, 156, 0.32);
}

.note-cover-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #688ba1;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.note-cover-top span {
  width: 18px;
  height: 1px;
  background: #86a9bc;
}

.note-cover-mark {
  position: absolute;
  top: 29px;
  left: 18px;
  color: rgba(71, 119, 148, 0.14);
  font-family: var(--font-serif);
  font-size: 74px;
  font-weight: 700;
  line-height: 0.8;
}

.note-cover-text {
  position: relative;
  margin-top: auto;
  padding: 19px 0 17px 13px;
  color: #315a74;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.65vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.note-cover-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7c9bae;
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.note-cover-foot .icon {
  width: 12px;
  height: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.post-author .avatar {
  box-shadow: inset 0 0 0 1px rgba(57, 96, 121, 0.06);
}

.post-meta time {
  flex: none;
}

.post-title {
  margin: 13px 0 9px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.post-title a {
  transition: color 160ms ease;
}

.post-title a:hover {
  color: var(--blue-deep);
}

.post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.like-form {
  display: inline-flex;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: #879baa;
  background: transparent;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.like-button .icon {
  width: 14px;
  height: 14px;
  transition: fill 160ms ease, transform 160ms ease;
}

.like-button:hover {
  color: #b56e76;
  background: #fbf1f2;
}

.like-button.is-liked {
  color: #ae5968;
  background: #fcf0f2;
  border-color: #f3dfe2;
}

.like-button.is-liked .icon {
  fill: currentColor;
}

.like-button.is-popping .icon {
  animation: heart-pop 260ms ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
}

.read-more .icon {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.read-more:hover .icon {
  transform: translateX(3px);
}

/* Community strip */
.community-section {
  padding: 54px 0 12px;
}

.community-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 33px 38px;
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 84% 22%, rgba(118, 176, 207, 0.24), transparent 19rem),
    linear-gradient(120deg, #173d58, #245b7c);
  box-shadow: 0 22px 54px rgba(28, 67, 92, 0.18);
}

.community-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -140px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.02);
}

.community-mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #d5ecfa;
  background: rgba(255, 255, 255, 0.09);
  place-items: center;
}

.community-mark .icon {
  width: 27px;
  height: 27px;
}

.community-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.community-copy h2 {
  margin: 4px 0 7px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.community-copy p:last-child {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.85;
}

.community-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}

.community-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.community-note .icon {
  width: 12px;
  height: 12px;
}

/* -------------------------------------------------------------------------
   Standard page shells
   ------------------------------------------------------------------------- */

.page-section {
  padding: 44px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 27px;
  color: var(--muted-light);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: var(--blue-deep);
}

.breadcrumb .icon {
  width: 12px;
  height: 12px;
  opacity: 0.65;
}

.breadcrumb span {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-heading {
  margin-bottom: 35px;
}

.page-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-heading h1 {
  margin: 7px 0 10px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(33px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.page-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------
   Auth
   ------------------------------------------------------------------------- */

.auth-page-body {
  background:
    radial-gradient(circle at 11% 12%, rgba(204, 228, 243, 0.68), transparent 25rem),
    radial-gradient(circle at 90% 83%, rgba(222, 238, 248, 0.82), transparent 30rem),
    #f3f8fc;
}

.auth-section {
  padding: 46px 0 66px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 650px;
  max-width: 1080px;
  overflow: hidden;
  border: 1px solid rgba(215, 230, 240, 0.92);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 28px 75px rgba(29, 67, 93, 0.12);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 54px 50px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 9%, rgba(134, 190, 219, 0.25), transparent 20rem),
    radial-gradient(circle at 3% 92%, rgba(96, 155, 188, 0.18), transparent 17rem),
    linear-gradient(145deg, #183f5a, #245d7e);
}

.auth-aside::before {
  content: "";
  position: absolute;
  top: -85px;
  right: -110px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 43px rgba(255, 255, 255, 0.025), 0 0 0 86px rgba(255, 255, 255, 0.018);
}

.auth-aside::after {
  content: "奎光";
  position: absolute;
  right: 31px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-serif);
  font-size: 140px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

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

.auth-aside h1 {
  margin: 20px 0 17px;
  font-family: var(--font-serif);
  font-size: clamp(33px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.36;
}

.auth-aside-lead {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.95;
}

.auth-points {
  display: grid;
  gap: 17px;
  margin-top: 31px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-points li > span {
  display: grid;
  width: 33px;
  height: 33px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #cce7f6;
  background: rgba(255, 255, 255, 0.07);
  place-items: center;
}

.auth-points li > span .icon {
  width: 16px;
  height: 16px;
}

.auth-points strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
}

.auth-points p {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  line-height: 1.65;
}

.auth-aside-quote {
  margin-top: 35px;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.8;
}

.auth-guide {
  margin-top: 31px;
}

.auth-guide-label {
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
  letter-spacing: 0.05em;
}

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

.auth-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
}

.auth-quote-card {
  position: relative;
  max-width: 315px;
  margin-top: 28px;
  padding: 19px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.quote-mark {
  position: absolute;
  top: -2px;
  left: 16px;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
}

.auth-quote-card p {
  position: relative;
  margin-left: 17px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.85;
}

.auth-card {
  align-self: center;
  width: 100%;
  padding: 48px 56px;
}

.auth-card-head {
  margin-bottom: 28px;
}

.mini-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #dceaf3;
  border-radius: 13px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  place-items: center;
}

.mini-mark .icon {
  width: 19px;
  height: 19px;
}

.auth-card-head h2 {
  margin: 7px 0 6px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-card-head > p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.auth-card .form-stack {
  margin-top: 22px;
}

.auth-card .btn-block {
  margin-top: 2px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0 15px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
}

.auth-fineprint .icon {
  width: 12px;
  height: 12px;
}

.auth-card .auth-fineprint {
  text-align: center;
}

/* -------------------------------------------------------------------------
   Compose page
   ------------------------------------------------------------------------- */

.compose-section {
  padding-top: 38px;
}

.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.compose-panel {
  padding: 34px 36px 29px;
}

.compose-form {
  display: grid;
  gap: 23px;
}

.compose-form .field input {
  min-height: 52px;
  font-size: 15px;
}

.compose-form .field textarea#content {
  min-height: 260px;
  padding: 16px;
  font-size: 14px;
  line-height: 2;
}

.compose-submit {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.compose-submit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cooldown-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.cooldown-hint .icon {
  width: 12px;
  height: 12px;
}

.upload-zone {
  border: 1px dashed #c5dbe8;
  border-radius: 15px;
  background: linear-gradient(145deg, #f9fcfe, #f4fafd);
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-zone:hover,
.upload-zone.has-files {
  border-color: #99bdd2;
  background: #f7fbfd;
}

.upload-trigger {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid #dceaeF;
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
  place-items: center;
}

.upload-icon .icon {
  width: 20px;
  height: 20px;
}

.upload-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.upload-copy strong {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.upload-copy span {
  color: var(--muted-light);
  font-size: 10.5px;
}

.upload-arrow {
  color: var(--muted-light);
}

.upload-arrow .icon {
  width: 17px;
  height: 17px;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 17px;
}

.upload-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.25;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-deep);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 43, 58, 0.6);
  backdrop-filter: blur(4px);
  place-items: center;
}

.upload-remove:hover {
  background: rgba(21, 43, 58, 0.8);
}

.upload-remove .icon {
  width: 13px;
  height: 13px;
}

.upload-message {
  padding: 0 18px 13px;
  color: var(--danger);
  font-size: 10.5px;
}

.upload-message:empty {
  display: none;
}

.compose-side {
  display: grid;
  gap: 17px;
}

.side-panel {
  padding: 24px;
}

.side-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}

.side-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  place-items: center;
}

.side-icon .icon {
  width: 17px;
  height: 17px;
}

.side-panel-head h2 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.side-panel-head p {
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.flow-list {
  display: grid;
}

.flow-list li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
}

.flow-list li:last-child {
  padding-bottom: 0;
}

.flow-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 2px;
  left: 13px;
  width: 1px;
  background: var(--line);
}

.flow-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  border: 1px solid #d9e9f3;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 8.5px;
  font-weight: 700;
  place-items: center;
}

.flow-list strong {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.flow-list p {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.65;
}

.side-panel-soft {
  background:
    radial-gradient(circle at 100% 0%, rgba(213, 234, 245, 0.63), transparent 11rem),
    #f8fbfd;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.side-title .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.rule-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.rule-list li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.rule-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9dbfd3;
}

.side-footnote {
  margin-top: 15px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.75;
}

/* -------------------------------------------------------------------------
   My posts
   ------------------------------------------------------------------------- */

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.67);
  width: fit-content;
}

.status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.status-tab span {
  display: grid;
  min-width: 19px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  color: var(--muted-light);
  background: rgba(230, 240, 246, 0.9);
  font-size: 9.5px;
  place-items: center;
}

.status-tab:hover {
  color: var(--ink);
}

.status-tab.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 600;
}

.status-tab.is-active span {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.7);
}

.my-post-list {
  display: grid;
  gap: 13px;
}

.my-post-card {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr) auto;
  align-items: center;
  gap: 23px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.my-post-card:hover {
  border-color: #cbdde8;
  box-shadow: var(--shadow-sm);
}

.my-post-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 122px;
  border-radius: 13px;
  background: var(--bg-deep);
}

.my-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-post-thumb > span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(18, 48, 67, 0.52);
  font-size: 9px;
}

.my-post-thumb-text {
  display: grid;
  color: #8eafc1;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.5), transparent 8rem),
    #edf6fb;
  place-items: center;
}

.my-post-thumb-text .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}

.my-post-main {
  min-width: 0;
}

.my-post-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-post-top time {
  color: var(--muted-light);
  font-size: 10px;
}

.my-post-main h2 {
  margin: 7px 0 5px;
  overflow: hidden;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-post-main h2 a:hover {
  color: var(--blue-deep);
}

.my-post-main > p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.my-post-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px !important;
  color: var(--muted-light) !important;
  font-size: 10px !important;
}

.my-post-note .icon {
  width: 12px;
  height: 12px;
}

.my-post-note-success {
  color: var(--success) !important;
}

.reject-reason {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--danger);
  background: #fcf4f4;
  font-size: 10px;
  line-height: 1.65;
}

.reject-reason .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}

.reject-reason p {
  display: flex;
  gap: 6px;
}

.reject-reason strong {
  flex: none;
  font-weight: 600;
}

.my-post-action {
  display: flex;
  align-items: center;
  padding-right: 4px;
}

/* -------------------------------------------------------------------------
   Profile
   ------------------------------------------------------------------------- */

.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  min-height: 195px;
  padding: 34px 39px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(135, 190, 220, 0.28), transparent 24rem),
    linear-gradient(120deg, #173e5a, #286587);
  box-shadow: 0 24px 60px rgba(29, 69, 94, 0.17);
}

.profile-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.profile-ring-a {
  top: -155px;
  right: 130px;
  width: 390px;
  height: 390px;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.025), 0 0 0 104px rgba(255, 255, 255, 0.018);
}

.profile-ring-b {
  right: -60px;
  bottom: -210px;
  width: 340px;
  height: 340px;
}

.profile-glow {
  position: absolute;
  top: 20%;
  left: 42%;
  width: 270px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(184, 222, 242, 0.14), transparent 68%);
}

.profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  border: 3px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 25px rgba(8, 32, 48, 0.17);
}

.profile-kicker {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.profile-identity h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10.5px;
}

.profile-meta .icon {
  width: 12px;
  height: 12px;
}

.profile-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
}

.profile-status-pill .live-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(93, 181, 147, 0.13);
}

.profile-status p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.profile-stat-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  place-items: center;
}

.profile-stat-icon .icon {
  width: 17px;
  height: 17px;
}

.profile-stat-success { color: var(--success); background: var(--success-soft); }
.profile-stat-warning { color: var(--warning); background: var(--warning-soft); }
.profile-stat-heart { color: #a96670; background: #fbefF1; }

.profile-stat div {
  display: flex;
  flex-direction: column;
}

.profile-stat strong {
  color: var(--navy);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.profile-stat span {
  color: var(--muted-light);
  font-size: 9.5px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.profile-main-panel {
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.panel-heading h2 {
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}

.recent-post-list {
  display: grid;
}

.recent-post {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf3f7;
  transition: color 160ms ease;
}

.recent-post:first-child {
  padding-top: 6px;
}

.recent-post:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.recent-post:hover .recent-post-title {
  color: var(--blue-deep);
}

.recent-post-date {
  display: flex;
  width: 43px;
  height: 43px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  line-height: 1.1;
}

.recent-post-date strong {
  font-size: 15px;
  font-weight: 600;
}

.recent-post-date span {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 8px;
}

.recent-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.recent-post-title {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.recent-post-meta {
  color: var(--muted-light);
  font-size: 9.5px;
}

.recent-post > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-light);
}

.recent-post .status-pill {
  margin-left: 8px;
}

.profile-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
}

.profile-empty > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  place-items: center;
}

.profile-empty > span .icon {
  width: 17px;
  height: 17px;
}

.profile-empty > div {
  flex: 1;
}

.profile-empty strong {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-empty p {
  color: var(--muted-light);
  font-size: 10px;
}

.profile-side {
  display: grid;
  gap: 16px;
}

.profile-side .side-panel {
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf3f7;
}

.info-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted-light);
  font-size: 10.5px;
}

.info-list dd {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.side-panel-accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(209, 233, 245, 0.64), transparent 14rem),
    #f3f9fc;
}

.side-panel-accent h2 {
  margin: 12px 0 7px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.side-panel-accent > p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.side-panel-plain {
  background: transparent;
  box-shadow: none;
}

.side-panel-plain form {
  margin-top: 15px;
}

/* -------------------------------------------------------------------------
   Post detail
   ------------------------------------------------------------------------- */

.detail-section {
  padding-top: 36px;
}

.owner-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding: 17px 18px;
  border: 1px solid;
  border-radius: 15px;
}

.owner-notice .notice-icon {
  width: 31px;
  height: 31px;
}

.owner-notice > div {
  flex: 1;
}

.owner-notice strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.owner-notice p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.7;
}

.owner-notice-pending {
  border-color: #f0e3c8;
  background: #fdf8ef;
}

.owner-notice-pending strong, .owner-notice-pending p { color: #806331; }
.owner-notice-pending .notice-icon { color: var(--warning); background: #fff; }

.owner-notice-rejected {
  border-color: #f0dada;
  background: #fdf6f6;
}

.owner-notice-rejected strong, .owner-notice-rejected p { color: #8c4b4b; }
.owner-notice-rejected .notice-icon { color: var(--danger); background: #fff; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  align-items: start;
  gap: 22px;
}

.article-panel {
  padding: 38px 43px 28px;
}

.article-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue-deep);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-channel .icon {
  width: 14px;
  height: 14px;
}

.article-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 9.5px;
}

.article-verified .icon {
  width: 12px;
  height: 12px;
}

.article-head h1 {
  margin: 17px 0 16px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(29px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10.5px;
}

.meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5d3dc;
}

.article-content {
  padding: 27px 0 8px;
  color: #334b5c;
  font-size: 14.5px;
  line-height: 2.15;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-content::selection {
  background: #d4e9f6;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0 6px;
}

.post-gallery-count-1 {
  grid-template-columns: 1fr;
}

.post-gallery-count-3 .gallery-item:first-child {
  grid-column: 1 / -1;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 130px;
  border-radius: 12px;
  background: var(--bg-deep);
}

.post-gallery-count-1 .gallery-item {
  max-height: 510px;
}

.post-gallery-count-2 .gallery-item {
  aspect-ratio: 1.23;
}

.post-gallery-count-3 .gallery-item {
  aspect-ratio: 1.55;
}

.post-gallery-count-3 .gallery-item:first-child {
  aspect-ratio: 2.3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  background: rgba(16, 43, 60, 0.5);
  opacity: 0;
  backdrop-filter: blur(5px);
  font-size: 9px;
  transition: opacity 160ms ease;
}

.gallery-zoom .icon {
  width: 11px;
  height: 11px;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.article-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.like-button-lg {
  gap: 7px;
  min-height: 39px;
  padding: 7px 14px;
  border-color: var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 12px;
}

.like-button-lg .icon {
  width: 16px;
  height: 16px;
}

.like-button-lg.is-liked {
  border-color: #f0d8dc;
  background: #fdf3f4;
}

.like-button-lg [data-like-count] {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  opacity: 0.7;
}

.article-state-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  padding: 7px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--muted-light);
  font-size: 10.5px;
}

.article-state-note .icon {
  width: 13px;
  height: 13px;
}

.article-action-right {
  display: flex;
  align-items: center;
  gap: 17px;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 10.5px;
  transition: color 160ms ease;
}

.quiet-link:hover {
  color: var(--blue-deep);
}

.quiet-link .icon {
  width: 13px;
  height: 13px;
}

.article-owner-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 10px;
}

.article-owner-label .icon {
  width: 12px;
  height: 12px;
}

.detail-side {
  display: grid;
  gap: 16px;
}

.author-card {
  padding: 22px;
}

.author-card-label {
  margin-bottom: 14px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.author-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-card-main > div {
  display: flex;
  flex-direction: column;
}

.author-card-main strong {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.author-card-main span {
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.author-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf3f7;
}

.author-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 10px;
}

.author-card-meta .icon {
  width: 12px;
  height: 12px;
}

.review-card {
  padding: 22px;
}

.review-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.review-card-head h2 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.review-card-head p {
  color: var(--muted-light);
  font-size: 9.5px;
}

.info-list-compact {
  gap: 9px;
  margin-top: 16px;
}

.info-list-compact > div {
  padding-bottom: 9px;
}

.info-list-compact dd .status-pill {
  font-size: 9.5px;
}

.review-note {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf3f7;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.75;
}

.comments-closed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.comments-closed > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  color: var(--muted-light);
  background: #edf4f8;
  place-items: center;
}

.comments-closed > span .icon {
  width: 15px;
  height: 15px;
}

.comments-closed strong {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.comments-closed p {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.7;
}

.back-wall-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  padding: 10px;
  color: var(--muted);
  font-size: 10.5px;
  transition: color 160ms ease;
}

.back-wall-link:hover {
  color: var(--blue-deep);
}

.back-wall-link .icon {
  width: 13px;
  height: 13px;
}

/* Report panel */
.report-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.report-panel summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease;
}

.report-panel summary::-webkit-details-marker {
  display: none;
}

.report-panel summary:hover {
  background: #f1f7fb;
}

.report-summary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  color: var(--muted);
  background: #edf4f8;
  place-items: center;
}

.report-summary-icon .icon {
  width: 14px;
  height: 14px;
}

.report-panel summary > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.report-panel summary strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.report-panel summary small {
  color: var(--muted-light);
  font-size: 9.5px;
}

.report-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted-light);
  transition: transform 160ms ease;
}

.report-panel[open] .report-chevron {
  transform: rotate(180deg);
}

.report-form {
  display: grid;
  gap: 14px;
  padding: 6px 17px 17px;
  border-top: 1px solid var(--line);
}

.report-form .field:first-child {
  margin-top: 14px;
}

.report-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-form-actions p {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.report-form-actions p .icon {
  width: 11px;
  height: 11px;
}

.report-thanks {
  display: flex;
  gap: 10px;
  padding: 16px 17px;
  border-top: 1px solid var(--line);
  color: var(--success);
}

.report-thanks .icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.report-thanks p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.report-thanks strong {
  display: block;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Error
   ------------------------------------------------------------------------- */

.error-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 260px);
  padding: 55px 0 80px;
}

.error-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-illustration {
  position: relative;
  display: grid;
  width: 195px;
  height: 140px;
  margin-bottom: 21px;
  place-items: center;
}

.error-code {
  position: relative;
  z-index: 1;
  color: #c9deeb;
  font-family: var(--font-serif);
  font-size: 104px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.error-ring {
  position: absolute;
  border: 1px solid #d8e8f2;
  border-radius: 50%;
}

.error-ring-a {
  top: 0;
  left: 4px;
  width: 135px;
  height: 135px;
}

.error-ring-b {
  right: 0;
  bottom: 4px;
  width: 77px;
  height: 77px;
}

.error-star {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 28px;
  display: grid;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
  place-items: center;
}

.error-star .icon {
  width: 15px;
  height: 15px;
}

.error-inner h1 {
  margin: 9px 0 9px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
}

.error-message {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.error-help {
  margin-top: 17px;
  color: var(--muted-light);
  font-size: 10.5px;
}

/* -------------------------------------------------------------------------
   Animations & responsive
   ------------------------------------------------------------------------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1180px) {
  .hero-grid {
    gap: 28px;
  }

  .campus-board {
    transform: translateX(-50%) rotate(1.1deg) scale(0.93);
  }

  .board-note {
    right: -25px;
  }

  .floating-chip-top {
    right: -3px;
  }

  .floating-chip-bottom {
    left: -3px;
  }

  .nav-shell {
    gap: 17px;
  }

  .nav-link {
    padding-inline: 9px;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(345px, 0.97fr);
  }

  .campus-board {
    transform: translateX(-50%) rotate(1.1deg) scale(0.84);
  }

  .floating-chip-top { top: 5px; }
  .board-note { right: -10px; bottom: 8px; }
  .floating-chip-bottom { bottom: 12px; }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 12.8px;
  }

  .nav-user {
    max-width: 115px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .auth-aside {
    padding: 45px 38px;
  }

  .auth-card {
    padding: 42px 40px;
  }

  .compose-layout,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .my-post-card {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 18px;
  }

  .my-post-thumb {
    height: 112px;
  }
}

@media (max-width: 920px) {
  :root {
    --nav-height: 68px;
  }

  .nav-shell {
    gap: 12px;
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: grid;
  }

  .nav-close-icon {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - var(--nav-height) - 26px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 55px rgba(28, 64, 88, 0.16);
    backdrop-filter: blur(18px);
  }

  body.is-nav-open .nav-menu {
    display: flex;
    animation: toast-in 180ms ease both;
  }

  body.is-nav-open .nav-menu-icon {
    display: none;
  }

  body.is-nav-open .nav-close-icon {
    display: block;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  .nav-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .nav-user {
    flex: 1;
    max-width: none;
  }

  .nav-username {
    font-size: 13px;
  }

  .logout-form {
    flex: none;
  }

  .nav-logout {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .nav-admin-link {
    width: 100%;
    padding: 5px 4px;
    font-size: 12px;
  }

  .hero {
    padding-top: 45px;
    padding-bottom: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    padding-bottom: 0;
    text-align: center;
  }

  .hero-copy .eyebrow {
    justify-content: center;
  }

  .hero-copy h1 {
    max-width: 660px;
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 480px);
    min-height: 400px;
    margin-inline: auto;
  }

  .campus-board {
    top: 29px;
    transform: translateX(-50%) rotate(0.8deg) scale(0.9);
  }

  .board-note { right: -11px; bottom: 2px; }
  .floating-chip-top { top: 0; right: 12%; }
  .floating-chip-bottom { bottom: 7px; left: 7%; }

  .stats-ribbon {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .stat-item {
    flex: 1 1 27%;
    padding-inline: 14px;
  }

  .stat-item:first-child {
    padding-left: 4px;
  }

  .stat-aside {
    flex: 1 0 100%;
    max-width: none;
    margin-top: 13px;
    padding-top: 13px;
    padding-left: 4px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stat-divider {
    display: none;
  }

  .community-card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 29px;
  }

  .community-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .community-copy {
    flex: 1 1 calc(100% - 80px);
  }

  .community-actions {
    flex: 1 0 100%;
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
    margin-top: 4px;
    padding-left: 78px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 570px;
    min-height: 0;
  }

  .auth-aside {
    display: none;
  }

  .auth-card {
    padding: 42px 45px;
  }

  .compose-layout,
  .detail-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .compose-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .profile-side,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .detail-side .back-wall-link {
    grid-column: 1 / -1;
  }

  .detail-side .comments-closed {
    grid-column: 1 / -1;
  }

  .my-post-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .my-post-action {
    grid-column: 2;
    padding: 0 0 3px;
  }

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

  .footer-main {
    grid-template-columns: 1.35fr 0.75fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .site-header .brand-mark img {
    width: 24px;
    height: 24px;
  }

  .site-header .brand-copy strong {
    font-size: 16px;
  }

  .site-header .brand-copy span {
    font-size: 8.5px;
  }

  .hero {
    padding-top: 35px;
    padding-bottom: 47px;
  }

  .hero-copy h1 {
    margin-top: 17px;
    font-size: clamp(36px, 10vw, 51px);
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.95;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .hero-trust {
    gap: 12px;
    font-size: 10px;
  }

  .hero-trust span + span::before {
    margin-right: 8px;
  }

  .hero-visual {
    display: none;
  }

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

  .stat-item {
    padding: 0 10px;
    text-align: center;
  }

  .stat-item:first-child {
    padding-left: 2px;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat-value {
    font-size: 23px;
  }

  .stat-aside {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    padding-left: 2px;
    text-align: left;
  }

  .wall-section {
    padding-top: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .verified-label {
    margin-top: 11px;
  }

  .wall-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .sort-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sort-link {
    justify-content: center;
  }

  .search-form {
    width: 100%;
  }

  .filter-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-card-body {
    padding: 21px 21px 18px;
  }

  .post-text-mark {
    padding: 22px 21px 0;
  }

  .post-cover {
    aspect-ratio: 16 / 9;
  }

  .community-section {
    padding-top: 38px;
  }

  .community-card {
    gap: 17px;
    padding: 24px;
    border-radius: 22px;
  }

  .community-mark {
    display: none;
  }

  .community-copy h2 {
    font-size: 21px;
  }

  .community-actions {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin-top: 7px;
  }

  .pagination {
    gap: 7px;
    margin-top: 29px;
  }

  .page-step {
    padding: 7px 10px;
    font-size: 11px;
  }

  .page-step span {
    display: none;
  }

  .page-number {
    width: 32px;
    height: 32px;
  }

  .page-numbers {
    gap: 0;
  }

  .page-ellipsis {
    padding: 0;
  }

  .pagination-summary {
    font-size: 10.5px;
  }

  .site-footer {
    margin-top: 60px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 25px;
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-rule {
    grid-column: 1 / -1;
    max-width: 430px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-bottom: 21px;
  }

  .toast-stack {
    top: calc(var(--nav-height) + 10px);
    right: 16px;
    left: 16px;
    width: auto;
  }

  .page-section {
    padding-top: 27px;
    padding-bottom: 40px;
  }

  .breadcrumb {
    margin-bottom: 19px;
  }

  .page-heading {
    margin-bottom: 25px;
  }

  .page-heading-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-lead {
    font-size: 12.5px;
  }

  .auth-section {
    padding: 2px 0 20px;
  }

  .auth-layout {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-card {
    padding: 31px 24px 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
  }

  .auth-card-head h2 {
    font-size: 26px;
  }

  .auth-page-body .site-footer {
    margin-top: 25px;
  }

  .compose-panel {
    padding: 24px 20px;
  }

  .compose-form {
    gap: 20px;
  }

  .compose-submit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .compose-submit-actions .btn {
    width: 100%;
  }

  .cooldown-hint {
    justify-content: center;
  }

  .compose-side,
  .profile-side,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .status-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .status-tabs::-webkit-scrollbar {
    display: none;
  }

  .status-tab {
    flex: none;
  }

  .my-post-card {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 13px;
  }

  .my-post-thumb {
    height: 168px;
  }

  .my-post-main {
    padding: 0 4px;
  }

  .my-post-main h2 {
    font-size: 18px;
  }

  .my-post-action {
    grid-column: auto;
    padding: 0 4px 3px;
  }

  .my-post-action .btn {
    width: 100%;
  }

  .profile-hero {
    display: block;
    padding: 26px 22px;
    border-radius: 23px;
  }

  .profile-identity {
    align-items: flex-start;
    gap: 14px;
  }

  .profile-avatar {
    width: 63px;
    height: 63px;
    font-size: 23px;
  }

  .profile-identity h1 {
    font-size: 25px;
  }

  .profile-meta {
    font-size: 9.5px;
  }

  .profile-status {
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .profile-status p {
    display: none;
  }

  .profile-stats {
    gap: 8px;
  }

  .profile-stat {
    gap: 9px;
    padding: 13px;
  }

  .profile-stat-icon {
    width: 31px;
    height: 31px;
  }

  .profile-stat strong {
    font-size: 18px;
  }

  .profile-main-panel {
    padding: 21px;
  }

  .recent-post {
    gap: 10px;
  }

  .recent-post .status-pill {
    display: none;
  }

  .recent-post .recent-post-title {
    font-size: 12px;
  }

  .article-panel {
    padding: 25px 20px 20px;
  }

  .article-head h1 {
    font-size: 27px;
  }

  .article-meta {
    gap: 7px;
    font-size: 9.5px;
  }

  .article-content {
    padding-top: 22px;
    font-size: 14px;
    line-height: 2.05;
  }

  .gallery-zoom {
    display: none;
  }

  .article-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-action-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
  }

  .report-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .report-form-actions .btn {
    width: 100%;
  }

  .owner-notice {
    flex-wrap: wrap;
    padding: 14px;
  }

  .owner-notice > .status-pill {
    margin-left: 43px;
  }

  .detail-side {
    gap: 12px;
  }

  .back-wall-link {
    order: 6;
  }

  .error-section {
    min-height: 55vh;
  }

  .error-code {
    font-size: 84px;
  }

  .error-inner h1 {
    font-size: 28px;
  }
}

@media (max-width: 400px) {
  .site-header .brand-copy span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-actions .btn {
    min-width: 0;
    padding-inline: 13px;
    font-size: 13px;
  }

  .auth-card {
    padding-inline: 19px;
  }

  .stat-item {
    padding-inline: 5px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-value small {
    display: block;
    margin: 0;
  }
}

/* =========================================================================
   v1.1 additions: notifications, comments, account security
   ========================================================================= */

.nav-notification {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  place-items: center;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-notification:hover {
  color: var(--blue-deep);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.nav-notification .icon {
  width: 17px;
  height: 17px;
}

.nav-notification-badge {
  position: absolute;
  top: -1px;
  right: -2px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #f7fbfe;
  border-radius: 99px;
  color: #fff;
  background: #b7656d;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  place-items: center;
}

.post-engagement {
  display: flex;
  align-items: center;
  gap: 3px;
}

.comment-count-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 99px;
  color: #879baa;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease, background 160ms ease;
}

.comment-count-link:hover {
  color: var(--blue-deep);
  background: var(--blue-pale);
}

.comment-count-link .icon {
  width: 14px;
  height: 14px;
}

.article-comment-jump {
  color: var(--muted-light);
  transition: color 160ms ease;
}

.article-comment-jump:hover {
  color: var(--blue-deep);
}

.detail-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.comments-panel {
  padding: 29px 32px 25px;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.comments-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.comments-head h2 {
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.comments-head h2 span {
  margin-left: 4px;
  color: var(--muted-light);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
}

.comments-review-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.comments-review-note .icon {
  width: 12px;
  height: 12px;
}

.comment-form {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.comment-form-avatar {
  padding-top: 3px;
}

.comment-compose {
  flex: 1;
  min-width: 0;
}

.comment-compose textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfe;
  font-size: 12.5px;
  line-height: 1.8;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.comment-compose textarea:focus {
  outline: none;
  border-color: #7eabc7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74, 140, 185, 0.1);
}

.comment-compose textarea::placeholder {
  color: #a7b6c3;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 9px;
}

.comment-form-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.comment-form-footer > span .icon {
  width: 11px;
  height: 11px;
}

.comment-login-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.comment-login-prompt > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  place-items: center;
}

.comment-login-prompt > span .icon {
  width: 15px;
  height: 15px;
}

.comment-login-prompt p {
  flex: 1;
  color: var(--muted);
  font-size: 10.5px;
}

.comment-login-prompt strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.my-comment-queue {
  margin-top: 17px;
  padding: 13px 14px;
  border: 1px solid #ece2ca;
  border-radius: 11px;
  background: #fdf9f1;
}

.my-comment-queue h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  color: #7c6333;
  font-size: 10px;
  font-weight: 600;
}

.my-comment-queue h3 .icon {
  width: 12px;
  height: 12px;
}

.my-comment-item {
  padding: 8px 0;
  border-top: 1px solid #f2ead8;
}

.my-comment-item > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-comment-item time {
  color: var(--muted-light);
  font-size: 9px;
}

.my-comment-item p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.my-comment-item small {
  display: block;
  margin-top: 4px;
  color: var(--danger);
  font-size: 9px;
  line-height: 1.65;
}

.comment-list {
  display: grid;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid #eef4f7;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-item-body {
  flex: 1;
  min-width: 0;
}

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

.comment-item-head strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.comment-item-head time {
  flex: none;
  color: var(--muted-light);
  font-size: 9px;
}

.comment-item-body > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 29px 10px 17px;
  color: var(--muted-light);
}

.comments-empty span {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--blue-pale);
  place-items: center;
}

.comments-empty .icon {
  width: 13px;
  height: 13px;
}

.comments-empty p {
  font-size: 10.5px;
}

.comment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9.5px;
}

.comment-pagination .btn {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 9.5px;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.comments-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 27px 4px 12px;
  color: var(--muted-light);
}

.comments-locked .icon {
  width: 16px;
  height: 16px;
}

.comments-locked p {
  font-size: 11px;
}

.comments-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.comments-policy > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  color: var(--blue);
  background: #edf4f8;
  place-items: center;
}

.comments-policy > span .icon {
  width: 15px;
  height: 15px;
}

.comments-policy strong {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.comments-policy p {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.7;
}

/* Password page */
.password-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
}

.password-panel {
  padding: 32px 36px;
}

.password-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.password-panel-head h2 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.password-panel-head p {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.password-side .side-panel {
  padding: 23px;
}

/* Notifications */
.notification-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--muted-light);
  background: rgba(231, 242, 250, 0.64);
  font-size: 10.5px;
}

.notification-summary strong {
  color: var(--blue-deep);
  font-weight: 600;
}

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

.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.notification-card.is-unread {
  border-color: #c9e0ed;
  background: linear-gradient(110deg, #ffffff, #f9fcfe);
  box-shadow: 0 7px 20px rgba(44, 95, 126, 0.055);
}

.notification-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 10px;
  place-items: center;
}

.notification-icon .icon {
  width: 16px;
  height: 16px;
}

.notification-icon-positive { color: var(--success); background: var(--success-soft); }
.notification-icon-negative { color: var(--danger); background: var(--danger-soft); }
.notification-icon-neutral { color: var(--blue-deep); background: var(--blue-soft); }

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-title h2 {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.notification-unread-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #b66a70;
}

.notification-body > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.notification-reason {
  margin-top: 5px !important;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--danger) !important;
  background: var(--danger-soft);
  font-size: 10px !important;
}

.notification-quote {
  margin-top: 5px !important;
  padding-left: 9px;
  border-left: 2px solid #dbe9f1;
  color: var(--muted-light) !important;
  font-family: var(--font-serif);
  font-size: 10.5px !important;
}

.notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
}

.notification-meta time {
  color: var(--muted-light);
  font-size: 9px;
}

.notification-meta a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 600;
}

.notification-meta a .icon {
  width: 11px;
  height: 11px;
}

.notification-all-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 10.5px;
}

.notification-all-read .icon {
  width: 13px;
  height: 13px;
}

@media (max-width: 1040px) {
  .password-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .comments-panel {
    padding-inline: 26px;
  }
}

@media (max-width: 920px) {
  .nav-notification {
    width: 38px;
    height: 38px;
    border-color: var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
  }

  .nav-actions .nav-notification {
    flex: none;
  }

  .password-layout {
    grid-template-columns: 1fr;
  }

  .notification-card {
    padding: 15px;
  }
}

@media (max-width: 700px) {
  .comments-panel {
    padding: 22px 18px 19px;
  }

  .comments-head h2 {
    font-size: 20px;
  }

  .comments-review-note {
    font-size: 9px;
  }

  .comment-form {
    gap: 8px;
  }

  .comment-form-avatar .avatar {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .comment-form-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .comment-form-footer .btn {
    width: 100%;
  }

  .comment-login-prompt {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .comment-login-prompt .btn {
    width: 100%;
  }

  .comment-item-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .comment-pagination {
    gap: 7px;
  }

  .password-panel {
    padding: 24px 19px;
  }

  .password-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .password-actions .btn {
    width: 100%;
  }

  .comment-form-avatar {
    display: none;
  }

  .notification-card {
    gap: 10px;
    padding: 14px;
  }

  .notification-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  .notification-title h2 {
    font-size: 12px;
  }

  .notification-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .notification-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-notification {
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
  }

  .nav-notification .icon {
    width: 16px;
    height: 16px;
  }

  .nav-notification-badge {
    top: -2px;
    right: -3px;
    border-color: #fff;
  }

  .site-header .nav-actions .nav-notification {
    flex: none;
  }
}
