:root {
  --paper: #f8f5ef;
  --ink: #292922;
  --muted: #66665f;
  --accent: #873e46;
  --line: #dfdbd2;
  --soft: #efe8de;
  --white: #fffdf8;
  --danger: #9d2727;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #6d3037;
  color: #fff;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--accent);
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  min-height: 120px;
}
.wordmark {
  text-decoration: none;
  font:
    italic 44px/1 Georgia,
    serif;
  letter-spacing: -2px;
  color: var(--accent);
}
.wordmark span {
  display: block;
  font: 11px/1.8 system-ui;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 9px;
}
.site-header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.shop-link {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.announcement {
  background: var(--soft);
  font-size: 14px;
  padding: 12px 0;
}
.main {
  padding-top: 28px;
  padding-bottom: 60px;
  min-height: 60vh;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.18;
  margin: 0.35em 0 0.65em;
}
h1 {
  font-size: clamp(34px, 4.5vw, 62px);
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 24px;
}
p {
  margin: 0.6em 0 1.2em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7em;
}
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 65px 0 80px;
}
.hero h1 {
  font-size: clamp(45px, 6vw, 78px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}
.text-link {
  font-size: 14px;
}
.petal-art {
  height: 310px;
  background:
    radial-gradient(ellipse at 50% 25%, #dfc6c4 0 22%, transparent 23%),
    radial-gradient(ellipse at 22% 60%, #e8d7ce 0 23%, transparent 24%),
    radial-gradient(ellipse at 78% 60%, #e7d0cd 0 23%, transparent 24%),
    radial-gradient(ellipse at 50% 85%, #e2cec8 0 20%, transparent 21%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.petal-art span {
  font:
    100px/1.3 Georgia,
    serif;
  color: #82474b;
}
.petal-art p {
  font-size: 11px;
  letter-spacing: 2px;
}
.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.section-heading > a {
  font-size: 14px;
}
.event-row {
  display: flex;
  gap: 25px;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.event-row h2,
.event-row h3 {
  font-size: 24px;
  margin: 4px 0 8px;
}
.event-row p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.event-row .eyebrow {
  font-size: 10px;
  color: var(--accent);
}
.date-box {
  min-width: 65px;
  text-align: center;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 5px;
}
.date-box strong {
  display: block;
  font:
    32px/1.25 Georgia,
    serif;
}
.date-box span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge {
  margin-left: auto;
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.muted {
  background: var(--soft);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 28px;
}
.article-card h2,
.article-card h3 {
  font-size: 27px;
}
.article-card h2 a,
.article-card h3 a {
  text-decoration: none;
}
.article-card p {
  font-size: 14px;
  color: var(--muted);
}
.store-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--soft);
  padding: 40px;
  border-radius: 8px;
}
.preserve-lines {
  white-space: pre-line;
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--muted);
}
.footer span {
  margin-right: auto;
}
.reading {
  max-width: 770px;
  margin: 35px auto 70px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.prose h2 {
  margin-top: 1.4em;
}
.prose table {
  border-collapse: collapse;
}
.prose td,
.prose th {
  padding: 8px;
  border: 1px solid var(--line);
}
.event-info {
  display: flex;
  gap: 55px;
  background: var(--soft);
  padding: 22px;
  border-radius: 6px;
  margin: 25px 0;
}
.event-info p {
  margin: 0;
}
.booking-card .booking-consent {
  gap: 12px;
  margin: 22px 0;
  line-height: 1.65;
}
.booking-consent > span {
  flex: 1;
  min-width: 0;
}
.booking-card .booking-consent input {
  margin: 3px 0 0;
}
.booking-callout {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 20px;
}
.empty {
  color: var(--muted);
  padding: 24px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
  max-width: 750px;
}
.search input,
.search select {
  flex: 1;
}
.auth-card {
  max-width: 540px;
  margin: 45px auto;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.auth-card h1 {
  font-size: 34px;
}
form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 6px;
}
input:not([type="checkbox"]):not([type="hidden"]),
textarea,
select {
  width: 100%;
  border: 1px solid #bbb8b0;
  background: #fffefb;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
}
textarea {
  min-height: 110px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
}
.check input {
  flex-shrink: 0;
  margin-top: 4px;
}
form button {
  margin-top: 18px;
}
.error {
  color: var(--danger);
}
.notice {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 14px 18px;
  border-radius: 5px;
  margin: 16px 0;
}
.success {
  background: #edf3e7;
}
.notice.error {
  background: #f9ece7;
}
.secret {
  overflow-wrap: anywhere;
}
.recovery-codes {
  columns: 2;
  font-size: 16px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
  z-index: 10;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
altcha-widget {
  display: block;
  margin: 20px 0;
}
.admin-page .main {
  max-width: 1160px;
}
.admin-nav {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--soft);
  border-radius: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}
.admin-page h1 {
  font-size: 36px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.metric {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.metric strong {
  display: block;
  font:
    32px Georgia,
    serif;
}
.editor-form {
  max-width: 900px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 12px 0;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  margin: 25px 0;
  font-size: 14px;
}
.data-table td,
.data-table th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.data-table form {
  display: inline-block;
}
.data-table form button {
  font-size: 12px;
  padding: 5px 9px;
  margin: 0;
}
.rich-editor {
  background: var(--white);
  border: 1px solid #bbb8b0;
  border-radius: 6px;
}
.editor-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
.editor-toolbar button {
  background: var(--soft);
  color: var(--ink);
  border: 0;
  font-size: 12px;
  padding: 6px 9px;
  margin: 0;
}
.tiptap {
  padding: 20px;
  min-height: 270px;
}
.tiptap:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tiptap img {
  max-width: 100%;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.media-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.media-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.calendar-details {
  margin: 25px 0;
}
.calendar-details summary {
  cursor: pointer;
  font-weight: 600;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.month-grid > strong {
  text-align: center;
}
.month-day {
  min-height: 90px;
  border: 1px solid var(--line);
  padding: 8px;
  font-size: 12px;
}
.month-day a {
  display: block;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.3;
  margin: 6px 0;
}
.upload-form {
  max-width: 650px;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .site-header nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero {
    gap: 20px;
    padding: 35px 0;
    grid-template-columns: 1fr;
  }
  .petal-art {
    display: none;
  }
  .article-grid,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-section {
    padding: 25px;
    gap: 20px;
  }
  .event-row {
    gap: 15px;
  }
  .event-row .badge {
    display: none;
  }
  .footer {
    flex-wrap: wrap;
  }
  .data-table {
    display: block;
    overflow: auto;
  }
  .search {
    flex-wrap: wrap;
  }
}
@media (max-width: 540px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-header {
    display: block;
  }
  .wordmark {
    display: block;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .article-grid,
  .media-grid,
  .store-section,
  .form-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .event-info {
    display: block;
  }
  .event-info p + p {
    margin-top: 15px;
  }
  .auth-card {
    padding: 25px 18px;
    margin: 20px auto;
  }
  .month-day {
    padding: 3px;
    min-height: 75px;
  }
  .month-day a {
    font-size: 9px;
  }
  .search label {
    width: 100%;
  }
} /* Shared Hanabira colors: matcha, sakura and warm paper. Serif keeps the blog's character. */
:root {
  --paper: #faf7f2;
  --ink: #1c1a16;
  --accent: #2b5e17;
  --muted: #6b6358;
  --line: #e8e0d3;
}
body {
  background: #faf7f2;
  color: #1c1a16;
}
h1,
h2,
h3,
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
}
a {
  color: #224b13;
}
button,
.button {
  background: #2b5e17;
  border-color: #2b5e17;
  border-radius: 3px;
  min-height: 44px;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:hover,
.button:hover {
  background: #224b13;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px #2b5e171a;
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: transparent !important;
  color: #224b13;
  border-color: #c2d6a8 !important;
}
.secondary:hover {
  background: #f2f6ec !important;
}
.site-header {
  border-bottom: 1px solid #e8e0d3;
}
.petal-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 45%, #fde7e6, transparent 60%);
}
.floating-petal {
  position: absolute;
  left: var(--left);
  top: -15px;
  width: 9px;
  height: 14px;
  border-radius: 80% 20% 75% 25%;
  background: #f6aba766;
  animation: petal-drift 18s linear infinite;
  animation-delay: var(--delay);
  pointer-events: none;
}
@keyframes petal-drift {
  0% {
    transform: translate(0, -20px) rotate(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translate(55px, 430px) rotate(240deg);
    opacity: 0;
  }
}
.notice {
  animation: notice-in 0.22s ease-out;
}
.success {
  background: #eaf4ec !important;
  border-left: 3px solid #2f7d3b;
}
.error,
.validation {
  color: #8c241a;
}
.notice.error {
  background: #faeae7;
}
.validation ul {
  padding-left: 20px;
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #769e51;
  outline-offset: 3px;
}
input,
select,
textarea {
  font-size: 16px;
  border: 1px solid #d9cfbe;
  border-radius: 3px;
  min-height: 44px;
}
input:focus,
textarea:focus {
  border-color: #547f36;
  box-shadow: 0 0 0 3px #2b5e1710;
}
label {
  font-size: 0.9rem;
  font-weight: 600;
}
label.check {
  font-weight: 400;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  accent-color: #2b5e17;
}
.muted,
.hint {
  color: #6b6358;
}
.hint {
  font-size: 0.85rem;
  line-height: 1.6;
}
.text-button {
  background: none !important;
  border: 0 !important;
  color: #224b13;
  padding: 6px 12px;
}
.text-button:hover {
  box-shadow: none;
}
.danger {
  color: #8c241a;
}
.badge {
  background: #f3ede3;
  color: #423d36;
  border-radius: 3px;
}
.panel {
  background: #fff;
  padding: 26px;
  border: 1px solid #e8e0d3;
  border-radius: 4px;
  margin: 24px 0;
}
.editor-top {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #faf7f2ee;
  padding: 14px 0;
  border-bottom: 1px solid #e8e0d3;
  backdrop-filter: blur(10px);
}
.editor-top h1 {
  font-size: 2rem;
  margin: 8px 0;
}
.editor-top p {
  margin: 3px 0;
}
.editor-top a {
  font-size: 0.85rem;
}
.editor-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
  margin: 28px 0;
}
.editor-workspace {
  min-width: 0;
}
.title-input {
  font:
    600 1.6rem Georgia,
    serif;
  padding: 18px !important;
  background: #fff;
}
.editor-inspector details {
  border: 1px solid #e8e0d3;
  padding: 18px;
  background: #fff;
  margin-bottom: 14px;
  border-radius: 4px;
}
.editor-inspector summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 28px;
  color: #423d36;
}
.editor-inspector details[open] summary {
  margin-bottom: 15px;
}
.editor-inspector .button {
  font-size: 0.85rem;
}
.editor-inspector img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.url-field {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}
.url-field input {
  min-width: 0;
}
.search-preview {
  border: 1px solid #e8e0d3;
  border-radius: 6px;
  background: #fafafa;
  margin: 18px 0 5px;
  padding: 14px;
  overflow-wrap: anywhere;
  font-family: Arial, sans-serif;
}
.search-preview strong {
  display: block;
  color: #174ea6;
  font-size: 18px;
  line-height: 1.4;
}
.search-preview p {
  font-size: 13px;
  line-height: 1.5;
  color: #474747;
  margin: 8px 0;
}
.preview-site,
.search-preview small {
  font-size: 12px;
  color: #474747;
}
.canvas-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 10px;
}
.segmented {
  display: flex;
  border: 1px solid #d9cfbe;
  border-radius: 4px;
  overflow: hidden;
}
.segmented button {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: #423d36;
  font-size: 0.8rem;
  min-height: 36px;
  padding: 6px 12px;
  transform: none;
}
.segmented button.active {
  background: #e0ead2;
  color: #1a390f;
}
.rich-editor {
  border: 1px solid #d9cfbe;
  border-radius: 4px;
  background: #fff;
  min-width: 0;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f3ede3;
  border-bottom: 1px solid #d9cfbe;
  padding: 8px;
  position: sticky;
  top: 115px;
  z-index: 10;
}
.editor-toolbar button {
  font-size: 12px;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid transparent !important;
  color: #423d36;
  box-shadow: none;
  transform: none;
}
.editor-toolbar button:hover {
  background: #e8e0d3 !important;
}
.editor-toolbar button.active {
  background: #c2d6a8 !important;
  color: #1a390f;
}
.editor-surface {
  padding: 28px;
  transition: max-width 0.2s;
  margin: 0 auto;
}
.editor-surface .tiptap {
  min-height: 380px;
  outline: none;
  overflow-wrap: anywhere;
}
.editor-surface .tiptap:empty:before {
  content: "Hier beginnt deine Geschichte …";
  color: #897f72;
}
.editor-surface p {
  margin: 1em 0;
}
.editor-surface img {
  max-width: 100%;
  height: auto;
}
.rich-editor.mobile-canvas .editor-surface {
  max-width: 390px;
  border-left: 1px solid #e8e0d3;
  border-right: 1px solid #e8e0d3;
}
.prose blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 3px solid #769e51;
  background: #f2f6ec;
}
.prose [data-gallery] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.prose [data-gallery] img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.prose .ProseMirror-selectednode {
  outline: 3px solid #769e51;
}
.editor-dialog {
  border: 1px solid #e8e0d3;
  border-radius: 8px;
  background: #faf7f2;
  padding: 28px;
  width: min(760px, 94vw);
  max-height: 88dvh;
  overflow: auto;
  color: #1c1a16;
  box-shadow: 0 24px 80px #1c1a1640;
}
.editor-dialog::backdrop {
  background: #1c1a1670;
  backdrop-filter: blur(3px);
}
.editor-dialog h2 {
  margin-top: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: -28px;
  background: #faf7f2;
  padding: 18px 0;
  flex-wrap: wrap;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.picker-tile {
  padding: 6px !important;
  border: 2px solid #e8e0d3 !important;
  background: white !important;
  color: #423d36;
  min-width: 0;
  box-shadow: none !important;
  transform: none !important;
}
.picker-tile.selected {
  border-color: #2b5e17 !important;
  background: #e0ead2 !important;
}
.picker-tile.selected:after {
  content: "✓ Ausgewählt";
  font-size: 12px;
  color: #224b13;
}
.picker-tile img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.picker-tile span {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 14px;
  background: #f3ede3;
  align-items: center;
}
.upload-panel input {
  min-width: 0;
  margin: 0;
}
.date-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.date-picker > input {
  width: 180px;
  margin: 0;
}
.date-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 0;
}
.date-chips button {
  font-size: 0.85rem;
  background: #f2f6ec;
  color: #224b13;
  border-color: #c2d6a8;
  padding: 5px 12px;
  min-height: 36px;
}
.changed {
  color: #7a5410 !important;
}
.danger-actions {
  display: flex;
  gap: 14px;
  border-top: 1px solid #e8e0d3;
  padding: 24px 0;
}
.tabs {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  border-bottom: 1px solid #d9cfbe;
}
.tabs a {
  padding: 12px 0;
}
.tabs a[aria-current="page"] {
  border-bottom: 3px solid #2b5e17;
  font-weight: 600;
}
.content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e0d3;
}
.content-row h2 {
  font-size: 1.4rem;
  margin: 4px 0;
}
.content-row p {
  margin: 4px 0;
}
.content-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 26px 0;
}
.metrics > a {
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e0d3;
  text-decoration: none;
}
.metrics strong {
  display: block;
  font:
    2.6rem Georgia,
    serif;
  color: #2b5e17;
}
.quick-links,
.row-actions,
.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.row-actions {
  margin: 0;
}
.row-actions button {
  font-size: 0.8rem;
  min-height: 36px;
  padding: 6px 12px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid #e8e0d3;
}
table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th {
  background: #f3ede3;
  color: #423d36;
}
td,
th {
  padding: 14px;
  border-bottom: 1px solid #e8e0d3;
}
tr:hover td {
  background: #f2f6ec50;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  padding: 14px;
  background: white;
  border: 1px solid #e8e0d3;
  min-width: 0;
}
.media-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.media-card strong {
  display: block;
  overflow-wrap: anywhere;
}
.pdf-icon {
  height: 160px;
  display: grid;
  place-items: center;
  background: #f3ede3;
  font-size: 2rem;
}
.auth-card.wide {
  max-width: 760px;
}
.cover-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  margin: 20px 0 30px;
  aspect-ratio: 16/10;
}
.breadcrumbs {
  font-size: 0.8rem;
  color: #6b6358;
  margin-bottom: 30px;
}
.admin-nav {
  overflow-x: auto;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: 22px !important;
}
.admin-nav a {
  padding: 12px 0;
  min-height: 44px;
}
.admin-nav form {
  margin-left: auto;
}
.admin-page .main {
  padding-top: 24px;
}
.pending {
  opacity: 0.65;
  cursor: progress;
}
.footer {
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .editor-top {
    gap: 12px;
  }
  .editor-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .editor-top h1 {
    font-size: 1.6rem;
  }
  .editor-surface {
    padding: 20px;
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-top {
    position: relative;
    flex-wrap: wrap;
  }
  .editor-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .editor-actions button {
    flex: 1;
  }
  .editor-toolbar {
    position: relative;
    top: 0;
  }
  .editor-surface {
    padding: 18px;
  }
  .editor-dialog {
    padding: 18px;
  }
  .dialog-actions {
    bottom: -18px;
  }
  .upload-panel {
    grid-template-columns: 1fr;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .picker-tile img {
    height: 95px;
  }
  .editor-inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .editor-inspector details {
    margin: 0;
  }
  .content-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .content-row > div:last-child {
    width: 100%;
    justify-content: space-between;
  }
  .metrics {
    gap: 10px;
  }
  .metrics > a {
    padding: 14px;
  }
  .metrics strong {
    font-size: 2rem;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prose [data-gallery] img {
    height: 160px;
  }
  .petal-art {
    height: 180px !important;
  }
  .month-day {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .month-day a {
    font-size: 0.65rem;
  }
  .tabs {
    gap: 18px;
  }
  .danger-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .editor-inspector {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics > a {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .metrics strong {
    font-size: 1.6rem;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .picker-grid {
    gap: 8px;
  }
  .canvas-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .editor-toolbar {
    gap: 2px;
    padding: 5px;
  }
  .editor-toolbar button {
    min-height: 40px;
  }
  .media-grid {
    gap: 10px;
  }
  .media-card {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .floating-petal {
    display: none;
  }
}
altcha-widget {
  display: block;
  margin: 20px 0;
  --altcha-color-primary: #2b5e17;
  --altcha-color-border: #d9cfbe;
}
altcha-widget svg {
  pointer-events: none;
}
altcha-widget input[type="checkbox"] {
  min-height: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
}
altcha-widget label {
  font-weight: 400;
}
.recipe-panel {
  padding: 24px;
  background: #f2f6ec;
  margin: 30px 0;
}
.recipe-panel li {
  margin: 10px 0;
}
@media (max-width: 720px) {
  .page-editor .editor-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 35;
    background: #faf7f2f5;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #d9cfbe;
    box-shadow: 0 -4px 16px #1c1a160a;
    backdrop-filter: blur(8px);
  }
  body:has(.page-editor) {
    padding-bottom: 100px;
  }
  .page-editor .title-input {
    font-size: 1.35rem;
  }
  .page-editor .editor-actions button {
    min-height: 48px;
  }
}
