:root {
  --red: #e72e30;
  --red-dark: #c41f22;
  --ink: #231f20;
  --text: #231f20;
  --muted: #5f6b70;
  --blue: #dbe6e7;        /* OCL faded blue */
  --blue-soft: #edf3f3;
  --blue-deep: #4f6d74;
  --bg: var(--blue);
  --card: #ffffff;
  --line: #d3dfe1;
  --green: #17824a;
  --green-bg: #e6f4ec;
  --amber: #d4600f;
  --amber-bg: #fdeee2;
  --grey-bg: var(--blue);
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 Poppins, system-ui, -apple-system, Segoe UI, sans-serif;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: #3a3536; border-color: #3a3536; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: #0f6a3a; border-color: #0f6a3a; }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 6px 10px; }
.btn.ghost:hover { color: var(--ink); background: var(--grey-bg); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn svg { width: 16px; height: 16px; flex: none; }
.on-dark .btn.outline { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .btn.outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--ink); }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.error { color: var(--red); font-size: 14px; min-height: 1.2em; margin: 4px 0 0; }

/* ---------- login ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--ink);
}
.login-card {
  width: min(400px, 100%); background: #fff; border-radius: 20px; padding: 36px 30px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.login-card .logo { height: 64px; display: block; margin: 0 auto 18px; }
.login-card h1 { font-size: 20px; font-weight: 600; text-align: center; margin: 0 0 4px; }
.login-card p.sub { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.login-card .btn { width: 100%; padding: 12px; margin-top: 4px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff;
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.topbar .logo { height: 34px; display: block; }
.topbar .title { font-weight: 500; font-size: 14px; color: rgba(255,255,255,.7); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: rgba(255,255,255,.7); }
.topbar .who b { color: #fff; font-weight: 500; }

.platforms {
  display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px;
}
.platforms button {
  border: 0; background: transparent; color: rgba(255,255,255,.75); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.platforms button svg { width: 16px; height: 16px; }
.platforms button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- page ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 80px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.intro h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.intro p { margin: 4px 0 0; color: var(--muted); }
.progress { height: 6px; background: var(--grey-bg); border-radius: 99px; overflow: hidden; margin-top: 10px; width: min(320px, 100%); }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.filters button { border-color: #fff !important;
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text);
}
.filters button .n { color: var(--muted); margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink) !important; color: #fff; }
.filters button[aria-pressed="true"] .n { color: rgba(255,255,255,.6); }

.month { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
.month::after { content: ""; flex: 1; height: 1px; background: #b9cbce; }
.month:first-child { margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; background: #fff; border-radius: var(--radius); border: 1.5px dashed #b9cbce; }
.empty h2 { color: var(--text); font-size: 18px; font-weight: 600; margin: 0 0 6px; }

/* ---------- post card ---------- */
.post {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; grid-template-columns: 400px 1fr; gap: 0; margin-bottom: 18px; overflow: hidden;
  scroll-margin-top: 80px;
}
.post-preview { background: var(--blue-soft); border-right: 1px solid var(--line); padding: 20px; display: flex; justify-content: center; align-items: flex-start; }
.post-side { padding: 22px 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.post-head { display: flex; align-items: flex-start; gap: 12px; }
.post-head .num { flex: none; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--grey-bg); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.post-head h3 { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .post { grid-template-columns: 1fr; }
  .post-preview { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .post-side { padding: 18px 16px; }
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--grey-bg); color: #4a4f55; }
.badge.approved { background: var(--green-bg); color: var(--green); }
.badge.changes { background: var(--amber-bg); color: var(--amber); }
.badge.novisual { background: #fff; color: var(--muted); border: 1px dashed #c9cdd1; }
.badge.hidden { background: #fff; color: var(--muted); border: 1px solid var(--line); }

.review { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; background: var(--blue-soft); border-radius: 12px; }
.review .msg { flex: 1 1 200px; font-size: 14px; }
.review .msg b { font-weight: 600; }
.review form { width: 100%; display: grid; gap: 10px; }
.review form .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- comments ---------- */
.thread { display: grid; gap: 10px; }
.thread-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.c { padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); font-size: 14px; }
.c.admin { background: #fff; border: 1px solid var(--line); }
.c.changes { background: var(--amber-bg); }
.c.approved { background: var(--green-bg); }
.c .meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.c .meta b { color: var(--text); font-size: 13px; font-weight: 600; }
.c .tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--ink); color: #fff; }
.c .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.c .del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; }
.c .del:hover { color: var(--red); }
.c.sys { background: none; padding: 2px 4px; font-size: 13px; color: var(--muted); }
.comment-form { display: grid; gap: 8px; }
.comment-form textarea { min-height: 44px; height: 44px; }
.comment-form textarea:focus { height: 90px; }
.comment-form .row { display: flex; justify-content: flex-end; }

/* ---------- platform mockups ---------- */
.mock {
  width: 100%; max-width: 360px; background: #fff; color: #0f1419; border-radius: 10px;
  border: 1px solid #dbdbdb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.4; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.mk-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mk-head .av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: block; }
.mk-head .who { flex: 1; min-width: 0; line-height: 1.25; }
.mk-head .who b { font-weight: 600; display: block; }
.mk-head .who small { color: #65676b; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.mk-head .who small svg { width: 12px; height: 12px; }
.mk-head .more { color: #555; letter-spacing: 1px; font-weight: 700; }
.mk-media { position: relative; background: #000; }
.mk-empty { aspect-ratio: 4/5; display: grid; place-items: center; background: #f0f2f5; color: #8a8d91; font-size: 13px; text-align: center; padding: 20px; }

.car { position: relative; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; background: #000; }
.car-slide img, .car-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: #000; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 16px; line-height: 1; z-index: 2;
}
.car-btn.prev { left: 8px; } .car-btn.next { right: 8px; }
.car-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 99px; z-index: 2; }
.car-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; height: 14px; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.car-dots i.on { background: #0095f6; }
.expand { position: absolute; left: 8px; bottom: 8px; z-index: 2; border: 0; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 9px; cursor: pointer; font-family: Poppins, sans-serif; }

.grid { display: grid; gap: 2px; background: #fff; }
.grid > div { position: relative; overflow: hidden; background: #000; cursor: zoom-in; }
.grid img, .grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid .plus { position: absolute; inset: 0; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g2 > div { aspect-ratio: 1/1.2; }
.grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 > div:first-child { grid-column: 1 / -1; aspect-ratio: 1.6; } .grid.g3 > div { aspect-ratio: 1; }
.grid.g4 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 > div:first-child { grid-column: 1 / -1; aspect-ratio: 1.4; } .grid.g4 > div { aspect-ratio: 1; }
.play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play::after { content: ""; width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); margin-left: 4px; }

.mk-actions { display: flex; gap: 14px; padding: 10px 12px 4px; align-items: center; }
.mk-actions svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mk-actions .end { margin-left: auto; }
.mk-cap { padding: 4px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-cap .txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2); overflow: hidden; }
.mk-cap.open .txt { display: block; -webkit-line-clamp: unset; }
.mk-cap .more-btn { border: 0; background: none; padding: 0; color: #737373; cursor: pointer; font: inherit; }
.mk-cap .tagw { color: #00376b; }
.mk-time { color: #737373; font-size: 11px; letter-spacing: .02em; padding: 6px 12px 12px; text-transform: uppercase; }
.mk-cap.empty-cap { color: #8a8d91; font-style: italic; }

.mock.fb .mk-head .av { width: 40px; height: 40px; }
.mock.fb .mk-cap { padding: 0 12px 10px; }
.mock.fb .mk-cap .tagw { color: #385898; }
.mock.fb .mk-cap .more-btn, .mock.li .mk-cap .more-btn { color: #65676b; font-weight: 600; }
.mk-stats { display: flex; justify-content: space-between; color: #65676b; font-size: 13px; padding: 8px 12px; }
.mk-bar { display: flex; border-top: 1px solid #e4e6eb; margin: 0 12px; padding: 4px 0; }
.mk-bar span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: #65676b; font-weight: 600; font-size: 13px; padding: 6px 0; }
.mk-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.mock.li { border-radius: 8px; }
.mock.li .mk-head .av { width: 48px; height: 48px; border-radius: 4px; }
.mock.li .mk-head .who small { color: #666; }
.mock.li .mk-cap { padding: 0 12px 10px; color: rgba(0,0,0,.9); }
.mock.li .mk-cap .tagw { color: #0a66c2; font-weight: 600; }
.mock.li .follow { color: #0a66c2; font-weight: 600; font-size: 14px; }
.mock.li .mk-bar { margin: 0 8px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 50px 56px; }
.lb img, .lb video { max-width: 100%; max-height: calc(100vh - 100px); display: block; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.3); }
.lb .x { top: 12px; right: 12px; } .lb .p { left: 8px; top: 50%; } .lb .n { right: 8px; top: 50%; }
.lb .cnt { position: absolute; top: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }
@media (max-width: 600px) { .lb { padding: 56px 8px; } .lb .p, .lb .n { top: auto; bottom: 8px; } }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,10,12,.55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.dlg-body { padding: 20px 22px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.banner { background: #fff7d6; border: 1px solid #f0dc8a; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }

@media (max-width: 720px) {
  .topbar-in { gap: 10px; padding: 10px 16px; }
  .topbar .title, .topbar .who { display: none; }
  .topbar .logo { height: 28px; }
  .platforms button span { display: none; }
  .platforms button { padding: 6px 10px; }
  .intro h1 { font-size: 22px; }
}
