:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #d8e0e2;
  --mist: #e8f4f3;
  --coast: #167f8f;
  --coral: #f46d5e;
  --green: #14744d;
  --shadow: 0 18px 40px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--coast);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 32px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
}

.nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.mobile-header {
  display: none;
}

.main {
  min-height: 100vh;
  padding-left: 256px;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 24px;
}

.hero {
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: 40px;
  grid-template-columns: 1.05fr 0.95fr;
}

.eyebrow {
  color: var(--coast);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: 30px;
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
}

.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  background: var(--coast);
  border: 1px solid var(--coast);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  gap: 8px;
  min-height: 42px;
  justify-content: center;
  padding: 10px 14px;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--coast);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.label {
  color: #425060;
  font-size: 13px;
  font-weight: 650;
}

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

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.textarea {
  min-height: 118px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus,
.button:focus-visible {
  outline: 2px solid var(--coast);
  outline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  min-width: 760px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 0.8fr 0.7fr 0.9fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #edf1f2;
  padding: 16px 20px;
}

.table-row.header {
  background: var(--mist);
  color: #536170;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #f2f4f7;
  color: #536170;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 9px;
}

.badge.generated,
.badge.approved {
  background: #e8f4f3;
  color: var(--coast);
}

.badge.approved {
  background: #e8f7ef;
  color: var(--green);
}

.post {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
}

.post-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-title {
  border-color: transparent;
  font-size: 18px;
  font-weight: 650;
  padding-left: 0;
}

.image-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.message {
  background: var(--mist);
  border-radius: 8px;
  color: var(--coast);
  font-size: 14px;
  font-weight: 650;
  margin: 16px 0;
  padding: 12px 14px;
}

.empty {
  padding: 48px 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .main {
    padding-left: 0;
  }

  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 24px 16px;
  }

  .post-top {
    flex-direction: column;
  }
}
