:root {
  --ink: #261d18;
  --paper: #f2e5c8;
  --paper-dark: #d7bd87;
  --gold: #c7a052;
  --deep-navy: #10172d;
  --deep-purple: #2b1d3f;
  --magic-blue: #9dd8ff;
  --tree-green: #315f4b;
  --white: #fffaf0;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(199, 160, 82, 0.2), transparent 22rem),
    radial-gradient(circle at 80% 0%, rgba(157, 216, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--deep-navy), var(--deep-purple));
  line-height: 1.8;
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(16, 23, 45, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 160, 82, 0.35);
}

.brand,
.nav a {
  color: var(--white);
  text-decoration: none;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.book-cover {
  color: var(--white);
}

.cover-frame {
  width: min(920px, 100%);
  padding: clamp(28px, 7vw, 80px);
  text-align: center;
  border: 2px solid var(--gold);
  border-radius: 28px;
  background:
    linear-gradient(rgba(16, 23, 45, 0.76), rgba(43, 29, 63, 0.82)),
    repeating-linear-gradient(45deg, rgba(199, 160, 82, 0.08) 0 2px, transparent 2px 12px);
  box-shadow: 0 26px 80px var(--shadow), inset 0 0 0 8px rgba(199, 160, 82, 0.12);
  position: relative;
  overflow: hidden;
}

.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(199, 160, 82, 0.22);
  border-radius: 50%;
}

.cover-frame::before {
  left: -80px;
  top: -80px;
}

.cover-frame::after {
  right: -80px;
  bottom: -80px;
}

.site-qr-callout {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  width: 144px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(199, 160, 82, 0.34);
  border-radius: 22px;
  background: rgba(16, 23, 45, 0.46);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.site-qr-caption {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-qr-copy {
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-qr-image {
  width: 80px;
  height: 80px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.96);
}

.symbol-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 8vw, 96px);
  color: var(--gold);
  font-size: clamp(34px, 7vw, 72px);
  margin-bottom: 14px;
}

.symbol.tree {
  color: #98d3aa;
  transform: scale(1.12);
}

.small-title,
.chapter {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

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

h1 {
  font-size: clamp(42px, 9vw, 86px);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero h2 {
  font-size: clamp(26px, 5vw, 46px);
  margin-bottom: 20px;
}

.hero-copy {
  font-size: clamp(16px, 2.8vw, 22px);
}

.hourglass {
  color: var(--gold);
  font-size: 36px;
  margin: 20px 0 26px;
}

.hero-actions,
.card-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: var(--deep-navy);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.button-like {
  font: inherit;
  cursor: pointer;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 20px 70px var(--shadow);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 12px;
}

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

.app-card {
  border: 1px solid rgba(199, 160, 82, 0.42);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8e6, #f2e5c8);
}

.app-card-content {
  position: relative;
  padding: 22px 128px 22px 22px;
}

.app-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.app-status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(49, 95, 75, 0.12);
  color: var(--tree-green);
  font-size: 13px;
  font-weight: 700;
}

.qr-link {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.catchcopy,
.app-card-content > p {
  white-space: pre-line;
}

.qr-label {
  color: rgba(49, 95, 75, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.qr-image {
  width: 88px;
  height: 88px;
  padding: 6px;
  border: 1px solid rgba(199, 160, 82, 0.42);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 8px 20px rgba(38, 29, 24, 0.1);
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.screenshot-placeholder {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border: 1px solid rgba(199, 160, 82, 0.42);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  text-align: center;
  color: rgba(38, 29, 24, 0.58);
  background: rgba(255, 250, 240, 0.92);
  font-size: 12px;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
}

.devlog-section,
.support-section {
  position: relative;
  overflow: hidden;
}

.devlog-intro-card,
.support-layout {
  display: grid;
  gap: 18px;
}

.devlog-intro-card {
  grid-template-columns: minmax(0, 1.8fr) auto;
  align-items: end;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(199, 160, 82, 0.36);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(157, 216, 255, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(242, 229, 200, 0.94));
}

.devlog-intro-actions {
  display: grid;
  gap: 12px;
}

.devlog-intro-card h3,
.support-message-card h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0.01em;
}

.support-eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.devlog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-bottom: 24px;
  min-width: 0;
}

.blog-feature-card,
.blog-stats-card,
.blog-note-card,
.blog-list-card,
.blog-admin-card {
  border: 1px solid rgba(199, 160, 82, 0.4);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 14px 34px rgba(38, 29, 24, 0.08);
}

.blog-feature-card,
.blog-stats-card,
.blog-note-card,
.blog-list-card,
.blog-admin-card {
  padding: 24px;
}

.blog-feature-inner {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.blog-feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-feature h3,
.blog-note-card h3,
.blog-list-card h3,
.blog-admin-card h3 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.35;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  letter-spacing: 0.01em;
}

.blog-feature p,
.blog-note-card p,
.blog-list-caption,
.blog-admin-copy {
  margin-bottom: 0;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  white-space: pre-line;
}

.blog-view-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(38, 29, 24, 0.52);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.blog-feature-views {
  margin-top: -4px;
}

.blog-side {
  display: grid;
  gap: 20px;
}

.blog-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blog-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(242, 229, 200, 0.92));
  border: 1px solid rgba(199, 160, 82, 0.34);
  text-align: center;
}

.blog-stat-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(38, 29, 24, 0.62);
  font-size: 12px;
}

.blog-stat-value {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.blog-stats-note {
  margin-top: 14px;
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
}

.blog-list-card {
  margin-bottom: 24px;
}

.blog-list-card-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.blog-list-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.blog-list-caption {
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
  text-align: right;
}

.blog-secret-trigger {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(199, 160, 82, 0.46);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: rgba(139, 99, 25, 0.92);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-secret-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(38, 29, 24, 0.08);
  background: rgba(255, 248, 230, 1);
}

.blog-secret-trigger.is-armed {
  background: rgba(212, 175, 90, 0.18);
  box-shadow: 0 0 0 4px rgba(212, 175, 90, 0.12);
}

.blog-list-table {
  border: 1px solid rgba(199, 160, 82, 0.34);
  border-radius: 18px;
  overflow: hidden;
}

.blog-list-head,
.blog-list-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.blog-list-head {
  padding: 14px 18px;
  background: rgba(199, 160, 82, 0.12);
  color: rgba(38, 29, 24, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.blog-list {
  display: grid;
}

.blog-list-row {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid rgba(199, 160, 82, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-list-row:hover {
  background: rgba(199, 160, 82, 0.08);
}

.blog-row-date {
  color: rgba(49, 95, 75, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.blog-row-title-wrap {
  display: grid;
  gap: 4px;
}

.blog-row-title {
  font-size: 18px;
  line-height: 1.45;
}

.blog-row-summary {
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
  white-space: pre-line;
}

.blog-row-views {
  margin-top: 2px;
}

.blog-admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.blog-admin-status-area {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.blog-admin-status {
  margin-bottom: 0;
  color: rgba(49, 95, 75, 0.84);
  font-size: 14px;
  text-align: right;
}

.blog-admin-status.is-error {
  color: #8b3a36;
}

.blog-auth-panel,
.blog-composer-panel {
  padding: 18px;
  border: 1px solid rgba(199, 160, 82, 0.34);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.72);
}

.blog-auth-panel {
  margin-bottom: 16px;
}

.blog-login-form,
.blog-compose-form {
  display: grid;
  gap: 14px;
}

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

.blog-compose-grid-media {
  align-items: end;
}

.blog-field {
  display: grid;
  gap: 8px;
}

.blog-field span {
  font-weight: 700;
}

.blog-field input,
.blog-field textarea,
.blog-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(199, 160, 82, 0.48);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  font: inherit;
}

.blog-field textarea {
  resize: vertical;
  min-height: 240px;
}

.blog-image-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(199, 160, 82, 0.48);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.62);
}

.blog-image-preview-wrap {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 16px;
  background: rgba(255, 248, 230, 0.86);
  overflow: hidden;
}

.blog-image-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.blog-image-editor-canvas {
  width: 100%;
  max-height: 420px;
  display: block;
  border-radius: 16px;
  background: rgba(255, 248, 230, 0.92);
  touch-action: none;
}

.blog-image-editor {
  display: grid;
  gap: 14px;
}

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

.blog-image-editor-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.blog-image-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 136px;
}

.blog-tool-icon {
  font-size: 18px;
  line-height: 1;
}

.blog-tool-label {
  line-height: 1;
}

.blog-image-brush-size {
  min-width: min(220px, 100%);
}

.blog-image-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 2px solid rgba(199, 160, 82, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: rgba(38, 29, 24, 0.78);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--chip-color);
  border: 1px solid rgba(139, 99, 25, 0.18);
  flex-shrink: 0;
}

.blog-color-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.blog-color-chip:hover {
  transform: translateY(-1px);
}

.blog-color-chip.is-active {
  border-color: rgba(139, 99, 25, 0.86);
  box-shadow: 0 0 0 4px rgba(212, 175, 90, 0.18);
}

.blog-image-empty,
.blog-image-note {
  margin-bottom: 0;
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
}

.blog-image-note code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(199, 160, 82, 0.12);
  color: #8b6319;
  font-size: 13px;
}

.blog-login-actions,
.blog-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-editor-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.blog-publish-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.blog-compose-note {
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
}

.blog-compose-note.is-error {
  color: #8b3a36;
}

.devlog-card,
.support-message-card,
.support-links-card {
  border: 1px solid rgba(199, 160, 82, 0.4);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 14px 34px rgba(38, 29, 24, 0.08);
}

.devlog-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.devlog-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.45;
}

.devlog-card p {
  margin-bottom: 0;
}

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

.devlog-date,
.devlog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.devlog-date {
  background: rgba(49, 95, 75, 0.1);
  color: var(--tree-green);
}

.devlog-tag {
  border: 1px solid rgba(199, 160, 82, 0.4);
  color: #8b6319;
}

.support-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}

.support-message-card,
.support-links-card {
  padding: 24px;
}

.support-usage-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  margin: 0;
}

.support-links {
  display: grid;
  gap: 16px;
}

.support-link-item {
  display: grid;
  gap: 8px;
}

.support-link-note {
  margin-bottom: 0;
  color: rgba(38, 29, 24, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.support-link-item .button {
  width: 100%;
}

.footer {
  padding: 32px;
  color: var(--white);
  text-align: center;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.feedback-modal.is-open {
  display: flex;
  justify-content: center;
}

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 45, 0.62);
  backdrop-filter: blur(8px);
}

.feedback-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100% - 24px));
  max-height: min(80vh, 760px);
  margin: min(8vh, 56px) auto;
  padding: 28px 22px 22px;
  border: 1px solid rgba(199, 160, 82, 0.56);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(157, 216, 255, 0.18), transparent 10rem),
    linear-gradient(180deg, #fff8e6, #f2e5c8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  overflow: auto;
}

.feedback-close-button,
.feedback-add-button {
  border: 1px solid rgba(199, 160, 82, 0.52);
  background: rgba(255, 250, 240, 0.96);
  color: var(--tree-green);
  cursor: pointer;
}

.feedback-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.feedback-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 56px;
  margin-bottom: 18px;
}

.feedback-eyebrow {
  margin-bottom: 6px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.feedback-panel-subtitle {
  margin-bottom: 0;
  color: rgba(38, 29, 24, 0.7);
}

.feedback-add-button {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  font-size: 28px;
  flex-shrink: 0;
}

.feedback-form-area {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(199, 160, 82, 0.42);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.72);
}

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

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field span {
  font-weight: 700;
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(199, 160, 82, 0.48);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.95);
  color: var(--ink);
  font: inherit;
}

.feedback-field textarea {
  resize: vertical;
  min-height: 110px;
}

.feedback-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-note {
  margin-bottom: 0;
  color: rgba(38, 29, 24, 0.64);
  font-size: 13px;
}

.feedback-char-count {
  margin: 4px 0 0;
  color: rgba(49, 95, 75, 0.74);
  font-size: 12px;
}

.feedback-char-count.is-limit {
  color: #8b5a14;
}

.feedback-list {
  display: grid;
  gap: 14px;
  max-height: min(48vh, 420px);
  padding-right: 6px;
  overflow-y: auto;
}

.feedback-status {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(199, 160, 82, 0.5);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.84);
  color: rgba(38, 29, 24, 0.74);
  font-size: 14px;
}

.feedback-status.is-error {
  border-color: rgba(171, 84, 84, 0.34);
  color: #7d3434;
  background: rgba(255, 241, 241, 0.92);
}

.feedback-empty {
  display: grid;
  gap: 8px;
  padding: 22px 18px;
  border: 1px dashed rgba(199, 160, 82, 0.56);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.56);
  text-align: center;
  color: rgba(38, 29, 24, 0.68);
}

.feedback-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.feedback-empty-copy {
  margin-bottom: 0;
  font-size: 14px;
}

.feedback-card {
  padding: 18px;
  border: 1px solid rgba(199, 160, 82, 0.4);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.9);
}

.feedback-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.feedback-author {
  font-size: 17px;
  font-weight: 700;
}

.feedback-date {
  color: rgba(38, 29, 24, 0.54);
  font-size: 13px;
  white-space: nowrap;
}

.feedback-body {
  margin-bottom: 0;
  white-space: pre-line;
  word-break: break-word;
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: none;
}

.blog-modal.is-open {
  display: flex;
  justify-content: center;
}

.blog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 45, 0.62);
  backdrop-filter: blur(8px);
}

.blog-panel {
  position: relative;
  width: min(840px, calc(100% - 24px));
  max-height: min(84vh, 860px);
  margin: min(7vh, 48px) auto;
  padding: 28px 24px 24px;
  border: 1px solid rgba(199, 160, 82, 0.56);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(157, 216, 255, 0.18), transparent 10rem),
    linear-gradient(180deg, #fff8e6, #f2e5c8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  overflow: auto;
}

.blog-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(199, 160, 82, 0.52);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--tree-green);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.blog-auth-dialog {
  width: min(560px, calc(100% - 24px));
}

.blog-panel-header {
  padding-right: 52px;
  margin-bottom: 18px;
}

.blog-modal-meta {
  margin-bottom: 0;
  color: rgba(38, 29, 24, 0.62);
}

.blog-modal-content {
  display: grid;
  gap: 16px;
}

.blog-modal-content p {
  margin-bottom: 0;
  white-space: pre-line;
}

.blog-article-image {
  width: 100%;
  max-height: 520px;
  margin-bottom: 4px;
  border: 1px solid rgba(199, 160, 82, 0.38);
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 248, 230, 0.92);
  box-shadow: 0 12px 28px rgba(38, 29, 24, 0.08);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-qr-callout {
    display: none;
  }

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

  .devlog-intro-card,
  .support-layout,
  .devlog-grid,
  .blog-shell,
  .blog-compose-grid,
  .blog-image-editor-grid {
    grid-template-columns: 1fr;
  }

  .blog-stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 20px, 1120px);
    padding: 26px 18px;
  }

  .app-card-content {
    padding: 22px;
  }

  .qr-link {
    display: none;
  }

  .feedback-panel {
    width: min(100% - 16px, 720px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 22px 16px 16px;
    border-radius: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .feedback-panel-header {
    align-items: center;
    padding-right: 48px;
  }

  .feedback-form-actions,
  .feedback-card-header,
  .blog-admin-header,
  .blog-list-card-header,
  .blog-list-tools,
  .blog-login-actions,
  .blog-compose-actions,
  .blog-image-editor-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-editor-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .blog-admin-status {
    text-align: left;
  }

  .blog-list-head,
  .blog-list-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .blog-panel {
    width: min(100% - 16px, 840px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 22px 16px 16px;
    border-radius: 22px;
  }

  .feedback-list {
    max-height: 52vh;
  }

  .feedback-form-area {
    overflow: visible;
  }
}
