:root {
  --bg: #f6f1e9;
  --bg-strong: #ebe0cc;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: rgba(255, 255, 255, 0.96);
  --text: #1b2422;
  --muted: #5d6663;
  --accent: #0d9488;
  --accent-2: #b86820;
  --line: rgba(15, 23, 42, 0.1);
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
}

body[data-theme="dark"] {
  --bg: #091116;
  --bg-strong: #101c22;
  --card: rgba(19, 31, 38, 0.96);
  --card-strong: rgba(20, 33, 40, 0.98);
  --text: #f3fbfa;
  --muted: #d0ddda;
  --accent: #2ad1c4;
  --accent-2: #ffbb63;
  --line: rgba(208, 221, 218, 0.14);
  --danger: #ff8d83;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] {
  background: radial-gradient(circle at 12% 6%, rgba(245, 158, 11, 0.18) 0%, transparent 34%),
    radial-gradient(circle at 95% 85%, rgba(20, 184, 166, 0.16) 0%, transparent 36%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-strong) 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 12% 6%, #ffe6bc 0%, transparent 38%),
    radial-gradient(circle at 95% 85%, #c8f4ef 0%, transparent 42%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-strong) 100%);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.3;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: #f59e0b;
  top: -80px;
  left: -70px;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  background: #14b8a6;
  right: -90px;
  bottom: -90px;
}

.app-shell {
  width: min(1100px, 94vw);
  margin: 40px auto;
  display: grid;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0 6px;
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  position: relative;
}

.site-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.site-brand strong {
  font-size: 24px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.site-brand .muted {
  font-size: 13px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, rgba(13, 148, 136, 0) 65%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.hero-card h1 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.hero-main {
  display: grid;
  align-content: start;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 17px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ghost-link {
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.header-cta {
  padding-inline: 16px;
}

.hero-side {
  display: grid;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(240, 251, 249, 0.72));
}

.hero-panel h2 {
  font-size: 24px;
  line-height: 1.1;
}

.hero-panel-kicker,
.feature-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-metrics {
  display: grid;
  gap: 10px;
}

.hero-metric {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-metric strong {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  color: #fff;
  font-size: 18px;
}

.page-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.page-intro-copy {
  display: grid;
  gap: 8px;
}

.page-intro-copy h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.panel-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.panel-helper {
  margin: 0;
  color: var(--muted);
}

.quick-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-tip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.quick-tip strong {
  font-size: 14px;
}

.quick-tip span {
  color: var(--muted);
  font-size: 13px;
}

.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.session-chip {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
}

.session-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.session-chip-label,
.session-chip-role {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  transition: transform 200ms ease, opacity 180ms ease;
}

.menu-toggle-bar:nth-child(1) {
  transform: translateY(-5px);
}

.menu-toggle-bar:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle-bar:nth-child(3) {
  transform: translateY(5px);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.site-nav a,
.site-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.92;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-footer {
  width: min(1100px, 94vw);
  margin: 0 auto 40px;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 24px));
  z-index: 120;
}

.cookie-notice-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.cookie-notice-copy {
  display: grid;
  gap: 6px;
}

.cookie-notice-copy p {
  margin: 0;
  line-height: 1.5;
}

.cookie-notice-copy a {
  color: #8ff7ee;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cookie-notice-actions button {
  white-space: nowrap;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  font-size: 18px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.footer-brand p,
.footer-meta {
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-shell {
  gap: 18px;
}

.legal-intro,
.legal-card {
  display: grid;
  gap: 12px;
}

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

.legal-grid--single {
  grid-template-columns: 1fr;
}

.legal-card h2,
.legal-card h3,
.legal-card p,
.legal-card ul {
  margin: 0;
}

.legal-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-card li,
.legal-card p {
  line-height: 1.6;
}

.legal-note {
  border-left: 4px solid var(--accent);
}

.legal-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 4px 10px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

body[data-theme="dark"] .site-brand,
body[data-theme="dark"] .site-nav a {
  color: #f3fbfa;
}

.menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
}

.menu-item[aria-current="page"] {
  background: rgba(13, 148, 136, 0.12);
}

.menu-item-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-menu {
  margin-top: 8px;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 8px;
}

.site-header .ghost-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}

.site-header .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon--moon svg {
  stroke: none;
  fill: currentColor;
}

.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;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-helper {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: pop-in 380ms ease both;
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .modal-card,
body[data-theme="dark"] .site-nav,
body[data-theme="dark"] .entry,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .catalog-card {
  border-color: rgba(208, 221, 218, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.auth-card {
  width: min(460px, 100%);
  justify-self: center;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

input,
select,
button {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 11px 13px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

textarea {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 11px 13px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
  border-color: rgba(13, 148, 136, 0.48);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(208, 221, 218, 0.16);
  color: var(--text);
}

body[data-theme="dark"] select option,
body[data-theme="dark"] select optgroup {
  background: #132028;
  color: var(--text);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: rgba(208, 221, 218, 0.78);
}

body[data-theme="dark"] input:focus,
body[data-theme="dark"] select:focus,
body[data-theme="dark"] textarea:focus {
  outline: 2px solid rgba(42, 209, 196, 0.35);
  outline-offset: 1px;
  border-color: rgba(42, 209, 196, 0.6);
}

button {
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.ghost-btn {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: var(--text);
}

body[data-theme="dark"] .ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(208, 221, 218, 0.18);
  color: var(--text);
}

body[data-theme="dark"] .ghost-btn:hover,
body[data-theme="dark"] .site-header .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-header .menu-toggle {
  background: rgba(9, 17, 22, 0.88);
  border: 1px solid rgba(208, 221, 218, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-switch {
  display: flex;
  gap: 10px;
}

.view-switch .ghost-btn.active {
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  color: #fff;
  border-color: transparent;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: end;
}

.search-row button {
  white-space: nowrap;
}

.compact-search {
  grid-template-columns: 2fr 1fr 1fr auto;
}

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

.catalog-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.catalog-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.catalog-column-head h4 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
}

.catalog-stack {
  display: grid;
  gap: 12px;
}

.pager-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.search-actions--inline {
  margin: 0 0 10px;
  justify-content: flex-start;
}

details {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

.stat {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 22px;
}

.entries {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.45);
}

.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-block {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.skeleton-block--title {
  width: 58%;
  height: 18px;
}

.skeleton-block--line {
  width: 100%;
  height: 12px;
}

.skeleton-block--line-short {
  width: 68%;
  height: 12px;
}

.skeleton-block--pill {
  width: 78px;
  height: 24px;
}

.skeleton-block--score {
  width: 74px;
  height: 28px;
}

.skeleton-block--thumb {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.skeleton-block--button {
  width: 100%;
  height: 38px;
}

.skeleton-card--entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.skeleton-entry-media {
  min-height: 120px;
}

.skeleton-entry-body,
.skeleton-entry-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.skeleton-card--catalog {
  display: grid;
  gap: 0;
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.skeleton-card--catalog .skeleton-block--thumb {
  height: 160px;
  border-radius: 0;
}

.skeleton-catalog-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.skeleton-card--stat {
  min-height: 92px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.catalog-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.catalog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(120deg, rgba(16, 185, 170, 0.2), rgba(245, 158, 11, 0.25));
}

.catalog-card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.type-chip {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.1);
}

.big-score {
  font-size: 28px;
  font-weight: 800;
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1;
}

.subline {
  font-size: 12px;
  color: var(--muted);
}

body[data-theme="dark"] .catalog-card,
body[data-theme="dark"] .ghost-link,
body[data-theme="dark"] .site-menu a {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .site-header-inner,
body[data-theme="dark"] .site-menu {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-footer-inner {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .footer-links a {
  color: var(--text);
}

body[data-theme="dark"] .cookie-notice-inner {
  background: rgba(6, 10, 14, 0.96);
}

.entry {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(13, 148, 136, 0.22);
}

.entry-card {
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
}

.entry-media {
  display: grid;
}

.entry-card .entry-media img {
  width: 120px;
  height: 120px;
  border-radius: 14px;
}

.entry-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.entry-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.entry-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.entry-title-row h4 {
  font-size: 20px;
  line-height: 1.1;
}

.entry-average {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.entry-description {
  margin: 0;
  color: var(--text);
}

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

.entry-meta-grid small,
.entry-note,
.entry-alert {
  display: block;
}

.entry-note {
  margin: 0;
  color: var(--muted);
}

.entry-alert {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.14);
}

.entry-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.entry-score-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.entry-score-card strong {
  font-size: 28px;
  line-height: 1;
  font-family: "Bricolage Grotesque", sans-serif;
}

.entry-secondary-actions {
  display: grid;
  gap: 8px;
}

.entry-ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-ai-pill--done {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.entry-ai-pill--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.entry-ai-pill--error,
.entry-ai-pill--quota_limited {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-feed-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.admin-feed-card--interactive {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-feed-card--interactive:hover,
.admin-feed-card--interactive:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.admin-feed-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-feed-title {
  display: grid;
  gap: 4px;
}

.admin-feed-title strong {
  font-size: 16px;
}

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

.admin-feed-grid small {
  display: block;
}

.admin-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-queue-list {
  display: grid;
  gap: 10px;
}

.audit-diff {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.entry img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.entry h4 {
  margin: 0;
}

.entry small {
  color: var(--muted);
}

body[data-theme="dark"] .entry,
body[data-theme="dark"] .stat {
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .entry h4,
body[data-theme="dark"] .catalog-card h4,
body[data-theme="dark"] .stat strong,
body[data-theme="dark"] .big-score {
  color: #f7fffe;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f7f6;
  color: #0f766e;
}

.entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.subtype-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.taste-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(236, 72, 153, 0.11);
  color: #be185d;
}

body[data-theme="dark"] .subtype-chip {
  background: rgba(165, 180, 252, 0.15);
  color: #a5b4fc;
}

body[data-theme="dark"] .taste-chip {
  background: rgba(249, 168, 212, 0.15);
  color: #f9a8d4;
}

.entry-actions {
  display: grid;
  gap: 8px;
}

.rating-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rating-pill {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 50;
}

.toast {
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.toast.error {
  background: #b42318;
}

body[data-theme="dark"] .site-menu a,
body[data-theme="dark"] .ghost-btn,
body[data-theme="dark"] .rating-pill {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body[data-theme="dark"] .site-header-inner,
body[data-theme="dark"] .site-nav,
body[data-theme="dark"] .session-chip,
body[data-theme="dark"] .hero-panel,
body[data-theme="dark"] .hero-metric,
body[data-theme="dark"] .empty-state {
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .badge {
  background: rgba(42, 209, 196, 0.14);
  color: #88fff2;
}

body[data-theme="dark"] details {
  border-color: rgba(208, 221, 218, 0.18);
}

body[data-theme="dark"] .label-file span {
  border-color: rgba(208, 221, 218, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .muted,
body[data-theme="dark"] .stat p,
body[data-theme="dark"] .entry small,
body[data-theme="dark"] .subline,
body[data-theme="dark"] .role-badge,
body[data-theme="dark"] .account-sidebar-divider,
body[data-theme="dark"] .form-group label {
  color: var(--muted);
}

body[data-theme="dark"] .theme-icon svg {
  fill: rgba(255, 255, 255, 0.06);
}

.label-file input {
  display: none;
}

.label-file span {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.3);
  width: 100%;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.danger {
  color: var(--danger);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Sidebar compte ── */
.account-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px;
}

.account-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  margin-bottom: 8px;
}

.account-avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-avatar-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-sidebar-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.account-sidebar-identity strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.account-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.account-sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
  width: 100%;
}

.account-sidebar-item:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: none;
}

.account-sidebar-item.active {
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  color: #fff;
}

.account-sidebar-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.account-sidebar-divider {
  padding: 14px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.account-sidebar-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 8px;
  margin-top: 10px;
}

.account-sidebar-item.logout-item {
  color: var(--danger);
}

.account-sidebar-item.logout-item:hover {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.account-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 180ms ease, transform 220ms ease;
}

.account-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.add-page-shell {
  width: min(860px, 94vw);
}

.add-page-head {
  display: grid;
  gap: 6px;
}

.add-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.add-page-actions a {
  text-decoration: none;
}

body[data-theme="dark"] .account-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .quick-tip,
body[data-theme="dark"] .entry-score-card,
body[data-theme="dark"] .skeleton-card--entry,
body[data-theme="dark"] .skeleton-card--catalog,
body[data-theme="dark"] .page-intro-card,
body[data-theme="dark"] .admin-feed-card,
body[data-theme="dark"] .audit-diff {
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .entry-ai-pill--done {
  color: #88fff2;
}

body[data-theme="dark"] .entry-ai-pill--pending {
  color: #ffd089;
}

body[data-theme="dark"] .skeleton-block {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 880px) {
  .hero-layout,
  .page-intro-card,
  .quick-tip-grid,
  .site-footer-inner,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cookie-notice-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-notice-actions {
    justify-content: stretch;
  }

  .cookie-notice-actions button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

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

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-header {
    position: static;
  }

  .site-actions {
    width: auto;
    justify-content: flex-end;
  }

  .session-chip {
    display: none;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 45;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .menu-item {
    border-radius: 10px;
    padding: 8px 10px;
  }

  .site-nav .menu-item:hover {
    background: rgba(15, 23, 42, 0.06);
  }

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

  .entry-card,
  .skeleton-card--entry {
    grid-template-columns: 1fr;
  }

  .entry img {
    width: 100%;
    height: 170px;
  }

  .entry-card .entry-media img,
  .skeleton-entry-media {
    width: 100%;
    height: 190px;
  }

  .entry-title-row,
  .entry-topline,
  .page-intro-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .entry-meta-grid {
    grid-template-columns: 1fr;
  }

  .entry-side {
    grid-template-columns: 1fr;
  }

  .admin-feed-grid,
  .admin-queue-grid {
    grid-template-columns: 1fr;
  }

  .admin-feed-topline {
    flex-direction: column;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-sidebar-divider {
    display: none;
  }

  .account-sidebar-item {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .account-sidebar-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  body[data-theme="dark"] .site-nav {
    background: rgba(9, 17, 22, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  }


@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}
  body[data-theme="dark"] .site-nav .menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ── Edit modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.26);
  padding: 28px 24px;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  animation: pop-in 280ms ease both;
}

.modal-card--wide {
  width: min(920px, 100%);
}

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

.modal-title-group {
  display: grid;
  gap: 6px;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
}

.modal-subtitle {
  margin: 0;
}

.modal-close {
  font-size: 22px;
  line-height: 1;
  padding: 4px 10px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 120px;
}

.rating-picker-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rating-picker-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.rating-picker-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.rating-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-picker--compact {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-start;
  width: 100%;
  overflow-x: hidden;
}

.rating-picker--compact .rating-choice {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0;
}

.rating-picker.is-disabled {
  opacity: 0.5;
}

.rating-choice {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rating-choice:hover:not(:disabled),
.rating-choice:focus-visible:not(:disabled) {
  border-color: rgba(11, 107, 203, 0.45);
  background: rgba(11, 107, 203, 0.08);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
  transform: translateY(-1px);
}

.rating-choice.is-active {
  border-color: rgba(11, 107, 203, 0.8);
  background: linear-gradient(135deg, rgba(11, 107, 203, 0.14), rgba(11, 107, 203, 0.24));
  color: rgb(11, 107, 203);
}

.rating-choice:disabled {
  cursor: not-allowed;
}

.rating-picker-summary {
  margin: 0;
  min-height: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 500px) {
  .modal-row {
    grid-template-columns: 1fr;
  }

  .rating-picker {
    grid-template-columns: repeat(10, minmax(48px, 56px));
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .rating-picker--compact {
    gap: 3px;
  }

  .rating-picker--compact .rating-choice {
    min-height: 34px;
    font-size: 11px;
    border-radius: 9px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}
