:root {
  --lu-green: #67cb2a;
  --lu-green-bright: #7de03a;
  --lu-dark: #0a0a0a;
  --lu-muted: #6b6b6b;
  --lu-border: #e5e5e5;
  --lu-bg: #f3f4f6;
  --radius: 1rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --font-logo: "Montserrat", var(--font-sans);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--lu-dark);
  background: var(--lu-bg);
  line-height: 1.55;
}

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

a { color: inherit; }

.shell {
  max-width: 1100px;
  padding: 1.25rem;
  margin: 1.25rem auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.client-lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand {
  font-family: var(--font-logo);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.2rem;
  cursor: default;
}

.brand span { color: var(--lu-green); margin-left: 0.15rem; }

.top-nav { display: flex; gap: 0.75rem; align-items: center; }

.link-quiet {
  color: var(--lu-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lu-muted);
  margin: 0 0 0.4rem;
}

.lede { color: var(--lu-muted); margin: 0 0 1.25rem; }

.card-page {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 32rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.card-narrow { margin-top: 2rem; }

.field { margin-bottom: 1rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--lu-border);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.field textarea { resize: vertical; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d12c2c;
  background: #fff6f6;
}

.field-error {
  color: #d12c2c;
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

.hint { color: var(--lu-muted); font-size: 0.8rem; margin: 0.35rem 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--lu-green); color: var(--lu-dark); }
.btn-ghost { background: #eee; color: var(--lu-dark); font-size: 0.85rem; }
.btn-danger { background: #1a1a1a; color: #fff; }

.banner {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.banner-ok { background: #e8f8dc; color: #24580f; }

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eee;
  white-space: nowrap;
}

.status-review { background: #fff3c4; }
.status-approved { background: #d8f5c4; }
.status-revision { background: #ffd6c9; }
.status-draft { background: #e8e8e8; }

.admin-main { padding-top: 0.5rem; }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }

.post-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  padding: 0.75rem;
  border-radius: 1rem;
}

.post-thumb {
  width: 64px;
  height: 80px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #ddd;
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.post-info span { color: var(--lu-muted); font-size: 0.85rem; }
.post-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 1.25rem;
}

.form-actions, .delete-form { grid-column: 1 / -1; margin-top: 0.5rem; }

.delete-form {
  background: #fff;
  padding: 1.25rem;
  border-radius: 1.25rem;
  margin-top: 1rem;
}

.check-label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; }
.check-label input { width: auto; margin-top: 0.2rem; }

.keep-images {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.keep-images label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  width: 88px;
}

.keep-images img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.file-preview { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.file-preview img { width: 72px; height: 90px; object-fit: cover; border-radius: 0.4rem; }

.page-viewer { background: #111; color: #f4f4f4; }
.page-viewer .brand, .page-viewer .lede, .page-viewer .eyebrow { color: #cfcfcf; }
.page-viewer .brand span { color: var(--lu-green); }
.page-viewer .client-lead { color: #fff; }
.page-viewer h1 { color: #fff; }

.viewer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 2rem;
  align-items: start;
}

.ig-card {
  background: #fff;
  color: #111;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ig-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
}

.ig-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #67cb2a, #1d4e00);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ig-meta { display: flex; flex-direction: column; line-height: 1.2; }
.ig-meta span { color: #777; font-size: 0.75rem; }

.ig-stage {
  position: relative;
  background: #000;
  overflow: hidden;
}

.ig-slide {
  min-width: 100%;
  margin: 0;
}

.ig-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.ig-track {
  display: flex;
  transition: transform 0.35s ease;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ig-track:active { cursor: grabbing; }

.ig-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.ig-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
}

.ig-dots .is-on { background: #67cb2a; }

.ig-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ig-actions {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem 0.2rem;
  font-size: 1.15rem;
}

.ig-save { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.04em; color: #888; text-transform: uppercase; }

.ig-caption { padding: 0.2rem 0.9rem 1rem; font-size: 0.92rem; }
.ig-caption strong { margin-right: 0.35rem; }
.ig-caption-body { display: inline; }
.hashtag { color: #00376b; }

.review-panel {
  background: #1a1a1a;
  border-radius: 1.25rem;
  padding: 1.4rem;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}

.facts div { background: #222; border-radius: 0.7rem; padding: 0.6rem 0.7rem; }
.facts dt { font-size: 0.7rem; color: #999; }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; }

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0 1.1rem;
  border-bottom: 1px solid #2a2a2a;
}

.comment {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.comment-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.comment-body { min-width: 0; }
.comment-text {
  margin: 0;
  color: #eee;
  font-size: 0.92rem;
  line-height: 1.45;
}
.comment-text strong { margin-right: 0.35rem; }
.comment-empty { color: #999; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  color: #888;
  font-size: 0.75rem;
}
.comment-meta .status-pill { font-size: 0.68rem; padding: 0.15rem 0.5rem; }

.review-form .field label { color: #ddd; }
.review-form input,
.review-form select,
.review-form textarea { background: #111; color: #fff; border-color: #333; }

.link-quiet.is-active { color: var(--lu-dark); }
.page-viewer .link-quiet { color: #cfcfcf; }

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

.feed-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.feed-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.feed-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #ddd;
}

.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feed-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.feed-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feed-body p {
  margin: 0.4rem 0 0;
  color: var(--lu-muted);
  font-size: 0.85rem;
}

.empty { background: #fff; padding: 1.5rem; border-radius: 1rem; color: var(--lu-muted); }

@media (max-width: 860px) {
  .shell {
    padding: 0;
    margin: 0;
  }
  .ig-card {
    border-radius: 0;
  }
  .viewer-grid,
  .admin-form,
  .post-row { grid-template-columns: 1fr; }
  .post-actions { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; }
}
