:root {
  --main: #0e6b42;
  --main-dark: #04362c;
  --ink: #042820;
  --muted: #6b7280;
  --line: #e6e9ef;
  --bg: #f4f7f5;
  --white: #fff;
  --danger: #dc2626;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}
a { color: inherit; text-decoration: none; }
.admin-shell {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.75rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
    var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.admin-header-left { min-width: 0; }
.admin-header-crumb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-header-title {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 0.15rem;
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-header-meta {
  display: block;
}
.admin-header-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #f3f6f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}
.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.admin-header-btn:hover {
  border-color: var(--main);
  color: var(--main-dark);
  background: #eef5f1;
}
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
}
.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--main), var(--main-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.admin-user-meta {
  display: grid;
  line-height: 1.15;
}
.admin-user-meta strong {
  font-size: 0.86rem;
}
.admin-user-meta small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.sidebar {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: start;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.15rem 0.2rem;
}
.brand-logo {
  display: block;
  height: 24px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  image-rendering: auto;
}
.login-card .brand {
  justify-content: flex-start;
}
.login-card .brand-logo,
.login-card .brand-logo-light {
  height: 28px;
  max-width: 220px;
  background: transparent !important;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--main), var(--main-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
}
.side-nav { display: grid; gap: 0.35rem; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  font-size: 0.92rem;
}
.side-nav a .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}
.side-nav a:hover, .side-nav a.active {
  background: rgba(14,107,66,0.18);
  color: #fff;
}
.side-nav a:hover .nav-icon,
.side-nav a.active .nav-icon {
  opacity: 1;
  color: var(--main);
}
.logout-form { margin-top: auto; }
.logout-form button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.admin-main {
  padding: 1.25rem 1.75rem 2.5rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.admin-page-intro {
  margin-bottom: 1.15rem;
}
.admin-page-intro p {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.admin-top {
  display: none;
}
.admin-user {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.alert {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert.success { background: #e7f2ec; color: var(--main-dark); }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert ul { margin-left: 1rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
}
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -0.03em; color: var(--main-dark); }
.stat span { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* Dashboard */
.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.45rem;
  border-radius: 20px;
  border: 1px solid #c9ddd2;
  background:
    radial-gradient(circle at top right, rgba(14,107,66,0.22), transparent 42%),
    linear-gradient(135deg, #042820 0%, #0a3d2c 48%, #04362c 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(7,32,50,0.12);
}
.dash-welcome-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
}
.dash-welcome-copy h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.dash-welcome-copy p:last-child {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  max-width: 46ch;
  font-weight: 500;
}
.dash-welcome-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.dash-welcome-actions .btn-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.dash-welcome-actions .btn-light:hover {
  background: rgba(255,255,255,0.2);
}
.dash-stats .dash-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dash-stats .dash-stat:hover {
  transform: translateY(-2px);
  border-color: #b5d4c4;
  box-shadow: 0 12px 28px rgba(7,32,50,0.07);
}
.dash-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-stat-icon.posts { background: #e7f2ec; color: var(--main-dark); }
.dash-stat-icon.published { background: #ecf5f0; color: #0a5c38; }
.dash-stat-icon.messages { background: #eff6ff; color: #1d4ed8; }
.dash-stat-icon.unread { background: #fff7ed; color: #c2410c; }
.dash-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.dash-module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  transition: border-color .15s, transform .15s;
}
.dash-module:hover {
  border-color: #b5d4c4;
  transform: translateY(-1px);
}
.dash-module strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-module span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.dash-panel .panel-head {
  margin-bottom: 0.35rem;
}
.dash-empty {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.2rem;
  text-align: center;
}
.dash-empty strong {
  color: var(--ink);
  font-size: 0.95rem;
}
.dash-empty span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  .form-grid.two { grid-template-columns: 1fr; }
}
.panel h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge.green { background: #e7f2ec; color: var(--main-dark); }
.badge.gray { background: #f3f4f6; color: #4b5563; }
.badge.red { background: #fee2e2; color: #991b1b; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-main { background: var(--main); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #f3f4f6; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 700; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top right, rgba(14,107,66,0.18), transparent 45%),
    var(--bg);
  font-family: var(--font);
}
.login-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(7,32,50,0.08);
}
.login-card h1 { font-size: 1.5rem; margin: 0.5rem 0 0.25rem; }
.login-card p { color: var(--muted); margin-bottom: 1.4rem; }
.pagination { margin-top: 1.25rem; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pager-info { margin: 0; font-size: 0.85rem; color: #6b7280; }
.pager-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
a.pager-link:hover { border-color: #0e6b42; color: #0e6b42; }
.pager-link.is-active { background: #0e6b42; border-color: #0e6b42; color: #fff; }
.pager-link.is-disabled { color: #9ca3af; background: #f9fafb; cursor: not-allowed; }
.pager-link.is-dots { border-color: transparent; background: transparent; }
@media (max-width: 980px) {
  body.admin-body {
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
  }
  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .admin-shell {
    height: auto;
    overflow: visible;
  }
  .admin-main {
    height: auto;
    overflow: visible;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .admin-header-right {
    width: 100%;
    justify-content: flex-start;
  }
  .stats, .grid-2, .dash-modules { grid-template-columns: 1fr 1fr; }
  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .stats, .grid-2, .dash-modules { grid-template-columns: 1fr; }
  .admin-main { padding: 1rem; }
  .admin-user-meta { display: none; }
}

.page-card { transition: transform .2s, box-shadow .2s; }
.page-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(7,32,50,.08); }
.add-section-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: .75rem;
}
.add-section-form select,
.add-section-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  background: #fff;
}
.section-list { display: grid; gap: .7rem; }
.section-item {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.section-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: .65rem;
  align-items: center;
  padding: .7rem .85rem;
  background: #f7f8fa;
}
.section-label strong { display: block; font-size: .95rem; }
.section-label small { color: var(--muted); font-size: .78rem; }
.drag-handle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: grab;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.drag-handle:active { cursor: grabbing; }
.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s;
}
.icon-btn.open { transform: rotate(180deg); }
.icon-btn.danger { background: #ef4444; }
.section-body {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.section-body.open { display: block; padding-top: 1rem; }
.hint { color: var(--muted); font-size: .9rem; }
.hint a { color: var(--main-dark); font-weight: 700; }
@media (max-width: 768px) {
  .add-section-form { grid-template-columns: 1fr; }
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.settings-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: .55rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.settings-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; border: 0; padding: 0; }
.settings-block {
  background: #f8faf9;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.settings-block h3 {
  font-size: .95rem;
  margin-bottom: .85rem;
  color: var(--main-dark);
}

/* Website Setting — CMS layout */
.ws-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.ws-pages, .ws-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.ws-pages { padding: 1rem; position: sticky; top: 1rem; }
.ws-pages h3 { font-size: .95rem; margin-bottom: .85rem; }
.ws-page-list { display: grid; gap: .4rem; }
.ws-page-item {
  text-align: left;
  border: 1px solid transparent;
  background: #f5f7f8;
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  color: var(--ink);
}
.ws-page-item.active {
  background: #e8f1ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.ws-frontend-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ws-frontend-box strong { display: block; margin-bottom: .55rem; font-size: .85rem; }
.ws-header-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.ws-header-preview span {
  background: #f3f4f6;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  color: #4b5563;
}
.ws-frontend-box small { color: var(--muted); font-size: .78rem; }
.ws-main { padding: 1.15rem 1.2rem 1.4rem; min-height: 640px; }
.ws-page-panel { display: none; }
.ws-page-panel.active { display: block; }
.ws-main-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.ws-main-top h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.ws-main-top p { color: var(--muted); margin-top: .25rem; font-size: .9rem; }
.ws-main-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ws-acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
  margin-bottom: .7rem;
  overflow: hidden;
}
.ws-acc summary {
  list-style: none;
  cursor: pointer;
  padding: .95rem 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-acc summary::-webkit-details-marker { display: none; }
.ws-acc summary::after {
  content: "▾";
  color: #9ca3af;
  font-size: .9rem;
}
.ws-acc[open] summary {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ws-acc-body { padding: 1rem; background: #fff; }
.ws-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
}
.ws-image-box {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: .75rem;
  background: #f8fafc;
}
.ws-image-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.ws-image-box small { display: block; margin-top: .45rem; color: var(--muted); font-size: .75rem; }
.ws-help { padding: 1rem; position: sticky; top: 1rem; display: grid; gap: .85rem; }
.ws-help-card h3 { margin-bottom: .7rem; font-size: 1rem; }
.ws-help-card ol {
  margin-left: 1.1rem;
  display: grid;
  gap: .45rem;
  color: #4b5563;
  font-size: .88rem;
  font-weight: 500;
}
.ws-status {
  border-radius: 14px;
  padding: .9rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}
.ws-status.ok { background: #ecf5f0; color: #0a5c38; border: 1px solid #b8dcc9; }
.ws-status.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; font-weight: 600; }
@media (max-width: 1200px) {
  .ws-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
  .ws-layout { grid-template-columns: 1fr; }
  .ws-pages { position: static; }
  .ws-hero-grid { grid-template-columns: 1fr; }
  .ws-main-top { flex-direction: column; }
}

/* Website Settings — drill-down + drawer */
.settings-flow {
  max-width: 860px;
}
.settings-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(7,32,50,0.04);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.settings-back-btn:hover {
  border-color: #b5d4c4;
  background: #eef5f1;
  color: var(--main-dark);
  box-shadow: 0 8px 18px rgba(7,32,50,0.06);
}
.settings-flow-head {
  margin-bottom: 1.15rem;
}
.settings-flow-head h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.28rem;
}
.settings-flow-head p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.settings-nav-list {
  display: grid;
  gap: 0.7rem;
  max-width: 860px;
}
.settings-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.settings-nav-card:hover {
  border-color: #b5d4c4;
  background: #fbfefd;
  box-shadow: 0 10px 24px rgba(7,32,50,0.06);
  transform: translateY(-1px);
}
.settings-nav-card:hover .settings-nav-chevron {
  color: var(--main-dark);
  transform: translateX(2px);
}
.settings-nav-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.settings-nav-copy strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.settings-nav-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}
.settings-nav-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.settings-nav-badge {
  background: #f3f6f5;
  border: 1px solid var(--line);
  color: #4b5563;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.settings-nav-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f6f5;
  color: #6b7280;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .15s, color .15s, background .15s;
}
.settings-nav-card:hover .settings-nav-chevron {
  background: #e7f2ec;
}
.settings-manage-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #eef5f1;
  border: 1px solid #b5d4c4;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.settings-manage-card strong {
  display: block;
  margin-bottom: 0.15rem;
}
.settings-manage-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

/* Drawer */
body.drawer-open .admin-main {
  overflow: hidden;
}
.settings-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 32, 50, 0.42);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  transition: opacity .22s ease;
}
.settings-drawer-overlay.is-open {
  opacity: 1;
}
.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(7,32,50,0.18);
  transform: translateX(100%);
  transition: transform .24s ease;
}
.settings-drawer.is-open {
  transform: translateX(0);
}
.settings-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbfa, #fff);
}
.settings-drawer-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.settings-drawer-header h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.settings-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.settings-drawer-close:hover {
  background: #f3f6f5;
  border-color: #cbd5e1;
}
.settings-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.25rem 1.4rem;
}
.settings-drawer-grid {
  grid-template-columns: 1fr 1fr;
}
.settings-drawer-grid .form-row.full {
  grid-column: 1 / -1;
}
.settings-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
}
@media (max-width: 720px) {
  .settings-nav-card {
    align-items: flex-start;
  }
  .settings-manage-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-drawer {
    width: 100vw;
  }
  .settings-drawer-grid {
    grid-template-columns: 1fr;
  }
}

.settings-repeater {
  display: grid;
  gap: 1rem;
}
.settings-repeater-heading {
  margin: 1.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-repeater-list {
  display: grid;
  gap: 1rem;
}
.settings-repeater-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fbfcfd;
}
.settings-repeater-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.settings-repeater-item-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}
.settings-repeater-add {
  justify-self: start;
  border: 1px dashed #b5d4c4;
  background: #eef5f1;
  color: var(--main-dark);
  font-weight: 700;
}
.settings-repeater-add:hover {
  background: #e7f2ec;
}
.settings-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}
.settings-check-label input {
  width: 16px;
  height: 16px;
}

