:root {
  --bg: #eaf4ff;
  --bg-deep: #d4e5ff;
  --panel: rgba(249, 252, 255, 0.84);
  --panel-strong: rgba(244, 249, 255, 0.98);
  --line: rgba(33, 86, 164, 0.14);
  --text: #163558;
  --muted: #5f7da3;
  --accent: #2d6cdf;
  --accent-dark: #15418b;
  --accent-soft: #d8e8ff;
  --accent-strong: #0f5bd7;
  --week: #4f8cff;
  --month: #2bb1d6;
  --year: #5a6df2;
  --shadow: 0 18px 42px rgba(25, 69, 134, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 32%),
    radial-gradient(circle at right 15% top 10%, rgba(45, 108, 223, 0.16), transparent 22%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

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

button {
  cursor: pointer;
  border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  touch-action: manipulation;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 64px;
}

.mobile-quickbar {
  display: none;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(245, 250, 255, 0.96), rgba(224, 239, 255, 0.76)),
    rgba(249, 252, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-copy-shell {
  min-width: 0;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-side {
  display: grid;
  gap: 14px;
  justify-items: end;
  min-width: 320px;
}

.hero-calendar-bar {
  width: min(100%, 420px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(33, 86, 164, 0.1);
  background: rgba(255, 255, 255, 0.64);
  text-align: right;
}

.hero-calendar-solar,
.hero-calendar-lunar,
.hero-calendar-festival {
  margin: 0;
}

.hero-calendar-solar {
  color: var(--accent-dark);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-calendar-lunar {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-calendar-plain,
.hero-ganzhi-suffix,
.hero-calendar-dot {
  color: var(--text);
}

.hero-calendar-dot {
  opacity: 0.58;
}

.hero-ganzhi-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hero-ganzhi-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  font-size: 0.94em;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.hero-ganzhi-char.is-benefit {
  border-radius: 999px;
  border: 1px solid currentColor;
}

.hero-ganzhi-char.is-caution {
  border-radius: 4px;
  border: 1.5px solid currentColor;
  min-width: 1.42em;
  height: 1.42em;
}

.hero-ganzhi-char.is-avoid {
  min-width: auto;
  height: auto;
}

.hero-ganzhi-char.tone-gold {
  color: #c58a00;
  background: rgba(255, 214, 72, 0.14);
}

.hero-ganzhi-char.tone-blue {
  color: #1f64c8;
  background: rgba(70, 130, 255, 0.12);
}

.hero-ganzhi-char.tone-green {
  color: #23834d;
  background: rgba(62, 176, 97, 0.04);
}

.hero-ganzhi-char.tone-brown {
  color: #8b5a2b;
  background: rgba(139, 90, 43, 0.04);
}

.hero-ganzhi-char.tone-red {
  color: #c33d32;
  background: transparent;
}

.hero-calendar-festival {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.app-title-input {
  max-width: 560px;
  padding: 8px 12px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.app-title-input:focus {
  outline: none;
  border-color: rgba(45, 108, 223, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

h2 {
  font-size: 1.7rem;
  line-height: 1.1;
}

h3 {
  font-size: 1.16rem;
}

h4 {
  font-size: 0.96rem;
}

.hero-copy,
.micro-copy,
.dimension-header p,
.taxonomy-copy,
.empty-state,
.board-hint,
.group-copy {
  color: var(--muted);
}

.hero-title-text {
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-copy,
.hero-copy-text {
  max-width: 44rem;
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.72;
}

.hero-copy-editor {
  display: grid;
  gap: 10px;
}

.hero-copy-input {
  display: block;
  width: min(100%, 44rem);
  min-height: 72px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  resize: vertical;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-copy-input:focus {
  outline: none;
  border-color: rgba(45, 108, 223, 0.34);
  background: rgba(255, 255, 255, 0.92);
}

.hero-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.hero-mini-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.1;
  box-shadow: none;
}

.hero-mini-button:hover {
  color: var(--accent-dark);
  background: transparent;
}

.backup-reminder {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.backup-reminder strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.backup-reminder p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.92rem;
}

.backup-email-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

#backup-email-input {
  flex: 1 1 240px;
  min-width: 0;
}

.backup-email-status {
  margin-top: 8px;
}

.hero-actions,
.storage-actions,
.date-tools,
.tag-editor {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.date-tools {
  justify-content: flex-start;
  align-items: center;
}

.focus-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#entry-date {
  width: auto;
  min-width: 168px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.tag-chip,
.mini-chip,
.add-tag-button {
  border-radius: 999px;
  padding: 11px 16px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f6fbff;
  box-shadow: 0 12px 28px rgba(45, 108, 223, 0.28);
}

.secondary-button,
.ghost-button,
.danger-button,
.board-cell,
.add-tag-button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
}

.danger-button {
  color: #9a3556;
}

.file-trigger {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.panel-compact .storage-actions {
  gap: 10px;
}

.panel-compact .secondary-button,
.panel-compact .danger-button,
.panel-compact .file-trigger {
  padding: 9px 14px;
  font-size: 0.92rem;
}

.cloud-sync-panel {
  display: grid;
  gap: 12px;
}

.cloud-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cloud-field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cloud-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cloud-sync-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(33, 86, 164, 0.08);
  color: var(--accent-dark);
  line-height: 1.55;
}

.cloud-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.cloud-meta-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.cloud-meta-item dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.cloud-meta-item dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 24px;
}

.left-rail,
.main-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.panel-compact {
  padding: 20px;
}

.panel-compact .section-heading {
  margin-bottom: 12px;
}

.panel-compact .section-label {
  margin-bottom: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.panel-compact .rail-focus-label {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.panel-compact h2 {
  font-size: 1.45rem;
}

.panel-compact .micro-copy {
  font-size: 0.88rem;
  line-height: 1.55;
}

.compact-heading {
  margin-bottom: 10px;
}

.panel-soft {
  background:
    radial-gradient(circle at top right, rgba(45, 108, 223, 0.12), transparent 42%),
    var(--panel-strong);
}

.panel-feature {
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(249, 252, 255, 0.84));
}

.panel-board {
  background:
    radial-gradient(circle at top right, rgba(45, 108, 223, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(248, 252, 255, 0.88));
  border-color: rgba(45, 108, 223, 0.12);
}

.location-stats-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(33, 86, 164, 0.08);
}

.location-stats-list {
  display: grid;
  gap: 8px;
}

.location-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.location-stat-row strong {
  color: var(--accent-dark);
}

.annual-screen {
  margin-top: 8px;
}

.annual-screen-shell {
  padding: 24px;
}

.annual-screen-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.excerpt-groups {
  display: grid;
  gap: 10px;
}

.excerpt-group {
  padding: 10px 0 0;
  border-top: 1px solid rgba(33, 86, 164, 0.08);
}

.excerpt-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1px;
  padding: 0 2px;
}

.excerpt-group-head h3 {
  margin: 4px 0 0;
}

.excerpt-group-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.excerpt-group-list {
  display: grid;
  gap: 0;
}

.excerpt-item {
  padding: 4px 2px;
  cursor: pointer;
}

.excerpt-item-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.excerpt-item-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.excerpt-pin-button {
  border: 1px solid rgba(33, 86, 164, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
}

.excerpt-pin-button.is-active {
  background: rgba(45, 108, 223, 0.1);
  border-color: rgba(45, 108, 223, 0.18);
  color: var(--accent-dark);
}

.excerpt-item-date {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.excerpt-item-body {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.48;
}

.excerpt-item:hover .excerpt-item-body {
  color: var(--accent-dark);
}

.excerpt-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 2px 2px;
}

.relationship-screen {
  margin-top: 8px;
}

.relationship-screen-shell {
  padding: 24px;
  overflow: hidden;
}

.relationship-screen-head,
.relationship-toolbar,
.relationship-form-actions,
.relationship-log-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.relationship-toolbar {
  margin: 20px 0 18px;
  align-items: center;
}

.relationship-toolbar > input {
  max-width: 360px;
}

.relationship-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.relationship-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.relationship-search-row > input {
  flex: 1 1 auto;
  min-width: 0;
}

.relationship-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.relationship-filter-row {
  display: grid;
  gap: 10px;
}

.relationship-filter-group {
  display: grid;
  gap: 6px;
}

.relationship-filter-group > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.relationship-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.relationship-filter-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.relationship-filter-chip.is-active {
  background: rgba(45, 108, 223, 0.12);
  border-color: rgba(45, 108, 223, 0.24);
  color: var(--accent-dark);
}

.relationship-manager-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.relationship-table-panel,
.relationship-editor-panel {
  padding: 0;
  width: 100%;
  min-width: 0;
}

.relationship-editor-panel {
  order: 1;
}

.relationship-table-panel {
  order: 2;
}

.relationship-table-wrapper {
  border-radius: 22px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.relationship-editor-panel {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.relationship-editor-head {
  margin-bottom: 16px;
}

.relationship-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.form-field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.form-field-head > span {
  min-width: 0;
}

.relationship-option-adder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  max-width: 100%;
}

.relationship-option-input {
  width: 46px;
  min-width: 46px;
  padding: 4px 6px;
  border-radius: 9px;
  font-size: 0.76rem;
  line-height: 1.1;
}

.relationship-option-add {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.1;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-group-inline {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

#relationship-type.checkbox-group-inline {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

#relationship-type .checkbox-chip {
  padding: 7px 12px;
  min-height: auto;
}

#relationship-type .checkbox-chip span {
  white-space: nowrap;
  font-size: 0.88rem;
  line-height: 1.2;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(33, 86, 164, 0.12);
  color: var(--accent-dark);
  cursor: pointer;
}

.checkbox-chip input {
  width: auto;
  margin: 0;
}

.checkbox-chip span {
  color: inherit;
  font-size: 0.9rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.relationship-form-actions {
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.relationship-log-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(33, 86, 164, 0.08);
}

.relationship-log {
  display: grid;
  gap: 10px;
  min-height: 460px;
  align-content: start;
}

.relationship-log-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(244, 249, 255, 0.9);
  border: 1px solid rgba(45, 108, 223, 0.08);
}

.relationship-log-item p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.relationship-log-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.relationship-overview-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.relationship-overview-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.relationship-overview-card p,
.relationship-overview-card span {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.relationship-overview-person strong {
  margin-top: 0;
  font-size: 1.02rem;
}

.relationship-table .secondary-button {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.relationship-table {
  min-width: 1680px;
  table-layout: auto;
  font-size: 0.84rem;
}

.relationship-table th,
.relationship-table td {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.5;
  padding: 9px 10px;
}

.relationship-table th:nth-child(1),
.relationship-table td:nth-child(1) {
  min-width: 96px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 1px 0 0 rgba(33, 86, 164, 0.08);
}

.relationship-table thead th:nth-child(1) {
  z-index: 4;
  background: rgba(237, 245, 255, 0.98);
}

.relationship-table th:nth-child(2),
.relationship-table td:nth-child(2),
.relationship-table th:nth-child(6),
.relationship-table td:nth-child(6),
.relationship-table th:nth-child(7),
.relationship-table td:nth-child(7),
.relationship-table th:nth-child(8),
.relationship-table td:nth-child(8),
.relationship-table th:nth-child(9),
.relationship-table td:nth-child(9),
.relationship-table th:nth-child(13),
.relationship-table td:nth-child(13),
.relationship-table th:nth-child(14),
.relationship-table td:nth-child(14) {
  min-width: 110px;
}

.relationship-table th:nth-child(3),
.relationship-table td:nth-child(3),
.relationship-table th:nth-child(4),
.relationship-table td:nth-child(4),
.relationship-table th:nth-child(5),
.relationship-table td:nth-child(5),
.relationship-table th:nth-child(10),
.relationship-table td:nth-child(10),
.relationship-table th:nth-child(11),
.relationship-table td:nth-child(11),
.relationship-table th:nth-child(12),
.relationship-table td:nth-child(12) {
  min-width: 150px;
}

.relationship-table th:nth-child(15),
.relationship-table td:nth-child(15) {
  min-width: 84px;
}

.relationship-name-button {
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  text-align: left;
}

.relationship-name-button:hover {
  color: var(--accent);
  transform: none;
}

.relationship-table tbody tr.active-row td {
  background: rgba(234, 244, 255, 0.86);
}

.relationship-table tbody tr.active-row td:first-child {
  background: rgba(234, 244, 255, 0.98);
}

.section-heading {
  margin-bottom: 20px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.timeline-search-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(320px, 100%);
  margin-left: auto;
}

.timeline-search-tools input {
  min-width: 0;
}

.panel-compact .timeline-search-tools {
  gap: 8px;
  width: min(280px, 100%);
}

.panel-compact .timeline-search-tools input {
  padding: 9px 12px;
  font-size: 0.92rem;
}

.stats-grid,
.dimension-grid,
.review-grid,
.goal-grid {
  display: grid;
  gap: 12px;
}

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

.goal-grid,
.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.goal-card,
.review-card,
.dimension-card,
.taxonomy-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  font-size: 2rem;
}

.stat-card span:last-child {
  font-size: 0.92rem;
  color: var(--muted);
}

.relationship-priority-block {
  margin-top: 2px;
  display: grid;
  gap: 6px;
}

.relationship-priority-list {
  display: grid;
  gap: 10px;
}

.relationship-priority-list.is-grouped {
  gap: 6px;
}

.relationship-priority-item {
  display: grid;
  gap: 2px;
  padding: 0;
}

.relationship-priority-item.is-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.relationship-priority-item strong {
  color: var(--text);
  font-size: 0.86rem;
  flex-shrink: 0;
}

.relationship-priority-item span,
.relationship-priority-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.relationship-priority-link {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.relationship-priority-link:hover {
  color: var(--accent);
}

.pinned-principle-list {
  display: grid;
  gap: 8px;
}

.pinned-principle-item {
  padding: 4px 0;
  cursor: pointer;
}

.pinned-principle-body {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pinned-principle-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.stat-card-link {
  cursor: pointer;
}

.stat-card-link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(33, 86, 164, 0.14);
}

.goal-card h3,
.review-card h3 {
  margin-bottom: 10px;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

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

.review-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.review-nav-button {
  min-width: auto;
  padding: 1px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.review-nav-button:hover {
  color: var(--accent-dark);
  background: rgba(45, 108, 223, 0.08);
  border-radius: 6px;
}

.scope-item-list,
.review-goal-list {
  display: grid;
  gap: 6px;
}

.scope-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.scope-item-input {
  min-height: 52px;
  resize: vertical;
  padding: 8px 4px 8px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(33, 86, 164, 0.12);
  background: transparent;
  line-height: 1.4;
  font-size: 0.92rem;
}

.scope-item-actions {
  display: flex;
  flex-direction: row;
  gap: 1px;
  padding-top: 4px;
}

.scope-icon-button {
  min-width: auto;
  padding: 1px 3px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.74rem;
  line-height: 1.2;
}

.scope-icon-button.danger {
  color: #9a3556;
}

.scope-icon-button:not(:disabled):hover {
  background: rgba(45, 108, 223, 0.08);
}

.scope-icon-button:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.scope-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.goal-add-row .save-scope-button {
  margin-top: 0;
  align-self: center;
}

.scope-add-input {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.scope-empty {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(45, 108, 223, 0.16);
  background: rgba(248, 251, 255, 0.88);
  color: var(--muted);
  line-height: 1.55;
}

.review-goal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(45, 108, 223, 0.08);
  background: rgba(248, 251, 255, 0.9);
}

.review-goal-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.review-status-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
}

.review-status-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.review-status-chip.active {
  background: rgba(45, 108, 223, 0.12);
  border-color: rgba(45, 108, 223, 0.28);
  color: #15418b;
}

.review-status-single {
  min-width: 48px;
  text-align: center;
}

.review-goal-item[data-status="推进"] .review-status-chip.active {
  background: rgba(45, 108, 223, 0.12);
  border-color: rgba(45, 108, 223, 0.28);
  color: #15418b;
}

.review-goal-item[data-status="完成"] .review-status-chip.active {
  background: rgba(33, 163, 102, 0.12);
  border-color: rgba(33, 163, 102, 0.24);
  color: #17734a;
}

.review-goal-item[data-status="放弃"] .review-status-chip.active {
  background: rgba(154, 53, 86, 0.1);
  border-color: rgba(154, 53, 86, 0.2);
  color: #8a304d;
}

#week-review-note,
#month-review-note,
#year-review-note {
  font-size: 0.9rem;
  line-height: 1.6;
}

.save-scope-button {
  margin-top: 10px;
}

.scope-main-button {
  padding: 7px 12px;
  font-size: 0.84rem;
}

.goal-main-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.goal-main-button:hover {
  color: var(--accent-dark);
}

.daily-guide-content {
  min-height: 140px;
}

.daily-guide-card {
  display: grid;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(33, 86, 164, 0.1);
}

.daily-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-guide-ganzhi {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  color: var(--accent-dark);
  font-weight: 700;
}

.daily-guide-month-ganzhi {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.daily-guide-year-head {
  color: var(--accent-strong);
}

.daily-guide-year-number {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.daily-guide-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 0.9rem;
  line-height: 1;
}

.daily-guide-nav:hover {
  color: var(--accent-dark);
}

.daily-guide-summary {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.daily-guide-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.daily-guide-year-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(45, 108, 223, 0.08);
  color: var(--accent-dark);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
}

.daily-guide-detail {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.daily-guide-emotion {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.daily-guide-emotion strong {
  color: var(--accent-dark);
}

.daily-guide-actions {
  display: grid;
  gap: 10px;
}

.daily-guide-action-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.daily-guide-action-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.1);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.daily-guide-action-label.is-avoid {
  background: rgba(195, 61, 50, 0.1);
  color: #a1352c;
}

.daily-guide-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.daily-guide-action-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.08);
  color: var(--accent-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.daily-guide-action-chip.is-avoid {
  background: rgba(195, 61, 50, 0.08);
  color: #a1352c;
}

.yearly-month-overview {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.yearly-month-list {
  display: grid;
  gap: 10px;
}

.yearly-month-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.yearly-month-title {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.yearly-month-text {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.7;
}

.reminder-list {
  display: grid;
  gap: 10px;
  min-height: 140px;
}

.reminder-section {
  display: grid;
  gap: 10px;
}

.reminder-processed-group {
  display: grid;
  gap: 10px;
}

.reminder-processed-body {
  display: grid;
  gap: 10px;
}

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

.reminder-section-title {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-dark);
}

.reminder-section-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.reminder-section-list {
  display: grid;
  gap: 10px;
}

.reminder-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reminder-pager-button {
  min-width: 0;
  padding: 5px 10px;
  font-size: 0.76rem;
}

.reminder-pager-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.reminder-pager-label {
  min-width: 52px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.investment-rail-block + .investment-rail-block {
  margin-top: 14px;
}

.investment-rail-title {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.reminder-item {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.reminder-item.is-due {
  border-color: rgba(244, 63, 94, 0.18);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.96), rgba(255, 255, 255, 0.92));
}

.reminder-item.is-completed {
  border-color: rgba(107, 114, 128, 0.12);
  background: rgba(243, 244, 246, 0.92);
  box-shadow: none;
}

.reminder-item.is-undone {
  border-color: rgba(185, 74, 72, 0.14);
  background: rgba(255, 247, 247, 0.92);
}

.investment-item.is-accurate {
  border-color: rgba(185, 74, 72, 0.16);
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.96), rgba(255, 255, 255, 0.92));
}

.investment-item.is-inaccurate {
  border-color: rgba(33, 163, 102, 0.18);
  background: linear-gradient(180deg, rgba(241, 252, 247, 0.96), rgba(255, 255, 255, 0.92));
}

.reminder-item-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.reminder-date-badge {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(45, 108, 223, 0.08);
  border: 1px solid rgba(45, 108, 223, 0.12);
  text-align: center;
}

.reminder-date-badge.is-editable {
  cursor: pointer;
  border-style: dashed;
}

.reminder-date-badge.is-editable:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(45, 108, 223, 0.36);
}

.reminder-item.is-completed .reminder-date-badge {
  background: rgba(229, 231, 235, 0.88);
  border-color: rgba(156, 163, 175, 0.2);
}

.reminder-item.is-due .reminder-date-badge {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.18);
}

.reminder-date-year {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.reminder-date-main {
  color: var(--accent-dark);
  font-size: 0.95rem;
  line-height: 1.1;
}

.reminder-item.is-completed .reminder-date-main {
  color: #6b7280;
}

.reminder-item.is-due .reminder-date-year,
.reminder-item.is-due .reminder-date-main {
  color: #b42318;
}

.reminder-item-copy {
  min-width: 0;
}

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

.reminder-item-title {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.96rem;
}

.reminder-item.is-completed .reminder-item-title,
.reminder-item.is-completed .reminder-item-meta {
  color: #6b7280;
}

.reminder-item-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.item-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.item-meta-row .reminder-item-meta {
  margin: 0;
}

.reminder-status-chip {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(33, 86, 164, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 0.8rem;
  cursor: pointer;
}

.reminder-status-chip.is-due {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.18);
  color: #b42318;
}

.reminder-status-chip.is-completed {
  background: rgba(229, 231, 235, 0.92);
  border-color: rgba(156, 163, 175, 0.2);
  color: #6b7280;
}

.reminder-status-chip.is-undone {
  background: rgba(229, 231, 235, 0.92);
  border-color: rgba(156, 163, 175, 0.2);
  color: #6b7280;
}

.reminder-status-chip.is-overdue {
  background: rgba(229, 231, 235, 0.92);
  border-color: rgba(156, 163, 175, 0.2);
  color: #6b7280;
}

.investment-verdict-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.investment-verdict-chip.is-accurate {
  background: rgba(185, 74, 72, 0.1);
  border-color: rgba(185, 74, 72, 0.2);
  color: #9b302d;
}

.investment-verdict-chip.is-inaccurate {
  background: rgba(33, 163, 102, 0.12);
  border-color: rgba(33, 163, 102, 0.24);
  color: #17734a;
}

.item-note-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  cursor: pointer;
}

.item-note-trigger:hover {
  color: var(--accent-dark);
}

.item-note-text {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reminder-source-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.reminder-source-link:hover {
  color: var(--accent-dark);
}

.reminder-item.is-completed .reminder-source-link:hover {
  color: #4b5563;
}

.reminder-action-button {
  padding: 7px 12px;
  font-size: 0.84rem;
}

.reminder-empty {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(33, 86, 164, 0.14);
  background: rgba(248, 251, 255, 0.88);
  color: var(--muted);
  line-height: 1.6;
}

.previous-day-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.9), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(45, 108, 223, 0.1);
}

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

.previous-day-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.previous-day-content {
  display: grid;
  gap: 12px;
}

.previous-day-focus {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(45, 108, 223, 0.08);
  color: var(--text);
  line-height: 1.6;
}

.previous-day-detail-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.previous-day-line {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.previous-day-line + .previous-day-line {
  margin-top: 8px;
}

.previous-day-rich {
  color: var(--text);
}

.previous-day-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(45, 108, 223, 0.14);
}

.goal-year,
.review-year {
  border-color: rgba(90, 109, 242, 0.18);
  box-shadow: inset 0 0 0 1px rgba(90, 109, 242, 0.06);
}

.goal-month,
.review-month {
  border-color: rgba(43, 177, 214, 0.18);
  box-shadow: inset 0 0 0 1px rgba(43, 177, 214, 0.06);
}

.goal-week,
.review-week {
  border-color: rgba(79, 140, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.06);
}

.goal-year h3,
.review-year h3 {
  color: var(--year);
}

.goal-month h3,
.review-month h3 {
  color: var(--month);
}

.goal-week h3,
.review-week h3 {
  color: var(--week);
}

.form-block {
  margin-bottom: 18px;
}

.form-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.form-block label {
  display: block;
  margin-bottom: 0;
  color: var(--muted);
}

.focus-save-button {
  flex-shrink: 0;
}

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

.dimension-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dimension-header p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.dimension-card h3 {
  color: var(--accent-dark);
}

.dimension-tone-highlights h3 {
  color: #2b58c7;
}

.dimension-tone-career h3 {
  color: #1877a0;
}

.dimension-tone-wealth h3 {
  color: #246f8f;
}

.dimension-tone-growth h3 {
  color: #4b67d6;
}

.dimension-tone-mindset h3 {
  color: #5a55c7;
}

.dimension-tone-expression h3 {
  color: #1e73c9;
}

.dimension-tone-training h3 {
  color: #0084b8;
}

.dimension-tone-body h3 {
  color: #3480a6;
}

.dimension-tone-beauty h3 {
  color: #4e6ccf;
}

.dimension-tone-social h3 {
  color: #2c7fad;
}

.dimension-tone-emotion h3 {
  color: #5f66d1;
}

.dimension-tone-experience h3 {
  color: #1f74b6;
}

.dimension-tone-mood h3 {
  color: #4d61c1;
}

.dimension-tone-notes h3 {
  color: #4d83aa;
}

.dimension-count {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.1);
  color: var(--accent-dark);
  font-size: 0.8rem;
}

.grouped-tags,
.preview-tags,
.timeline-tags,
.taxonomy-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-group,
.taxonomy-group-block {
  margin-bottom: 8px;
}

.tag-group:last-child,
.taxonomy-group-block:last-child {
  margin-bottom: 0;
}

.grouped-tags {
  margin-bottom: 4px;
}

.taxonomy-chip-wrap {
  margin-bottom: 4px;
}

.tag-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.group-title {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.85rem;
}

.tag-group-add {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tag-group-add:hover {
  color: var(--accent);
}

.group-copy {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.tag-chip,
.mini-chip {
  background: rgba(216, 232, 255, 0.68);
  color: var(--accent-dark);
  border: 1px solid rgba(45, 108, 223, 0.14);
}

.tag-chip {
  padding: 4px 8px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.tag-chip.active {
  background: linear-gradient(135deg, var(--accent) 0%, #4d8bff 100%);
  color: #f7fbff;
}

.editor-shell {
  position: relative;
  margin-top: 8px;
}

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

.dimension-save-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.dimension-save-button:hover {
  color: var(--accent-dark);
}

.editor-highlight,
.editor-input {
  width: 100%;
  min-height: 136px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto;
}

.editor-highlight {
  margin: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  pointer-events: none;
  word-break: break-word;
}

.editor-input {
  position: absolute;
  inset: 0;
  resize: vertical;
  background: transparent;
  color: transparent;
  caret-color: #111827;
}

.focus-editor-shell {
  margin-top: 0;
}

.focus-editor-highlight,
.focus-editor-input {
  min-height: 64px;
  line-height: 1.6;
}

.editor-input::placeholder {
  color: var(--muted);
}

.editor-input::selection {
  background: rgba(45, 108, 223, 0.18);
}

.editor-tag {
  color: #15418b;
  font-weight: 600;
}

.editor-reminder {
  color: #d9485f;
  font-weight: 600;
}

.editor-mention {
  color: #b8860b;
}

.editor-location {
  color: #2f8f4e;
}

.editor-text {
  color: #111827;
}

.mini-chip {
  padding: 7px 10px;
  font-size: 0.85rem;
}

.preview-tags {
  margin-bottom: 10px;
}

.taxonomy-card + .taxonomy-card {
  margin-top: 16px;
}

.taxonomy-copy {
  margin: 6px 0 12px;
  font-size: 0.93rem;
  line-height: 1.6;
}

.tag-editor input {
  flex: 1 1 180px;
}

.add-tag-button {
  padding-inline: 14px;
}

.board-wrapper {
  overflow-x: auto;
  min-height: 260px;
  border-radius: 22px;
  border: 1px solid rgba(33, 86, 164, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.board-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  border-bottom: 1px solid rgba(33, 86, 164, 0.08);
  border-right: 1px solid rgba(33, 86, 164, 0.08);
  vertical-align: top;
}

.board-table th {
  padding: 12px;
  min-width: 128px;
  background: rgba(237, 245, 255, 0.94);
  text-align: left;
}

.board-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.board-table thead th:first-child,
.board-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  background: rgba(237, 245, 255, 0.98);
  z-index: 3;
  box-shadow: 1px 0 0 rgba(33, 86, 164, 0.08);
}

.board-table thead th:first-child {
  z-index: 4;
}

.board-table thead th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.annual-date-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.annual-date-head strong {
  font-size: 0.98rem;
  color: var(--accent-dark);
}

.annual-date-head span {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.annual-date-festival {
  color: #2d6cdf;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
}

.annual-month-heading {
  text-align: center !important;
  color: var(--accent-dark);
}

.board-table td {
  padding: 0;
  min-width: 132px;
}

.board-grid-cell {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.62);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.board-grid-cell:hover {
  background: rgba(246, 250, 255, 0.98);
}

.board-cell-content {
  min-height: 108px;
  padding: 14px 15px;
  text-align: left;
  white-space: normal;
}

.annual-board-wrapper {
  min-height: 360px;
}

.annual-fixed-block {
  margin-bottom: 12px;
  border: 1px solid rgba(33, 86, 164, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.annual-fixed-block-bottom {
  margin-top: 12px;
  margin-bottom: 0;
}

.annual-fixed-head {
  padding: 10px 14px;
  background: rgba(237, 245, 255, 0.94);
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(33, 86, 164, 0.08);
}

.annual-fixed-body {
  padding: 14px 16px;
  line-height: 1.7;
  color: var(--text);
}

.annual-board-table {
  min-width: 5200px;
}

.annual-board-table thead tr:first-child th:first-child,
.annual-board-table thead tr:nth-child(2) th:first-child {
  z-index: 5;
}

.annual-board-cell {
  min-width: 156px;
}

.annual-board-cell .board-cell-content {
  min-height: 92px;
  padding: 16px 14px;
}

.board-grid-cell.filled {
  background: linear-gradient(180deg, rgba(216, 232, 255, 0.52), rgba(255, 255, 255, 0.84));
}

.board-grid-cell.focused {
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.94), rgba(255, 255, 255, 0.78));
}

.board-body {
  color: var(--text);
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  font-size: 0.92rem;
}

.board-placeholder {
  color: var(--muted);
}

.entry-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.board-tooltip {
  position: fixed;
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(33, 86, 164, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(18, 48, 94, 0.16);
  pointer-events: none;
}

.board-tooltip.hidden {
  display: none;
}

.board-tooltip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.board-tooltip-head strong {
  font-size: 0.95rem;
}

.board-tooltip-head span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.board-tooltip-body {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.65;
  word-break: break-word;
}

.goal-row td,
.focus-row td,
.summary-row td {
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
  background: rgba(245, 250, 255, 0.86);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 430px;
}

.panel-compact .timeline {
  gap: 10px;
}

.timeline-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 86, 164, 0.08);
}

.panel-compact .timeline-item {
  padding: 16px 18px;
  border-radius: 18px;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.timeline-head h3 {
  margin: 0;
}

.panel-compact .timeline-head h3 {
  font-size: 1.04rem;
}

.timeline-meta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.timeline-meta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.panel-compact .timeline-meta-text,
.panel-compact .timeline-plain-tags,
.panel-compact .timeline-item ul,
.panel-compact .timeline-period-content {
  font-size: 0.92rem;
}

.timeline-head p,
.timeline-item ul {
  margin: 0;
}

.timeline-plain-tags {
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.7;
}

.timeline-item ul {
  padding-left: 18px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.panel-compact .timeline-item ul {
  margin-top: 10px;
  padding-left: 16px;
  line-height: 1.55;
}

.timeline-item li + li {
  margin-top: 6px;
}

.panel-compact .timeline-item li + li {
  margin-top: 4px;
}

.timeline-raw {
  color: var(--text);
}

.timeline-period-content {
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.panel-compact .timeline-period-content {
  margin-top: 10px;
  line-height: 1.6;
}

.summary-table-wrapper {
  overflow-x: auto;
  min-height: 470px;
  border-radius: 22px;
  border: 1px solid rgba(33, 86, 164, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.pagination-button {
  padding: 8px 14px;
}

.pagination-label {
  min-width: 92px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.panel-compact .summary-table {
  min-width: 760px;
}

.summary-table th,
.summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(33, 86, 164, 0.08);
  text-align: left;
  vertical-align: top;
}

.panel-compact .summary-table th,
.panel-compact .summary-table td {
  padding: 10px 12px;
  font-size: 0.92rem;
}

.summary-table th {
  background: rgba(237, 245, 255, 0.94);
  color: var(--accent-dark);
  font-weight: 700;
}

.summary-table td {
  color: var(--text);
}

.summary-rich-content {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(33, 86, 164, 0.08);
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
}

.summary-table .cell-muted {
  color: var(--muted);
}

.summary-table .cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-state {
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(33, 86, 164, 0.16);
  border-radius: 20px;
}

.mention-menu {
  position: absolute;
  z-index: 20;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(33, 86, 164, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(25, 69, 134, 0.16);
  display: grid;
  gap: 4px;
}

.mention-option {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--accent-dark);
  text-align: left;
}

.mention-option.active,
.mention-option:hover {
  background: rgba(216, 232, 255, 0.72);
}

.reveal {
  animation: float-up 500ms ease both;
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  .goal-grid,
  .review-grid,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .relationship-manager-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .split,
  .previous-day-head,
  .scope-item-row,
  .scope-add-row,
  .relationship-screen-head,
  .annual-screen-head,
  .excerpt-group-head,
  .excerpt-item-line,
  .relationship-toolbar,
  .relationship-form-actions,
  .relationship-log-head {
    flex-direction: column;
    align-items: stretch;
  }

  .relationship-overview-grid,
  .relationship-form-grid,
  .cloud-auth-grid,
  .cloud-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: stretch;
  }

  .hero-side {
    justify-items: stretch;
    min-width: 0;
  }

  .hero-calendar-bar,
  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 10px calc(102px + env(safe-area-inset-bottom, 0px));
  }

  .layout {
    gap: 12px;
  }

  .panel,
  .hero {
    padding: 14px;
    border-radius: 18px;
  }

  .hero {
    gap: 14px;
    margin-bottom: 12px;
  }

  .hero-copy,
  .hero-copy-input,
  .hero-copy-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .hero-title-text {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .app-title-input {
    padding: 10px 12px;
  }

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

  .hero-mini-button {
    font-size: 0.76rem;
  }

  .hero-actions,
  .storage-actions,
  .previous-day-actions,
  .date-tools,
  .timeline-search-tools,
  .pagination-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-actions > *,
  .storage-actions > *,
  .backup-email-row > *,
  .cloud-action-row > *,
  .previous-day-actions > *,
  .date-tools > *,
  .timeline-search-tools > *,
  .pagination-bar > * {
    width: 100%;
    min-width: 0;
  }

  .timeline-search-tools,
  .pagination-bar {
    width: 100%;
    justify-content: initial;
  }

  .main-column {
    order: 1;
    gap: 12px;
  }

  .left-rail {
    order: 2;
    gap: 10px;
  }

  #today-panel {
    order: -10;
  }

  .main-column > .panel:first-child {
    order: -9;
  }

  .left-rail .panel-compact,
  .left-rail .panel-soft {
    padding: 14px;
    border-radius: 16px;
  }

  .left-rail .section-heading {
    margin-bottom: 10px;
  }

  .left-rail .micro-copy,
  .left-rail .panel-compact .micro-copy {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .backup-email-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading.split,
  .relationship-search-row,
  .relationship-toolbar-actions,
  .annual-screen-head,
  .relationship-screen-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .relationship-toolbar-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .relationship-toolbar-actions > *,
  .relationship-search-row > *,
  .section-heading.split > * {
    min-width: 0;
    width: 100%;
  }

  .hero-topline {
    align-items: flex-start;
  }

  .hero-calendar-bar {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hero-calendar-solar {
    font-size: 0.92rem;
  }

  .hero-calendar-lunar,
  .hero-calendar-festival {
    font-size: 0.78rem;
  }

  .hero-mini-button {
    font-size: 0.74rem;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .ghost-button {
    padding: 7px 6px;
    font-size: 0.74rem;
    line-height: 1.2;
    box-shadow: none;
    border-radius: 14px;
  }

  .mobile-hero-action {
    color: var(--accent-dark);
  }

  .mobile-desktop-only {
    display: none;
  }

  .pagination-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(33, 86, 164, 0.08);
    background: rgba(255, 255, 255, 0.78);
  }

  #entry-date {
    width: 100%;
    min-width: 0;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  h2 {
    font-size: 1.24rem;
  }

  h3 {
    font-size: 0.98rem;
  }

  .app-title-input {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .stats-grid,
  .relationship-overview-grid,
  .cloud-meta-grid {
    grid-template-columns: 1fr;
  }

  .stat-card strong {
    font-size: 1.65rem;
  }

  .goal-card,
  .review-card,
  .dimension-card,
  .taxonomy-card,
  .stat-card {
    padding: 14px;
    border-radius: 16px;
  }

  .goal-grid,
  .review-grid {
    gap: 8px;
  }

  .reminder-item {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
  }

  .daily-guide-top {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
  }

  .daily-guide-ganzhi,
  .daily-guide-year-head {
    justify-content: center;
    text-align: center;
    min-width: 0;
  }

  .reminder-item-top {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .reminder-item.is-due,
  .reminder-item.is-completed,
  .reminder-item.is-undone {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .reminder-item.is-undone .reminder-date-badge,
  .reminder-item.is-completed .reminder-date-badge {
    background: rgba(229, 231, 235, 0.88);
    border-color: rgba(156, 163, 175, 0.2);
  }

  .reminder-item.is-undone .reminder-date-year,
  .reminder-item.is-undone .reminder-date-main,
  .reminder-item.is-completed .reminder-date-year,
  .reminder-item.is-completed .reminder-date-main {
    color: #6b7280;
  }

  .reminder-item-copy {
    padding-top: 2px;
  }

  #excerpt-screen .annual-screen-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  #excerpt-screen .annual-screen-head > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  #back-to-dashboard-from-excerpt {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dimension-header {
    flex-direction: column;
    gap: 8px;
  }

  .dimension-count {
    align-self: flex-start;
  }

  .editor-highlight,
  .editor-input {
    min-height: 148px;
    padding: 11px;
    font-size: 16px;
    line-height: 1.6;
  }

  .focus-editor-highlight,
  .focus-editor-input {
    min-height: 74px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .scope-item-row,
  .scope-add-row {
    grid-template-columns: 1fr;
  }

  .goal-card .scope-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .scope-item-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .goal-card .scope-item-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding-top: 2px;
  }

  .scope-icon-button {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 86px;
  }

  .goal-card .scope-icon-button {
    min-width: 0;
    width: 32px;
    padding: 2px 0;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .scope-main-button {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .previous-day-card,
  .relationship-editor-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .previous-day-empty {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--muted);
  }

  .board-wrapper,
  .summary-table-wrapper,
  .relationship-table-wrapper {
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .board-table {
    min-width: 720px;
  }

  .summary-table,
  .panel-compact .summary-table {
    min-width: 560px;
  }

  .relationship-table {
    min-width: 1100px;
  }

  .timeline {
    min-height: auto;
  }

  .timeline-item {
    padding: 14px;
    border-radius: 16px;
  }

  .reminder-item-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .reminder-item-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .reminder-status-chip {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-left: auto;
    padding: 4px 9px;
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .reminder-section {
    gap: 8px;
  }

  .reminder-processed-group {
    gap: 8px;
  }

  .reminder-processed-body {
    gap: 8px;
  }

  .reminder-section + .reminder-section {
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
  }

  .reminder-processed-body .reminder-section + .reminder-section {
    padding-top: 8px;
  }

  .reminder-section-head {
    margin-bottom: 2px;
  }

  .reminder-section-title {
    font-size: 0.88rem;
  }

  .reminder-section-count,
  .reminder-pager-label {
    font-size: 0.74rem;
  }

  .reminder-pager-button {
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  .reminder-empty-inline {
    min-height: 0;
    padding: 8px 0 4px;
  }

  .backup-reminder {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .timeline-head,
  .timeline-meta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .timeline-meta-text {
    white-space: normal;
  }

  .mobile-quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(248, 252, 255, 0.94);
    border: 1px solid rgba(33, 86, 164, 0.1);
    box-shadow: 0 18px 36px rgba(25, 69, 134, 0.16);
    backdrop-filter: blur(18px);
  }

  .mobile-quickbar .primary-button,
  .mobile-quickbar .secondary-button {
    padding: 10px 8px;
    font-size: 0.84rem;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .storage-actions,
  .date-tools,
  .timeline-search-tools,
  .pagination-bar,
  .mobile-quickbar {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .mobile-quickbar {
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .hero {
    padding: 13px;
  }

  .hero-topline {
    gap: 8px;
  }

  .hero-copy,
  .hero-copy-text {
    font-size: 0.9rem;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .ghost-button {
    font-size: 0.7rem;
    padding: 7px 5px;
  }

  .board-table {
    min-width: 640px;
  }

  .summary-table,
  .panel-compact .summary-table {
    min-width: 520px;
  }
}
