/* ───────────── Tokens ───────────── */
:root {
  --page: #f6f6f4;
  --surface: #fff;
  --ink: #111;
  --muted: #6b6b6b;
  --faint: #9a9a97;
  --line: #e8e8e5;
  --soft: #f2f2ef;
  --primary: #111;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --ok: #15803d;
  --ok-soft: #e8f6ed;
  --warn: #c2620a;
  --warn-soft: #fdf1e4;
  --pend: #b8b8b4;
  --danger: #c53030;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 12px rgba(0, 0, 0, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.error { color: var(--danger); }
.sp { flex: 1; }
.row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-ph { background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; }
.center-msg {
  min-height: 100vh; display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted);
}
.center-msg b { color: var(--ink); font-size: 16px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px;
  background: linear-gradient(var(--ink) 0 0) 50% 0 / 1.5px 100% no-repeat, linear-gradient(var(--ink) 0 0) 0 50% / 100% 1.5px no-repeat, #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.eyebrow { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ───────────── Controls ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { border-color: #d4d4d0; background: #fafaf8; }
.btn:disabled { opacity: .4; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; margin-top: 14px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #2a2a2a; border-color: #2a2a2a; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--soft); border-color: transparent; }
.btn.ghost.on { background: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.warn.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink); }
.icon-btn:hover:not(:disabled) { background: var(--soft); }
.icon-btn:disabled { opacity: .3; }
.icon-btn.muted { color: var(--faint); }
.linkbtn { color: var(--accent); font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

.input {
  width: 100%; min-height: 38px; padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .07); }
.input.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; width: auto; border-radius: 8px; }
.input.inline { width: 120px; margin-left: 4px; }
textarea.input { resize: vertical; line-height: 1.5; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 600; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pend); flex: none; }
.dot.approved { background: var(--ok); }
.dot.changes { background: var(--warn); }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap;
}
.status.approved { background: var(--ok-soft); color: var(--ok); }
.status.changes { background: var(--warn-soft); color: var(--warn); }
.status small { font-weight: 500; opacity: .8; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; user-select: none; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 30px; height: 18px; border-radius: 99px; background: #d6d6d2; position: relative; transition: background .15s; flex: none; }
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s;
}
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }

.seg { display: flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 11px; }
.seg button { flex: 1; height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg.compact { display: inline-flex; }
.seg.compact button { flex: none; height: 30px; }
.count { background: var(--warn); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; line-height: 17px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.note { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; white-space: pre-line; }
.note b { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 3px; }
.banner { max-width: 1120px; margin: 0 auto 4px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: #7c3f06; font-size: 13px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 48px 16px; }
.empty b { color: var(--ink); font-size: 15px; }
.earlier { margin: 10px 0; }
.earlier summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 4px 0; }

.avatar { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; background: var(--soft); flex: none; }
.avatar img, .avatar .media-ph { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { width: 22px; height: 22px; }
.avatar.sm { width: 36px; height: 36px; }
.avatar.md { width: 44px; height: 44px; }
.avatar.lg { width: 72px; height: 72px; }

/* ───────────── Top bar (client + editor) ───────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; background: rgba(246, 246, 244, .85); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.top-titles b { font-size: 16px; letter-spacing: -.01em; }

/* ───────────── Client review page ───────────── */
.page { min-height: 100vh; padding-bottom: 48px; }
.page > .banner { margin-top: 16px; }
.review-layout {
  max-width: 1120px; margin: 0 auto; padding: 24px; display: grid;
  grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start;
}
.plan-col { min-width: 0; max-width: 700px; width: 100%; justify-self: center; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hint { margin: 12px 2px 0; }
.side-col { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.progress-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.progress-head b { font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.bar { height: 6px; border-radius: 99px; background: var(--soft); display: flex; overflow: hidden; }
.bar i { display: block; height: 100%; transition: width .3s; }
.bar .approved { background: var(--ok); }
.bar .changes { background: var(--warn); }
.legend { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: var(--radius); overflow: hidden; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); display: block; }
.tile .fill { transition: transform .35s ease, filter .2s; }
.tile:hover .fill { transform: scale(1.03); filter: brightness(.95); }
.tile.selected::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); }
.tile-icons { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; color: #fff; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .45)); }
.tile-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 18px 8px 7px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}
.tile-meta .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .95); }
.tile-count { display: inline-flex; align-items: center; gap: 3px; }

/* Schedule */
.schedule { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); }
.sched-row:first-child { border-top: 0; }
.sched-row:hover { background: #fafaf8; }
.sched-day { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.sched-day b { font-size: 20px; letter-spacing: -.02em; }
.sched-day span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sched-thumb { position: relative; width: 48px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--soft); flex: none; }
.sched-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sched-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-cap { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sched-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* ───────────── Post detail ───────────── */
.detail-back {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(12, 12, 12, .55); backdrop-filter: blur(6px); animation: fade .15s ease-out;
}
.detail {
  --detail-h: min(880px, calc(100vh - 48px));
  width: min(1180px, 100%); height: var(--detail-h); display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  animation: rise .2s ease-out;
}
.detail-media {
  --viewer-h: calc(var(--detail-h) - 56px);
  position: relative; background: #0e0e0e; display: flex; align-items: center; justify-content: center; padding: 28px; min-width: 0;
}
.pin-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(79, 70, 229, .45);
}
.viewer { position: relative; max-height: var(--viewer-h); border-radius: 8px; overflow: hidden; background: #1c1c1c; }
.viewer-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.viewer-slide video.fill { object-fit: contain; background: #000; }
.viewer-count { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.viewer-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.viewer-dots i.on { background: #fff; }

.detail-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.detail-head { display: flex; align-items: center; gap: 4px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.detail-when { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.detail-when b { font-size: 15px; }
.detail-head .muted.small { margin-right: 6px; }
.detail-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.detail-status { display: flex; align-items: center; gap: 8px; }
.caption-by { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.caption { margin: 0; white-space: pre-line; word-wrap: break-word; font-size: 14.5px; line-height: 1.55; }
.tag { color: var(--accent); }
.caption-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.caption-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-review { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.post-review .eyebrow { margin-top: 16px; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.review-actions .btn { height: 40px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }

/* Feedback pins */
.pin-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin-layer.armed { pointer-events: auto; cursor: crosshair; background: rgba(79, 70, 229, .12); box-shadow: inset 0 0 0 2px rgba(79, 70, 229, .9); }
.pin {
  position: absolute; transform: translate(-50%, -100%); pointer-events: auto;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px 13px 13px 3px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 2px #fff;
  transition: transform .15s;
}
.pin small { font-weight: 600; opacity: .85; font-size: 10.5px; }
.pin.resolved { background: #7d7d7a; }
.pin.draft { background: var(--warn); animation: pop .25s ease-out; }
.pin.hot { transform: translate(-50%, -100%) scale(1.2); z-index: 2; }
.pin.mini { position: static; transform: none; min-width: 12px; width: 12px; height: 12px; padding: 0; box-shadow: none; }
@keyframes pop { from { transform: translate(-50%, -100%) scale(.3); } }

/* Comments */
.cmt { display: flex; gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; transition: background .15s; }
.cmt.hot { background: var(--accent-soft); }
.cmt.resolved .cmt-text { color: var(--muted); }
.cmt-av { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.cmt.designer .cmt-av { background: var(--ink); color: #fff; }
.cmt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cmt-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.cmt-text { white-space: pre-wrap; word-wrap: break-word; }
.cmt-pin { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.cmt .linkbtn { align-self: flex-start; }

.composer { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.composer-row { display: flex; align-items: center; gap: 8px; }
.composer-pin { display: flex; align-items: center; gap: 8px; font-size: 12.5px; background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; }
.composer-pin .linkbtn { margin-left: auto; }

.post-sum { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.post-sum.clickable { cursor: pointer; }
.post-sum.clickable:hover { background: var(--soft); }
.post-sum-img { position: relative; width: 44px; height: 58px; border-radius: 6px; overflow: hidden; background: var(--soft); flex: none; }
.post-sum-img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-sum-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.post-sum-title { font-weight: 600; }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 12, .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { width: 440px; max-width: 100%; background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: rise .2s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 14px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 16px; }

/* ───────────── Dashboard ───────────── */
.admin { min-height: 100vh; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--page); }
.admin-main { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-head h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.brand-list { display: flex; flex-direction: column; gap: 14px; }
.brand-card { padding: 18px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt b { font-size: 15px; }
.plan-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.plan-rows > p { margin: 12px 0 0; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plan-row:last-child { border-bottom: 0; padding-bottom: 0; }
.plan-title { font-weight: 700; }
.plan-title:hover { text-decoration: underline; }
.empty-card { padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.login { width: 340px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label:not(.check):not(.switch) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.field-label { font-weight: 600; font-size: 13px; }
.field-label .muted { font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ───────────── Editor ───────────── */
.editor { height: 100vh; display: flex; flex-direction: column; }
.title-input { border: 0; outline: none; font-weight: 700; font-size: 16px; padding: 1px 6px; margin-left: -6px; border-radius: 6px; width: 240px; background: transparent; letter-spacing: -.01em; }
.title-input:hover, .title-input:focus { background: var(--soft); }
.save-state { font-size: 12px; color: var(--faint); margin-left: 4px; }
.save-state.saving { color: var(--warn); }
.save-state.error { color: var(--danger); font-weight: 600; }
.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 560px); justify-content: center; gap: 32px; padding: 20px 24px 0; }
.ed-grid { overflow-y: auto; padding-bottom: 32px; scrollbar-width: thin; }
.ed-grid .toolbar b { font-size: 14px; }
.ed-panel { display: flex; flex-direction: column; min-height: 0; }
.ed-content { flex: 1; overflow-y: auto; padding: 16px 2px 48px; scrollbar-width: thin; }
.post-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.post-row:hover { border-color: #d4d4d0; }
.post-row-img { position: relative; width: 42px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--soft); flex: none; }
.post-row-main { flex: 1; min-width: 0; }
.post-row-top { display: flex; align-items: center; gap: 8px; }
.post-row-cap { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }

.media-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.media-tile { position: relative; width: 84px; height: 105px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.media-tile.tall { height: 150px; }
.media-n { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 6px; z-index: 1; }
.media-tools { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: center; gap: 4px; padding: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .15s; }
.media-tile:hover .media-tools, .media-tile:focus-within .media-tools { opacity: 1; }
.media-tools button { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.drop {
  min-width: 84px; height: 105px; padding: 0 14px; border-radius: 8px; border: 1.5px dashed #cfcfca; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s, color .15s;
}
.drop:hover, .drop.over { border-color: var(--ink); color: var(--ink); background: #fafaf8; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit .drop { height: 56px; }

.inbox { display: flex; flex-direction: column; gap: 12px; }
.inbox-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inbox-group { padding: 8px 12px 12px; }
.inbox-group.hot { border-color: var(--ink); }
.inbox-group > .linkbtn { margin: 4px 0 0; }
.inbox-general { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.share { display: flex; gap: 8px; margin-bottom: 8px; }
.warn-list { margin: 0 0 4px; padding: 8px 10px 8px 28px; border-radius: 10px; background: var(--warn-soft); color: #7c3f06; font-size: 12.5px; }
.rev-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.panel .eyebrow + .rev-row { border-top: 0; }
.panel .form, .panel > .btn { margin-top: 4px; }
.panel > p:last-child { margin-bottom: 0; }

/* ───────────── Responsive ───────────── */
@media (max-width: 960px) {
  .review-layout { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .side-col { position: static; }
  .ed-body { grid-template-columns: 1fr; overflow-y: auto; padding-bottom: 40px; }
  .ed-grid, .ed-content { overflow: visible; }
  .editor { height: auto; min-height: 100vh; }
}
@media (max-width: 820px) {
  .detail-back { padding: 0; }
  .detail { --detail-h: 100dvh; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; overflow-y: auto; }
  .detail-side { display: contents; }
  .detail-head { order: -1; position: sticky; top: 0; z-index: 6; background: var(--surface); padding-left: 16px; }
  .detail-media { --viewer-h: 64dvh; padding: 0; min-height: 0; flex: none; }
  .viewer { border-radius: 0; }
  .detail-body { overflow: visible; flex: none; padding: 16px 16px 32px; }
}
@media (max-width: 600px) {
  .topbar, .admin-top { padding: 10px 16px; flex-wrap: wrap; }
  .admin-main { padding: 20px 16px 48px; }
  .grid2 { grid-template-columns: 1fr; }
  .title-input { width: 170px; }
  .sched-row { gap: 10px; padding: 10px; }
  .sched-end .status { display: none; }
}
