:root {
  --forest-950: #011a0e;
  --forest-900: #012c18;
  --forest-700: #075c36;
  --forest-500: #168151;
  --gold-400: #d8ad3d;
  --surface: #ffffff;
  --surface-soft: #f3f7f4;
  --border: #dbe6df;
  --text: #163326;
  --muted: #64766c;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(1, 44, 24, 0.12);
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-soft); color: var(--text); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.admin-header {
  min-height: 76px; padding: 12px clamp(20px, 4vw, 64px); display: flex; align-items: center;
  justify-content: space-between; gap: 24px; background: var(--forest-950); color: white;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: white; text-decoration: none; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: white; }
.brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-family: Inter, sans-serif; font-size: .72rem; font-weight: 500; }
.home-link { color: #ffe7a6; text-decoration: none; font-weight: 700; }
.admin-main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
.login-card { width: min(460px, 100%); margin: 7vh auto 0; background: white; border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 46px); box-shadow: var(--shadow); }
h1, h2 { font-family: "Plus Jakarta Sans", sans-serif; color: var(--forest-950); margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }
h2 { font-size: 1.1rem; }
.eyebrow { margin: 0 0 10px; color: var(--forest-500); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead, .dashboard-heading p { color: var(--muted); line-height: 1.65; }
form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; font-weight: 700; font-size: .84rem; color: var(--forest-900); }
label small { color: var(--muted); font-size: .72rem; font-weight: 500; }
input, textarea { width: 100%; border: 1px solid #cbd8d0; border-radius: 11px; background: white; padding: 12px 14px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(22,129,81,.12); }
input[readonly] { background: #edf3ef; color: var(--muted); }
textarea { resize: vertical; }
.primary-button, .secondary-button, .text-button, .icon-button { border-radius: 10px; min-height: 42px; padding: 10px 16px; font-weight: 800; border: 0; }
.primary-button { background: linear-gradient(135deg, var(--forest-700), var(--forest-500)); color: white; box-shadow: 0 8px 20px rgba(7,92,54,.2); }
.secondary-button { background: white; border: 1px solid var(--border); color: var(--forest-700); }
.text-button { background: transparent; color: var(--muted); }
.icon-button { background: transparent; font-size: 1.6rem; color: var(--muted); padding: 0 8px; }
.form-message { min-height: 1.25em; color: var(--danger); font-size: .84rem; margin: 14px 0 0; }
.form-message.success { color: var(--forest-700); }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fixed-rule { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 26px 0 6px; padding: 14px 18px; border-radius: 14px; color: var(--forest-900); background: #e6f3eb; border: 1px solid #c8e4d3; font-size: .82rem; }
.fixed-rule span { padding-left: 10px; border-left: 1px solid #a8cfb8; }
.account-panel { margin-top: 22px; background: white; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 12px 32px rgba(1,44,24,.07); }
.account-panel form { margin-top: 20px; }
.account-help { margin: 8px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 24px; align-items: start; margin-top: 22px; }
.slides-panel, .editor-panel { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 12px 32px rgba(1,44,24,.07); }
.editor-panel { position: sticky; top: 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.panel-title > span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--surface-soft); color: var(--forest-700); font-weight: 800; }
.slide-list { display: grid; gap: 14px; }
.slide-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: #fff; }
.slide-card.is-inactive { opacity: .62; }
.slide-card img { width: 150px; height: 112px; border-radius: 11px; object-fit: cover; background: var(--surface-soft); }
.slide-copy { min-width: 0; }
.slide-copy h3 { margin: 4px 0 7px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: var(--forest-950); }
.slide-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta { display: flex; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: .7rem; font-weight: 700; }
.badge { padding: 4px 8px; border-radius: 999px; background: #e6f3eb; color: var(--forest-700); }
.badge.off { background: #f2f2f2; color: #757575; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.card-actions button { border: 1px solid var(--border); background: white; color: var(--forest-700); border-radius: 8px; padding: 6px 9px; font-size: .72rem; font-weight: 700; }
.card-actions button.danger { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.check-label { display: flex; align-items: center; gap: 9px; min-height: 45px; }
.check-label input { width: 18px; height: 18px; }
.image-preview { min-height: 150px; border-radius: 13px; border: 1px dashed #b9ccc0; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .8rem; background: var(--surface-soft); }
.image-preview img { width: 100%; height: 180px; object-fit: cover; }
.form-actions { display: flex; gap: 10px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } .editor-panel { position: static; } }
@media (max-width: 620px) {
  .admin-header, .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .home-link { align-self: flex-end; }
  .slide-card { grid-template-columns: 1fr; }
  .slide-card img { width: 100%; height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}