:root {
  --board-surface: rgba(25, 25, 29, 0.92);
  --board-border: rgba(255, 255, 255, 0.08);
  --board-muted: rgba(255, 255, 255, 0.58);
  --board-accent: #8ea4ff;
}

.board-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(85, 57, 114, 0.22), transparent 34%),
    radial-gradient(circle at 86% 3%, rgba(42, 95, 75, 0.18), transparent 30%),
    #101011;
  color: #f5f5f5;
}

.board-header {
  border-bottom: 1px solid var(--board-border);
  background: rgba(14, 14, 16, 0.84);
  backdrop-filter: blur(18px);
}

.board-logo { color: white; text-decoration: none; }
.account-area { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; color: rgba(255,255,255,0.78); }

.board-main { width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: calc(var(--header-height) + 48px) 0 90px; }
.board-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 0 4px 40px; }
.board-hero h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1; }
.board-hero p { margin: 0; color: var(--board-muted); font-size: 1.05rem; }
.board-kicker { color: var(--board-accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }

.primary-button, .ghost-button, .text-button {
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary-button { background: linear-gradient(135deg, #657ee6, #7959ba); box-shadow: 0 10px 25px rgba(75, 83, 168, 0.25); }
.ghost-button { background: rgba(255,255,255,0.07); border: 1px solid var(--board-border); }
.text-button { padding: 7px 8px; color: var(--board-muted); background: transparent; font-size: 0.82rem; }
.text-button.danger { color: #df8d95; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.composer, .board-list-section {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--board-border);
  border-radius: 20px;
  background: var(--board-surface);
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
}
.composer[hidden] { display: none; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title-row h2 { margin: 5px 0 0; font-size: 1.3rem; }
.writer-name { color: var(--board-muted); font-size: 0.85rem; }
.composer form { display: grid; gap: 16px; }
.composer label { display: grid; gap: 8px; color: rgba(255,255,255,0.72); font-size: 0.88rem; font-weight: 600; }
.composer input, .composer textarea {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 13px 14px; background: rgba(0,0,0,0.25); color: white; font: inherit; outline: none;
}
.composer input:focus, .composer textarea:focus { border-color: rgba(142,164,255,0.7); box-shadow: 0 0 0 3px rgba(142,164,255,0.1); }
.composer textarea { resize: vertical; line-height: 1.65; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.form-message { color: #df9a9a; font-size: 0.86rem; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: flex-start; }
.check-label input { width: auto; }

.board-list { display: grid; gap: 12px; }
.board-card { padding: 22px; border: 1px solid var(--board-border); border-radius: 15px; background: rgba(255,255,255,0.025); }
.board-card h3 { margin: 18px 0 9px; font-size: 1.15rem; }
.post-head, .notice-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.post-author { display: flex; align-items: center; gap: 11px; }
.post-author img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; background: #26262a; }
.post-author strong, .post-author time { display: block; }
.post-author time, .notice-meta { margin-top: 3px; color: var(--board-muted); font-size: 0.78rem; }
.post-content { margin: 0; color: rgba(255,255,255,0.76); line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-card.pinned { border-color: rgba(142,164,255,0.32); background: linear-gradient(135deg, rgba(85,104,185,0.12), rgba(255,255,255,0.025)); }
.board-empty { padding: 48px 20px; color: var(--board-muted); text-align: center; }
.auth-callback { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-callback-card { width: min(520px, 100%); padding: 42px; border: 1px solid var(--board-border); border-radius: 22px; background: var(--board-surface); text-align: center; }
.auth-callback-card h1 { margin: 12px 0; font-size: 1.55rem; }
.auth-callback-card p { margin: 0; color: var(--board-muted); }

@media (max-width: 760px) {
  .account-name { display: none; }
  .board-main { padding-top: calc(var(--header-height) + 34px); padding-bottom: 80px; }
  .board-hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { align-items: flex-start; }
  .board-hero h1 { font-size: 2.25rem; }
  .composer, .board-list-section { padding: 18px; border-radius: 16px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .primary-button { width: 100%; }
}
