:root {
  --cec-navy: #0d2d4d;
  --cec-navy-dark: #071e36;
  --cec-gold: #d2a756;
  --cec-text: #21324b;
  --cec-muted: #6d7888;
  --cec-panel: rgba(9, 38, 68, .66);
  --cec-radius-xl: 24px;
  --cec-radius-lg: 18px;
  --cec-shadow: 0 16px 34px rgba(3, 14, 29, .22);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0 !important;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 22, 42, .68), rgba(8, 25, 45, .34)),
    url('../../../assets/background/fondo-biblioteca.jpg') center center / cover no-repeat fixed;
}
body.menu-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 52% 45%, rgba(255,255,255,.06), rgba(7,18,32,.26) 56%, rgba(4,13,25,.52));
  pointer-events: none;
  z-index: 0;
}
.cec-backdrop {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.cec-page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 24px 0;
  display: flex;
  flex-direction: column;
}

.cec-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.cec-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 13px;
  color: #fff !important;
  text-decoration: none !important;
}
.cec-brand-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(13, 45, 77, .78);
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  flex: 0 0 auto;
}
.cec-brand-logo { max-width: 43px; max-height: 43px; object-fit: contain; }
.cec-brand-copy { display: flex; flex-direction: column; gap: 3px; padding-top: 5px; }
.cec-brand-title {
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.cec-brand-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, .9vw, 13px);
  color: rgba(255,255,255,.92);
}

.cec-menu-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 12px 28px rgba(8,17,34,.18);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cec-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cec-text);
  border-radius: 999px;
  display: block;
}

.cec-main, .cec-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cec-home-stage {
  min-height: calc(100vh - 172px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 16px;
}
.cec-home-card-wrap { width: min(100%, 520px); }

.cec-home-card,
.cec-page-hero-card,
.cec-main-card,
.cec-side-card,
.cec-detail-cover-card,
.cec-detail-summary-card,
.cec-info-card {
  background: rgba(8, 32, 58, .70);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(3, 14, 29, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cec-home-card {
  width: 100%;
  padding: 22px 26px 21px;
  text-align: center;
}
.cec-home-card-symbol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--cec-gold);
  margin-bottom: 9px;
}
.cec-home-card-symbol span {
  display: block;
  width: 30px;
  height: 1px;
  background: rgba(210,167,86,.75);
}
.cec-home-card h1,
.cec-page-hero-copy h1,
.cec-detail-summary-card h2 {
  margin: 0;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
}
.cec-home-card p,
.cec-page-hero-copy p,
.cec-side-card p,
.cec-section-head p,
.cec-info-card p,
.cec-book-author,
.cec-results-bar,
.cec-rich-text,
.cec-inline-alert p,
.cec-empty-box,
.cec-detail-summary-card p {
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
}
.cec-home-card p {
  margin: 9px auto 18px;
  max-width: 420px;
  font-size: 13px;
}
.cec-section-kicker,
.cec-page-hero-copy .cec-section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--cec-gold);
}

.cec-search-form { width: 100%; }
.cec-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  background: rgba(255,255,255,.98);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,45,77,.08);
}
.cec-search-icon {
  width: 46px;
  text-align: center;
  font-size: 20px;
  color: #526273;
  flex: 0 0 auto;
}
.cec-search-input {
  flex: 1;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #22324b;
  padding: 0 12px 0 0;
}
.cec-search-input::placeholder { color: #758194; }
.cec-search-button {
  margin-right: 3px;
  min-width: 106px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #163f6d, #0b2a49);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}
.cec-home-links {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.cec-advanced-link,
.cec-recent-toggle {
  background: transparent;
  border: 0;
  color: var(--cec-gold) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}
.cec-recent-toggle span { font-size: 15px; margin-left: 4px; }
.cec-recent-trigger-row {
  display: flex;
  justify-content: center;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.cec-page-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 16px;
  padding: 18px;
  margin: 16px 0 16px;
  align-items: center;
}
.cec-page-hero-card-compact { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
.cec-page-hero-copy h1 { font-size: clamp(22px, 1.9vw, 28px); }
.cec-detail-summary-card h2 { font-size: clamp(23px, 2.1vw, 30px); margin-bottom: 8px; }
.cec-search-form-inline { align-self: stretch; }

.cec-page-layout,
.cec-detail-layout,
.cec-detail-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}
.cec-detail-layout { grid-template-columns: minmax(0, 1fr) 245px; }
.cec-detail-primary { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 18px; }
.cec-detail-secondary, .cec-sidebar-stack { display: grid; gap: 15px; }
.cec-main-card, .cec-side-card, .cec-detail-cover-card, .cec-detail-summary-card, .cec-info-card { padding: 17px; }

.cec-recent-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height .42s ease, opacity .3s ease, transform .3s ease, margin-top .3s ease;
  margin-top: 0;
}
.cec-recent-panel.is-open {
  max-height: 6000px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}
.cec-recent-panel-inner,
.cec-detail-sections { display: grid; gap: 18px; }
.cec-recent-panel-inner {
  background: rgba(8, 30, 52, .70);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 17px;
  box-shadow: var(--cec-shadow);
}
.cec-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.cec-section-head-left { align-items: flex-start; }
.cec-section-head h2 { margin: 0; font-size: clamp(20px, 1.6vw, 24px); color: #fff; }
.cec-section-counter {
  min-width: 82px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
}
.cec-section-counter strong { display: block; font-size: 22px; color: #fff; }
.cec-section-counter span { font-family: Arial, Helvetica, sans-serif; color: rgba(255,255,255,.78); font-size: 11px; }

.cec-card-grid, .cec-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cec-info-grid { margin-bottom: 12px; }
.cec-book-card {
  background: rgba(255,255,255,.98);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.cec-book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  padding: 14px 14px 7px;
  text-decoration: none !important;
  background: #f4f7fb;
}
.cec-book-cover img {
  width: auto;
  max-width: 118px;
  height: 166px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 19px rgba(0,0,0,.16);
}
.cec-book-cover-placeholder,
.cec-book-cover-placeholder-lg {
  width: 118px;
  height: 166px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  background: linear-gradient(180deg, #d9e7f5, #edf4fb);
  color: #4f6378;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.cec-book-cover-placeholder-lg { width: 100%; height: 270px; }
.cec-book-content {
  flex: 1;
  padding: 13px 13px 15px;
  color: var(--cec-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cec-book-content h3 { margin: 0; font-size: 16px; line-height: 1.24; }
.cec-book-content h3 a { color: var(--cec-text) !important; text-decoration: none !important; }
.cec-book-author { margin: 0; color: #5b6c81; font-size: 12.5px; }
.cec-book-author.muted { color: #7d8da0; font-style: italic; }
.cec-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.cec-chip-row-wrap { margin-top: 8px; }
.cec-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 10px;
  background: #ecf2f9;
  color: #214267;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.cec-book-meta { display: grid; gap: 7px; }
.cec-book-meta span {
  display: block;
  padding: 8px 9px;
  border-radius: 11px;
  background: #f4f7fb;
  color: #2c4665;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.38;
  font-size: 12px;
}
.cec-book-meta strong { display: block; margin-bottom: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.cec-book-actions { margin-top: auto; }
.cec-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 10px;
  background: #12385f;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 12.5px;
}
.cec-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}
.cec-results-bar strong, .cec-results-bar span { color: #fff; }
.cec-results-bar small { font-family: Arial, Helvetica, sans-serif; color: rgba(255,255,255,.78); }
.cec-inline-alert, .cec-empty-box { border-radius: 16px; padding: 15px 17px; font-family: Arial, Helvetica, sans-serif; }
.cec-inline-alert { background: rgba(212,168,90,.16); border: 1px solid rgba(212,168,90,.34); }
.cec-inline-alert strong { color: #fff; display: block; margin-bottom: 6px; }
.cec-empty-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
.cec-help-list { margin: 0; padding-left: 18px; font-family: Arial, Helvetica, sans-serif; color: rgba(255,255,255,.82); line-height: 1.72; font-size: 13px; }
.cec-help-list li + li { margin-top: 4px; }
.cec-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cec-pagination a, .cec-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  color: #fff !important;
  font-size: 13px;
}
.cec-pagination .active { background: #fff; color: #17324d !important; }
.cec-detail-cover-card { text-align: center; }
.cec-detail-cover-card img { max-width: 100%; max-height: 350px; border-radius: 15px; box-shadow: 0 14px 26px rgba(0,0,0,.18); }
.cec-detail-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 17px 0; }
.cec-detail-highlight-grid div { padding: 13px 14px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.cec-detail-highlight-grid span { display: block; margin-bottom: 5px; font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--cec-gold); }
.cec-detail-highlight-grid strong { color: #fff; font-size: 13px; }
.cec-rich-block h3, .cec-side-card h3, .cec-info-card h3 { margin-top: 0; margin-bottom: 8px; color: #fff; font-size: 21px; }
.cec-rich-block h3, .cec-side-card h3, .cec-info-card h3 { font-size: 18px; }
.cec-info-card h3 { font-size: 18px; }
.cec-info-card {
  background: rgba(8, 32, 58, .62);
}
.cec-info-card-empty { grid-column: 1 / -1; }
.cec-info-card.has-media { overflow: hidden; padding-top: 0 !important; }
.cec-info-card-image {
  display: block;
  width: calc(100% + 34px);
  height: 150px;
  margin: 0 -17px 14px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.cec-info-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}
.cec-info-card-meta span {
  color: #19304a;
  background: var(--cec-gold);
  border-radius: 999px;
  padding: 5px 8px;
}
.cec-info-card-author {
  display: block;
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.68);
}
.cec-info-card p,
.cec-side-card p {
  font-size: 13px;
}
.cec-detail-summary-card .cec-rich-text p:first-child { margin-top: 0; }
.cec-detail-summary-card .cec-rich-text p:last-child { margin-bottom: 0; }
.cec-table-wrap { overflow-x: auto; }
.cec-data-table, .cec-detail-table { width: 100%; border-collapse: collapse; }
.cec-data-table th, .cec-data-table td, .cec-detail-table th, .cec-detail-table td {
  padding: 11px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
.cec-data-table th, .cec-detail-table th { color: #fff; background: rgba(255,255,255,.06); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cec-data-table td, .cec-detail-table td { color: rgba(255,255,255,.84); }
.cec-link-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cec-link-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff !important; text-decoration: none !important; font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
.cec-text-link,
.cec-secondary-link {
  color: #fff8d6 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.cec-secondary-link {
  color: rgba(255,255,255,.82) !important;
}
.cec-advanced-form {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cec-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.cec-advanced-grid label {
  display: grid;
  gap: 6px;
  margin: 0;
}
.cec-advanced-grid span {
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cec-advanced-grid input,
.cec-advanced-grid select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  color: #21324b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  outline: 0;
  padding: 0 12px;
}
.cec-advanced-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #21324b 50%), linear-gradient(135deg, #21324b 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.cec-advanced-grid input:focus,
.cec-advanced-grid select:focus {
  border-color: rgba(210,167,86,.55);
  box-shadow: 0 0 0 4px rgba(210,167,86,.12);
}
.cec-form-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.cec-form-actions .cec-action-button {
  border: 0;
  cursor: pointer;
}
.cec-advanced-results {
  display: grid;
  gap: 16px;
}

.cec-sidepanel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 390px);
  height: 100vh;
  transform: translateX(110%);
  transition: transform .3s ease;
  z-index: 20;
}
body.menu-open .cec-sidepanel { transform: translateX(0); }
.cec-sidepanel-inner {
  height: 100%;
  background: #fbfcfe;
  color: var(--cec-text);
  padding: 20px 22px 18px;
  overflow-y: auto;
  box-shadow: -12px 0 34px rgba(9,19,35,.18);
}
.cec-sidepanel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(10,32,58,.06);
}
.cec-sidepanel-head-icon, .cec-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f3f6fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cec-text);
  flex: 0 0 auto;
  font-size: 16px;
}
.cec-sidepanel-head-copy h2, .cec-menu-text strong { margin: 0; color: var(--cec-text); }
.cec-sidepanel-head-copy h2 { font-size: 20px; line-height: 1; }
.cec-sidepanel-head-copy p, .cec-menu-text small, .cec-help-box span { font-family: Arial, Helvetica, sans-serif; color: #6f7a89; }
.cec-sidepanel-head-copy p { font-size: 12px; margin: 4px 0 0; }
.cec-sidepanel-close { margin-left: auto; border: 0; background: #f3f6fa; width: 32px; height: 32px; border-radius: 999px; font-size: 22px; line-height: 1; color: #536174; cursor: pointer; }
.cec-menu-section { padding-top: 18px; }
.cec-menu-section h3 { margin: 0 0 9px; color: #6c7d91; font-family: Arial, Helvetica, sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.cec-menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.cec-menu-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; background: transparent; border: 1px solid transparent; text-decoration: none !important; }
.cec-menu-text { display: flex; flex-direction: column; gap: 1px; }
.cec-menu-text strong { font-size: 14px; }
.cec-menu-text small { font-size: 11.5px; }
.cec-menu-arrow { margin-left: auto; color: #8b98a8; font-size: 19px; }
.cec-language-box, .cec-help-box { border-radius: 14px; padding: 12px 14px; border: 1px solid #e8ebef; background: #fbfbfc; }
.cec-language-box { display: flex; align-items: center; gap: 10px; font-family: Arial, Helvetica, sans-serif; color: var(--cec-text); font-size: 13px; }
.cec-language-box em { margin-left: auto; font-style: normal; color: #65758a; }
.cec-help-box { margin-top: 18px; display: grid; gap: 6px; }
.cec-help-box strong { color: #7d5923; font-size: 14px; }
.cec-sidepanel-backdrop { position: fixed; inset: 0; background: rgba(8,18,34,.45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 10; }
body.menu-open .cec-sidepanel-backdrop { opacity: 1; visibility: visible; }

.cec-admin-page {
  justify-content: flex-start;
}
.cec-admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0 24px;
}
.cec-admin-sidebar,
.cec-admin-card,
.cec-admin-toast {
  background: rgba(255,255,255,.96);
  color: var(--cec-text);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(3, 14, 29, .14);
}
.cec-admin-sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
}
.cec-admin-sidebar h1,
.cec-admin-head h2,
.cec-admin-card h3 {
  margin: 0;
  color: var(--cec-text);
}
.cec-admin-sidebar h1 {
  font-size: 22px;
  line-height: 1.12;
}
.cec-admin-sidebar p,
.cec-admin-card,
.cec-admin-table,
.cec-admin-form input,
.cec-admin-form select,
.cec-admin-form textarea,
.cec-admin-bottom {
  font-family: Arial, Helvetica, sans-serif;
}
.cec-admin-sidebar p {
  margin: 9px 0 16px;
  color: #647386;
  font-size: 12.5px;
  line-height: 1.55;
}
.cec-admin-nav {
  display: grid;
  gap: 7px;
}
.cec-admin-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #31445f !important;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.cec-admin-nav a.active,
.cec-admin-nav a:hover {
  background: #edf3fa;
  color: #0d2d4d !important;
}
.cec-admin-content {
  display: grid;
  gap: 16px;
}
.cec-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}
.cec-admin-head h2 {
  color: #fff;
  font-size: 26px;
}
.cec-admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.cec-admin-stats article {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(3, 14, 29, .12);
}
.cec-admin-stats span {
  display: block;
  color: #657386;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.cec-admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--cec-text);
  font-size: 28px;
  line-height: 1;
}
.cec-admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cec-admin-card {
  padding: 17px;
}
.cec-admin-card h3 {
  margin-bottom: 13px;
  font-size: 18px;
}
.cec-admin-toast {
  padding: 11px 14px;
  color: #1f593d;
  background: #effaf3;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.cec-admin-form {
  display: grid;
  gap: 14px;
}
.cec-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cec-admin-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cec-admin-form-grid label,
.cec-admin-inline-form {
  display: grid;
  gap: 6px;
}
.cec-admin-form-grid .wide {
  grid-column: 1 / -1;
}
.cec-admin-form span {
  color: #66768a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cec-admin-form input,
.cec-admin-form select,
.cec-admin-form textarea,
.cec-admin-inline-form input,
.cec-admin-inline-form select,
.cec-admin-inline-form textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f9fbfd;
  color: var(--cec-text);
  font-size: 13px;
  outline: 0;
  padding: 9px 10px;
}
.cec-admin-form textarea,
.cec-admin-inline-form textarea {
  min-height: 74px;
  resize: vertical;
}
.cec-admin-table-wrap {
  overflow-x: auto;
}
.cec-admin-table {
  width: 100%;
  border-collapse: collapse;
}
.cec-admin-table th,
.cec-admin-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e7edf4;
  text-align: left;
  color: #32445d;
  font-size: 12.5px;
  vertical-align: top;
}
.cec-admin-table th {
  color: #728094;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cec-admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf3fa;
  color: #234467;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}
.cec-admin-status.status-activo { background: #e8f4ff; color: #145184; }
.cec-admin-status.status-entregado { background: #edf9f0; color: #21613c; }
.cec-admin-status.status-vencido { background: #fff1ee; color: #9b3424; }
.cec-admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.cec-admin-actions button,
.cec-admin-row-actions button,
.cec-admin-delete,
.cec-admin-inline-form button {
  border: 0;
  border-radius: 9px;
  background: #12385f;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}
.cec-admin-actions .danger,
.cec-admin-row-actions .danger,
.cec-admin-delete {
  background: #8d3329;
}
.cec-admin-row-actions summary {
  cursor: pointer;
  color: #12385f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.cec-admin-inline-form {
  min-width: 280px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 13px;
  background: #f4f7fb;
}

.cec-footer {
  margin-top: auto;
  padding: 18px 0 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.cec-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 360px);
  gap: 26px;
  align-items: center;
}
.cec-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 0;
}
.cec-footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.16));
}
.cec-footer-brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cec-footer-brand strong {
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}
.cec-footer-brand small,
.cec-footer-summary,
.cec-footer-nav a,
.cec-footer-bottom {
  font-family: Arial, Helvetica, sans-serif;
}
.cec-footer-brand small {
  color: var(--cec-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.cec-footer-summary {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: right;
}
.cec-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 15px 0 13px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.cec-footer-nav a {
  position: relative;
  color: rgba(255,255,255,.82) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.cec-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--cec-gold);
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .22s ease, transform .22s ease;
}
.cec-footer-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.cec-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  line-height: 1.4;
}

.cec-guide-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90 !important;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px 10px 11px;
  border: 1px solid rgba(210,167,86,.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d2d4d, #17466f) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(8,18,34,.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cec-guide-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(8,18,34,.34);
}
.cec-guide-button span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cec-gold) !important;
  color: #102942 !important;
  font-weight: 900;
}
.cec-guide-overlay[hidden] {
  display: none;
}
.cec-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8,18,34,.16);
  backdrop-filter: none;
}
.cec-guide-spotlight {
  position: fixed;
  z-index: 71;
  pointer-events: none;
  border: 3px solid var(--cec-gold);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  box-shadow:
    0 0 0 9999px rgba(8,18,34,.08),
    0 0 0 9px rgba(210,167,86,.24),
    0 18px 56px rgba(0,0,0,.18);
  opacity: 0;
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease, opacity .18s ease;
}
.cec-guide-card {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 92;
  width: min(390px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: #fff;
  color: #203047;
  box-shadow: 0 28px 80px rgba(8,18,34,.28);
}
.cec-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #536174;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cec-guide-step {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4fa;
  color: #17466f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cec-guide-card h2 {
  margin: 0 34px 8px 0;
  color: #0d2d4d;
  font-size: 24px;
  line-height: 1.15;
}
.cec-guide-card p {
  margin: 0;
  color: #687789;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.cec-guide-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.cec-guide-primary,
.cec-guide-secondary {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.cec-guide-primary {
  border: 0;
  background: #0d2d4d;
  color: #fff;
}
.cec-guide-secondary {
  border: 1px solid #dbe5ef;
  background: #fff;
  color: #0d2d4d;
}
.cec-guide-secondary:disabled {
  opacity: .45;
  cursor: default;
}
.cec-guide-highlight {
  position: relative;
  z-index: 72 !important;
  border-radius: 18px;
  outline: 3px solid rgba(210,167,86,.92) !important;
  outline-offset: 6px;
  box-shadow: 0 0 0 8px rgba(210,167,86,.18), 0 14px 44px rgba(8,18,34,.18) !important;
}

/* ============================================
   RESPONSIVE — TABLET & SMALL DESKTOP
   ============================================ */
@media (max-width: 1400px) {
  .cec-card-grid,
  .cec-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .cec-page-shell { padding: 18px 16px 0; }
  .cec-page-hero-card,
  .cec-page-layout,
  .cec-detail-layout,
  .cec-detail-primary,
  .cec-detail-meta-grid { grid-template-columns: 1fr; }
  .cec-brand-logo-wrap { width: 54px; height: 54px; }
  .cec-brand-logo { max-width: 40px; max-height: 40px; }
  .cec-menu-toggle { width: 48px; height: 48px; border-radius: 14px; }
  .cec-home-card-wrap { width: min(100%, 520px); }
  .cec-footer-main { grid-template-columns: 1fr; gap: 12px; }
  .cec-footer-summary { text-align: left; max-width: 520px; }
  .cec-admin-shell { grid-template-columns: 1fr; }
  .cec-admin-sidebar { position: static; }
  .cec-admin-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cec-admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cec-admin-grid-two { grid-template-columns: 1fr; }
  
  /* Better book cards on tablet */
  .cec-book-card { display: grid; grid-template-columns: 130px 1fr; }
  .cec-book-cover { min-height: 180px; padding: 10px; }
  .cec-book-cover img,
  .cec-book-cover-placeholder { width: 100px; height: 150px; }
  .cec-book-content { gap: 6px; padding: 12px 12px 12px 6px; }
  .cec-book-content h3 { font-size: 15px; }
  .cec-book-meta span { padding: 6px 8px; font-size: 11.5px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================ */
@media (max-width: 767px) {
  .cec-page-shell { padding: 14px 10px 0; }
  
  /* Topbar & brand */
  .cec-topbar { align-items: center; gap: 10px; }
  .cec-brand { gap: 8px; }
  .cec-brand-logo-wrap { width: 48px; height: 48px; border-radius: 12px; }
  .cec-brand-logo { max-width: 34px; max-height: 34px; }
  .cec-brand-copy { padding-top: 3px; }
  .cec-brand-title { font-size: 17px; }
  .cec-brand-subtitle { font-size: 11px; }
  .cec-menu-toggle { width: 44px; height: 44px; border-radius: 12px; gap: 5px; }
  .cec-menu-toggle span { width: 18px; height: 2px; }
  
  /* Home stage - compact */
  .cec-home-stage { min-height: auto; padding: 20px 0 10px; }
  .cec-home-card { padding: 18px 14px; border-radius: 18px; }
  .cec-home-card h1 { font-size: 21px; line-height: 1.15; }
  .cec-home-card p { font-size: 12.5px; margin: 8px auto 14px; }
  .cec-home-card-symbol { font-size: 17px; }
  .cec-home-card-symbol span { width: 24px; }
  
  /* Improved search box for mobile */
  .cec-search-box {
    min-height: auto;
    flex-wrap: nowrap;
    padding: 4px;
    border-radius: 14px;
  }
  .cec-search-icon { width: 38px; font-size: 19px; flex: 0 0 38px; }
  .cec-search-input {
    height: 44px;
    padding-right: 6px;
    font-size: 14px;
    min-width: 0;
    width: auto;
    flex: 1;
  }
  .cec-search-button {
    width: auto;
    min-width: 74px;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .cec-recent-trigger-row { margin-top: 8px; padding-top: 10px; }
  
  /* Hero cards on mobile */
  .cec-page-hero-card {
    padding: 14px;
    border-radius: 18px;
    margin: 12px 0 14px;
  }
  .cec-page-hero-copy h1 { font-size: 20px; }
  .cec-page-hero-copy p { font-size: 12.5px; }
  .cec-search-form-inline .cec-search-box {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
  }
  .cec-search-form-inline .cec-search-icon {
    width: 34px;
    flex: 0 0 34px;
  }
  .cec-search-form-inline .cec-search-input {
    height: 40px;
    flex: 1;
    min-width: 80px;
    font-size: 13px;
  }
  .cec-search-form-inline .cec-search-button {
    width: 100%;
    height: 40px;
    font-size: 13px;
  }
  
  /* Cards grid — single column on mobile */
  .cec-card-grid,
  .cec-info-grid { grid-template-columns: 1fr; gap: 12px; }
  
  /* Book cards — horizontal layout on mobile */
  .cec-book-card { display: grid; grid-template-columns: 100px 1fr; min-height: 0; }
  .cec-book-cover { min-height: 150px; padding: 8px; }
  .cec-book-cover img,
  .cec-book-cover-placeholder { width: 80px; height: 130px; }
  .cec-book-content { gap: 5px; padding: 10px 10px 10px 4px; }
  .cec-book-content h3 { font-size: 14px; line-height: 1.2; }
  .cec-book-author { font-size: 11.5px; }
  .cec-chip { font-size: 10px; min-height: 22px; padding: 3px 7px; }
  .cec-book-meta span { padding: 5px 7px; font-size: 11px; }
  .cec-book-meta strong { font-size: 9px; }
  .cec-action-button { min-height: 32px; font-size: 11px; padding: 6px 10px; }
  
  /* Sections */
  .cec-section-head { flex-direction: column; align-items: flex-start; }
  .cec-section-head h2 { font-size: 19px; }
  .cec-section-counter { min-width: 60px; padding: 6px 10px; }
  .cec-section-counter strong { font-size: 18px; }
  .cec-section-counter span { font-size: 10px; }
  .cec-recent-panel-inner { padding: 14px; }
  
  /* Results */
  .cec-results-bar { flex-direction: column; align-items: flex-start; font-size: 13px; gap: 6px; }
  .cec-pagination { gap: 6px; justify-content: center; }
  .cec-pagination a,
  .cec-pagination span { min-width: 34px; height: 34px; font-size: 12px; padding: 0 9px; }
  
  /* Cards & containers */
  .cec-main-card,
  .cec-side-card,
  .cec-detail-cover-card,
  .cec-detail-summary-card,
  .cec-info-card { padding: 14px; border-radius: 16px; }
  .cec-detail-highlight-grid { grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
  .cec-detail-highlight-grid div { padding: 10px 12px; }
  .cec-detail-highlight-grid span { font-size: 10px; }
  .cec-detail-highlight-grid strong { font-size: 12px; }
  .cec-detail-summary-card h2 { font-size: 20px; }
  
  /* Advanced search */
  .cec-advanced-grid { grid-template-columns: 1fr; gap: 10px; }
  .cec-advanced-grid input,
  .cec-advanced-grid select { height: 40px; font-size: 12.5px; padding: 0 10px; }
  .cec-advanced-grid select { background-position: calc(100% - 13px) 16px, calc(100% - 8px) 16px; }
  .cec-advanced-grid span { font-size: 10.5px; }
  .cec-form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cec-form-actions .cec-action-button,
  .cec-form-actions .cec-secondary-link { width: 100%; text-align: center; }
  .cec-action-button { min-height: 44px; font-size: 13px; }
  
  /* Detail page */
  .cec-detail-primary { gap: 12px; }
  .cec-detail-cover-card img { max-height: 260px; }
  .cec-book-cover-placeholder-lg { height: 200px; font-size: 13px; }
  .cec-rich-block h3,
  .cec-detail-summary-card h3 { font-size: 16px; }
  
  /* Tables */
  .cec-table-wrap { margin: 0 -4px; padding: 0 4px; overflow-x: auto; }
  .cec-data-table th,
  .cec-data-table td,
  .cec-detail-table th,
  .cec-detail-table td { padding: 8px 7px; font-size: 12px; white-space: nowrap; }
  .cec-data-table th,
  .cec-detail-table th { font-size: 10px; }
  
  /* Info cards */
  .cec-info-card-image { height: 120px; margin: 0 -14px 10px; width: calc(100% + 28px); }
  .cec-info-card h3,
  .cec-side-card h3 { font-size: 16px; margin-bottom: 6px; }
  .cec-info-card p,
  .cec-side-card p { font-size: 12px; }
  .cec-info-card-meta { font-size: 10px; gap: 6px; }
  .cec-info-card-author { font-size: 10px; margin-top: 8px; }
  
  /* Sidepanel */
  .cec-sidepanel { width: 100%; }
  .cec-sidepanel-inner { padding: 18px 14px; }
  .cec-sidepanel-head { padding: 10px 12px; gap: 10px; }
  .cec-sidepanel-head-copy h2 { font-size: 18px; }
  .cec-sidepanel-head-copy p { font-size: 11px; }
  .cec-menu-icon { width: 34px; height: 34px; font-size: 14px; }
  .cec-menu-text strong { font-size: 13px; }
  .cec-menu-text small { font-size: 11px; }
  .cec-menu-item { padding: 7px 8px; gap: 9px; }
  .cec-help-box { padding: 10px 12px; }
  .cec-help-box strong { font-size: 13px; }
  .cec-help-box span { font-size: 11px; }
  
  /* Labels & chips */
  .cec-chip-row { gap: 5px; }
  .cec-chip { font-size: 10.5px; min-height: 24px; padding: 3px 8px; }
  .cec-link-pill { min-height: 32px; font-size: 12px; padding: 5px 10px; }
  .cec-link-list { gap: 8px; }
  .cec-help-list { font-size: 12px; padding-left: 14px; }
  .cec-help-list li + li { margin-top: 3px; }
  .cec-empty-box { padding: 12px 14px; font-size: 12.5px; }
  .cec-inline-alert { padding: 12px 14px; }
  .cec-inline-alert strong { font-size: 13px; }
  .cec-inline-alert p { font-size: 12px; }
  
  /* Footer */
  .cec-footer { padding: 14px 0 12px; }
  .cec-footer-main { gap: 10px; }
  .cec-footer-brand { align-items: flex-start; gap: 8px; }
  .cec-footer-brand img { width: 34px; height: 34px; }
  .cec-footer-brand strong { font-size: 13px; }
  .cec-footer-brand small { font-size: 10px; }
  .cec-footer-summary { font-size: 11.5px; line-height: 1.45; }
  .cec-footer-nav { justify-content: flex-start; gap: 12px 16px; margin: 11px 0 10px; padding: 10px 0; flex-wrap: wrap; }
  .cec-footer-nav a { font-size: 11px; }
  .cec-footer-bottom { flex-direction: column; gap: 3px; font-size: 10px; }
  
  /* Quick guide */
  .cec-guide-button {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 7px 10px 7px 8px;
    font-size: 11px;
    gap: 6px;
    box-shadow: 0 14px 34px rgba(8,18,34,.22);
  }
  .cec-guide-button span { width: 22px; height: 22px; font-size: 11px; }
  .cec-guide-card {
    right: 10px;
    bottom: 64px;
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 18px;
  }
  .cec-guide-card h2 { font-size: 19px; margin-right: 28px; }
  .cec-guide-card p { font-size: 13px; }
  .cec-guide-close { width: 30px; height: 30px; font-size: 18px; top: 10px; right: 10px; }
  .cec-guide-step { font-size: 10px; padding: 4px 8px; }
  .cec-guide-actions { flex-direction: column-reverse; gap: 8px; margin-top: 14px; }
  .cec-guide-primary,
  .cec-guide-secondary { width: 100%; min-height: 38px; font-size: 12px; }
  
  /* Mini admin overrides on mobile */
  .cec-admin-shell { margin-top: 12px; }
  .cec-admin-head { align-items: flex-start; flex-direction: column; }
  .cec-admin-head h2 { font-size: 20px; }
  .cec-admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cec-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cec-admin-stats article { padding: 12px; }
  .cec-admin-stats strong { font-size: 22px; }
  .cec-admin-stats span { font-size: 10px; }
  .cec-admin-form-grid,
  .cec-admin-form-grid.compact { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — VERY SMALL (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .cec-page-shell { padding: 10px 6px 0; }
  .cec-brand-logo-wrap { width: 42px; height: 42px; }
  .cec-brand-title { font-size: 15px; }
  .cec-brand-subtitle { font-size: 10px; }
  .cec-menu-toggle { width: 40px; height: 40px; }
  .cec-home-card h1 { font-size: 18px; }
  .cec-search-button { min-width: 64px; font-size: 11px; padding: 0 10px; }
  .cec-book-card { grid-template-columns: 80px 1fr; }
  .cec-book-cover { min-height: 120px; }
  .cec-book-cover img,
  .cec-book-cover-placeholder { width: 64px; height: 108px; }
  .cec-book-content h3 { font-size: 13px; }
  .cec-detail-cover-card img { max-height: 200px; }
  .cec-advanced-grid input,
  .cec-advanced-grid select { font-size: 12px; }
  .cec-pagination { gap: 4px; }
  .cec-pagination a,
  .cec-pagination span { min-width: 30px; height: 30px; font-size: 11px; padding: 0 7px; }
}
