:root {
  --red: #e6322a;
  --amber: #f39200;
  --ink: #09151f;
  --cyan: #00a6c7;
  --violet: #44346a;
  --ember: #e94e1b;
  --red-hot: #e30613;
  --red-deep: #be1622;
  --red-mid: #e52d1b;
  --red-dark: #961e14;
  --paper: #ffffff;
  --cream: #fff4ea;
  --wash: #e7f3f6;
  --blush: #f6d5d2;
  --body: #1d1d1b;
  --line: #e4e0dc;
  --whatsapp: #25d366;
  --header-h: 76px;
  --wrap: 1120px;
  --shadow: 0 16px 40px rgba(9, 21, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  padding: 0 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  padding: 4px 8px 4px 0;
}
.logo img { width: 42px; height: 55px; }
.logo strong { display: block; font-size: 18px; letter-spacing: 0.02em; }
.logo small {
  display: block;
  max-width: 28ch;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--body);
}
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.site-nav a,
.nav-drop > button {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-drop { position: relative; }
.nav-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop > button::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.site-nav a.is-active,
.site-nav a:hover,
.nav-drop.is-active > button,
.nav-drop.is-open > button,
.nav-drop > button:hover { background: var(--red); color: white; }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.nav-account { margin-left: 16px; }
.nav-account .nav-menu { left: auto; right: 0; }
.nav-drop.is-open > .nav-menu,
.nav-drop:hover > .nav-menu,
.nav-drop:focus-within > .nav-menu { display: grid; }
.nav-menu a,
.nav-menu .nav-button { width: 100%; text-align: left; }
.nav-menu form { margin: 0; }
.site-nav a.nav-report {
  margin-left: 8px;
  border: 2px solid var(--red);
  color: var(--red);
}
.site-nav a.nav-report:hover,
.site-nav a.nav-report.is-active { background: var(--red); color: white; }
.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 21, 31, 0.88) 0%, rgba(9, 21, 31, 0.55) 48%, rgba(150, 30, 20, 0.28) 100%),
    url("assets/hero.jpg") center 22% / cover no-repeat;
}
.hero-copy {
  width: min(720px, calc(100% - 64px));
  margin-left: max(32px, calc((100% - var(--wrap)) / 2));
  padding: calc(130px + var(--alert-offset, 0px)) 0 90px;
}
.hero h1 { color: white; font-size: clamp(40px, 5vw, 56px); max-width: 16ch; }
.hero p { font-size: 22px; max-width: 38ch; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--red); border-color: var(--red); color: white; }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-secondary { background: transparent; border-color: var(--amber); color: var(--amber); }
.btn-secondary:hover { background: var(--amber); color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: white; }
.btn-ink:hover { background: #142433; }

.ribbon {
  height: 72px;
  background:
    linear-gradient(105deg, transparent 0 18%, var(--red-dark) 18% 34%, var(--red) 34% 62%, var(--blush) 62% 74%, var(--wash) 74% 100%);
}
.ribbon-quiet { height: 48px; }

.intro { background: var(--cream); padding: 48px 0 64px; }
.intro-card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 40px 48px;
}
.intro-card p:last-child { margin: 0; font-size: 22px; color: var(--ink); }

.services { padding: 72px 0; }
.services h2, .team h2, .contact h2 {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 28px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.service-grid article {
  grid-column: span 2;
  background: var(--paper);
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow);
  padding: 22px 22px 26px;
}
.service-grid article:nth-child(4),
.service-grid article:nth-child(5) { grid-column: span 3; }
.service-grid span {
  color: var(--amber);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.service-grid h3 { font-size: 26px; margin: 8px 0 10px; max-width: 18ch; }
.service-grid p { margin: 0; }

.team { background: var(--wash); padding: 72px 0; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.team article {
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow);
}
.avatar {
  width: 84px;
  height: 84px;
  margin: 0 0 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.team h3 { font-size: 30px; text-transform: none; letter-spacing: 0.01em; }
.role { margin: 6px 0 8px; color: var(--red); font-weight: 700; }

.contact { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.contact h3 {
  color: var(--red);
  font-size: 22px;
  margin: 0 0 16px;
}
address { font-style: normal; }
address a { color: var(--ink); font-weight: 700; }
address hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--ink); font-weight: 600; }
input, textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 2px;
  background: transparent;
  color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--cyan); }
select {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 28px 8px 2px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2309151f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
  appearance: none;
  cursor: pointer;
}
select:focus { outline: none; border-bottom-color: var(--cyan); }
.form-note { min-height: 1.4em; margin: 0; font-weight: 700; color: var(--ink); }

.closer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--red);
  color: white;
  padding: 36px max(20px, calc((100% - var(--wrap)) / 2));
}
.closer p {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer { background: var(--ink); color: white; }
.footer-grid {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: 22px;
}
.site-footer .logo {
  display: flex;
  background: transparent;
  color: white;
  align-items: flex-start;
}
.site-footer .logo img { background: var(--paper); padding: 4px; }
.site-footer .logo small,
.site-footer .logo strong { color: white; }
.site-footer .footer-grid a:not(.logo),
.site-footer span { display: block; color: white; text-decoration: none; margin-top: 6px; }
.footer-label {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.legal {
  margin: 0;
  background: #142433;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal a { color: white; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 18px; }

.whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  padding: 12px 16px;
}

.nav-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.nav-button:hover { background: var(--red); color: white; }
form.inline { display: inline; margin: 0; }

.page { padding: calc(var(--header-h) + var(--alert-offset, 0px) + 36px) 0 72px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; }
.page h2 { font-size: clamp(28px, 3vw, 36px); margin: 32px 0 12px; }
.lede { font-size: 20px; max-width: 62ch; }
.narrow { max-width: 640px; }
input.code {
  letter-spacing: 0.4em;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}
.mail-log {
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.45;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions a { color: var(--red); font-weight: 700; }

.feed { background: var(--wash); padding: 72px 0; }
.feed h2 { font-size: clamp(32px, 4vw, 40px); margin: 0 0 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h2, .card h3 { font-size: 28px; }
.card p { margin: 0; }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card a.more { color: var(--red); font-weight: 700; margin-top: auto; }
.meta {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}
.prose-body { max-width: 68ch; }
.prose-body p, .prose-body ul, .prose-body ol, .prose-body blockquote { margin: 0 0 0.8rem; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { max-width: 68ch; }
.ql-editor { min-height: 10rem; font: 1rem/1.5 "Source Sans 3", sans-serif; }
.cover-wide { width: 100%; max-height: 420px; object-fit: cover; margin: 12px 0 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.gallery figure { margin: 0; }
.thumb { width: 220px; margin: 8px 0; }
.lesson {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 0 0 16px;
  border-top: 4px solid var(--amber);
}
.lesson h2 { margin-top: 0; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.notice { background: var(--cream); padding: 12px 14px; border-left: 4px solid var(--amber); }
.notice-bad { background: var(--blush); border-left-color: var(--red); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--paper); }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}
.admin-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.admin-sections {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.admin-toggle { display: none; }
.admin-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.admin-pill,
.admin-drop > summary { display: inline-flex; }
.admin-pill,
.admin-drop > summary,
.admin-toggle {
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-here {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}
.admin-drop { position: relative; }
.admin-drop > summary { list-style: none; }
.admin-drop > summary::-webkit-details-marker { display: none; }
.admin-drop > summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.admin-pill:hover,
.admin-drop > summary:hover,
.admin-drop:hover > summary { background: #fff; }
.admin-pill.is-active,
.admin-drop.is-active > summary,
.admin-drop[open] > summary,
.admin-drop.is-active:hover > summary { background: var(--red); color: #fff; }
.admin-pill.is-active:hover,
.admin-drop[open] > summary:hover,
.admin-drop.is-active[open] > summary { background: var(--red-deep); color: #fff; }
.admin-pill:focus-visible,
.admin-drop > summary:focus-visible,
.admin-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.admin-site { margin-left: auto; color: #3c4650; }
.admin-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 8px 6px 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.admin-menu::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(9, 21, 31, 0.12);
}
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
}
.admin-menu a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
}
.admin-menu a:hover { background: var(--wash); }
.admin-menu a.is-active,
.admin-menu a.is-active:hover { background: var(--ink); color: #fff; }
.admin-menu a.is-active::before { background: var(--red); }
.admin-menu a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (min-width: 961px) {
  .admin-drop:hover > .admin-menu,
  .admin-drop:focus-within > .admin-menu,
  .admin-drop[open] > .admin-menu { display: grid; }
}
@media (max-width: 960px) {
  .admin-bar { position: relative; border-radius: 16px; }
  .admin-toggle { display: inline-flex; flex: 1; justify-content: flex-start; background: var(--red); color: #fff; }
  .admin-toggle .admin-here { margin-left: auto; }
  .admin-sections {
    display: none;
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(9, 21, 31, 0.14);
  }
  .admin-bar.is-open .admin-sections { display: flex; }
  .admin-drop,
  .admin-pill,
  .admin-drop > summary { width: 100%; }
  .admin-pill,
  .admin-drop > summary { justify-content: flex-start; }
  .admin-drop > summary .admin-here { margin-left: auto; }
  .admin-site { margin-left: 0; }
  .admin-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 8px 28px;
  }
  .admin-menu::before { display: none; }
  .admin-drop[open] > .admin-menu { display: grid; }
}
.editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; border-bottom: 2px solid var(--line); }
.editor-tabs a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 10px 14px;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.editor-tabs a.is-active { border-bottom-color: var(--red); color: var(--red); }
.editor-tabs a:hover { color: var(--red); }
.question-form { max-width: 760px; }
.q-card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
  border-top: 4px solid var(--amber);
}
.q-card h2 { font-size: 28px; margin-bottom: 14px; }
.q-split { display: grid; grid-template-columns: 1fr 160px; gap: 16px; }
.q-preview {
  min-height: 180px;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.q-preview img { max-height: 280px; width: auto; margin: 0 auto; }
.q-preview p { margin: 0; color: var(--ink); font-weight: 700; }
.q-preview:not(.is-empty) p { display: none; }
.q-preview.is-empty img { display: none; }
.option-list { display: grid; gap: 10px; }
.option-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--wash);
}
.option-row input[type="text"] { background: var(--paper); padding: 8px 10px; border: 1px solid var(--line); }
.q-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  position: relative;
}
.q-toggle input { position: absolute; opacity: 0; width: 44px; height: 26px; }
.q-switch {
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  flex: 0 0 auto;
}
.q-switch::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
}
.q-toggle input:checked + .q-switch { background: var(--red); }
.q-toggle input:checked + .q-switch::after { transform: translateX(18px); }
.q-toggle input:focus-visible + .q-switch { outline: 2px solid var(--cyan); outline-offset: 2px; }
.q-remove {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.q-remove:disabled { opacity: 0.35; cursor: not-allowed; }
.q-save { min-height: 52px; width: 100%; font-size: 18px; }
@media (max-width: 700px) {
  .q-split, .option-row { grid-template-columns: 1fr; }
  .q-remove { justify-self: start; }
}
.material-form { max-width: 760px; }
.m-panel,
.m-sub {
  height: 0;
  overflow: hidden;
  opacity: 0;
  interpolate-size: allow-keywords;
  transition: height 0.28s ease, opacity 0.22s ease;
}
.m-panel.is-active,
.m-sub.is-active { height: auto; overflow: visible; opacity: 1; }
.m-sub.is-active { margin-top: 12px; }
.video-source { display: flex; flex-wrap: wrap; gap: 16px; }
.drop-zone {
  position: relative;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 160px;
  padding: 22px;
  text-align: center;
  border: 2px dashed var(--cyan);
  background: var(--wash);
  cursor: pointer;
  font-weight: 700;
}
.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone.is-drag { background: var(--cream); border-color: var(--amber); }
.drop-zone [data-drop-name]:empty { display: none; }
.drop-zone [data-drop-name] { color: var(--ink); font-weight: 600; }
.lesson-editor textarea { min-height: 220px; }
.quiz { display: grid; gap: 16px; }
.quiz fieldset {
  border: 0;
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow);
  padding: 16px 18px 20px;
  margin: 0;
  background: var(--paper);
}
.quiz legend {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 24px;
  text-transform: uppercase;
  padding: 0;
}
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
input[type="radio"], input[type="checkbox"], input[type="file"] { border: 0; width: auto; }
.btn-small { min-height: 36px; padding: 0 10px; font-size: 15px; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; }
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 20px;
}
.account-email { margin: 0; font-size: 20px; }
.account-block { margin-top: 28px; }
.account-block > h2 { margin-top: 0; }
.account-metrics,
.account-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.account-card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}
.account-card h3 { font-size: 28px; margin: 0 0 12px; }
.account-card form { margin: 0; }
.account-card .btn,
.account-danger .btn { justify-self: start; }
.account-help { margin: -4px 0 14px; font-size: 16px; }
.account-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.account-empty svg { width: 36px; height: 36px; color: var(--cyan); }
.account-empty p { margin: 0; }
.account-danger {
  margin-top: 28px;
  padding: 22px;
  background: var(--blush);
  border: 1px solid var(--red);
}
.account-danger h2 { margin: 0 0 12px; }
.account-danger > p { margin: 0 0 16px; max-width: 68ch; }
.account-danger form { max-width: 420px; margin-top: 16px; }
.dash-next { margin-bottom: 16px; }
.dash-next h2 { margin: 0; }
.dash-next p { margin: 8px 0 0; }
.dash-next .btn { margin-top: 14px; }
.dash-sub { margin: 22px 0 12px; font-size: 24px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  border-top: 4px solid var(--amber);
  color: var(--ink);
}
.dash-stat strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.dash-stat.is-alert { border-top-color: var(--red); }
.dash-stat:hover { outline: 2px solid var(--ink); }
.notice form { margin-top: 12px; }
.page .btn-secondary, .feed .btn-secondary { color: var(--ink); }
.cert-card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 36px;
  border-top: 8px solid var(--red);
  max-width: 720px;
}
.cert-card h2 { margin-top: 0; }
.alert-stack {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 19;
}
.alert-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  min-height: 64px;
  padding: 12px 28px;
  background: var(--red);
  color: white;
}
.alert-banner strong {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 18px;
}
.quiz-image { width: 100%; max-height: 360px; object-fit: contain; margin: 8px 0 12px; background: var(--cream); }
.quiz-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 22px; align-items: start; }
.quiz-side {
  position: sticky;
  top: 96px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 16px;
}
.quiz-person { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.progress { height: 8px; background: var(--line); margin: 8px 0; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); }
.quiz-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quiz-grid button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.quiz-grid button.is-done { background: var(--wash); }
.quiz-grid button.is-current { border-color: var(--red); color: var(--red); font-weight: 700; }
.quiz-card.is-hidden { display: none; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
}
.tf-card input { position: absolute; opacity: 0; }
.tf-card:has(input:checked) { border-color: var(--red); background: var(--blush); }
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(9, 21, 31, 0.55);
  padding: 20px;
}
.quiz-modal[hidden] { display: none; }
.quiz-dialog { background: var(--paper); padding: 22px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.quiz-review article { background: var(--paper); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px; }
.quiz-review h3 { margin: 0 0 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; }
.pill-pass { background: var(--wash); color: var(--ink); }
.pill-fail { background: var(--blush); color: var(--red-dark); }
@media (max-width: 800px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-side { position: static; }
  .tf-row { grid-template-columns: 1fr; }
}
.lesson-list { list-style: none; padding: 0; margin: 0 0 18px; }
.lesson-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.lesson-list .is-current a { font-weight: 700; }
.comment {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 0 12px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-drop:hover > .nav-menu,
  .nav-drop:focus-within > .nav-menu { display: none; }
  .nav-drop.is-open > .nav-menu { display: grid; }
  .nav-menu,
  .nav-account .nav-menu {
    position: static;
    min-width: 0;
    margin: 0 0 6px;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
  }
  .nav-account,
  .nav-report { margin-left: 0; }
  .nav-report { align-self: flex-start; }
}

@media (max-width: 800px) {
  .logo small { display: none; }
  .hero-copy { width: calc(100% - 36px); margin-left: 18px; }
  .service-grid, .team-grid, .contact-grid, .footer-grid, .card-grid,
  .account-metrics, .account-settings { grid-template-columns: 1fr; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .service-grid article,
  .service-grid article:nth-child(4),
  .service-grid article:nth-child(5) { grid-column: auto; }
  .intro-card { padding: 28px 20px; }
  .closer { flex-direction: column; align-items: flex-start; }
}

.roster { display: grid; gap: 18px; margin-top: 8px; }
.roster-block {
  background: #f7f6f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.roster-block > h2 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  color: #3c4650;
  margin: 0 0 12px;
}
.roster-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #eef0f2;
  color: #5c656e;
  border-radius: 8px;
}
.roster-empty svg { width: 22px; height: 22px; flex: none; }
.roster-empty p { margin: 0; }
.roster .table-wrap.roster-scroll {
  max-height: 28rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.roster table.data { border-collapse: separate; border-spacing: 0; }
.roster table.data th,
.roster table.data td {
  padding: 6px 10px;
  vertical-align: middle;
}
.roster table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f6f8;
  font-size: 14px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.roster table.data td { font-size: 15px; }
.roster-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.roster-actions form,
.company-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.company-form select {
  width: 11.5rem;
  min-height: 0;
  margin: 0;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 15px;
  background-color: transparent;
}
.company-status { min-width: 4.5rem; font-size: 13px; font-weight: 600; color: #2f6b45; }
.company-status.is-bad { color: var(--red-deep); }
.btn-quiet-danger {
  background: transparent;
  border-color: #e7b4b0;
  color: #9a3b36;
}
.btn-quiet-danger:hover { background: #fdf2f1; border-color: var(--red); color: var(--red-deep); }
.roster-dialog {
  width: min(100% - 2rem, 28rem);
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
}
.roster-dialog::backdrop { background: rgba(9, 21, 31, 0.45); }
.roster-dialog form { padding: 22px; }
.roster-dialog h2 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  margin: 0 0 8px;
}
.roster-dialog-name { margin: 0 0 14px; color: #3c4650; }
.roster-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.roster > .actions { margin: 0; }

.cuentas {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
.cuentas-side { display: grid; gap: 14px; }
.cuentas-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 21, 31, 0.06);
  padding: 18px;
}
.cuentas-card > h2 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  color: #3c4650;
  margin: 0 0 14px;
}
.cuentas-form { display: grid; gap: 12px; margin: 0; }
.cuentas-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cuentas-form label,
.cuentas-dialog label { font-size: 14px; }
.cuentas-form input,
.cuentas-form select,
.cuentas-dialog input,
.cuentas-dialog select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #fff;
  min-height: 40px;
}
.cuentas-form select,
.cuentas-dialog select {
  padding-right: 32px;
  background-position: right 10px center;
}
.cuentas-form input:focus,
.cuentas-form select:focus,
.cuentas-dialog input:focus,
.cuentas-dialog select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 166, 199, 0.15);
}
.cuentas-help { margin: 0; font-size: 13px; font-weight: 400; color: #64748b; }
.cuentas-help a { color: var(--ink); }
.cuentas-req { color: var(--red); text-decoration: none; }
.cuentas-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cuentas-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
}
.cuentas-metric strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.cuentas-metric span { font-size: 13px; font-weight: 600; color: #64748b; }
.cuentas-metric.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cuentas-directory .table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}
.cuentas table.data th { background: #f8fafc; font-size: 14px; }
.role-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.role-badge.is-admin { background: #fde8e8; color: #9f1239; }
.role-badge.is-instructor { background: #e8eef5; color: #334155; }
.role-badge.is-student { background: #eef6f1; color: #166534; }
.role-badge.is-off { background: #eef0f2; color: #64748b; margin-left: 6px; }
.row-menu { position: relative; }
.row-menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary svg { width: 16px; height: 16px; }
.row-menu-panel {
  position: absolute;
  right: 0;
  z-index: 4;
  min-width: 11rem;
  margin-top: 4px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.row-menu-panel form { display: block; margin: 0; }
.row-menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.row-menu-item:hover { background: #f4f6f8; }
.row-menu-item.is-danger { color: #9a3b36; }
.cuentas-dialog { width: min(100% - 2rem, 34rem); }
@media (max-width: 900px) {
  .cuentas,
  .cuentas-pair,
  .cuentas-metrics { grid-template-columns: 1fr; }
}

.login-card {
  width: min(100%, 26rem);
  margin: 12px auto 0;
  padding: 28px 28px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(9, 21, 31, 0.08);
}
.login-card h1 {
  font-size: 40px;
  margin: 0 0 8px;
}
.login-lede {
  margin: 0 0 20px;
  color: #3c4650;
  font-size: 16px;
}
.login-card .notice { margin: 0 0 16px; }
.login-form { display: grid; gap: 14px; margin: 0; }
.login-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.login-form input {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  min-height: 44px;
}
.login-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 166, 199, 0.18);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle svg {
  width: 20px;
  height: 20px;
}
.password-toggle svg[hidden] {
  display: none;
}
.password-toggle:hover { color: #0f172a; }
.login-submit {
  margin-top: 4px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.login-submit:hover { background: var(--red-deep); }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.login-links {
  margin: 14px 0 0;
  font-size: 15px;
  color: #3c4650;
}
.login-links a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
.login-links a:hover { color: var(--red-deep); }
.login-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ops { display: grid; gap: 22px; margin-top: 8px; }
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ops-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-top: 4px solid #94a3b8;
  box-shadow: 0 8px 24px rgba(9, 21, 31, 0.06);
}
.ops-metric strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.ops-metric-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3c4650;
}
.ops-metric-note {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.35;
  color: #64748b;
}
.ops-metric-ok { border-top-color: #1b7a45; }
.ops-metric-warn { border-top-color: var(--amber); }
.ops-metric-bad { border-top-color: var(--red); }
.ops-metric:hover { border-color: #cbd5e1; }
.ops-metric-ok:hover { border-top-color: #1b7a45; }
.ops-metric-warn:hover { border-top-color: var(--amber); }
.ops-metric-bad:hover { border-top-color: var(--red); }
.ops-metric:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.ops-card,
.ops-action {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 21, 31, 0.06);
}
.ops-card { padding: 18px; }
.ops-card-head,
.ops-manage > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ops-card h2,
.ops-manage > h2,
.ops-action h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.ops-card h2,
.ops-manage > h2 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}
.ops-card-head a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 3px;
}
.ops-card-head a:hover { color: var(--red-deep); }
.ops-filter {
  display: grid;
  gap: 6px;
  max-width: 320px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #3c4650;
}
.ops-filter input {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  min-height: 40px;
}
.ops-filter input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 166, 199, 0.18);
}
.ops-card .table-wrap { margin: 0; }
.ops-card th button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.ops-card th[aria-sort="ascending"] button::after { content: " ↑"; }
.ops-card th[aria-sort="descending"] button::after { content: " ↓"; }
.ops-card th button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.ops-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.ops-badge-ok { background: #e7f6ee; color: #146c3a; }
.ops-badge-warn { background: #fff1dc; color: #8a4b00; }
.ops-empty { margin: 0; color: #64748b; }
.ops-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ops-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}
.ops-action h3 {
  margin: 0;
  font-size: 16px;
  color: #3c4650;
}
.ops-action-count {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ops-action-note {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
}
.ops-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
}
@media (max-width: 980px) {
  .ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ops-metrics,
  .ops-actions { grid-template-columns: 1fr; }
  .ops-card-head { align-items: flex-start; flex-direction: column; }
}

.admin-content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 21, 31, 0.06);
  padding: 20px 20px 8px;
}
.admin-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.admin-content-card h1 {
  margin: 0;
  font-size: 32px;
}
.admin-content-empty { margin: 8px 0 16px; color: #64748b; }
.admin-content-card .table-responsive { overflow-x: auto; }
.admin-content-card table.data th,
.admin-content-card table.data td {
  padding: 16px;
  vertical-align: middle;
}
.admin-content-card table.data th {
  color: #64748b;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-content-card table.data th:last-child,
.admin-content-card table.data td:last-child { text-align: right; }
.admin-content-card table.data tbody tr { transition: background 0.15s ease; }
.admin-content-card table.data tbody tr:hover { background: #f8fafc; }
.badge-published,
.badge-draft {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.badge-published { background: #e7f6ee; color: #146c3a; }
.badge-draft { background: #f1f5f9; color: #475569; }
.admin-content-card .row-actions { justify-content: flex-end; }
.admin-content-card .row-actions a {
  padding: 6px 10px;
  border-radius: 6px;
  color: #3c4650;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-content-card .row-actions a:hover { background: #f1f5f9; color: var(--ink); }
.admin-content-card .row-actions a:last-child:hover { background: #f6d5d2; color: var(--red-deep); }
.admin-content-card .row-actions a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .admin-content-head { align-items: flex-start; flex-direction: column; }
}
