@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --blue: #22a2e6;
  --blue-dark: #0b6ea8;
  --blue-soft: #e8f4fc;
  --green: #8cc91c;
  --green-dark: #5e9f13;
  --green-soft: #eef8e2;
  --ink: #17314f;
  --soft: #4a6a88;
  --muted: #7591ab;
  --bg: #f4f9fd;
  --panel: #ffffff;
  --line: #d7e8f4;
  --line-strong: #bcd6e8;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --warn: #b54708;
  --warn-soft: #fff5e6;
  --slate-soft: #eef2f6;
  --radius: 1.1rem;
  --radius-sm: 0.7rem;
  --shadow: 0 18px 44px rgba(38, 98, 155, 0.1);
  --shadow-pop: 0 16px 40px rgba(23, 49, 79, 0.16);
  --topbar-h: 66px;
  --font-body: Manrope, 'Segoe UI', sans-serif;
  --font-display: Sora, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 70px); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
  background:
    radial-gradient(circle at 0 0, rgba(34, 162, 230, 0.14), transparent 26%),
    linear-gradient(#f8fdff, #eef8ff 60%, #f6fcff);
  background-attachment: fixed;
}

h1, h2, h3, strong { font-family: var(--font-display); color: var(--ink); }
h1 { margin: 0.3rem 0 0; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; }
h2 { margin: 0 0 1rem; font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue-dark); }
img { max-width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; color: var(--muted); }

:focus-visible { outline: 3px solid rgba(11, 110, 168, 0.45); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.7rem; }

.icon { flex: none; display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--topbar-h);
  padding: 0.55rem max(1rem, calc((100% - 1180px) / 2));
  background: rgba(250, 253, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 176px; max-height: 48px; object-fit: contain; }
.topbar-menu { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 0.3rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav-link.is-active {
  background: var(--blue-soft);
  border-color: rgba(11, 110, 168, 0.22);
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.topbar-end { display: flex; align-items: center; gap: 0.9rem; }
.user-chip { display: inline-flex; align-items: center; gap: 0.6rem; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--green-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.user-data { display: grid; line-height: 1.2; }
.user-data strong { font-size: 0.85rem; color: var(--ink); }
.user-data small { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.logout-form { margin: 0; }
.nav-toggle { display: none; }

/* ---------- Layout ---------- */
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.page-heading .subtitle { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0.6rem 0 0; color: var(--soft); font-size: 0.95rem; }
.heading-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.eyebrow { margin: 0; color: var(--green-dark); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.inline-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.inline-link .icon { width: 15px; height: 15px; }

/* ---------- Panels & alerts ---------- */
.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.alert::before { content: ''; flex: none; width: 0.55rem; height: 0.55rem; margin-top: 0.45rem; border-radius: 50%; background: currentColor; }
.alert.error { background: var(--danger-soft); border-color: #f6c7c3; color: var(--danger); }
.alert.success { background: var(--green-soft); border-color: #d3e9ae; color: var(--green-dark); }
.empty-state { display: grid; justify-items: center; gap: 0.35rem; padding: 2.4rem 1rem; text-align: center; }
.empty-state .empty-title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.empty-state .empty-text { margin: 0 0 0.8rem; color: var(--muted); max-width: 46ch; }
.empty { color: var(--muted); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: #0a5d8f; border-color: #0a5d8f; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 110, 168, 0.22); }
.button .icon { width: 16px; height: 16px; }
.button.secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { background: var(--blue-soft); border-color: rgba(11, 110, 168, 0.35); color: var(--blue-dark); box-shadow: none; }
.button.ghost { background: transparent; border-color: transparent; color: var(--soft); }
.button.ghost:hover { background: var(--slate-soft); color: var(--ink); box-shadow: none; transform: none; }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.danger:hover { background: #96190f; border-color: #96190f; box-shadow: 0 8px 18px rgba(180, 35, 24, 0.22); }
.button.small { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.84rem; }
.link-button { border: 0; background: none; padding: 0; color: var(--blue-dark); font: inherit; font-weight: 700; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.danger-text { color: var(--danger) !important; }
button { font-family: inherit; }

/* ---------- Toolbar (tabs + filters) ---------- */
.toolbar-panel { padding: 1rem 1.1rem 0.9rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--slate-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.tab.is-active { background: var(--blue-dark); color: #fff; box-shadow: 0 6px 14px rgba(11, 110, 168, 0.25); }
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}
.tab.is-active .tab-count { background: rgba(255, 255, 255, 0.24); }
.filters { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.field { position: relative; display: inline-flex; align-items: center; }
.field .icon { position: absolute; left: 0.75rem; color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.search-field input { width: min(330px, 62vw); padding-left: 2.2rem; }
.result-count { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; }

/* ---------- Form controls ---------- */
label { display: grid; gap: 0.4rem; color: var(--ink); font-weight: 700; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, textarea:hover, select:hover { border-color: #9fc3dc; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(11, 110, 168, 0.16); outline: none; }
textarea { resize: vertical; }
select { appearance: auto; }
input[type="file"] { padding: 0.55rem 0.7rem; }
input[type="file"]::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--slate-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
input[type="file"]::file-selector-button:hover { background: var(--blue-soft); border-color: rgba(11, 110, 168, 0.35); color: var(--blue-dark); }
.hint { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.form-grid > .button { grid-column: 1 / -1; justify-self: start; }
.checkbox { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--ink); }
.checkbox input { width: auto; min-height: 0; accent-color: var(--green-dark); }
.inline-form { display: flex; gap: 0.5rem; align-items: center; }
.inline-form input { min-width: 0; }

/* ---------- Tables ---------- */
.table-panel { padding: 0.6rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
tbody td { padding: 0.95rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: rgba(232, 244, 252, 0.55); }
.cell-title { display: flex; align-items: center; gap: 0.45rem; }
.title-link { color: var(--ink); font-weight: 800; text-decoration: none; font-family: var(--font-display); font-size: 0.98rem; }
.title-link:hover { color: var(--blue-dark); text-decoration: underline; }
.cell-meta { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.35rem; flex-wrap: wrap; }
.featured-mark { display: inline-flex; color: var(--green-dark); }
.featured-mark .icon { width: 16px; height: 16px; fill: rgba(140, 201, 28, 0.35); }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.status::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.status-draft { background: var(--slate-soft); color: #4b6280; }
.status-published { background: var(--green-soft); color: var(--green-dark); }
.status-unpublished { background: var(--warn-soft); color: var(--warn); }
.status-archived { background: #eceff3; color: #6b788c; }
.metrics { display: flex; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.metrics li { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--soft); font-size: 0.85rem; font-weight: 700; }
.metrics .icon { width: 15px; height: 15px; color: var(--muted); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * { vertical-align: middle; }
.row-actions .row-menu { display: inline-block; margin-left: 0.45rem; }
.time-cell time { color: var(--soft); font-size: 0.88rem; font-weight: 600; }

/* ---------- Row action menu ---------- */
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; padding-inline: 0.6rem; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu[open] summary { background: var(--blue-soft); color: var(--blue-dark); border-color: rgba(11, 110, 168, 0.35); transform: none; box-shadow: none; }
.row-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 25;
  min-width: 190px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
}
.row-menu-form { margin: 0; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-item .icon { width: 16px; height: 16px; color: var(--muted); }
.menu-item:hover { background: var(--blue-soft); color: var(--blue-dark); }
.menu-item:hover .icon { color: var(--blue-dark); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- Editor ---------- */
.section-nav {
  position: sticky;
  top: calc(var(--topbar-h) + 0.5rem);
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(38, 98, 155, 0.1);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.section-nav a.is-current { background: var(--blue-dark); color: #fff; }
.section-nav-index {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}
.section-nav a.is-current .section-nav-index { background: rgba(255, 255, 255, 0.22); }

.editor-form { padding: 0; overflow: hidden; display: block; }
.editor-section { display: grid; gap: 1rem; padding: 1.7rem 1.8rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 74px); }
.editor-section-heading { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 0.25rem; }
.editor-section-heading > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
}
.editor-section-heading h2 { margin: 0.1rem 0 0.2rem; font-size: 1.12rem; }
.editor-section-heading p { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.editor-section .checkbox { align-self: center; min-height: 46px; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8fcfe; }
.editor-section details { display: grid; gap: 1rem; padding: 0.9rem 1rem; background: #f8fcfe; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.editor-section details summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); }
.image-preview { max-width: min(100%, 520px); max-height: 280px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.8rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.editor-actions-info { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; min-width: 0; }
.editor-actions-info .hint { font-weight: 600; }
.editor-actions-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Rich editor ---------- */
.rich-editor .ql-toolbar.ql-snow { position: sticky; top: calc(var(--topbar-h) + 64px); z-index: 8; border-color: var(--line) !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: #fff; }
.rich-editor .ql-container.ql-snow { border-color: var(--line) !important; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.rich-editor .ql-editor { max-width: 780px; min-height: 420px; padding: 1.5rem 1.7rem; line-height: 1.85; }
.rich-editor .ql-editor h2 { font-size: 1.5rem; }
.rich-editor .ql-editor h3 { font-size: 1.25rem; }
.rich-editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }

/* ---------- Login ---------- */
.login { max-width: 430px; margin: 7vh auto; }
.login h1 { margin-bottom: 0.4rem; }
.login form { display: grid; gap: 1rem; }
.login .button { width: 100%; }

/* ---------- Tables (secondary modules) ---------- */
.empty, .panel > h2:first-child { margin-top: 0; }

@media (max-width: 1024px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { align-self: flex-start; }
  .filters { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
}

@media (max-width: 850px) {
  .topbar { flex-wrap: wrap; gap: 0.6rem; padding-block: 0.6rem; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .topbar-menu { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0.8rem; padding-top: 0.4rem; }
  body.nav-open .topbar-menu { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; overflow: visible; }
  .nav-link { justify-content: flex-start; border-radius: var(--radius-sm); }
  .topbar-end { flex-wrap: wrap; }
  .user-chip { flex: 1; }
  .brand img { width: 150px; }

  main { width: min(100% - 1.25rem, 1180px); padding-top: 1.25rem; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; }
  .editor-section { padding: 1.2rem 1rem; }
  .editor-actions { flex-direction: column; align-items: stretch; padding: 0.9rem 1rem; }
  .editor-actions-buttons { justify-content: stretch; }
  .editor-actions-buttons .button { flex: 1; }
  .rich-editor .ql-toolbar.ql-snow { top: 0; }
  .section-nav { top: calc(var(--topbar-h) + 0.35rem); }

  .table-panel { padding: 0.4rem; }
  .table-scroll { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border: 0; }
  tbody td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  tbody td:first-child { display: block; padding-bottom: 0.6rem; }
  tbody td:first-child::before { display: none; }
  .row-actions { display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 0.45rem; flex-wrap: wrap; padding-top: 0.5rem; text-align: left; }
  .row-actions::before { display: none; }
  .row-menu-pop { right: auto; left: 0; }
}

@media (max-width: 560px) {
  .tabs { width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .button { width: 100%; }
  .section-nav a span:last-child { display: none; }
  .section-nav a { padding-inline: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
