@font-face {
  font-family: Lexend;
  src: url("/fonts/lexend-latin-variable.woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/poppins-latin-400.woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/poppins-latin-500.woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #030f1b;
  --surface: #0d1b2a;
  --text: #f2f5fa;
  --muted: #dce4f2;
  --brand: #172f55;
  --accent: #9cb4ff;
  --border: #4b5c8a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.75 Poppins,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Lexend, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(28px, 4vw, 48px);
  overflow-wrap: anywhere;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 19px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wrap {
  width: min(1280px, calc(100% - 112px));
  margin: auto;
}
.header {
  border-bottom: 1px solid var(--brand);
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  width: 177px;
  height: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
main {
  padding-block: 48px 72px;
  min-height: 70vh;
}
.footer {
  border-top: 1px solid var(--brand);
  padding-block: 24px;
  font-size: 12px;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.muted {
  color: var(--muted);
}
.lead {
  margin-top: 16px;
  max-width: 620px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.button:hover {
  border-color: var(--accent);
  background: var(--brand);
  text-decoration: none;
}
.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.small {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  border-top: 1px solid var(--border);
  padding: 20px;
  background: var(--surface);
}
.stat strong {
  display: block;
  font-family: Lexend;
  font-size: 32px;
  font-weight: 400;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--brand);
  padding: 24px;
  min-width: 0;
}
.card h3 {
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}
.card p {
  color: var(--muted);
  margin-bottom: 14px;
}
.card .actions {
  margin-top: 20px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.05em;
  margin: 0 8px 12px 0;
  color: var(--accent);
}
.approved {
  border-color: #4b857c;
  color: #b4e1d2;
}
.changes {
  border-color: #a99c6e;
  color: #e5d5a0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  align-items: end;
}
.filters > label {
  flex: 1;
  min-width: 160px;
}
.field {
  display: block;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
}
textarea {
  resize: vertical;
}
.field textarea {
  min-height: 110px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.wide {
  grid-column: 1/-1;
}
.form {
  max-width: 900px;
  display: grid;
  gap: 24px;
}
.login {
  max-width: 470px;
  margin: 40px auto;
  background: var(--surface);
  padding: 36px;
  border-top: 1px solid var(--border);
}
.login form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.empty {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.drop {
  border: 1px dashed var(--border);
  padding: 28px;
  text-align: center;
  background: var(--surface);
}
.drop.dragging {
  border-color: var(--accent);
  background: var(--brand);
}
.drop p {
  margin-bottom: 16px;
}
.file-list {
  display: grid;
  gap: 10px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--brand);
  flex-wrap: wrap;
}
.file-row img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.file-row > span {
  flex: 1;
  min-width: 140px;
  overflow-wrap: anywhere;
}
.progress {
  color: var(--accent);
  font-size: 13px;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}
.preview {
  width: min(100%, 540px);
  margin: auto;
  color: #172735;
  background: #fff;
  border: 1px solid #dce4f2;
  min-width: 0;
}
.post-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  font-size: 13px;
}
.avatar {
  background: var(--brand);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Lexend;
}
.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  background: #eef1f6;
  min-width: 0;
  touch-action: pan-y;
}
.media-frame img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}
.media-frame video {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #101820;
  object-fit: contain;
}
.vertical {
  max-width: 370px;
}
.vertical .media-frame {
  aspect-ratio: 9/16;
  background: #101820;
}
.vertical .media-frame img,
.vertical .media-frame video {
  height: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
}
.carousel-controls button {
  color: #172735;
  border-color: #a9b4be;
}
.social-actions {
  padding: 12px 18px 0;
  font-size: 23px;
  letter-spacing: 14px;
  color: #172735;
}
.post-caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
  padding: 14px 18px 20px;
  max-height: 280px;
  overflow: auto;
}
.review-info {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.review-info .actions {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.manual {
  padding: 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.manual h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
.manual p {
  margin-bottom: 14px;
}
.history {
  margin-top: 42px;
  display: grid;
  gap: 20px;
}
.history > h2 {
  margin-bottom: 4px;
}
.history .preview {
  max-width: 360px;
}
.version-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.version-row .copy {
  max-height: 300px;
  overflow: auto;
}
#notice {
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#notice:empty {
  margin: 0;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  width: min(540px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #030f1bcc;
}
dialog h2 {
  margin-bottom: 22px;
}
dialog form {
  display: grid;
  gap: 22px;
}
.dialog-error {
  color: #f2b7b7;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.caption-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.placeholder {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-layout {
    gap: 28px;
  }
}
@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 86px;
  }
  .brand {
    width: 155px;
  }
  nav {
    gap: 12px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .page-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .version-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  main {
    padding-top: 30px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 16px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .card {
    padding: 20px;
  }
  .login {
    padding: 24px;
    margin-top: 16px;
  }
  .wide {
    grid-column: auto;
  }
  .review-info > .actions {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 16px 0;
    z-index: 2;
  }
  .review-info > .actions .button {
    flex: 1;
  }
  .file-row .button {
    padding-inline: 12px;
  }
  .filters > label {
    min-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Keep carousel slides hidden even when media has a display rule. */
[hidden] {
  display: none !important;
}
.client-strip {
  display: flex;
  gap: 12px;
  overflow: auto;
  margin-bottom: 28px;
  padding-bottom: 8px;
}
.client-chip {
  flex: 0 0 auto;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--brand);
  padding: 14px 18px;
  min-height: 64px;
}
.client-chip:hover {
  border-color: var(--accent);
}
.client-chip strong,
.client-chip span {
  display: block;
}
.client-chip span {
  font-size: 11px;
  color: var(--muted);
}
.section-label {
  margin-bottom: 24px;
}
.manual + .manual {
  margin-top: 16px;
}
.media-frame {
  overflow: hidden;
}
.media-frame video {
  aspect-ratio: 9/16;
}
#notice:not(:empty) {
  padding: 14px 18px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
}
.post-header .muted {
  color: #536270;
}
.post-header strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.review-info,
.form-grid > * {
  min-width: 0;
}
.card a,
.file-row a {
  overflow-wrap: anywhere;
}
.file-row a {
  flex: 1;
  min-width: 100px;
}
.field input[type="file"] {
  font-size: 13px;
  padding: 12px 8px;
}
dialog .preview {
  max-width: 360px;
}
dialog .field {
  margin-block: 4px;
}
dialog p {
  overflow-wrap: anywhere;
}
.header nav .button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}
.post-caption strong {
  font-weight: 500;
}
.login h1 {
  font-size: 40px;
}
.review-info > .actions {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding-block: 18px;
  z-index: 2;
}
@media (max-width: 430px) {
  .review-info > .actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .review-layout {
    padding-bottom: 72px;
  }
  .header nav .button {
    padding-inline: 10px;
  }
  .drop {
    padding: 20px 12px;
  }
  .file-row {
    gap: 8px;
  }
}
.caption-copy {
  justify-self: start;
  margin-top: 8px;
}
