:root {
  color-scheme: light;
  --bg: #f6f0e7;
  --bg-soft: #fffaf2;
  --card: rgba(255, 252, 246, 0.92);
  --card-solid: #fffaf3;
  --text: #211f1b;
  --muted: #756f64;
  --faint: #aaa295;
  --line: rgba(68, 56, 42, 0.13);
  --brand: #6f563d;
  --brand-strong: #3e2f22;
  --accent: #b08860;
  --success: #557465;
  --danger: #a64942;
  --shadow: 0 14px 34px rgba(59, 45, 28, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110f;
  --bg-soft: #1c1915;
  --card: rgba(31, 28, 23, 0.94);
  --card-solid: #211e19;
  --text: #f5efe5;
  --muted: #b5ac9d;
  --faint: #756d61;
  --line: rgba(245, 239, 229, 0.12);
  --brand: #d5b995;
  --brand-strong: #f4ddbd;
  --accent: #c59b6b;
  --success: #8cb09b;
  --danger: #e3837a;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(176, 136, 96, 0.2), transparent 32rem),
    radial-gradient(circle at 90% 14%, rgba(85, 116, 101, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

body.locked {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 24rem);
  transform: translateZ(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 22px 0;
}

.nav-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 10px 26px rgba(50, 40, 28, 0.07);
}

[data-theme="dark"] .nav-shell {
  background: rgba(25, 23, 19, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-strong);
  color: var(--bg-soft);
  font-family: var(--serif);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(111, 86, 61, 0.1);
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--card-solid);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: currentColor;
}

main,
.site-header,
.back-top,
.toast {
  position: relative;
  z-index: 1;
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  align-items: center;
  gap: 42px;
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-copy p,
.section-copy p,
.settings-grid p,
.quote-panel p,
.empty-state p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 660px;
  font-size: 18px;
}

.hero-actions,
.form-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.text-btn,
.icon-btn {
  cursor: pointer;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  will-change: transform;
}

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

.btn-primary {
  background: var(--brand-strong);
  color: var(--bg-soft);
  box-shadow: 0 12px 30px rgba(62, 47, 34, 0.2);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.btn-soft {
  background: rgba(111, 86, 61, 0.1);
  color: var(--brand-strong);
}

.btn-danger {
  background: rgba(166, 73, 66, 0.12);
  color: var(--danger);
}

.hero-panel,
.panel,
.journal-form,
.filter-panel,
.habit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.today-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 250, 242, 0.28), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(213, 185, 149, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(62, 47, 34, 0.96), rgba(111, 86, 61, 0.8));
  color: #fffaf2;
}

.today-card .muted,
.today-card p {
  color: rgba(255, 250, 242, 0.78);
}

.today-card h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

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

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.metric-card span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-card small {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.panel,
.journal-form,
.filter-panel,
.habit-panel {
  padding: 26px;
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111, 86, 61, 0.09);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.category-bars {
  display: grid;
  gap: 14px;
}

.category-bar {
  display: grid;
  gap: 7px;
}

.category-bar header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.category-bar i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 86, 61, 0.11);
}

.category-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.quote-panel blockquote {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: 34px;
}

.section-copy {
  position: sticky;
  top: 118px;
}

.tip-card {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.24);
}

.tip-card span {
  color: var(--muted);
  font-size: 14px;
}

.journal-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-row.three {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text);
  outline: none;
  padding: 13px 15px;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.06);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(176, 136, 96, 0.8);
  box-shadow: 0 0 0 4px rgba(176, 136, 96, 0.15);
}

.file-label input {
  padding: 11px 15px;
}

.file-label small {
  color: var(--faint);
  font-weight: 500;
}

.image-preview {
  min-height: 180px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.entry-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 210px;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(59, 45, 28, 0.07);
}

.entry-card.pinned {
  border-color: rgba(176, 136, 96, 0.42);
}

.entry-date {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  padding-top: 4px;
}

.entry-date strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.entry-date span,
.entry-meta,
.entry-extra,
.entry-tags,
.text-btn {
  color: var(--muted);
  font-size: 13px;
}

.entry-meta,
.entry-extra,
.entry-tags,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.entry-meta span,
.entry-extra span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(111, 86, 61, 0.08);
}

.entry-body h3 {
  margin: 10px 0;
}

.entry-content {
  color: var(--muted);
  white-space: pre-wrap;
}

.entry-tags {
  margin-top: 14px;
}

.entry-actions {
  margin-top: 18px;
}

.text-btn {
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.text-btn:hover {
  color: var(--brand-strong);
}

.text-btn.danger,
.text-btn.danger:hover {
  color: var(--danger);
}

.entry-image {
  min-height: 180px;
  border-radius: 24px;
  background: rgba(111, 86, 61, 0.08);
  background-size: cover;
  background-position: center;
}

.entry-image:empty {
  display: none;
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
}

.insight-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(15, minmax(12px, 1fr));
  gap: 7px;
}

.heat-day {
  aspect-ratio: 1;
  border-radius: 7px;
  background: rgba(111, 86, 61, 0.08);
}

.heat-day.level-1 { background: rgba(176, 136, 96, 0.28); }
.heat-day.level-2 { background: rgba(176, 136, 96, 0.48); }
.heat-day.level-3 { background: rgba(176, 136, 96, 0.72); }

.mood-chart {
  display: flex;
  align-items: end;
  min-height: 210px;
  gap: 10px;
  padding-top: 18px;
}

.mood-bar {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
  opacity: 0.82;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(111, 86, 61, 0.08);
}

.highlight-item strong {
  display: block;
  margin-bottom: 4px;
}

.highlight-item span {
  color: var(--muted);
  font-size: 13px;
}

.habit-panel {
  display: grid;
  gap: 22px;
}

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

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(111, 86, 61, 0.1);
  color: var(--brand-strong);
  font-weight: 900;
}

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

.habit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.habit-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.habit-item strong {
  display: block;
}

.habit-item span {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(111, 86, 61, 0.06);
}

.segmented button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
}

.segmented button.active {
  background: var(--brand-strong);
  color: var(--bg-soft);
}

.import-btn {
  position: relative;
  overflow: hidden;
}

.import-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.danger-zone {
  border-color: rgba(166, 73, 66, 0.22);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card-solid);
  color: var(--brand-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  max-width: min(520px, calc(100% - 40px));
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-solid);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


.page-hero {
  min-height: auto;
  padding-top: 72px;
}

.page-title {
  max-width: 860px;
  margin-left: max(22px, calc((100% - var(--max)) / 2));
  margin-right: auto;
  padding-top: 86px;
}

.page-title h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 78px);
}

.page-title p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.compact-section {
  padding-top: 54px;
}

.clean-split {
  padding-top: 38px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(59, 45, 28, 0.07);
  transition: transform 160ms ease, border-color 160ms ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 136, 96, 0.42);
}

.feature-card span {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-panel h2 {
  font-size: 34px;
}

.inline-metrics {
  margin-top: 10px;
}

.wide-insights {
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

@media (max-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .dashboard-grid,
  .insight-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .filter-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .entry-image {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding-top: 72px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: grid;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .form-row.two,
  .form-row.three,
  .filter-panel,
  .habit-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    grid-template-columns: 1fr;
  }

  .entry-date {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .heatmap {
    grid-template-columns: repeat(10, 1fr);
  }

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

  .page-title {
    width: min(100% - 28px, var(--max));
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: clamp(42px, 15vw, 66px);
  }
}

.admin-shell {
  width: min(1380px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-login {
  max-width: 520px;
  margin: 10vh auto 0;
}

.admin-login h1,
.admin-topbar h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 72px);
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.admin-hint {
  margin-top: 18px;
  font-size: 13px;
}

.admin-app {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-topbar p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-visitors,
.admin-records {
  min-height: 420px;
}

.admin-visitor-list,
.admin-entry-list {
  display: grid;
  gap: 12px;
}

.admin-visitor-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(111, 86, 61, 0.06);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.admin-visitor-item.active,
.admin-visitor-item:hover {
  border-color: rgba(176, 136, 96, 0.5);
  background: rgba(111, 86, 61, 0.12);
}

.admin-visitor-item span,
.admin-visitor-item small {
  color: var(--muted);
}

.admin-filter {
  grid-template-columns: 1.4fr repeat(3, 1fr);
  box-shadow: none;
  margin-bottom: 18px;
}

.admin-entry-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.admin-entry-card header,
.admin-entry-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-entry-card header div {
  display: grid;
  gap: 4px;
}

.admin-entry-card header span,
.admin-entry-card p,
.admin-entry-note {
  color: var(--muted);
}

.admin-entry-card p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.admin-entry-card footer {
  justify-content: flex-start;
}

.admin-entry-card footer span,
.admin-entry-note {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(111, 86, 61, 0.08);
  font-size: 13px;
}

.admin-entry-image {
  min-height: 200px;
  border-radius: 18px;
  background: rgba(111, 86, 61, 0.08);
  background-size: cover;
  background-position: center;
}

@media (max-width: 980px) {
  .admin-topbar,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-filter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - 28px, 1380px);
    padding-top: 22px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .journal-form,
  .filter-panel,
  .settings,
  .back-top,
  .toast,
  .hero-actions,
  .entry-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section,
  .hero {
    width: 100%;
    padding: 24px 0;
  }

  .entry-card,
  .panel,
  .hero-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}