/* =============================================================================
   Tezkiye-i Nefs · Yönetim Paneli
   Dergâhın kimliği: koyu yeşil, altın, krem. Başlıklarda serif, Arapçada Amiri.
   Satır içi stil yoktur (CSP); her görünüm bu dosyadadır.
   ============================================================================= */

@font-face {
  font-family: "Amiri";
  src: url("fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("fonts/Amiri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green-950: #072a21;
  --green-900: #0b3d30;
  --green-800: #0f4e3d;
  --green-700: #12604b;
  --green-500: #1e7a5c;
  --green-100: #e3efe8;
  --gold: #c9a24e;
  --gold-light: #e3c87f;
  --gold-100: #f6ecd2;
  --cream: #f7f3ea;
  --cream-deep: #efe8d8;
  --paper: #fffdf8;
  --ink: #17251f;
  --ink-soft: #3c4a44;
  --muted: #6b7671;
  --line: #e6dfcd;
  --line-strong: #d7cdb4;
  --danger: #a33a2c;
  --danger-100: #f8e4e0;
  --warn: #8a6a17;
  --warn-100: #fbf1d9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 61, 48, 0.05), 0 12px 32px -18px rgba(11, 61, 48, 0.28);
  --shadow-lg: 0 2px 4px rgba(11, 61, 48, 0.06), 0 24px 48px -24px rgba(11, 61, 48, 0.4);
  --ring: 0 0 0 3px rgba(201, 162, 78, 0.35);

  /* Sekiz köşeli yıldız deseni (altın, çok soluk). */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23C9A24E' stroke-width='1'%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='8'/%3E%3Cpath d='M0 0l14 14M88 0L74 14M0 88l14-14M88 88L74 74'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15px/1.55 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
code {
  font: 0.86em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--cream-deep); padding: 3px 7px; border-radius: 6px; color: var(--ink-soft);
}
h1, h2, h3 { font-family: var(--serif); color: var(--green-900); letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0; font-weight: 600; }
h2 { font-size: 1.2rem; margin: 0 0 4px; font-weight: 600; }
h3 { font-size: 1.02rem; margin: 0; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* -----------------------------------------------------------------------------
   Uygulama yerleşimi: kenar menü + içerik
   ----------------------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--pattern) center / 88px, linear-gradient(180deg, var(--green-900), var(--green-950));
  background-blend-mode: soft-light, normal;
  color: var(--cream);
  padding: 22px 16px;
  border-right: 1px solid rgba(227, 200, 127, 0.18);
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 42, 33, 0.35), rgba(7, 42, 33, 0.85) 70%);
}
.sidebar > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px 22px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(227, 200, 127, 0.45); }
.brand strong { display: block; font: 600 1.12rem/1.2 var(--serif); color: var(--gold-light); }
.brand span { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 243, 234, 0.7); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 243, 234, 0.45); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: rgba(247, 243, 234, 0.82); text-decoration: none; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(247, 243, 234, 0.07); color: #fff; }
.nav a.active {
  background: linear-gradient(90deg, rgba(201, 162, 78, 0.22), rgba(201, 162, 78, 0.06));
  color: var(--gold-light);
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav .badge {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--gold); color: var(--green-950); font-size: 0.75rem; font-weight: 700;
}

.account {
  display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 12px;
  border-top: 1px solid rgba(227, 200, 127, 0.18);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold); color: var(--green-950); font: 700 0.95rem var(--serif);
}
.account .who { flex: 1; min-width: 0; }
.account .who strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account .who span { font-size: 0.75rem; color: rgba(247, 243, 234, 0.6); }
.account form { margin: 0; }
.icon-button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid rgba(227, 200, 127, 0.25); color: var(--gold-light);
}
.icon-button:hover { background: rgba(247, 243, 234, 0.08); }

.content { min-width: 0; padding: 32px 40px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.page-head .actions { display: flex; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

/* Küçük ekran: kenar menü üstte, yatay. */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  /* minmax(0, 1fr): uzun bir öğe sütunu ekrandan taşırmasın. */
  .shell { grid-template-columns: minmax(0, 1fr); }
  /* relative: kenar menünün gölge katmanı (::after) yalnızca menüyü kaplasın. */
  .sidebar { position: relative; height: auto; padding: 14px; }
  .account { padding: 10px 4px 0; margin-top: 8px; }
  .sidebar .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .sidebar .nav-label { display: none; }
  .sidebar .nav a { white-space: nowrap; }
  .brand { padding-bottom: 12px; }
  .content { padding: 22px 16px 56px; }
  h1 { font-size: 1.55rem; }
}

/* -----------------------------------------------------------------------------
   Kartlar, düğmeler, form alanları
   ----------------------------------------------------------------------------- */

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .hint { font-size: 0.85rem; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--warn);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.92rem var(--sans); padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--green-800);
  text-decoration: none; transition: transform 0.05s, background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--green-500); color: var(--green-900); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: none; box-shadow: var(--ring);
}
.btn-primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-950); }
.btn-ghost { border-color: transparent; background: transparent; padding: 8px 10px; }
.btn-ghost:hover { background: var(--cream-deep); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { color: var(--danger); background: var(--danger-100); border-color: transparent; }
.btn-block { width: 100%; padding: 12px 16px; }
.btn-sm { padding: 6px 10px; font-size: 0.84rem; }

label.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field .help { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="password"], input[type="date"], input:not([type]), select, textarea {
  display: block; width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[readonly] { background: var(--cream); color: var(--muted); }
textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
textarea.arabic, .arabic {
  font-family: var(--arabic); font-size: 1.45rem; line-height: 2.1; direction: rtl; text-align: right;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background 0.2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch input:checked { background: var(--green-700); }
.switch input:checked::after { transform: translateX(18px); }
.switch strong { display: block; font-size: 0.95rem; }
.switch small { color: var(--muted); }

/* -----------------------------------------------------------------------------
   Bildirimler, rozetler
   ----------------------------------------------------------------------------- */

.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px;
  margin: 0 0 20px; font-size: 0.92rem; border: 1px solid transparent;
}
.flash.ok { background: var(--green-100); color: var(--green-900); border-color: #cfe3d7; }
.flash.err { background: var(--danger-100); color: var(--danger); border-color: #efcdc6; }
.flash.warn { background: var(--warn-100); color: var(--warn); border-color: #f0dfb0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; background: var(--cream-deep); color: var(--muted); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill.ok { background: var(--green-100); color: var(--green-700); }
.pill.warn { background: var(--warn-100); color: var(--warn); }
.pill.gold { background: var(--gold-100); color: #7a5c14; }
.pill.danger { background: var(--danger-100); color: var(--danger); }

/* -----------------------------------------------------------------------------
   Tablolar
   ----------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #faf6ec; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fcf9f1; }
tr.inactive td { color: var(--muted); }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; margin: 0; }
td .primary-link { font-weight: 600; text-decoration: none; color: var(--ink); }
td .primary-link:hover { color: var(--green-700); text-decoration: underline; }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty .icon-lg { color: var(--gold); margin-bottom: 8px; }

.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filters a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); text-decoration: none; color: var(--ink-soft); font-size: 0.88rem; font-weight: 500;
}
.filters a.active { background: var(--green-900); color: var(--gold-light); border-color: var(--green-900); }

/* -----------------------------------------------------------------------------
   Ana sayfa
   ----------------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.stat .mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); flex: none; }
.stat.attention .mark { background: var(--gold-100); color: var(--warn); }
.stat strong { display: block; font: 600 1.9rem/1 var(--serif); color: var(--green-900); }
.stat span { font-size: 0.86rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Gün şeridi: önümüzdeki günlerin içerik durumu. */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px;
  border-radius: 12px; border: 1px dashed var(--line-strong); background: #fff; text-decoration: none; color: var(--muted);
  transition: border-color 0.15s, transform 0.15s;
}
.day:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--ink); }
.day .wd { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.day .dn { font: 600 1.35rem/1.1 var(--serif); color: var(--ink-soft); }
.day .mo { font-size: 0.72rem; }
.day.published { border: 1px solid #cfe3d7; background: var(--green-100); }
.day.published .dn { color: var(--green-700); }
.day.draft { border: 1px solid #f0dfb0; background: var(--warn-100); }
.day.draft .dn { color: var(--warn); }
.day.today { box-shadow: 0 0 0 2px var(--gold); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px dashed var(--line-strong); background: #fff; }
.legend i.published { background: var(--green-100); border: 1px solid #cfe3d7; }
.legend i.draft { background: var(--warn-100); border: 1px solid #f0dfb0; }

/* -----------------------------------------------------------------------------
   Uygulamadaki "Bugün" kartının önizlemesi
   ----------------------------------------------------------------------------- */

.preview-sticky { position: sticky; top: 24px; }
.phone {
  border-radius: 28px; padding: 22px 20px 26px; color: var(--cream);
  background: var(--pattern) center / 88px, linear-gradient(165deg, var(--green-800), var(--green-950));
  background-blend-mode: soft-light, normal;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(227, 200, 127, 0.25);
}
.phone .date { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 243, 234, 0.65); margin-bottom: 14px; }
.verse { background: rgba(255, 253, 248, 0.06); border: 1px solid rgba(227, 200, 127, 0.22); border-radius: 18px; padding: 16px 16px 14px; margin-bottom: 12px; }
.verse .label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.verse .arabic { color: var(--gold-light); font-size: 1.5rem; line-height: 2; margin-bottom: 8px; }
.verse blockquote { margin: 0; font: italic 1.08rem/1.55 var(--serif); color: #fff; }
.verse cite { display: block; font-style: normal; font-size: 0.8rem; color: rgba(247, 243, 234, 0.7); margin-top: 8px; }
.verse .note { font-size: 0.82rem; color: rgba(247, 243, 234, 0.75); margin-top: 8px; border-top: 1px solid rgba(227, 200, 127, 0.15); padding-top: 8px; }
.verse.soz { background: rgba(201, 162, 78, 0.12); }
.placeholder { color: rgba(247, 243, 234, 0.4); font-style: italic; }

/* -----------------------------------------------------------------------------
   Yazışma (sorular)
   ----------------------------------------------------------------------------- */

.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 14px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.msg header { font-size: 0.78rem; color: var(--warn); font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; }
.msg header time { color: var(--muted); font-weight: 400; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg.asker { border-bottom-left-radius: 6px; }
.msg.staff { align-self: flex-end; background: var(--green-100); border-color: #cfe3d7; border-bottom-right-radius: 6px; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.9rem; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }

/* -----------------------------------------------------------------------------
   Giriş ekranı
   ----------------------------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; color: var(--cream);
  background: var(--pattern) center / 88px, radial-gradient(120% 90% at 20% 0%, var(--green-700), var(--green-950) 70%);
  background-blend-mode: soft-light, normal;
}
.auth-art .brand { padding: 0; }
.auth-art .brand img { width: 56px; height: 56px; border-radius: 14px; }
.auth-art .ayah { max-width: 460px; }
.auth-art .ayah .arabic { color: var(--gold-light); font-size: 2.4rem; line-height: 1.8; text-align: left; direction: rtl; }
.auth-art .ayah blockquote { margin: 10px 0 0; font: italic 1.5rem/1.45 var(--serif); }
.auth-art .ayah cite { display: block; font-style: normal; color: var(--gold); margin-top: 10px; letter-spacing: 0.04em; }
.auth-art footer { font-size: 0.8rem; color: rgba(247, 243, 234, 0.55); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--cream); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.auth-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 22px; gap: 28px; }
  .auth-art .ayah .arabic { font-size: 1.8rem; }
  .auth-art .ayah blockquote { font-size: 1.2rem; }
}

/* İlk şifrenin bir kez gösterildiği kutu. */
.secret {
  display: inline-block; font: 600 1.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em;
  background: var(--green-900); color: var(--gold-light); padding: 18px 24px; border-radius: 14px;
  user-select: all; margin: 6px 0 18px; box-shadow: var(--shadow-lg);
}

/* HTMX: istek sürerken hafif soluklaştır. */
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }

/* ---- Sohbetler ---- */
.upload-status { margin: 4px 0 16px; }
.upload-status progress { width: 100%; height: 10px; accent-color: var(--green-700); }
.audio { width: 100%; }
.stack { display: grid; gap: 10px; }
.stack form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.inline-form input { flex: 1; min-width: 0; }
input[type="file"] { display: block; width: 100%; padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--cream); }

/* ---- Eserler ---- */
.section-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.section-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.section-list .row-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.section-list .row-actions form { margin: 0; }
textarea.reading { font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; }
