:root {
  --bg-main: #f9f1e7;
  --bg-accent: #f6dfb8;
  --bg-card: rgba(255, 253, 248, 0.84);
  --line: rgba(112, 85, 61, 0.22);
  --text-main: #2f241c;
  --text-soft: #6e5a4b;
  --brand-hot: #c73e1d;
  --brand-calm: #0f766e;
  --shadow: 0 14px 34px rgba(86, 56, 22, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 200, 110, 0.35), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(70, 158, 144, 0.2), transparent 38%),
    linear-gradient(165deg, var(--bg-main), #fff7eb);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
}

.bg-shape-a {
  width: 340px;
  height: 340px;
  background: rgba(199, 62, 29, 0.12);
  top: -70px;
  left: -70px;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  background: rgba(15, 118, 110, 0.14);
  right: -100px;
  bottom: -90px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  margin: 32px auto 56px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px 28px;
  background: linear-gradient(110deg, rgba(255, 245, 226, 0.86), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin: 0;
  font-size: 0.92rem;
  color: var(--brand-calm);
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 6px 0 8px;
  font-family: "KaiTi", "STKaiti", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  line-height: 1.02;
  color: #4d1f15;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.hero-stats {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.stock-quote-panel {
  margin-top: 14px;
  border: 1px solid rgba(112, 85, 61, 0.22);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 249, 236, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 24px rgba(86, 56, 22, 0.08);
}

.stock-quote-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.stock-quote-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.stock-quote-name {
  display: inline-block;
  margin-top: 4px;
  font-size: 1rem;
  color: #4d1f15;
}

.stock-quote-update {
  color: var(--text-soft);
  font-size: 0.84rem;
  white-space: nowrap;
}

.stock-quote-main {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.stock-quote-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-quote-price {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.stock-quote-change {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.stock-quote-change.is-up {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}

.stock-quote-change.is-down {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.2);
}

.stock-quote-change.is-flat {
  color: var(--text-soft);
  background: rgba(112, 85, 61, 0.08);
  border-color: rgba(112, 85, 61, 0.16);
}

.stock-quote-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.stock-quote-footnote {
  margin: 10px 2px 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.stock-quote-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-quote-card {
  border: 1px solid rgba(112, 85, 61, 0.18);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.stock-quote-card-index {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.stock-quote-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stock-quote-card-title {
  display: block;
  font-size: 0.98rem;
}

.stock-quote-card-subtitle {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.stock-quote-card-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.stock-quote-card-tag-muted {
  color: #334155;
  background: rgba(51, 65, 85, 0.08);
}

.stock-quote-spark-wrap {
  margin-top: 10px;
}

.stock-quote-spark-label {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.stock-quote-sparkbar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(112, 85, 61, 0.12);
}

.stock-quote-sparkbar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(199, 62, 29, 0.9), rgba(15, 118, 110, 0.9));
}

.stock-quote-sparkbar.is-up span {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.stock-quote-sparkbar.is-down span {
  background: linear-gradient(90deg, #0f766e, #0ea5e9);
}

.stock-quote-sparkbar.is-flat span {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.auth-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-status-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-btn {
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn-ghost {
  border-color: rgba(112, 85, 61, 0.28);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.72);
}

.auth-modal {
  z-index: 40;
}

.auth-modal-panel {
  width: min(520px, 94vw);
}

.auth-form {
  margin-top: 8px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.calendar-filter {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(112, 85, 61, 0.2);
  border-radius: 12px;
  background: rgba(248, 241, 229, 0.72);
}

.calendar-filter-btn {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border-radius: 10px;
  padding: 7px 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.calendar-filter-btn.is-active {
  border-color: rgba(15, 118, 110, 0.52);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.08));
  color: #0f766e;
}

.calendar-birthday-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

.calendar-panel,
.upcoming-birthday-panel,
.entry-section,
.carpool-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  padding: 16px;
}

.birthday-calendar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-cell {
  border-radius: 10px;
  padding: 7px 6px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: rgba(245, 235, 220, 0.7);
}

.day-cell {
  min-height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(112, 85, 61, 0.2);
  background: rgba(255, 255, 255, 0.85);
  padding: 7px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.day-cell.is-empty {
  background: rgba(255, 255, 255, 0.42);
  border-style: dashed;
}

.day-cell.is-today {
  border-color: rgba(199, 62, 29, 0.52);
  box-shadow: inset 0 0 0 2px rgba(199, 62, 29, 0.13);
}

.day-cell.has-note {
  border-color: rgba(15, 118, 110, 0.56);
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.day-cell.has-event {
  border-right-width: 3px;
  border-right-color: rgba(199, 62, 29, 0.62);
}

.day-cell.has-holiday {
  border-top-width: 3px;
  border-top-color: rgba(220, 38, 38, 0.58);
}

.day-cell.has-workday {
  border-top-width: 3px;
  border-top-color: rgba(14, 116, 144, 0.52);
}

.day-number {
  font-weight: 700;
  font-size: 0.9rem;
}

.day-note {
  font-size: 0.78rem;
  color: #0f766e;
  line-height: 1.35;
}

.day-note-event {
  color: #b45309;
}

.day-note-holiday {
  color: #b91c1c;
}

.day-note-workday {
  color: #0e7490;
}

.upcoming-birthday-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.upcoming-birthday-item {
  border: 1px solid rgba(112, 85, 61, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  gap: 10px;
}

.upcoming-birthday-item strong {
  display: block;
}

.upcoming-birthday-main {
  min-width: 0;
}

.upcoming-birthday-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(112, 85, 61, 0.28);
  background: rgba(255, 255, 255, 0.82);
  flex: 0 0 42px;
}

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

.upcoming-birthday-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0f766e;
}

.upcoming-birthday-meta {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.entry-section {
  margin-top: 16px;
}

.entry-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.entry-card {
  border-radius: 14px;
  border: 1px solid rgba(112, 85, 61, 0.22);
  background: linear-gradient(135deg, rgba(255, 246, 229, 0.9), rgba(252, 255, 251, 0.92));
  padding: 12px;
  text-decoration: none;
  color: var(--text-main);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(73, 50, 30, 0.13);
}

.entry-title {
  font-weight: 700;
}

.entry-desc {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.carpool-section {
  margin-top: 16px;
}

.carpool-lists {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.card-head-row h3 {
  margin: 0;
}

.mini-open-btn {
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f766e;
  cursor: pointer;
  background: rgba(15, 118, 110, 0.08);
}

.mini-open-btn:hover {
  background: rgba(15, 118, 110, 0.14);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(38, 26, 16, 0.46);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-panel {
  width: min(640px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(53, 35, 21, 0.22);
  padding: 14px;
}

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

.modal-head h3 {
  margin: 0;
}

.modal-close-btn {
  border: 1px solid rgba(112, 85, 61, 0.24);
  border-radius: 999px;
  background: #fff;
  padding: 6px 11px;
  font: inherit;
  cursor: pointer;
}

.composer-tab-group {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.composer-tab-btn {
  border: 1px solid rgba(112, 85, 61, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.composer-tab-btn.is-active {
  border-color: rgba(15, 118, 110, 0.52);
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.composer-tab-panel {
  margin-top: 10px;
  display: none;
}

.composer-tab-panel.is-active {
  display: block;
}

.carpool-card,
.carpool-list-card {
  border: 1px solid rgba(112, 85, 61, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.carpool-card h3,
.carpool-list-card h3 {
  margin: 0;
}

.compact-composer {
  margin-top: 10px;
  padding: 0;
  border: 0;
}

.feed-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.feed-item {
  border: 1px solid rgba(112, 85, 61, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
}

.feed-title {
  margin: 0;
  font-size: 0.98rem;
}

.feed-meta {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.feed-item-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.signup-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.28);
}

.signup-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.signup-item {
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  padding-left: 8px;
  font-size: 0.9rem;
}

.signup-preview {
  margin: 8px 0 0;
  color: #0f766e;
  font-size: 0.86rem;
  font-weight: 600;
}

.carpool-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.carpool-event-head .feed-title {
  flex: 1;
  min-width: 0;
}

.event-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.event-signup-detail {
  margin-top: 8px;
  border: 1px dashed rgba(15, 118, 110, 0.36);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.7);
}

.event-signup-detail summary {
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.join-toggle-btn {
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f766e;
  cursor: pointer;
  background: rgba(15, 118, 110, 0.08);
  white-space: nowrap;
  flex: 0 0 auto;
}

.join-toggle-btn:hover {
  background: rgba(15, 118, 110, 0.14);
}

.danger-btn {
  border: 1px solid rgba(180, 35, 24, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #9b1c12;
  cursor: pointer;
  background: rgba(180, 35, 24, 0.08);
  white-space: nowrap;
}

.danger-btn:hover {
  background: rgba(180, 35, 24, 0.16);
}

.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.join-form {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.join-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.join-form input {
  width: 100%;
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 12px;
  padding: 9px 11px;
  font: inherit;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.82);
}

.join-form button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #0f766e, #0ea5a1);
  color: #fff;
}

.join-form[hidden] {
  display: none;
}

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

.join-cancel-btn {
  background: rgba(87, 67, 48, 0.16);
  color: var(--text-main);
}

.history-wrap {
  margin-top: 12px;
  border: 1px dashed rgba(112, 85, 61, 0.36);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.64);
}

.history-wrap summary {
  cursor: pointer;
  font-weight: 700;
}

.hxd-shortcuts {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.hxd-shortcuts-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.hxd-shortcuts-subtitle {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hxd-shortcuts-buttons {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hxd-shortcut-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  background: linear-gradient(90deg, #7c3aed, #0891b2);
}

.hxd-shortcut-btn:hover {
  filter: brightness(1.04);
}

.hxd-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hxd-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 16px;
}

.hxd-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.hxd-head p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hxd-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.hxd-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.hxd-form input {
  width: 100%;
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 12px;
  padding: 9px 11px;
  font: inherit;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
}

.hxd-form button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #0891b2);
}

.hxd-photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(112, 85, 61, 0.25);
}

.hxd-result {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  color: #4c1d95;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hxd-result.error {
  background: rgba(199, 62, 29, 0.12);
  color: #9a3412;
}

.hxd-result.ok {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.page-narrow {
  width: min(780px, 94vw);
}

.hxd-standalone-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hxd-back-link {
  margin-top: 14px;
}

.hxd-back-link a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.hxd-back-link a:hover {
  text-decoration: underline;
}

.hxd-query-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hxd-profiles {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.hxd-profile-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.hxd-profile-photo-wrap {
  width: 96px;
  height: 96px;
}

.hxd-profile-photo,
.hxd-profile-photo-empty {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(112, 85, 61, 0.2);
}

.hxd-profile-photo {
  object-fit: cover;
}

.hxd-profile-photo-empty {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.64);
}

.hxd-profile-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.hxd-profile-meta {
  margin: 2px 0;
  color: var(--text-main);
  font-size: 0.9rem;
}

.hxd-profile-meta-label {
  color: var(--text-soft);
}

.board-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#todayLogSection {
  grid-template-columns: 1fr;
}

.board {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  padding: 18px 18px 12px;
  border-bottom: 1px dashed var(--line);
}

.board-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

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

.board-header p {
  margin: 6px 0 8px;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.board-header strong {
  font-size: 0.9rem;
}

.daily-reset-hint {
  margin: 4px 0 8px;
  font-size: 0.86rem;
  color: #0e7490;
}

.board-roast .board-header strong {
  color: var(--brand-hot);
}

.board-post .board-header strong {
  color: var(--brand-calm);
}

.composer {
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
  border-bottom: 1px solid rgba(112, 85, 61, 0.12);
}

.composer[hidden] {
  display: none;
}

.composer label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.composer input,
.composer select,
.composer textarea,
.reply-editor input,
.reply-editor textarea {
  width: 100%;
  border: 1px solid rgba(112, 85, 61, 0.26);
  border-radius: 12px;
  padding: 9px 11px;
  font: inherit;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.82);
}

.composer textarea,
.reply-editor textarea {
  resize: vertical;
  min-height: 88px;
}

.composer button,
.reply-editor button,
.thread-actions button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.board-roast .composer button,
.board-roast .reply-editor button[type="submit"] {
  background: linear-gradient(90deg, #c73e1d, #dd6b20);
  color: #fff;
}

.board-post .composer button,
.board-post .reply-editor button[type="submit"] {
  background: linear-gradient(90deg, #0f766e, #0ea5a1);
  color: #fff;
}

.thread-list {
  padding: 8px 12px 14px;
}

.empty-card {
  border: 1px dashed rgba(112, 85, 61, 0.36);
  border-radius: 14px;
  padding: 16px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.56);
}

.thread-node {
  border: 1px solid rgba(112, 85, 61, 0.22);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.thread-node.is-reply {
  margin-left: calc(var(--depth) * 16px);
  border-left-width: 3px;
}

.board-roast .thread-node.is-reply {
  border-left-color: rgba(199, 62, 29, 0.65);
}

.board-post .thread-node.is-reply {
  border-left-color: rgba(15, 118, 110, 0.64);
}

.thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.thread-title {
  margin: 8px 0 4px;
  font-size: 1.04rem;
}

.thread-content {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

.thread-attachments {
  margin-top: 8px;
}

.thread-attachments-title {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.thread-attachments-list {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-attachment-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.thread-attachment-link:hover {
  background: rgba(15, 118, 110, 0.14);
}

.thread-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.thread-actions button {
  background: rgba(87, 67, 48, 0.1);
  color: var(--text-main);
}

.thread-actions .danger-btn {
  background: rgba(180, 35, 24, 0.08);
  color: #9b1c12;
  border: 1px solid rgba(180, 35, 24, 0.34);
}

.reply-editor {
  margin-top: 10px;
  border: 1px dashed rgba(112, 85, 61, 0.38);
  border-radius: 12px;
  padding: 9px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.reply-editor[hidden] {
  display: none;
}

.reply-actions {
  display: flex;
  gap: 8px;
}

.reply-editor .btn-cancel {
  background: rgba(87, 67, 48, 0.18);
  color: var(--text-main);
}

.children {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .calendar-birthday-layout,
  .carpool-lists {
    grid-template-columns: 1fr;
  }

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

  .hxd-shortcuts-buttons {
    flex-direction: column;
  }

  .hxd-shortcut-btn {
    text-align: center;
  }

  .hxd-grid {
    grid-template-columns: 1fr;
  }

  .hxd-query-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .thread-node.is-reply {
    margin-left: calc(var(--depth) * 12px);
  }
}

@media (max-width: 560px) {
  .stock-quote-head,
  .stock-quote-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-quote-grid {
    grid-template-columns: 1fr;
  }

  .stock-quote-meta {
    text-align: left;
  }

  .stock-quote-footnote {
    margin-top: 8px;
  }

  .card-head-row,
  .board-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .birthday-calendar {
    gap: 6px;
  }

  .day-cell {
    min-height: 66px;
    padding: 6px;
  }
}
