:root {
  --admin-ink: #1c302a;
  --admin-green: #174f3f;
  --admin-dark: #123d32;
  --admin-muted: #6c7972;
  --admin-border: #e1e8e1;
  --admin-shadow: 0 12px 38px rgba(22, 54, 42, .055);
}

body.admin-page { background: #f4f6f2; color: var(--admin-ink); }
.admin-page header {
  min-height: 76px;
  padding: 14px max(28px, calc((100vw - 1472px) / 2));
  background: #123d32;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 5px 24px rgba(17, 49, 39, .12);
}
.admin-page header .brand { color: #fff; font-size: 22px; }
.admin-page header .eyebrow { color: #c6d8c8; letter-spacing: .13em; }
.admin-page header .secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.admin-page header .secondary:hover { background: rgba(255,255,255,.2); }
.admin-page main { max-width: 1472px; margin: 0 auto; padding: 28px 28px 70px; }
.admin-page footer { padding: 25px; border-top: 1px solid var(--admin-border); font-size: 12px; }

.dashboard-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: 286px;
  padding: 42px 54px 68px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at 83% 15%, rgba(184, 207, 141, .21), transparent 28%), linear-gradient(118deg, #184b3b 0%, #0d3028 100%);
  box-shadow: 0 20px 42px rgba(18, 61, 50, .13);
}
.dashboard-hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -80px;
  top: -184px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018);
  pointer-events: none;
}
.hero-copy, .hero-aside { position: relative; z-index: 1; }
.hero-kicker, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .16em;
}
.hero-kicker { color: #d1e3c3; }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #d4b979; box-shadow: 0 0 0 5px rgba(212,185,121,.13); }
.dashboard-hero h1 { margin: 19px 0 12px; font-size: clamp(38px, 4.1vw, 60px); line-height: 1.06; letter-spacing: -.04em; font-weight: 500; }
.dashboard-hero h1 em { color: #e5d4ab; font-weight: 400; }
.dashboard-hero p { max-width: 54ch; margin: 0; color: #d1ddd3; font-size: 15px; line-height: 1.65; }
.hero-aside { align-self: center; min-width: 180px; display: flex; flex-direction: column; align-items: center; color: #d4e0c9; }
.hero-aside span { font-size: 9px; font-weight: 800; letter-spacing: .24em; white-space: nowrap; }
.hero-aside strong { height: 130px; font: 180px/.95 Georgia, serif; color: #c1a974; opacity: .8; }

.admin-page .stats {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: -37px 24px 36px;
}
.admin-page .card { border: 1px solid var(--admin-border); border-radius: 19px; box-shadow: var(--admin-shadow); }
.admin-page .stat { position: relative; min-height: 154px; padding: 23px 25px 20px; margin: 0; overflow: hidden; }
.admin-page .stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #96b5a3; }
.admin-page .stat:nth-child(2)::before { background: #c9a363; }
.admin-page .stat:nth-child(3)::before { background: #8cacc5; }
.admin-page .stat:nth-child(4)::before { background: #cf9a85; }
.stat-label { color: #5b6d62; font-size: 12px; font-weight: 700; }
.admin-page .stat strong { margin: 7px 0 0; font: 500 clamp(33px, 3vw, 44px)/1 Georgia, serif; letter-spacing: -.045em; color: #173c31; }
.stat-caption { display: block; margin-top: 9px; color: #89958d; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .82fr); gap: 27px; align-items: start; }
.main-column, .side-column { min-width: 0; }
.desk-panel, .activity-section { margin-bottom: 36px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-kicker { color: #748a79; }
.section-heading h2, .side-heading h2 { margin: 4px 0 0; color: #1b342a; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.section-heading p { margin: 5px 0 0; color: var(--admin-muted); font-size: 13px; }
.count-pill { flex: none; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 12px; border-radius: 99px; background: #e5eee5; color: #356b51; font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-page .tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; padding: 5px; border: 1px solid var(--admin-border); border-radius: 14px; background: #e9eee8; }
.admin-page .tabs a { padding: 9px 15px; border-radius: 10px; background: transparent; color: #65776b; font-size: 12px; font-weight: 700; transition: background .18s, color .18s, box-shadow .18s; }
.admin-page .tabs a:hover { color: var(--admin-green); background: rgba(255,255,255,.6); }
.admin-page .tabs a.active { background: #fff; color: #1b523e; box-shadow: 0 2px 8px rgba(21,58,43,.08); }
.quote-list { display: grid; gap: 15px; }
.admin-page .quote-card { margin: 0; padding: 27px 29px 24px; transition: box-shadow .2s, transform .2s; }
.admin-page .quote-card:hover { box-shadow: 0 16px 40px rgba(22,54,42,.1); transform: translateY(-2px); }
.quote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.quote-id { margin-right: 3px; color: #839188; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.language-tag, .theme-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 7px; background: #e9f1ea; color: #3e6e50; font-size: 10px; font-weight: 700; }
.language-tag { background: #f1e8d8; color: #8f7140; letter-spacing: .08em; }
.admin-page .quote-card blockquote { margin: 20px 0 17px; padding: 0 0 0 19px; border-left: 3px solid #c5ab77; color: #23382e; font: 400 clamp(22px, 2vw, 27px)/1.44 Georgia, serif; overflow-wrap: anywhere; }
.admin-page .quote-card blockquote[dir="rtl"] { border-left: 0; border-right: 3px solid #c5ab77; padding: 0 19px 0 0; }
.quote-credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; }
.quote-credit strong { color: #274f3c; font-size: 13px; }
.quote-credit span, .quote-source { color: #839188; font-size: 11px; }
.quote-source { margin: 10px 0 0; }
.review-form { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e9eeea; }
.admin-page label { display: block; margin: 0 0 7px; color: #385447; font-size: 12px; font-weight: 750; line-height: 1.4; letter-spacing: .01em; }
.admin-page label:has(> input, > textarea, > select) { margin-bottom: 16px; }
.admin-page :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), textarea, select) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 7px 0 16px;
  padding: 11px 14px;
  border: 1px solid #cbd9cf;
  border-radius: 11px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(22, 54, 42, .035), 0 1px 2px rgba(22, 54, 42, .025);
  color: #203c30;
  font: 500 13px/1.5 system-ui, sans-serif;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.admin-page label > :is(input, textarea, select) { margin-bottom: 0; }
.admin-page textarea { min-height: 104px; resize: vertical; }
.admin-page select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, #648474 50%), linear-gradient(135deg, #648474 50%, transparent 50%); background-position: calc(100% - 21px) 20px, calc(100% - 16px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.admin-page :is(input, textarea)::placeholder { color: #8c9c91; font-weight: 400; opacity: 1; }
.admin-page :is(input:not([type="hidden"]), textarea, select):hover { border-color: #a2bda9; background-color: #fdfefd; }
.admin-page :is(input:not([type="hidden"]), textarea, select):focus { border-color: #2b7755; background-color: #fff; box-shadow: 0 0 0 4px rgba(47, 130, 88, .15), inset 0 1px 2px rgba(22, 54, 42, .02); }
.admin-page :is(input, textarea, select):disabled { background-color: #f0f3ef; color: #849289; cursor: not-allowed; }
.admin-page :is(input, textarea):user-invalid { border-color: #b96955; box-shadow: 0 0 0 3px rgba(185, 105, 85, .12); }
.admin-page :is(input, textarea, select):-webkit-autofill { -webkit-text-fill-color: #203c30; box-shadow: 0 0 0 100px #fff inset; }
.admin-page .login-card { max-width: 460px; margin: clamp(42px, 8vh, 86px) auto; padding: 38px 42px 42px; border-top: 4px solid #bda26e; box-shadow: 0 24px 65px rgba(22, 54, 42, .12); }
.admin-page .login-card h1 { margin: 8px 0 8px; color: #173c31; font-size: clamp(34px, 4vw, 43px); font-weight: 500; letter-spacing: -.035em; }
.admin-page .login-card p { margin: 0 0 28px; font-size: 13px; }
.admin-page .login-card form > button { width: 100%; min-height: 46px; margin-top: 6px; font-size: 13px; }
.form-actions, .activity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-page button { border-radius: 9px; padding: 10px 15px; background: #1a6049; color: #fff; font-size: 12px; font-weight: 750; line-height: 1.3; transition: background .18s, transform .18s; }
.admin-page button:hover { background: #134b39; transform: translateY(-1px); }
.admin-page button.secondary { border: 1px solid #dce6dc; background: #f3f7f2; color: #496454; }
.admin-page button.secondary:hover { background: #e6efe5; }
.admin-page header button.secondary { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); color: #fff; }
.admin-page header button.secondary:hover { background: rgba(255,255,255,.2); }
.admin-page a:focus-visible, .admin-page button:focus-visible, .admin-page summary:focus-visible { outline: 3px solid #d9b66e; outline-offset: 3px; }

.empty-state, .quiet-state { border: 1px dashed #cddbd0; background: #fbfcfa; color: #708277; }
.empty-state { padding: 42px 20px; border-radius: 18px; text-align: center; }
.empty-state > span { display: block; color: #b69c68; font-size: 28px; }
.empty-state h3 { margin: 8px 0; color: #264d3d; font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0 auto; font-size: 13px; }
.quiet-state { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 15px; font-size: 13px; }
.quiet-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e6efe3; color: #4c795b; font-size: 15px; }
.activity-section { padding-top: 7px; }
.activity-section .section-heading { margin-bottom: 14px; }
.admin-page .activity-card { margin: 0 0 10px; padding: 20px 22px; }
.activity-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.activity-top strong { color: #264839; font-size: 13px; }
.activity-card p { margin: 10px 0 14px; color: #42594b; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.status-pill { padding: 4px 9px; border-radius: 99px; background: #fff2e6; color: #af7350; font-size: 10px; font-weight: 800; }
.comment-meta { color: #93a097; font-size: 11px; }
.activity-actions { justify-content: space-between; }
.activity-actions a { font-size: 12px; font-weight: 700; }
.activity-actions a:hover { text-decoration: underline; }

.side-column { display: grid; gap: 16px; }
.admin-page .side-card { margin: 0; padding: 23px 24px 24px; }
.side-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.side-heading h2 { font-size: 22px; }
.side-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e4f0e7; color: #397258; font: 600 21px Georgia, serif; }
.icon-amber { background: #f8eddd; color: #aa8149; }
.icon-blue { background: #e7f0f5; color: #5b819d; font-size: 18px; }
.icon-purple { background: #eee9f5; color: #826c9a; font-family: system-ui, sans-serif; }
.side-card > p, .audit-list > p { margin: 0 0 17px; color: #7b8a80; font-size: 12px; line-height: 1.55; }
.admin-page .side-card form { margin-top: 15px; }
.admin-page .side-card form button { width: 100%; }
.admin-page details { margin: 13px 0 19px; border-top: 1px solid #e9eeea; border-bottom: 1px solid #e9eeea; }
.admin-page summary { padding: 12px 0; color: #2b6348; font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-page details[open] summary { border-bottom: 1px solid #edf0ec; }
.directory-list { max-height: 175px; overflow: auto; padding: 5px 0; }
.directory-list div { padding: 5px 0; color: #506457; font-size: 11px; }
.directory-list div span { margin-right: 8px; color: #a1aea4; }
.theme-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 175px; overflow: auto; padding-bottom: 3px; }
.side-card .theme-tag { border-radius: 7px; background: #f0f4ed; color: #5a745e; }
.audit-list { max-height: 340px; overflow: auto; }
.audit-item { position: relative; padding: 0 0 15px 18px; border-left: 1px solid #dce8dd; }
.audit-item::before { content: ''; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: #93b69c; }
.audit-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.audit-item span, .audit-item small { display: block; color: #94a097; font-size: 10px; }
.audit-item strong { display: block; margin: 3px 0; color: #435b4b; font-size: 11px; font-weight: 700; }
.admin-page .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pagination-summary { color: #84948a; font-size: 11px; }
.pagination-links { display: flex; align-items: center; gap: 5px; max-width: 100%; overflow-x: auto; padding: 3px; }
.pagination-links a, .pagination-links span { display: grid; place-items: center; flex: none; min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid #dfe8df; border-radius: 8px; background: #fff; color: #55705d; font-size: 11px; font-weight: 700; }
.pagination-links a:hover { border-color: #8db69b; background: #eaf2e9; color: #18523b; }
.pagination-links .current { border-color: #1a6049; background: #1a6049; color: #fff; }
.pagination-links .disabled { opacity: .45; }
.pagination-links .page-gap { border: 0; background: transparent; }
.pagination-links .page-arrow { padding: 0 10px; }

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(270px, .9fr); gap: 18px; }
  .admin-page .stats { margin-left: 12px; margin-right: 12px; }
  .admin-page .stat { padding: 21px 19px; }
}
@media (max-width: 850px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .admin-page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-hero { padding-bottom: 78px; }
}
@media (max-width: 580px) {
  .admin-page header { padding: 14px 18px; }
  .admin-page header .eyebrow { display: none; }
  .admin-page main { padding: 15px 13px 45px; }
  .dashboard-hero { min-height: 240px; padding: 30px 24px 74px; border-radius: 21px; }
  .dashboard-hero h1 { font-size: 39px; }
  .dashboard-hero p { font-size: 13px; }
  .hero-aside { display: none; }
  .admin-page .stats { gap: 9px; margin: -44px 9px 27px; }
  .admin-page .stat { min-height: 135px; padding: 17px 15px; border-radius: 14px; }
  .stat-label { font-size: 11px; }
  .stat-caption { font-size: 10px; }
  .section-heading h2 { font-size: 25px; }
  .admin-page .tabs { gap: 3px; }
  .admin-page .tabs a { padding: 8px 9px; font-size: 11px; }
  .admin-page .quote-card { padding: 22px 19px; }
  .admin-page .login-card { padding: 31px 24px 34px; }
  .side-column { grid-template-columns: 1fr; }
  .activity-top { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-page .quote-card, .admin-page button, .admin-page .tabs a, .admin-page input, .admin-page textarea, .admin-page select { transition: none; }
}
.challenge-admin{margin:32px 0}.challenge-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px}.admin-data-card{padding:20px;margin:0}.admin-data-card h3{display:flex;justify-content:space-between;margin:0 0 12px}.admin-data-card article{padding:11px 0;border-top:1px solid #e8ece6;display:grid;gap:4px}.admin-data-card small{color:#75847a}.admin-data-card form{margin-top:12px}.admin-data-card blockquote{margin:12px 0;color:#52675a}@media(max-width:700px){.challenge-admin-grid{grid-template-columns:1fr}}
