:root {
  color-scheme: dark;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, Menlo, "Liberation Mono", monospace;

  --ink: #edf2fc;
  --muted: #9aa7c0;
  --dim: #6f7f9e;
  --base: #060a13;
  --rail: #090f1c;
  --panel: #0d1525;
  --panel-elevated: #121c30;
  --input-bg: #070d18;
  --line: rgba(176, 200, 240, 0.13);
  --line-strong: rgba(176, 200, 240, 0.25);

  --gold: #e6c07b;
  --gold-bright: #f2d399;
  --gold-ink: #120d05;
  --accent: #8bb9f8;
  --accent-bright: #b4d2ff;
  --cyan: #5fd7bc;
  --warn: #f0bc5e;
  --danger: #f5949e;

  --risk-height: 0px;
  --editor-height: 26dvh;

  font-family: var(--font-sans);
  background: var(--base);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

body {
  margin: 0;
  min-width: 280px;
  background: var(--base);
  color: var(--ink);
  letter-spacing: 0.01em;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a {
  color: var(--accent);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.subtle {
  color: var(--muted);
  font-size: 0.855rem;
  line-height: 1.65;
}

.label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.success,
.error {
  font-size: 0.845rem;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.success {
  color: var(--cyan);
  background: rgba(20, 62, 52, 0.55);
  border: 1px solid rgba(95, 215, 188, 0.28);
  border-radius: 0.48rem;
  padding: 0.62rem 0.75rem;
}

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

body.modal-open {
  overflow: hidden;
}

/* ==================== Top Fixed Risk Disclaimer Banner ==================== */
.risk {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: #1f1119;
  color: #f4c6ca;
  border-bottom: 1px solid rgba(226, 122, 138, 0.32);
}

.risk > div {
  max-width: 1640px;
  margin: auto;
  padding: 0.58rem clamp(0.85rem, 2.4vw, 2.2rem);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.risk p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.83rem;
  line-height: 1.52;
}

.risk strong {
  color: #ffe2e5;
}

.risk-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.54rem;
  min-height: 1.68rem;
  border-radius: 0.36rem;
  border: 1px solid rgba(242, 148, 158, 0.48);
  background: rgba(56, 22, 34, 0.72);
  color: #ffe2e5;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.risk-toggle:hover {
  background: rgba(82, 30, 46, 0.85);
}

.risk-symbol {
  margin-top: 0.12rem;
  border: 1px solid rgba(242, 148, 158, 0.55);
  border-radius: 50%;
  width: 1.12rem;
  height: 1.12rem;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd0d5;
}

/* ==================== 3-Column Shell ==================== */
.layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 264px;
  max-width: 1640px;
  margin: auto;
  min-height: 100dvh;
  padding-top: var(--risk-height);
}

.identity,
.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.5rem 1.25rem;
  background: var(--rail);
}

.identity {
  border-right: 1px solid var(--line);
}

.sidebar {
  border-left: 1px solid var(--line);
  padding-top: 1.75rem;
}

/* ==================== Brand & Countdown ==================== */
.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.brand div > span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--gold);
  opacity: 0.88;
}

.logo {
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(230, 192, 123, 0.32);
  border-radius: 0.72rem;
  display: grid;
  place-items: center;
  font-size: 1.48rem;
  color: var(--gold-bright);
  background: radial-gradient(circle at 38% 35%, rgba(230, 192, 123, 0.22), #0e1629 72%);
  flex: none;
}

.phase {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(13, 21, 37, 0.65);
}

.phase strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}

.phase .subtle {
  font-size: 0.78rem;
}

/* ==================== Center Stage ==================== */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 54% at 54% 44%, rgba(26, 48, 86, 0.45) 0%, transparent 72%),
    radial-gradient(ellipse 46% 36% at 76% 24%, rgba(230, 192, 123, 0.08) 0%, transparent 66%),
    var(--base);
}

/* ==================== Panels, Forms & Controls ==================== */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.72rem;
}

.identity-panel {
  padding: 1rem;
}

.identity-panel h2,
.sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.identity-panel form {
  display: grid;
  gap: 0.72rem;
}

.identity-panel label,
.dialog-form label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  display: grid;
  gap: 0.34rem;
}

input,
textarea,
select {
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 0.48rem;
  max-width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--dim);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(176, 200, 240, 0.38);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

input,
textarea {
  width: 100%;
  padding: 0.56rem 0.68rem;
}

select {
  appearance: none;
  padding: 0.48rem 1.8rem 0.48rem 0.68rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    right 0.74rem center,
    right 0.47rem center;
  background-size: 0.28rem 0.28rem;
  background-repeat: no-repeat;
}

.auth-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-secondary-row .secondary {
  flex: 1;
}

/* Buttons */
.primary,
.secondary,
.quiet,
.success,
.success-outline,
.warn,
.warn-outline,
.danger,
.danger-outline {
  border-radius: 0.48rem;
  border: 1px solid transparent;
  font-size: 0.855rem;
  font-weight: 500;
  min-height: 2.25rem;
  padding: 0.46rem 0.82rem;
  white-space: nowrap;
  transition:
    transform 0.14s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:not(:disabled):active {
  transform: translateY(0);
}

.star-point:hover,
.topic-row:hover,
.top-card:hover,
.risk-toggle:hover,
.cell-reason-toggle:hover {
  transform: none;
}

.primary {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
}

.primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 4px 16px rgba(230, 192, 123, 0.24);
}

.secondary {
  background: var(--panel-elevated);
  color: var(--ink);
  border-color: var(--line-strong);
}

.secondary:hover {
  background: #192640;
  border-color: rgba(176, 200, 240, 0.42);
}

.quiet {
  color: var(--muted);
  background: transparent;
}

.quiet:hover {
  color: var(--ink);
  background: rgba(139, 185, 248, 0.1);
}

.quiet.warn-text {
  color: #f3c877;
}

.quiet.warn-text:hover {
  color: #fde68a;
  background: rgba(240, 188, 94, 0.12);
}

.quiet.danger-text {
  color: #f5949e;
}

.quiet.danger-text:hover {
  color: #fecdd3;
  background: rgba(245, 148, 158, 0.12);
}

.success {
  background: #22a889;
  color: #041612;
  font-weight: 600;
}

.success:hover {
  background: #30c2a0;
  box-shadow: 0 4px 14px rgba(48, 194, 160, 0.24);
}

.success-outline {
  background: rgba(34, 168, 137, 0.14);
  border-color: rgba(95, 215, 188, 0.42);
  color: #9bf2de;
}

.success-outline:hover {
  background: rgba(34, 168, 137, 0.25);
  border-color: rgba(95, 215, 188, 0.65);
  color: #d6fff4;
}

.warn {
  background: #d89b2b;
  color: #140e04;
  font-weight: 600;
}

.warn:hover {
  background: #e8b044;
  box-shadow: 0 4px 14px rgba(232, 176, 68, 0.24);
}

.warn-outline {
  background: rgba(216, 155, 43, 0.14);
  border-color: rgba(240, 188, 94, 0.44);
  color: #fde68a;
}

.warn-outline:hover {
  background: rgba(216, 155, 43, 0.26);
  border-color: rgba(240, 188, 94, 0.68);
  color: #fff4c4;
}

.danger {
  background: #d94655;
  color: #fff6f7;
  font-weight: 600;
}

.danger:hover {
  background: #e85867;
  box-shadow: 0 4px 14px rgba(232, 88, 103, 0.24);
}

.danger-outline {
  background: rgba(74, 24, 38, 0.52);
  border-color: rgba(236, 114, 134, 0.46);
  color: #fecdd3;
}

.danger-outline:hover {
  background: rgba(108, 32, 52, 0.72);
  border-color: rgba(245, 148, 158, 0.68);
  color: #fff1f2;
}

.account-hub-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==================== Account Area ==================== */
.account-area {
  display: grid;
  gap: 0.6rem;
}

.ai-download {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.ai-download summary {
  cursor: pointer;
}

.account-logout {
  width: 100%;
}

.announcement {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0.1rem;
}

.announcement:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.announcement summary {
  cursor: pointer;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--ink);
}

.announcement summary time {
  display: block;
  margin: 0.2rem 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.announcement-body {
  margin: 0.65rem 0 0 1.1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-line {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.account-line strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  color: var(--ink);
}

.status {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.status::before {
  content: "●";
  font-size: 0.62rem;
}

.status.frozen {
  color: var(--warn);
}

.status.frozen::before {
  content: "▲";
}

#welcome {
  margin: 0.5rem 0;
}

.identity-panel .quiet {
  padding-left: 0.2rem;
  padding-right: 0.45rem;
  display: inline-flex;
  align-items: center;
}

.auth-hint {
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0;
}

.account-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.account-id-row code {
  background: rgba(139, 185, 248, 0.1);
  color: var(--accent-bright);
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.08rem 0.38rem;
  border-radius: 0.28rem;
  color: var(--gold-bright);
  background: rgba(230, 192, 123, 0.14);
  border: 1px solid rgba(230, 192, 123, 0.35);
  letter-spacing: 0.04em;
}

.mini-btn {
  min-height: 1.75rem !important;
  padding: 0.18rem 0.5rem !important;
  font-size: 0.76rem !important;
}

/* ==================== Tasks & Quotas ==================== */
.tasks-panel {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tasks-head h2 {
  margin: 0;
}

.tasks-list {
  display: grid;
  gap: 0.42rem;
  font-size: 0.79rem;
  min-width: 0;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid var(--line);
}

.task-item span {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.task-item strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tasks-actions {
  display: grid;
  gap: 0.45rem;
}

.mobile-bar {
  display: none;
}

.quota {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.78rem;
}

.quota-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.quota-line strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quota-line i {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
}

.quota-group {
  display: grid;
  gap: 0.32rem;
}

progress {
  appearance: none;
  background: rgba(176, 200, 240, 0.14);
  border: 0;
  height: 0.28rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: rgba(176, 200, 240, 0.14);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

/* ==================== Landing Hero ==================== */
.landing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  flex: 1;
  isolation: isolate;
  padding: 3.5rem clamp(2rem, 6vw, 5.5rem);
}

.landing-copy {
  z-index: 1;
  max-width: 34rem;
}

.landing-kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.landing h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0.9rem 0 1.4rem;
  color: #f4f7ff;
}

.landing p {
  font-size: 0.98rem;
  line-height: 1.88;
  color: #b5c3dc;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.landing-actions,
.toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.landing-actions .primary,
.landing-actions .secondary {
  padding: 0.66rem 1.35rem;
  min-height: 2.65rem;
}

.constellation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.88;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 26%, rgba(230, 192, 123, 0.12), transparent 44%),
    radial-gradient(ellipse at 22% 76%, rgba(44, 86, 152, 0.24), transparent 52%),
    radial-gradient(
      circle at 72% 64%,
      #f2d399 0px,
      #e6c07b 1.2px,
      rgba(230, 192, 123, 0.28) 3px,
      transparent 16px
    ),
    radial-gradient(circle at 14% 52%, #dce9ff 0px, #dce9ff 1px, transparent 3px),
    radial-gradient(circle at 82% 34%, #f2d399 0px, #f2d399 1px, transparent 3.5px),
    radial-gradient(circle at 36% 14%, #c6dcff 0px, #c6dcff 1px, transparent 3px),
    radial-gradient(circle at 21% 78%, #dce9ff 0px, #dce9ff 1px, transparent 3px),
    radial-gradient(circle at 86% 72%, #8bb9f8 0px, #8bb9f8 1px, transparent 3px);
}

.constellation span {
  position: absolute;
  width: 72%;
  height: 47%;
  border: 1px solid rgba(176, 200, 240, 0.08);
  border-radius: 50%;
  transform: rotate(-33deg);
  left: 24%;
  top: 16%;
}

.constellation span:nth-child(2) {
  left: 17%;
  top: 25%;
  transform: rotate(-40deg);
  border-color: rgba(230, 192, 123, 0.08);
}

.constellation span:nth-child(3) {
  left: 32%;
  top: 22%;
  transform: rotate(-20deg);
  height: 42%;
}

.constellation span:nth-child(4) {
  left: 33%;
  top: 8%;
  transform: rotate(35deg);
  height: 58%;
}

.constellation span:nth-child(5) {
  left: -13%;
  top: 52%;
  transform: rotate(24deg);
  height: 32%;
}

/* ==================== Ocean & Room Headers ==================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.65rem 0.9rem;
}

.main-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.5vw, 1.95rem);
  font-weight: 600;
  margin-bottom: 0.2rem;
  overflow-wrap: anywhere;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.main-header p {
  margin: 0;
}

.ocean,
.room {
  position: relative;
  isolation: isolate;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ==================== 3D Star Field ==================== */
.field {
  position: relative;
  flex: 1;
  min-height: 420px;
}

.points,
#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star-point {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  max-width: min(13.5rem, 29%);
  transform: translate(-10px, -50%);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.34rem 0.5rem;
  min-height: 2.15rem;
  color: #dce9ff;
  font-size: 0.84rem;
  text-align: left;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.star-point:hover,
.star-point:focus-visible {
  background: rgba(10, 17, 32, 0.84);
  border-color: rgba(176, 200, 240, 0.26);
  color: #ffffff;
}

.star-point span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(4, 8, 18, 0.92);
}

.point-dot {
  display: block;
  width: 0.54rem;
  height: 0.54rem;
  flex: none;
  border-radius: 50%;
  background: var(--point);
  box-shadow: 0 0 12px 2px var(--point);
  scale: var(--star-depth, 1);
}

.star-point.pinned .point-dot {
  border-radius: 0.1rem;
  transform: rotate(45deg);
}

.star-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  max-width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  pointer-events: none;
  z-index: 25;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 35% 35%,
    #ffffff 0%,
    var(--orb-color, #e6c07b) 34%,
    color-mix(in srgb, var(--orb-color, #e6c07b) 44%, #060a13) 72%,
    transparent 100%
  );
  box-shadow:
    0 0 28px 6px var(--orb-color, #e6c07b),
    0 0 64px 12px color-mix(in srgb, var(--orb-color, #e6c07b) 40%, transparent),
    inset 0 0 22px rgba(255, 255, 255, 0.55);
}

.star-orb span {
  color: #f8fbff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  line-height: 1.45;
  text-shadow: 0 2px 10px #040914;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.empty {
  color: var(--muted);
  text-align: center;
  margin: 2.5rem 1rem;
}

.field > .empty {
  position: relative;
  margin-top: 10rem;
  pointer-events: none;
}

.topic-list {
  display: none;
}

.phase-banner {
  padding: 0.65rem 1.65rem;
  border-bottom: 1px solid rgba(240, 188, 94, 0.32);
  background: rgba(45, 34, 16, 0.72);
  color: #fae0a8;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ==================== Right Sidebar ==================== */
.sidebar .subtle {
  margin: 0 0 0.8rem;
}

.about h2 {
  margin-bottom: 0.65rem;
}

.about p {
  font-size: 0.875rem;
  line-height: 1.78;
  margin: 0 0 0.72rem;
  color: var(--muted);
}

.site-tools {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.15rem;
  justify-items: start;
}

.site-tools .quiet {
  padding-left: 0.25rem;
  display: inline-flex;
  align-items: center;
}

.top-card {
  width: 100%;
  display: grid;
  gap: 0.34rem;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.58rem;
  padding: 0.72rem 0.8rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.top-card:hover {
  border-color: rgba(230, 192, 123, 0.45);
  background: var(--panel-elevated);
}

.top-card span:first-child {
  font-size: 0.885rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.top-card .topic-meta,
.topic-meta {
  font-size: 0.775rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.top-card[data-category="产品"] {
  border-color: rgba(192, 158, 255, 0.28);
}

.top-card[data-category="灵感"] {
  border-color: rgba(109, 226, 236, 0.24);
}

.top-card[data-category="福利"] {
  border-color: rgba(255, 143, 177, 0.34);
  background: linear-gradient(135deg, rgba(255, 143, 177, 0.08), var(--panel));
}
